]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
elf: Test for LD_AUDIT module returning zero from la_version [BZ #24122]
[thirdparty/glibc.git] / ChangeLog
1 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 [BZ #24122]
4 * elf/Makefile (tests): Add tst-audit13.
5 (modules-names): Add tst-audit13mod1.
6 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7 rule.
8 * elf/tst-audit13.c: New file.
9 * elf/tst-audit13mod1.c: Likewise.
10
11 2019-02-12 Florian Weimer <fweimer@redhat.com>
12
13 [BZ #24122]
14 * elf/rtld.c (unload_audit_module): New function.
15 (report_audit_module_load_error): Likewise.
16 (load_audit_module): Likewise. Extracted from dl_main. Call
17 _dl_close if the laversion symbol cannot be found. Use early
18 returns for error handling. Add malloc error check. Check for a
19 zero return value from la_version. Remove spurious comment about
20 static TLS initialization. Remove useless casts.
21 (notify_audit_modules_of_loaded_object): New function. Extracted
22 from dl_main.
23 (load_audit_module): Likewise.
24 (dl_main): Call load_audit_modules.
25
26 2019-02-12 Joseph Myers <joseph@codesourcery.com>
27
28 * elf/dl-exception.c (_dl_exception_create_format): Add
29 fall-through comments.
30 * elf/ldconfig.c (parse_conf_include): Likewise.
31 * elf/rtld.c (print_statistics): Likewise.
32 * locale/programs/charmap.c (parse_charmap): Likewise.
33 * misc/mntent_r.c (__getmntent_r): Likewise.
34 * posix/wordexp.c (parse_arith): Likewise.
35 (parse_backtick): Likewise.
36 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
37 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
38 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
39
40 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
41
42 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
43 Use float instead of double.
44
45 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
46
47 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
48
49 2019-02-08 Joseph Myers <joseph@codesourcery.com>
50
51 * sysdeps/powerpc/bits/mathinline.h: Remove.
52
53 2019-02-08 Florian Weimer <fweimer@redhat.com>
54
55 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
56 * math/bits/math-finite.h: Move to ...
57 * bits/math-finite.h: ... here.
58
59 2019-02-08 Florian Weimer <fweimer@redhat.com>
60
61 * sysdeps/generic/bits/unistd_ext.h: Move to ...
62 * bits/unistd_ext.h: here.
63
64 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
65
66 [BZ #21915]
67 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
68 * nss/tst-nss-files-hosts-long.c: New file.
69 * nss/tst-nss-files-hosts-long.root: New directory.
70 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
71 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
72
73 2019-02-08 Florian Weimer <fweimer@redhat.com>
74
75 * include/bits/unistd_ext.h: Remove file.
76 * posix/bits/unistd_ext.h: Move to ...
77 * sysdeps/generic/bits/unistd_ext.h: ... here.
78
79 2019-02-08 Florian Weimer <fweimer@redhat.com>
80
81 * include/bits/unistd_ext.h: New file.
82
83 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
84
85 * time/tst-strftime2.c: Use array_length macros instead of magic
86 numbers.
87
88 2019-02-08 Florian Weimer <fweimer@redhat.com>
89
90 [BZ #24161]
91 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
92 argument.
93 * nptl/register-atfork.c (__run_fork_handlers): Only perform
94 locking if the new do_locking argument is true.
95 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
96 __run_fork_handlers.
97
98 2019-02-08 Florian Weimer <fweimer@redhat.com>
99
100 [BZ #6399]
101 Linux: Add gettid system call wrapper.
102 * posix/Makefile (headers): Add bits/unistd_ext.h.
103 * posix/bits/unistd_ext.h: New file.
104 * posix/unistd.h: Include it.
105 * manual/process.texi (Process Identification): Document gettid.
106 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
107 tst-gettid, tst-gettid-kill.
108 (tst-gettid): Link with $(shared-thread-library).
109 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
110 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
111 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
112 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
113 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
114 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
115 Add gettid.
116 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
117 Likewise.
118 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
119 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
120 Likewise.
121 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
122 Likewise.
123 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
124 Likewise.
125 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
126 Likewise.
127 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
128 Likewise.
129 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
130 Likewise.
131 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
132 Likewise.
133 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
134 (GLIBC_2.30): Likewise.
135 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
136 (GLIBC_2.30): Likewise.
137 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
138 (GLIBC_2.30): Likewise.
139 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
140 (GLIBC_2.30): Likewise.
141 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
142 Likewise.
143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
144 (GLIBC_2.30): Likewise.
145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
146 (GLIBC_2.30): Likewise.
147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
148 (GLIBC_2.30): Likewise.
149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
150 (GLIBC_2.30): Likewise.
151 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
152 Likewise.
153 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
154 Likewise.
155 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
156 Likewise.
157 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
158 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
159 Likewise.
160 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
161 Likewise.
162 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
163 Likewise.
164 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
165 Likewise.
166 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
167
168 2019-02-07 Florian Weimer <fweimer@redhat.com>
169
170 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
171 compatibility symbols.
172
173 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
174
175 [BZ #24180]
176 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
177 Add compiler barriers and comments.
178
179 2019-02-07 Florian Weimer <fweimer@redhat.com>
180
181 * include/array_length.h (array_length): Do not use a statement
182 expression and _Static_assert, so that array_length can be used at
183 file scope and as a constant expression.
184
185 2019-02-07 Florian Weimer <fweimer@redhat.com>
186
187 * support/xdlfcn.h (xdlmopen): Declare.
188 * support/xdlmopen.c: New file.
189 * support/Makefile (libsupport-routines): Add xdlmopen.
190
191 2019-02-06 Joseph Myers <joseph@codesourcery.com>
192
193 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
194 before return type, without separate inline.
195 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
196 * elf/dl-tunables.h (tunable_is_name): Likewise.
197 * malloc/malloc.c (do_set_trim_threshold): Likewise.
198 (do_set_top_pad): Likewise.
199 (do_set_mmap_threshold): Likewise.
200 (do_set_mmaps_max): Likewise.
201 (do_set_mallopt_check): Likewise.
202 (do_set_perturb_byte): Likewise.
203 (do_set_arena_test): Likewise.
204 (do_set_arena_max): Likewise.
205 (do_set_tcache_max): Likewise.
206 (do_set_tcache_count): Likewise.
207 (do_set_tcache_unsorted_limit): Likewise.
208 * nis/nis_subr.c (count_dots): Likewise.
209 * nptl/allocatestack.c (advise_stack_range): Likewise.
210 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
211 (do_sin): Likewise.
212 (reduce_sincos): Likewise.
213 (do_sincos): Likewise.
214 * sysdeps/unix/sysv/linux/x86/elision-conf.c
215 (do_set_elision_enable): Likewise.
216 (TUNABLE_CALLBACK_FNDECL): Likewise.
217
218 2019-02-06 Florian Weimer <fweimer@redhat.com>
219
220 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
221 (xdlsym): Use dlerror to detect a NULL symbol.
222
223 2019-02-06 Florian Weimer <fweimer@redhat.com>
224
225 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
226 <stap-probe.h>.
227 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
228
229 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
230
231 * libio/tst-bz24153.c (wide): Use wide char format specifier.
232
233 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
234
235 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
236 __wmemcmp and weak alias to wmemcmp.
237
238 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
239
240 [BZ #23403]
241 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
242 TLS_TCB_AT_TP tls variant.
243 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
244 Add alignment checks.
245 * support/Makefile (libsupport-routines): Add xposix_memalign and
246 xpthread_setstack.
247 * support/support.h: Add xposix_memalign.
248 * support/xthread.h: Add xpthread_attr_setstack.
249 * support/xposix_memalign.c: New File.
250 * support/xpthread_attr_setstack.c: Likewise.
251
252 2019-02-05 Florian Weimer <fweimer@redhat.com>
253
254 [BZ #24164]
255 arm: Use "nr" constraint for Systemtap probes, to avoid the
256 compiler using memory operands for constants, due to the "o"
257 alternative in the default "nor" constraint.
258 * include/stap-probe.h [USE_STAP_PROBE]: Include
259 <stap-probe-machine.h>
260 * sysdeps/generic/stap-probe-machine.h: New file.
261 * sysdeps/arm/stap-probe-machine.h: Likewise.
262
263 2019-02-04 Joseph Myers <joseph@codesourcery.com>
264
265 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
266 with 0, not tcache->entries[tc_idx].
267
268 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
269 once.
270
271 2019-02-04 Andreas Schwab <schwab@suse.de>
272
273 [BZ #16976]
274 [BZ #17396]
275 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
276 looking up collating elements match against (wide) character
277 sequence instead of name. Correct alignment adjustment.
278 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
279 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
280 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
281 (LOCALES): Add cs_CZ.ISO-8859-2.
282 * posix/tst-fnmatch4.c: New file.
283 * posix/tst-fnmatch5.c: New file.
284 * include/wchar.h (__wmemcmp): Declare.
285 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
286 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
287 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
288 * sysdeps/s390/wmemcmp.c: Likewise.
289
290 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
291
292 [BZ #24155]
293 CVE-2019-7309
294 * NEWS: Updated for CVE-2019-7309.
295 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
296 upper 32 bits of RDX register for x32. Use unsigned Jcc
297 instructions, instead of signed.
298 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
299 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
300
301 2019-02-04 Florian Weimer <fweimer@redhat.com>
302
303 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
304 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
305 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
306 Likewise.
307 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
308 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
309 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
310 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
311 Likewise.
312 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
313 Likewise.
314 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
315 Likewise.
316 (posix_spawn_file_actions_addopen): Likewise.
317 (posix_spawn_file_actions_addclose): Likewise.
318 (posix_spawn_file_actions_adddup2): Likewise.
319 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
320 qualifiers.
321 (posix_spawn_file_actions_addfchdir_np): Likewise.
322
323 2019-02-04 David Newall <glibc@davidnewall.com>
324
325 elf: Implement --preload option for the dynamic linker.
326 * elf/rtld.c (preloadarg): New variable.
327 (handle_preload_list): Pass through “where” argument to
328 do_preload.
329 (dl_main): Handle "--preload" and add second call to
330 handle_preload_list.
331 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
332 (tst-rtld-preload-OBJS): Set variable.
333 (tst-rtld-preload.out): New target.
334 * elf/tst-rtld-preload.sh: New file.
335
336 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
337
338 * Makefile (testrun.sh): Exit in case of incorrect argument.
339
340 2019-02-04 Florian Weimer <fweimer@redhat.com>
341
342 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
343 alignment gaps.
344
345 2019-02-03 Florian Weimer <fweimer@redhat.com>
346
347 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
348 implicit overflow checks.
349
350 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
351
352 * stdlib/isomac.c: Include <unistd.h>.
353
354 2019-02-03 Florian Weimer <fweimer@redhat.com>
355
356 * include/time.h (__tzfile_default): Use int, not long int, for
357 the GMT offsets.
358 * time/tzfile.c (struct ttinfo): Change type of the offset member
359 to int.
360 (__tzfile_read): Remove useless cast.
361 (__tzfile_default): Adjust prototype.
362 * time/tzset.c (tz_rule): Change type of the offset member to int.
363 (parse_offset): Change the type of the sign variable to int.
364
365 2019-02-03 Florian Weimer <fweimer@redhat.com>
366
367 [BZ #24153]
368 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
369 * libio/getchar.c (getchar): Likewise.
370 * libio/getchar_u.c (getchar_unlocked): Likewise.
371 * libio/getwchar.c (getwchar): Likewise.
372 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
373 * libio/iogets.c (_IO_gets): Likewise.
374 * libio/vscanf.c (_IO_vscanf): Likewise.
375 * libio/vwscanf.c (__vwscanf): Likewise.
376 * libio/tst-bz24153.c: New file.
377 * libio/Makefile (tests): Add it.
378
379 2019-02-02 Florian Weimer <fweimer@redhat.com>
380
381 [BZ #14829]
382 * manual/resource.texi (Basic Scheduling Functions): Add
383 portability note. Change process to task throughout the section.
384 Remove incorrect comment about sched_yield as it affects
385 tasks/threads, not entire processes.
386 * sysdeps/unix/sysv/linux/bits/posix_opt.h
387 (_POSIX_PRIORITY_SCHEDULING): Update comment.
388
389 2019-02-01 Joseph Myers <joseph@codesourcery.com>
390
391 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
392 * configure: Regenerated.
393 * manual/install.texi (Tools for Compilation): Update minimum GCC
394 version.
395 * INSTALL: Regenerated.
396
397 2019-02-01 Florian Weimer <fweimer@redhat.com>
398
399 * support/support_test_compare_string.c
400 (support_test_compare_string): Use "string" in error message.
401 * support/tst-test_compare_string.c (do_test): Adjust.
402
403 2019-02-01 Florian Weimer <fweimer@redhat.com>
404
405 * support/support_format_address_family.c
406 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
407
408 2019-02-01 Florian Weimer <fweimer@redhat.com>
409
410 * manual/socket.texi (Internet Address Formats): Clarify the byte
411 order of struct sockaddr_in, struct sockaddr_in6. Document
412 sin6_flowinfo and sin6_scope_id.
413
414 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
415
416 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
417 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
418 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
419 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
420 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
421 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
422
423 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
424
425 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
426 [!MEMCHR](MEMCHR): Set to __memchr.
427 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
428 Add memchr_generic and memchr_nosimd.
429 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
430 (__libc_ifunc_impl_list): Add memchr ifuncs.
431 * sysdeps/aarch64/multiarch/memchr.c: New file.
432 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
433 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
434
435 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
436
437 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
438 Add memset_emag.
439 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
440 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
441 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
442 Add IS_EMAG check for ifunc dispatch.
443 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
444 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
445
446 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
447
448 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
449 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
450 Add emag.
451 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
452 New macro.
453
454 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
455
456 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
457
458 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
459
460 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
461 syscall-template file.
462
463 2019-01-31 Carlos O'Donell <carlos@redhat.com>
464 Torvald Riegel <triegel@redhat.com>
465 Rik Prohaska <prohaska7@gmail.com>
466
467 [BZ# 23844]
468 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
469 tst-rwlock-trywrlock-stall.
470 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
471 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
472 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
473 Set __wrphase_fute to 1 only if we started the write phase.
474 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
475 * nptl/tst-rwlock-trywrlock-stall.c: New file.
476 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
477 * support/xpthread_rwlock_destroy.c: New file.
478 * support/xthread.h: Declare xpthread_rwlock_destroy.
479
480 2019-02-01 Joseph Myers <joseph@codesourcery.com>
481
482 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
483 version to 4.0.2.
484
485 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
486
487 [BZ #24051]
488 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
489 * libio/fileops.c (_IO_new_file_underflow): Likewise
490 * libio/wfileops.c (_IO_wfile_underflow): Likewise
491 * libio/putchar.c (putchar): Likewise.
492 * libio/putchar_u.c (putchar_unlocked): Likewise.
493 * libio/putwchar.c (putchar): Likewise.
494 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
495 * libio/tst-bz24051.c: New test.
496 * libio/Makefile (tests): Add tst-bz24051
497
498 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
499
500 regex: fix read overrun [BZ #24114]
501 Problem found by AddressSanitizer, reported by Hongxu Chen in:
502 https://debbugs.gnu.org/34140
503 * posix/regexec.c (proceed_next_node):
504 Do not read past end of input buffer.
505
506 2019-01-31 Florian Weimer <fweimer@redhat.com>
507
508 [BZ #24059]
509 * nss/nss_files/files-alias.c (get_next_alias): Handle
510 continuation line without newline at the end.
511 * nss/tst-nss-files-alias-truncated.c: New file.
512 * nss/Makefile [$(build-shared)] (tests): Add
513 tst-nss-files-alias-truncated.
514 (tst-nss-files-alias-truncated): Link with libnss_files.so.
515 * support/namespace.h (struct support_chroot_configuration): Add
516 aliases member.
517 (struct support_chroot): Add path_aliases member.
518 * support/support_chroot.c (support_chroot_create): Handle
519 aliases.
520 (support_chroot_free): Free path_aliases.
521
522 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
523
524 * version.h (RELEASE): Set to "development".
525 (VERSION): Set to "2.29.9000".
526 * NEWS: Add section for 2.30.
527
528 * version.h (RELEASE): Set to "stable".
529 (VERSION): Set to "2.29".
530 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
531
532 * NEWS: Add the list of bugs fixed in 2.29.
533 * manual/contrib.texi: Update contributors list with some more
534 names.
535 * manual/install.texi: Update latest versions of packages
536 tested.
537 * INSTALL: Regenerated.
538
539 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
540
541 * po/be.po: Update translations.
542 * po/bg.po: Likewise.
543 * po/ca.po: Likewise.
544 * po/cs.po: Likewise.
545 * po/da.po: Likewise.
546 * po/de.po: Likewise.
547 * po/el.po: Likewise.
548 * po/eo.po: Likewise.
549 * po/es.po: Likewise.
550 * po/fi.po: Likewise.
551 * po/fr.po: Likewise.
552 * po/gl.po: Likewise.
553 * po/hr.po: Likewise.
554 * po/hu.po: Likewise.
555 * po/ia.po: Likewise.
556 * po/id.po: Likewise.
557 * po/it.po: Likewise.
558 * po/ja.po: Likewise.
559 * po/ko.po: Likewise.
560 * po/lt.po: Likewise.
561 * po/nb.po: Likewise.
562 * po/nl.po: Likewise.
563 * po/pl.po: Likewise.
564 * po/pt_BR.po: Likewise.
565 * po/ru.po: Likewise.
566 * po/rw.po: Likewise.
567 * po/sk.po: Likewise.
568 * po/sl.po: Likewise.
569 * po/sv.po: Likewise.
570 * po/tr.po: Likewise.
571 * po/uk.po: Likewise.
572 * po/vi.po: Likewise.
573 * po/zh_CN.po: Likewise.
574 * po/zh_TW.po: Likewise.
575
576 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
577
578 [BZ #24130]
579 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
580 of $f3 register on $y_is_neg path.
581
582 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
583
584 [BZ #24110]
585 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
586 sigaltstack.ss_flags.
587
588 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
589
590 [BZ #23758]
591 * manual/time.texi (strftime): Document "%Ey".
592 * time/strftime_l.c (__strftime_internal): Set the default width
593 padding with zero of "%Ey" to 2.
594
595 [BZ #24096]
596 * manual/time.texi (strftime): Document "%EC" and "%EY".
597 * time/Makefile (tests): Add tst-strftime2.
598 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
599 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
600 override padding for "%Ey".
601 If an optional flag ('_' or '-') is specified to "%EY", interpret the
602 "%Ey" in the subformat as if decorated with that flag.
603 * time/tst-strftime2.c: New file.
604
605 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
606
607 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
608 are not defined.
609
610 [BZ #24122]
611 * elf/Makefile (tests): Add tst-audit13.
612 (modules-names): Add tst-audit13mod1.
613 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
614 rule.
615 * elf/rtld.c (dl_main): Handle invalid audit module version.
616 * elf/tst-audit13.c: New file.
617 * elf/tst-audit13mod1.c: Likewise.
618
619 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
620
621 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
622 returned by __hurd_at_flags.
623 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
624 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
625 directly instead of __hurd_file_name_lookup.
626
627 2019-01-21 Joseph Myers <joseph@codesourcery.com>
628
629 * scripts/build-many-glibcs.py (Context.checkout): Default
630 binutils version to 2.32 branch.
631
632 2019-01-21 Florian Weimer <fweimer@redhat.com>
633
634 [BZ #20018]
635 CVE-2016-10739
636 resolv: Reject trailing characters in host names
637 * include/arpa/inet.h (__inet_aton_exact): Declare.
638 (inet_aton): Remove hidden prototype. No longer used internally.
639 * nscd/gai.c (__inet_aton): Do not define.
640 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
641 * nss/digits_dots.c (__inet_aton): Likewise.
642 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
643 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
644 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
645 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
646 (tst-resolv-trailing): Likewise.
647 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
648 libc.
649 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
650 Make static. Add endp parameter.
651 (__inet_aton_exact): New function.
652 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
653 (__inet_addr): Call inet_aton_end.
654 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
655 not just IPv6. Call __inet_aton_exact.
656 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
657 (tests): Make const. Add additional test cases with trailing
658 characters.
659 (do_test): Use array_length.
660 * resolv/tst-inet_aton_exact.c: New file.
661 * resolv/tst-resolv-trailing.c: Likewise.
662 * resolv/tst-resolv-nondecimal.c: Likewise.
663 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
664
665 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
666
667 [BZ# 24097]
668 CVE-2019-6488
669 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
670 Clear the upper 32 bits of RSI register.
671 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
672 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
673 and tst-size_t-wcsnlen.
674 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
675 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
676
677 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
678
679 [BZ# 24097]
680 CVE-2019-6488
681 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
682 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
683 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
684 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
685 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
686
687 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
688
689 [BZ# 24097]
690 CVE-2019-6488
691 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
692 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
693 * sysdeps/x86_64/strcmp.S: Likewise.
694 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
695 tst-size_t-strncmp and tst-size_t-wcsncmp.
696 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
697 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
698 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
699
700 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
701
702 [BZ# 24097]
703 CVE-2019-6488
704 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
705 RDX_LP for length. Clear the upper 32 bits of RDX register.
706 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
707 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
708 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
709 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
710
711 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
712
713 [BZ# 24097]
714 CVE-2019-6488
715 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
716 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
717 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
718 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
719
720 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
721
722 [BZ# 24097]
723 CVE-2019-6488
724 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
725 length. Clear the upper 32 bits of RDX register.
726 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
727 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
728 Likewise.
729 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
730 Likewise.
731 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
732 tst-size_t-wmemchr.
733 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
734
735 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
736
737 [BZ# 24097]
738 CVE-2019-6488
739 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
740 length. Clear the upper 32 bits of RDX register.
741 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
742 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
743 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
744 tst-size_t-wmemcmp.
745 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
746 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.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/memchr.S: Use RDX_LP for length. Clear the
753 upper 32 bits of RDX register.
754 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
755 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
756 tst-size_t-wmemchr.
757 * sysdeps/x86_64/x32/test-size_t.h: New file.
758 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
759 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
760
761 2019-01-18 Florian Weimer <fweimer@redhat.com>
762
763 [BZ #24112]
764 resolv: Do not send queries for non-host-names in nss_dns.
765 * resolv/nss_dns/dns-host.c (check_name): New function.
766 (_nss_dns_gethostbyname2_r): Use it.
767 (_nss_dns_gethostbyname_r): Likewise.
768 (_nss_dns_gethostbyname4_r): Likewise.
769
770 2019-01-21 Florian Weimer <fweimer@redhat.com>
771
772 * resolv/inet_addr.c: Reformat to GNU style.
773 (__inet_addr, __inet_aton): Update comment.
774
775 2019-01-18 Florian Weimer <fweimer@redhat.com>
776
777 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
778 ("malloc: Use current (C11-style) atomics for fastbin access").
779 This commit introduces a substantial performance regression on
780 POWER and Aarch64.
781 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
782 (REMOVE_FB): Define.
783 (_int_malloc): Use it and reindent.
784 (_int_free): Use CAS loop with
785 catomic_compare_and_exchange_val_rel.
786 (malloc_consolidate): Use atomic_exchange_acq.
787
788
789 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
790
791 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
792 -Wl,-z,now.
793 (LDFLAGS-tst-minsigstksz-2): Likewise.
794 (LDFLAGS-tst-minsigstksz-3): Likewise.
795 (LDFLAGS-tst-minsigstksz-3a): Likewise.
796 (LDFLAGS-tst-minsigstksz-4): Likewise.
797
798 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
799
800 * manual/time.texi (strftime): Fix the wording to "alternative" rather
801 than "alternate".
802
803 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
804
805 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
806
807 2019-01-16 Zack Weinberg <zackw@panix.com>
808
809 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
810 (xget_sigstack_location): New test support functions.
811 * support/xsigstack.c: New file, implementing them.
812 * support/tst-xsigstack.c: New test for them.
813 * support/Makefile: Update.
814
815 * signal/tst-minsigstksz-1.c
816 * signal/tst-minsigstksz-2.c
817 * signal/tst-minsigstksz-3.c
818 * signal/tst-minsigstksz-3a.c
819 * signal/tst-minsigstksz-4.c: New tests.
820 * signal/Makefile: Run them.
821
822 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
823
824 * po/libc.pot: Regenerate.
825
826 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
827
828 * math/libm-test-fma.inc (fma_test_data): Set
829 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
830
831 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
832
833 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
834 (do_test): Changed __vector __int128_t to __vector unsigned int.
835
836 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
837
838 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
839 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
840 stpcpy-avx2 and stpncpy-avx2.
841 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
842 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
843 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
844 and __stpncpy_avx2.
845 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
846 ifunc-strcpy.h}: rename header for a more generic name.
847 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
848 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
849 AVX unaligned load is fast and vzeroupper is preferred.
850 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
851 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
852 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
853 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
854 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
855 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
856
857 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
858
859 * argp/argp-help.c: Fix typo in comment.
860 * misc/sys/cdefs.h: Likewise.
861 * posix/regexec.c (sift_states_iter_mb): Likewise.
862 * socket/sockatmark.c: Likewise.
863 * socket/sys/socket.h: Likewise.
864 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
865 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
866 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
867 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
868 * sysdeps/unix/sockatmark.c: Likewise.
869 * time/strptime_l.c: Likewise.
870
871 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
872
873 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
874 missing space after the cast of "_NL_CURRENT".
875
876 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
877
878 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
879 ifdef to fix read of VSCR.
880 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
881 tst-ucontext-ppc64-vscr.c to test list.
882 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
883
884 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
885
886 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
887 fall-through.
888
889 2019-01-09 Jim Wilson <jimw@sifive.com>
890
891 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
892
893 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
894
895 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
896 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
897 __memcpy_falkor for ares.
898 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
899 Add new define.
900 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
901 Add ares cpu.
902
903 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
904
905 [BZ #24066]
906 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
907 4_FP_W_TYPEs are used for IEEE quad precision.
908 * soft-fp/extendhftf2.c: Likewise.
909 * soft-fp/extendsftf2.c: Likewise.
910 * soft-fp/extendxftf2.c: Likewise.
911 * soft-fp/trunctfdf2.c: Likewise.
912 * soft-fp/trunctfhf2.c: Likewise.
913 * soft-fp/trunctfsf2.c: Likewise.
914 * soft-fp/trunctfxf2.c: Likewise.
915 * sysdeps/alpha/ots_cvttx.c: Likewise.
916 * sysdeps/alpha/ots_cvtxt.c: Likewise.
917 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
918 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
919 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
920 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
921 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
922 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
923 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
924 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
925 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
926 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
927 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
928 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
929 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
930 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
931 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
932 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
933
934 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
935
936 [BZ #24024]
937 * Makeconfig: Build libm with -fno-math-errno but build the remaining
938 code with -fmath-errno.
939 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
940 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
941 * string/test-strerror-errno.c: New file.
942
943 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
944
945 [BZ #24046]
946 * localedata/locales/en_US (date_fmt): Add, set to
947 "%a %d %b %Y %r %Z".
948
949 2019-01-07 Florian Weimer <fweimer@redhat.com>
950
951 [BZ #24063]
952 * manual/arith.texi (Math Error Reporting): Use @code{errno}
953 instead of @var{errno}.
954 (Parsing of Integers): Likewise.
955 (Parsing of Floats): Likewise.
956 * manual/filesys.texi (Working with Directory Trees): Likewise.
957 (Temporary Files): Likewise.
958 * manual/job.texi (Terminal Access Functions): Likewise.
959 * manual/llio.texi (Synchronizing I/O): Likewise.
960 * manual/math.texi (SVID Random): Likewise.
961 * manual/message.texi (The catgets Functions): Likewise.
962 (Translation with gettext): Likewise.
963 (Locating gettext catalog): Likewise.
964 (Charset conversion in gettext): Likewise.
965 * manual/nss.texi (NSS Module Function Internals): Likewise.
966 * manual/search.texi (Hash Search Function): Likewise.
967 * manual/setjmp.texi (System V contexts): Likewise.
968 * manual/time.texi (Sleeping): Likewise.
969 * manual/users.texi (Lookup User): Likewise.
970 (Lookup Group): Likewise.
971
972 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
973
974 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
975 fix typo.
976
977 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
978
979 [BZ #19444]
980 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
981 __builtin_unreachable for default case in switch.
982 (__ieee754_yn): Likewise.
983 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
984 (__ieee754_ynl): Likewise.
985 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
986 (__ieee754_ynl): Likewise.
987 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
988 (__ieee754_ynl): Likewise.
989
990 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
991
992 * manual/maint.texi: Use @{ and @}.
993
994 2019-01-04 Florian Weimer <fweimer@redhat.com>
995
996 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
997 function.
998 (do_in_chroot_1): Call it.
999 (run_chroot_tests):
1000 Improve error reporting in case it is not possible to create a
1001 collision for the PTY name required by the test.
1002
1003 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1004
1005 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1006 lll_wait_tid with timeout.
1007 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1008 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1009 futex_reltimed_wait_cancelable for cancelabla mode.
1010 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1011 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1012 macros.
1013 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1014 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1015 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1016 SYSCALL_CANCEL_NCS): New macro.
1017 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1018 (lll_timedwait_tid): Remove macro.
1019 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1020 Likewise.
1021 (lll_timedwait_tid): Likewise.
1022 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1023 Likewise.
1024 (lll_timedwait_tid): Likewise.
1025 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1026 Likewise.
1027 (lll_timedwait_tid): Likewise.
1028 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1029 Use INTERNAL_SYSCALL_CANCEL.
1030 * sysdeps/unix/sysv/linux/futex-internal.h
1031 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1032 instead of __pthread_{enable,disable}_asynccancel.
1033 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1034 (lll_futex_wait_cancel): New macro.
1035
1036 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1037 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1038
1039 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1040 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1041
1042 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1043 in backtrace analysis.
1044 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1045 side-effects.
1046 (tf_send): Likewise.
1047
1048 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1049 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1050 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1051 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1052 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1053 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1054 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1055 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1056 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1057 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1058 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1059 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1060 Likewise.
1061 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1062 tst-cancel-wrappers.sh.
1063 (generated): Remove tst-cancel-wrappers.out.
1064 (tst-cancel-wrappers.out): Remove rule.
1065 * nptl/tst-cancel-wrappers.sh: Remove file.
1066
1067 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1068
1069 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1070 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1071 Update.
1072
1073 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1074
1075 [BZ #23640]
1076 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1077 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1078 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1079 close-on-exec reset for adddup2 file action.
1080 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1081
1082 2019-01-03 Zack Weinberg <zackw@panix.com>
1083
1084 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1085 parameter. Only use deprecated scanf when __USE_GNU is defined
1086 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1087 than 201103L, whichever is relevant for the language being compiled.
1088
1089 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1090 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1091 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1092 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1093 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1094
1095 * libio/iovsscanf.c
1096 * libio/fwscanf.c
1097 * libio/iovswscanf.c
1098 * libio/swscanf.c
1099 * libio/vscanf.c
1100 * libio/vwscanf.c
1101 * libio/wscanf.c
1102 * stdio-common/fscanf.c
1103 * stdio-common/scanf.c
1104 * stdio-common/vfscanf.c
1105 * stdio-common/vfwscanf.c
1106 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1107 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1108 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1109 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1110 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1111 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1112 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1113 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1114 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1115 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1116 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1117 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1118 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1119 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1120 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1121
1122 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1123 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1124 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1125 not sscanf.
1126 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1127 with a preprocessor macro.
1128
1129 * stdio-common/bug21.c, stdio-common/scanf14.c:
1130 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1131 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1132 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1133 to xscanf, xfscanf, xsscanf.
1134
1135 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1136 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1137 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1138 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1139 xfscanf, xsscanf.
1140 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1141 override feature selection macros or provide definitions of u_char etc.
1142 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1143 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1144 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1145 with -std=gnu89.
1146
1147 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1148
1149 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1150 bits/termios-misc.h.
1151 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1152 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1153 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1154 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1155 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1156 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1157
1158 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1159 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1160 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1161 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1162 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1163 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1164 termios-misc.h.
1165 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1166 (sysdep_headers): Add termios-misc.h.
1167
1168 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1169 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1170 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1171
1172 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1173 termios-tcflow.h.
1174 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1175 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1176 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1177 TCSAFLUSH): Move to termios-tcflow.h.
1178 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1179 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1180 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1181 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1182
1183 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1184 termios-c_lflag.h.
1185 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1186 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1187 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1188 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1189 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1190 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1191 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1192 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1193 Likewise.
1194 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1195 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1196 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1197 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1198
1199 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1200 termios-c_cflag.h.
1201 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1202 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1203 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1204 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1205 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1206 termios-c_cflag.h.
1207 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1208 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1209 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1210 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1211
1212 [BZ #23783]
1213 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1214 termios-baud.h.
1215 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1216 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1217 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1218 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1219 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1220 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1221 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1222 __MAX_BAUD): Move to termios-baud.h.
1223 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1224 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1225 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1226 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1227 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1228
1229 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1230 termios-c_oflag.h.
1231 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1232 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1233 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1234 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1235 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1236 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1237 termios-c_oflag.h.
1238 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1239 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1240 FFR1): Likewise.
1241 [USE_MISC] (XTABS): Likewise.
1242 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1243 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1244 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1245 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1246
1247 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1248 termios-c_iflag.h.
1249 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1250 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1251 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1252 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1253 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1254 IUTF8): Move to termios-c_iflag.h.
1255 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1256 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1257 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1258 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1259
1260 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1261 termios-cc.h.
1262 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1263 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1264 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1265 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1266 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1267 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1268 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1269 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1270 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1271 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1272 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1273 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1274
1275 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1276 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1277 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1278 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1279 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1280 termios-struct.h.
1281 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1282 termios-struct.h.
1283 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1284 Likewise.
1285 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1286 Likewise.
1287 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1288 Likewise.
1289 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1290 Likewise.
1291 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1292 _HAVE_C_OSPEED): Define.
1293 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1294 _HAVE_C_OSPEED): Likewise.
1295 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1296 _HAVE_C_OSPEED): Likewise.
1297 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1298 (cfsetospeed): Check for define value instead of existence.
1299 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1300 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1301 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1302 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1303 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1304
1305 [BZ #17783]
1306 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1307 Define.
1308 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1309 (TIOCSER_TEMT): Likewise.
1310 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1311 (TEOCSER_TEMT): Likewise.
1312
1313 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1314
1315 [BZ #24011]
1316 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1317
1318 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1319
1320 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1321
1322 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1323
1324 * sysdeps/htl/pt-barrierattr-setpshared.c
1325 (pthread_barrierattr_setpshared): Add stub warning.
1326 * sysdeps/htl/pt-condattr-setpshared.c
1327 (pthread_condattr_setpshared): Likewise.
1328 * sysdeps/htl/pt-mutexattr-setpshared.c
1329 (pthread_mutexattr_setpshared): Likewise.
1330 * sysdeps/htl/pt-rwlockattr-setpshared.c
1331 (pthread_rwlockattr_setpshared): Likewise.
1332 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1333 (pthread_mutexattr_setpshared): Likewise.
1334
1335 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1336
1337 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1338 constants to match with Linux 4.20.
1339
1340 * sysdeps/mips/mips32/libm-test-ulps: Update.
1341 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1342
1343 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1344
1345 [BZ #24034]
1346 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1347 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1348 than __typeof (...) for the a_ptr variable.
1349
1350 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1351
1352 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1353 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1354 * libio/Makefile (tests): Add tst-sprintf-ub and
1355 tst-sprintf-chk-ub.
1356 (CFLAGS-tst-sprintf-ub.c): New variable.
1357 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1358 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1359 destination buffer and check for overflows in fortified mode.
1360 * libio/libioP.h (PRINTF_CHK): New macro.
1361 * libio/tst-sprintf-chk-ub.c: New file.
1362 * libio/tst-sprintf-ub.c: Likewise.
1363
1364 2019-01-02 Florian Weimer <fweimer@redhat.com>
1365
1366 [BZ #24018]
1367 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1368 failure.
1369
1370 2019-01-02 Florian Weimer <fweimer@redhat.com>
1371
1372 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1373
1374 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1375
1376 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1377 macro.
1378
1379 * sysdeps/unix/sysv/linux/netpacket/packet.h
1380 (PACKET_IGNORE_OUTGOING): New macro.
1381
1382 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1383 macro.
1384
1385 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1386 version to 4.20.
1387 (riscv_flush_icache): New syscall.
1388
1389 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1390 trailing whitespace removed.
1391 * scripts/config.guess: Update to version 2019-01-01.
1392 * scripts/config.sub: Update to version 2019-01-01.
1393 * scripts/move-if-change: Update from gnulib.
1394
1395 * NEWS: Update copyright dates.
1396 * catgets/gencat.c (print_version): Likewise.
1397 * csu/version.c (banner): Likewise.
1398 * debug/catchsegv.sh: Likewise.
1399 * debug/pcprofiledump.c (print_version): Likewise.
1400 * debug/xtrace.sh (do_version): Likewise.
1401 * elf/ldconfig.c (print_version): Likewise.
1402 * elf/ldd.bash.in: Likewise.
1403 * elf/pldd.c (print_version): Likewise.
1404 * elf/sotruss.sh: Likewise.
1405 * elf/sprof.c (print_version): Likewise.
1406 * iconv/iconv_prog.c (print_version): Likewise.
1407 * iconv/iconvconfig.c (print_version): Likewise.
1408 * locale/programs/locale.c (print_version): Likewise.
1409 * locale/programs/localedef.c (print_version): Likewise.
1410 * login/programs/pt_chown.c (print_version): Likewise.
1411 * malloc/memusage.sh (do_version): Likewise.
1412 * malloc/memusagestat.c (print_version): Likewise.
1413 * malloc/mtrace.pl: Likewise.
1414 * manual/libc.texinfo: Likewise.
1415 * nptl/version.c (banner): Likewise.
1416 * nscd/nscd.c (print_version): Likewise.
1417 * nss/getent.c (print_version): Likewise.
1418 * nss/makedb.c (print_version): Likewise.
1419 * posix/getconf.c (main): Likewise.
1420 * scripts/test-installation.pl: Likewise.
1421 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1422
1423 * All files with FSF copyright notices: Update copyright dates
1424 using scripts/update-copyrights.
1425 * locale/programs/charmap-kw.h: Regenerated.
1426 * locale/programs/locfile-kw.h: Likewise.
1427
1428 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1429
1430 * timezone/zdump.c: Update from tzcode 2018i.
1431 * timezone/zic.c: Likewise.
1432
1433 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1434
1435 regex: improve Gnulib port to AIX
1436 From the glibc point of view, this removes duplicate macro
1437 definitions and is obviously safe.
1438 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1439 * posix/regex_internal.h:
1440 (__attribute__, __attribute_warn_unused_result__):
1441 Remove; already defined elsewhere.
1442
1443 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1444
1445 [BZ #24027]
1446 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1447 copying operation. (ncopies had the wrong type, resulting in an
1448 integer wraparound and too few elements being copied.)
1449
1450 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1451
1452 [BZ #24022]
1453 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1454 <asm/syscalls.h> exists with __has_include__ before including it.
1455
1456 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1457
1458 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1459 version to 4.20.
1460
1461 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1462
1463 * hurd/lookup-retry: Include <unistd.h>.
1464 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1465 Release it on return. Handle "pid" magical lookup retry.
1466
1467 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1468
1469 [BZ #10496]
1470 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1471 (t_fmt_ampm): Likewise.
1472 * localedata/locales/aa_ER (t_fmt): Likewise.
1473 (t_fmt_ampm): Likewise.
1474 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1475 (t_fmt_ampm): Likewise.
1476 * localedata/locales/aa_ET (t_fmt): Likewise.
1477 (t_fmt_ampm): Likewise.
1478 * localedata/locales/am_ET (t_fmt): Likewise.
1479 (t_fmt_ampm): Likewise.
1480 * localedata/locales/byn_ER (t_fmt): Likewise.
1481 (t_fmt_ampm): Likewise.
1482 * localedata/locales/om_ET (t_fmt): Likewise.
1483 (t_fmt_ampm): Likewise.
1484 * localedata/locales/sid_ET (t_fmt): Likewise.
1485 (t_fmt_ampm): Likewise.
1486 * localedata/locales/so_DJ (t_fmt): Likewise.
1487 (t_fmt_ampm): Likewise.
1488 * localedata/locales/so_ET (t_fmt): Likewise.
1489 (t_fmt_ampm): Likewise.
1490 * localedata/locales/so_SO (t_fmt): Likewise.
1491 (t_fmt_ampm): Likewise.
1492 * localedata/locales/ti_ER (t_fmt): Likewise.
1493 (t_fmt_ampm): Likewise.
1494 * localedata/locales/ti_ET (t_fmt): Likewise.
1495 (t_fmt_ampm): Likewise.
1496 * localedata/locales/tig_ER (t_fmt): Likewise.
1497 (t_fmt_ampm): Likewise.
1498 * localedata/locales/wal_ET (t_fmt): Likewise.
1499 (t_fmt_ampm): Likewise.
1500
1501 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1502 * localedata/locales/ar_IN (t_fmt): Likewise.
1503 * localedata/locales/bhb_IN (t_fmt): Likewise.
1504 * localedata/locales/bho_IN (t_fmt): Likewise.
1505 * localedata/locales/bi_VU (t_fmt): Likewise.
1506 * localedata/locales/bn_BD (t_fmt): Likewise.
1507 * localedata/locales/bn_IN (t_fmt): Likewise.
1508 * localedata/locales/brx_IN (t_fmt): Likewise.
1509 * localedata/locales/doi_IN (t_fmt): Likewise.
1510 * localedata/locales/en_HK (t_fmt): Likewise.
1511 (t_fmt_ampm): Likewise.
1512 * localedata/locales/en_IN (t_fmt): Likewise.
1513 * localedata/locales/en_PH (t_fmt): Likewise.
1514 * localedata/locales/gu_IN (t_fmt): Likewise.
1515 * localedata/locales/hi_IN (t_fmt): Likewise.
1516 * localedata/locales/hif_FJ (t_fmt): Likewise.
1517 * localedata/locales/hne_IN (t_fmt): Likewise.
1518 * localedata/locales/kn_IN (t_fmt): Likewise.
1519 * localedata/locales/kok_IN (t_fmt): Likewise.
1520 * localedata/locales/ks_IN (t_fmt): Likewise.
1521 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1522 * localedata/locales/mag_IN (t_fmt): Likewise.
1523 * localedata/locales/mai_IN (t_fmt): Likewise.
1524 * localedata/locales/mjw_IN (t_fmt): Likewise.
1525 * localedata/locales/ml_IN (t_fmt): Likewise.
1526 * localedata/locales/mni_IN (t_fmt): Likewise.
1527 * localedata/locales/mr_IN (t_fmt): Likewise.
1528 * localedata/locales/ms_MY (t_fmt): Likewise.
1529 * localedata/locales/pa_IN (t_fmt): Likewise.
1530 * localedata/locales/raj_IN (t_fmt): Likewise.
1531 * localedata/locales/sa_IN (t_fmt): Likewise.
1532 * localedata/locales/sat_IN (t_fmt): Likewise.
1533 * localedata/locales/sd_IN (t_fmt): Likewise.
1534 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1535 * localedata/locales/tcy_IN (t_fmt): Likewise.
1536 * localedata/locales/the_NP (t_fmt): Likewise.
1537 * localedata/locales/to_TO (t_fmt): Likewise.
1538 * localedata/locales/ur_IN (t_fmt): Likewise.
1539
1540 * localedata/locales/hif_FJ (d_t_fmt): Set to
1541 "%A %d %b %Y %I:%M:%S %p".
1542 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1543
1544 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1545 * localedata/locales/ar_BH (t_fmt): Likewise.
1546 * localedata/locales/ar_DZ (t_fmt): Likewise.
1547 * localedata/locales/ar_EG (t_fmt): Likewise.
1548 * localedata/locales/ar_IQ (t_fmt): Likewise.
1549 * localedata/locales/ar_JO (t_fmt): Likewise.
1550 * localedata/locales/ar_KW (t_fmt): Likewise.
1551 * localedata/locales/ar_LB (t_fmt): Likewise.
1552 * localedata/locales/ar_LY (t_fmt): Likewise.
1553 * localedata/locales/ar_OM (t_fmt): Likewise.
1554 * localedata/locales/ar_QA (t_fmt): Likewise.
1555 * localedata/locales/ar_SD (t_fmt): Likewise.
1556 * localedata/locales/ar_SS (t_fmt): Likewise.
1557 * localedata/locales/ar_SY (t_fmt): Likewise.
1558 * localedata/locales/ar_TN (t_fmt): Likewise.
1559 * localedata/locales/ar_YE (t_fmt): Likewise.
1560
1561 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1562 (t_fmt_ampm): Likewise.
1563 * localedata/locales/gez_ET (t_fmt): Likewise.
1564 (t_fmt_ampm): Likewise.
1565
1566 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1567 (t_fmt_ampm): Likewise.
1568 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1569
1570 * localedata/locales/zh_HK (t_fmt):
1571 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1572
1573 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1574 because this locale does not use the 12-hour clock.
1575 (t_fmt): Set to "%Z %H:%M:%S".
1576 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1577
1578 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1579 because this locale does not use the 12-hour clock.
1580 (t_fmt): Set to "%H:%M:%S %Z".
1581 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1582
1583 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1584 because this locale does not use the 12-hour clock.
1585 (t_fmt): Set to "%T".
1586 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1587 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1588
1589 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1590 because this locale does not use the 12-hour clock.
1591 (t_fmt): Set to "%H:%M:%S %Z".
1592 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1593
1594 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1595 because this locale does not use the 12-hour clock.
1596 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1597 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1598
1599 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1600
1601 [BZ #10496]
1602 [BZ #23724]
1603 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1604 (t_fmt_ampm): Likewise.
1605 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1606 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1607 (d_fmt): Set to "%-d.%-m.%y".
1608
1609 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1610
1611 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1612 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1613 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1614 Likewise.
1615 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1616 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1617 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1618 function.
1619 * support/blob_repeat.c (check_mul_overflow_size_t,
1620 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1621
1622 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1623
1624 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1625
1626 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1627
1628 regex: simplify Gnulib port
1629 This simplifies the code, by removing stuff intended for porting
1630 to Gnulib but no longer needed there.
1631 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1632 uses of libc_hidden_def, weak_alias.
1633 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1634 _Restrict_ except for public-facing headers.
1635 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1636 Remove; already defined elsewhere.
1637 * posix/regex.c, posix/regex_internal.h:
1638 Use __GNUC_PREREQ instead of rolling our own.
1639 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1640
1641 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1642
1643 * benchtests/bench-strlen.c (generic_strlen): New function.
1644 (memchr_strlen): New function.
1645
1646 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1649 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1650 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1651
1652 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1653
1654 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1655
1656 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1657
1658 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1659 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1660 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1661 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1662 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1663 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1664 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1665
1666 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1667
1668 [BZ #24023]
1669 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1670 PLT reference in libc.so.
1671 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1672 _Q_lltoq and _Q_qtod PLT references in libc.so.
1673
1674 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1675
1676 * benchtests/bench-memchr.c: Cleanup defines.
1677 * benchtests/bench-memcmp.c: Likewise.
1678 * benchtests/bench-memset.c: Likewise.
1679 * benchtests/bench-memset-large.c: Likewise.
1680 * benchtests/bench-memset-walk.c: Likewise.
1681 * benchtests/bench-stpcpy.c: Likewise.
1682 * benchtests/bench-stpncpy.c: Likewise.
1683 * benchtests/bench-strcat.c: Likewise.
1684 * benchtests/bench-strchr.c: Likewise.
1685 * benchtests/bench-strcmp.c: Likewise.
1686 * benchtests/bench-strcpy.c: Likewise.
1687 * benchtests/bench-strcspn.c: Likewise.
1688 * benchtests/bench-string.h: Likewise.
1689 * benchtests/bench-strlen.c: Likewise.
1690 * benchtests/bench-strncat.c: Likewise.
1691 * benchtests/bench-strncmp.c: Likewise.
1692 * benchtests/bench-strncpy.c: Likewise.
1693 * benchtests/bench-strnlen.c: Likewise.
1694 * benchtests/bench-strpbrk.c: Likewise.
1695 * benchtests/bench-strrchr.c: Likewise.
1696 * benchtests/bench-strspn.c: Likewise.
1697
1698 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1699
1700 * stdlib/longlong.h: Update from GCC.
1701
1702 [BZ #23993]
1703 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1704 * configure: Regenerated.
1705 * manual/install.texi (Tools for Compilation): Update minimum GCC
1706 version.
1707 * INSTALL: Regenerated.
1708
1709 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1710
1711 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1712
1713 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1714
1715 * malloc/malloc.c (mremap_chunk): Additional checks.
1716
1717 2018-12-21 Mao Han <han_mao@c-sky.com>
1718
1719 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1720 * scripts/build-many-glibcs.py: Add C-SKY targets.
1721 * sysdeps/csky/Implies: New file.
1722 * sysdeps/csky/Makefile: Likewise.
1723 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1724 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1725 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1726 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1727 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1728 * sysdeps/csky/abiv2/memmove.S: Likewise.
1729 * sysdeps/csky/abiv2/memset.S: Likewise.
1730 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1731 * sysdeps/csky/abiv2/start.S: Likewise.
1732 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1733 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1734 * sysdeps/csky/abiv2/strlen.S: Likewise.
1735 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1736 * sysdeps/csky/abort-instr.h: Likewise.
1737 * sysdeps/csky/atomic-machine.h: Likewise.
1738 * sysdeps/csky/bits/endian.h: Likewise.
1739 * sysdeps/csky/bits/fenv.h: Likewise.
1740 * sysdeps/csky/bits/link.h: Likewise.
1741 * sysdeps/csky/bits/setjmp.h: Likewise.
1742 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1743 * sysdeps/csky/bsd-setjmp.S: Likewise.
1744 * sysdeps/csky/configure: Likewise.
1745 * sysdeps/csky/configure.ac: Likewise.
1746 * sysdeps/csky/dl-machine.h: Likewise.
1747 * sysdeps/csky/dl-procinfo.c: Likewise.
1748 * sysdeps/csky/dl-procinfo.h: Likewise.
1749 * sysdeps/csky/dl-sysdep.h: Likewise.
1750 * sysdeps/csky/dl-tls.h: Likewise.
1751 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1752 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1753 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1754 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1755 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1756 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1757 * sysdeps/csky/fpu/fegetround.c: Likewise.
1758 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1759 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1760 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1761 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1762 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1763 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1764 * sysdeps/csky/fpu/fesetround.c: Likewise.
1765 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1766 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1767 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1768 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1769 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1770 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1771 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1772 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1773 * sysdeps/csky/fpu_control.h: Likewise.
1774 * sysdeps/csky/gccframe.h: Likewise.
1775 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
1776 * sysdeps/csky/ldsodefs.h: Likewise.
1777 * sysdeps/csky/libc-tls.c: Likewise.
1778 * sysdeps/csky/linkmap.h: Likewise.
1779 * sysdeps/csky/machine-gmon.h: Likewise.
1780 * sysdeps/csky/memusage.h: Likewise.
1781 * sysdeps/csky/nofpu/Implies: Likewise.
1782 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
1783 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
1784 * sysdeps/csky/nptl/Makefile: Likewise.
1785 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
1786 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
1787 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
1788 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
1789 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
1790 * sysdeps/csky/nptl/tls.h: Likewise.
1791 * sysdeps/csky/preconfigure: Likewise.
1792 * sysdeps/csky/sfp-machine.h: Likewise.
1793 * sysdeps/csky/sotruss-lib.c: Likewise.
1794 * sysdeps/csky/stackinfo.h: Likewise.
1795 * sysdeps/csky/sysdep.h: Likewise.
1796 * sysdeps/csky/tininess.h: Likewise.
1797 * sysdeps/csky/tst-audit.h: Likewise.
1798 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
1799 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
1800 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
1801 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
1802 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1803 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
1804 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1805 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
1806 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
1807 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
1808 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
1809 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
1810 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
1811 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
1812 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
1813 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
1814 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
1815 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
1816 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
1817 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
1818 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
1819 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
1820 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
1821 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
1822 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
1823 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
1824 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1825 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
1826 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
1827 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
1828 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
1829 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
1830 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
1831 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
1832 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1833 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
1834 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
1835 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
1836 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1837 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
1838 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
1839 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
1840 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
1841 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
1842
1843 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1844
1845 * include/time.h (__difftime64): Add.
1846 * time/difftime.c (subtract): convert to 64-bit time.
1847 * time/difftime.c (__difftime64): Add.
1848 * time/difftime.c (__difftime): Wrap around __difftime64.
1849
1850 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
1851
1852 * manual/examples/add.c: Remove redundant "if not".
1853 * manual/examples/argp-ex1.c: Likewise.
1854 * manual/examples/argp-ex2.c: Likewise.
1855 * manual/examples/argp-ex3.c: Likewise.
1856 * manual/examples/argp-ex4.c: Likewise.
1857 * manual/examples/atexit.c: Likewise.
1858 * manual/examples/db.c: Likewise.
1859 * manual/examples/dir.c: Likewise.
1860 * manual/examples/dir2.c: Likewise.
1861 * manual/examples/execinfo.c: Likewise.
1862 * manual/examples/filecli.c: Likewise.
1863 * manual/examples/filesrv.c: Likewise.
1864 * manual/examples/fmtmsgexpl.c: Likewise.
1865 * manual/examples/genpass.c: Likewise.
1866 * manual/examples/inetcli.c: Likewise.
1867 * manual/examples/inetsrv.c: Likewise.
1868 * manual/examples/isockad.c: Likewise.
1869 * manual/examples/longopt.c: Likewise.
1870 * manual/examples/memopen.c: Likewise.
1871 * manual/examples/memstrm.c: Likewise.
1872 * manual/examples/mkdirent.c: Likewise.
1873 * manual/examples/mkfsock.c: Likewise.
1874 * manual/examples/mkisock.c: Likewise.
1875 * manual/examples/mygetpass.c: Likewise.
1876 * manual/examples/pipe.c: Likewise.
1877 * manual/examples/popen.c: Likewise.
1878 * manual/examples/rprintf.c: Likewise.
1879 * manual/examples/search.c: Likewise.
1880 * manual/examples/select.c: Likewise.
1881 * manual/examples/setjmp.c: Likewise.
1882 * manual/examples/sigh1.c: Likewise.
1883 * manual/examples/sigusr.c: Likewise.
1884 * manual/examples/stpcpy.c: Likewise.
1885 * manual/examples/strdupa.c: Likewise.
1886 * manual/examples/strftim.c: Likewise.
1887 * manual/examples/subopt.c: Likewise.
1888 * manual/examples/swapcontext.c: Likewise.
1889 * manual/examples/termios.c: Likewise.
1890 * manual/examples/testopt.c: Likewise.
1891 * manual/examples/testpass.c: Likewise.
1892 * manual/examples/timeval_subtract.c: Likewise.
1893
1894 2018-12-19 Joseph Myers <joseph@codesourcery.com>
1895
1896 * sysdeps/x86/fpu/math_private.h: New file.
1897 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
1898
1899 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
1900 definition.
1901 (cosh): Likewise.
1902 (tanh): Likewise.
1903
1904 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1905
1906 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
1907 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
1908 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
1909 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
1910 fields.
1911 (_dl_show_auxv): Give a special treatment to
1912 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
1913 and AT_L3_CACHEGEOMETRY.
1914 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
1915 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
1916 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
1917 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
1918
1919 2018-12-19 Andreas Schwab <schwab@suse.de>
1920
1921 * nscd/connections.c (check_use): Don't abort on invalid len.
1922
1923 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
1924
1925 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
1926 values in the 64bit value cases.
1927
1928 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
1929
1930 * include/time.h
1931 (__ctime64_r): Add.
1932 * time/ctime_r.c
1933 (__ctime64_r): Add.
1934 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
1935
1936 * include/time.h
1937 (__ctime64): Add.
1938 * time/gmtime.c
1939 (__ctime64): Add.
1940 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
1941
1942 * include/time.h
1943 (__gmtime64_r): Add.
1944 * time/gmtime.c
1945 (__gmtime64_r): Add.
1946 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
1947
1948 * include/time.h
1949 (__gmtime64): Add.
1950 * time/gmtime.c
1951 (__gmtime64): Add.
1952 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
1953
1954 * include/time.h
1955 (__localtime64_r): Add.
1956 * time/localtime.c
1957 (__localtime64_r): Add.
1958 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
1959
1960 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1961
1962 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
1963 kernel_sigction definition.
1964
1965 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
1966
1967 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
1968
1969 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
1970 __syscall_rt_sigaction.
1971 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
1972 (kernel_sigaction): Use Linux generic defintion.
1973 (STUB): Define.
1974 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
1975 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
1976 (__syscall_rt_sigaction): Remove implementation.
1977 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
1978 hidden.
1979 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
1980 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
1981 INTERNAL_SYSCALL): Remove definitions.
1982 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
1983 action and signal set size.
1984 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
1985 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
1986
1987 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1988 James Clarke <jrtc27@jrtc27.com>
1989
1990 [BZ #23967]
1991 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
1992 Define if SA_RESTORER is defined.
1993 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
1994 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
1995 already defined.
1996 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
1997 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
1998 definitions.
1999 (HAS_SA_RESTORER): Define.
2000 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2001 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2002 (HAS_SA_RESTORER): Define.
2003 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2004 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2005 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2006 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2007 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2008
2009 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2010
2011 * sysdeps/unix/sysv/linux/kernel-features.h
2012 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2013 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2014 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2015 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2016 (__ASSUME_ST_INO_64_BIT): Likewise.
2017 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2018 <kernel-features.h>.
2019 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2020 Remove conditional code.
2021 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2022 <kernel-features.h>.
2023 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2024 Remove conditional code.
2025 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2026 <kernel-features.h>.
2027 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2028 Remove conditional code.
2029 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2030 <kernel-features.h>.
2031 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2032 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2033
2034 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2035
2036 * sysdeps/s390/multiarch/ifunc-resolve.h
2037 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2038 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2039 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2040 Delete macro definition.
2041 (s390_libc_ifunc_init): Rename to
2042 s390_libc_ifunc_expr_stfle_init.
2043 * sysdeps/s390/bzero: Use
2044 s390_libc_ifunc_expr_stfle_init instead of
2045 s390_libc_ifunc_init.
2046 * sysdeps/s390/memcmp.c: Likewise.
2047 * sysdeps/s390/memcpy.c: Likewise.
2048 * sysdeps/s390/mempcpy.c: Likewise.
2049 * sysdeps/s390/memset.c: Likewise.
2050
2051 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2052
2053 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2054 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2055
2056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2057
2058 * sysdeps/s390/multiarch/Makefile
2059 (sysdep_routines): Remove wmemcmp variants.
2060 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2061 * sysdeps/s390/multiarch/ifunc-impl-list.c
2062 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2063 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2064 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2065 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2066 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2067 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2068 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2069 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2070
2071 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2072
2073 * sysdeps/s390/multiarch/Makefile
2074 (sysdep_routines): Remove wmemset variants.
2075 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2076 * sysdeps/s390/multiarch/ifunc-impl-list.c
2077 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2078 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2079 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2080 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2081 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2082 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2083 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2084 * sysdeps/s390/ifunc-wmemset.h: New file.
2085
2086 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2087
2088 * sysdeps/s390/multiarch/Makefile
2089 (sysdep_routines): Remove wmemchr variants.
2090 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2091 * sysdeps/s390/multiarch/ifunc-impl-list.c
2092 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2093 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2094 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2095 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2096 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2097 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2098 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2099 * sysdeps/s390/ifunc-wmemchr.h: New file.
2100
2101 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2102
2103 * sysdeps/s390/multiarch/Makefile
2104 (sysdep_routines): Remove wcscspn variants.
2105 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2106 * sysdeps/s390/multiarch/ifunc-impl-list.c
2107 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2108 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2109 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2110 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2111 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2112 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2113 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2114 * sysdeps/s390/ifunc-wcscspn.h: New file.
2115
2116 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2117
2118 * sysdeps/s390/multiarch/Makefile
2119 (sysdep_routines): Remove wcspbrk variants.
2120 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2121 * sysdeps/s390/multiarch/ifunc-impl-list.c
2122 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2123 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2124 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2125 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2126 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2127 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2128 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2129 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2130
2131 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2132
2133 * sysdeps/s390/multiarch/Makefile
2134 (sysdep_routines): Remove wcsspn variants.
2135 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2136 * sysdeps/s390/multiarch/ifunc-impl-list.c
2137 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2138 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2139 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2140 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2141 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2142 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2143 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2144 * sysdeps/s390/ifunc-wcsspn.h: New file.
2145
2146 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2147
2148 * sysdeps/s390/multiarch/Makefile
2149 (sysdep_routines): Remove wcsrchr variants.
2150 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2151 * sysdeps/s390/multiarch/ifunc-impl-list.c
2152 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2153 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2154 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2155 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2156 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2157 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2158 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2159 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2160
2161 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2162
2163 * sysdeps/s390/multiarch/Makefile
2164 (sysdep_routines): Remove wcschrnul variants.
2165 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2166 * sysdeps/s390/multiarch/ifunc-impl-list.c
2167 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2168 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2169 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2170 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2171 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2172 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2173 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2174 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2175
2176 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2177
2178 * sysdeps/s390/multiarch/Makefile
2179 (sysdep_routines): Remove wcschr variants.
2180 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2181 * sysdeps/s390/multiarch/ifunc-impl-list.c
2182 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2183 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2184 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2185 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2186 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2187 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2188 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2189 * sysdeps/s390/ifunc-wcschr.h: New file.
2190
2191 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2192
2193 * sysdeps/s390/multiarch/Makefile
2194 (sysdep_routines): Remove wcsncmp variants.
2195 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2196 * sysdeps/s390/multiarch/ifunc-impl-list.c
2197 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2198 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2199 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2200 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2201 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2202 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2203 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2204 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2205
2206 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2207
2208 * sysdeps/s390/multiarch/Makefile
2209 (sysdep_routines): Remove wcscmp variants.
2210 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2211 * sysdeps/s390/multiarch/ifunc-impl-list.c
2212 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2213 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2214 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2215 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2216 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2217 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2218 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2219 * sysdeps/s390/ifunc-wcscmp.h: New file.
2220
2221 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2222
2223 * sysdeps/s390/multiarch/Makefile
2224 (sysdep_routines): Remove wcsncat variants.
2225 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2226 * sysdeps/s390/multiarch/ifunc-impl-list.c
2227 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2228 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2229 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2230 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2231 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2232 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2233 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2234 * sysdeps/s390/ifunc-wcsncat.h: New file.
2235
2236 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2237
2238 * sysdeps/s390/multiarch/Makefile
2239 (sysdep_routines): Remove wcscat variants.
2240 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2241 * sysdeps/s390/multiarch/ifunc-impl-list.c
2242 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2243 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2244 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2245 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2246 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2247 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2248 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2249 * sysdeps/s390/ifunc-wcscat.h: New file.
2250
2251 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2252
2253 * sysdeps/s390/multiarch/Makefile
2254 (sysdep_routines): Remove wcpncpy variants.
2255 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2256 * sysdeps/s390/multiarch/ifunc-impl-list.c
2257 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2258 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2259 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2260 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2261 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2262 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2263 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2264 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2265
2266 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2267
2268 * sysdeps/s390/multiarch/Makefile
2269 (sysdep_routines): Remove wcsncpy variants.
2270 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2271 * sysdeps/s390/multiarch/ifunc-impl-list.c
2272 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2273 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2274 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2275 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2276 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2277 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2278 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2279 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2280
2281 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2282
2283 * sysdeps/s390/multiarch/Makefile
2284 (sysdep_routines): Remove wcpcpy variants.
2285 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2286 * sysdeps/s390/multiarch/ifunc-impl-list.c
2287 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2288 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2289 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2290 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2291 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2292 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2293 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2294 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2295
2296 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2297
2298 * sysdeps/s390/multiarch/Makefile
2299 (sysdep_routines): Remove wcscpy variants.
2300 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2301 * sysdeps/s390/multiarch/ifunc-impl-list.c
2302 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2303 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2304 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2305 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2306 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2307 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2308 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2309 * sysdeps/s390/ifunc-wcscpy.h: New file.
2310
2311 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2312
2313 * sysdeps/s390/multiarch/Makefile
2314 (sysdep_routines): Remove wcsnlen variants.
2315 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2316 * sysdeps/s390/multiarch/ifunc-impl-list.c
2317 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2318 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2319 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2320 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2321 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2322 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2323 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2324 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2325
2326 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2327
2328 * sysdeps/s390/multiarch/Makefile
2329 (sysdep_routines): Remove wcslen variants.
2330 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2331 * sysdeps/s390/multiarch/ifunc-impl-list.c
2332 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2333 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2334 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2335 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2336 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2337 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2338 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2339 * sysdeps/s390/ifunc-wcslen.h: New file.
2340
2341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2342
2343 * sysdeps/s390/multiarch/Makefile
2344 (sysdep_routines): Remove memrchr variants.
2345 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2346 * sysdeps/s390/multiarch/ifunc-impl-list.c
2347 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2348 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2349 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2350 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2351 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2352 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2353 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2354 * sysdeps/s390/ifunc-memrchr.h: New file.
2355
2356 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2357
2358 * sysdeps/s390/multiarch/Makefile
2359 (sysdep_routines): Remove memccpy variants.
2360 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2361 * sysdeps/s390/multiarch/ifunc-impl-list.c
2362 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2363 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2364 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2365 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2366 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2367 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2368 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2369 * sysdeps/s390/ifunc-memccpy.h: New file.
2370
2371 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2372
2373 * sysdeps/s390/multiarch/Makefile
2374 (sysdep_routines): Remove rawmemchr variants.
2375 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2376 * sysdeps/s390/multiarch/ifunc-impl-list.c
2377 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2378 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2379 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2380 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2381 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2382 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2383 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2384 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2385
2386 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2387
2388 * sysdeps/s390/multiarch/Makefile
2389 (sysdep_routines): Remove memchr variants.
2390 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2391 * sysdeps/s390/multiarch/ifunc-impl-list.c
2392 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2393 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2394 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2395 * sysdeps/s390/multiarch/memchr.c: Move to ...
2396 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2397 * sysdeps/s390/ifunc-memchr.h: New file.
2398 * sysdeps/s390/s390-64/memchr.S: Move to ...
2399 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2400 for 31/64bit and ifunc handling.
2401 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2402 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2403 * sysdeps/s390/s390-32/memchr.S: Likewise.
2404
2405 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2406
2407 * sysdeps/s390/multiarch/Makefile
2408 (sysdep_routines): Remove strcspn variants.
2409 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2410 * sysdeps/s390/multiarch/ifunc-impl-list.c
2411 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2412 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2413 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2414 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2415 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2416 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2417 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2418 * sysdeps/s390/ifunc-strcspn.h: New file.
2419
2420 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2421
2422 * sysdeps/s390/multiarch/Makefile
2423 (sysdep_routines): Remove strpbrk variants.
2424 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2425 * sysdeps/s390/multiarch/ifunc-impl-list.c
2426 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2427 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2428 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2429 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2430 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2431 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2432 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2433 * sysdeps/s390/ifunc-strpbrk.h: New file.
2434
2435 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2436
2437 * sysdeps/s390/multiarch/Makefile
2438 (sysdep_routines): Remove strspn variants.
2439 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2440 * sysdeps/s390/multiarch/ifunc-impl-list.c
2441 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2442 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2443 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2444 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2445 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2446 * sysdeps/s390/multiarch/strspn.c: Move to ...
2447 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2448 * sysdeps/s390/ifunc-strspn.h: New file.
2449
2450 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2451
2452 * sysdeps/s390/multiarch/Makefile
2453 (sysdep_routines): Remove strrchr variants.
2454 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2455 * sysdeps/s390/multiarch/ifunc-impl-list.c
2456 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2457 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2458 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2459 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2460 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2461 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2462 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2463 * sysdeps/s390/ifunc-strrchr.h: New file.
2464
2465 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2466
2467 * sysdeps/s390/multiarch/Makefile
2468 (sysdep_routines): Remove strchrnul variants.
2469 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2470 * sysdeps/s390/multiarch/ifunc-impl-list.c
2471 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2472 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2473 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2474 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2475 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2476 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2477 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2478 * sysdeps/s390/ifunc-strchrnul.h: New file.
2479
2480 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2481
2482 * sysdeps/s390/multiarch/Makefile
2483 (sysdep_routines): Remove strchr variants.
2484 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2485 * sysdeps/s390/multiarch/ifunc-impl-list.c
2486 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2487 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2488 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2489 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2490 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2491 * sysdeps/s390/multiarch/strchr.c: Move to ...
2492 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2493 * sysdeps/s390/ifunc-strchr.h: New file.
2494
2495 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2496
2497 * sysdeps/s390/multiarch/Makefile
2498 (sysdep_routines): Remove strncmp variants.
2499 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2500 * sysdeps/s390/multiarch/ifunc-impl-list.c
2501 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2502 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2503 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2504 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2505 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2506 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2507 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2508 * sysdeps/s390/ifunc-strncmp.h: New file.
2509
2510 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2511
2512 * sysdeps/s390/multiarch/Makefile
2513 (sysdep_routines): Remove strcmp variants.
2514 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2515 * sysdeps/s390/multiarch/ifunc-impl-list.c
2516 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2517 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2518 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2519 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2520 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2521 * sysdeps/s390/ifunc-strcmp.h: New file.
2522 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2523 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2524 for 31/64bit and ifunc handling.
2525 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2526 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2527 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2528
2529 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2530
2531 * sysdeps/s390/multiarch/Makefile
2532 (sysdep_routines): Remove strncat variants.
2533 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2534 * sysdeps/s390/multiarch/ifunc-impl-list.c
2535 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2536 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2537 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2538 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2539 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2540 * sysdeps/s390/multiarch/strncat.c: Move to ...
2541 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2542 * sysdeps/s390/ifunc-strncat.h: New file.
2543
2544 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2545
2546 * sysdeps/s390/multiarch/Makefile
2547 (sysdep_routines): Remove strcat variants.
2548 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2549 * sysdeps/s390/multiarch/ifunc-impl-list.c
2550 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2551 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2552 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2553 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2554 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2555 * sysdeps/s390/multiarch/strcat.c: Move to ...
2556 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2557 * sysdeps/s390/ifunc-strcat.h: New file.
2558
2559 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2560
2561 * sysdeps/s390/multiarch/Makefile
2562 (sysdep_routines): Remove stpncpy variants.
2563 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2564 * sysdeps/s390/multiarch/ifunc-impl-list.c
2565 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2566 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2567 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2568 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2569 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2570 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2571 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2572 * sysdeps/s390/ifunc-stpncpy.h: New file.
2573
2574 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2575
2576 * sysdeps/s390/multiarch/Makefile
2577 (sysdep_routines): Remove strncpy variants.
2578 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2579 * sysdeps/s390/multiarch/ifunc-impl-list.c
2580 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2581 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2582 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2583 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2584 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2585 * sysdeps/s390/ifunc-strncpy.h: New file.
2586 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2587 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2588 and adjust ifunc handling.
2589 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2590 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2591 and adjust ifunc handling.
2592 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2593 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2594
2595 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2596
2597 * sysdeps/s390/multiarch/Makefile
2598 (sysdep_routines): Remove stpcpy variants.
2599 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2600 * sysdeps/s390/multiarch/ifunc-impl-list.c
2601 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2602 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2603 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2604 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2605 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2606 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2607 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2608 * sysdeps/s390/ifunc-stpcpy.h: New file.
2609
2610 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2611
2612 * sysdeps/s390/multiarch/Makefile
2613 (sysdep_routines): Remove strcpy variants.
2614 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2615 * sysdeps/s390/multiarch/ifunc-impl-list.c
2616 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2617 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2618 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2619 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2620 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2621 * sysdeps/s390/ifunc-strcpy.h: New file.
2622 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2623 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2624 for 31/64bit and ifunc handling.
2625 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2626 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2627 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2628
2629 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2630
2631 * sysdeps/s390/multiarch/Makefile
2632 (sysdep_routines): Remove strnlen variants.
2633 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2634 * sysdeps/s390/multiarch/ifunc-impl-list.c
2635 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2636 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2637 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2638 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2639 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2640 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2641 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2642 * sysdeps/s390/ifunc-strnlen.h: New file.
2643
2644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2645
2646 * sysdeps/s390/multiarch/Makefile
2647 (sysdep_routines): Remove strlen variants.
2648 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2649 * sysdeps/s390/multiarch/ifunc-impl-list.c
2650 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2651 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2652 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2653 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2654 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2655 * sysdeps/s390/multiarch/strlen.c: Move to ...
2656 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2657 * sysdeps/s390/ifunc-strlen.h: New file.
2658
2659 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2660
2661 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2662 * sysdeps/s390/multiarch/ifunc-impl-list.c
2663 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2664 * sysdeps/s390/ifunc-memmem.h: New file.
2665 * sysdeps/s390/memmem.c: Likewise.
2666 * sysdeps/s390/memmem-c.c: Likewise.
2667 * sysdeps/s390/memmem-vx.c: Likewise.
2668
2669 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2670
2671 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2672 * sysdeps/s390/multiarch/ifunc-impl-list.c
2673 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2674 * sysdeps/s390/ifunc-strstr.h: New file.
2675 * sysdeps/s390/strstr.c: Likewise.
2676 * sysdeps/s390/strstr-c.c: Likewise.
2677 * sysdeps/s390/strstr-vx.c: Likewise.
2678
2679 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2680
2681 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2682 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2683 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2684 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2685 New defines.
2686 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2687 * sysdeps/s390/memmove-c.c: New file.
2688 * sysdeps/s390/memmove.c: Likewise.
2689 * sysdeps/s390/multiarch/ifunc-impl-list.c
2690 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2691
2692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2693
2694 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2695 * sysdeps/s390/configure.ac: Add check for z13 support.
2696 * sysdeps/s390/configure: Regenerated.
2697
2698 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2699
2700 * sysdeps/s390/memcopy.h: New file.
2701
2702 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2703
2704 * sysdeps/s390/s390-32/bcopy.S: Remove.
2705 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2706
2707 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2708
2709 * sysdeps/s390/ifunc-memcpy.h: New File.
2710 * sysdeps/s390/memcpy.S: Move to ...
2711 * sysdeps/s390/memcpy-z900.S ... here.
2712 Move implementations from memcpy-s390x.s to here.
2713 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2714 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2715 Remove memcpy/mempcpy variants.
2716 * sysdeps/s390/Makefile (sysdep_routines):
2717 Add memcpy/mempcpy variants.
2718 * sysdeps/s390/multiarch/ifunc-impl-list.c
2719 (__libc_ifunc_impl_list): Adjust ifunc variants for
2720 memcpy and mempcpy.
2721 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2722 to ...
2723 * sysdeps/s390/memcpy.c: ... here.
2724 Adjust ifunc variants for memcpy.
2725 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2726 * sysdeps/s390/mempcpy.c: ... here.
2727 Adjust ifunc variants for mempcpy.
2728 * sysdeps/s390/mempcpy.S: Delete file.
2729
2730 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2731
2732 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2733 * sysdeps/s390/memcpy.S: ... here.
2734 Adjust to be usable for 31/64bit.
2735 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2736 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2737 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2738 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2739 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2740 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2741 Adjust to be usable for 31/64bit.
2742 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2743 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2744 * sysdeps/s390/multiarch/memcpy.c: ... here.
2745 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2746
2747 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2748
2749 * sysdeps/s390/ifunc-memcmp.h: New File.
2750 * sysdeps/s390/memcmp.S: Move to ...
2751 * sysdeps/s390/memcmp-z900.S ... here.
2752 Move implementations from memcmp-s390x.s to here.
2753 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2754 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2755 Remove memcmp variants.
2756 * sysdeps/s390/Makefile (sysdep_routines):
2757 Add memcmp variants.
2758 * sysdeps/s390/multiarch/ifunc-impl-list.c
2759 (__libc_ifunc_impl_list): Adjust ifunc variants for
2760 memcmp.
2761 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2762 to ...
2763 * sysdeps/s390/memcmp.c: ... here.
2764 Adjust ifunc variants for memcmp.
2765
2766 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2767
2768 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2769 * sysdeps/s390/memcmp.S: ... here.
2770 Adjust to be usable for 31/64bit.
2771 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2772 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2773 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2774 Remove memcmp.
2775 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2776 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
2777 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
2778 Adjust to be usable for 31/64bit.
2779 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
2780 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
2781 * sysdeps/s390/multiarch/memcmp.c: ... here.
2782 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
2783
2784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2785
2786 * sysdeps/s390/s390-32/bzero.S: Delete file.
2787 * sysdeps/s390/s390-64/bzero.S: Likewise.
2788 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
2789 * sysdeps/s390/bzero.c: New file.
2790 * sysdeps/s390/memset-z900.S: Add bzero entry points.
2791 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
2792 * sysdeps/s390/multiarch/ifunc-impl-list.c
2793 (__libc_ifunc_impl_list): Add bzero ifunc variants.
2794
2795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2796
2797 * sysdeps/s390/ifunc-memset.h: New File.
2798 * sysdeps/s390/memset.S: Move to ...
2799 * sysdeps/s390/memset-z900.S ... here.
2800 Move implementations from memset-s390x.s to here.
2801 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
2802 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2803 Remove memset variants.
2804 * sysdeps/s390/Makefile (sysdep_routines):
2805 Add memset variants.
2806 * sysdeps/s390/multiarch/ifunc-impl-list.c
2807 (__libc_ifunc_impl_list): Adjust ifunc variants for
2808 memset.
2809 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
2810 to ...
2811 * sysdeps/s390/memset.c: ... here.
2812 Adjust ifunc variants for memset.
2813
2814 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2815
2816 * sysdeps/s390/s390-64/memset.S: Move to ...
2817 * sysdeps/s390/memset.S: ... here.
2818 Adjust to be usable for 31/64bit.
2819 * sysdeps/s390/s390-32/memset.S: Delete File.
2820 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
2821 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2822 Remove memset.
2823 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2824 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
2825 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
2826 Adjust to be usable for 31/64bit.
2827 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
2828 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
2829 * sysdeps/s390/multiarch/memset.c: ... here.
2830 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
2831
2832 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2833
2834 * sysdeps/s390/multiarch/ifunc-resolve.h
2835 (s390_libc_ifunc_init, s390_libc_ifunc,
2836 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
2837
2838 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2839
2840 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
2841 * sysdeps/s390/configure.ac: Add check for z10 support.
2842 * sysdeps/s390/configure: Regenerated.
2843
2844 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
2845
2846 * sysdeps/i386/atomic-machine.h: Merged with ...
2847 * sysdeps/x86_64/atomic-machine.h: To ...
2848 * sysdeps/x86/atomic-machine.h: This. New file.
2849
2850 2018-12-18 Florian Weimer <fweimer@redhat.com>
2851
2852 Rewrite locale/gen-translit.pl in Python.
2853 * locale/Makefile (generated): Add C-translit.h.
2854 (before-compile): Add $(objpfx)C-translit.h.
2855 (C-translit.h): Move to $(objpfx). Create target directory.
2856 Build using Python script.
2857 * locale/gen-translit.py: New file.
2858 * locale/gen-translit.pl: Remove file.
2859 * locale/C-translit.h.in: Change comment character to '#' for
2860 easier parsing without a C preprocessor.
2861 * locale/C-translit.h: Remove generated file.
2862 * manual/install.texi (Tools for Compilation): Do not mention
2863 C-translit.h.
2864 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
2865 Remove locale/C-translit.h.
2866 * scripts/update-copyrights: Likewise.
2867 * INSTALL: Regenerate.
2868
2869 2018-12-18 Florian Weimer <fweimer@redhat.com>
2870
2871 [BZ #23995]
2872 * localedata/locales/bi_VU: Remove executable bit from file.
2873
2874 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
2875
2876 * include/time.h
2877 (__localtime64): Add.
2878 * manual/maint.texi: Document Y2038 symbol handling.
2879 * time/localtime.c
2880 (__localtime64): Add.
2881 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
2882
2883 2018-12-17 Joseph Myers <joseph@codesourcery.com>
2884
2885 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
2886 Do not clobber r12.
2887
2888 * scripts/glibcextract.py (compare_macro_consts): Take parameters
2889 to allow extra macros from first or second sources.
2890 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
2891 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2892 (tests-special): Add $(objpfx)tst-mman-consts.out.
2893 ($(objpfx)tst-mman-consts.out): New makefile target.
2894
2895 2018-12-17 Mao Han <han_mao@c-sky.com>
2896
2897 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
2898 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
2899 without stat64 system call support.
2900 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
2901 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
2902 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
2903 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
2904 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
2905 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
2906 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
2907 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
2908 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
2909 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
2910 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
2911
2912 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
2913
2914 regex: fix storage-exhaustion error
2915 [BZ #18040]
2916 * posix/regexec.c (get_subexp):
2917 Do not continue if storage is exhausted.
2918
2919 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
2920
2921 regex: fix heap-use-after-free error
2922 [BZ #18040]
2923 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
2924 https://debbugs.gnu.org/32592
2925 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
2926 call extend_buffers which reallocates the re_string_t internal buffer.
2927 Local variable 'buf' was not updated in such case, resulting in
2928 use-after-free.
2929 * posix/regexec.c (get_subexp): Update 'buf' after call to
2930 get_subexp_sub.
2931
2932 2018-12-15 Florian Weimer <fweimer@redhat.com>
2933
2934 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
2935 (minimum_stride_size): Use it.
2936 (support_blob_repeat_allocate): Likewise.
2937
2938 2018-12-14 Joseph Myers <joseph@codesourcery.com>
2939
2940 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
2941 definition.
2942 (acosh): Likewise.
2943 (atanh): Likewise.
2944
2945 2018-12-14 Florian Weimer <fweimer@redhat.com>
2946
2947 * manual/process.texi (Process Creation Concepts): Remove
2948 documentation of process (ID) lifetime. List more process
2949 creation functions. Reference Process Identification section.
2950 (Process Identification): Add information about process ID
2951 lifetime. Describe Linux thread/task IDs.
2952 * manual/signal.texi (Signaling Another Process): Mention that the
2953 signal is always sent to the process.
2954
2955 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2956
2957 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
2958 and tst-ldbl-efgcvt.
2959 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
2960 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
2961 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
2962 (fcvt_tests, output_error, output_r_error, do_test): Use the
2963 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
2964 select the type of floating-point variables and arguments; to
2965 produce extra tests for double and conversion specifiers for
2966 printf; and to set the names of called functions.
2967 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
2968 in tst-efgcvt-template.c.
2969 * misc/tst-ldbl-efgcvt.c: Likewise.
2970
2971 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
2972
2973 * nss/Makefile (tst-nss-test3.out): New rule.
2974
2975 2018-12-13 Joseph Myers <joseph@codesourcery.com>
2976
2977 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
2978 clobber sp.
2979
2980 2018-12-13 fanjinke <fanjinke@hygon.cn>
2981
2982 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
2983 "HygonGenuine".
2984
2985 2018-12-13 Andreas Schwab <schwab@suse.de>
2986
2987 [BZ #23861]
2988 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
2989 (__pthread_rwlock_rdlock_full): Update expected value for
2990 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
2991 * nptl/tst-rwlock-pwn.c: New file.
2992 * nptl/Makefile (tests): Add tst-rwlock-pwn.
2993
2994 2018-12-12 Joseph Myers <joseph@codesourcery.com>
2995
2996 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
2997 definition.
2998
2999 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3000
3001 * benchtests/scripts/compare_bench.py (do_compare): write to
3002 stderr in casestat is not present.
3003 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3004 stderr in case timings field is not present. Also string showing
3005 the output filename goes into the stderr.
3006
3007 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3008
3009 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3010 and ZeroDivisorError exceptions.
3011 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3012 argument to loop through user provided statistics.
3013 * benchtests/scripts/compare_bench.py (main): Include the --stats
3014 argument.
3015
3016 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3017
3018 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3019 instead of return.
3020
3021 2018-12-12 Florian Weimer <fweimer@redhat.com>
3022
3023 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3024 clause to copyright header.
3025
3026 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3027
3028 [BZ #23614]
3029 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3030 registers saved in the stack frame.
3031 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3032 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3033
3034 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3035
3036 * include/bits/monetary-ldbl.h: New file.
3037 * include/bits/printf-ldbl.h: Likewise.
3038 * include/bits/stdio-ldbl.h: Likewise.
3039 * include/bits/stdlib-ldbl.h: Likewise.
3040 * include/bits/syslog-ldbl.h: Likewise.
3041 * include/bits/wchar-ldbl.h: Likewise.
3042
3043 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3044
3045 * libio/libio.h: Remove redirection for _IO_vfprintf.
3046
3047 2018-12-11 Andreas Schwab <schwab@suse.de>
3048
3049 * Makerules: Remove all references to abilist-pattern.
3050 (update-all-abi): Simplify find expression.
3051
3052 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3053
3054 [BZ #23961]
3055 * math/auto-libm-test-in: Add new test case.
3056 * math/auto-libm-test-out-pow: Regenerated.
3057 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3058
3059 2018-12-10 DJ Delorie <dj@redhat.com>
3060
3061 [BZ #23948]
3062 * support/test-container.c: Move postclean step to before we
3063 change namespaces.
3064
3065 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3066
3067 * scripts/gen-as-const.py (main): Handle --python option.
3068 * scripts/gen-py-const.awk: Remove.
3069 * Makerules (py-const-script): Use gen-as-const.py.
3070 ($(py-const)): Likewise.
3071 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3072 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3073 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3074 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3075 ~PTHREAD_MUTEX_NO_ELISION_NP.
3076 * manual/README.pretty-printers: Update reference to
3077 gen-py-const.awk.
3078
3079 * scripts/glibcextract.py: New file.
3080 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3081 or tempfile. Import glibcexctract.
3082 (compute_c_consts): Remove. Moved to glibcextract.py.
3083 (gen_test): Update reference to compute_c_consts.
3084 (main): Likewise.
3085 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3086 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3087 * sysdeps/unix/sysv/linux/Makefile
3088 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3089 Redirect stderr as well as stdout.
3090
3091 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3092
3093 [BZ #19767]
3094 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3095 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3096 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3097 ALWAYS_USE_VSYSCALL.
3098 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3099 ALWAYS_USE_VSYSCALL.
3100 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3101 ALWAYS_USE_VSYSCALL.
3102
3103 2018-12-10 Florian Weimer <fweimer@redhat.com>
3104
3105 [BZ #23972]
3106 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3107 offset instead of count for clarity. Fix typo in comment.
3108 (__old_getdents64): Keep track of previous offset. Use it to call
3109 handle_overflow.
3110 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3111 that d_off is never zero.
3112
3113 2018-12-10 Andreas Schwab <schwab@suse.de>
3114
3115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3116 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3118 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3119 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3120
3121 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3122
3123 * timezone/private.h: Update from tzcode 2018g.
3124 * timezone/tzfile.h: Likewise.
3125 * timezone/tzselect.ksh: Likewise.
3126 * timezone/zdump.c: Likewise.
3127 * timezone/zic.c: Likewise.
3128
3129 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3130
3131 [BZ #23490]
3132 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3133 (do_test): Adjust buffer size and fix format.
3134
3135 2018-12-07 DJ Delorie <dj@redhat.com>
3136
3137 [BZ #23907]
3138 * malloc/tst-tcfree3.c: New.
3139 * malloc/Makefile: Add it.
3140
3141 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3142
3143 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3144
3145 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3146
3147 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3148 used as a mask for the mode argument of __vfscanf_internal and
3149 __vfwscanf_internal.
3150 * stdio-common/vfscanf-internal.c
3151 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3152 (__strtof128_internal): Define to __wcstof128_internal.
3153 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3154 __strtof128_internal or __wcstof128_internal when the format of
3155 long double is the same as _Float128.
3156
3157 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3158
3159 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3160 * posix/confstr.c (confstr): Rename to __confstr.
3161 (__confstr): Add hidden def.
3162 (confstr): Add weak alias for __confstr.
3163 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3164 confstr.
3165
3166 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3167
3168 * NEWS: Mention getcpu.
3169 * include/sched.h (__getcpu): New libc_hidden_proto.
3170 * manual/resource.texi: Document getcpu.
3171 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3172 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3173 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3174 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3175 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3176 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3177 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3178 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3179 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3180 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3181 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3182 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3183 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3184 Likewise.
3185 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3186 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3187 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3189 Likewise.
3190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3191 Likewise.
3192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3193 Likewise.
3194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3195 Likewise.
3196 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3197 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3198 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3199 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3200 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3201 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3202 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3203 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3204 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3205 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3206 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3207 Also check getcpu.
3208
3209 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3210
3211 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3212 functions.
3213 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3214
3215 2018-12-07 Florian Weimer <fweimer@redhat.com>
3216
3217 [BZ #17405]
3218 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3219 * posix/Versions (GLIBC_2.29): Export
3220 posix_spawn_file_actions_addfchdir_np.
3221 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3222 * posix/spawn_faction_destroy.c
3223 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3224 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3225 and the field action.fchdir_action.
3226 * posix/tst-spawn-chdir.c (add_chdir): New function.
3227 (do_test): Add do_fchdir loop. Call add_chdir.
3228 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3229 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3230 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3231 posix_spawn_file_actions_addfchdir_np.
3232 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3233 Likewise.
3234 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3235 Likewise.
3236 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3237 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3238 Likewise.
3239 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3240 Likewise.
3241 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3242 Likewise.
3243 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3244 Likewise.
3245 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3246 Likewise.
3247 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3248 Likewise.
3249 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3250 (GLIBC_2.29): Likewise.
3251 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3252 (GLIBC_2.29): Likewise.
3253 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3254 (GLIBC_2.29): Likewise.
3255 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3256 (GLIBC_2.29): Likewise.
3257 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3258 Likewise.
3259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3260 (GLIBC_2.29): Likewise.
3261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3262 (GLIBC_2.29): Likewise.
3263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3264 (GLIBC_2.29): Likewise.
3265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3266 (GLIBC_2.29): Likewise.
3267 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3268 Likewise.
3269 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3270 Likewise.
3271 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3272 Likewise.
3273 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3274 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3275 Likewise.
3276 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3277 Likewise.
3278 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3279 Likewise.
3280 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3281 Likewise.
3282
3283 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3284
3285 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3286 trailing whitespace removed.
3287 * scripts/config.guess: Update to version 2018-11-28.
3288 * scripts/config.sub: Update to version 2018-11-28.
3289 * scripts/install-sh: Update to version 2018-03-11.20.
3290 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3291 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3292
3293 2018-12-07 Florian Weimer <fweimer@redhat.com>
3294
3295 [BZ #23927]
3296 CVE-2018-19591
3297 * inet/tst-if_index-long.c: New file.
3298 * inet/Makefile (tests): Add tst-if_index-long.
3299
3300 2018-12-07 Florian Weimer <fweimer@redhat.com>
3301
3302 * support/check.h (support_record_failure_is_failed): Declare.
3303 * support/descriptors.h: New file.
3304 * support/support_descriptors.c: Likewise.
3305 * support/tst-support_descriptors.c: Likewise.
3306 * support/support_record_failure.c
3307 (support_record_failure_is_failed): New function.
3308 * support/Makefile (libsupport-routines): Add support_descriptors.
3309 (tests): Add tst-support_descriptors.
3310
3311 2018-12-05 Zack Weinberg <zackw@panix.com>
3312 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3313
3314 * stdio-common/vfprintf-internal.c
3315 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3316 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3317 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3318 and __no_long_double.
3319 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3320 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3321 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3322 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3323 and __nldbl_*syslog* functions.
3324 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3325 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3326 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3327 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3328 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3329 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3330 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3331 (__nldbl_vwprintf, __nldbl_wprintf):
3332 Directly call the appropriate __v*printf_internal routine, passing
3333 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3334 variable names.
3335 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3336 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3337 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3338 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3339 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3340 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3341 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3342 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3343 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3344 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3345 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3346 (__nldbl_syslog, __nldbl_vsyslog):
3347 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3348 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3349 appropriate.
3350 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3351 appropriate.
3352
3353 2018-12-05 Zack Weinberg <zackw@panix.com>
3354 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3355
3356 [BZ #11319]
3357 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3358 Moved here from debug/vsprintf_chk.c.
3359 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3360 and completion logic for the strfile to match exactly what
3361 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3362 _IO_str_init_static_internal instead of maxlen-1.
3363 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3364 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3365 __vsprintf_internal.
3366
3367 * debug/vsprintf_chk.c (__vsprintf_chk)
3368 * debug/sprintf_chk.c (__sprintf_chk):
3369 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3370 'flags' argument is positive, and slen as maxlen. No need to lock
3371 the FILE and/or construct a temporary FILE. Minimize and normalize
3372 header inclusions and variable names. Do not libc_hidden_def anything.
3373
3374 * debug/asprintf_chk.c (__asprintf_chk)
3375 * debug/dprintf_chk.c (__dprintf_chk)
3376 * debug/fprintf_chk.c (__fprintf_chk)
3377 * debug/fwprintf_chk.c (__fwprintf_chk)
3378 * debug/printf_chk.c (__printf_chk)
3379 * debug/snprintf_chk.c (__snprintf_chk)
3380 * debug/swprintf_chk.c (__swprintf_chk)
3381 * debug/vasprintf_chk.c (__vasprintf_chk)
3382 * debug/vdprintf_chk.c (__vdprintf_chk)
3383 * debug/vfprintf_chk.c (__vfprintf_chk)
3384 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3385 * debug/vprintf_chk.c (__vprintf_chk)
3386 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3387 * debug/vswprintf_chk.c (__vswprintf_chk)
3388 * debug/vwprintf_chk.c (__vwprintf_chk)
3389 * debug/wprintf_chk.c (__wprintf_chk):
3390 Directly call the corresponding vxxprintf_internal function, passing
3391 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3392 the FILE and/or construct a temporary FILE. Minimize and normalize
3393 header inclusions and variable names. Do not libc_hidden_def anything.
3394
3395 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3396 __obstack_vprintf_internal.
3397 (__obstack_vprintf_chk): Convert into a wrapper that calls
3398 __obstack_vprintf_internal (these two functions already had the
3399 same code) and move to new file...
3400 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3401 file.
3402 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3403 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3404 * debug/Makefile (routines): Add vobprintf_chk.
3405
3406 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3407 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3408 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3409 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3410 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3411 (__nldbl___obstack_vfprintf_chk):
3412 Directly call the corresponding vxxprintf_internal function,
3413 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3414 duplicate comparison of slen with 0 or maxlen from the corresponding
3415 non-__nldbl function.
3416
3417 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3418 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3419 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3420 Remove libc_hidden_proto.
3421
3422 * stdio-common/vfprintf-internal.c
3423 (__vfprintf_internal, __vfwprintf_internal):
3424 Do not check _IO_FLAGS2_FORTIFY.
3425 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3426 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3427 a comment explaining why it has the maxlen argument.
3428 (_IO_acquire_lock_clear_flags2_fct): Remove.
3429 (_IO_acquire_lock_clear_flags2): Remove.
3430 (_IO_release_lock): Remove conditional statement which will
3431 now never execute.
3432 (_IO_acquire_lock): Remove variable which is now unused.
3433 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3434 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3435
3436 * stdio-common/Makefile (tests): Add tst-bz11319 and
3437 tst-bz11319-fortify2.
3438 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3439 * stdio-common/tst-bz11319-fortify2.c: New file.
3440 * stdio-common/tst-bz11319.c: Likewise.
3441
3442 2018-12-05 Zack Weinberg <zackw@panix.com>
3443 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3444
3445 * misc/syslog.c: Include libioP.h, not iolibio.h.
3446 (__vsyslog_internal): New function with the former body of
3447 __vsyslog_chk; takes mode_flags argument same as
3448 __v*printf_internal. Call __vfprintf_internal directly.
3449
3450 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3451 Remove libc_hidden_def.
3452 (__syslog, __syslog_chk): Use __vsyslog_internal.
3453 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3454
3455 * include/sys/syslog.h: Add multiple inclusion guard.
3456 Add prototype for __vsyslog_internal.
3457 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3458
3459 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3460 Use __vsyslog_internal.
3461
3462 2018-12-05 Zack Weinberg <zackw@panix.com>
3463 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3464
3465 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3466 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3467 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3468 New functions.
3469 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3470 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3471
3472 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3473 Include wctype.h here if COMPILE_WPRINTF is defined.
3474 Define __vfprintf_internal or __vfwprintf_internal, depending
3475 on COMPILE_WPRINTF.
3476 Temporarily, on entry to this function, update mode_flags
3477 according to the environmental settings corresponding to
3478 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3479 Throughout, check mode_flags instead of __ldbl_is_dbl and
3480 _IO_FLAGS2_FORTIFY on the destination FILE.
3481 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3482 Include vfprintf-internal.c. Don't include wctype.h.
3483 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3484 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3485 and vfprintf.
3486 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3487 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3488 and vfwprintf.
3489 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3490
3491 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3492 and add mode_flags argument; use __vfprintf_internal.
3493 (__vdprintf): New function. Alias vdprintf to this.
3494 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3495 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3496 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3497 (__obstack_printf): Use __obstack_printf_internal.
3498 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3499 public aliases __vsnprintf and vsnprintf.
3500 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3501 called internally.
3502 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3503 public aliases _IO_vsprintf and vsprintf.
3504 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3505 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3506 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3507 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3508 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3509
3510 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3511 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3512 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3513 * stdio-common/printf.c: Use __vfprintf_internal.
3514
3515 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3516 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3517 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3518
3519 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3520 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3521 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3522 __vfwprintf_internal.
3523
3524 * libio/libio.h: Remove libc_hidden_proto and declaration for
3525 _IO_vfprintf.
3526 Remove declaration of _IO_vfwprintf.
3527 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3528 _IO_vsprintf.
3529 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3530 _IO_obstack_printf.
3531 * include/stdio.h: Add prototype for __vasprintf.
3532 (__vsnprintf): Remove declaration, because there are no more
3533 internal calls.
3534 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3535 declaration, because there are no more internal calls.
3536
3537 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3538 __vsnprintf_internal, instead of _IO_vsnprintf.
3539 * argp/argp-help.c (__argp_error, __argp_failure): Use
3540 __vasprintf_internal, instead of _IO_vasprintf.
3541 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3542 redefine, because there are no more internal calls.
3543
3544 2018-12-05 Zack Weinberg <zackw@panix.com>
3545 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3546
3547 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3548 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3549 Include libio/strfile.h instead of libioP.h.
3550 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3551 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3552 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3553 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3554 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3555 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3556 necessary. Do not set __no_long_double. Normalize variable names.
3557 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3558 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3559 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3560 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3561 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3562 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3563 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3564 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3565 Do not set __no_long_double. Normalize variable names.
3566
3567 2018-12-05 Zack Weinberg <zackw@panix.com>
3568 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3569
3570 * stdio-common/isoc99_scanf.c
3571 * stdio-common/isoc99_fscanf.c
3572 * stdio-common/isoc99_sscanf.c
3573 * stdio-common/isoc99_vscanf.c
3574 * stdio-common/isoc99_vfscanf.c
3575 * stdio-common/isoc99_vsscanf.c
3576 * wcsmbs/isoc99_wscanf.c
3577 * wcsmbs/isoc99_fwscanf.c
3578 * wcsmbs/isoc99_swscanf.c
3579 * wcsmbs/isoc99_vwscanf.c
3580 * wcsmbs/isoc99_vfwscanf.c
3581 * wcsmbs/isoc99_vswscanf.c:
3582 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3583 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3584 No need to lock and unlock the FILE passed to that function.
3585
3586 * stdio-common/vfscanf-internal.c
3587 (__vfscanf_internal, __vfwscanf_internal):
3588 Don't look at _IO_FLAGS2_SCANF_STD.
3589 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3590 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3591 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3592
3593 2018-12-05 Zack Weinberg <zackw@panix.com>
3594 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3595
3596 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3597 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3598 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3599 * libio/strfile.h: Add multiple inclusion guard.
3600 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3601
3602 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3603 consistency with the other version of this file.
3604 (ldbl_compat_symbol): New macro.
3605 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3606 New macro.
3607
3608 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3609 Define __vfscanf_internal or __vfwscanf_internal, depending on
3610 COMPILE_WSCANF; don't define any other public symbols.
3611 Remove errval and code to set errp.
3612 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3613 as the mode_flags argument.
3614 (encode_error, conv_error, input_error): Don't set errval.
3615 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3616 Include vfscanf-internal.c.
3617 * stdio-common/vfscanf.c: New file defining the public entry
3618 point vfscanf, which calls __vfscanf_internal.
3619 * stdio-common/vfwscanf.c: New file defining the public entry
3620 point vfwscanf, which calls __vfwscanf_internal.
3621
3622 * stdio-common/iovfscanf.c: New file.
3623 * stdio-common/iovfwscanf.c: Likewise.
3624
3625 * stdio-common/Makefile (routines): Add vfscanf-internal,
3626 vfwscanf-internal, iovfscanf, iovfwscanf.
3627 * stdio-common/Versions: Mention GLIBC_2.29, so that
3628 it can be used in SHLIB_COMPAT expressions.
3629 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3630 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3631 Call __vfscanf_internal, instead of _IO_vfscanf.
3632 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3633 _IO_vfscanf.
3634 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3635 _IO_vfwscanf.
3636
3637 * libio/iovsscanf.c: Clean up includes, when possible. Use
3638 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3639 __vfscanf_internal or __vfwscanf_internal directly.
3640 * libio/iovswscanf.c: Likewise.
3641 * libio/swscanf.c: Likewise.
3642 * libio/vscanf.c: Likewise.
3643 * libio/vwscanf.c: Likewise.
3644 * libio/wscanf.c: Likewise.
3645 * stdio-common/isoc99_fscanf.c: Likewise.
3646 * stdio-common/isoc99_scanf.c: Likewise.
3647 * stdio-common/isoc99_sscanf.c: Likewise.
3648 * stdio-common/isoc99_vfscanf.c: Likewise.
3649 * stdio-common/isoc99_vscanf.c: Likewise.
3650 * stdio-common/isoc99_vsscanf.c: Likewise.
3651 * stdio-common/scanf.c: Likewise.
3652 * stdio-common/sscanf.c: Likewise.
3653 * wcsmbs/isoc99_fwscanf.c: Likewise.
3654 * wcsmbs/isoc99_swscanf.c: Likewise.
3655 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3656 * wcsmbs/isoc99_vswscanf.c: Likewise.
3657 * wcsmbs/isoc99_vwscanf.c: Likewise.
3658 * wcsmbs/isoc99_wscanf.c: Likewise.
3659
3660 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3661
3662 * include/time.h
3663 (__tz_compute): Replace time_t with __time64_t.
3664 (__tz_convert): Replace time_t* with __time64_t.
3665 (__offtime): Replace time_t* with __time64_t.
3666 * time/gmtime.c
3667 (__gmtime_r): Adjust call to __tz_convert.
3668 (gmtime): Likewise.
3669 * time/localtime.c
3670 (__localtime_r): Likewise.
3671 (localtime): Likewise.
3672 * time/offtime.c: Replace time_t with __time64_t.
3673 * time/tzset.c: Likewise.
3674
3675 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3676
3677 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3678 dynamic linker unless [$(run-built-tests) = yes].
3679
3680 2018-12-03 DJ Delorie <dj@delorie.com>
3681
3682 * support/test-container.c (check_for_unshare_hints): New.
3683 (main): Call it if unshare fails. Add support for "su" scriptlet
3684 command.
3685
3686 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3687
3688 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3689 'START' to indicate that start text should be output.
3690 (gen_test): Likewise.
3691 (main): Generate 'START' for first symbol or '--' line, or at end
3692 of input if not previously generated.
3693
3694 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3695
3696 [BZ #19767]
3697 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3698 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3699 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3700 ALWAYS_USE_VSYSCALL.
3701
3702 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3703
3704 [BZ #23913]
3705 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3706 new_argv by one.
3707
3708 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3709
3710 [BZ #23923]
3711 * locale/programs/localedef.c: Declare boolean hard_links default true.
3712 (options): Add --no-hard-links option.
3713 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3714 * locale/programs/localedef.h: Declare prototype for hard_links.
3715 * locale/programs/locfile.c (write_locale_data): Don't use hard
3716 links if hard_links is false.
3717
3718 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3719
3720 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3721 cpu_features_basic.
3722 (__cache_sysconf): Likewise.
3723 (init_cacheinfo): Likewise.
3724 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3725 populate COMMON_CPUID_INDEX_80000007 and
3726 COMMON_CPUID_INDEX_80000008.
3727 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3728 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3729 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3730 (init_cpu_features): Use _Static_assert on
3731 index_arch_Fast_Unaligned_Load.
3732 __get_cpuid_registers and __get_arch_feature. Updated for
3733 cpu_features_basic. Set stepping in cpu_features.
3734 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3735 (FEATURE_INDEX_2): New.
3736 (FEATURE_INDEX_MAX): Changed to enum.
3737 (COMMON_CPUID_INDEX_D_ECX_1): New.
3738 (COMMON_CPUID_INDEX_80000007): Likewise.
3739 (COMMON_CPUID_INDEX_80000008): Likewise.
3740 (cpuid_registers): Likewise.
3741 (cpu_features_basic): Likewise.
3742 (CPU_FEATURE_USABLE): Likewise.
3743 (bit_arch_XXX_Usable): Likewise.
3744 (cpu_features): Use cpuid_registers and cpu_features_basic.
3745 (bit_arch_XXX): Reweritten.
3746 (bit_cpu_XXX): Likewise.
3747 (index_cpu_XXX): Likewise.
3748 (reg_XXX): Likewise.
3749 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3750 <support/check.h>.
3751 (CHECK_CPU_FEATURE): New.
3752 (CHECK_CPU_FEATURE_USABLE): Likewise.
3753 (cpu_kinds): Likewise.
3754 (do_test): Print vendor, family, model and stepping. Check
3755 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3756 (TEST_FUNCTION): Removed.
3757 Include <support/test-driver.c> instead of
3758 "../../test-skeleton.c".
3759 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3760 Check POPCNT instead of POPCOUNT.
3761 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3762
3763 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3764
3765 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3766 there is no element in `consts'.
3767
3768 2018-12-01 Florian Weimer <fweimer@redhat.com>
3769
3770 * support/support_capture_subprocess.c
3771 (support_capture_subprocess): Check that pipe descriptors have
3772 expected values. Close original pipe descriptors in subprocess.
3773
3774 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3775
3776 [BZ #23032]
3777 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
3778 attr with __pthread_default_barrierattr.
3779 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
3780 attr with __pthread_default_condattr.
3781 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
3782 attr with __pthread_default_mutexattr.
3783 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
3784 attr with __pthread_default_rwlockattr.
3785
3786 2018-12-01 Kemi Wang <kemi.wang@intel.com>
3787
3788 * manual/tunables.texi (POSIX Thread Tunables): New node.
3789 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
3790 * nptl/nptl-init.c: Include pthread_mutex_conf.h
3791 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
3792 __pthread_tunables_init.
3793 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
3794 (max_adaptive_count): Define.
3795 * nptl/pthread_mutex_conf.c: New file.
3796 * nptl/pthread_mutex_conf.h: New file.
3797 * sysdeps/generic/adaptive_spin_count.h: New file.
3798 * sysdeps/nptl/dl-tunables.list: New file.
3799 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
3800 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
3801 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
3802 Likewise.
3803
3804 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3805
3806 [BZ #20544]
3807 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
3808 * stdlib/on_exit.c (__on_exit): Likewise.
3809 * stdlib/Makefile (tests): Add tst-bz20544.
3810 * stdlib/tst-bz20544.c: New test.
3811
3812 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
3813
3814 [BZ #19767]
3815 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
3816 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
3817 New.
3818
3819 2018-11-30 Florian Weimer <fweimer@redhat.com>
3820
3821 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
3822 Extend error logging.
3823 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
3824 symbol.
3825
3826 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3827
3828 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
3829 __sigismember instead of sigismember.
3830 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
3831 cancel_handler): New definitions.
3832 (do_system): Use posix_spawn instead of fork and execl and remove
3833 reentracy code.
3834 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
3835 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
3836 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
3837 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
3838 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
3839 * sysdeps/unix/sysv/linux/system.c: Likewise.
3840
3841 [BZ #22834]
3842 [BZ #17490]
3843 * NEWS: Add new semantic for atfork with popen and system.
3844 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
3845 fork and execl.
3846
3847 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3848
3849 [BZ #23690]
3850 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
3851 modification order when accessing reloc_result->addr.
3852 * include/link.h (reloc_result): Add field init.
3853 * nptl/Makefile (tests): Add tst-audit-threads.
3854 (modules-names): Add tst-audit-threads-mod1 and
3855 tst-audit-threads-mod2.
3856 Add rules to build tst-audit-threads.
3857 * nptl/tst-audit-threads-mod1.c: New file.
3858 * nptl/tst-audit-threads-mod2.c: Likewise.
3859 * nptl/tst-audit-threads.c: Likewise.
3860 * nptl/tst-audit-threads.h: Likewise.
3861
3862 2018-11-30 Joseph Myers <joseph@codesourcery.com>
3863
3864 * scripts/gen-as-const.py: New file.
3865 * scripts/gen-as-const.awk: Remove.
3866 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
3867 gen-as-const.py.
3868 ($(objpfx)test-as-const-%.c): Likewise.
3869
3870 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3871
3872 * elf/dl-exception.c: Include <_itoa.h>.
3873
3874 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3875
3876 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
3877 returned by __f_setlk.
3878
3879 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
3880 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3881
3882 * elf/Makefile (tests-internal): Add tst-create_format1.
3883 * elf/dl-exception.c (_dl_exception_create_format): Support
3884 %x, %lx and %zx.
3885 * elf/tst-create_format1.c: New file.
3886
3887 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
3888
3889 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
3890 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
3891 gnulib.)
3892 * argp/argp-help.c (__argp_failure): Likewise.
3893
3894 2018-11-29 Mao Han <han_mao@c-sky.com>
3895
3896 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
3897 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
3898 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
3899 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
3900 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
3901 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
3902 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
3903 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
3904 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
3905 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
3906 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
3907 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
3908 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
3909 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
3910 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
3911 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
3912 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
3913 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
3914 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
3915 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
3916 (R_CKCORE_TLS_TPOFF32): New defines.
3917
3918 2018-11-29 Florian Weimer <fweimer@redhat.com>
3919
3920 * posix/Makefile (before-compile): Remove testcases.h and
3921 ptestcases.h.
3922 (generated): Add testcases.h and ptestcases.h.
3923 (testcases.h, ptestcases.h): Move to $(objpfx).
3924 (runtests.o): Add dependency on testcases.h.
3925 (runptests.o): Add dependency on ptestcases.h.
3926 * posix/testcases.h, posix/ptestcases.h: Remove files.
3927 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
3928 not touch posix/testcases.h and posix/ptestcases.h.
3929
3930 2018-11-28 Florian Weimer <fweimer@redhat.com>
3931
3932 support: Add signal support to support_capture_subprocess_check.
3933 * support/capture_subprocess.h (support_capture_subprocess_check):
3934 Adjust comment and rename parameter.
3935 * support/support_capture_subprocess_check.c
3936 (print_actual_status): New function.
3937 (support_capture_subprocess_check): Support negative
3938 status_or_signal. Call print_actual_status.
3939 * support/tst-support_capture_subprocess.c (do_test): Call
3940 support_capture_subprocess_check.
3941 * libio/tst-vtables-common.c (termination_status)
3942 (init_termination_status): Remove.
3943 (check_for_termination): Adjust support_capture_subprocess_check
3944 call.
3945 (do_test): Remove call to init_termination_status.
3946
3947 2018-11-28 Joseph Myers <joseph@codesourcery.com>
3948
3949 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
3950 source directory instead of a copy.
3951 (CommandList.create_copy_dir): Remove.
3952
3953 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
3954
3955 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3956
3957 2018-11-28 Florian Weimer <fweimer@redhat.com>
3958
3959 * support/support.h (support_quote_string): Do not use str
3960 parameter name.
3961
3962 2018-11-27 Joseph Myers <joseph@codesourcery.com>
3963
3964 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
3965 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
3966
3967 2018-11-27 Florian Weimer <fweimer@redhat.com>
3968
3969 * support/support.h (support_quote_string): Declare.
3970 * support/support_quote_string.c: New file.
3971 * support/tst-support_quote_string.c: Likewise.
3972 * support/Makefile (libsupport-routines): Add
3973 support_quote_string.
3974 (tests): Add tst-support_quote_string.
3975
3976 2018-11-27 Florian Weimer <fweimer@redhat.com>
3977
3978 [BZ #23927]
3979 CVE-2018-19591
3980 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
3981 descriptor leak in case of ENODEV error.
3982
3983 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
3984
3985 [BZ #19767]
3986 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
3987 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
3988 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
3989
3990 2018-11-26 Carlos O'Donell <carlos@redhat.com>
3991
3992 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
3993 Error for unknown lines.
3994
3995 2018-11-26 Joseph Myers <joseph@codesourcery.com>
3996
3997 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3998 Touch additional files.
3999
4000 2018-11-26 Florian Weimer <fweimer@redhat.com>
4001
4002 [BZ #23907]
4003 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4004 double-frees.
4005
4006 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4007
4008 [BZ #19767]
4009 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4010 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4011 SHARED. Include sysdep.h.
4012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4013 ALWAYS_USE_VSYSCALL.
4014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4015 ALWAYS_USE_VSYSCALL.
4016
4017 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4018
4019 [BZ #19767]
4020 * nptl/Makefile (tests-static): Add tst-cond11-static.
4021 (tests): Likewise.
4022 * nptl/tst-cond11-static.c: New File.
4023 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4024 tst-affinity-static.
4025 (tests): Likewise.
4026 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4027 instead of SHARED.
4028 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4029 (USE_VSYSCALL): Likewise.
4030 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4031 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4032 instead of SHARED.
4033 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4034 SHARED.
4035 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4036 New.
4037
4038 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4039
4040 [BZ #23915]
4041 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4042 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4043 Undefine.
4044
4045 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4046
4047 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4048 (tst-cet-legacy-1a-ARGS): New.
4049 ($(objpfx)tst-cet-legacy-1a): New target.
4050 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4051
4052 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4053
4054 * conform/conformtest.py (CompileSubTest.__init__): Set
4055 self.run_early to False.
4056 (ExecuteSubTest.__init__): Likewise.
4057 (HeaderTests.run): Try running all non-optional, non-XFAILed
4058 compilation tests in a single execution of the compiler.
4059
4060 * conform/conformtest.py (CompileSubTest): New class.
4061 (ExecuteSubTest): Likewise.
4062 (ElementTest.run): Rename to gen_subtests. Append tests to
4063 self.subtests instead of running them.
4064 (ConstantTest.run): Likewise.
4065 (SymbolTest.run): Likewise.
4066 (TypeTest.run): Likewise.
4067 (TagTest.run): Likewise.
4068 (FunctionTest.run): Likewise.
4069 (VariableTest.run): Likewise.
4070 (MacroFunctionTest.run): Likewise.
4071 (MacroStrTest.run): Likewise.
4072 (HeaderTests.handle_test_line): Generate subtests for tests.
4073 (HeaderTests.run): Run subtests for tests.
4074
4075 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4076
4077 * math/Versions (GLIBC_2.29): Add pow.
4078 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4079 symbol.
4080 * math/w_pow.c: New file.
4081 * sysdeps/i386/fpu/w_pow.c: New file.
4082 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4083 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4084 and add necessary aliases.
4085 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4086 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4087 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4088 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4089 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4090 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4091 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4092 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4093 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4094 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4095 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4096 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4097 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4098 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4099 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4104 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4105 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4106 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4107 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4108 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4109 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4110 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4111 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4112 __pow.
4113 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4114 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4115 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4116
4117 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4118
4119 * math/Versions (GLIBC_2.29): Add log2.
4120 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4121 symbol.
4122 * math/w_log2.c: New file.
4123 * sysdeps/i386/fpu/w_log2.c: New file.
4124 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4125 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4126 and add necessary aliases.
4127 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4128 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4129 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4130 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4131 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4132 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4133 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4134 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4135 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4136 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4137 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4138 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4139 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4140 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4141 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4146 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4147 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4148 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4149 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4150 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4151 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4152 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4153
4154 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4155
4156 * math/Versions (GLIBC_2.29): Add log.
4157 * math/w_log_compat.c (__log_compat): Change to versioned compat
4158 symbol.
4159 * math/w_log.c: New file.
4160 * sysdeps/i386/fpu/w_log.c: New file.
4161 * sysdeps/ia64/fpu/e_log.S: Update.
4162 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4163 and add necessary aliases.
4164 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4165 * sysdeps/m68k/m680x0/fpu/w_log.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 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4191 __log.
4192 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4193 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4194 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4195 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4196
4197 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4198
4199 * math/Versions (GLIBC_2.29): Add exp and exp2.
4200 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4201 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4202 * math/w_exp_compat.c (__exp_compat): Likewise.
4203 * math/w_exp.c: New file.
4204 * math/w_exp2.c: New file.
4205 * sysdeps/i386/fpu/w_exp.c: New file.
4206 * sysdeps/i386/fpu/w_exp2.c: New file.
4207 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4208 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4209 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4210 and add necessary aliases.
4211 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4212 and add necessary aliases.
4213 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4214 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4215 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4216 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4217 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4218 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4219 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4220 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4221 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4222 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4223 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4224 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4225 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4226 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4227 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4228 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4229 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4234 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4235 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4236 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4237 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4238 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4239 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4240 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4241 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4242 (__ieee754_exp): Rename to __exp.
4243 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4244 (__ieee754_exp): Rename to __exp.
4245 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4246 (__ieee754_exp): Rename to __exp.
4247 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4248 __exp.
4249 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4250
4251 2018-11-20 DJ Delorie <dj@redhat.com>
4252
4253 * malloc/malloc.c (tcache_entry): Add key field.
4254 (tcache_put): Set it.
4255 (tcache_get): Likewise.
4256 (_int_free): Check for double free in tcache.
4257 * malloc/tst-tcfree1.c: New.
4258 * malloc/tst-tcfree2.c: New.
4259 * malloc/Makefile: Run the new tests.
4260 * manual/probes.texi: Document memory_tcache_double_free probe.
4261
4262 * dlfcn/dlerror.c (check_free): Prevent double frees.
4263
4264 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4265
4266 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4267
4268 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4269
4270 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4271 in tests. Use names for format arguments.
4272 (ConstantTest.run): Likewise.
4273 (SymbolTest.run): Likewise.
4274 (TypeTest.run): Likewise.
4275 (TagTest.run): Likewise.
4276 (FunctionTest.run): Likewise.
4277 (VariableTest.run): Likewise.
4278 (MacroFunctionTest.run): Likewise.
4279 (MacroStrTest.run): Likewise.
4280 (HeaderTests.__init__): Set self.num_tests.
4281 (HeaderTests.handle_test_line): Set test.num. Increment
4282 self.num_tests.
4283
4284 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4285
4286 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4287 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4288 SEEK_SET.
4289
4290 2018-11-19 Mao Han <han_mao@c-sky.com>
4291
4292 * scripts/config.guess: Update to version 2018-08-29.
4293 * scripts/config.sub: Update to version 2018-08-29.
4294
4295 2018-11-19 Florian Weimer <fweimer@redhat.com>
4296
4297 support: Print timestamps in timeout handler.
4298 * support/support_test_main.c (print_timestamp): New function.
4299 (signal_handler): Use it to print the termination time and the
4300 time of the last write to standard output.
4301
4302 2018-11-16 Zack Weinberg <zackw@panix.com>
4303 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4304
4305 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4306 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4307 argument.
4308 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4309 and add flags argument. Check flags instead of __ldbl_is_dbl when
4310 deciding whether to set is_long_double.
4311 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4312 passing zero for flags argument.
4313 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4314
4315 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4316 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4317 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4318 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4319 variable names. Remove libc_hidden_def/libc_hidden_proto from
4320 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4321 longer called from within the library.
4322 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4323 for __nldbl___vstrfmon_l, declare it explicitly.
4324
4325 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4326
4327 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4328
4329 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4330 macros
4331 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4332 F_SETLK64, F_SETLKW64, respectively.
4333 * sysdeps/mach/hurd/f_setlk.c: New file.
4334 * sysdeps/mach/hurd/f_setlk.h: New file.
4335 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4336 f_setlk.
4337 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4338 (__libc_fcntl): Move non-flock operations to...
4339 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4340 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4341
4342 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4343
4344 mktime: DEBUG_MKTIME cleanup
4345 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4346 And it’s no longer needed now that glibc and Gnulib both have
4347 their own testing mechanisms for mktime.
4348 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4349
4350 mktime: fix non-EOVERFLOW errno handling
4351 [BZ#23789]
4352 mktime was not properly reporting failures when the underlying
4353 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4354 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4355 The problem could happen on non-glibc platforms, with Gnulib.
4356 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4357 (tm_diff): ... this simpler function, which does not change errno.
4358 All callers changed to deal with errno themselves.
4359 (ranged_convert, __mktime_internal): Return failure immediately if
4360 the underlying function reports any failure other than EOVERFLOW.
4361 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4362 gap code fails.
4363
4364 mktime: fix bug with Y2038 DST transition
4365 [BZ#23789]
4366 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4367 mishandle a DST transition that jumps over the Y2038 boundary.
4368 No such DST transitions are known so this is only a theoretical
4369 bug, but we might as well do things right.
4370
4371 mktime: make more room for overflow
4372 [BZ#23789]
4373 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4374 This is so that we can add tm_diff results to a previous guess,
4375 which will be useful in a later patch.
4376
4377 mktime: simplify offset guess
4378 [BZ#23789]
4379 * time/mktime.c (__mktime_internal): Omit excess precision.
4380
4381 mktime: new test for mktime failure
4382 [BZ#23789]
4383 Based on a test suggested by Albert Aribaud in:
4384 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4385 * time/Makefile (tests): Add bug-mktime4.
4386 * time/bug-mktime4.c: New file.
4387
4388 mktime: fix EOVERFLOW bug
4389 [BZ#23789]
4390 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4391 Include libc-config.h, not config.h, for __set_errno.
4392 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4393
4394 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4395
4396 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4397 __attribute_copy__ to copy attributes from name. Drop static qualifier
4398 to avoid warnings about leaf attribute not having effect on static
4399 functions.
4400
4401 2018-11-13 Florian Weimer <fweimer@redhat.com>
4402
4403 * malloc/malloc.c (fastbin_push_entry): New function.
4404 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4405 (REMOVE_FB): Remove macro.
4406 (_int_malloc): Use fastbin_pop_entry and reindent.
4407 (_int_free): Use fastbin_push_entry.
4408 (malloc_consolidate): Use atomic_exchange_acquire.
4409
4410 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4411
4412 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4413 alias attribute, not with strong_alias.
4414
4415 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4416 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4417 with additional parameter thread.
4418 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4419 in terms of __hidden_ver2.
4420 (hidden_tls_def): New macro.
4421 (libc_hidden_tls_def): Likewise.
4422 (rtld_hidden_tls_def): Likewise.
4423 (libm_hidden_tls_def): Likewise.
4424 (libmvec_hidden_tls_def): Likewise.
4425 (libresolv_hidden_tls_def): Likewise.
4426 (librt_hidden_tls_def): Likewise.
4427 (libdl_hidden_tls_def): Likewise.
4428 (libnss_files_hidden_tls_def): Likewise.
4429 (libnsl_hidden_tls_def): Likewise.
4430 (libnss_nisplus_hidden_tls_def): Likewise.
4431 (libutil_hidden_tls_def): Likewise.
4432 (libutil_hidden_tls_def): Likweise.
4433 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4434 libc_hidden_tls_def.
4435 (__sim_disabled_exceptions_thread): Likewise.
4436 (__sim_round_mode_thread): Likewise.
4437
4438 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4439 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4440 copy attributes from name.
4441
4442 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4443
4444 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4445 Use __attribute_copy__ to copy attributes from name.
4446
4447 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4448 with __hidden_ver1 call.
4449 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4450 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4451 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4452 (__cosf): Do not declare here.
4453 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4454 (__sincosf): Do not declare here.
4455 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4456 (__sinf): Do not declare here.
4457
4458 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4459 (__BIG_ENDIAN): Likewise.
4460 (__BYTE_ORDER): Likewise.
4461 (strong_alias): Likewise.
4462 (_strong_alias): Likewise.
4463
4464 2018-11-12 Florian Weimer <fweimer@redhat.com>
4465
4466 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4467 function. Move after the definition of in_smallbin_range. Do not
4468 use __builtin_expect for paths that lead to a noreturn function.
4469 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4470 because it is unclear whether this is in fact an unlikely
4471 condition.
4472 (_int_malloc, _int_free): Adjust.
4473 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4474 variables.
4475 * malloc/arena.c (heap_trim): Likewise.
4476
4477 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4478
4479 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4480 it, free it if needed.
4481 (reauthenticate): Test and use ccwdir.
4482 (child_init_port): In non-resetids case, test and use ccwdir.
4483 (child_chdir): New nested function to set ccwdir.
4484 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4485 * hurd/hurd/port.h (_hurd_port_move): New function.
4486 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4487 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4488 * hurd/Versions (_hurd_port_move): Export function.
4489 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4490 symbol.
4491 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4492 of dtablesize for allocating dtable_cloexec.
4493
4494 2018-11-09 Martin Sebor <msebor@redhat.com>
4495
4496 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4497 it's already defined.
4498 (_strong_alias): Use __attribute_copy__.
4499 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4500 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4501 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4502 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4503 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4504 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4505 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4506 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4507 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4508 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4509 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4510 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4511 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4512 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4513 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4514 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4515 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4516 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4517 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4518
4519 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4520
4521 * misc/tst-efgcvt.c: Include support/check.h and
4522 support/test-driver.c. Do not include test-skeleton.c.
4523 (error_count): Remove.
4524 (output_error): Replace increments to error_count with calls to
4525 support_record_failure.
4526 (output_r_error): Likewise.
4527 (special): Likewise.
4528 (do_test): Unconditionally return zero.
4529 (TEST_FUNCTION): Remove.
4530
4531 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4532
4533 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4534 not $(@D)/scratch.
4535 ($(linknamespace-header-tests)): Likewise.
4536
4537 * conform/conformtest.py: New file.
4538 * conform/conformtest.pl: Remove.
4539 * conform/GlibcConform.pm: Likewise.
4540 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4541 (KEYWORDS_C99): Likewise.
4542 (KEYWORDS): Likewise.
4543 * conform/Makefile ($(conformtest-header-tests)): Use
4544 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4545 option. Use --header instead of --headers.
4546 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4547 function entries.
4548 * conform/data/spawn.h-data: Likewise.
4549 * conform/data/fcntl.h-data (openat): Add space after function
4550 name.
4551 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4552 (wcscasecmp_l): Likewise.
4553 * conform/data/termios.h-data (c_cc): Add space after element
4554 name.
4555
4556 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4557
4558 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4559 instead of manually comparing and reporting mismatching strings.
4560 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4561 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4562
4563 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4564
4565 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4566 __ASSUME_SOCKETCALL.
4567 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4568 (__ASSUME_SOCKETCALL): Remove.
4569 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4570 (__ASSUME_SOCKETCALL): Likewise.
4571 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4572 (__ASSUME_SOCKETCALL): Likewise.
4573 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4574 (__ASSUME_SOCKETCALL): Likewise.
4575 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4576 (__ASSUME_SOCKETCALL): Likewise.
4577 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4578 (__ASSUME_SOCKETCALL): Likewise.
4579 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4580 (__ASSUME_SOCKETCALL): Likewise.
4581
4582 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4583
4584 [BZ #23509]
4585 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4586 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4587 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4588 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4589 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4590 lc_unknown.
4591
4592 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4593
4594 [BZ #17630]
4595 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4596
4597 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4598
4599 [BZ #23867]
4600 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4601 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4602 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4603 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4604
4605 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4606
4607 * support/support_test_compare_string.c
4608 (support_test_compare_string): Fix printf format.
4609
4610 2018-11-07 Florian Weimer <fweimer@redhat.com>
4611
4612 Implement TEST_COMPARE_STRING.
4613 * support/check.h (TEST_COMPARE_STRING): Define.
4614 (support_test_compare_string): Declare.
4615 * support/Makefile (libsupport-routines): Add
4616 support_test_compare_string.
4617 (tests): Add tst-test_compare_string.
4618 * support/support_test_compare_string.c: New file.
4619 * support/tst-test_compare_string.c: Likewise.
4620
4621 2018-11-07 Andreas Schwab <schwab@suse.de>
4622
4623 [BZ #23864]
4624 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4625 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4626 Undef.
4627
4628 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4629
4630 [BZ #23862]
4631 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4632 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4633 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4634 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4635 Likewise.
4636
4637 2018-11-06 Florian Weimer <fweimer@redhat.com>
4638
4639 [BZ #17405]
4640 * posix/Makefile (routines): Add spawn_faction_addchdir.
4641 (tests): Add tst-spawn-chdir.
4642 * posix/Versions (GLIBC_2.29): Add
4643 posix_spawn_file_actions_addchdir_np.
4644 * posix/spawn_faction_addchdir.c: New file.
4645 * posix/spawn_faction_destroy.c
4646 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4647 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4648 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4649 chdir_action.
4650 * posix/tst-spawn-chdir.c: New file.
4651 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4652 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4653 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4654 posix_spawn_file_actions_addchdir_np.
4655 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4656 Likewise.
4657 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4658 Likewise.
4659 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4660 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4661 Likewise.
4662 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4663 Likewise.
4664 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4665 Likewise.
4666 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4667 Likewise.
4668 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4669 Likewise.
4670 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4671 Likewise.
4672 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4673 (GLIBC_2.29): Likewise.
4674 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4675 (GLIBC_2.29): Likewise.
4676 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4677 (GLIBC_2.29): Likewise.
4678 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4679 (GLIBC_2.29): Likewise.
4680 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4681 Likewise.
4682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4683 (GLIBC_2.29): Likewise.
4684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4685 (GLIBC_2.29): Likewise.
4686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4687 (GLIBC_2.29): Likewise.
4688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4689 (GLIBC_2.29): Likewise.
4690 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4691 Likewise.
4692 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4693 Likewise.
4694 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4695 Likewise.
4696 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4697 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4698 Likewise.
4699 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4700 Likewise.
4701 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4702 Likewise.
4703 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4704 Likewise.
4705
4706 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4707
4708 * misc/Makefile (tests): Add tst-ldbl-error.
4709 * misc/tst-ldbl-error.c: New file.
4710
4711 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4712
4713 * misc/Makefile (tests): Add tst-ldbl-warn.
4714 * misc/tst-ldbl-warn.c: New file.
4715
4716 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4717
4718 * argp/Makefile (tests): Add tst-ldbl-argp.
4719 * argp/tst-ldbl-argp.c: New file.
4720
4721 2018-11-05 Arjun Shankar <arjun@redhat.com>
4722
4723 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4724 __gconv_path_elem and call __gconv_get_path unconditionally.
4725
4726 2018-11-05 Andreas Schwab <schwab@suse.de>
4727
4728 [BZ #22927]
4729 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4730 creating the first helper thread failed.
4731
4732 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4733
4734 * sysdeps/mach/hurd/msync.c: New file.
4735
4736 2018-11-02 Florian Weimer <fweimer@redhat.com>
4737
4738 * support/shell-container.c (copy_func): Call
4739 support_copy_file_range instead of copy_file_range to support
4740 cross-device copies.
4741
4742 2018-11-02 Florian Weimer <fweimer@redhat.com>
4743
4744 * support/test-container.c: Include <libc-pointer-arith.h> for
4745 ALIGN_UP.
4746
4747 2018-11-01 Zong Li <zong@andestech.com>
4748
4749 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4750 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4751 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4752 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4753
4754 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4755 variable to avoid overlap arguments.
4756
4757 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4758
4759 * posix/bug-regex22.c (main): Use puts with distinct error
4760 messages for unexpected success of re_compile_pattern, not printf
4761 with NULL argument to %s.
4762
4763 * stdio-common/bug22.c: Include <libc-diag.h>.
4764 (do_test): Disable -Wformat-overflow= warnings around fprintf
4765 calls outputting more than INT_MAX characters.
4766 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4767 around printf call with NULL %s argument.
4768
4769 [BZ #23848]
4770 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4771 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4772 Undefine.
4773 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4774 (__ASSUME_RECVMSG_SYSCALL): Likewise.
4775 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4776 (__ASSUME_SENDTO_SYSCALL): Likewise.
4777 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4778 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
4779 [!__arch64__].
4780 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4781 (__ASSUME_CONNECT_SYSCALL): Likewise.
4782 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4783 (__ASSUME_RECVFROM_SYSCALL): Likewise.
4784 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
4785 Define.
4786 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
4787 Likewise.
4788 [__LINUX_KERNEL_VERSION >= 0x040400]
4789 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
4790 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
4791 Remove.
4792 (listen): Likewise.
4793 (setsockopt): Likewise.
4794
4795 2018-11-01 Fredrik Noring <noring@nocrew.org>
4796
4797 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
4798 with the ISA override.
4799
4800 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
4801
4802 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
4803 #endif.
4804
4805 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4806
4807 * manual/errno.texi (EIEIO): Document how translators should
4808 translate the error message.
4809 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
4810 printing trailing whitespaces refused by git.
4811 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
4812 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
4813 * hurd/Makefile (user-interfaces): Add pci.
4814
4815 2018-10-30 Joseph Myers <joseph@codesourcery.com>
4816
4817 * conform/linknamespace.py: New file.
4818 * conform/linknamespace.pl: Remove file.
4819 * conform/Makefile ($(linknamespace-header-tests)): Use
4820 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
4821 option.
4822
4823 2018-10-30 Florian Weimer <fweimer@redhat.com>
4824
4825 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
4826 memory leaks.
4827
4828 2018-10-30 Florian Weimer <fweimer@redhat.com>
4829
4830 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
4831
4832 2018-10-30 Florian Weimer <fweimer@redhat.com>
4833
4834 * stdlib/tst-strtod-overflow.c (do_test): Switch to
4835 support_blob_repeat.
4836
4837 2018-10-30 Florian Weimer <fweimer@redhat.com>
4838
4839 Avoid spurious test failures in stdlib/test-bz22786.
4840 * support/Makefile (libsupport-routines): Add blob_repeat.
4841 (tests): Add tst-support_blob_repeat.
4842 * support/blob_repeat.h: New file.
4843 * support/blob_repeat.c: Likewise.
4844 * support/tst-support_blob_repeat.c: Likewise.
4845 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
4846 support_blob_repeat_allocate.
4847
4848 2018-10-30 Andreas Schwab <schwab@suse.de>
4849
4850 [BZ #23125]
4851 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
4852 Don't use tail call.
4853 * elf/tst-unwind-main.c: New file.
4854 * elf/Makefile (tests): Add tst-unwind-main.
4855 (CFLAGS-tst-unwind-main.c): Define.
4856
4857 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
4858
4859 [BZ #23791]
4860 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
4861 n_cs_precedes to 0.
4862 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
4863
4864 2018-10-29 Joseph Myers <joseph@codesourcery.com>
4865
4866 * conform/glibcconform.py: Do not import shutil.
4867 (list_exported_functions): Use tempfile.TemporaryDirectory instead
4868 of mkdtemp.
4869
4870 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
4871 critic_missing for versions before 3.4.
4872 * configure: Regenerated.
4873 * manual/install.texi (Tools for Compilation): Document
4874 requirement for Python to build glibc.
4875 * INSTALL: Regenerated.
4876 * Rules [PYTHON]: Make code unconditional.
4877 * benchtests/Makefile [PYTHON]: Likewise.
4878 * conform/Makefile [PYTHON]: Likewise.
4879 * manual/Makefile [PYTHON]: Likewise.
4880 * math/Makefile [PYTHON]: Likewise.
4881
4882 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4883
4884 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
4885 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
4886 answer to interrupt_operation, return EIEIO instead of EINTR.
4887 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
4888 _hurd_intr_rpc_msg_about_to global point to start of controlled
4889 assembly snippet. Make it check canceled flag.
4890 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
4891 the _hurd_intr_rpc_msg_about_to point.
4892 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
4893 issue, remove cancel flag check.
4894
4895 2018-10-26 Joseph Myers <joseph@codesourcery.com>
4896
4897 * scripts/build-many-glibcs.py: Remove compatibility for missing
4898 os.cpu_count and re.fullmatch.
4899
4900 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
4901
4902 [BZ #23822]
4903 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
4904 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
4905 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
4906
4907 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4908
4909 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
4910 macro.
4911
4912 2018-10-25 Florian Weimer <fweimer@redhat.com>
4913
4914 [BZ #23562]
4915 [BZ #23821]
4916 XFAIL siginfo_t si_band conform test on sparc64.
4917 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
4918 (__SI_BAND_TYPE): Only override long int default type on sparc64.
4919 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4920 (conformtest-xfail-conds): Add sparc64-linux.
4921 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
4922 sparc64.
4923 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
4924
4925 2018-10-25 Joseph Myers <joseph@codesourcery.com>
4926
4927 * elf/elf.h (NT_MIPS_DSP): New macro.
4928 (NT_MIPS_FP_MODE): Likewise.
4929
4930 2018-10-25 Zong Li <zong@andestech.com>
4931
4932 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
4933 name by adding the file extension (.so).
4934
4935 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
4936
4937 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
4938 (test-xfail-ISO11/threads.h/linknamespace,
4939 test-xfail-ISO11/threads.h/conform): Add.
4940
4941 2018-10-24 Joseph Myers <joseph@codesourcery.com>
4942
4943 * math/gen-libm-test.py: Import os.
4944 (ALL_FLOATS_MANUAL): New constant.
4945 (ALL_FLOATS_SUFFIX): Likewise.
4946 (Ulps.all_functions): New function.
4947 (real_all_ulps): Likewise.
4948 (generate_err_table_sub): Likewise.
4949 (generate_err_table): Likewise.
4950 (main): Handle -s and -m options.
4951 * manual/libm-err-tab.pl: Remove.
4952 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
4953 instead of libm-err-tab.pl.
4954 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
4955 != no].
4956 * manual/install.texi (Tools for Compilation): Document
4957 requirement for Python to build manual.
4958 * INSTALL: Regenerated.
4959
4960 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
4961
4962 * bits/time64.h: New file.
4963 * include/time.h: Replace internal_time_t with __time64_t.
4964 * posix/bits/types (__time64_t): Add.
4965 * stdlib/Makefile: Add bits/time64.h to includes.
4966 * time/tzfile.c: Replace internal_time_t with __time64_t.
4967
4968 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4969
4970 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
4971 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
4972 __posix_spawn_file_actions_init, __posix_spawnattr_init,
4973 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
4974 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
4975 prototype.
4976 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
4977 * posix/spawn_faction_addclose.c
4978 (__posix_spawn_file_actions_addclose): Add hidden definition.
4979 * posix/spawn_faction_adddup2.c
4980 (__posix_spawn_file_actions_adddup2): Likewise.
4981 * posix/spawn_faction_destroy.c
4982 (__posix_spawn_file_actions_destroy): Likewise.
4983 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
4984 Likewise.
4985 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
4986 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
4987 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
4988 Likewise.
4989 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
4990 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
4991 Likewise.
4992
4993 2018-10-24 Andreas Schwab <schwab@suse.de>
4994
4995 [BZ #18093]
4996 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
4997 format cache.
4998 * elf/cache.c (print_cache): Likewise.
4999
5000 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5001
5002 * bits/timesize.h: New file.
5003 * stdlib/Makefile (headers): Add bits/timesize.h.
5004 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5005 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5006 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5007 (__SEM_PAD_AFTER_TIME): Likewise.
5008 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5009 (__SHM_PAD_AFTER_TIME): Likewise.
5010 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5011 (__MSQ_PAD_BEFORE_TIME): Likewise.
5012 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5013 (__SEM_PAD_BEFORE_TIME): Likewise.
5014 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5015 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5016 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5017 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5018 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5019 (__MSQ_PAD_BEFORE_TIME): Likewise.
5020 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5021 (__SEM_PAD_BEFORE_TIME): Likewise.
5022 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5023 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5024 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5025 (__MSQ_PAD_BEFORE_TIME): Likewise.
5026 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5027 (__SEM_PAD_BEFORE_TIME): Likewise.
5028 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5029 (__SHM_PAD_BEFORE_TIME): Likewise.
5030 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5031 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5032 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5033
5034 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5035
5036 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5037 USE_RDTSCP is defined.
5038 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5039 USE_RDTSCP is defined.
5040
5041 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5042
5043 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5044 defined.
5045
5046 [BZ #23709]
5047 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5048 independently of other flags.
5049
5050 2018-10-23 Florian Weimer <fweimer@redhat.com>
5051
5052 * time/tst-mktime2.c (N_STRINGS): Remove.
5053 (set_timezone): New function.
5054 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5055 (mktime_test1): Report localtime failure and check errno value.
5056 Use TEST_COMPARE.
5057 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5058 (do_test): Remove alarm call. Use set_timezone and array_length.
5059
5060 2018-10-23 Andreas Schwab <schwab@suse.de>
5061
5062 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5063 (__start_context): Use END instead of PSEUDO_END.
5064
5065 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5066
5067 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5068 version to 4.19.
5069
5070 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5071 version to 4.19.
5072
5073 [BZ #23793]
5074 * wcsmbs/c32rtomb.c: New file.
5075 * wcsmbs/mbrtoc32.c: Likewise.
5076 * wcsmbs/tst-c32-state.c: Likewise.
5077 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5078 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5079 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5080 (tests): Add tst-c32-state.
5081 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5082 $(gen-locales).
5083
5084 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5085
5086 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5087 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5088
5089 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5090
5091 [BZ #23794]
5092 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5093 pair and return 0 in that case, and use saved character to
5094 interpret following character.
5095 * wcsmbs/tst-c16-surrogate.c: New file.
5096 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5097 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5098 Depend on $(gen-locales)
5099
5100 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5101
5102 [BZ #23562]
5103 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5104 (struct siginfo_t): Use correct type for si_band.
5105
5106 2018-10-19 Florian Weimer <fweimer@redhat.com>
5107
5108 [BZ #23689]
5109 * resource/bits/types/struct_rusage.h (struct rusage): Update
5110 comment on struct. Remove extraneous field comment.
5111
5112 2018-10-18 David S. Miller <davem@davemloft.net>
5113
5114 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5115 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5116 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5117 sysdep_routines in subdir elf.
5118 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5119 version for __vdso_clock_gettime.
5120 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5121 Define.
5122 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5123 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5124
5125 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5126
5127 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5128
5129 * sysdeps/i386/init-arch.h: Removed.
5130 * sysdeps/i386/i586/init-arch.h: Likewise.
5131 * sysdeps/i386/i686/init-arch.h: Likewise.
5132 * sysdeps/i386/i686/hp-timing.h: Likewise.
5133 * sysdeps/x86_64/hp-timing.h: Likewise.
5134 * sysdeps/i386/isa.h: New file.
5135 * sysdeps/i386/i586/isa.h: Likewise.
5136 * sysdeps/i386/i686/isa.h: Likewise.
5137 * sysdeps/x86_64/isa.h: Likewise.
5138 * sysdeps/x86/hp-timing.h: New file.
5139 * sysdeps/x86/init-arch.h: Include <isa.h>.
5140
5141 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5142
5143 * math/libm-test-pow.inc (pow_test_data): Do not allow
5144 divide-by-zero exception for pow(+/- 0, -Inf).
5145
5146 2018-10-17 Zack Weinberg <zackw@panix.com>
5147
5148 * manual/job.texi (Job Control is Optional): Remove node, as
5149 job control has not been optional in quite some time.
5150 (Job Control): Mention briefly that systems older than
5151 POSIX.1-2001 might not support job control.
5152 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5153 defined on systems conforming to POSIX.1-2001.
5154
5155 2018-10-17 Arjun Shankar <arjun@redhat.com>
5156
5157 [BZ #22062]
5158 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5159 indentation.
5160 * (__gconv_read_conf): Mark function static.
5161 * (once): New static variable.
5162 * (__gconv_load_conf): New function.
5163 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5164 * iconv/gconv_db.c (once): Remove static variable.
5165 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5166 __gconv_read_conf.
5167 * (__gconv_find_transform): Likewise.
5168 * iconv/tst-iconv-mt.c: New test.
5169 * iconv/Makefile: Add tst-iconv_mt.
5170
5171 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5172
5173 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5174 bits/shm-pad.h.
5175 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5176 (shmatt_t): Define as __syscall_ulong_t.
5177 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5178 and [__SHM_PAD_AFTER_TIME].
5179 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5180 Define shm_segsz and associated padding based on
5181 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5182 Use __syscall_ulong_t instead of unsigned long int.
5183 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5184 unsigned long int.
5185 [__USE_MISC] (struct shm_info): Likewise.
5186 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5187 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5188 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5189 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5190 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5191 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5192 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5193 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5194 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5195 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5196 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5197
5198 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5199 bits/shmlba.h.
5200 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5201 (SHMLBA): Remove macro.
5202 (__getpagesize): Remove function declaration.
5203 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5204 <bits/shmlba.h>.
5205 (SHMLBA): Remove macro.
5206 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5207 <bits/shmlba.h>.
5208 (SHMLBA): Remove macro.
5209 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5210 <bits/shmlba.h>.
5211 (SHMLBA): Remove macro.
5212 (__getpagesize): Remove function declaration.
5213 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5214 <bits/shmlba.h>.
5215 (SHMLBA): Remove macro.
5216 (__getshmlba): Remove function declaration.
5217 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5218 (SHMLBA): Remove macro.
5219 (__getpagesize): Remove function declaration.
5220 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5221 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5222 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5223 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5224 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5225 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5226 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5227 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5228 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5229 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5230
5231 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5232
5233 [BZ #23275]
5234 * nptl/tst-mutex10.c: New File.
5235 * nptl/Makefile (tests): Add tst-mutex10.
5236 (tst-mutex10-ENV): New variable.
5237 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5238 Ensure that elision path is used if elision is available.
5239 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5240 Likewise.
5241 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5242 Likewise.
5243 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5244 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5245 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5246 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5247 Likewise.
5248 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5249 (__pthread_mutex_cond_lock_adjust): Likewise.
5250 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5251 Likewise.
5252 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5253 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5254 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5255 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5256 Add comments.
5257 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5258 Use atomic_load_relaxed and atomic_store_relaxed.
5259 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5260 Use atomic_store_relaxed.
5261
5262 2018-10-17 Andreas Schwab <schwab@suse.de>
5263
5264 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5265 * crypt/badsalttest.c (TIMEOUT): Likewise.
5266 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5267 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5268 * io/test-lfs.c (TIMEOUT): Likewise.
5269 * libio/tst-atime.c (TIMEOUT): Likewise.
5270 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5271 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5272 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5273 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5274 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5275 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5276 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5277 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5278 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5279 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5280 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5281 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5282 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5283 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5284 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5285 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5286 * nptl/tst-once2.c (TIMEOUT): Likewise.
5287 * nptl/tst-once3.c (TIMEOUT): Likewise.
5288 * nptl/tst-once4.c (TIMEOUT): Likewise.
5289 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5290 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5291 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5292 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5293 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5294 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5295 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5296 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5297 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5298 * posix/tst-chmod.c (TIMEOUT): Likewise.
5299 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5300 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5301 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5302 * posix/tst-regex2.c (TIMEOUT): Likewise.
5303 * posix/tst-waitid.c (TIMEOUT): Likewise.
5304 * rt/tst-aio.c (TIMEOUT): Likewise.
5305 * rt/tst-aio10.c (TIMEOUT): Likewise.
5306 * rt/tst-aio4.c (TIMEOUT): Likewise.
5307 * rt/tst-aio5.c (TIMEOUT): Likewise.
5308 * rt/tst-aio6.c (TIMEOUT): Likewise.
5309 * rt/tst-aio64.c (TIMEOUT): Likewise.
5310 * rt/tst-aio7.c (TIMEOUT): Likewise.
5311 * rt/tst-aio9.c (TIMEOUT): Likewise.
5312 * rt/tst-clock.c (TIMEOUT): Likewise.
5313 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5314 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5315 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5316 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5317 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5318 * rt/tst-timer4.c (TIMEOUT): Likewise.
5319 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5320 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5321 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5322 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5323 * time/tst-ftime.c (TIMEOUT): Likewise.
5324 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5325
5326 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5327
5328 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5329 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5330 for thunderX2.
5331
5332 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5333
5334 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5335 bits/sem-pad.h.
5336 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5337 instead of <bits/wordsize.h>.
5338 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5339 and [__SEM_PAD_AFTER_TIME].
5340 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5341 __syscall_ulong_t instead of unsigned long int.
5342 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5343 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5344 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5345 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5346 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5347 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5348 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5349 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5350 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5351 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5352 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5353
5354 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5355
5356 regex: simplify by using intprops.h
5357 [BZ#23744]
5358 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5359 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5360 intprops.h defines them.
5361
5362 regex: __builtin_expect → __glibc_unlikely
5363 [BZ#23744]
5364 This refactoring was prompted by a problem when the regex code is
5365 used as part of Gnulib and when the builder’s compiler does not grok
5366 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5367 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5368 Although this refactoring does not fix the problem directly,
5369 we might as well have Gawk use the now-preferred glibc style for when
5370 __builtin_expect is unavailable.
5371 * posix/regex_internal.h (BE): Remove.
5372 All uses replaced by __glibc_unlikely or __glibc_likely.
5373
5374 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5375
5376 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5377 bits/msq-pad.h.
5378 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5379 instead of <bits/wordsize.h>.
5380 (msgqnum_t): Define as __syscall_ulong_t.
5381 (msglen_t): Likewise.
5382 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5383 and [__MSQ_PAD_AFTER_TIME].
5384 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5385 __syscall_ulong_t instead of unsigned long int.
5386 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5387 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5388 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5389 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5390 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5391 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5392 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5393 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5394 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5395 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5396 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5397
5398 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5399
5400 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5401 (struct shmid_ds): Condition padding after time fields on
5402 [__WORDSIZE == 32].
5403 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5404 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5405 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5406
5407 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5408 (struct semid_ds): Condition padding after time fields on
5409 [__WORDSIZE == 32].
5410 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5411 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5412 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5413 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5414
5415 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5416 (struct msqid_ds): Condition padding after time fields on
5417 [__WORDSIZE == 32].
5418 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5419 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5420 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5421 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5422
5423 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5424
5425 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5426
5427 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5428
5429 * libio/tst-readline.c (TIMEOUT): Define.
5430
5431 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5432
5433 mktime fix for Gnulib + coreutils
5434 [BZ#23745]
5435 This fix affects only Gnulib. Problem discovered when
5436 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5437 * time/mktime.c:
5438 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5439 Do not define since it is not used. Defining an unused static
5440 function prompts a warning from GCC when Coreutils is configured
5441 with --enable-gcc-warnings.
5442
5443 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5444
5445 * benchtests/scripts/compare_bench.py (main): set float type on
5446 threshold argument.
5447
5448 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5449
5450 [BZ #23740]
5451 * localedata/locales/kl_GL (mon): Update, the relative case.
5452 (alt_mon): Add, fill with month names in the nominative case.
5453 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5454 (d_fmt): Set to "%b %d %Y".
5455
5456 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5457
5458 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5459 <bits/mman-linux.h>.
5460 (PROT_READ): Don't define here.
5461 (PROT_WRITE): Likewise.
5462 (PROT_EXEC): Likewise.
5463 (PROT_NONE): Likewise.
5464 (PROT_GROWSDOWN): Likewise.
5465 (PROT_GROWSUP): Likewise.
5466 (MAP_SHARED): Likewise.
5467 (MAP_PRIVATE): Likewise.
5468 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5469 [__USE_MISC] (MAP_FILE): Likewise.
5470 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5471 [__USE_MISC] (MAP_ANON): Likewise.
5472 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5473 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5474 (MCL_CURRENT): Likewise.
5475 (MCL_FUTURE): Likewise.
5476 (MCL_ONFAULT): Likewise.
5477 [__USE_MISC] (MADV_NORMAL): Likewise.
5478 [__USE_MISC] (MADV_RANDOM): Likewise.
5479 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5480 [__USE_MISC] (MADV_WILLNEED): Likewise.
5481 [__USE_MISC] (MADV_DONTNEED): Likewise.
5482 [__USE_MISC] (MADV_FREE): Likewise.
5483 [__USE_MISC] (MADV_REMOVE): Likewise.
5484 [__USE_MISC] (MADV_DONTFORK): Likewise.
5485 [__USE_MISC] (MADV_DOFORK): Likewise.
5486 [__USE_MISC] (MADV_HWPOISON): Likewise.
5487 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5488 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5489 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5490 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5491 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5492 (__MAP_ANONYMOUS): New macro.
5493 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5494 <bits/mman-linux.h> inclusion.
5495 (MAP_FIXED): Likewise.
5496 (MS_SYNC): Likewise.
5497 (MS_ASYNC): Likewise.
5498 (MS_INVALIDATE): Likewise.
5499 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5500 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5501 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5502 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5503 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5504 [__USE_MISC] (MADV_DODUMP): Likewise.
5505 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5506 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5507
5508 [BZ #23735]
5509 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5510 Define.
5511 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5512 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5513 Add test-nldbl-redirect.
5514 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5515 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5516 $(objpfx)libnldbl_nonshared.a.
5517
5518 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5519
5520 * support/support.h (support_objdir_elf_ldso): New variable.
5521 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5522 * support/Makefile (CFLAGS-support_paths.c): Add definition
5523 for OBJDIR_ELF_LDSO_PATH.
5524 * support/test-container.c (main): Search for the ld.so
5525 which is also used by the testsuite.
5526
5527 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5528
5529 [BZ #20209]
5530 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5531 should be "sap" rather than "sab".
5532 (day): Fix spelling of Sunday, should be "sapaat" rather than
5533 "sabaat".
5534
5535 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5536
5537 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5538
5539 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5540
5541 [BZ #19444]
5542 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5543 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5544 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5545
5546 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5547
5548 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5549
5550 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5551
5552 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5553 Add -mrtm.
5554 (CFLAGS-elision-unlock.c): Likewise.
5555 (CFLAGS-elision-timed.c): Likewise.
5556 (CFLAGS-elision-trylock.c): Likewise.
5557 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5558
5559 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5560
5561 [BZ #21037]
5562 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5563 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5564 new fd_to_filename interface.
5565 * libio/freopen64.c (freopen64): Likewise.
5566 * libio/tst-memstream.h: New file.
5567 * libio/tst-memstream4.c: Likewise.
5568 * libio/tst-wmemstream4.c: Likewise.
5569 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5570 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5571 and remove internal dynamic allocation.
5572
5573 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5574
5575 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5576 (MREMAP_MAYMOVE): Do not define here.
5577 [__USE_GNU] (MREMAP_FIXED): Likewise.
5578 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5579 (MREMAP_MAYMOVE): Define here instead.
5580 [__USE_GNU] (MREMAP_FIXED): Likewise.
5581 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5582 (MREMAP_MAYMOVE): Remove.
5583 [__USE_GNU] (MREMAP_FIXED): Likewise.
5584
5585 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5586
5587 * math/fromfp.h: Do not include <math_private.h>.
5588 * math/s_cacosh_template.c: Likewise.
5589 * math/s_casin_template.c: Likewise.
5590 * math/s_casinh_template.c: Likewise.
5591 * math/s_ccos_template.c: Likewise.
5592 * math/s_cproj_template.c: Likewise.
5593 * math/s_fdim_template.c: Likewise.
5594 * math/s_fmaxmag_template.c: Likewise.
5595 * math/s_fminmag_template.c: Likewise.
5596 * math/s_iseqsig_template.c: Likewise.
5597 * math/s_ldexp_template.c: Likewise.
5598 * math/s_nextdown_template.c: Likewise.
5599 * math/w_log1p_template.c: Likewise.
5600 * math/w_scalbln_template.c: Likewise.
5601 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5602 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5603 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5604 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5605 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5606 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5607 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5608 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5609 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5610 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5611 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5612 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5613 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5614 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5615 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5616 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5617 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5618 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5619 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5620 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5621 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5622 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5623 * sysdeps/ieee754/k_standardf.c: Likewise.
5624 * sysdeps/ieee754/k_standardl.c: Likewise.
5625 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5626 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5627 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5628 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5629 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5630 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5631 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5632 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5633 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5634 * sysdeps/ieee754/s_signgam.c: Likewise.
5635 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5636 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5637 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5638 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5639 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5640 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5641 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5642 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5643 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5644 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5645 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5646 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5647 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5648 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5649 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5650 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5651 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5652 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5653 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5654 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5655 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5656 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5657 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5658 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5659 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5660 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5661 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5662 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5663 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5664 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5665 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5666 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5667 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5668 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5669 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5670 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5671 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5672 <math_private.h>.
5673 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5674
5675 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 [BZ #23716]
5678 * sysdeps/i386/dl-cet.c: Removed.
5679 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5680 prototype.
5681 (_dl_runtime_profile_shstk): Likewise.
5682 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5683 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5684
5685 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5686
5687 [BZ #23579]
5688 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5689 do_test_with_invalid_iov): New tests.
5690 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5691 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5692 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5693 errno is ENOSYS.
5694 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5695 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5696 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5697
5698 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5699
5700 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5701 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5702 (MATH_REDIRECT_BINARY_ARGS): New macro.
5703 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5704 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5705 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5706 header inclusion.
5707 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5708 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5709 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5710 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5711 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5712 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5713 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5714 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5715 Likewise.
5716 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5717 Likewise.
5718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5719 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5720 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5721 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5723 Likewise.
5724 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5725 Likewise.
5726 * sysdeps/generic/math_private_calls.h
5727 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5728 Do not declare and define as an inline function.
5729 * math/divtc3.c (__divtc3): Use copysign functions instead of
5730 __copysign variants.
5731 * math/multc3.c (__multc3): Likewise.
5732 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5733 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5734 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5735 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5736 Likewise.
5737 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5738 (__ieee754_yn): Likewise.
5739 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5740 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5741 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5742 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5743 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5744 (__sin): Likewise.
5745 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5746 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5747 Likewise.
5748 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5749 Likewise.
5750 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5751 Likewise.
5752 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5753 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5754 Likewise.
5755 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5756 (__ieee754_ynf): Likewise.
5757 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5758 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5759 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5760 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5761 Likewise.
5762 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5763 (__ieee754_ynl): Likewise.
5764 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5765 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5766 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5767 Likewise.
5768 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5769 (__ieee754_ynl): Likewise.
5770 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5771 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5772 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5773 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5774 Likewise.
5775 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
5776 (__ieee754_ynl)
5777 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
5778 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
5779 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
5780 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
5781 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5782
5783 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5784 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
5785 using MATH_REDIRECT.
5786 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
5787 header inclusion.
5788 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
5789 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5790 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5791 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
5792 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
5793 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
5794 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
5795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
5796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
5797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
5798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
5799 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5800 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5801 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
5802 (round): Redirect to __round.
5803 (__roundl): Call round instead of __round.
5804 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
5805 Remove macro.
5806 [_ARCH_PWR5X] (__roundf): Likewise.
5807 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
5808 functions instead of __round variants.
5809 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
5810 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
5811 Likewise.
5812 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
5813 Likewise.
5814 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
5815 Likewise.
5816 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
5817 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
5818 __lroundl.
5819 (__ieee754_expl): Call roundl instead of __roundl.
5820
5821 2018-09-27 Andreas Schwab <schwab@suse.de>
5822
5823 [BZ #23717]
5824 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
5825 (do_test): Make st1 static.
5826
5827 2018-09-26 Andreas Schwab <schwab@suse.de>
5828
5829 [BZ #23707]
5830 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
5831 * elf/Makefile (tests): Add tst-unwind-ctor.
5832 (modules-names): Add tst-unwind-ctor-lib.
5833 ($(objpfx)tst-unwind-ctor): Depend on
5834 $(objpfx)tst-unwind-ctor-lib.so.
5835
5836 2018-09-26 Joseph Myers <joseph@codesourcery.com>
5837
5838 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
5839 file. Most contents moved from ....
5840 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
5841 and include <bits/mman-map-flags-generic.h>.
5842 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5843 (sysdep_headers): Add bits/mman-map-flags-generic.h.
5844 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
5845 <bits/mman-map-flags-generic.h>.
5846 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
5847 macros defined in <bits/mman-map-flags-generic.h>.
5848 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
5849 <bits/mman-map-flags-generic.h>.
5850 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
5851 defined in <bits/mman-map-flags-generic.h>.
5852
5853 2018-09-26 Andreas Schwab <schwab@suse.de>
5854
5855 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
5856 output.
5857
5858 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
5859 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5860 Fangrui Song <maskray@google.com>
5861
5862 [BZ #20480]
5863 * config.make.in (have-textrel_ifunc): New define.
5864 * configure.ac: Add check if linker supports textrel relocation with
5865 ifunc.
5866 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
5867 tst-ifunc-textrel.
5868 (CFLAGS-tst-ifunc-textrel.c): New rule.
5869 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
5870 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
5871 * elf/tst-ifunc-textrel.c: New file.
5872
5873 2018-09-25 Joseph Myers <joseph@codesourcery.com>
5874
5875 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5876 <bits/procfs-prregset.h>.
5877 (prgregset_t): Define using __prgregset_t.
5878 (prfpregset_t): Define using __prfpregset_t.
5879 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5880 (sysdep_headers): Add bits/procfs-prregset.h.
5881 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
5882 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
5883 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
5884 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
5885
5886 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
5887 <bits/procfs-id.h> and <bits/procfs-extra.h>.
5888 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
5889 pr_uid and pr_gid.
5890 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5891 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
5892 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
5893 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
5894 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
5895 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
5896 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
5897 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
5898 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
5899 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
5900 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
5901 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
5902 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
5903 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
5904 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
5905 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
5906 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
5907 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
5908 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
5909 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
5910 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
5911 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
5912 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
5913 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
5914
5915 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
5916 AArch64 version. Include <bits/procfs.h>.
5917 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5918 (sysdep_headers): Add bits/procfs.h.
5919 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
5920 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
5921 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
5922 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
5923 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
5924 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
5925 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
5926 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
5927 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
5928 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
5929 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
5930 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
5931 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
5932 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
5933 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
5934 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
5935 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
5936
5937 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5938
5939 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
5940 Use libsupport.
5941
5942 2018-09-25 Arjun Shankar <arjun@redhat.com>
5943
5944 * iconv/gconv_int.h (__gconv_path_elem): Remove.
5945 (__gconv_max_path_elem_len): Likewise.
5946 (__gconv_nmodules): Likewise.
5947 (__gconv_get_path): Likewise.
5948 (path_elem): Move to ...
5949 * iconv/gconv_conf.c: ... here.
5950 (__gconv_get_path): Mark function static.
5951 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
5952 * iconv/gconv_open.c: ... here.
5953
5954 2018-09-24 Andreas Schwab <schwab@suse.de>
5955
5956 * scripts/haveversions.awk: New file.
5957 * Makerules ($(common-objpfx)Versions.def)
5958 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
5959 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
5960 Move rules ...
5961 * Makeconfig ($(common-objpfx)Versions.def)
5962 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
5963 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
5964 ... here.
5965 ($(common-objpfx)Versions.mk): New rule. Include it.
5966 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
5967 Emit error if build-obsolete-nsl = yes.
5968 * manual/install.texi (Configuring and compiling): Describe
5969 --enable-obsolete-nsl as unavaiable after version 2.28.
5970 * INSTALL: Regenerate.
5971
5972 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5973
5974 * NEWS: Add note about new TLE support on powerpc64le.
5975 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
5976 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
5977 __ununsed1.
5978 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
5979 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
5980 * sysdeps/powerpc/powerpc32/sysdep.h,
5981 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
5982 ABORT_TRANSACTION): Remove macros.
5983 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
5984 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
5985 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
5986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
5987 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
5988 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
5989 usage.
5990 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
5991
5992 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
5993
5994 [BZ #10425]
5995 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
5996 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
5997 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
5998 which is the same as in it_IT.
5999 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6000 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6001
6002 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6003
6004 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6005 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6006 using MATH_REDIRECT.
6007 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6008 header inclusion.
6009 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6010 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6011 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6012 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6013 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6014 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6015 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6016 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6019 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6020 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6021 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6022 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6023 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6024 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6025 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6026 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6027 (ceil): Redirect to __ceil.
6028 (floor): Redirect to __floor.
6029 (trunc): Redirect to __trunc.
6030 (__truncl): Call trunc instead of __trunc.
6031 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6032 Remove macro.
6033 [_ARCH_PWR5X] (__truncf): Likewise.
6034 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6035 trunc functions instead of __trunc variants.
6036 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6037 Likewise.
6038 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6039 Likewise.
6040 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6041 Likewise.
6042 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6043 Likewise.
6044
6045 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6046 [__i586__ || __pentium__].
6047 [__i486__]: Handle explicitly.
6048 (HAS_CPUID): Define to 1 if above macros are undefined.
6049 (HAS_I586): Likewise.
6050 (HAS_I686): Likewise.
6051
6052 2018-09-20 Florian Weimer <fweimer@redhat.com>
6053
6054 * misc/tst-gethostid.c: New file.
6055 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6056 (tst-gethostid): Link with -ldl.
6057
6058 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6059
6060 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6061 value from gethostbyname_r.
6062
6063 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6064
6065 * stdlib/tst-setcontext9.c (f1): Rename to...
6066 (f1a): ... this.
6067 (f1b): New function implementing lower half of f1 in alternate stack.
6068
6069 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6070
6071 Fix mktime localtime offset confusion
6072 [BZ #23603]
6073 * include/time.h (__mktime_internal): The localtime offset is now
6074 of type long int instead of time_t. This is the longstanding type
6075 in glibc, and it is more than enough to represent difference
6076 between localtime and gmtime even if it is 32 bits and time_t is
6077 64. Changing it now will let us avoid an unnecessary change when
6078 time_t is widened to 64 bits on 32-bit platforms.
6079 * time/mktime-internal.h (mktime_offset_t): Now long int.
6080
6081 Merge mktime, timegm from upstream Gnulib
6082 [BZ #23603][BZ #16346]
6083 This fixes some obscure problems with integer overflow.
6084 Although it looks scary, it is almost all a byte-for-byte copy
6085 from Gnulib, and the Gnulib code has been tested reasonably well.
6086 * include/intprops.h: New file, copied from Gnulib.
6087 * include/verify.h, time/mktime-internal.h:
6088 New tiny files, simplified from Gnulib.
6089 * time/mktime.c: Copy from Gnulib. This has the following changes:
6090 Do not include config.h if DEBUG_MKTIME is nonzero.
6091 Include stdbool.h, intprops.h, verify.h.
6092 Include string.h only if needed.
6093 Include stdlib.h on MS-Windows.
6094 Include mktime-internal.h.
6095 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6096 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6097 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6098 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6099 simplify later conditionals; default the others to zero. Use
6100 these conditionals to express only the code needed on the current
6101 platform. In uses of these conditionals, explicitly spell out how
6102 _LIBC affects things, so it’s easier to review from a glibc
6103 viewpoint.
6104 (WRAPV): Remove; no longer needed now that we have
6105 systematic overflow checking.
6106 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6107 compartmentalize tzset issues. Move system-dependent tzsettish
6108 code here from mktime.
6109 (verify): Remove; now done by verify.h. All uses changed.
6110 (long_int): Use a more-conservative definition, to avoid
6111 integer overflow.
6112 (SHR): Remove, replacing with ...
6113 (shr): New function, which means we needn’t worry about side
6114 effects in args, and conversion analysis is simpler.
6115 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6116 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6117 (time_t_avg, time_t_add_ok): Remove.
6118 (mktime_min, mktime_max): New constants.
6119 (leapyear, isdst_differ): Use bool for booleans.
6120 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6121 Use long_int, not time_t, for mktime differences.
6122 (long_int_avg): New function, replacing time_t_avg.
6123 INT_ADD_WRAPV replaces time_t_add_ok.
6124 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6125 All uses changed.
6126 (convert_time): New function.
6127 (ranged_convert): Use it.
6128 (__mktime_internal): Last arg now points to mktime_offset_t, not
6129 time_t. All uses changed. This is a no-op on glibc, where
6130 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6131 offset guess. Directly check for integer overflow instead of
6132 using a heuristic that works only 99.9...% of the time.
6133 Access *OFFSET only once, to avoid an unlikely race if the
6134 compiler delays a load and if this cascades into a signed integer
6135 overflow.
6136 (mktime): Move tzsettish code to my_tzset, and move
6137 localtime_offset to within mktime so that it doesn’t
6138 need a separate ifdef.
6139 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6140 instead of localtime.
6141 * time/timegm.c: Copy from Gnulib. This has the following changes:
6142 Include mktime-internal.h.
6143 [!_LIBC]: Include config.h and time.h. Do not include
6144 timegm.h or time_r.h. Make __mktime_internal a macro,
6145 and include mktime-internal.h to get its declaration.
6146 (timegm): Temporary is now mktime_offset_t, not time_t.
6147 This affects only Gnulib.
6148
6149 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6150
6151 [BZ #23637]
6152 * string/test-strstr.c (pr23637): New function.
6153 (test_main): Add tests with longer needles.
6154 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6155 * string/strstr.c (AVAILABLE): Likewise.
6156
6157 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6158
6159 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6160
6161 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6162
6163 * NEWS: Mention pow improvements.
6164 * math/Makefile (type-double-routines): Add e_pow_log_data.
6165 * sysdeps/generic/math_private.h (__exp1): Remove.
6166 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6167 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6168 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6169 contraction.
6170 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6171 (exp_inline): Remove.
6172 (__ieee754_exp): Only single double input is handled.
6173 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6174 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6175 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6176 (__pow_log_data): Define.
6177 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6178 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6179 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6180 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6181 contraction.
6182 (CFLAGS-e_pow-fma4.c): Likewise.
6183
6184 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6185
6186 Simplify tzfile fstat failure code
6187 [BZ #21716]
6188 * time/tzfile.c (__tzfile_read): Simplify slightly.
6189
6190 Fix tzfile low-memory assertion failure
6191 [BZ #21716]
6192 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6193 when registering time zone abbreviations.
6194
6195 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6196
6197 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6198 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6199 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6200 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6201 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6202 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6203 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6204 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6205 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6206
6207 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6208 __ceil.
6209 (__ceill): Call ceil instead of __ceil.
6210 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6211 __floor.
6212 (__floorl): Call floor instead of __floor.
6213
6214 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6215
6216 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6217 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6218 using MATH_REDIRECT.
6219 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6220 header inclusion.
6221 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6222 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6223 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6224 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6225 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6226 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6227 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6228 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6229 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6230 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6233 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6234 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6235 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6236 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6237 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6238 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6239 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6240 Remove macro.
6241 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6242 functions instead of __ceil variants.
6243 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6244 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6245 Likewise.
6246 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6247 Likewise.
6248 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6249 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6250 Likewise.
6251 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6252 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6253
6254 [BZ #21286]
6255 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6256 constant.
6257 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6258 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6259 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6260 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6261 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6262 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6263 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6264 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6265 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6266 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6267 (ILL_BADIADDR): Remove constant.
6268 (TRAP_BRANCH): Likewise.
6269 (TRAP_HWBKPT): Likewise.
6270
6271 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6272
6273 [BZ #23656]
6274 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6275 Remove [_MIPS_SIM = _ABIN32] conditional case.
6276 (struct elf_prpsinfo): Likewise.
6277
6278 [BZ #23649]
6279 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6280 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6281 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6282 Likewise.
6283 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6284 elf_prpsinfo): Likewise.
6285 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6286 elf_prpsinfo): Likewise.
6287 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6288 Likewise.
6289
6290 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6291 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6292 using MATH_REDIRECT.
6293 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6294 header inclusion.
6295 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6296 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6297 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6298 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6299 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6300 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6301 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6302 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6303 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6304 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6305 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6306 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6307 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6308 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6309 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6310 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6311 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6312 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6313 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6314 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6315 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6316 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6317 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6318 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6319 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6320 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6321 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6322 __rint variants.
6323 * math/e_scalbf.c (invalid_fn): Likewise.
6324 * math/e_scalbl.c (invalid_fn): Likewise.
6325 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6326 Likewise.
6327 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6328 Likewise.
6329 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6330 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6331 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6332 Likewise.
6333 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6334 Likewise.
6335 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6336 Likewise.
6337 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6338 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6339
6340 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6341 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6342 New macro.
6343 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6344 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6345 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6346 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6347 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6348 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6349 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6350 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6351 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6352 && !NO_MATH_REDIRECT] (floor): Likewise.
6353 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6354 header inclusion.
6355 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6356 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6357 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6358 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6359 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6360 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6361 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6362 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6363 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6364 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6367 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6368 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6369 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6370 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6371 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6372 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6373 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6374 Remove macro.
6375 [_ARCH_PWR5X] (__floorf): Likewise.
6376 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6377 inline function.
6378 [__SSE4_1__] (__floorf): Likewise.
6379 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6380 instead of __floor variants.
6381 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6382 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6383 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6384 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6385 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6386 * math/w_tgamma_compat.c (__tgamma): Likewise.
6387 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6388 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6389 * math/w_tgammal_compat.c (__tgammal): Likewise.
6390 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6391 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6392 Likewise.
6393 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6394 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6395 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6396 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6397 Likewise.
6398 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6399 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6400 Likewise.
6401 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6402 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6403 Likewise.
6404 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6405 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6406 Likewise.
6407 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6408 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6409 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6410 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6411 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6412 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6413
6414 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6415
6416 * elf/Makefile (modules-names-tests): New variable.
6417
6418 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6419
6420 * NEWS: Mention log2 improvements.
6421 * math/Makefile (type-double-routines): Add e_log2_data.
6422 * sysdeps/i386/fpu/e_log2_data.c: New file.
6423 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6424 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6425 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6426 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6427 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6428 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6429
6430 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6431
6432 * NEWS: Mention log improvement.
6433 * math/Makefile (type-double-routines): Add e_log_data.
6434 * sysdeps/i386/fpu/e_log_data.c: New file.
6435 * sysdeps/ia64/fpu/e_log_data.c: New file.
6436 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6437 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6438 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6439 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6440 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6441 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6442
6443 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6444 Xuepeng Guo <xuepeng.guo@intel.com>
6445
6446 [BZ #23606]
6447 * sysdeps/i386/start.S: Include <sysdep.h>
6448 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6449 enabled. Add cfi_undefined (eip).
6450
6451 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6452
6453 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6454 (MOVQ): Likewise.
6455 (EXTRACT_WORDS64): Likewise.
6456 (INSERT_WORDS64): Likewise.
6457 (GET_FLOAT_WORD): Likewise.
6458 (SET_FLOAT_WORD): Likewise.
6459
6460 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6461 argument.
6462 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6463 build, but not for second build if --full-gcc. Use
6464 --enable-languages=all for second build if --full-gcc.
6465 (get_parser): Add --full-gcc option.
6466 (main): Update call to Context.
6467
6468 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6469
6470 [BZ #10797]
6471 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6472 Single Quotation Mark).
6473 (thousands_sep): Likewise.
6474 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6475 * localedata/locales/it_IT (thousands_sep): Use ".".
6476 (grouping): Use "3;3".
6477
6478 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6479
6480 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6481 x86_64 and i686 configs using --enable-obsolete-rpc
6482 --enable-obsolete-nsl.
6483
6484 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6485
6486 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6487
6488 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6489
6490 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6491 Increment size of new_argv by one.
6492
6493 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6494
6495 [BZ #17426]
6496 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6497 * localedata/locales/ar_IN (d_fmt): Likewise.
6498 * localedata/locales/bhb_IN (d_fmt): Likewise.
6499 * localedata/locales/bho_IN (d_fmt): Likewise.
6500 * localedata/locales/bn_BD (d_fmt): Likewise.
6501 * localedata/locales/bn_IN (d_fmt): Likewise.
6502 * localedata/locales/doi_IN (d_fmt): Likewise.
6503 * localedata/locales/gu_IN (d_fmt): Likewise.
6504 * localedata/locales/hi_IN (d_fmt): Likewise.
6505 * localedata/locales/hne_IN (d_fmt): Likewise.
6506 * localedata/locales/kn_IN (d_fmt): Likewise.
6507 * localedata/locales/mag_IN (d_fmt): Likewise.
6508 * localedata/locales/mai_IN (d_fmt): Likewise.
6509 * localedata/locales/mjw_IN (d_fmt): Likewise.
6510 * localedata/locales/ml_IN (d_fmt): Likewise.
6511 * localedata/locales/mni_IN (d_fmt): Likewise.
6512 * localedata/locales/mr_IN (d_fmt): Likewise.
6513 * localedata/locales/pa_IN (d_fmt): Likewise.
6514 * localedata/locales/raj_IN (d_fmt): Likewise.
6515 * localedata/locales/sat_IN (d_fmt): Likewise.
6516 * localedata/locales/sd_IN (d_fmt): Likewise.
6517 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6518 * localedata/locales/ta_IN (d_fmt): Likewise.
6519 * localedata/locales/ta_LK (d_fmt): Likewise.
6520 * localedata/locales/tcy_IN (d_fmt): Likewise.
6521 * localedata/locales/ur_IN (d_fmt): Likewise.
6522
6523 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6524 * localedata/locales/ks_IN (d_fmt): Likewise.
6525 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6526
6527 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6528 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6529 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6530 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6531
6532 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6533
6534 * NEWS: Mention exp and exp2 improvements.
6535 * math/Makefile (libm-support): Remove t_exp.
6536 (type-double-routines): Add math_err and e_exp_data.
6537 * sysdeps/aarch64/libm-test-ulps: Update.
6538 * sysdeps/arm/libm-test-ulps: Update.
6539 * sysdeps/i386/fpu/e_exp_data.c: New file.
6540 * sysdeps/i386/fpu/math_err.c: New file.
6541 * sysdeps/i386/fpu/t_exp.c: Remove.
6542 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6543 * sysdeps/ia64/fpu/math_err.c: New file.
6544 * sysdeps/ia64/fpu/t_exp.c: Remove.
6545 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6546 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6547 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6548 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6549 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6550 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6551 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6552 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6553 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6554 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6555 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6556 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6557 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6558 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6559 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6560 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6561
6562 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6563
6564 * sysdeps/alpha/fpu/math_private.h: Remove.
6565
6566 * sysdeps/generic/math_private.h
6567 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6568 Move this inline function ....
6569 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6570 * include/math.h [!_ISOMAC]: To here....
6571
6572 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6573
6574 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6575 code ....
6576 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6577 * include/fenv.h [!_ISOMAC]: ... to here.
6578 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6579 (feraiseexcept): Likewise.
6580 * math/fromfp.h: Do not include <fenv_private.h>.
6581 * math/s_cexp_template.c: Likewise.
6582 * math/s_csin_template.c: Likewise.
6583 * math/s_csinh_template.c: Likewise.
6584 * math/s_ctan_template.c: Likewise.
6585 * math/s_ctanh_template.c: Likewise.
6586 * math/s_iseqsig_template.c: Likewise.
6587 * math/w_acos_compat.c: Likewise.
6588 * math/w_acosf_compat.c: Likewise.
6589 * math/w_acosl_compat.c: Likewise.
6590 * math/w_asin_compat.c: Likewise.
6591 * math/w_asinf_compat.c: Likewise.
6592 * math/w_asinl_compat.c: Likewise.
6593 * math/w_j0_compat.c: Likewise.
6594 * math/w_j0f_compat.c: Likewise.
6595 * math/w_j0l_compat.c: Likewise.
6596 * math/w_j1_compat.c: Likewise.
6597 * math/w_j1f_compat.c: Likewise.
6598 * math/w_j1l_compat.c: Likewise.
6599 * math/w_jn_compat.c: Likewise.
6600 * math/w_jnf_compat.c: Likewise.
6601 * math/w_log10_compat.c: Likewise.
6602 * math/w_log10f_compat.c: Likewise.
6603 * math/w_log10l_compat.c: Likewise.
6604 * math/w_log2_compat.c: Likewise.
6605 * math/w_log2f_compat.c: Likewise.
6606 * math/w_log2l_compat.c: Likewise.
6607 * math/w_log_compat.c: Likewise.
6608 * math/w_logf_compat.c: Likewise.
6609 * math/w_logl_compat.c: Likewise.
6610 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6611 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6612 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6613 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6614 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6615 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6616 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6617 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6618 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6619 * sysdeps/ieee754/k_standardl.c: Likewise.
6620 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6621 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6622 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6623 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6624 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6625 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6626 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6627 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6628 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6629 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6630 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6631 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6632 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6633 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6634 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6635 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6636 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6637 * math/w_ilogb_template.c: Include <fenv.h> instead of
6638 <fenv_private.h>.
6639 * math/w_llogb_template.c: Likewise.
6640 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6641 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6642
6643 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6644
6645 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6646 * math/fromfp.h: Include <fenv_private.h>.
6647 * math/math-narrow.h: Likewise.
6648 * math/s_cexp_template.c: Likewise.
6649 * math/s_csin_template.c: Likewise.
6650 * math/s_csinh_template.c: Likewise.
6651 * math/s_ctan_template.c: Likewise.
6652 * math/s_ctanh_template.c: Likewise.
6653 * math/s_iseqsig_template.c: Likewise.
6654 * math/w_acos_compat.c: Likewise.
6655 * math/w_acosf_compat.c: Likewise.
6656 * math/w_acosl_compat.c: Likewise.
6657 * math/w_asin_compat.c: Likewise.
6658 * math/w_asinf_compat.c: Likewise.
6659 * math/w_asinl_compat.c: Likewise.
6660 * math/w_ilogb_template.c: Likewise.
6661 * math/w_j0_compat.c: Likewise.
6662 * math/w_j0f_compat.c: Likewise.
6663 * math/w_j0l_compat.c: Likewise.
6664 * math/w_j1_compat.c: Likewise.
6665 * math/w_j1f_compat.c: Likewise.
6666 * math/w_j1l_compat.c: Likewise.
6667 * math/w_jn_compat.c: Likewise.
6668 * math/w_jnf_compat.c: Likewise.
6669 * math/w_llogb_template.c: Likewise.
6670 * math/w_log10_compat.c: Likewise.
6671 * math/w_log10f_compat.c: Likewise.
6672 * math/w_log10l_compat.c: Likewise.
6673 * math/w_log2_compat.c: Likewise.
6674 * math/w_log2f_compat.c: Likewise.
6675 * math/w_log2l_compat.c: Likewise.
6676 * math/w_log_compat.c: Likewise.
6677 * math/w_logf_compat.c: Likewise.
6678 * math/w_logl_compat.c: Likewise.
6679 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6680 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6681 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6682 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6683 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6684 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6685 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6686 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6687 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6688 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6689 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6690 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6691 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6692 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6693 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6694 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6695 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6696 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6697 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6698 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6699 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6700 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6701 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6702 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6703 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6704 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6705 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6706 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6707 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6708 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6709 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6710 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6711 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6712 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6713 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6714 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6715 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6716 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6717 * sysdeps/ieee754/k_standardl.c: Likewise.
6718 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6719 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6720 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6721 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6722 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6723 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6724 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6725 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6726 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6727 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6728 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6729 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6730 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6731 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6732 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6733 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6734 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6735 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6736 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6737 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6738 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6739 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6740 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6741 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6742 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6743 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6744 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6745 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6746 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6747 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6748 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6749 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6750 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6751 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6752 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6753 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6754 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6755 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6756 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6757 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6758 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6759 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6760 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6761 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6762 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6763 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6764 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6765 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6766 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6767 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6768 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6769 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6770 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6771 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6772 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6773 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6774 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6775 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6776 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6777 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6778 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6779 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6780 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6781 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6782 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6783 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6784 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6785 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6786 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6787 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6788 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6789
6790 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6791
6792 [BZ #20271]
6793 * include/stdio.h (__libc_fatal): Mention newline in comment.
6794 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
6795 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
6796 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6797 * nss/nsswitch.c (__nss_next2): Likewise.
6798 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
6799 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
6800 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
6801 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
6802 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
6803 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
6804 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
6805 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
6806 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
6807 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
6808 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
6809 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6810 (__netlink_assert_response): Likewise.
6811
6812 2018-08-31 Joseph Myers <joseph@codesourcery.com>
6813
6814 * conform/glibcconform.py: New file.
6815 * conform/list-header-symbols.py: Likewise.
6816 * conform/list-header-symbols.pl: Remove.
6817 * conform/Makefile (tests-special): Only add linknamespace tests
6818 if [PYTHON].
6819 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
6820
6821 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
6822
6823 [BZ #23597]
6824 * support/Makefile (libsupport-routines): Add
6825 support_copy_file_range and xcopy_file_range.
6826 * support/support.h: Include <sys/types.h>.
6827 (support_copy_file_range): New prototype.
6828 * support/support_copy_file_range.c: New file. Copied and
6829 modified from io/copy_file_range-compat.c.
6830 * support/test-container.c (copy_one_file): Call xcopy_file_rang
6831 instead of copy_file_range.
6832 * support/xcopy_file_range.c: New file.
6833 * support/xunistd.h (xcopy_file_range): New prototype.
6834
6835 2018-08-30 Carlos O'Donell <carlos@redhat.com>
6836
6837 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
6838 xpthread_create and xpthread_join.
6839
6840 2018-08-30 Florian Weimer <fweimer@redhat.com>
6841
6842 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
6843
6844 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
6845
6846 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
6847 if malloc fails.
6848
6849 2018-08-29 Joseph Myers <joseph@codesourcery.com>
6850
6851 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
6852 and minus_oflow as non-finite.
6853
6854 2018-08-28 Joseph Myers <joseph@codesourcery.com>
6855
6856 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
6857 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
6858 moved to fenv_private.h except for ...
6859 (TOINT_INTRINSICS): Kept in math_private.h.
6860 (roundtoint): Likewise.
6861 (converttoint): Likewise.
6862 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
6863 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6864 * sysdeps/arm/math_private.h: Remove.
6865 * sysdeps/generic/fenv_private.h: New file. Contents moved from
6866 ....
6867 * sysdeps/generic/math_private.h: ... this file. Include
6868 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
6869 Include <fenv_private.h>. Remove functions and macros moved to
6870 fenv_private.h.
6871 * sysdeps/i386/fpu/math_private.h: Remove.
6872 * sysdeps/mips/math_private.h: Move to ....
6873 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
6874 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
6875 [__mips_hard_float] conditional. Include next <fenv_private.h>.
6876 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
6877 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6878 * sysdeps/powerpc/fpu/math_private.h: Do not include
6879 <fenv_private.h>.
6880 * sysdeps/riscv/rvf/math_private.h: Move to ....
6881 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
6882 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
6883 <fenv_private.h>.
6884 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
6885 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
6886 * sysdeps/sparc/fpu/math_private.h: Remove.
6887 * sysdeps/i386/fpu/fenv_private.h: Move to ....
6888 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
6889 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
6890 <fenv_private.h>.
6891 * sysdeps/x86_64/fpu/math_private.h: Do not include
6892 <sysdeps/i386/fpu/fenv_private.h>.
6893
6894 2018-08-28 Florian Weimer <fweimer@redhat.com>
6895
6896 [BZ #23578]
6897 * posix/tst-regcomp-truncated.c: New file.
6898 * posix/Makefile (tests): Add it.
6899 (tst-regcomp-truncated.out): Depend on generated locales.
6900
6901 2018-08-28 Florian Weimer <fweimer@redhat.com>
6902
6903 * support/test-container.c (main): Treat unshare failure with
6904 EPERM as an unsupported test.
6905
6906 2018-08-28 Florian Weimer <fweimer@redhat.com>
6907
6908 [BZ #23520]
6909 nscd: Fix use-after-free in addgetnetgrentX and its callers.
6910 * nscd/netgroupcache.c
6911 (addgetnetgrentX): Add tofreep parameter. Do not free
6912 heap-allocated buffer.
6913 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
6914 (addgetnetgrentX_ignore): New function.
6915 (addgetnetgrent): Call it.
6916 (readdgetnetgrent): Likewise.
6917
6918 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6919
6920 * string/memmem.c: Use memcmp for first match.
6921
6922 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
6923
6924 [BZ #17426]
6925 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
6926
6927 2018-08-27 DJ Delorie <dj@redhat.com>
6928
6929 * support/Makefile (others): Don't list programs explicitly as a
6930 dependency of "others".
6931
6932 2018-08-27 Joseph Myers <joseph@codesourcery.com>
6933
6934 * sysdeps/generic/math-tests-trap-force.h: New file.
6935 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
6936 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
6937 * sysdeps/powerpc/math-tests.h: Remove file.
6938 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
6939
6940 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
6941 Torvald Riegel <triegel@redhat.com>
6942
6943 [BZ #23538]
6944 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
6945 Update r to include the set wake-request flag if waiters are
6946 remaining after spinning.
6947
6948 2018-08-27 Joseph Myers <joseph@codesourcery.com>
6949
6950 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
6951
6952 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
6953
6954 [BZ #23578]
6955 regex: fix uninitialized memory access
6956 I introduced this bug into gnulib in commit
6957 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
6958 eventually it was merged into glibc. The bug was found by
6959 project-repo <bugs@feusi.co> and reported here:
6960 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
6961 Diagnosis and draft fix reported by Assaf Gordon here:
6962 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
6963 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
6964 * posix/regex_internal.c (build_wcs_upper_buffer):
6965 Fix bug when mbrtowc returns 0.
6966
6967 2018-08-24 Carlos O'Donell <carlos@redhat.com>
6968
6969 * po/be.po: Update translation.
6970
6971 2018-08-24 DJ Delorie <dj@delorie.com>
6972
6973 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
6974 $(libunwind).
6975
6976 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
6977
6978 [BZ #23400]
6979 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
6980 create temporary files in source tree.
6981
6982 2018-08-24 Joseph Myers <joseph@codesourcery.com>
6983
6984 * sysdeps/generic/math-tests-trap.h: New file.
6985 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
6986 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
6987 * sysdeps/aarch64/math-tests.h: Remove file.
6988 * sysdeps/arm/math-tests.h: Likewise.
6989 * sysdeps/riscv/math-tests.h: Likewise.
6990 * sysdeps/aarch64/math-tests-trap.h: New file.
6991 * sysdeps/arm/math-tests-trap.h: Likewise.
6992 * sysdeps/riscv/math-tests-trap.h: Likewise.
6993
6994 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
6995
6996 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
6997 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
6998 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
6999 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7000 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7001 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7002 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7003 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7004 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7005 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7006 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7007 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7008 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7009 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7010 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7011 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7012 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7013 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7014
7015 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7016
7017 * sysdeps/generic/math-tests-exceptions.h: New file.
7018 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7019 (EXCEPTION_TESTS_float): Do not define here.
7020 (EXCEPTION_TESTS_double): Likewise.
7021 (EXCEPTION_TESTS_long_double): Likewise.
7022 (EXCEPTION_TESTS_float128): Likewise.
7023 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7024 Likewise.
7025 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7026 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7027 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7028 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7029 * sysdeps/mips/math-tests.h: Likewise.
7030 * sysdeps/nios2/math-tests.h: Likewise.
7031 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7032 (EXCEPTION_TESTS_float): Do not define here.
7033 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7034 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7035 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7036
7037 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7038
7039 * NEWS: Move optimized sinf entry to 2.29.
7040
7041 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7042
7043 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7044
7045 2018-08-22 DJ Delorie <dj@redhat.com>
7046
7047 * Makefile (testroot.pristine): New rules to initialize the
7048 test-in-container "testroot".
7049 * Makerules (all-testsuite): Add tests-container.
7050 * Rules (tests-expected): Add tests-container.
7051 (binaries-all-tests): Likewise.
7052 (tests-container): New, run these tests in the testroot container.
7053 * support/Makefile (others): Add *-container, support_paths.c,
7054 xmkdirp, and links-dso-program.
7055 * support/links-dso-program-c.c: New.
7056 * support/links-dso-program.cc: New.
7057 * support/test-container.c: New.
7058 * support/shell-container.c: New.
7059 * support/echo-container.c: New.
7060 * support/true-container.c: New.
7061 * support/xmkdirp.c: New.
7062 * support/xsymlink.c: New.
7063 * support/support_paths.c: New.
7064 * support/support.h: Add support paths prototypes.
7065 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7066
7067 * nss/tst-nss-test3.c: Convert to test-in-container.
7068 * nss/tst-nss-test3.root/: New.
7069
7070 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7071
7072 regex: port Gnulib code to z/OS POSIX environment
7073 Problem reported by Arnold Robbins in:
7074 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7075 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7076 Undef.
7077
7078 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7079
7080 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7081 (ROUNDING_TESTS_double): Remove.
7082 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7083 (ROUNDING_TESTS_double): Remove.
7084 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7085 (ROUNDING_TESTS_double): Remove.
7086 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7087 (ROUNDING_TESTS_float): Remove.
7088 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7089 (ROUNDING_TESTS_float): Remove.
7090 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7091 (ROUNDING_TESTS_float): Remove.
7092 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7093 !TEST_MATHVEC here.
7094 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7095 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7096
7097 * sysdeps/generic/math-tests-rounding.h: New file.
7098 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7099 (ROUNDING_TESTS_float): Do not define here.
7100 (ROUNDING_TESTS_double): Likewise.
7101 (ROUNDING_TESTS_long_double): Likewise.
7102 (ROUNDING_TESTS_float128): Likewise.
7103 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7104 (ROUNDING_TESTS_double): Undefine before defining.
7105 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7106 (ROUNDING_TESTS_double): Undefine before defining.
7107 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7108 (ROUNDING_TESTS_double): Undefine before defining.
7109 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7110 (ROUNDING_TESTS_float): Undefine before defining.
7111 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7112 (ROUNDING_TESTS_float): Undefine before defining.
7113 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7114 (ROUNDING_TESTS_float): Undefine before defining.
7115 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7116 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7117 not define here.
7118 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7119 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7120 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7121 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7122 (ROUNDING_TESTS_float): Do not define here.
7123 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7124 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7125 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7126 (ROUNDING_TESTS_float): Likewise.
7127 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7128 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7129 * sysdeps/mips/math-tests.h [__mips_soft_float]
7130 (ROUNDING_TESTS_float): Likewise.
7131 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7132 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7133 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7134 (ROUNDING_TESTS_double): Likewise.
7135 (ROUNDING_TESTS_long_double): Likewise.
7136
7137 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7138
7139 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7140 (PF_XDP): New macro.
7141 (AF_XDP): New macro.
7142 (SOL_XDP): New macro.
7143
7144 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7145
7146 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7147 (TCP_INQ): Likewise.
7148 (TCP_CM_INQ): Likewise.
7149 (TCP_REPAIR_ON): Likewise.
7150 (TCP_REPAIR_OFF): Likewise.
7151 (TCP_REPAIR_OFF_NO_WP): Likewise.
7152 (struct tcp_zerocopy_receive): New type.
7153
7154 2018-08-21 Florian Weimer <fweimer@redhat.com>
7155
7156 * support/support.h (support_descriptor_supports_holes): Declare.
7157 * support/Makefile (libsupport-routines): Add
7158 support_descriptor_supports_holes.
7159 * support/support_descriptor_supports_holes.c: New file.
7160 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7161 and stop testing if holes are not supported.
7162 * io/test-lfs.c (do_prepare): Likewise.
7163 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7164 Likewise.
7165 * timezone/tst-tzset.c (create_tz_file): Likewise.
7166 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7167 variable.
7168 (do_prepare): Set it.
7169 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7170
7171 2018-08-21 Florian Weimer <fweimer@redhat.com>
7172
7173 [BZ #17248]
7174 * Makeconfig (+cflags): Do not sort (and deduplicate).
7175
7176 2018-08-21 Florian Weimer <fweimer@redhat.com>
7177
7178 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7179 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7180
7181 2018-08-20 Florian Weimer <fweimer@redhat.com>
7182
7183 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7184 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7185
7186 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7187
7188 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7189 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7190 and ssi_arch members.
7191
7192 * elf/elf.c (NT_VMCOREDD): New macro.
7193 (AT_MINSIGSTKSZ): Likewise.
7194
7195 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7196
7197 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7198 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7199 s_cosf-ppc64 and s_cosf-power8.
7200 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7201 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7202 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7203 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7210 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7211 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7212
7213 2018-08-17 Florian Weimer <fweimer@redhat.com>
7214
7215 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7216
7217 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7218
7219 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7220
7221 2018-08-16 Florian Weimer <fweimer@redhat.com>
7222
7223 * configure.ac: Add --with-nonshared-cflags option.
7224 * config.make.in (extra-nonshared-cflags): Set variable.
7225 * Makeconfig (CFLAGS-.oS): Use it.
7226 * manual/install.texi (Configuring and compiling): Document
7227 --with-nonshared-cflags.
7228 * configure: Regenerate.
7229 * INSTALL: Likewise.
7230
7231 2018-08-16 Florian Weimer <fweimer@redhat.com>
7232
7233 * Makeconfig (ASFLAGS): Always append required assembler flags.
7234
7235 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7236
7237 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7238 (malloc_consolidate): Likewise.
7239
7240 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7241
7242 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7243
7244 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7245
7246 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7247 every strlen call.
7248
7249 * benchtests/bench-strlen.c: Print performance numbers in json.
7250
7251 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7252
7253 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7254 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7255 only for little endian.
7256 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7257 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7258 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7259 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7260 Add check for little endian.
7261 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7262 (__strcmp_power9): Add check for little endian.
7263 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7264 Add check for little endian.
7265 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7266 (__strncmp_power9): Add check for little endian.
7267 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7268 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7269 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7270 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7271 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7272
7273 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7274
7275 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7276 [!STRLEN](STRLEN): Set to __strlen.
7277 * sysdeps/aarch64/multiarch/strlen.c: New file.
7278 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7279 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7280 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7281 (__libc_ifunc_impl_list): Add strlen.
7282 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7283 strlen_generic and strlen_asimd.
7284
7285 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7286
7287 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7288 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7289 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7290
7291 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7292
7293 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7294
7295 2018-08-14 Florian Weimer <fweimer@redhat.com>
7296
7297 [BZ #23519]
7298 * include/stdio.h (__vfxprintf): Declare.
7299 * stdio-common/fxprintf.c (__vfxprintf): New function.
7300 (__fxprintf): Call it.
7301 * misc/err.c (convert_and_print): Remove function.
7302 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7303 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7304 * misc/Makefile (tests): Add tst-warn-wide.
7305 * misc/tst-warn-wide.c: New file.
7306
7307 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7308 Szabolcs Nagy <szabolcs.nagy@arm.com>
7309
7310 * NEWS: Mention sinf, cosf, sincosf.
7311 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7312 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7313 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7314 constants rather than including generic sincosf.h.
7315 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7316 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7317 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7318 (reduced_cos): Remove.
7319 (sinf_poly): New function.
7320 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7321
7322 2018-08-14 Florian Weimer <fweimer@redhat.com>
7323
7324 [BZ #23521]
7325 [BZ #23522]
7326 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7327 processing, bail out if no room, and close the stream before
7328 returning ERANGE.
7329 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7330 (tst-nss-files-alias-leak): Link with libdl.
7331 (tst-nss-files-alias-leak.out): Depend on nss_files.
7332
7333 * nss/tst-nss-files-alias-leak.c: New file.
7334
7335 2018-08-14 Florian Weimer <fweimer@redhat.com>
7336
7337 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7338 server_user, stat_user.
7339
7340 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7341
7342 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7343 version to 4.18.
7344 (io_pgetevents): New syscall.
7345 (rseq): Likewise.
7346
7347 * manual/install.texi (Configuring and compiling): Do not list
7348 tools used for testing pretty printers here.
7349 (Tools for Compilation): List Python, PExpect and GDB here.
7350 Update descriptions of uses of Perl and Python.
7351 * INSTALL: Regenerate.
7352
7353 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7354 version to 4.18.
7355
7356 2018-08-13 Florian Weimer <fweimer@redhat.com>
7357
7358 * misc/error.c (error): Add missing va_end call.
7359 (error_at_line): Likewise.
7360
7361 2018-08-13 Florian Weimer <fweimer@redhat.com>
7362
7363 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7364
7365 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7366
7367 * benchtests/scripts/benchout.schema.json (properties): Add
7368 new properties.
7369
7370 * benchtests/bench-skeleton.c (main): Add duration and
7371 iterations attributes.
7372
7373 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7374
7375 regex: Gnulib unibyte RRI uses bytes not chars
7376 Adjust the non-glibc code to agree with what Gawk needs for
7377 rational range interpretation (RRI) for regular expression ranges.
7378 In unibyte locales, Gawk wants ranges to use the underlying byte
7379 rather than the character code point. This change does not affect
7380 glibc proper.
7381 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7382 In unibyte locales, use the byte value rather than
7383 running it through btowc.
7384
7385 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7386
7387 * sysdeps/generic/math-tests-snan.h: New file.
7388 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7389 (SNAN_TESTS_float): Do not define here.
7390 (SNAN_TESTS_double): Likewise.
7391 (SNAN_TESTS_long_double): Likewise.
7392 (SNAN_TESTS_float128): Likewise.
7393 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7394 * sysdeps/i386/fpu/math-tests.h: Remove file.
7395 * sysdeps/ia64/math-tests-snan.h: New file.
7396 * sysdeps/ia64/math-tests.h: Remove file.
7397 * sysdeps/x86/math-tests.h: Likewise.
7398 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7399
7400 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7401 Szabolcs Nagy <szabolcs.nagy@arm.com>
7402
7403 * math/Makefile: Add s_sincosf_data.c.
7404 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7405 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7406 (sincosf_poly): Likewise.
7407 (reduce_small): Likewise.
7408 (reduce_large): Likewise.
7409 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7410 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7411 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7412 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7413
7414 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7415 Szabolcs Nagy <szabolcs.nagy@arm.com>
7416
7417 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7418 (converttoint): Use lround.
7419 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7420 document the semantics when TOINT_INTRINSICS is set.
7421 (converttoint): Likewise.
7422 (TOINT_RINT): Remove.
7423 (TOINT_SHIFT): Remove.
7424 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7425 path.
7426
7427 2018-08-10 Florian Weimer <fweimer@redhat.com>
7428
7429 [BZ #23497]
7430 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7431 function.
7432 (__old_getdents64): Use getdents64. Convert entries without
7433 moving them.
7434 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7435 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7436 tst-readdir64-compat.
7437
7438 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7439
7440 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7441 Fix unwind.
7442
7443 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7444
7445 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7446 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7447 code to s390x-mcount.h and #include it.
7448 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7449 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7450 (__fentry__): Add.
7451
7452 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7453
7454 * stdlib/Versions: Remove __fentry__.
7455 * sysdeps/i386/Versions: Add __fentry__.
7456 * sysdeps/x86_64/Versions: Add __fentry__.
7457
7458 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7459
7460 * sysdeps/s390/Makefile: Register the new tests.
7461 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7462 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7463 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7464 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7465 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7466 * sysdeps/s390/tst-dl-runtime.c: New file.
7467
7468 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7469
7470 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7471 Do not clobber R0.
7472
7473 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7474
7475 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7476 Do not clobber R0.
7477
7478 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7479
7480 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7481 Do not clobber R0.
7482
7483 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7484
7485 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7486 Do not clobber R0.
7487
7488 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7489
7490 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7491 Use symbolic offsets for stack variables.
7492
7493 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7494
7495 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7496 Use symbolic offsets for stack variables.
7497
7498 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7499
7500 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7501 Use symbolic offsets for stack variables.
7502
7503 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7504
7505 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7506 Use symbolic offsets for stack variables.
7507
7508 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7509
7510 * math/gen-libm-test.py: New file.
7511 * math/gen-libm-test.pl: Remove.
7512 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7513 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7514 gen-libm-test.pl.
7515 ($(libm-test-c-noauto-obj)): Likewise.
7516 ($(libm-test-c-auto-obj)): Likewise.
7517 ($(libm-test-c-narrow-obj)): Likewise.
7518 (regen-ulps): Likewise.
7519 * math/README.libm-test: Update references to gen-libm-test.pl.
7520 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7521 referencing gen-libm-test.pl.
7522 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7523 * math/libm-test-support.c: Likewise.
7524 * math/libm-test-support.h: Likewise.
7525 * sysdeps/generic/libm-test-ulps: Likewise.
7526
7527 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7528
7529 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7530 Fix value.
7531
7532 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7533
7534 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7535 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7536
7537 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7538
7539 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7540 symbols.
7541 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7542 __pthread_setspecific): Add hidden proto.
7543 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7544 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7545
7546 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7547
7548 * benchtests/bench-string.h (buf1_size, buf2_size): New
7549 variables.
7550 (init_sizes): New function.
7551 (test_init): Use it.
7552 (alloc_buf, exit_error): New functions.
7553 (alloc_bufs): Use ALLOC_BUF.
7554 (realloc_bufs): Remove.
7555 * benchtests/bench-memcmp.c (do_test): Adjust.
7556 * benchtests/bench-memset-large.c (do_test): Likewise.
7557 * benchtests/bench-memset-walk.c (do_test): Likewise.
7558 * benchtests/bench-memset.c (do_test): Likewise.
7559 * benchtests/bench-strncmp.c (do_test): Likewise.
7560
7561 2018-08-06 Andreas Schwab <schwab@suse.de>
7562
7563 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7564 of CONST_THREAD_AREA.
7565
7566 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7567
7568 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7569 (STATE_SAVE_MASK): Likewise.
7570 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7571 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7572 (STATE_SAVE_MASK): Likewise.
7573 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7574 instead of <cpu-features.h>.
7575
7576 2018-08-03 DJ Delorie <dj@redhat.com>
7577
7578 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7579 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7580
7581 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7582
7583 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7584
7585 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7586 after TEST_* calls.
7587 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7588 * math/libm-test-logb.inc (logb_test_data): Likewise.
7589
7590 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7591
7592 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7593 * string/strstr.c (AVAILABLE): Likewise.
7594
7595 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7596
7597 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7598 <init-arch.h>.
7599 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7600 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7601 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7602
7603 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7604
7605 * po/be.po: Update translation.
7606
7607 * po/be.po: Update translation.
7608
7609 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7610
7611 * sysdeps/x86/cpu-features-offsets.sym
7612 (rtld_global_ro_offsetof): Removed.
7613 (CPU_FEATURES_SIZE): Likewise.
7614 (CPUID_OFFSET): Likewise.
7615 (CPUID_SIZE): Likewise.
7616 (CPUID_EAX_OFFSET): Likewise.
7617 (CPUID_EBX_OFFSET): Likewise.
7618 (CPUID_ECX_OFFSET): Likewise.
7619 (CPUID_EDX_OFFSET): Likewise.
7620 (FAMILY_OFFSET): Likewise.
7621 (MODEL_OFFSET): Likewise.
7622 (FEATURE_OFFSET): Likewise.
7623 (FEATURE_SIZ): Likewise.
7624 (COMMON_CPUID_INDEX_1): Likewise.
7625 (COMMON_CPUID_INDEX_7): Likewise.
7626 (FEATURE_INDEX_1): Likewise.
7627 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7628
7629 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7630
7631 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7632 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7633 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7634 (install-locales): Depend on install-locale-archive.
7635 (install-locale-archive): Define.
7636 (install-locale-files): Define.
7637 (build-one-locale): Define macro.
7638 * manual/install.texi (Running make install): Document.
7639 * manual/INSTALL: Regenerate.
7640
7641 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7642
7643 * benchtests/scripts/compare_strings.py: Import traceback.
7644 (parse_file): Pretty-print error.
7645
7646 * NEWS: Mention the change.
7647 * elf/dl-tunables.list: Rename tune namespace to cpu.
7648 * sysdeps/powerpc/dl-tunables.list: Likewise.
7649 * sysdeps/x86/dl-tunables.list: Likewise.
7650 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7651 cpu.name.
7652 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7653 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7654 * manual/README.tunables: Likewise.
7655 * manual/tunables.texi: Likewise.
7656 * sysdeps/powerpc/cpu-features.c: Likewise.
7657 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7658 (init_cpu_features): Likewise.
7659 * sysdeps/x86/cpu-features.c: Likewise.
7660 * sysdeps/x86/cpu-features.h: Likewise.
7661 * sysdeps/x86/cpu-tunables.c: Likewise.
7662 * sysdeps/x86_64/Makefile: Likewise.
7663 * sysdeps/x86/dl-cet.c: Likewise.
7664
7665 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7666
7667 [BZ #23479]
7668 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7669 [__mips_hard_float].
7670 (FE_UNDERFLOW): Likewise.
7671 (FE_OVERFLOW): Likewise.
7672 (FE_DIVBYZERO): Likewise.
7673 (FE_INVALID): Likewise.
7674 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7675 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7676 (FE_UPWARD): Likewise.
7677 (FE_DOWNWARD): Likewise.
7678 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7679 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7680 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7681 [__mips_hard_float].
7682 (FP_ROUNDMODE): Likewise.
7683 (FP_RND_NEAREST): Likewise.
7684 (FP_RND_ZERO): Likewise.
7685 (FP_RND_PINF): Likewise.
7686 (FP_RND_MINF): Likewise.
7687 (FP_EX_INVALID): Likewise.
7688 (FP_EX_OVERFLOW): Likewise.
7689 (FP_EX_UNDERFLOW): Likewise.
7690 (FP_EX_DIVZERO): Likewise.
7691 (FP_EX_INEXACT): Likewise.
7692 (FP_INIT_ROUNDMODE): Likewise.
7693 * sysdeps/mips/nofpu/fesetenv.c: New file.
7694 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7695
7696 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7697
7698 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7699 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7700 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7701 conditional on [FE_UPWARD].
7702
7703 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7704
7705 regex: fix memory leak in Gnulib
7706 Problem and fix reported by Assaf Gordon in:
7707 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7708 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7709 range_ends members too, as they are defined in 'struct
7710 re_charset_t' even if not _LIBC. This affects only Gnulib.
7711
7712 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7713
7714 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7715 ...
7716 (get_common_indices): This.
7717 (init_cpu_features): Updated.
7718
7719 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7720
7721 * sysdeps/generic/math-tests-snan-payload.h: New file.
7722 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7723 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7724 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7725 * sysdeps/generic/math-tests.h: Include
7726 <math-tests-snan-payload.h>.
7727 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7728 * sysdeps/hppa/math-tests.h: Remove file.
7729 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7730 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7731 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7732 Likewise.
7733
7734 * sysdeps/generic/math-tests-snan-cast.h: New file.
7735 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7736 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7737 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7738 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7739
7740 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7741
7742 * version.h (RELEASE): Set to "development".
7743 (VERSION): Set to "2.28.9000".
7744 * NEWS (2.29): New section.
7745
7746 * version.h (RELEASE): Set to "stable".
7747 (VERSION): Set to "2.28".
7748 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7749 * NEWS: Add the list of bugs fixed in 2.28.
7750
7751 * po/ca.po: Update to latest version.
7752 * po/cs.po: Likewise
7753 * po/da.po: Likewise
7754 * po/el.po: Likewise
7755 * po/eo.po: Likewise
7756 * po/es.po: Likewise
7757 * po/fi.po: Likewise
7758 * po/fr.po: Likewise
7759 * po/gl.po: Likewise
7760 * po/hu.po: Likewise
7761 * po/ia.po: Likewise
7762 * po/id.po: Likewise
7763 * po/it.po: Likewise
7764 * po/ja.po: Likewise
7765 * po/ko.po: Likewise
7766 * po/lt.po: Likewise
7767 * po/nb.po: Likewise
7768 * po/nl.po: Likewise
7769 * po/pt_BR.po: Likewise
7770 * po/ru.po: Likewise
7771 * po/rw.po: Likewise
7772 * po/sk.po: Likewise
7773 * po/sl.po: Likewise
7774 * po/tr.po: Likewise
7775 * po/zh_CN.po: Likewise
7776 * po/zh_TW.po: Likewise
7777
7778 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7779
7780 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
7781 initialization...
7782 (init): ... before initializing libpthread.
7783
7784 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
7785 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
7786 (__mach_setup_tls): ... new function.
7787 (mach_setup_tls): New alias.
7788 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
7789 __mach_setup_thread.
7790 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
7791 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
7792 * mach/Versions [libc] (mach_setup_tls): Add symbol.
7793 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
7794
7795 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7796
7797 * manual/install.texi: Update versions.
7798 * INSTALL: Regenerate.
7799
7800 * manual/contrib.texi (Contributors): Update contributions.
7801
7802 2018-07-31 Carlos O'Donell <carlos@redhat.com>
7803
7804 * po/be.po: Update translations.
7805
7806 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7807
7808 * sysdeps/sh/libm-test-ulps: Update.
7809
7810 2018-07-30 Carlos O'Donell <carlos@redhat.com>
7811
7812 * po/bg.po: Update translations.
7813 * po/de.po: Likewise.
7814 * po/hr.po: Likewise.
7815 * po/pt_BR.po: Likewise.
7816 * po/sv.po: Likewise.
7817 * po/vi.po: Likewise.
7818
7819 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7820
7821 [BZ #23467]
7822 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7823 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
7824 (CFLAGS-tst-cet-property-1.o): New.
7825 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
7826 ($(objpfx)tst-cet-property-2): Likewise.
7827 ($(objpfx)tst-cet-property-2.out): Likewise.
7828 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
7829 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
7830 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
7831 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
7832 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
7833
7834 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
7835
7836 [BZ #23458]
7837 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
7838
7839 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7840
7841 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
7842 __sbrk): Do not set attribute_hidden.
7843 * sysdeps/mach/hurd/not-errno.h: New file.
7844 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7845 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
7846
7847 2018-07-27 Carlos O'Donell <carlos@redhat.com>
7848
7849 * po/uk.po: Update translations.
7850 * po/cs.po: Likewise.
7851 * po/pl.po: Likewise.
7852
7853 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
7854
7855 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
7856 parse beyond the note end.
7857
7858 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7859
7860 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
7861 kernel does not support OFD locks.
7862 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
7863
7864 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
7865
7866 * sysdeps/mach/hurd/Versions (libc): Make __access and
7867 __access_noerrno external so they can override the ld symbols.
7868 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
7869 __writev, __open64, __access_noerrno extern so they can be overrided.
7870 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
7871 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
7872
7873 2018-07-26 Carlos O'Donell <carlos@redhat.com>
7874
7875 * po/libc.pot: Regenerate.
7876
7877 2018-07-26 Joseph Myers <joseph@codesourcery.com>
7878
7879 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7880
7881 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7882
7883 [BZ #23459]
7884 * sysdeps/x86/cpu-features.c (get_extended_indices): New
7885 function.
7886 (init_cpu_features): Call get_extended_indices for both Intel
7887 and AMD CPUs.
7888 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
7889 Remove "for AMD" comment.
7890
7891 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
7892
7893 [BZ # 23456]
7894 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
7895 COMMON_CPUID_INDEX_80000001.
7896
7897 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
7898
7899 * string/tst-xbzero-opt.c (use_test_buffer): New function.
7900 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
7901
7902 2018-07-26 Florian Weimer <fweimer@redhat.com>
7903
7904 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
7905 aliases for symbols not in the implementation namespace.
7906
7907 2018-07-25 Carlos O'Donell <carlos@redhat.com>
7908
7909 [BZ #23393]
7910 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
7911 lowercase in LATIN script.
7912 * localedata/Makefile (test-input): Add en_US.UTF-8.
7913 * localedata/en_US.UTF-8.in: New file.
7914 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
7915 and restore old tests.
7916 * posix/tst-regexloc.c (do_test): Add back range expression test.
7917
7918 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7919
7920 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
7921
7922 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7923
7924 * nptl/threads.h: Move to ...
7925 * sysdeps/nptl/threads.h: ... here.
7926 * sysdeps/hurd/stdc-predef.h: New file.
7927
7928 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7929
7930 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
7931 tst-cet-setcontext-1 if CET is enabled.
7932 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
7933 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
7934
7935 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7936
7937 * include/threads.h: Move to ...
7938 * sysdeps/nptl/threads.h: ... here.
7939 * sysdeps/htl/threads.h: New file.
7940 * conform/Makefile (linknamespace-libs-ISO11): Use
7941 static-thread-library instead of linking libpthread.
7942 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
7943
7944 2018-07-25 Florian Weimer <fweimer@redhat.com>
7945
7946 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
7947 nanoseconds into seconds.
7948 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
7949 (do_test): Likewise.
7950 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
7951 (do_test): Likewise. Avoid nanosecond overflow and spurious
7952 timeouts due to system load.
7953 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
7954 (child_wait): Increment it.
7955 (do_test): Wait as long as necessary until all expected threads
7956 have arrived.
7957
7958 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
7959 H.J. Lu <hongjiu.lu@intel.com>
7960
7961 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
7962 __ssp.
7963 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
7964 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
7965 (__push___start_context): New.
7966 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
7967 <asm/prctl.h>.
7968 (__getcontext): Record the current shadow stack base. Save the
7969 caller's shadow stack pointer and base.
7970 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
7971 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
7972 (__push___start_context): New prototype.
7973 (__makecontext): Call __push___start_context to allocate a new
7974 shadow stack, push __start_context onto the new stack as well
7975 as the new shadow stack.
7976 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
7977 <asm/prctl.h>.
7978 (__setcontext): Restore the target shadow stack.
7979 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
7980 <asm/prctl.h>.
7981 (__swapcontext): Record the current shadow stack base. Save
7982 the caller's shadow stack pointer and base. Restore the target
7983 shadow stack.
7984 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
7985 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
7986 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
7987
7988 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7989
7990 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
7991 tst-setcontext8 and tst-setcontext9.
7992 * stdlib/tst-setcontext6.c: New file.
7993 * stdlib/tst-setcontext7.c: Likewise.
7994 * stdlib/tst-setcontext8.c: Likewise.
7995 * stdlib/tst-setcontext9.c: Likewise.
7996
7997 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
7998
7999 * stdlib/Makefile ((tests): Add tst-setcontext5.
8000 * stdlib/tst-setcontext5.c: New file.
8001
8002 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8003
8004 * stdlib/Makefile (tests): Add tst-setcontext4.
8005 * stdlib/tst-setcontext4.c: New file.
8006
8007 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8008
8009 * stdlib/Makefile (tests): Add tst-swapcontext1.
8010 * stdlib/tst-swapcontext1.c: New test.
8011
8012 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8013
8014 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8015 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8016 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8017 and tst-cet-legacy-4c.
8018 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8019 and tst-cet-legacy-mod-4.
8020 (CFLAGS-tst-cet-legacy-2.c): New.
8021 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8022 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8023 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8024 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8025 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8026 ($(objpfx)tst-cet-legacy-1): Likewise.
8027 ($(objpfx)tst-cet-legacy-2): Likewise.
8028 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8029 ($(objpfx)tst-cet-legacy-2a): Likewise.
8030 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8031 ($(objpfx)tst-cet-legacy-4): Likewise.
8032 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8033 ($(objpfx)tst-cet-legacy-4a): Likewise.
8034 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8035 (tst-cet-legacy-4a-ENV): Likewise.
8036 ($(objpfx)tst-cet-legacy-4b): Likewise.
8037 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8038 (tst-cet-legacy-4b-ENV): Likewise.
8039 ($(objpfx)tst-cet-legacy-4c): Likewise.
8040 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8041 (tst-cet-legacy-4c-ENV): Likewise.
8042 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8043 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8044 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8045 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8046 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8047 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8048 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8049 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8050 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8051 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8052 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8053
8054 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8055
8056 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8057 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8058 with ssp_base.
8059 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8060 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8061 with ssp_base.
8062
8063 2018-07-25 Andreas Schwab <schwab@suse.de>
8064
8065 [BZ #23442]
8066 * locale/weightwc.h (findidx): Handle the case where usrc is a
8067 prefix of cp but one character too short.
8068
8069 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8070
8071 * NEWS: Add ISO C threads addition.
8072
8073 2018-07-24 Florian Weimer <fweimer@redhat.com>
8074
8075 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8076 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8077 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8078 4.13.
8079
8080 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8081
8082 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8083 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8084 <sys/prctl.h> and <asm/prctl.h>.
8085 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8086 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8087 and <asm/prctl.h>.
8088 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8089 ARCH_CET_LEGACY_BITMAP.
8090 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8091 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8092 * sysdeps/x86/libc-start.c: Include <startup.h>.
8093
8094 2018-07-24 Florian Weimer <fweimer@redhat.com>
8095
8096 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8097 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8098
8099 2018-07-24 Rical Jasan <rj@2c3t.io>
8100 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8101 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8102
8103 [BZ #14092]
8104 * manual/debug.texi: Update adjacent chapter name.
8105 * manual/probes.texi: Likewise.
8106 * manual/threads.texi (ISO C Threads): New section.
8107 (POSIX Threads): Convert to a section.
8108
8109 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8110 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8111
8112 [BZ# 14092]
8113 * nptl/Makefile (tests): Add new test files.
8114 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8115 * nptl/tst-cnd-basic.c: Likewise.
8116 * nptl/tst-cnd-broadcast.c: Likewise.
8117 * nptl/tst-cnd-timedwait.c: Likewise.
8118 * nptl/tst-mtx-basic.c: Likewise.
8119 * nptl/tst-mtx-recursive.c: Likewise.
8120 * nptl/tst-mtx-timedlock.c: Likewise.
8121 * nptl/tst-mtx-trylock.c: Likewise.
8122 * nptl/tst-thrd-basic.c: Likewise.
8123 * nptl/tst-thrd-detach.c: Likewise.
8124 * nptl/tst-thrd-sleep.c: Likewise.
8125 * nptl/tst-tss-basic.c: Likewise.
8126
8127 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8128
8129 [BZ #14092]
8130 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8131 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8132 symbols.
8133 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8134 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8135 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8136 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8137 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8138 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8139 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8140 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8141 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8142 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8143 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8144 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8146 Likewise.
8147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8148 Likewise.
8149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8150 Likewise.
8151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8152 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8153 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8154 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8155 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8156 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8157 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8158 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8159 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8160 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8161 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8162 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8163 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8164 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8165 Likewise.
8166 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8167 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8168 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8169 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8170 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8171 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8172 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8173 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8174 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8175 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8176 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8177 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8178 ikewise.
8179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8181 Likewise.
8182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8183 Likewise.
8184 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8185 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8186 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8187 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8188 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8189 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8190 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8191 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8192
8193 [BZ #14092]
8194 * conform/data/threads.h-data (thread_local): New macro.
8195 (TSS_DTOR_ITERATIONS): Likewise.
8196 (tss_t): New type.
8197 (tss_dtor_t): Likewise.
8198 (tss_create): New function.
8199 (tss_get): Likewise.
8200 (tss_set): Likewise.
8201 (tss_delete): Likewise.
8202 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8203 tss_get, and tss_set objects.
8204 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8205 * nptl/tss_create.c: New file.
8206 * nptl/tss_delete.c: Likewise.
8207 * nptl/tss_get.c: Likewise.
8208 * nptl/tss_set.c: Likewise.
8209 * sysdeps/nptl/threads.h (thread_local): New define.
8210 (TSS_DTOR_ITERATIONS): Likewise.
8211 (tss_t): New typedef.
8212 (tss_dtor_t): Likewise.
8213 (tss_create): New prototype.
8214 (tss_get): Likewise.
8215 (tss_set): Likewise.
8216 (tss_delete): Likewise.
8217
8218 [BZ #14092]
8219 * conform/data/threads.h-data (cnd_t): New type.
8220 (cnd_init): New function.
8221 (cnd_signal): Likewise.
8222 (cnd_broadcast): Likewise.
8223 (cnd_wait): Likewise.
8224 (cnd_timedwait): Likewise.
8225 (cnd_destroy): Likewise.
8226 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8227 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8228 object.
8229 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8230 * nptl/cnd_broadcast.c: New file.
8231 * nptl/cnd_destroy.c: Likewise.
8232 * nptl/cnd_init.c: Likewise.
8233 * nptl/cnd_signal.c: Likewise.
8234 * nptl/cnd_timedwait.c: Likewise.
8235 * nptl/cnd_wait.c: Likewise.
8236 * sysdeps/nptl/threads.h (cnd_t): New type.
8237 (cnd_init): New prototype.
8238 (cnd_signa): Likewise.
8239 (cnd_broadcast): Likewise.
8240 (cnd_wait): Likewise.
8241 (cnd_timedwait): Likewise.
8242 (cnd_destroy): Likewise.
8243
8244 [BZ #14092]
8245 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8246 (once_flag): New type.
8247 (call_once): New function.
8248 * nptl/Makefile (libpthread-routines): Add call_once object.
8249 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8250 * nptl/call_once.c: New file.
8251 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8252 (once_flag): New type.
8253 (call_once): New prototype.
8254
8255 [BZ #14092]
8256 * conform/data/threads.h-data (mtx_plain): New constant.
8257 (mtx_recursive): Likewise.
8258 (mtx_timed): Likewise.
8259 (mtx_t): New type.
8260 (mtx_init): New function.
8261 (mtx_lock): Likewise.
8262 (mtx_timedlock): Likewise.
8263 (mtx_trylock): Likewise.
8264 (mtx_unlock): Likewise.
8265 (mtx_destroy): Likewise.
8266 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8267 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8268 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8269 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8270 * nptl/mtx_destroy.c: New file.
8271 * nptl/mtx_init.c: Likewise.
8272 * nptl/mtx_lock.c: Likewise.
8273 * nptl/mtx_timedlock.c: Likewise.
8274 * nptl/mtx_trylock.c: Likewise.
8275 * nptl/mtx_unlock.c: Likewise.
8276 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8277 (mtx_recursive): Likewise.
8278 (mtx_timed): Likewise.
8279 (mtx_t): New type.
8280 (mtx_init): New prototype.
8281 (mtx_lock): Likewise.
8282 (mtx_timedlock): Likewise.
8283 (mtx_trylock): Likewise.
8284 (mtx_unlock): Likewise.
8285 (mtx_destroy): Likewise.
8286
8287 [BZ #14092]
8288 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8289 (linknamespace-libs-ISO11): Add libpthread.a.
8290 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8291 functions.
8292 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8293 * nptl/Makefile (headers): Add threads.h.
8294 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8295 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8296 thrd_yield.
8297 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8298 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8299 thrd_join, thrd_sleep, and thrd_yield symbols.
8300 * nptl/descr.h (struct pthread): Add c11 field.
8301 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8302 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8303 routine with expected function prototype.
8304 (__pthread_create_2_1): Add C11 threads check based on attribute
8305 value.
8306 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8307 * nptl/thrd_create.c: New file.
8308 * nptl/thrd_current.c: Likewise.
8309 * nptl/thrd_detach.c: Likewise.
8310 * nptl/thrd_equal.c: Likewise.
8311 * nptl/thrd_exit.c: Likewise.
8312 * nptl/thrd_join.c: Likewise.
8313 * nptl/thrd_priv.h: Likewise.
8314 * nptl/thrd_sleep.c: Likewise.
8315 * nptl/thrd_yield.c: Likewise.
8316 * include/threads.h: Likewise.
8317
8318 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8319
8320 * bits/indirect-return.h: New file.
8321 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8322 * sysdeps/x86/bits/indirect-return.h: Likewise.
8323 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8324 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8325 (swapcontext): Add __INDIRECT_RETURN.
8326 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8327 (prepare_test_buffer): Use it.
8328
8329 2018-07-24 Andreas Schwab <schwab@suse.de>
8330
8331 [BZ #23448]
8332 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8333 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8334
8335 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8336
8337 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8338 Redefine if shadow stack is enabled.
8339 (SYSCALL_ERROR_LABEL): Likewise.
8340 (__vfork): Pop shadow stack and jump back to to caller directly
8341 when shadow stack is in use.
8342 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8343 Redefine if shadow stack is enabled.
8344 (SYSCALL_ERROR_LABEL): Likewise.
8345 (__vfork): Pop shadow stack and jump back to to caller directly
8346 when shadow stack is in use.
8347
8348 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8349
8350 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8351 enabled.
8352 (foo): Likewise.
8353 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8354 (foo): Likewise.
8355
8356 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8357
8358 * scripts/build-many-glibcs.py (Context.checkout): Default
8359 binutils version to 2.31 branch.
8360
8361 2018-07-20 Zong Li <zong@andestech.com>
8362
8363 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8364 URL of gcc's tarball.
8365
8366 2018-07-20 Florian Weimer <fweimer@redhat.com>
8367
8368 [BZ #23396]
8369 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8370 not compare an extra byte after the end of the weights.
8371
8372 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8373
8374 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8375 to 1.
8376 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8377 hidden prototypes.
8378 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8379 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8380 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8381 list of libraries whose stack executability is expected.
8382 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8383 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8384 variable.
8385 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8386 libc.so libpthread.so.
8387
8388 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8389
8390 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8391 SOCK_NONBLOCK.
8392 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8393 and SOCK_NONBLOCK.
8394 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8395 implement __pipe2.
8396 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8397
8398 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8399
8400 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8401 library to improve command line parsing.
8402 (__main__): make schema file as optional parameter (--schema),
8403 defaulting to benchtests/scripts/benchout.schema.json.
8404 (main): move out of the parsing stuff to __main_  and leave it
8405 only as caller of main comparison functions.
8406
8407 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8408
8409 * NEWS: Add a note for Intel CET status.
8410 * manual/install.texi: Likewise.
8411 * INSTALL: Regenerated.
8412
8413 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8414
8415 [BZ #23140]
8416 * localedata/locales/oc_FR (mon): Rename to...
8417 (alt_mon): This, then update October (typo fix).
8418 (mon): New content (genitive case, month names preceded by
8419 "de" or "d’").
8420
8421 [BZ #23422]
8422 * localedata/locales/oc_FR (abday): Update all items.
8423 (day): Update Wednesday and Saturday (typo fixes).
8424 (abmon): Update all items, except May.
8425 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8426 (LC_IDENTIFICATION): Bump the revision number and date.
8427 Keep the "category" entries in alphabetic order.
8428 (LC_ADDRESS): Remove no longer needed comment.
8429 (LC_COLLATE): Use “copy "ca_ES"”.
8430 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8431 "name_mrs".
8432
8433 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8434
8435 * grp/tst_fgetgrent.c: Include <unistd.h>.
8436 (main): Use mkstemp instead of tmpnam.
8437 * io/test-utime.c (main): Likewise.
8438 * posix/annexc.c (macrofile): Change to modifiable array.
8439 (main): Remove macrofile here.
8440 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8441 macrofile here.
8442 (check_header): Do not remove macrofile here.
8443 * posix/bug-getopt1.c: Include <stdlib.h>.
8444 (do_test): Use mkstemp instead of tmpnam.
8445 * posix/bug-getopt2.c: Include <stdlib.h>.
8446 (do_test): Use mkstemp instead of tmpnam.
8447 * posix/bug-getopt3.c: Include <stdlib.h>.
8448 (do_test): Use mkstemp instead of tmpnam.
8449 * posix/bug-getopt4.c: Include <stdlib.h>.
8450 (do_test): Use mkstemp instead of tmpnam.
8451 * posix/bug-getopt5.c: Include <stdlib.h>.
8452 (do_test): Use mkstemp instead of tmpnam.
8453 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8454 (main): Use mkstemp instead of tmpnam.
8455 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8456 (main): Use mkstemp instead of tmpnam.
8457 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8458 (main): use mkstemp instead of tmpnam.
8459 * stdlib/isomac.c (macrofile): Change to modifiable array.
8460 (main): Remove macrofile here.
8461 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8462 macrofile here.
8463 (check_header): Do not remove macrofile here.
8464
8465 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8466
8467 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8468 glibc.tune.x86_shstk.
8469
8470 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8471
8472 * NEWS: Mention --enable-cet.
8473 * manual/install.texi: Document --enable-cet.
8474 * INSTALL: Regenerated.
8475
8476 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8477
8478 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8479 Add _CET_NOTRACK before indirect jump to jump table.
8480
8481 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8482
8483 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8484 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8485 to jump table.
8486
8487 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8490 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8491 to jump table.
8492
8493 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8494
8495 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8496 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8497 to jump table.
8498
8499 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8500
8501 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8502 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8503 to jump table.
8504
8505 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8506
8507 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8508 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8509 to jump table.
8510 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8511
8512 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8513
8514 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8515 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8516 to jump table.
8517
8518 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8519
8520 * sysdeps/i386/i686/multiarch/memset-sse2.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/memcmp.S (memcmp): Add _CET_NOTRACK before
8527 indirect jump to jump table.
8528
8529 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8530
8531 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8532 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8533 to jump table.
8534 (MEMCPY): Likewise.
8535
8536 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8537
8538 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8539 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8540 to jump table.
8541 (MEMCPY): Likewise.
8542
8543 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8544
8545 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8546 _CET_NOTRACK before indirect jump to jump table.
8547
8548 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8549
8550 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8551 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8552 to jump table.
8553
8554 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8555
8556 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8557 indirect jump to jump table.
8558
8559 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8560
8561 [BZ #22241]
8562 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8563 (LOCALES): Likewise.
8564 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8565 * localedata/locales/sah_RU: New file.
8566 * localedata/sah_RU.UTF-8.in: New file.
8567
8568 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8569
8570 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8571 "sysdep.h".
8572 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8573 _CET_ENDBR to indirect jump targets and adjust jump destination
8574 for _CET_ENDBR.
8575 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8576 "sysdep.h".
8577 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8578 _CET_ENDBR to indirect jump targets and adjust jump destination
8579 for _CET_ENDBR.
8580 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8581 "sysdep.h".
8582 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8583 _CET_ENDBR to indirect jump targets and adjust jump destination
8584 for _CET_ENDBR.
8585
8586 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8587
8588 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8589 _CET_ENDBR.
8590
8591 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8592
8593 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8594 _CET_ENDBR.
8595 (_dl_tlsdesc_undefweak): Likewise.
8596 (_dl_tlsdesc_dynamic): Likewise.
8597 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8598 (_dl_tlsdesc_resolve_rel): Likewise.
8599 (_dl_tlsdesc_resolve_rela): Likewise.
8600 (_dl_tlsdesc_resolve_hold): Likewise.
8601 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8602 (_dl_tlsdesc_undefweak): Likewise.
8603 (_dl_tlsdesc_dynamic): Likewise.
8604 (_dl_tlsdesc_resolve_rela): Likewise.
8605 (_dl_tlsdesc_resolve_hold): Likewise.
8606
8607 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8608
8609 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8610 (_fini): Likewise.
8611 * sysdeps/x86_64/crti.S (_init): Likewise.
8612 (_fini): Likewise.
8613
8614 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8615
8616 [BZ #23140]
8617 * localedata/locales/os_RU (mon): Rename to...
8618 (alt_mon): This.
8619 (mon): Import from CLDR (genitive case).
8620
8621 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8622
8623 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8624 cet-tunables.h> when CET is enabled.
8625
8626 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8627
8628 [BZ #21598]
8629 * configure.ac: Add --enable-cet.
8630 * configure: Regenerated.
8631 * elf/Makefille (all-built-dso): Add a comment.
8632 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8633 Include <dl-prop.h>.
8634 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8635 segment.
8636 * elf/dl-open.c: Include <dl-prop.h>.
8637 (dl_open_worker): Call _dl_open_check.
8638 * elf/rtld.c: Include <dl-prop.h>.
8639 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8640 _rtld_main_check.
8641 * sysdeps/generic/dl-prop.h: New file.
8642 * sysdeps/i386/dl-cet.c: Likewise.
8643 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8644 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8645 * sysdeps/x86/cet-tunables.h: Likewise.
8646 * sysdeps/x86/check-cet.awk: Likewise.
8647 * sysdeps/x86/configure: Likewise.
8648 * sysdeps/x86/configure.ac: Likewise.
8649 * sysdeps/x86/dl-cet.c: Likewise.
8650 * sysdeps/x86/dl-procruntime.c: Likewise.
8651 * sysdeps/x86/dl-prop.h: Likewise.
8652 * sysdeps/x86/libc-start.h: Likewise.
8653 * sysdeps/x86/link_map.h: Likewise.
8654 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8655 _CET_ENDBR.
8656 (_dl_runtime_profile): Likewise.
8657 (_dl_runtime_resolve_shstk): New.
8658 (_dl_runtime_profile_shstk): Likewise.
8659 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8660 if CET is enabled.
8661 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8662 (CFLAGS-.os): Likewise.
8663 (CFLAGS-.op): Likewise.
8664 (CFLAGS-.oS): Likewise.
8665 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8666 is enabled.
8667 (tests-special): Add $(objpfx)check-cet.out.
8668 (cet-built-dso): New.
8669 (+$(cet-built-dso:=.note)): Likewise.
8670 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8671 ($(objpfx)check-cet.out): New.
8672 (generated): Add check-cet.out.
8673 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8674 <cet-tunables.h>.
8675 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8676 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8677 (init_cpu_features): Call get_cet_status to check CET status
8678 and update dl_x86_feature_1 with CET status. Call
8679 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8680 (set_x86_shstk). Disable and lock CET in libc.a.
8681 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8682 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8683 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8684 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8685 (_CET_ENDBR): Define if not defined.
8686 (ENTRY): Add _CET_ENDBR.
8687 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8688 x86_shstk.
8689 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8690 _CET_ENDBR.
8691 (_dl_runtime_profile): Likewise.
8692
8693 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8694
8695 [BZ #21895]
8696 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8697 restore r2 on longjmp.
8698 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8699 test list.
8700 Added rules to build test tst-setjmp-bug21895-static.
8701 Added module setjmp-bug21895 and rules to build a shared object from it.
8702 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8703 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8704
8705 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8706
8707 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8708 * benchtests/bench-strstr.c: Likewise.
8709 * string/memmem.c (FASTSEARCH): Define.
8710 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8711 Add support for FASTSEARCH.
8712 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8713 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8714 (FASTSEARCH): Define.
8715 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8716 * string/test-strstr.c: Likewise.
8717
8718 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8719
8720 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8721 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8722
8723 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8724 H.J. Lu <hongjiu.lu@intel.com>
8725
8726 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8727 (__longjmp): Restore shadow stack pointer if shadow stack is
8728 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8729 isn't defined for __longjmp_cancel.
8730 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8731 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8732 and SHADOW_STACK_POINTER_OFFSET is defined.
8733 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8734 (setjmp): Save shadow stack pointer if shadow stack is enabled
8735 and SHADOW_STACK_POINTER_OFFSET is defined.
8736 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8737 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8738 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8739 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8740 <jmp_buf-ssp.h>.
8741 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8742 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8743 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8744 Remove jmp_buf-ssp.sym.
8745 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8746 <jmp_buf-ssp.h>.
8747 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8748 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8749 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8750 jmp_buf-ssp.sym.
8751 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8752 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8753 (__longjmp): Restore shadow stack pointer if shadow stack is
8754 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8755 isn't defined for __longjmp_cancel.
8756 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8757 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8758 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8759
8760 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8761
8762 [BZ #22563]
8763 * nptl/pthread_create.c: Include <tls-setup.h>.
8764 (__pthread_create_2_1): Call tls_setup_tcbhead.
8765 * sysdeps/generic/tls-setup.h: New file.
8766 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8767 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8768 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8769 Likewise.
8770 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8771 to feature_1.
8772 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8773 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8774 (X86_FEATURE_1_SHSTK): Likewise.
8775 (CET_ENABLED): Likewise.
8776 (IBT_ENABLED): Likewise.
8777 (SHSTK_ENABLED): Likewise.
8778
8779 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
8780
8781 [BZ #23208]
8782 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
8783 (LOCALES): Likewise.
8784 * localedata/dsb_DE.UTF-8.in: New file.
8785 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
8786
8787 2018-07-12 Florian Weimer <fweimer@redhat.com>
8788
8789 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
8790 __mprotect, not mprotect.
8791
8792 2018-07-11 Florian Weimer <fweimer@redhat.com>
8793
8794 * io/Makefile (headers): Add bits/statx.h.
8795
8796 2018-07-10 Mike FABIAN <mfabian@redhat.com>
8797
8798 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
8799 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
8800 and headers.
8801 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
8802 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
8803 for utf8_gen.py
8804
8805 2018-07-10 Florian Weimer <fweimer@redhat.com>
8806
8807 * io/Makefile (routines): Add statx.
8808 (tests-internal): Add tst-statx.
8809 * io/Versions (GLIBC_2.28): Export statx.
8810 * io/bits/statx.h: New file.
8811 * io/sys/stat.h [__USE_GNU]: Include it.
8812 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
8813 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
8814 Define.
8815 * io/statx.c: New file.
8816 * io/statx_generic.: Likewise.
8817 * io/tst-statx.: Likewise.
8818 * include/bits/statx.h: Likewise.
8819 * sysdeps/unix/sysv/linux/kernel-features.h
8820 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
8821 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8822 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
8823 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
8824 Undefine.
8825 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8826 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
8827 * sysdeps/unix/sysv/linux/statx.c: New file.
8828 * manual/filesys.texi: Note that statx is undocumented.
8829 * sysdeps/**/libc*.abilist: Update.
8830
8831 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8832
8833 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
8834 a kernel issue which lead to test failure in some cases.
8835
8836 2018-07-10 Florian Weimer <fweimer@redhat.com>
8837
8838 [BZ #23036]
8839 * posix/regexec.c (check_node_accept_bytes): When comparing
8840 weights, do not compare an extra byte after the end of the
8841 weights.
8842
8843 2018-07-10 Florian Weimer <fweimer@redhat.com>
8844
8845 * libio/readline.c: Fix copyright year.
8846 * libio/tst-readline.c Likewise.
8847 * nss/tst-nss-files-hosts-getent.c: Likewise.
8848
8849 2018-07-06 Florian Weimer <fweimer@redhat.com>
8850
8851 [BZ #18991]
8852 * nss/nss_files/files-XXX.c (internal_getent): Use
8853 __libc_readline_unlocked. Seek back to the start of the line if
8854 parsing failes with ERANGE.
8855 (get_contents_ret, get_contents): Remove.
8856 * nss/tst-nss-files-hosts-getent.c: New file.
8857 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
8858 (tst-nss-files-hosts-getent): Link with -ldl.
8859
8860 2018-07-06 Florian Weimer <fweimer@redhat.com>
8861
8862 * include/stdio.h (__libc_readline_unlocked): Declare.
8863 (__ftello64, __fseeko64): Declare aliases.
8864 * libio/readline.c: New file.
8865 * libio/tst-readline.c: Likewise.
8866 (routines): Add readline.
8867 (tests-internal): Add tst-readlime.
8868 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
8869 __libc_readline_unlocked.
8870 * libio/fseeko.c (__fseeko): Rename from fseeko.
8871 (fseeko): Add alias.
8872 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
8873 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
8874 (fseeko64): Add alias.
8875 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
8876 * libio/ftello64.c (__ftello64): Rename from ftello64.
8877 (ftello64): Add alias.
8878
8879 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8880
8881 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
8882 HWCAP_ATOMICS.
8883
8884 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
8885
8886 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
8887 Use dl_hwcap without masking.
8888 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
8889 Remove HWCAP_CPUID.
8890
8891 2018-07-06 Florian Weimer <fweimer@redhat.com>
8892
8893 * conform/conformtest.pl (checknamespace): Escape literal braces
8894 in regular expressions.
8895
8896 2018-07-06 Amit Pawar <amit.pawar@amd.com>
8897
8898 * sysdeps/x86/cpu-features.c (get_common_indeces):
8899 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
8900 * sysdeps/x86/cpu-features.c (init_cpu_features):
8901 AVX_Fast_Unaligned_Load is disabled for Excavator core.
8902
8903 2018-07-05 Florian Weimer <fweimer@redhat.com>
8904
8905 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
8906 protector.
8907 (CFLAGS-elf-init.oS): Likewise.
8908
8909 2018-07-05 Florian Weimer <fweimer@redhat.com>
8910 Carlos O'Donell <carlos@redhat.com>
8911
8912 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
8913 $(no-stack-protector). stack_chk_fail_local.c can be compiled
8914 with stack protector enabled because there is no risk of infinite
8915 recursion.
8916
8917 2018-07-05 Maciej W. Rozycki <macro@mips.com>
8918
8919 [BZ #19818]
8920 [BZ #23307]
8921 * libc-abis (ABSOLUTE): New ABI.
8922 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
8923 * NEWS: Mention the new ABI.
8924
8925 2018-07-05 Florian Weimer <fweimer@redhat.com>
8926
8927 [BZ # 17662]
8928 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
8929 (RENAME_WHITEOUT): Define.
8930 [__USE_GNU] (renameat2): Declare.
8931 * stdio-common/Makefile (routines): Add renameat2.
8932 (tests): Add tst-renameat2.
8933 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
8934 * stdio-common/renameat2.c: New file.
8935 * stdio-common/tst-renameat2.c: Likewise.
8936 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
8937 * manual/filesys.texi (Temporary Files): Note that renameat2 is
8938 undocumented.
8939 * sysdeps/unix/sysv/linux/kernel-features.h
8940 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
8941 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8942 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8943 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8944 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
8945 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8946 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
8947 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8948 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
8949 * include/stdio.h (__renameat): Add alias for renameat.
8950 * stdio-common/renameat.c (__renameat): Rename from renameat.
8951 Add hidden definition and alias.
8952 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
8953 * sysdeps/mach/hurd/renameat.c: Likewise.
8954 * sysdeps/**/libc*.abilist: Add renameat2.
8955
8956 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8957
8958 * posix/bug-regex33.c: Fix build after regex sync.
8959
8960 2018-07-04 Carlos O'Donell <carlos@redhat.com>
8961
8962 [BZ #23164]
8963 * localedata/tst-langinfo-setlocale.c: New file.
8964 * localedata/tst-langinfo-setlocale-static.c: New file.
8965 * localedata/tst-langinfo-newlocale.c: New file.
8966 * localedata/tst-langinfo-newlocale-static.c: New file.
8967 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
8968 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
8969 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
8970 (tests-static): Remove tst-langinfo-static. Add
8971 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
8972 (tests-special): Remove $(objpfx)tst-langinfo.out,
8973 $(objpfx)tst-langinfo-static.out. Add
8974 $(objpfx)tst-langinfo-setlocale.out,
8975 $(objpfx)tst-langinfo-newlocale.out,
8976 $(objpfx)tst-langinfo-setlocale-static.out,
8977 $(objpfx)tst-langinfo-newlocale-static.out.
8978 ($(objpfx)tst-langinfo.out): Remove.
8979 ($(objpfx)tst-langinfo-static.out): Remove.
8980 ($(objpfx)tst-langinfo-newlocale.out): New target.
8981 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
8982 (test-xfail-tst-langinfo-newlocale-static): Add.
8983 ($(objpfx)tst-langinfo-setlocale.out): New target.
8984 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
8985 * localedata/tst-langinfo.c: Call test_locale.
8986 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
8987 data.
8988
8989 2018-07-04 Florian Weimer <fweimer@redhat.com>
8990
8991 testrun.sh: Implement --tool=strace, --tool=valgrind
8992 * Makefile (testrun-script): Define variable.
8993 (testrun.sh): Use variable.
8994 * manual/install.texi (Tools for Compilation): make 4.0 or later
8995 is required.
8996 * configure.ac: Check for make 4.0 or later.
8997 * INSTALL: Regenerate.
8998 * configure: Likewise.
8999
9000 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9001
9002 [BZ #23233]
9003 [BZ #21163]
9004 [BZ #18986]
9005 [BZ #13762]
9006 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9007 * posix/PCRE.tests: Remove invalid test.
9008 * posix/bug-regex28.c: Fix expected values for used syntax.
9009 * posix/bug-regex37.c: New file.
9010 * posix/bug-regex38.c: Likewise.
9011 * posix/regcomp.c: Sync with gnulib.
9012 * posix/regex.c: Likewise.
9013 * posix/regex.h: Likewise.
9014 * posix/regex_internal.c: Likewise.
9015 * posix/regex_internal.h: Likewise.
9016 * posix/regexec.c: Likewise.
9017
9018 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9019
9020 [BZ #23308]
9021 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9022 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9023 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9024 * localedata/unicode-gen/PropList.txt: likewise.
9025 * localedata/unicode-gen/UnicodeData.txt: likewise.
9026 * localedata/charmaps/UTF-8: Regenerate.
9027 * localedata/locales/i18n_ctype: likewise.
9028 * localedata/locales/tr_TR: likewise.
9029 * localedata/locales/translit_circle: likewise.
9030 * localedata/locales/translit_cjk_compat: likewise.
9031 * localedata/locales/translit_combining: likewise.
9032 * localedata/locales/translit_compat: likewise.
9033 * localedata/locales/translit_font: likewise.
9034 * localedata/locales/translit_fraction: likewise.
9035
9036 2018-07-03 Florian Weimer <fweimer@redhat.com>
9037
9038 [BZ #23363]
9039 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9040 * stdio-common/tst-printf.sh: Adjust expected output.
9041 * LICENSES: Update.
9042
9043 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9044
9045 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9046 symbol.
9047
9048 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9049
9050 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9051 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9052 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9053 * stdio-common/tst-printfsz-islongdouble.c: New file.
9054 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9055 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9056 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9057 [subdir == stdio-common] (tests-internal): Add
9058 test-printf-size-ieee128, and test-printf-size-ibm128.
9059 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9060 (CFLAGS-test-printf-size-ibm128.c): New variables.
9061 [subdir == stdio-common] (tests-special): Add
9062 $(objpfx)test-printf-size-ieee128.out and
9063 $(objpfx)test-printf-size-ibm128.out.
9064 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9065 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9066 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9067 __printf_sizeieee128.
9068 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9069 New file.
9070 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9071 Likewise.
9072 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9073 Likewise.
9074
9075 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9076
9077 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9078 (exp2f_inline): Likewise.
9079 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9080 (__math_uflowf): Likewise.
9081 (__math_may_uflowf): Likewise.
9082 (__math_divzerof): Likewise.
9083 (__math_invalidf): Likewise.
9084 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9085 (__math_oflowf): Likewise.
9086 (__math_uflowf): Likewise.
9087 (__math_may_uflowf): Likewise.
9088 (__math_divzerof): Likewise.
9089 (__math_invalidf): Likewise.
9090
9091 2018-06-29 DJ Delorie <dj@redhat.com>
9092 Carlos O'Donell <carlos@redhat.com>
9093
9094 [BZ #23329]
9095 * include/libc-symbols.h: Comment the freeres framework.
9096 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9097 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9098 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9099 * dlfcn/dlerror.c: Include libc-symbols.h
9100 (__dlerror_main_freeres): New function.
9101 * dlfcn/dlfreeres.c: New file.
9102 * dlfcn/sdlfreeres.c: New file.
9103 * include/dlfcn.h: Declare __dlerror_main_freeres.
9104 * malloc/set-freeres.c: Declare __libdl_freeres, and
9105 __libpthread_freeres.
9106 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9107 the releavant libraries are loaded.
9108 * malloc/thread-freeres.c: Add comments.
9109 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9110 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9111 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9112 (__free_stacks): Rename to...
9113 (free_stacks): ...this. Mark static.
9114 (queue_stack): Call free_stacks.
9115 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9116 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9117 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9118 ptr_freeres element from struct.
9119 (pthread_functions): Remove .ptr_freeres from struct initializer.
9120 [SHARED] (nptl_freeres): Remove.
9121 * nptl/nptlfreeres.c: New file.
9122 * nptl/pthreadP.h
9123 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9124 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9125 attribute_hidden.
9126 (__free_stacks): Rename to...
9127 (__nptl_stacks_freeres): ...this.
9128 (__shm_directory_freeres): Declare.
9129 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9130 (__nptl_unwind_freeres): ...this.
9131 * resolv/res-close.c: Add comment.
9132 * resolv/resolv_conf.c: Include libc-symbols.h.
9133 * string/strerror_l.c: Include libc-symbols.h.
9134 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9135 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9136 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9137 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9138
9139 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9140
9141 * stdlib/tst-strfmon_l.c: Add tests for long double.
9142
9143 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9144
9145 [BZ #23208]
9146 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9147 * localedata/locales/dsb_DE: New file.
9148
9149 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9150
9151 [BZ #23140]
9152 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9153 genitive case).
9154 (alt_mon): New entry, import from CLDR (nominative case).
9155
9156 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9157
9158 [BZ #22996]
9159 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9160
9161 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9162
9163 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9164 Use vector registers.
9165
9166 * sysdeps/aarch64/multiarch/memmove_falkor.S
9167 (__memcpy_falkor): Use vector registers.
9168
9169 2018-06-29 Martin Sebor <msebor@redhat.com>
9170
9171 * manual/stdio.texi (Customizing Printf): Mention interaction
9172 with GCC built-ins.
9173
9174 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9175
9176 [BZ #23307]
9177 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9178 `st_value' is 0 if `st_shndx' is SHN_ABS.
9179 * elf/tst-absolute-zero.c: New file.
9180 * elf/tst-absolute-zero-lib.c: New file.
9181 * elf/tst-absolute-zero-lib.lds: New file.
9182 * elf/Makefile (tests): Add `tst-absolute-zero'.
9183 (modules-names): Add `tst-absolute-zero-lib'.
9184 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9185 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9186 ($(objpfx)tst-absolute-zero: New dependency.
9187
9188 2018-06-29 Zack Weinberg <zackw@panix.com>
9189
9190 * configure.ac: New command-line option --disable-crypt.
9191 Force --disable-nss-crypt when --disable-crypt is given, with a
9192 warning if it was explicitly enabled.
9193 * configure: Regenerate.
9194 * config.make.in: New boolean substitution variable $(build-crypt).
9195 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9196 when $(build-crypt).
9197 * manual/install.texi: Document --disable-crypt.
9198 * INSTALL: Regenerate.
9199
9200 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9201 which is never set.
9202 * conform/Makefile: Only include libcrypt.a in
9203 linknamespace-libs-xsi and linknamespace-libs-XPG4
9204 when $(build-crypt).
9205 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9206 USE_CRYPT to 1 when $(build-crypt).
9207 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9208 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9209 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9210
9211 2018-06-29 Zack Weinberg <zackw@panix.com>
9212
9213 * crypt/crypt.h, posix/unistd.h: Update comments and
9214 prototypes for crypt and crypt_r.
9215
9216 * manual/crypt.texi (Cryptographic Functions): New initial
9217 exposition.
9218 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9219 (Unpredictable Bytes): Improve initial exposition. Clarify error
9220 behavior of getentropy and getrandom.
9221 * manual/examples/genpass.c: Generate a salt using getentropy
9222 instead of the current time. Use hash $5$ (SHA-2-256).
9223 * manual/examples/testpass.c: Demonstrate validation against
9224 hashes generated with three different one-way functions.
9225
9226 * manual/intro.texi: crypt.texi does not need an overview
9227 anymore.
9228
9229 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9230 * manual/terminal.texi: Consistently refer to "passphrases"
9231 * instead of "passwords", and to the "user database" instead
9232 * of the "password database".
9233 * manual/users.texi: Similarly. Add notes about how actual
9234 passphrase hashes are now stored in the shadow database.
9235 Remove 20-year-old junk todo note.
9236
9237 2018-06-29 Zack Weinberg <zackw@panix.com>
9238
9239 * manual/crypt.texi: Use a normal top-level @node declaration.
9240 Move most of the introductory text to the 'crypt' section.
9241 Move the example programs below the @deftypefun for 'crypt_r'.
9242 Move the 'getpass' section...
9243 * manual/terminal.texi: ...here.
9244
9245 2018-06-29 Zack Weinberg <zackw@panix.com>
9246 Florian Weimer <fweimer@redhat.com>
9247
9248 * posix/unistd.h: Do not declare encrypt.
9249 (_XOPEN_CRYPT): Remove macro definition.
9250 (crypt): Declare only for _USE_MISC.
9251 * stdlib/stdlib.h: Do not declare setkey.
9252 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9253 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9254
9255 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9256 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9257 into compat symbols. Don't define initial_perm if it's not
9258 going to be used.
9259 * crypt/cert.c: Link explicitly with the expected versions for
9260 setkey and encrypt. If they are not available at all, mark
9261 the test as unsupported.
9262
9263 * sunrpc/des_crypt.c: Unconditionally block linkage with
9264 cbc_crypt and ecb_crypt for new binaries.
9265 * sunrpc/des_soft.c: Unconditionally block linkage with
9266 des_setparity for new binaries.
9267
9268 * manual/crypt.texi: Remove the entire "DES Encryption"
9269 section. Also remove the paragraph talking about FIPS 140-2
9270 from the introduction.
9271 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9272 of libgcrypt for "real" encryption, not DES.
9273 * manual/conf.texi (Constants for Sysconf): Mention that
9274 _XOPEN_CRYPT is no longer impelemented.
9275
9276 * conform/data/unistd.h-data: Remove crypt function declaration.
9277
9278 2018-06-29 Florian Weimer <fweimer@redhat.com>
9279
9280 [BZ #23351]
9281 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9282 (disallow_malloc_check): Remove variable.
9283 (__malloc_check_init): Adjust.
9284 (malloc_set_state): Update comment.
9285 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9286 declarations.
9287
9288 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9289
9290 [BZ #23140]
9291 * localedata/locales/ast_ES (mon): Rename to...
9292 (alt_mon): This.
9293 (mon): Import from CLDR (genitive case).
9294
9295 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9296 Jakub Sitnicki <jkbs@redhat.com>
9297
9298 [BZ #21812]
9299 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9300 on NLM_F_DUMP_INTR.
9301
9302 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9303
9304 * manual/llio.texi: Remove spurious space.
9305
9306 2018-06-28 Florian Weimer <fweimer@redhat.com>
9307
9308 [BZ #23349]
9309 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9310 _STRUCT_TIMESPEC.
9311
9312 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9313
9314 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9315 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9316 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9317 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9318 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9319 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9320 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9321
9322 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9323
9324 [BZ #23266]
9325 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9326 Copy and null-terminate entries that are not terminated, in
9327 addition to empty ones.
9328
9329 2018-06-27 Florian Weimer <fweimer@redhat.com>
9330
9331 [BZ #18023]
9332 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9333 (extend_alloca_account): Remove.
9334 * manual/stdio.texi (Variable Arguments Output): Update comment.
9335
9336 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9337
9338 * nptl/sockperf.c: Remove file.
9339
9340 2018-06-27 Florian Weimer <fweimer@redhat.com>
9341
9342 [BZ #18023]
9343 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9344 scratch_buffer instead of extend_alloca.
9345
9346 2018-06-27 Florian Weimer <fweimer@redhat.com>
9347
9348 [BZ #18023]
9349 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9350 scratch_buffer instead of extend_alloca. Update comments.
9351
9352 2018-06-27 Florian Weimer <fweimer@redhat.com>
9353
9354 [BZ #18023]
9355 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9356 instead of extend_alloca.
9357
9358 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9359
9360 [BZ #13888]
9361 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9362 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9363 /tmp.
9364 * scripts/test-installation.pl: Put temporary files in build
9365 directory, not /tmp.
9366 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9367 (CFLAGS-bug4.c): Likewise.
9368 (CFLAGS-bug5.c): Likewise.
9369 (CFLAGS-test-fseek.c): Likewise.
9370 (CFLAGS-test-popen.c): Likewise.
9371 (CFLAGS-test_rdwr.c): Likewise.
9372 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9373 /tmp.
9374 * stdio-common/bug4.c (main): Likewise.
9375 * stdio-common/bug5.c (main): Likewise.
9376 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9377 * stdio-common/test-popen.c (do_test): Likewise.
9378 * stdio-common/test_rdwr.c (main): Likewise.
9379
9380 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9381
9382 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9383 (sem_open): Set sem.newsem.pad to zero for valgrind.
9384
9385 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9386
9387 [BZ #20251]
9388 * NEWS: Mention fcntl64 addition.
9389 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9390 * login/utmp_file.c: Likewise.
9391 * sysdeps/posix/fdopendir.c: Likewise.
9392 * sysdeps/posix/opendir.c: Likewise.
9393 * sysdeps/unix/pt-fcntl.c: Likewise.
9394 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9395 __fcntl64_nocancel_adjusted): New prototype.
9396 (__fcntl_nocancel_adjusted): Remove prototype.
9397 * io/Makefile (routines): Add fcntl64.
9398 (CFLAGS-fcntl64.c): New rule.
9399 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9400 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9401 * io/fcntl.h (fcntl64): Add prototype and redirect if
9402 __USE_FILE_OFFSET64 is defined.
9403 * io/fcntl64.c: New file.
9404 * manual/llio.text: Add a note for which commands fcntl acts a
9405 cancellation point.
9406 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9407 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9408 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9409 New symbols.
9410 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9411 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9412 non-LFS case.
9413 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9414 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9415 to __fcntl64_nocancel.
9416 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9417 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9418 to __fcntl64_nocancel.
9419 * sysdeps/generic/not-cancel.h: Likewise.
9420 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9421 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9422 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9423 (fcntl64): New symbol.
9424 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9425 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9426 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9429 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9430 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9431 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9432 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9433 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9434 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9435 fcntl64): Likewise.
9436 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9437 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9438 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9439 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9440 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9441 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9442 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9443 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9444 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9445 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9446 Likewise.
9447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9448 Likewise.
9449 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9450 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9451 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9452
9453 2018-06-26 Florian Weimer <fweimer@redhat.com>
9454
9455 Run thread shutdown functions in an explicit order.
9456 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9457 definition.
9458 (__libc_thread_freeres): Call thread shutdown functions
9459 explicitly.
9460 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9461 * include/string.h (__strerror_thread_freeres): Declare.
9462 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9463 arena_thread_freeres. No longer static. Remove thread shutdown
9464 hook registration.
9465 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9466 Declare.
9467 * resolv/res-close.c (__res_thread_freeres): Renamed from
9468 res_thread_freeres. No longer static. Remove thread shutdown
9469 hook registration.
9470 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9471 * resolv/resolv_conf.c (freeres): Remove incorrect section
9472 attribute and use libc_freeres_fn.
9473 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9474 strerror_thread_freeres. No longer static. Remove thread
9475 shutdown hook registration.
9476 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9477 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9478 shutdown hook registration.
9479 * Makerules (shlib.lds): Do not provide section boundary symbols
9480 for __libc_thread_subfreeres.
9481 * manual/memory.texi (Basic Allocation): Update comment.
9482
9483 2018-06-26 Florian Weimer <fweimer@redhat.com>
9484
9485 Remove always-defined _RPC_THREAD_SAFE_ macro.
9486 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9487 Do not define _RPC_THREAD_SAFE_.
9488 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9489 conditional.
9490 * sunrpc/clnt_perr.c: Likewise.
9491 * sunrpc/clnt_raw.c: Likewise.
9492 * sunrpc/clnt_simp.c: Likewise.
9493 * sunrpc/key_call.c: Likewise.
9494 * sunrpc/rpc_common.c: Likewise.
9495 * sunrpc/rpc_main.c: Likewise.
9496 * sunrpc/rpc_thread.c: Likewise.
9497 * sunrpc/svc.c: Likewise.
9498 * sunrpc/svc_raw.c: Likewise.
9499 * sunrpc/svc_simple.c: Likewise.
9500 * sumrpc/svcauth_des.c: Likewise.
9501
9502 2018-06-26 Florian Weimer <fweimer@redhat.com>
9503
9504 * libio/Makefile (tests-internal): Add tst-vtables,
9505 tst-vtables-interposed.
9506 * libio/tst-vtables.c: New file.
9507 * libio/tst-vtables-common.c: Likewise.
9508 * libio/tst-vtables-interposed.c: Likewise.
9509
9510 2018-06-26 Florian Weimer <fweimer@redhat.com>
9511
9512 * support/support_test_main.c (support_test_main): Only call
9513 setvbuf if not disables.
9514 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9515 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9516
9517 2018-06-26 Florian Weimer <fweimer@redhat.com>
9518
9519 [BZ #23313]
9520 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9521
9522 2018-06-25 Florian Weimer <fweimer@redhat.com>
9523
9524 [BZ #18023]
9525 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9526 Use struct scratch_buffer instead of extend_alloca.
9527
9528 2018-06-25 Florian Weimer <fweimer@redhat.com>
9529
9530 [BZ #18023]
9531 * nss/getent.c (initgroups_keys): Use dynarray instead of
9532 extend_alloca.
9533
9534 2018-06-25 Florian Weimer <fweimer@redhat.com>
9535
9536 [BZ #18023]
9537 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9538 Use struct scratch_buffer instead of extend_alloca.
9539
9540 2018-06-25 Florian Weimer <fweimer@redhat.com>
9541
9542 [BZ #18023]
9543 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9544 back to malloc directly, without stack allocations.
9545
9546 2018-06-25 Florian Weimer <fweimer@redhat.com>
9547
9548 [BZ #18023]
9549 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9550 of extend_alloca.
9551
9552 2018-06-25 Florian Weimer <fweimer@redhat.com>
9553
9554 [BZ #18023]
9555 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9556 of extend_alloca.
9557 * nscd/hstcache.c (addhstbyX): Likewise.
9558 * nscd/pwdcache.c (addpwbyX): Likewise.
9559 * nscd/servicescache.c (addservbyX): Likewise.
9560
9561 2018-06-25 Florian Weimer <fweimer@redhat.com>
9562
9563 [BZ #18023]
9564 * nscd/connections.c (read_cmdline): New function.
9565 (restart): Use it. Update comment.
9566
9567 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9568
9569 [BZ #23140]
9570 * localedata/locales/csb_PL (mon): Rename to...
9571 (alt_mon): This.
9572 (abmon): Rename to...
9573 (ab_alt_mon): This.
9574 (mon): Add with proper genitive forms, copy from Wikipedia.
9575 (abmon): Likewise.
9576
9577 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9578
9579 [BZ #19485]
9580 * localedata/locales/csb_PL (mon): Fix typos:
9581 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9582 (yesstr): Add, value is "jo".
9583 (nostr): Add, value is "nié".
9584
9585 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9586
9587 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9588 all log1p and significand functions on m680x0.
9589 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9590 of s_significand.c..
9591 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9592 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9593 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9594 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9595 s_log1p.c and include it..
9596
9597 2018-06-21 Vincent Chen <vincentc@andestech.com>
9598
9599 * elf/elf.h (R_NDS32_NONE): New define.
9600 (R_NDS32_32_RELA): Likewise.
9601 (R_NDS32_COPY): Likewise.
9602 (R_NDS32_GLOB_DAT): Likewise.
9603 (R_NDS32_JUMP_SLOT): Likewise.
9604 (R_NDS32_RELATIVE): Likewise.
9605 (R_NDS32_TLS_TPOFF): Likewise.
9606 (R_NDS32_TLS_DESC): Likewise.
9607
9608 2018-06-21 Mark Wielaard <mark@klomp.org>
9609
9610 * elf/elf.h (R_BPF_MAP_FD): Removed.
9611 (R_BPF_64_64, R_BPF_64_32): New.
9612
9613 2018-06-21 Florian Weimer <fweimer@redhat.com>
9614
9615 [BZ #23253]
9616 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9617 Renamed from libc_feholdsetround_ctx.
9618 (default_libc_feresetround_ctx): Renamed from
9619 libc_feresetround_ctx.
9620 (default_libc_feholdsetround_noex_ctx): Renamed from
9621 libc_feholdsetround_noex_ctx.
9622 (default_libc_feresetround_noex_ctx): Renamed from
9623 libc_feresetround_noex_ctx.
9624 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9625 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9626 forwardning to the old implementations under the new names.
9627 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9628 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9629 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9630 (libc_feresetround_ctx): Forward to default implements for i386
9631 and MATH_SET_BOTH_ROUNDING_MODES.
9632 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9633 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9634
9635 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9636
9637 * string/tst-cmp.c: Include <libc-diag.h>.
9638 (strncmp_max): Disable -Wstringop-overflow= around call to
9639 strncmp.
9640 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9641 strncasecmp.
9642
9643 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9644 (main): Disable -Wunused-value around call to strpbrk.
9645 * string/bug-strspn1.c: Include <libc-diag.h>.
9646 (main): Disable -Wunused-value around call to strspn.
9647
9648 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9649 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9650
9651 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9652 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9653
9654 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9655
9656 * math/Makefile (libm-calls): Move s_significandF to...
9657 (gen-libm-calls): ... here.
9658 * math/s_significand_template.c: New file.
9659 * math/s_significand.c: Removed.
9660 * math/s_significandf.c: Removed.
9661 * math/s_significandl.c: Removed.
9662 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9663 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9664
9665 * math/e_exp2_template.c (declare_mgen_finite_alias,
9666 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9667 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9668 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9669
9670 2018-06-20 Florian Weimer <fweimer@redhat.com>
9671
9672 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9673
9674 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9675
9676 [BZ #23280]
9677 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9678 floating-point number to strtod functions rather than possibly
9679 negating result of those functions.
9680 * stdio-common/tst-scanf-round.c: New file.
9681 * stdio-common/Makefile (tests): Add tst-scanf-round.
9682 ($(objpfx)tst-scanf-round): Depend on $(libm).
9683
9684 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9685
9686 * sysdeps/mach/hurd/localplt.data: Move to...
9687 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9688 R_386_GLOB_DAT like on Linux i386.
9689
9690 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9691
9692 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9693 (SHM_STAT_ANY): New macro.
9694 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9695 (SHM_STAT_ANY): Likewise.
9696 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9697 (SHM_STAT_ANY): Likewise.
9698 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9699 (SHM_STAT_ANY): Likewise.
9700 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9701 (SHM_STAT_ANY): Likewise.
9702 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9703 (SHM_STAT_ANY): Likewise.
9704 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9705 (SHM_STAT_ANY): Likewise.
9706 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9707 (SHM_STAT_ANY): Likewise.
9708 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9709 (SHM_STAT_ANY): Likewise.
9710 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9711 (SHM_STAT_ANY): Likewise.
9712 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9713 (SHM_STAT_ANY): Likewise.
9714 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9715 (SHM_STAT_ANY): Likewise.
9716
9717 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9718 (SEM_STAT_ANY): New macro.
9719 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9720 (SEM_STAT_ANY): Likewise.
9721 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9722 (SEM_STAT_ANY): Likewise.
9723 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9724 (SEM_STAT_ANY): Likewise.
9725 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9726 (SEM_STAT_ANY): Likewise.
9727 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9728 (SEM_STAT_ANY): Likewise.
9729 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9730 (SEM_STAT_ANY): Likewise.
9731 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9732 (SEM_STAT_ANY): Likewise.
9733 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9734 (SEM_STAT_ANY): Likewise.
9735 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9736 (SEM_STAT_ANY): Likewise.
9737
9738 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9739 (MSG_STAT_ANY): New macro.
9740 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9741 (MSG_STAT_ANY): Likewise.
9742 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9743 (MSG_STAT_ANY): Likewise.
9744 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9745 (MSG_STAT_ANY): Likewise.
9746 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9747 (MSG_STAT_ANY): Likewise.
9748 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9749 (MSG_STAT_ANY): Likewise.
9750 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9751 (MSG_STAT_ANY): Likewise.
9752 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9753 (MSG_STAT_ANY): Likewise.
9754 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9755 (MSG_STAT_ANY): Likewise.
9756 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9757 (MSG_STAT_ANY): Likewise.
9758
9759 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9760 (MAP_TYPE): Change value to 0x2b.
9761
9762 2018-06-18 Florian Weimer <fweimer@redhat.com>
9763
9764 [BZ #15722]
9765 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9766 socket with SOCK_CLOEXEC.
9767
9768 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9769
9770 [BZ #23303]
9771 * sysdeps/powerpc/powerpc64/le/Makefile
9772 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9773 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9774 (gnulib-tests): Also add $(f128-loader-link) for
9775 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
9776
9777 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
9778
9779 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
9780 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
9781 of sendfile.
9782 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
9783 (sendfile64): New strong alias.
9784 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
9785 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
9786 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
9787 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
9788 attribute.
9789 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
9790 ___pthread_get_cleanup_stack.
9791 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
9792 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
9793 * mach/shortcut.awk: Make syscall stubs include
9794 <mach-shortcuts-hidden.h> and add hidden definition.
9795 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
9796 (__mach_msg): Add hidden prototype.
9797 * mach/msg.c: Include <mach.h>.
9798 (__mach_msg): Add hidden definition.
9799 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
9800 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
9801 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
9802 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
9803 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
9804 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
9805 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
9806 prototype and definition.
9807 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
9808 hidden target for _hurd_self_sigstate.
9809
9810 2018-06-15 Joseph Myers <joseph@codesourcery.com>
9811
9812 [BZ #23007]
9813 * stdlib/tst-strtod-nan-sign-main.c: New file.
9814 * stdlib/tst-strtod-nan-sign.c: Likewise.
9815 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
9816 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
9817 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
9818 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
9819 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
9820
9821 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
9822
9823 [BZ #23007]
9824 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
9825 appropriate sign.
9826
9827 2018-06-14 Florian Weimer <fweimer@redhat.com>
9828
9829 [BZ #23290]
9830 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
9831 that the result stays within the ISO-8859-1 range.
9832 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
9833 characters are defined in IBM273.
9834
9835 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9836
9837 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
9838 __mach_task_self): Remove attribute_hidden.
9839
9840 2018-06-14 Joseph Myers <joseph@codesourcery.com>
9841
9842 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
9843 ignore -Wrestrict for one test.
9844
9845 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
9846 Szabolcs Nagy <szabolcs.nagy@arm.com>
9847
9848 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
9849
9850 2018-06-14 Florian Weimer <fweimer@redhat.com>
9851
9852 * scripts/update-abilist.sh: Accept empty list of files to patch.
9853
9854 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
9855
9856 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
9857 test-xfail-check-abi-libmachuser): Add.
9858 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
9859 __libc_read and __libc_write to __read and __write.
9860 * sysdeps/hurd/include/hurd/port.h: New file.
9861 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
9862 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
9863 __thread_switch, __evc_wait): Move declarations to...
9864 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
9865 attribute_hidden.
9866 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
9867 use PLT to call _hurd_self_sigstate.
9868
9869 2018-06-13 Joseph Myers <joseph@codesourcery.com>
9870
9871 [BZ #23279]
9872 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
9873 MAX_EXP as overflowing.
9874 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
9875 overflow flag.
9876 (round_str): Output also whether result overflows in each rounding
9877 mode.
9878 * stdlib/tst-strtod-round-data: Add more tests.
9879 * stdlib/tst-strtod-round-data.h: Regenerated.
9880 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
9881 (TEST): Handle extra arguments for overflow flags.
9882 (struct test_overflow): New type.
9883 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
9884 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
9885 (test_in_one_mode): Take argument with overflow information.
9886 (do_test): Update calls to test_in_one_mode.
9887
9888 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9889
9890 * elf/dl-load (_dl_dst_substitute): Correct comment.
9891 (_dl_dst_count): Likewise.
9892
9893 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
9894 lll_futex_timed_wait.
9895
9896 2018-06-12 Joseph Myers <joseph@codesourcery.com>
9897
9898 [BZ #23277]
9899 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
9900 attribute.
9901 * math/test-nan-const.c: New file.
9902 * math/Makefile (tests): Add test-nan-const.
9903 (CFLAGS-test-nan-const.c): New variable.
9904
9905 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
9906
9907 * benchtests/scripts/compare_strings.py (process_results): Add
9908 funcs argument. Compare only functions which are selected.
9909 (main): Check if base function is among selected functions.
9910 Pass selected functions to process_results.
9911 (__main__): Add -f/--functions argument.
9912
9913 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
9914 Hongbo Zhang <hongbo.zhang@linaro.org>
9915
9916 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
9917 __memcpy_falkor for phecda core.
9918 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
9919 __memmove_falkor for phecda core.
9920 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
9921 __memset_falkor for phecda core.
9922 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
9923 for phecda core.
9924 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
9925 macro to identify phecda core.
9926
9927 2018-06-12 Carlos O'Donell <carlos@redhat.com>
9928 Andreas Schwab <schwab@suse.de>
9929 Dmitry V. Levin <ldv@altlinux.org>
9930 Florian Weimer <fweimer@redhat.com>
9931
9932 [BZ #23102]
9933 [BZ #21942]
9934 [BZ #18018]
9935 [BZ #23259]
9936 CVE-2011-0536
9937 * elf/dl-dst.h: Remove DL_DST_COUNT.
9938 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
9939 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
9940 (is_dst): Comment. Support ELF gABI.
9941 (_dl_dst_count): Comment. Simplify and count DSTs.
9942 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
9943 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
9944 locals.
9945
9946 2018-06-12 Zack Weinberg <zackw@panix.com>
9947
9948 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
9949 * sysdeps/unix/sysv/linux/dl-sysdep.c
9950 Include not-cancel.h. Use __close_nocancel instead of __close,
9951 __open64_nocancel instead of __open, __read_nocancel instead of
9952 __libc_read, and __write_nocancel instead of __libc_write.
9953
9954 * csu/check_fds.c (check_one_fd)
9955 * sysdeps/posix/fdopendir.c (__fdopendir)
9956 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
9957 instead of __fcntl and/or __libc_fcntl.
9958
9959 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
9960 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
9961 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
9962 Use __open64_nocancel instead of __open_nocancel.
9963
9964 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
9965 hidden_proto declarations to the end and issue them if either
9966 IS_IN(libc) or IS_IN(rtld).
9967 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
9968 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
9969 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
9970 read_nocancel, waitpid_nocancel, write_nocancel.
9971
9972 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
9973 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
9974 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
9975
9976 * nptl/pt-fcntl.c: New file.
9977 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
9978 (libpthread-routines): Add pt-fcntl.
9979 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
9980 (__libc_fcntl): Remove attribute_hidden.
9981 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
9982 __fcntl_nocancel_adjusted, not fcntl_common.
9983 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
9984 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
9985 to fcntl_nocancel.c.
9986 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
9987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
9988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9989 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
9990
9991 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
9992 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
9993 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
9994 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
9995 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
9996 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
9997 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
9998 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
9999 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10000 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10001 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10002 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10003 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10004 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10005 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10006 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10007 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10008 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10009 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10010 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10011
10012 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10013 libpthread-routines.
10014 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10015 defines nothing.
10016
10017 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10018 __libc_read, and __write instead of __libc_write. Define
10019 __open64 in addition to __open.
10020
10021 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10022
10023 [BZ #23250]
10024 [BZ #10686]
10025 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10026 to _private_tm[3] and add __glibc_reserved2.
10027 Add _Static_assert of offset of __private_ss == 0x30.
10028 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10029 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10030
10031 2018-06-12 Florian Weimer <fweimer@redhat.com>
10032
10033 x86: Make strncmp usable from rtld.
10034 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10035 __strncmp_ia32 if in libc (and not in rtld).
10036 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10037 strncmp if not in libc (and not to __strncmp_sse2).
10038
10039 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10040
10041 [BZ #23140]
10042 * localedata/locales/gd_GB (mon): Rename to...
10043 (alt_mon): This.
10044 (mon): Import from CLDR (genitive case).
10045 * localedata/locales/hsb_DE (mon): Rename to...
10046 (alt_mon): This.
10047 (mon): Import from CLDR (genitive case).
10048 * localedata/locales/wa_BE (mon): Rename to...
10049 (alt_mon): This.
10050 (mon): Add, fill with the proper genitive forms, but CLDR data
10051 is incomplete; completed according to the comments in this file.
10052 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10053
10054 * localedata/locales/wa_BE (country_name): Reword
10055 "Beljike" -> "Beldjike".
10056
10057 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10058
10059 [BZ #23272]
10060 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10061 cases of non-finite arguments.
10062 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10063
10064 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10065
10066 [BZ #23174]
10067 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10068
10069 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10070
10071 [BZ #23264]
10072 * include/unistd.h (__execvpex): New prototype.
10073 * posix/Makefile (tests): Add tst-spawn4.
10074 (tests-internal): Add tst-spawn4-compat.
10075 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10076 * posix/tst-spawn4-compat.c: New file.
10077 * posix/tst-spawn4.c: Likewise.
10078 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10079 binaries as shell scripts.
10080 * sysdeps/posix/spawni.c (__spawni): Likewise.
10081
10082 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10083
10084 [BZ #23145]
10085 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10086 ($(all-built-dso:=.dynsym): New target.
10087 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10088 ($(objpfx)check-initfini.out): New target.
10089 (generated): Add check-initfini.out.
10090 * scripts/check-initfini.awk: New file.
10091 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10092 (_fini): Likewise.
10093 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10094 (_fini): Likewise.
10095 * sysdeps/arm/crti.S (_init): Mark as hidden.
10096 (_fini): Likewise.
10097 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10098 (_fini): Likewise.
10099 * sysdeps/i386/crti.S (_init): Mark as hidden.
10100 (_fini): Likewise.
10101 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10102 (_fini): Likewise.
10103 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10104 (_fini): Likewise.
10105 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10106 (_fini): Likewise.
10107 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10108 (_fini): Likewise.
10109 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10110 (_fini): Likewise.
10111 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10112 (_fini): Likewise.
10113 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10114 (_fini): Likewise.
10115 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10116 (_fini): Likewise.
10117 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10118 (_fini): Likewise.
10119 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10120 (_fini): Likewise.
10121 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10122 (_fini): Likewise.
10123 * sysdeps/sh/crti.S (_init): Mark as hidden.
10124 (_fini): Likewise.
10125 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10126 (_fini): Likewise.
10127 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10128 (_fini): Likewise.
10129
10130 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10131
10132 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10133 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10134 and TF redirection to KFtype and KF only when the default
10135 long double type is not the IEEE 128-bit floating point type.
10136
10137 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10138
10139 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10140 macro.
10141 (HWCAP_USCAT): Likewise.
10142 (HWCAP_ILRCPC): Likewise.
10143 (HWCAP_FLAGM): Likewise.
10144 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10145 Increase to 28.
10146 (_dl_aarch64_cap_flags): Add new flag names.
10147
10148 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10149 (MAP_FIXED_NOREPLACE): New macro.
10150 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10151 (MAP_FIXED_NOREPLACE): Likewise.
10152 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10153 (MAP_FIXED_NOREPLACE): Likewise.
10154 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10155 (MAP_FIXED_NOREPLACE): Likewise.
10156 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10157 (MAP_FIXED_NOREPLACE): Likewise.
10158 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10159 (MAP_FIXED_NOREPLACE): Likewise.
10160 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10161 (MAP_FIXED_NOREPLACE): Likewise.
10162 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10163 (MAP_FIXED_NOREPLACE): Likewise.
10164 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10165 (MAP_FIXED_NOREPLACE): Likewise.
10166 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10167 (MAP_FIXED_NOREPLACE): Likewise.
10168 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10169 (MAP_FIXED_NOREPLACE): Likewise.
10170 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10171 (MAP_FIXED_NOREPLACE): Likewise.
10172 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10173 (MAP_FIXED_NOREPLACE): Likewise.
10174 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10175 (MAP_FIXED_NOREPLACE): Likewise.
10176 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10177 (MAP_FIXED_NOREPLACE): Likewise.
10178
10179 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10180 version to 4.17.
10181
10182 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10183
10184 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10185 version to 4.17
10186
10187 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10188
10189 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10190 int.
10191 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10192
10193 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10194
10195 * benchtests/scripts/compare_string.py: (process_results) Catch
10196 exception in non-existent base_func and catch exception in
10197 non-existent attribute.
10198 (parse_file) Catch exception if input file does not exist.
10199
10200 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10201
10202 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10203 options to avoid diff calculation and omit header, respectively.
10204 (main): process --no-diff and --no-header
10205
10206 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10207 H.J. Lu <hongjiu.lu@intel.com>
10208
10209 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10210 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10211 wcsncmp-sse2.
10212 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10213 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10214 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10215 and __wcsncmp_sse2.
10216 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10217 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10218 AVX unaligned load is fast and vzeroupper is preferred.
10219 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10220 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10221 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10222 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10223 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10224 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10225 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10226 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10227 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10228 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10229 is undefined.
10230
10231 2018-06-01 Florian Weimer <fweimer@redhat.com>
10232
10233 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10234 configuring with --disable-multi-arch, building with
10235 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10236 Haswell-era CPU.
10237
10238 2018-06-01 Florian Weimer <fweimer@redhat.com>
10239
10240 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10241 results from building with “-march=x86-64 -mtune=generic
10242 -mfpmath=sse” and running on a Haswell-era CPU.
10243
10244 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10245
10246 [BZ #18473]
10247 * soft-fp/sqrttf2.c: Remove file.
10248 * soft-fp/sqrtdf2.c: Move to ....
10249 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10250 <shlib-compat.h>.
10251 (__sqrtdf2): Make conditional on
10252 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10253 symbol.
10254 * soft-fp/sqrtsf2.c: Move to ....
10255 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10256 <shlib-compat.h>.
10257 (__sqrtsf2): Make conditional on
10258 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10259 symbol.
10260 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10261 (gcc-double-routines): Remove sqrtdf2.
10262 (gcc-quad-routines): Remove sqrttf2.
10263 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10264 Do not filter out sqrtsf2 and sqrtdf2.
10265 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10266 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10267
10268 2018-06-01 Florian Weimer <fweimer@redhat.com>
10269
10270 * sysdeps/generic/libcidn.abilist: Remove file.
10271
10272 2018-06-01 Florian Weimer <fweimer@redhat.com>
10273
10274 [BZ #23236]
10275 * libio/strfile.h (struct _IO_str_fields): Rename members to
10276 discourage their use and add comment.
10277 (_IO_STR_DYNAMIC): Remove unused macro.
10278 * libio/strops.c (_IO_str_init_static_internal): Do not use
10279 callback pointers. Call malloc and free.
10280 (_IO_str_overflow): Do not use callback pointers. Call malloc
10281 and free.
10282 (enlarge_userbuf): Likewise.
10283 (_IO_str_finish): Call free.
10284 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10285 _allocate_buffer_unused.
10286 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10287 and free.
10288 (enlarge_userbuf): Likewise.
10289 (_IO_wstr_finish): Call free.
10290 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10291 _allocate_buffer_unused, _free_buffer_unused.
10292 * libio/memstream.c (__open_memstream): Likewise.
10293 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10294 * libio/wmemstream.c (open_wmemstream): Likewise.
10295
10296 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10297
10298 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10299 AMD Ryzen 7 1800X.
10300
10301 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10302
10303 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10304 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10305 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10306 New file.
10307 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10308 Likewise.
10309 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10310
10311 2018-05-29 Florian Weimer <fweimer@redhat.com>
10312
10313 * support/Makefile (libsupport-routines): Add
10314 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10315 xpthread_barrierattr_setpshared.
10316 * support/xpthread_barrierattr_destroy.c: New file.
10317 * support/xpthread_barrierattr_init.c: Likewise.
10318 * support/xpthread_barrierattr_setpshared.c: Likewise.
10319
10320 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10321
10322 [BZ #23206]
10323 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10324 _r_debug and update DT_DEBUG for debugger.
10325
10326 2018-05-29 Florian Weimer <fweimer@redhat.com>
10327
10328 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10329 (tst-strtod5i.out): Likewise.
10330
10331 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10332
10333 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10334 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10335 (sparc64-quad-routines): New variable. Moved from ....
10336 [$(subdir) = soft-fp] (sysdep_routines): Add
10337 $(sparc64-quad-routines). Moved from ....
10338 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10339 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10340 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10341 moved from ....
10342 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10343 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10344 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10345 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10346 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10347 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10348 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10349 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10350 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10351 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10352 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10353 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10354 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10355 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10356 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10357 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10358 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10359 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10360 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10361 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10362 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10363 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10364 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10365 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10366 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10367 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10368 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10369 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10370 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10371 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10372 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10373 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10374 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10375 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10376 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10377 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10378 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10379 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10380 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10381 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10382 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10383 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10384 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10385 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10386 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10387 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10388 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10389 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10390 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10391 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10392 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10393 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10394 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10395 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10396 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10397 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10398 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10399 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10400
10401 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10402 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10403 (sparc32-quad-routines): New variable. Moved from ....
10404 [$(subdir) = soft-fp] (sysdep_routines): Add
10405 $(sparc32-quad-routines). Moved from ....
10406 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10407 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10408 moved from ....
10409 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10410 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10411 * sysdeps/sparc/sparc32/q_add.c: ... here.
10412 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10413 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10414 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10415 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10416 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10417 * sysdeps/sparc/sparc32/q_div.c: ... here.
10418 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10419 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10420 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10421 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10422 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10423 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10424 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10425 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10426 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10427 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10428 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10429 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10430 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10431 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10432 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10433 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10434 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10435 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10436 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10437 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10438 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10439 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10440 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10441 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10442 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10443 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10444 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10445 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10446 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10447 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10448 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10449 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10450 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10451 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10452 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10453 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10454 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10455 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10456 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10457 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10458 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10459 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10460 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10461 * sysdeps/sparc/sparc32/q_util.c: ... here.
10462 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10463 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10464 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10465 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10466
10467 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10468 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10469
10470 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10471 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10472 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10473 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10474
10475 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10476
10477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10478 powerpc/soft-fp.
10479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10480 Likewise.
10481 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10482 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10483
10484 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10485
10486 [BZ #23171]
10487 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10488 double version.
10489
10490 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10491
10492 * sysdeps/sh/Implies: Remove sh/soft-fp.
10493 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10494 * sysdeps/sh/sfp-machine.h: ... here.
10495
10496 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10497
10498 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10499 (__mempcpy_erms): Skip zero length.
10500 (__memmove_erms): Likewise.
10501 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10502 (__memset_erms): Likewise.
10503
10504 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10505
10506 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10507 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10508 Add functions moved from ....
10509 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10510 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10511 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10512 from ....
10513 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10514 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10515 * sysdeps/alpha/e_sqrtl.c: ... here.
10516 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10517 * sysdeps/alpha/local-soft-fp.h: ... here.
10518 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10519 * sysdeps/alpha/ots_add.c: ... here.
10520 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10521 * sysdeps/alpha/ots_cmp.c: ... here.
10522 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10523 * sysdeps/alpha/ots_cmpe.c: ... here.
10524 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10525 * sysdeps/alpha/ots_cvtqux.c: ... here.
10526 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10527 * sysdeps/alpha/ots_cvtqx.c: ... here.
10528 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10529 * sysdeps/alpha/ots_cvttx.c: ... here.
10530 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10531 * sysdeps/alpha/ots_cvtxq.c: ... here.
10532 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10533 * sysdeps/alpha/ots_cvtxt.c: ... here.
10534 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10535 * sysdeps/alpha/ots_div.c: ... here.
10536 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10537 * sysdeps/alpha/ots_mul.c: ... here.
10538 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10539 * sysdeps/alpha/ots_nintxq.c: ... here.
10540 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10541 * sysdeps/alpha/ots_sub.c: ... here.
10542 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10543 * sysdeps/alpha/sfp-machine.h: ... here.
10544
10545 2018-05-23 Florian Weimer <fweimer@redhat.com>
10546
10547 [BZ #19728]
10548 [BZ #19729]
10549 [BZ #22247]
10550 CVE-2016-6261
10551 CVE-2016-6263
10552 CVE-2017-14062
10553 Switch to extern IDNA implementation (libidn2).
10554 * libidn: Remove subdirectory.
10555 * LICENSES: Do not mention licensing conditions for the removed
10556 libidn code.
10557 * config.h.in (HAVE_LIBIDN): Remove.
10558 * include/dlfcn.h (__libc_dlopen): Update comment.
10559 * include/idna.h: Remove file.
10560 * inet/Makefile (routines): Add idna.
10561 (tests-static, tests-internal): Add tst-idna_name_classify.
10562 (LOCALES): Generate locales for tests.
10563 (tst-idna_name_classify.out): Depend on generated locales.
10564 * inet/idna_name_classify.c: New file.
10565 * inet/tst-idna_name_classify.c: Likewise.
10566 * inet/net-internal.h (__idna_to_dns_encoding)
10567 (__idna_from_dns_encoding): Declare.
10568 * inet/net-internal.h (enum idna_name_classification): Define.
10569 (__idna_name_classify): Declare.
10570 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10571 __idna_from_dns_encoding.
10572 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10573 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10574 name as a fallback in case of encoding errors.
10575 (getnameinfo): Use DEPRECATED_NI_IDN.
10576 * inet/idna.c: New file.
10577 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10578 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10579 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10580 (modules-names): Add tst-no-libidn2.
10581 (extra-test-objs): Add tst-no-libidn2.os.
10582 (LDFLAGS-tst-no-libidn2.so): Set soname.
10583 (LOCALES): Set, and generate locales.
10584 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10585 (tst-resolv-ai_idn-latin1): Likewise.
10586 (tst-resolv-ai_idn-nolibidn2): Likewise.
10587 (tst-resolv-ai_idn.out): Depend on locales.
10588 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10589 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10590 tst-no-libidn2.so.
10591 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10592 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10593 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10594 * resolv/tst-resolv-ai_idn.c: New file.
10595 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10596 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10597 * resolv/tst-no-libidn2.c: Likewise.
10598 * support/support_format_addrinfo.c (format_ai_flags): Do not
10599 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10600 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10601 (gaih_inet): Call __idna_to_dns_encoding and
10602 __idna_from_dns_encoding, and use the original (punycode) name if
10603 __idna_from_dns_encoding fails due to an encoding error.
10604 (getaddrinfo): Use DEPRECATED_AI_IDN.
10605 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10606 * sysdeps/unix/inet/configure: Remove file.
10607 * sysdeps/unix/inet/configure.ac: Likewise.
10608
10609 2018-05-23 Florian Weimer <fweimer@redhat.com>
10610
10611 Implement allocate_once.
10612 * include/allocate_once.h: New file.
10613 * misc/allocate_once.c: Likewise.
10614 * misc/tst-allocate_once.c: Likewise.
10615 * misc/Makefile (routines): Add allocate_once.
10616 (tests-internal): Add tst-allocate_once.
10617 (generated): Add tst-allocate_once.mtrace,
10618 tst-allocate_once-mem.out.
10619 (tests-special): Add tst-allocate_once-mem.out.
10620 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10621 (tst-allocate_once-mem.out): Call mtrace.
10622 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10623
10624 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10625
10626 [BZ #23196]
10627 * string/test-memcpy.c (do_test1): New function.
10628 (test_main): Call it.
10629
10630 2018-05-23 Andreas Schwab <schwab@suse.de>
10631
10632 [BZ #23196]
10633 CVE-2018-11237
10634 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10635 (L(preloop_large)): Save initial destination pointer in %r11 and
10636 use it instead of %rax after the loop.
10637 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10638
10639 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10640
10641 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10642 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10643 -I../soft-fp. Moved from ....
10644 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10645 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10646 * sysdeps/aarch64/e_sqrtl.c: ... here.
10647 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10648 * sysdeps/aarch64/sfp-machine.h: ... here.
10649
10650 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10651 -Wmaybe-uninitialized around access to fq[0].
10652 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10653 Likewise.
10654
10655 [BZ #18471]
10656 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10657 aliases for non-libc case of versioned symbols.
10658 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10659 (llseek): Define as compat symbol if
10660 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10661 with link warning.
10662 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10663 Make into a compat symbol, disabled for minimum symbol version
10664 GLIBC_2.28 and later.
10665 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10666
10667 2018-05-22 Florian Weimer <fweimer@redhat.com>
10668
10669 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10670 not add -mpreferred-stack-boundary=4.
10671 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10672 (stack-align-test-flags): Likewise.
10673 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10674 Likewise.
10675 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10676 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10677 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10678 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10679 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10680 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10681 (CFLAGS-tst-align2.c): Likewise.
10682
10683 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10684
10685 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10686 (index_arch_Prefer_FSRM): Likewise.
10687 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10688 Also check Prefer_FSRM.
10689 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10690 Also return OPTIMIZE (erms) for Prefer_FSRM.
10691
10692 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10693
10694 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10695 (index_cpu_FSRM): Likewise.
10696 (reg_FSRM): Likewise.
10697
10698 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10699
10700 * math/gen-tgmath-tests.py: Import sys.
10701 (Tests.__init__): Initialize macros_seen.
10702 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10703 if requested to do so for this macro.
10704 (Tests.add_all_tests): Take argument for macro for which to
10705 generate tests.
10706 (Tests.check_macro_list): New function.
10707 (main): Handle check-list argument and argument specifying macro
10708 for which to generate tests.
10709 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10710 [PYTHON] (tgmath3-macro-tests): Likewise.
10711 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10712 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10713 not test-tgmath3.c.
10714 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10715 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10716 to CFLAGS.
10717 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10718 [PYTHON] ($(foreach
10719 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10720 rule.
10721 [PYTHON] (tests-special): Add
10722 $(objpfx)test-tgmath3-macro-list.out.
10723 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10724
10725 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10726 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10727 later.
10728
10729 [BZ #22639]
10730 * time/tzset.c (SECSPERDAY): Cast to time_t.
10731 * time/tst-y2039.c: New file.
10732 * time/Makefile (tests): Add tst-y2039.
10733
10734 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10735
10736 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10737 (PREFETCH_ONE_SET): Remove duplicate line.
10738
10739 2018-05-17 Florian Weimer <fweimer@redhat.com>
10740
10741 * sysdeps/generic/math-type-macros-double.h: Include
10742 <math-nan-payload-double.h> after <libm-alias-double.h>.
10743 * sysdeps/generic/math-type-macros-float.h: Include
10744 <math-nan-payload-float.h> after <libm-alias-float.h>.
10745 * sysdeps/generic/math-type-macros-float128.h: Include
10746 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10747 * sysdeps/generic/math-type-macros-ldouble.h: Include
10748 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10749
10750 2018-05-17 Andreas Schwab <schwab@suse.de>
10751
10752 * resolv/res_send.c (__res_context_send): Don't set errno when
10753 returing error after malloc failure.
10754
10755 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10756
10757 * nptl/allocatestack.c (allocate_stack): Remove the
10758 !__ASSUME_PRIVATE_FUTEX paths.
10759 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10760 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10761 Likewise.
10762 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10763 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10764 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10765 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10766 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10767 !__ASSUME_PRIVATE_FUTEX path.
10768 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10769 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10770 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10771 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10772 !__ASSUME_PRIVATE_FUTEX macros.
10773 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10774 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
10775 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
10776 * sysdeps/unix/sysv/linux/kernel-features.h
10777 (__ASSUME_PRIVATE_FUTEX): Removed.
10778
10779 2018-05-17 Joseph Myers <joseph@codesourcery.com>
10780
10781 * math/Makefile (libm-narrow-fns): Add div.
10782 (libm-test-funcs-narrow): Likewise.
10783 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
10784 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
10785 * math/gen-auto-libm-tests.c (test_functions): Add div.
10786 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
10787 (NARROW_DIV_ROUND_TO_ODD): Likewise.
10788 (NARROW_DIV_TRIVIAL): Likewise.
10789 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
10790 macro.
10791 (__ddivl): Likewise.
10792 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
10793 ddiv.
10794 (CFLAGS-nldbl-ddiv.c): New variable.
10795 (CFLAGS-nldbl-fdiv.c): Likewise.
10796 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10797 __nldbl_ddivl.
10798 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
10799 prototype.
10800 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
10801 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
10802 * math/auto-libm-test-in: Add tests of div.
10803 * math/auto-libm-test-out-narrow-div: New generated file.
10804 * math/libm-test-narrow-div.inc: New file.
10805 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
10806 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
10807 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
10808 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
10809 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
10810 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
10811 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
10812 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
10813 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
10814 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
10815 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
10816 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
10817 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
10818 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
10819 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
10820 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
10821 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
10822 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
10823 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10824 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10825 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10826 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10827 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10828 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10829 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10830 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10831 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10832 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10833 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10834 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10835 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10836 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10841 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10842 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10843 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10844 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10845 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10846 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10847 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10848 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10849
10850 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10851
10852 [BZ #23178]
10853 * nscd/nscd-client.h (sendfileall): Remove prototype.
10854 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
10855 (handle_request): Use writeall instead of sendfileall.
10856 * nscd/aicache.c (addhstaiX): Likewise.
10857 * nscd/grpcache.c (cache_addgr): Likewise.
10858 * nscd/hstcache.c (cache_addhst): Likewise.
10859 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10860 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
10861 * nscd/pwdcache.c (cache_addpw): Likewise.
10862 * nscd/servicescache.c (cache_addserv): Likewise.
10863 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
10864 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
10865 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
10866 Remove define.
10867
10868 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
10869
10870 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
10871 Include <string/strncat.c>.
10872 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
10873 alias.
10874 (__GI___strncat): New hidden alias.
10875
10876 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10877
10878 * sysdeps/mips/mips32/libm-test-ulps: Update.
10879 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10880
10881 2018-05-16 Florian Weimer <fweimer@redhat.com>
10882
10883 * support/Makefile (libsupport-routines): Add support_quote_blob,
10884 support_test_compare_blob.
10885 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
10886 * support/check.h (TEST_COMPARE_BLOB): Define.
10887 (support_test_compare_blob): Declare.
10888 * support/support.h (support_quote_blob): Declare.
10889 * support/support_quote_blob.c: New file.
10890 * support/support_test_compare_blob.c: Likewise.
10891 * support/tst-support_quote_blob.c: Likewise.
10892 * support/tst-test_compare_blob.c: Likewise.
10893
10894 2018-05-16 Florian Weimer <fweimer@redhat.com>
10895
10896 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
10897 of <strtod_nan_double.h>.
10898 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
10899 instead of SET_MANTISSA.
10900 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
10901 of include <strtod_nan_float.h>.
10902 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
10903 instead of <strtod_nan_ldouble.h>.
10904 * stdlib/strtod_nan_double.h: Move to ...
10905 * sysdeps/generic/math-nan-payload-double.h: ... here.
10906 (FLOAT): Remove definition.
10907 (SET_MANTISSA): Rename to ...
10908 (SET_NAN_PAYLOAD): ... this.
10909 * stdlib/strtod_nan_float.h: Move to ...
10910 * sysdeps/generic/math-nan-payload-float.h: ... here.
10911 (FLOAT): Remove definition.
10912 (SET_MANTISSA): Rename to ...
10913 (SET_NAN_PAYLOAD): ... this.
10914 * sysdeps/generic/math-type-macros-double.h: Include
10915 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
10916 instead of <math-svid-compat.h>.
10917 * sysdeps/generic/math-type-macros-float.h: Include
10918 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
10919 instead of <math-svid-compat.h>.
10920 * sysdeps/generic/math-type-macros-float128.h: Include
10921 <math-nan-payload-float128.h>.
10922 * sysdeps/generic/math-type-macros-ldouble.h: Include
10923 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
10924 instead of <math-svid-compat.h>.
10925 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
10926 check for definition.
10927 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
10928 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
10929 Include <ieee754_float128.h>.
10930 (FLOAT): Remove definition.
10931 (SET_MANTISSA): Rename to ...
10932 (SET_NAN_PAYLOAD): ... this.
10933 * sysdeps/ieee754/float128/strtof128_nan.c: Include
10934 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
10935 Do not include <float128_private.h>.
10936 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
10937 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
10938 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
10939 (FLOAT): Remove definition.
10940 (SET_MANTISSA): Rename to ...
10941 (SET_NAN_PAYLOAD): ... this.
10942 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
10943 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
10944 (FLOAT): Remove definition.
10945 (SET_MANTISSA): Rename to ...
10946 (SET_NAN_PAYLOAD): ... this.
10947 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
10948 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
10949 (FLOAT): Remove definition.
10950 (SET_MANTISSA): Rename to ...
10951 (SET_NAN_PAYLOAD): ... this.
10952 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
10953 of "../stdlib/strtod_nan_double.h".
10954 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
10955 of "../stdlib/strtod_nan_float.h".
10956 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
10957 instead of "../stdlib/strtod_nan_ldouble.h".
10958 * manual/arith.texi (Parsing of Floats): Adjust comment.
10959
10960 2018-05-16 Joseph Myers <joseph@codesourcery.com>
10961
10962 * math/Makefile (libm-narrow-fns): Add mul.
10963 (libm-test-funcs-narrow): Likewise.
10964 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
10965 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
10966 * math/gen-auto-libm-tests.c (test_functions): Add mul.
10967 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
10968 (NARROW_MUL_ROUND_TO_ODD): Likewise.
10969 (NARROW_MUL_TRIVIAL): Likewise.
10970 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
10971 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
10972 macro.
10973 (__dmull): Likewise.
10974 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
10975 dmul.
10976 (CFLAGS-nldbl-dmul.c): New variable.
10977 (CFLAGS-nldbl-fmul.c): Likewise.
10978 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10979 __nldbl_dmull.
10980 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
10981 prototype.
10982 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
10983 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
10984 * math/auto-libm-test-in: Add tests of mul.
10985 * math/auto-libm-test-out-narrow-mul: New generated file.
10986 * math/libm-test-narrow-mul.inc: New file.
10987 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
10988 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
10989 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
10990 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
10991 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
10992 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
10993 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
10994 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
10995 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
10996 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
10997 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
10998 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
10999 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11000 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11001 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11002 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11003 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11004 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11005 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11006 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11007 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11008 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11009 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11010 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11011 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11012 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11013 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11014 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11015 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11016 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11017 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11018 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11023 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11024 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11025 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11026 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11027 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11028 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11029 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11030 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11031
11032 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11033
11034 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11035 with *%eax in call.
11036
11037 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11038
11039 * sysdeps/i386/ldsodefs.h: Removed.
11040 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11041 * sysdeps/x86/ldsodefs.h: This.
11042 (La_i86_regs): New.
11043 (La_i86_retval): Likewise.
11044 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11045 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11046
11047 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11048
11049 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11050 unnecessary testl.
11051
11052 2018-05-13 Alan Modra <amodra@gmail.com>
11053
11054 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11055 R_PARISC_TLS_DTPOFF32 reloc addend.
11056
11057 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11058
11059 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11060 * math/math.h: Restrict the prototype definition for the functions
11061 issignaling(_Float128) and iszero(_Float128); and template
11062 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11063 __HAVE_FLOAT128_UNLIKE_LDBL.
11064 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11065 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11066 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11067 __f128() constants; define the type _Float128 as long double;
11068 and reuse long double in __CFLOAT128.
11069
11070 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11071
11072 * sysdeps/generic/math_private.h: Do not include
11073 <math-barriers.h>.
11074 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11075 <math_private.h>.
11076 * math/fromfp.h: Include <math-barriers.h>.
11077 * math/math-narrow.h: Likewise.
11078 * math/s_nextafter.c: Likewise.
11079 * math/s_nexttowardf.c: Likewise.
11080 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11081 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11082 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11083 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11084 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11085 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11086 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11087 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11088 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11089 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11090 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11091 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11092 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11093 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11094 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11095 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11096 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11097 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11098 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11099 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11100 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11101 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11102 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11103 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11104 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11105 * sysdeps/ieee754/k_standardl.c: Likewise.
11106 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11107 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11108 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11109 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11110 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11111 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11112 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11113 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11114 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11115 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11116 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11117 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11118 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11119 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11120 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11121 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11122 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11123 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11124 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11125 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11126 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11127 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11128
11129 2018-05-11 Florian Weimer <fweimer@redhat.com>
11130
11131 Use 64-bit epoch values in the time zone file parser.
11132 * include/time.h (internal_time_t): Define.
11133 (__tzfile_compute): Use it.
11134 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11135 member.
11136 (transitions): Switch to internal_time_t.
11137 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11138 types.
11139 (__tzfile_compute): Use internal_time_t for timer argument. Check
11140 for truncation before calling __offtime.
11141
11142 2018-05-11 Florian Weimer <fweimer@redhat.com>
11143
11144 [BZ #23166]
11145 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11146 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11147 Likewise.
11148 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11149 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11150 export without --enable-obsolete-rpc.
11151 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11152 symbol. This should not have been exported, ever.
11153
11154 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11155
11156 [BZ #23152]
11157 * localedata/locales/gd_GB (abmon): Fix typo in May:
11158 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11159
11160 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11161
11162 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11163 Use multiple registers to copy data in loop tail.
11164
11165 * sysdeps/aarch64/multiarch/memmove_falkor.S
11166 (__memmove_falkor): Use multiple registers to move data in
11167 loop tail.
11168
11169 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11170
11171 * math/math-underflow.h: New file.
11172 * sysdeps/generic/math_private.h: Do not include <float.h>.
11173 (fabs_tg): Remove macro. Moved to math-underflow.h.
11174 (min_of_type_f): Likewise.
11175 (min_of_type_): Likewise.
11176 (min_of_type_l): Likewise.
11177 (min_of_type_f128): Likewise.
11178 (min_of_type): Likewise.
11179 (math_check_force_underflow): Likewise.
11180 (math_check_force_underflow_nonneg): Likewise.
11181 (math_check_force_underflow_complex): Likewise.
11182 * math/e_exp2_template.c: Include <math-underflow.h>.
11183 * math/k_casinh_template.c: Likewise.
11184 * math/s_catan_template.c: Likewise.
11185 * math/s_catanh_template.c: Likewise.
11186 * math/s_ccosh_template.c: Likewise.
11187 * math/s_cexp_template.c: Likewise.
11188 * math/s_clog10_template.c: Likewise.
11189 * math/s_clog_template.c: Likewise.
11190 * math/s_csin_template.c: Likewise.
11191 * math/s_csinh_template.c: Likewise.
11192 * math/s_csqrt_template.c: Likewise.
11193 * math/s_ctan_template.c: Likewise.
11194 * math/s_ctanh_template.c: Likewise.
11195 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11196 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11197 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11198 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11199 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11200 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11201 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11202 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11203 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11204 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11205 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11206 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11207 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11208 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11209 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11210 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11211 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11212 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11213 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11214 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11215 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11216 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11217 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11218 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11219 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11220 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11221 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11222 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11223 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11224 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11225 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11226 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11227 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11228 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11229 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11230 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11231 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11232 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11233 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11234 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11235 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11236 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11237 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11238 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11239 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11240 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11241 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11242 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11243 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11244 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11245 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11246 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11247 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11248 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11249 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11250 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11251 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11252 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11253 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11254 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11255 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11256 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11257 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11258 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11259 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11260 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11261 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11262 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11263 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11264 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11265 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11266 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11267 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11268 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11269 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11270 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11271 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11272 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11273 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11274 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11275 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11276 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11277 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11278 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11279
11280 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11281
11282 * sysdeps/generic/math-barriers.h: New file.
11283 * sysdeps/generic/math_private.h [!math_opt_barrier]
11284 (math_opt_barrier): Move to math-barriers.h.
11285 [!math_opt_barrier] (math_force_eval): Likewise.
11286 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11287 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11288 math-barriers.h.
11289 (math_force_eval): Likewise.
11290 * sysdeps/alpha/fpu/math-barriers.h: New file.
11291 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11292 math-barriers.h.
11293 (math_force_eval): Likewise.
11294 * sysdeps/x86/fpu/math-barriers.h: New file.
11295 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11296 math-barriers.h.
11297 (math_force_eval): Likewise.
11298 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11299 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11300 multiple-include guard for rename.
11301 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11302 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11303 math-barriers.h.
11304 (math_force_eval): Likewise.
11305
11306 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11307
11308 [BZ #22786]
11309 CVE-2018-11236
11310 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11311 computation.
11312 * stdlib/Makefile (test-bz22786): New test.
11313 * stdlib/test-bz22786.c: New test.
11314
11315 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11316
11317 * include/math-narrow-eval.h: New file. Contents moved from ....
11318 * sysdeps/generic/math_private.h: ... here.
11319 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11320 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11321 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11322 * stdlib/strtod_l.c: Likewise.
11323 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11324 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11325 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11326 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11327 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11328 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11329 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11330 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11331 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11332 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11333 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11334 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11335 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11336 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11337 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11338 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11339 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11340 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11341 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11342 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11343 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11344 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11345 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11346 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11347 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11348 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11349 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11350 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11351 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11352
11353 2018-05-08 Andreas Schwab <schwab@suse.de>
11354
11355 * sysdeps/nptl/internaltypes.h: Fix comment.
11356
11357 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11358
11359 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11360 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11361 hidden.
11362
11363 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11364
11365 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11366 of I into loop header.
11367 * benchtests/bench-memmove-walk.c
11368 (test_main): Likewise.
11369
11370 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11371
11372 Revert:
11373 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11374 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11375
11376 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11377
11378 [BZ #20419]
11379 * elf/dl-load.c (open_verify): Fix stack overflow.
11380 * elf/Makefile (tst-big-note): New test.
11381 * elf/tst-big-note-lib.S: New.
11382 * elf/tst-big-note.c: New.
11383
11384 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11385
11386 * scripts/abilist.awk: Ignore absolute symbols.
11387 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11388 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11389 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11390 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11391 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11392 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11393 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11394 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11395 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11396 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11397 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11398 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11399 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11400 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11401 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11402 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11403 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11404 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11405 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11406 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11407 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11408 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11409 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11410 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11411 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11412 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11413 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11414 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11415 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11416 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11417 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11418 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11419 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11420 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11421 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11422 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11423 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11424 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11425 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11426 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11427 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11428 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11429 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11430 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11431 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11432 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11433 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11434 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11435 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11436 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11437 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11438 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11439 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11440 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11441 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11442 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11443 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11444 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11445 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11446 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11447 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11448 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11449 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11450 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11451 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11452 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11453 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11454 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11455 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11456 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11457 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11458 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11459 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11460 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11461 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11462 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11463 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11464 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11465 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11466 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11467 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11468 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11469 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11470 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11471 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11472 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11473 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11474 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11475 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11476 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11477 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11478 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11479 Likewise.
11480 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11481 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11482 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11483 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11484 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11485 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11486 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11487 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11488 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11489 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11490 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11491 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11492 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11493 Likewise.
11494 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11495 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11496 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11497 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11498 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11499 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11500 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11501 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11502 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11503 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11504 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11505 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11506 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11507 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11508 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11509 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11510 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11511 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11512 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11513 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11514 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11515 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11516 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11517 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11518 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11519 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11520 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11521 Likewise.
11522 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11523 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11524 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11525 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11526 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11531 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11534 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11538 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11539 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11540 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11541 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11542 Likewise.
11543 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11544 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11552 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11553 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11554 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11555 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11556 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11557 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11558 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11559 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11560 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11561 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11562 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11563 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11564 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11565 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11566 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11567 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11568 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11569 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11570 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11575 Likewise.
11576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11577 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11581 Likewise.
11582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11583 Likewise.
11584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11586 Likewise.
11587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11589 Likewise.
11590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11591 Likewise.
11592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11595 Likewise.
11596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11597 Likewise.
11598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11599 Likewise.
11600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11604 Likewise.
11605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11611 Likewise.
11612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11614 Likewise.
11615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11616 Likewise.
11617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11618 Likewise.
11619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11620 Likewise.
11621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11624 Likewise.
11625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11626 Likewise.
11627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11628 Likewise.
11629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11632 Likewise.
11633 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11647 Likewise.
11648 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11660 Likewise.
11661 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11686 Likewise.
11687 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11700 Likewise.
11701 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11739
11740 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11741
11742 [BZ #23137]
11743 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11744 Use atomic_load_acquire to load __tid.
11745
11746 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11747
11748 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11749 Restore the pointer into %rdx, after syscall and use %rdx,
11750 instead of %rsi, to restore context.
11751
11752 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11753
11754 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11755 Pop the pointer into %rdx after syscall and use %rdx, instead
11756 of %rsi, to restore context.
11757
11758 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11759
11760 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11761 handlers after setjmp.
11762 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11763 defined.
11764 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11765 <libc-pointer-arith.h>.
11766 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11767 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11768 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11769 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11770 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11771 * sysdeps/x86/__longjmp_cancel.S: New file.
11772 * sysdeps/x86/longjmp.c: Likewise.
11773 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11774
11775 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11776
11777 * NEWS: Add ustat.h deprecation entry.
11778 * bits/ustat.h: Remove file.
11779 * misc/sys/ustat.h: Likewise.
11780 * misc/ustat.h: Likewise.
11781 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
11782 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
11783 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
11784 compatibility mode.
11785 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
11786 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
11787 generic Linux implementation.
11788
11789 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11790
11791 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
11792 * math/w_expl_compat.c: Likewise.
11793 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
11794
11795 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11796
11797 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11798
11799 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11800
11801 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
11802 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
11803 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
11804 Remove.
11805 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
11806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11807 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11808 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
11809 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
11810 and SYSCALL_LL64.
11811
11812 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11813
11814 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
11815
11816 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
11817 * math/w_asin_template.c: Likewise.
11818 * math/w_atanh_template.c: Likewise.
11819
11820 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11821
11822 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
11823 to powerpc/powerpc64/be for big-endian.
11824 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
11825 little-endian.
11826
11827 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
11828 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
11829 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
11830 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
11831 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
11832 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
11833 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
11834 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
11835 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
11836 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11837 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
11838 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
11839 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
11840 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
11841 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
11842 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
11843 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
11844 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
11845 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
11846 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
11847 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
11848 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11849 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
11850 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
11851 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
11852 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11853 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
11854 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
11855 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
11856 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
11857 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
11858 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
11859
11860 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
11861 adjusted to imply powerpc64 and older processors on powerpc64/be.
11862 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
11863 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
11864 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
11865 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
11866 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
11867 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
11868 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
11869 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
11870 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
11871 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
11872 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
11873 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
11874 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
11875 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
11876 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
11877 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
11878 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
11879 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
11880 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
11881 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
11882 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
11883 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
11884 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
11885 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
11886 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
11887 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
11888 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
11889 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
11890 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
11891 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
11892 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
11893
11894 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
11895 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
11896 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
11897 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
11898
11899 * sysdeps/powerpc/powerpc64/be/Implies: New file.
11900 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
11901 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
11902 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
11903
11904 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
11905 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
11906 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
11907 * sysdeps/powerpc/powerpc64le/configure: Likewise.
11908 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
11909 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
11910 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
11911 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
11912 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
11913 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
11914 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
11915
11916 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
11917 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
11918 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
11919 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
11920 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
11921 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
11922 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
11923 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
11924 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
11925 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
11926 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
11927
11928 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
11929 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
11930 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
11931 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
11932 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
11933 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
11934 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
11935 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
11936 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
11937 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
11938 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
11939 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
11940
11941 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
11942 and adjusted to imply olders processors.
11943 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
11944 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
11945 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
11946 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
11947 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
11948 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
11949 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
11950 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
11951 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
11952 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
11953 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
11954
11955 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
11956 powerpc64/le.
11957 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
11958 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
11959
11960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
11961 powerpc64le.
11962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
11963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
11964
11965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
11966 powerpc64/be.
11967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
11968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
11969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
11970
11971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
11972 powerpc64 and adjusted.
11973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
11974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
11975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
11976 Likewise.
11977
11978 2018-04-27 Joseph Myers <joseph@codesourcery.com>
11979
11980 * sysdeps/tile: Remove.
11981 * sysdeps/unix/sysv/linux/tile: Likewise.
11982 * README (tilegx-*-linux-gnu): Remove from list of supported
11983 configurations.
11984 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
11985 contribution of support for generic Linux kernel syscall
11986 interface.
11987 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
11988 tilegx configurations.
11989 (Config.install_linux_headers): Do not handle tile.
11990 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
11991 in comment.
11992 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
11993 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
11994 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
11995 conditional undefine and redefine.
11996 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
11997 in comment.
11998 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
11999 conditional undefine and redefine.
12000
12001 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12002
12003 * signal/tst-sigaction.c: New file to test BZ #23069.
12004 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12005
12006 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12007
12008 [BZ #22766]
12009 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12010 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12011 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12012 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12013
12014 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12015
12016 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12017 _DIRENT_MATCHES_DIRENT64 is not defined.
12018 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12019 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12020 is defined.
12021 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12022 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12023
12024 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12025
12026 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12027 version to GCC 8 branch.
12028
12029 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12030
12031 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12032 (check_no_hidden): Use type of original function when declaring
12033 alias.
12034
12035 * sysdeps/unix/sysv/linux/sys/ptrace.h
12036 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12037 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12038 (struct __ptrace_seccomp_metadata): New type.
12039 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12040 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12041 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12042 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12043 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12044 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12045 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12046 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12047 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12048 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12049 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12050 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12051 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12052 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12053 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12054 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12055
12056 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12057
12058 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12059 defined.
12060 * dirent/versionsort.c (versionsort): Likewise.
12061 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12062 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12063 * dirent/versionsort64.c (versionsort64): Likewise.
12064 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12065 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12066 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12067 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12068 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12069 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12070 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12071 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12072 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12073 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12076 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12077 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12078
12079 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12080
12081 * elf/elf.h (NT_PPC_PKEY): New macro.
12082
12083 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12084
12085 [BZ #23094]
12086 * localedata/locales/hr_HR: fix thousands_sep and
12087 mon_thousands_sep
12088
12089 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12090
12091 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12092 (XTABS): Define to TAB3.
12093
12094 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12095
12096 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12097
12098 * dirent/scandir-tail-common.c: New file.
12099 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12100 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12101 * dirent/scandir.c: Use scandir-tail-common.c.
12102 * dirent/scandirat.c: Likewise.
12103 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12104 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12105 if _DIRENT_MATCHES_DIRENT64 is defined.
12106 * dirent/scandirat64.c (scandirat64): Likewise.
12107 * include/dirent.h (__scandir_tail): Only define iff
12108 _DIRENT_MATCHES_DIRENT64 is not defined.
12109 (__scandir64_tail): Define regardless.
12110 (__scandirat, scandirat64): Remove libc_hidden_proto.
12111 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12112 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12114 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12115 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12116 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12117 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12118
12119 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12120
12121 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12122 New macro.
12123 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12124 Increase to 24.
12125 (_dl_aarch64_cap_flags): Add asimdfhm.
12126
12127 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12128
12129 * sysdeps/nios2/libm-test-ulps: Update.
12130
12131 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12132
12133 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12134 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12135
12136 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12137 requirements.
12138 (_DIRENT_MATCHES_DIRENT64): Undef
12139 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12140 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12141 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12142 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12143 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12144 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12145 use getdents64 syscalls as base.
12146 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12147 symbol if required.
12148 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12149 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12150 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12151 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12152 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12153 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12154 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12155 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12156 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12157 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12158 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12159
12160 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12161
12162 * scripts/test_printers_common.py (init_test): Disable lock elision.
12163
12164 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12165
12166 * math/test-tgmath.c (count_double, count_float,
12167 count_ldouble, count_cdouble, count_cfloat,
12168 count_cldouble): Use volatile int.
12169
12170 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12171
12172 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12173 (conformtest-xfail-conds): Add i386-gnu.
12174 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12175 i386-gnu.
12176 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12177 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12178 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12179 msqid_ds.msg_lrpid): Likewise.
12180 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12181 Likewise.
12182 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12183 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12184 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12185 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12186 unsigned int.
12187 (struct statvfs64): Likewise.
12188 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12189 Likewise.
12190 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12191 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12192 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12193 instead of wait_queue.
12194 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12195 instead of vm_area_struct.
12196 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12197 struct sched_param definition to it.
12198 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12199 * bits/types/struct_sched_param.h: New file.
12200 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12201 <bits/types/struct_sched_param.h> instead of <sched.h>.
12202 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12203 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12204 generic version but include <bits/pthreadtypes.h> to make struct
12205 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12206 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12207 non-compliant.
12208 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12209 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12210 [__USE_XOPEN] (OFDEL): New macro.
12211 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12212 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12213 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12214 prototypes.
12215 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12216 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12217 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12218 non-compliant.
12219 * sysdeps/i386/sys/ucontext.h: Likewise.
12220 * sysdeps/m68k/sys/ucontext.h: Likewise.
12221 * sysdeps/mips/sys/ucontext.h: Likewise.
12222 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12223 * sysdeps/mach/hurd/i386/Makefile
12224 (test-xfail-POSIX/fcntl.h/conform): Add.
12225 (test-xfail-POSIX/signal.h/conform): Add.
12226 (test-xfail-POSIX/semaphore.h/conform): Add.
12227 (test-xfail-POSIX/regex.h/conform): Add.
12228 (test-xfail-POSIX/aio.h/conform): Add.
12229 (test-xfail-POSIX/mqueue.h/conform): Add.
12230 (test-xfail-POSIX/sys/types.h/conform): Add.
12231 (test-xfail-UNIX98/fcntl.h/conform): Add.
12232 (test-xfail-UNIX98/netdb.h/conform): Add.
12233 (test-xfail-UNIX98/signal.h/conform): Add.
12234 (test-xfail-UNIX98/semaphore.h/conform): Add.
12235 (test-xfail-UNIX98/regex.h/conform): Add.
12236 (test-xfail-UNIX98/aio.h/conform): Add.
12237 (test-xfail-UNIX98/ftw.h/conform): Add.
12238 (test-xfail-UNIX98/mqueue.h/conform): Add.
12239 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12240 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12241 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12242 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12243 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12244 (test-xfail-UNIX98/sys/types.h/conform): Add.
12245 (test-xfail-UNIX98/stdlib.h/conform): Add.
12246 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12247 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12248 (test-xfail-POSIX2008/netdb.h/conform): Add.
12249 (test-xfail-POSIX2008/signal.h/conform): Add.
12250 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12251 (test-xfail-POSIX2008/regex.h/conform): Add.
12252 (test-xfail-POSIX2008/aio.h/conform): Add.
12253 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12254 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12255 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12256 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12257 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12258 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12259 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12260 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12261 (test-xfail-XOPEN2K/signal.h/conform): Add.
12262 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12263 (test-xfail-XOPEN2K/regex.h/conform): Add.
12264 (test-xfail-XOPEN2K/aio.h/conform): Add.
12265 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12266 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12267 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12268 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12269 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12270 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12271 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12272 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12273 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12274 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12275 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12276 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12277 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12278 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12279 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12280 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12281 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12282 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12283 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12284 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12285 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12286 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12287 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12288 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12289 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12290 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12291 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12292 i386-gnu.
12293 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12294 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12295
12296 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12297
12298 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12299 --enable-obsolete for powerpc-linux-gnuspe.
12300
12301 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12302
12303 * conform/data/sys/un.h-data: Allow sun_ prefix.
12304 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12305 prototypes.
12306 * sysdeps/mach/include/mach.h: Likewise.
12307 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12308 * sysdeps/mach/include/mach_error.h: Likewise.
12309
12310 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12311
12312 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12313 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12314 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12315 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12316
12317 2018-04-16 Andreas Schwab <schwab@suse.de>
12318
12319 [BZ #19527]
12320 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12321
12322 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12323
12324 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12325 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12326
12327 2018-04-12 DJ Delorie <dj@redhat.com>
12328
12329 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12330 version to 4.16.
12331
12332 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12333
12334 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12335 (struct kernel_sigaction): Use the same definition on 31bit as is used
12336 on 64bit.
12337
12338 2018-04-09 Florian Weimer <fweimer@redhat.com>
12339
12340 [BZ #23037]
12341 * resolv/res_send.c (send_dg): Use designated initializers instead
12342 of assignment to zero-initialize other fields of struct mmsghdr.
12343
12344 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12345
12346 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12347 __READDIR_ALIAS): Undefine after usage.
12348 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12349 __READDIR_R_ALIAS): Likewise.
12350 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12351 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12352 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12353 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12354 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12355 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12356 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12357 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12358 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12359 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12360 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12361 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12362 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12363 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12364 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12365 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12366 * sysdeps/unix/sysv/linux/readdir.c: New file.
12367 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12368 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12369 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12370
12371 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12372
12373 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12374
12375 * manual/charset.texi (Converting a Character): Fix typo.
12376
12377 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12378
12379 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12380
12381 * sysdeps/arm/libm-test-ulps: Update.
12382
12383 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12384 as base implementation.
12385 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12386 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12387 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12388 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12389 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12390 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12391 remove unrequired definitions and update comments.
12392 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12393 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12394 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12395 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12396 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12397 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12398 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12399 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12400 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12401 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12402 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12403 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12404 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12405 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12406 and RESET_SA_RESTORER hooks.
12407
12408 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12409
12410 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12411
12412 2018-04-05 Florian Weimer <fweimer@redhat.com>
12413
12414 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12415 integer overflow, memory leak on error, and indeterminate errno
12416 value. Add a null wide character to terminate the result string.
12417 * manual/charset.texi (Converting a Character): Mention embedded
12418 null bytes in the mbrtowc input string. Explain what happens in
12419 the -2 result case. Do not claim that mbrtowc is simple or
12420 obvious to use. Adjust the description of the code example. Use
12421 @code, not @var, for concrete variables.
12422
12423 2018-04-05 Florian Weimer <fweimer@redhat.com>
12424
12425 * manual/examples/mbstouwcs.c: New file.
12426 * manual/charset.texi (Converting a Character): Include it.
12427
12428 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12429
12430 * include/dirent.h (dirfd): Add hidden proto.
12431 * dirent/dirfd.c (dirfd): Add hidden def.
12432 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12433 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12434
12435 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12436
12437 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12438 sin, cos and sincos to 1 ULP.
12439
12440 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12441
12442 [BZ #19818]
12443 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12444 symbols.
12445 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12446 * elf/tst-absolute-sym.c: New file.
12447 * elf/tst-absolute-sym-lib.c: New file.
12448 * elf/tst-absolute-sym-lib.lds: New file.
12449 * elf/Makefile (tests): Add `tst-absolute-sym'.
12450 (modules-names): Add `tst-absolute-sym-lib'.
12451 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12452 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12453 ($(objpfx)tst-absolute-sym): New dependency.
12454
12455 [BZ #19818]
12456 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12457 parameter.
12458 (SYMBOL_ADDRESS): New macro.
12459 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12460 SYMBOL_ADDRESS for symbol address calculation.
12461 * elf/dl-runtime.c (_dl_fixup): Likewise.
12462 (_dl_profile_fixup): Likewise.
12463 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12464 * elf/rtld.c (dl_main): Likewise.
12465 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12466 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12467 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12468 (elf_machine_rela): Likewise.
12469 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12470 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12471 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12472 (elf_machine_rela): Likewise.
12473 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12474 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12475 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12476 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12477 Likewise.
12478 (elf_machine_reloc): Likewise.
12479 (elf_machine_got_rel): Likewise.
12480 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12481 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12482 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12483 Likewise.
12484 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12485 Likewise.
12486 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12487 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12488 Likewise.
12489 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12490 Likewise.
12491 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12492 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12493 Likewise.
12494 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12495 Likewise.
12496 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12497 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12498
12499 2018-04-04 Zack Weinberg <zackw@panix.com>
12500
12501 * sysdeps/generic/internal-signals.h: Include signal.h,
12502 sigsetops.h, and stdbool.h.
12503 (__libc_signal_block_all): Actually block all signals.
12504 (__libc_signal_block_app): Likewise.
12505 (__libc_signal_restore_set): Actually restore the signal mask.
12506
12507 2018-04-04 Florian Weimer <fweimer@redhat.com>
12508
12509 inet: Actually build and run tst-deadline.
12510 * inet/Makefile (tests-internal): Add tst-deadline and do not
12511 overwrite the variable.
12512 (tests-static-internal): Remove variable.
12513
12514 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12515
12516 [BZ #22947]
12517 * bits/uio-ext.h (RWF_APPEND): New.
12518 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12519 * manual/llio.texi: Document RWF_APPEND.
12520 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12521 (RWF_SUPPORTED): Add RWF_APPEND.
12522
12523 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12524
12525 [BZ #22391]
12526 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12527 check for internal nptl signals.
12528 * nptl/sigaction.c (__sigaction): Likewise.
12529 * signal/sigaddset.c (sigaddset): Likewise.
12530 * signal/sigdelset.c (sigdelset): Likewise.
12531 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12532 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12533 value.
12534 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12535 to filter out internal nptl signals.
12536 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12537 also check realtime signals using standard macros.
12538 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12539 __is_internal_signal, __libc_signal_block_all,
12540 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12541 * sysdeps/nptl/sigfillset.c: Remove file.
12542 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12543 Change return to bool.
12544 (__clear_internal_signals): Remove SIGTIMER clean since it is
12545 equal to SIGCANEL on Linux.
12546 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12547 signal set was constructed using standard functions.
12548
12549 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12550
12551 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12552 ifname is too long.
12553 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12554 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12555 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12556 hidden def.
12557 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12558 * signal/sigaddset.c: Include <sigsetopts.h>.
12559 * signal/sigdelset.c: Likewise.
12560
12561 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12562
12563 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12564 (__cos): Likewise.
12565 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12566 logic as sin and cos.
12567
12568 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12569
12570 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12571 inputs. Return correct sign.
12572 (do_sincos): Remove small input check before do_sin, let do_sin set
12573 the sign.
12574 (__sin): Likewise.
12575 (__cos): Likewise.
12576
12577 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12578
12579 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12580 (do_cos_slow): Likewise.
12581 (do_sin_slow): Likewise.
12582 (reduce_and_compute): Likewise.
12583 (slow): Likewise.
12584 (slow1): Likewise.
12585 (slow2): Likewise.
12586 (sloww): Likewise.
12587 (sloww1): Likewise.
12588 (sloww2): Likewise.
12589 (bslow): Likewise.
12590 (bslow1): Likewise.
12591 (bslow2): Likewise.
12592 (cslow2): Likewise.
12593
12594 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12595
12596 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12597 (do_cos): Remove corp parameter and calculations.
12598 (do_sin): Likewise.
12599 (do_sincos): Remove cor variable.
12600 (__sin): Use do_sincos for huge inputs.
12601 (__cos): Likewise.
12602 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12603 (reduce_and_compute_sincos): Remove unused function.
12604
12605 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12606
12607 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12608 reduce_sincos, improve accuracy to 136 bits.
12609 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12610 (__sin): Use improved reduction and simplified do_sincos calculation.
12611 (__cos): Likewise.
12612 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12613
12614 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12615
12616 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12617 (do_sincos_2): Likewise.
12618 (__sin): Remove middle range reduction case.
12619 (__cos): Likewise.
12620 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12621 reduction case.
12622
12623 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12624
12625 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12626 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12627 inputs.
12628 (__cos): Likewise.
12629 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12630
12631 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12632
12633 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12634 version to 4.16
12635
12636 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12637
12638 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12639 Remove definitions.
12640 (opendir_oflags): Use O_DIRECTORY regardless.
12641 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12642 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12643
12644 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12645
12646 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12647 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12648 macros.
12649 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12650 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12651 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12652 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12653 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12654 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12655
12656 * htl/Makefile: Bump licence to LGPL 2.1+.
12657 * htl/alloca_cutoff.c: Likewise.
12658 * htl/cthreads-compat.c: Likewise.
12659 * htl/lockfile.c: Likewise.
12660 * htl/pt-alloc.c: Likewise.
12661 * htl/pt-cancel.c: Likewise.
12662 * htl/pt-cleanup.c: Likewise.
12663 * htl/pt-create.c: Likewise.
12664 * htl/pt-dealloc.c: Likewise.
12665 * htl/pt-detach.c: Likewise.
12666 * htl/pt-exit.c: Likewise.
12667 * htl/pt-getattr.c: Likewise.
12668 * htl/pt-initialize.c: Likewise.
12669 * htl/pt-internal.h: Likewise.
12670 * htl/pt-join.c: Likewise.
12671 * htl/pt-self.c: Likewise.
12672 * htl/pt-setcancelstate.c: Likewise.
12673 * htl/pt-setcanceltype.c: Likewise.
12674 * htl/pt-sigmask.c: Likewise.
12675 * htl/pt-spin-inlines.c: Likewise.
12676 * htl/pt-testcancel.c: Likewise.
12677 * htl/pt-yield.c: Likewise.
12678 * htl/tests/test-1.c: Likewise.
12679 * htl/tests/test-10.c: Likewise.
12680 * htl/tests/test-11.c: Likewise.
12681 * htl/tests/test-12.c: Likewise.
12682 * htl/tests/test-13.c: Likewise.
12683 * htl/tests/test-14.c: Likewise.
12684 * htl/tests/test-15.c: Likewise.
12685 * htl/tests/test-16.c: Likewise.
12686 * htl/tests/test-17.c: Likewise.
12687 * htl/tests/test-2.c: Likewise.
12688 * htl/tests/test-3.c: Likewise.
12689 * htl/tests/test-4.c: Likewise.
12690 * htl/tests/test-5.c: Likewise.
12691 * htl/tests/test-6.c: Likewise.
12692 * htl/tests/test-7.c: Likewise.
12693 * htl/tests/test-8.c: Likewise.
12694 * htl/tests/test-9.c: Likewise.
12695 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12696 * sysdeps/htl/bits/cancelation.h: Likewise.
12697 * sysdeps/htl/bits/pthread-np.h: Likewise.
12698 * sysdeps/htl/bits/pthread.h: Likewise.
12699 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12700 * sysdeps/htl/bits/semaphore.h: Likewise.
12701 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12702 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12703 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12704 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12705 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12706 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12707 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12708 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12709 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12710 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12711 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12712 * sysdeps/htl/old_pt-atfork.c: Likewise.
12713 * sysdeps/htl/pt-atfork.c: Likewise.
12714 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12715 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12716 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12717 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12718 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12719 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12720 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12721 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12722 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12723 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12724 * sysdeps/htl/pt-attr-init.c: Likewise.
12725 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12726 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12727 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12728 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12729 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12730 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12731 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12732 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12733 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12734 * sysdeps/htl/pt-attr.c: Likewise.
12735 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12736 * sysdeps/htl/pt-barrier-init.c: Likewise.
12737 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12738 * sysdeps/htl/pt-barrier.c: Likewise.
12739 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12740 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12741 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12742 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12743 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12744 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12745 * sysdeps/htl/pt-cond-init.c: Likewise.
12746 * sysdeps/htl/pt-cond-signal.c: Likewise.
12747 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12748 * sysdeps/htl/pt-cond-wait.c: Likewise.
12749 * sysdeps/htl/pt-cond.c: Likewise.
12750 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12751 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12752 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12753 * sysdeps/htl/pt-condattr-init.c: Likewise.
12754 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12755 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12756 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12757 * sysdeps/htl/pt-equal.c: Likewise.
12758 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12759 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12760 * sysdeps/htl/pt-getschedparam.c: Likewise.
12761 * sysdeps/htl/pt-getspecific.c: Likewise.
12762 * sysdeps/htl/pt-init-specific.c: Likewise.
12763 * sysdeps/htl/pt-key-create.c: Likewise.
12764 * sysdeps/htl/pt-key-delete.c: Likewise.
12765 * sysdeps/htl/pt-key.h: Likewise.
12766 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12767 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12768 * sysdeps/htl/pt-mutex-init.c: Likewise.
12769 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12770 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12771 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12772 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12773 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12774 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
12775 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
12776 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
12777 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
12778 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
12779 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
12780 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
12781 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
12782 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
12783 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
12784 * sysdeps/htl/pt-mutexattr.c: Likewise.
12785 * sysdeps/htl/pt-once.c: Likewise.
12786 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
12787 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
12788 * sysdeps/htl/pt-rwlock-init.c: Likewise.
12789 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
12790 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
12791 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
12792 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
12793 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
12794 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
12795 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
12796 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
12797 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
12798 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
12799 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
12800 * sysdeps/htl/pt-setconcurrency.c: Likewise.
12801 * sysdeps/htl/pt-setschedparam.c: Likewise.
12802 * sysdeps/htl/pt-setschedprio.c: Likewise.
12803 * sysdeps/htl/pt-setspecific.c: Likewise.
12804 * sysdeps/htl/pt-spin.c: Likewise.
12805 * sysdeps/htl/pt-startup.c: Likewise.
12806 * sysdeps/htl/pthread.h: Likewise.
12807 * sysdeps/htl/sem-close.c: Likewise.
12808 * sysdeps/htl/sem-destroy.c: Likewise.
12809 * sysdeps/htl/sem-getvalue.c: Likewise.
12810 * sysdeps/htl/sem-init.c: Likewise.
12811 * sysdeps/htl/sem-open.c: Likewise.
12812 * sysdeps/htl/sem-post.c: Likewise.
12813 * sysdeps/htl/sem-timedwait.c: Likewise.
12814 * sysdeps/htl/sem-trywait.c: Likewise.
12815 * sysdeps/htl/sem-unlink.c: Likewise.
12816 * sysdeps/htl/sem-wait.c: Likewise.
12817 * sysdeps/hurd/htl/pt-kill.c: Likewise.
12818 * sysdeps/i386/htl/pt-machdep.h: Likewise.
12819 * sysdeps/mach/htl/pt-block.c: Likewise.
12820 * sysdeps/mach/htl/pt-spin.c: Likewise.
12821 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
12822 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
12823 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
12824 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
12825 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
12826 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
12827 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
12828 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
12829 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
12830 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
12831 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
12832 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
12833 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
12834 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
12835 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
12836 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
12837 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
12838 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
12839 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
12840 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
12841 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
12842 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
12843 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
12844 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
12845 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
12846 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
12847 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
12848 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
12849 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
12850 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
12851 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
12852 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
12853 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
12854 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
12855 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
12856 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
12857 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
12858 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
12859 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
12860 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
12861 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
12862 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
12863 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
12864
12865 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
12866 * README: Remove the mention of out-of-tree patches needed for
12867 GNU/Hurd.
12868
12869 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
12870 (UTIME_NOW, UTIME_OMIT): Define macros.
12871
12872 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
12873 instead of pthread_detach.
12874 (__cthread_fork): Call __pthread_create instead of pthread_create.
12875 (__cthread_keycreate): Call __pthread_key_create instead of
12876 pthread_key_create.
12877 (__cthread_getspecific): Call __pthread_getspecific instead of
12878 pthread_getspecific.
12879 (__cthread_setspecific): Call __pthread_setspecific instead of
12880 pthread_setspecific.
12881 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
12882 __pthread_mutex_unlock instead of pthread_mutex_lock and
12883 pthread_mutex_unlock.
12884 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
12885 ___pthread_get_cleanup_stack.
12886 (__pthread_get_cleanup_stack): New strong alias.
12887 * htl/pt-create.c: Include <pthreadP.h>.
12888 (entry_point): Call __pthread_exit instead of pthread_exit.
12889 (pthread_create): Rename to __pthread_create.
12890 (pthread_create): New strong alias.
12891 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
12892 (pthread_detach): New strong alias.
12893 (__pthread_detach): Call __pthread_cond_broadcast instead of
12894 pthread_cond_broadcast.
12895 * htl/pt-exit.c: Include <pthreadP.h>.
12896 (__pthread_exit): Call __pthread_setcancelstate and
12897 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
12898 __pthread_get_cleanup_stack.
12899 * htl/pt-testcancel.c: Include <pthreadP.h>.
12900 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
12901 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
12902 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
12903 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
12904 pthread_attr_getstacksize.
12905 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
12906 Rename to __pthread_attr_getstackaddr.
12907 (pthread_attr_getstackaddr): New strong alias.
12908 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
12909 Rename to __pthread_attr_getstacksize.
12910 (pthread_attr_getstacksize): New strong alias.
12911 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
12912 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
12913 (pthread_attr_setstack): New strong alias.
12914 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
12915 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
12916 pthread_attr_getstacksize, pthread_attr_setstacksize and
12917 pthread_attr_setstackaddr.
12918 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
12919 Rename to __pthread_attr_setstackaddr.
12920 (pthread_attr_setstackaddr): New strong alias.
12921 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
12922 Rename to __pthread_attr_setstacksize.
12923 (pthread_attr_setstacksize): New strong alias.
12924 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
12925 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
12926 pthread_exit.
12927 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
12928 (__pthread_key_create): New hidden def.
12929 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
12930 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
12931 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
12932 __pthread_exit, __pthread_key_create, __pthread_getspecific,
12933 __pthread_setspecific, __pthread_setcancelstate,
12934 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
12935 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
12936 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
12937 declarations.
12938 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
12939 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
12940 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
12941 (pthread_attr_setstackaddr): New strong alias.
12942 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
12943 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
12944 (pthread_attr_setstacksize): New strong alias.
12945 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
12946 (call_exit): Call __pthread_exit instead of pthread_exit.
12947 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
12948 (_pthread_mutex_init): New hidden definition.
12949 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
12950 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
12951 instead of pthread_attr_init and pthread_attr_setstack.
12952
12953 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
12954 __vm_deallocate instead of vm_allocate and vm_deallocate.
12955 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
12956 setenv.
12957 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
12958 of geteuid.
12959 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
12960 strdup.
12961 * hurd/siginfo.c: Include <libioP.h>.
12962 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
12963 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
12964 munmap.
12965 * mach/devstream.c: Include <libioP.h>.
12966 (dealloc_ref): Call __mach_port_deallocate instead of
12967 mach_port_deallocate.
12968 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
12969 Call __mach_port_deallocate instead of mach_port_deallocate.
12970 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
12971 pathconf.
12972 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
12973 munmap.
12974 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
12975 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
12976 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
12977 of munmap.
12978 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
12979 of close.
12980 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
12981 instead of sysconf.
12982 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
12983 __clock_gettime instead of clock_gettime.
12984 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
12985 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
12986 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
12987 * sysdeps/unix/bsd/stty.c (stty): Likewise.
12988 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
12989 tcgetattr.
12990 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
12991 __clock_gettime and __nanosleep instead of clock_gettime and
12992 nanosleep.
12993 * hurd/catch-signal.c (hurd_catch_signal): Rename to
12994 __hurd_catch_signal.
12995 (hurd_catch_signal): New strong alias.
12996 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
12997 __hurd_catch_signal instead of hurd_catch_signal.
12998 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
12999 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13000 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13001 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13002 (_hurd_thread_sigstate): Add hidden def.
13003 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13004 mutex_unlock.
13005 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13006 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13007 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13008 __hurd_file_name_path_lookup.
13009 (hurd_file_name_path_lookup): New strong alias.
13010 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13011 hurd_file_name_path_lookup.
13012 * mach/errstring.c (mach_error_type): Add hidden def.
13013 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13014 * mach/mutex-init.c (__mutex_init): Add hidden def.
13015 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13016 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13017 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13018 * sysdeps/mach/hurd/getcwd.c
13019 (_hurd_canonicalize_directory_name_internal): Rename to
13020 __hurd_canonicalize_directory_name_internal.
13021 (_hurd_canonicalize_directory_name_internal): New strong alias.
13022 (__canonicalize_directory_name_internal, __getcwd): Call
13023 __hurd_canonicalize_directory_name_internal instead of
13024 _hurd_canonicalize_directory_name_internal.
13025 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13026 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13027 hidden defs.
13028 * sysdeps/hurd/include/hurd.h: New file.
13029 * sysdeps/hurd/include/hurd/fd.h: New file.
13030 * sysdeps/hurd/include/hurd/signal.h: New file.
13031 * sysdeps/mach/include/lock-intern.h: New file.
13032 * sysdeps/mach/include/mach.h: New file.
13033 * sysdeps/mach/include/mach/mig_support.h: New file.
13034 * sysdeps/mach/include/mach_error.h: New file.
13035 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13036 prototype.
13037 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13038 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13039 _HEADER_H_HIDDEN_DEF macro.
13040 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13041 _hurd_fd_error_signal): Add hidden prototype.
13042 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13043 hidden def.
13044 * libio/iolibio.h (_IO_puts): New hidden prototype.
13045 * libio/ioputs.c (_IO_puts): New hidden def.
13046 * sysdeps/mach/hurd/localplt.data: New file.
13047
13048 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13049 Amos Jeffries <squid3@treenet.co.nz>
13050 David Michael <fedora.dm0@gmail.com>
13051 Marco Gerards <marco@gnu.org>
13052 Marcus Brinkmann <marcus@gnu.org>
13053 Neal H. Walfield <neal@gnu.org>
13054 Pino Toscano <toscano.pino@tiscali.it>
13055 Richard Braun <rbraun@sceen.net>
13056 Roland McGrath <roland@gnu.org>
13057 Samuel Thibault <samuel.thibault@ens-lyon.org>
13058 Thomas DiModica <ricinwich@yahoo.com>
13059 Thomas Schwinge <tschwinge@gnu.org>
13060
13061 * htl: New directory.
13062 * sysdeps/htl: New directory.
13063 * sysdeps/hurd/htl: New directory.
13064 * sysdeps/i386/htl: New directory.
13065 * sysdeps/mach/htl: New directory.
13066 * sysdeps/mach/hurd/htl: New directory.
13067 * sysdeps/mach/hurd/i386/htl: New directory.
13068 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13069 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13070 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13071
13072 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13073
13074 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13075 signals in thread created for runing timers.
13076
13077 2018-04-01 Florian Weimer <fweimer@redhat.com>
13078
13079 * support/support_format_addrinfo.c (support_format_addrinfo):
13080 Include unknown error number in formatted result.
13081
13082 2018-03-29 Florian Weimer <fweimer@redhat.com>
13083
13084 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13085 capture SIGBUS.
13086
13087 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13088
13089 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13090 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13091 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13092 (__ASSUME_CLONE_BACKWARDS): Define.
13093
13094 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13095
13096 [BZ #23024]
13097 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13098 early when linux sentinel value is set.
13099
13100 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13101
13102 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13103
13104 2018-03-27 Andreas Schwab <schwab@suse.de>
13105
13106 [BZ #23005]
13107 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13108 allocation of private copy of nsaddr_list fails.
13109
13110 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13111
13112 [BZ #16552]
13113 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13114 * sysdeps/unix/sysv/linux/umount.c: ... here.
13115 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13116 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13117 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13118 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13120 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13121 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13122
13123 2018-03-26 Andreas Schwab <schwab@suse.de>
13124
13125 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13126 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13127 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13128 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13129 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13130 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13131 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13132 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13133 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13134 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13135 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13136 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13137 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13138 (R_RISCV_NUM): Define.
13139
13140 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13141
13142 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13143 TLS declaration of errno.
13144 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13145 __libc_setup_tls.
13146 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13147 (ARCH_SETUP_TLS): Likewise.
13148 * sysdeps/mach/hurd/libc-start.h: New file copied from
13149 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13150 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13151 instead of __libc_setup_tls.
13152 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13153 __libc_setup_tls before initializing libpthread and running _hurd_init
13154 which starts the signal thread.
13155 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13156 Declare function.
13157 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13158
13159 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13160
13161 [BZ #22998]
13162 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13163 after it is defined.
13164
13165 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13166 Max Horn <max@quendi.de>
13167
13168 [BZ #22644]
13169 CVE-2017-18269
13170 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13171 branch conditions.
13172 * string/test-memmove.c (do_test2): New testcase.
13173
13174 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13175
13176 * sysdeps/generic/frame.h: Remove file.
13177 * sysdeps/arm/frame.h: Likewise.
13178 * sysdeps/hppa/frame.h: Likewise.
13179 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13180 macro.
13181 (GET_FRAME): Likewise.
13182 (GET_STACK): Likewise.
13183 (CALL_SIGHANDLER): Likewise.
13184 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13185 Likewise.
13186 (GET_FRAME): Likewise.
13187 (GET_STACK): Likewise.
13188 (CALL_SIGHANDLER): Likewise.
13189 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13190 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13191 (GET_FRAME): Likewise.
13192 (GET_STACK): Likewise.
13193 (CALL_SIGHANDLER): Likewise.
13194 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13195 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13196 (GET_FRAME): Likewise.
13197 (GET_STACK): Likewise.
13198 (ADVANCE_STACK_FRAME): Likewise.
13199 (CALL_SIGHANDLER): Likewise.
13200 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13201 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13202 (GET_FRAME): Likewise.
13203 (GET_STACK): Likewise.
13204 (CALL_SIGHANDLER): Likewise.
13205 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13206 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13207 (GET_FRAME): Likewise.
13208 (GET_STACK): Likewise.
13209 (CALL_SIGHANDLER): Likewise.
13210 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13211 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13212 (GET_FRAME): Likewise.
13213 (GET_STACK): Likewise.
13214 (CALL_SIGHANDLER): Likewise.
13215 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13216 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13217 (GET_FRAME): Likewise.
13218 (GET_STACK): Likewise.
13219 (CALL_SIGHANDLER): Likewise.
13220 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13221 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13222 (GET_FRAME): Likewise.
13223 (GET_STACK): Likewise.
13224 (CALL_SIGHANDLER): Likewise.
13225 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13226 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13227 (GET_FRAME): Likewise.
13228 (GET_STACK): Likewise.
13229 (CALL_SIGHANDLER): Likewise.
13230 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13231 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13232 (GET_FRAME): Likewise.
13233 (GET_STACK): Likewise.
13234 (CALL_SIGHANDLER): Likewise.
13235 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13236 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13237 (GET_FRAME): Likewise.
13238 (GET_STACK): Likewise.
13239 (CALL_SIGHANDLER): Likewise.
13240 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13241 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13242 (GET_FRAME): Likewise.
13243 (GET_STACK): Likewise.
13244 (CALL_SIGHANDLER): Likewise.
13245 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13246 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13247 (FIRST_FRAME_POINTER): Likewise.
13248 (ADVANCE_STACK_FRAME): Likewise.
13249 (GET_STACK): Likewise.
13250 (GET_FRAME): Likewise.
13251 (CALL_SIGHANDLER): Likewise.
13252 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13253 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13254 (ADVANCE_STACK_FRAME): Likewise.
13255 (GET_STACK): Likewise.
13256 (GET_FRAME): Likewise.
13257 (CALL_SIGHANDLER): Likewise.
13258 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13259 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13260 (GET_FRAME): Likewise.
13261 (GET_STACK): Likewise.
13262 (CALL_SIGHANDLER): Likewise.
13263 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13264 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13265 (GET_FRAME): Likewise.
13266 (GET_STACK): Likewise.
13267 (CALL_SIGHANDLER): Likewise.
13268
13269 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13270
13271 * sysdeps/x86_64/backtrace.c: Move to ....
13272 * debug/backtrace.c: ... here.
13273 * sysdeps/aarch64/backtrace.c: Remove file.
13274 * sysdeps/alpha/backtrace.c: Likewise.
13275 * sysdeps/hppa/backtrace.c: Likewise.
13276 * sysdeps/ia64/backtrace.c: Likewise.
13277 * sysdeps/mips/backtrace.c: Likewise.
13278 * sysdeps/nios2/backtrace.c: Likewise.
13279 * sysdeps/riscv/backtrace.c: Likewise.
13280 * sysdeps/sh/backtrace.c: Likewise.
13281 * sysdeps/tile/backtrace.c: Likewise.
13282
13283 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13284
13285 [BZ #22987]
13286 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13287 function.
13288 (fdimf): Likewise.
13289 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13290
13291 [BZ #17343]
13292 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13293 possibly overflowing computations.
13294
13295 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13296
13297 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13298 values from Linux-specific section now that it is in the GNU section.
13299 * sysdeps/gnu/errlist.c: Regenerate.
13300
13301 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13302
13303 * math/Makefile (libm-narrow-fns): Add sub.
13304 (libm-test-funcs-narrow): Likewise.
13305 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13306 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13307 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13308 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13309 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13310 (NARROW_SUB_TRIVIAL): Likewise.
13311 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13312 macro.
13313 (__dsubl): Likewise.
13314 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13315 dsub.
13316 (CFLAGS-nldbl-dsub.c): New variable.
13317 (CFLAGS-nldbl-fsub.c): Likewise.
13318 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13319 __nldbl_dsubl.
13320 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13321 prototype.
13322 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13323 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13324 * math/auto-libm-test-in: Add tests of sub.
13325 * math/auto-libm-test-out-narrow-sub: New generated file.
13326 * math/libm-test-narrow-sub.inc: New file.
13327 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13328 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13329 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13330 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13331 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13332 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13333 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13334 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13335 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13336 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13337 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13338 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13339 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13340 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13341 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13342 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13343 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13344 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13345 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13346 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13347 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13348 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13349 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13350 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13351 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13352 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13353 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13354 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13355 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13356 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13357 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13358 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13363 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13364 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13365 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13366 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13367 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13368 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13369 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13370 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13371 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13372 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13373
13374 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13375
13376 [BZ #20079]
13377 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13378
13379 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13380
13381 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13382
13383 2018-03-18 Richard Braun <rbraun@sceen.net>
13384
13385 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13386 thread reference.
13387
13388 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13389
13390 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13391 (__libc_cleanup_fct): Define function.
13392 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13393 __libc_cleanup_end): Rewrite implementation using
13394 __attribute__ ((__cleanup__)).
13395 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13396 * hurd/Makefile (routines): Add hurdlock.
13397 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13398 interface.
13399 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13400 * hurd/hurdpid.c: Include <lowlevellock.h>
13401 (_S_msg_proc_newids): Use lll_wait to synchronize.
13402 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13403 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13404 * mach/Makefile (lock-headers): Remove machine-lock.h.
13405 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13406 <machine-lock.h>.
13407 (__spin_lock_t): New type.
13408 (__SPIN_LOCK_INITIALIZER): New macro.
13409 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13410 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13411 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13412 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13413 (__mutex_init): Initialize with lll.
13414 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13415 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13416 needing lll.
13417 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13418 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13419 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13420 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13421 (__setpgid): Use lll for synchronization.
13422 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13423 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13424 instead of <cthreads.h>.
13425 (_IO_lock_inexpensive): New macro
13426 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13427 (__libc_lock_self0): New declaration.
13428 (__libc_lock_owner_self): New macro.
13429 (__libc_key_t): Remove type.
13430 (_LIBC_LOCK_INITIALIZER): New macro.
13431 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13432 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13433 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13434 __libc_lock_define_initialized_recursive,
13435 __rtld_lock_define_initialized_recursive,
13436 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13437 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13438 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13439 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13440 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13441 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13442 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13443 New macros.
13444 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13445 * hurd/hurdlock.c: New file.
13446 * hurd/hurdlock.h: New file.
13447 * mach/lowlevellock.h: New file
13448
13449 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13450
13451 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13452 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13453 when opening a symlink with O_NOFOLLOW.
13454 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13455 path when flags contains O_NOFOLLOW.
13456 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13457 if flags contains O_DIRECTORY and the result is a directory.
13458 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13459 oneself when the pointer given in D is nul (as set by ext2fs).
13460 * sysdeps/mach/hurd/mlockall.c: New file.
13461 * sysdeps/mach/hurd/munlockall.c: New file.
13462
13463 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13464
13465 * hurd/hurdsig.c: Include <pthread.h>.
13466 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13467 get the signal thread stack layout.
13468 * hurd/Makefile (headers): Remove threadvar.h.
13469 (inline-headers): Remove threadvar.h.
13470 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13471 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13472 __hurd_threadvar_max, __hurd_errno_location.
13473 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13474 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13475 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13476 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13477 unless TLS is not initialized yet, in which case we do not need a
13478 critical section yet anyway.
13479 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13480 <machine-sp.h>.
13481 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13482 declarations.
13483 (__hurd_threadvar_index): Remove enum.
13484 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13485 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13486 inlines.
13487 (__hurd_reply_port0): New variable declaration.
13488 (__hurd_local_reply_port): New macro.
13489 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13490 (interrupted_reply_port_location): Add thread_t parameter. Use it
13491 with THREAD_TCB to access thread-local variables.
13492 (_hurdsig_abort_rpcs): Pass ss->thread to
13493 interrupted_reply_port_location.
13494 (_hurd_internal_post_signal): Likewise.
13495 (_hurdsig_init): Use presence of cthread_fork instead of
13496 __hurd_threadvar_stack_mask to start signal thread by hand.
13497 Remove signal thread threadvar initialization.
13498 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13499 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13500 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13501 of threadvar.
13502 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13503 __libc_lock_self0.
13504 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13505 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13506 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13507 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13508 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13509 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13510 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13511 define variables.
13512 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13513 <hurd/threadvar.h>.
13514 [IS_IN(rtld)] (rtld_errno): New variable.
13515 [IS_IN(rtld)] (__errno_location): New weak function.
13516 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13517 * sysdeps/mach/hurd/errno.c: Remove file.
13518 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13519 (__fork): Remove THREADVAR_SPACE macro and its use.
13520 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13521 variable.
13522 (init): Do not initialize threadvar.
13523 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13524 symbol.
13525 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13526 __hurd_local_reply_port instead of threadvar.
13527 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13528 _hurd_sigstate fields.
13529 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13530 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13531 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13532 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13533 instead of threadvar.
13534 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13535 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13536 (use_threadvar, global_reply_port): Remove variables.
13537 (__hurd_reply_port0): New variable.
13538 (__mig_get_reply_port): Use __hurd_local_reply_port and
13539 __hurd_reply_port0 instead of threadvar.
13540 (__mig_dealloc_reply_port): Likewise.
13541 (__mig_init): Do not initialize threadvar.
13542 * sysdeps/mach/hurd/profil.c: Fix comment.
13543 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13544 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13545 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13546 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13547 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13548 __cthread_setspecific.
13549 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13550 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13551 __cthread_t instead of cthread_fork, cthread_detach,
13552 pthread_getattr_np, pthread_attr_getstack.
13553 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13554 __cthread_keycreate.
13555 (cthread_getspecific): Rename to __cthread_getspecific.
13556 (cthread_setspecific): Rename to __cthread_setspecific.
13557 (__libc_getspecific): Use __cthread_getspecific instead of
13558 cthread_getspecific.
13559 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13560 __cthread_keycreate instead of cthread_keycreate.
13561 (__libc_setspecific): Use __cthread_setspecific instead of
13562 cthread_setspecific.
13563 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13564 Likewise.
13565 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13566 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13567 testing whether it is defined.
13568
13569 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13570
13571 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13572 Define macro.
13573 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13574 * sysdeps/mach/i386/thread_state.h
13575 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13576 i386_THREAD_STATE.
13577 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13578 i386_THREAD_STATE.
13579 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13580
13581 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13582 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13583
13584 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13585 macros.
13586 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13587 descriptor instead of creating a new one.
13588 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13589
13590 * mach/setup-thread.c: Include <ldsodefs.h>.
13591 (__mach_setup_thread): Call _dl_allocate_tls, pass
13592 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13593 MACHINE_THREAD_STATE_FLAVOR, before getting
13594 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13595 MACHINE_THREAD_STATE_FLAVOR with the result.
13596 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13597 MACHINE_THREAD_STATE_FIX_NEW.
13598 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13599 too. Add original thread parameter.
13600
13601 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13602
13603 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13604 Remove inline function.
13605
13606 * sysdeps/i386/fpu/libm-test-ulps: Update.
13607 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13608
13609 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13610
13611 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13612 commit.
13613
13614 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13615
13616 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13617 (__sincos_code): Remove define and undefine.
13618 [__FAST_MATH__] (__sincos): Remove inline function.
13619 [__FAST_MATH__] (__sincosf): Remove inline function.
13620 [__FAST_MATH__] (__sincosl): Remove inline function.
13621 (__atan2l): Remove inline functions.
13622 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13623 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13624 function.
13625 (floor): Remove inline function.
13626 (ceil): Likewise.
13627 [__FAST_MATH__] (__ldexp_code): Remove macro.
13628 [__FAST_MATH__] (ldexp): Remove inline function.
13629 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13630 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13631 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13632 [__USE_ISOC99] (__lrint_code): Remove macro.
13633 [__USE_ISOC99] (__llrint_code): Likewise.
13634 [__USE_ISOC99] (lrintf): Remove inline function.
13635 [__USE_ISOC99] (lrint): Likewise.
13636 [__USE_ISOC99] (lrintl): Likewise.
13637 [__USE_ISOC99] (llrint): Likewise.
13638 [__USE_ISOC99] (llrintf): Likewise.
13639 [__USE_ISOC99] (llrintl): Likewise.
13640
13641 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13642
13643 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13644 (__ieee754_sqrtf): Remove.
13645 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13646 (__ieee754_sqrtf): Remove.
13647 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13648 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13649 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13650 (__ieee754_sqrtf): Remove.
13651 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13652 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13653 (sqrtf): Remove.
13654 (sqrtl): Remove.
13655 (__ieee754_sqrt): Remove.
13656 (__ieee754_sqrtf): Remove.
13657 (__ieee754_sqrtl): Remove.
13658 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13659 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13660 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13661 (__ieee754_sqrtf): Remove.
13662 (__ieee754_sqrtl): Remove.
13663
13664 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13665
13666 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13667 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13668 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13669 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13670 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13671 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13672 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13673 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13674 Likewise.
13675 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13676 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13677 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13678 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13679 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13680 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13681 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13682 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13683 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13684 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13685 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13686 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13687 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13688 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13689 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13690 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13691 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13692 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13693 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13694 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13695 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13696 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13697 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13698 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13699 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13700 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13701 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13702 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13703 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13704 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13705 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13706 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13707 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13708 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13709 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13710 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13711 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13712 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13713 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13714 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13715
13716 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13717
13718 * include/math.h (sqrt): Declare with asm redirect.
13719 (sqrtf): Likewise.
13720 (sqrtl): Likewise.
13721 (sqrtf128): Likewise.
13722 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13723 nonlib and libnldbl with -fmath-errno.
13724 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13725 * math/w_sqrt_template.c: Likewise.
13726 * math/w_sqrtf_compat.c: Likewise.
13727 * math/w_sqrtl_compat.c: Likewise.
13728 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13729 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13730 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13731 complex.h.
13732
13733 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13734
13735 * benchtests/Makefile: Define _ISOMAC.
13736 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13737 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13738 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13739 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13740 * benchtests/bench-timing.h: Define attribute_hidden.
13741
13742 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13743
13744 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13745 mov + lsr.
13746
13747 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13748
13749 [BZ #22963]
13750 * localedata/locales/cs_CZ (mon): Rename to...
13751 (alt_mon): This.
13752 (mon): Import from CLDR (genitive case).
13753
13754 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13755
13756 [BZ #22937]
13757 * localedata/locales/el_CY (abmon): Rename to...
13758 (ab_alt_mon): This.
13759 (abmon): Import from CLDR (abbreviated genitive case).
13760 * localedata/locales/el_GR (abmon): Rename to...
13761 (ab_alt_mon): This.
13762 (abmon): Import from CLDR (abbreviated genitive case).
13763
13764 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13765
13766 [BZ #22932]
13767 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13768
13769 2018-03-15 Robert Buj <robert.buj@gmail.com>
13770
13771 [BZ #22848]
13772 * localedata/locales/ca_ES (abmon): Rename to...
13773 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13774 (mon): Rename to...
13775 (alt_mon): This.
13776 (abmon): Import from CLDR (genitive case, month names preceded by
13777 "de" or "d’").
13778 (mon): Likewise.
13779 (abday): Synchronize with CLDR.
13780 (d_t_fmt): Likewise.
13781 (d_fmt): Likewise.
13782 (am_pm): Likewise.
13783
13784 (LC_TIME): Improve indentation.
13785 (LC_TELEPHONE): Likewise.
13786 (LC_NAME): Likewise.
13787 (LC_ADDRESS): Likewise.
13788
13789 2018-03-14 Joseph Myers <joseph@codesourcery.com>
13790
13791 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
13792 (lrintf): Remove definitions used only with old GCC.
13793 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
13794 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
13795 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
13796 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
13797 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
13798 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
13799 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
13800 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
13801 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
13802 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
13803 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
13804 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
13805 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
13806 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
13807 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
13808 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
13809 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
13810 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
13811 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
13812 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
13813 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
13814 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
13815 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
13816 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
13817 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
13818 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
13819 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
13820 [__FAST_MATH__] (__M_SQRT2): Remove macro.
13821
13822 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
13823
13824 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
13825 instruction to unbreak builds with binutils 2.26 and older.
13826
13827 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
13828
13829 * sysdeps/aarch64/strncmp.S (count): New macro.
13830 (strncmp): Store misaligned length in SRC1 in COUNT.
13831 (mutual_align): Adjust.
13832 (misaligned8): Load dword at a time when it is safe.
13833
13834 2018-03-12 Zack Weinberg <zackw@panix.com>
13835
13836 [BZ #1190]
13837 [BZ #19476]
13838 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
13839 if the _IO_EOF_SEEN bit is already set; update commentary.
13840 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
13841 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
13842
13843 * support/support_openpty.c, support/tty.h: New files.
13844 * support/Makefile (libsupport-routines): Add support_openpty.
13845
13846 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
13847 New test cases.
13848 * libio/Makefile (tests): Add tst-fgetc-after-eof.
13849 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
13850
13851 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
13852
13853 * po/pt_BR.po: Update translations.
13854
13855 2018-03-12 David Michael <fedora.dm0@gmail.com>
13856
13857 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
13858 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
13859 get a port to the startup server.
13860
13861 2018-03-11 Zack Weinberg <zackw@panix.com>
13862
13863 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
13864 before nldbl-compat.h.
13865
13866 2018-03-10 Zack Weinberg <zackw@panix.com>
13867
13868 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
13869 math.h or math_private.h.
13870
13871 * sysdeps/alpha/fpu/s_isnan.c
13872 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
13873 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
13874 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
13875 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
13876 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
13877 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
13878 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
13879 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
13880 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
13881 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
13882 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
13883 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
13884 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
13885 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
13886 Include math_private.h.
13887
13888 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
13889 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
13890 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
13891 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
13892 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
13893 * sysdeps/powerpc/power7/fpu/s_logb.c:
13894 Include math.h and math_private.h.
13895
13896 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
13897 uses of $at in .set noat / .set at.
13898
13899 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
13900
13901 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
13902 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
13903 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
13904 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
13905 Likewise.
13906
13907 2018-03-09 Florian Weimer <fweimer@redhat.com>
13908
13909 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
13910 in comment.
13911
13912 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
13913
13914 [BZ #22919]
13915 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
13916 Add nop before __startcontext, add explaining comments.
13917
13918 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13919
13920 [BZ #22926]
13921 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
13922 empty for __SPE__.
13923 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
13924 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
13925 Do not build hardware transactional code for __SPE__.
13926 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
13927 (__lll_trylock_elision): Likewise.
13928 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
13929 (__lll_unlock_elision): Likewise.
13930
13931 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
13932 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
13933 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
13934 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
13935 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
13936 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
13937 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
13938 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
13939 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
13940 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
13941 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
13942 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
13943 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
13944 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
13945 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
13946 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
13947 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
13948 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
13949 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
13950 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
13951 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
13952 * sysdeps/unix/sysv/linux/arm/kernel-features.h
13953 (__ASSUME_CLONE_BACKWARDS): Define.
13954 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
13955 __clone2 if __NR_clone2 is defined.
13956 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13957 (__ASSUME_CLONE_BACKWARDS): Likewise.
13958 * sysdeps/unix/sysv/linux/i386/kernel-features.h
13959 (__ASSUME_CLONE_BACKWARDS): Likewise.
13960 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
13961 (__ASSUME_CLONE2): Likewise.
13962 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13963 (__ASSUME_CLONE_BACKWARDS3): Likewise.
13964 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
13965 variants and the define architecture can use.
13966 (__ASSUME_CLONE_DEFAULT): Define as default.
13967 * sysdeps/unix/sysv/linux/mips/kernel-features.h
13968 (__ASSUME_CLONE_BACKWARDS): Likewise.
13969 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13970 (__ASSUME_CLONE_BACKWARDS): Likewise.
13971 * sysdeps/unix/sysv/linux/s390/kernel-features.h
13972 (__ASSUME_CLONE_BACKWARDS2): Likewise.
13973
13974 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
13975
13976 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
13977
13978 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
13979 time.
13980
13981 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
13982 (do_test_limit): Likewise.
13983
13984 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
13985 for every implementation.
13986 (do_test): Likewise.
13987
13988 * benchtests/bench-strncmp.c: Convert output to json.
13989
13990 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
13991
13992 * io/futimens.c: Add missing start-of-file descriptive comment.
13993 * io/utime.c: Likewise.
13994 * misc/futimesat.c: Likewise.
13995 * misc/utimes.c: Likewise.
13996 * sysdeps/mach/hurd/futimesat.c: Likewise.
13997 * sysdeps/mach/hurd/utimes.c: Likewise.
13998 * sysdeps/posix/utime.c: Likewise.
13999 * sysdeps/posix/utimes.c: Likewise.
14000 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14001 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14002 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14003 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14004
14005 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14006
14007 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14008 hurd_futimes.
14009 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14010 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14011 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14012 (__futimens): Move implementation to...
14013 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14014 utime_tvalue_from_tspec): ... new helper functions.
14015 (hurd_futimens): New function.
14016 * sysdeps/mach/hurd/futimesat.c: New file.
14017 * sysdeps/mach/hurd/utimensat.c: New file.
14018
14019 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14020
14021 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14022 UTIME_OMIT): New macros.
14023 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14024 before reverting to converting time spec to time value and calling
14025 __file_utimes.
14026 * sysdeps/mach/hurd/utime-helper.c: New file.
14027 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14028 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14029 reverting to utime_tvalue_from_tval and __file_utimes.
14030 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14031 (__lutimes): Just call hurd_futimens after lookup.
14032 * sysdeps/mach/hurd/utimes.c: Likewise.
14033
14034 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14035
14036 * bits/sigaction.h: Add include guard.
14037 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14038 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14039 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14040 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14041 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14042 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14043 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14044 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14045 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14046
14047 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14048
14049 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14050 -Wmaybe-uninitialized for -Os.
14051 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14052 this disabling.
14053
14054 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14055
14056 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14057 __INO_T_MATCHES_INO64_T is defined.
14058 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14059 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14060 of definition.
14061 * dirent/alphasort64.c: Likewise.
14062 * dirent/scandir.c: Likewise.
14063 * dirent/scandir64-tail.c: Likewise.
14064 * dirent/scandir64.c: Likewise.
14065 * dirent/scandirat.c: Likewise.
14066 * dirent/scandirat64.c: Likewise.
14067 * dirent/versionsort.c: Likewise.
14068 * dirent/versionsort64.c: Likewise.
14069 * include/dirent.h: Likewise.
14070
14071 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14072 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14073 for socketpair endpoint.
14074 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14075 WRITE_BUFFER_SIZE as buffer size for sending socket.
14076 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14077 issue on system where send is implemented with sendto syscall.
14078 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14079 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14080 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14081 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14082
14083 [BZ #21269]
14084 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14085 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14086 sa_restorer for vDSO case.
14087 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14088
14089 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14090
14091 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14092 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14093 * hurd/hurd/ioctl.h: Include <mach/port.h>
14094 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14095 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14096 <mach/mach_types.h> and <mach/message.h>.
14097 (headers): Move mach/param.h to bits/mach/param.h.
14098 * sysdeps/mach/i386/mach/param.h: Move file to ...
14099 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14100 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14101 of <mach/param.h>.
14102 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14103 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14104 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14105 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14106 trivial, for C++ conformity.
14107 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14108 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14109 Process mig output through $(migheadersed).
14110 * hurd/Makefile (migheadersed): Define variable.
14111 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14112 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14113 headers.
14114 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14115 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14116 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14117 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14118 <bits/types/sigset_t.h>.
14119 [!defined __USE_GNU]: Do not #error out.
14120 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14121 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14122 Include <stddef.h> and <bits/types/sigset_t.h>
14123 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14124 instead of sighandler_t.
14125 * stdlib/errno.h (error_t): Move definition to...
14126 * bits/types/error_t.h: ... new header.
14127 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14128 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14129 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14130 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14131 * hurd/hurd.h: Include <bits/types/error_t.h>
14132 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14133 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14134 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14135 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14136 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14137 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14138 * sysdeps/mach/hurd/futimens.c: New file.
14139
14140 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14141
14142 [BZ #22918]
14143 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14144 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14145 * nscd/gai.c (__nss_hosts_database): Readd definition.
14146 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14147 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14148 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14149
14150 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14151
14152 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14153 (ifunc_one): Likewise.
14154
14155 2018-03-01 DJ Delorie <dj@delorie.com>
14156
14157 [BZ #22342]
14158 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14159 key value.
14160
14161 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14162
14163 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14164 `match_pid' parameter.
14165 (td_ta_thr_iter): Update accordingly.
14166
14167 2018-03-01 Florian Weimer <fweimer@redhat.com>
14168
14169 * nptl/Makefile (install-lib-ldscripts): Remove.
14170 (install): Remove rule.
14171 ($(inst_libdir)/libpthread.so): Likewise.
14172
14173 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14174
14175 [BZ #22896]
14176 * localedata/locales/an_ES: update month and day names,
14177 improve d_fmt, improve postal_fmt, add country_post,
14178 add country_isbn
14179
14180 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14181
14182 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14183 Ukrainian instead of Bulgarian.
14184
14185 2018-03-01 Florian Weimer <fweimer@redhat.com>
14186
14187 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14188 reference.
14189
14190 2018-03-01 Florian Weimer <fweimer@redhat.com>
14191
14192 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14193 * nptl/Makefile (routines): Add pthread_atfork.
14194 (static-only-routines): Set to pthread_atfork.
14195 (libpthread-routines): Remove pthread_atfork.
14196 (libpthread-static-only-routines): Remove.
14197 (install): Update comment.
14198 (libpthread.so): Do not install libpthread_nonshared.a.
14199 (tests): Do not link with libpthread_nonshared.a.
14200 (generated): Remove libpthread_nonshared.a.
14201 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14202 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14203 with libpthread_nonshared.a.
14204
14205 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14206
14207 [BZ #22902]
14208 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14209 (libc_feholdexcept_setroundf128): New macro.
14210 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14211
14212 [BZ #15105]
14213 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14214 libc_hidden_def.
14215 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14216 * include/inttypes.h: New file.
14217
14218 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14219
14220 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14221 -Os in two more places.
14222
14223 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14224
14225 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14226 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14227 be sorted correctly at the moment because of a bug.
14228
14229 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14230
14231 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14232 treat ñ as a primary different character, sync the collation
14233 for Spanish with CLDR.
14234 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14235 * localedata/Makefile: Add new test files.
14236 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14237 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14238 collation order.
14239 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14240 * localedata/am_ET.UTF-8.in: New test file.
14241 * localedata/az_AZ.UTF-8.in: Likewise.
14242 * localedata/be_BY.UTF-8.in: Likewise.
14243 * localedata/ber_DZ.UTF-8.in: Likewise.
14244 * localedata/ber_MA.UTF-8.in: Likewise.
14245 * localedata/bg_BG.UTF-8.in: Likewise.
14246 * localedata/br_FR.UTF-8.in: Likewise.
14247 * localedata/cmn_TW.UTF-8.in: Likewise.
14248 * localedata/crh_UA.UTF-8.in: Likewise.
14249 * localedata/csb_PL.UTF-8.in: Likewise.
14250 * localedata/cv_RU.UTF-8.in: Likewise.
14251 * localedata/cy_GB.UTF-8.in: Likewise.
14252 * localedata/dz_BT.UTF-8.in: Likewise.
14253 * localedata/eo.UTF-8.in: Likewise.
14254 * localedata/es_ES.UTF-8.in: Likewise.
14255 * localedata/fa_IR.UTF-8.in: Likewise.
14256 * localedata/fi_FI.UTF-8.in: Likewise.
14257 * localedata/fil_PH.UTF-8.in: Likewise.
14258 * localedata/fur_IT.UTF-8.in: Likewise.
14259 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14260 * localedata/ha_NG.UTF-8.in: Likewise.
14261 * localedata/ig_NG.UTF-8.in: Likewise.
14262 * localedata/ik_CA.UTF-8.in: Likewise.
14263 * localedata/kk_KZ.UTF-8.in: Likewise.
14264 * localedata/ku_TR.UTF-8.in: Likewise.
14265 * localedata/ky_KG.UTF-8.in: Likewise.
14266 * localedata/ln_CD.UTF-8.in: Likewise.
14267 * localedata/mi_NZ.UTF-8.in: Likewise.
14268 * localedata/ml_IN.UTF-8.in: Likewise.
14269 * localedata/mn_MN.UTF-8.in: Likewise.
14270 * localedata/mr_IN.UTF-8.in: Likewise.
14271 * localedata/mt_MT.UTF-8.in: Likewise.
14272 * localedata/nb_NO.UTF-8.in: Likewise.
14273 * localedata/om_KE.UTF-8.in: Likewise.
14274 * localedata/os_RU.UTF-8.in: Likewise.
14275 * localedata/ps_AF.UTF-8.in: Likewise.
14276 * localedata/ro_RO.UTF-8.in: Likewise.
14277 * localedata/ru_RU.UTF-8.in: Likewise.
14278 * localedata/sc_IT.UTF-8.in: Likewise.
14279 * localedata/se_NO.UTF-8.in: Likewise.
14280 * localedata/sq_AL.UTF-8.in: Likewise.
14281 * localedata/sv_SE.UTF-8.in: Likewise.
14282 * localedata/szl_PL.UTF-8.in: Likewise.
14283 * localedata/tg_TJ.UTF-8.in: Likewise.
14284 * localedata/tk_TM.UTF-8.in: Likewise.
14285 * localedata/tt_RU.UTF-8.in: Likewise.
14286 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14287 * localedata/ug_CN.UTF-8.in: Likewise.
14288 * localedata/uz_UZ.UTF-8.in: Likewise.
14289 * localedata/vi_VN.UTF-8.in: Likewise.
14290 * localedata/yi_US.UTF-8.in: Likewise.
14291 * localedata/yo_NG.UTF-8.in: Likewise.
14292 * localedata/zh_CN.UTF-8.in: Likewise.
14293 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14294 file and fix bugs in the collation.
14295 * localedata/locales/az_AZ: Likewise.
14296 * localedata/locales/be_BY: Likewise.
14297 * localedata/locales/ber_DZ: Likewise.
14298 * localedata/locales/ber_MA: Likewise.
14299 * localedata/locales/bg_BG: Likewise.
14300 * localedata/locales/br_FR: Likewise.
14301 * localedata/locales/br_FR@euro: Likewise.
14302 * localedata/locales/ca_ES: Likewise.
14303 * localedata/locales/cns11643_stroke: Likewise.
14304 * localedata/locales/crh_UA: Likewise.
14305 * localedata/locales/cs_CZ: Likewise.
14306 * localedata/locales/csb_PL: Likewise.
14307 * localedata/locales/cv_RU: Likewise.
14308 * localedata/locales/cy_GB: Likewise.
14309 * localedata/locales/da_DK: Likewise.
14310 * localedata/locales/dz_BT: Likewise.
14311 * localedata/locales/en_CA: Likewise.
14312 * localedata/locales/eo: Likewise.
14313 * localedata/locales/es_CU: Likewise.
14314 * localedata/locales/es_EC: Likewise.
14315 * localedata/locales/es_ES: Likewise.
14316 * localedata/locales/es_US: Likewise.
14317 * localedata/locales/et_EE: Likewise.
14318 * localedata/locales/fa_IR: Likewise.
14319 * localedata/locales/fi_FI: Likewise.
14320 * localedata/locales/fil_PH: Likewise.
14321 * localedata/locales/fur_IT: Likewise.
14322 * localedata/locales/gez_ER@abegede: Likewise.
14323 * localedata/locales/ha_NG: Likewise.
14324 * localedata/locales/hr_HR: Likewise.
14325 * localedata/locales/hsb_DE: Likewise.
14326 * localedata/locales/hu_HU: Likewise.
14327 * localedata/locales/ig_NG: Likewise.
14328 * localedata/locales/ik_CA: Likewise.
14329 * localedata/locales/is_IS: Likewise.
14330 * localedata/locales/iso14651_t1_pinyin: Likewise.
14331 * localedata/locales/kk_KZ: Likewise.
14332 * localedata/locales/ku_TR: Likewise.
14333 * localedata/locales/ky_KG: Likewise.
14334 * localedata/locales/ln_CD: Likewise.
14335 * localedata/locales/lt_LT: Likewise.
14336 * localedata/locales/lv_LV: Likewise.
14337 * localedata/locales/mi_NZ: Likewise.
14338 * localedata/locales/ml_IN: Likewise.
14339 * localedata/locales/mn_MN: Likewise.
14340 * localedata/locales/mr_IN: Likewise.
14341 * localedata/locales/mt_MT: Likewise.
14342 * localedata/locales/nb_NO: Likewise.
14343 * localedata/locales/om_KE: Likewise.
14344 * localedata/locales/os_RU: Likewise.
14345 * localedata/locales/pl_PL: Likewise.
14346 * localedata/locales/ps_AF: Likewise.
14347 * localedata/locales/ro_RO: Likewise.
14348 * localedata/locales/ru_RU: Likewise.
14349 * localedata/locales/ru_UA: Likewise.
14350 * localedata/locales/sc_IT: Likewise.
14351 * localedata/locales/se_NO: Likewise.
14352 * localedata/locales/si_LK: Likewise.
14353 * localedata/locales/sq_AL: Likewise.
14354 * localedata/locales/sv_FI: Likewise.
14355 * localedata/locales/sv_FI@euro: Likewise.
14356 * localedata/locales/sv_SE: Likewise.
14357 * localedata/locales/szl_PL: Likewise.
14358 * localedata/locales/tg_TJ: Likewise.
14359 * localedata/locales/ti_ER: Likewise.
14360 * localedata/locales/tk_TM: Likewise.
14361 * localedata/locales/tl_PH: Likewise.
14362 * localedata/locales/tr_TR: Likewise.
14363 * localedata/locales/tt_RU: Likewise.
14364 * localedata/locales/tt_RU@iqtelif: Likewise.
14365 * localedata/locales/ug_CN: Likewise.
14366 * localedata/locales/uk_UA: Likewise.
14367 * localedata/locales/uz_UZ: Likewise.
14368 * localedata/locales/uz_UZ@cyrillic: Likewise.
14369 * localedata/locales/vi_VN: Likewise.
14370 * localedata/locales/yi_US: Likewise.
14371 * localedata/locales/yo_NG: Likewise.
14372
14373 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14374
14375 * gen-locales.mk: Make test files which contain @ modifiers in their
14376 name work.
14377 * localedata/gen-locale.sh: Likewise.
14378
14379 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14380
14381 * posix/tst-fnmatch.input: Fix results for range expressions
14382 for non C locales.
14383 * posix/tst-regexloc.c: Do not use a range expression for
14384 de_DE.ISO-8859-1 locale.
14385
14386 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14387
14388 * posix/bug-regex5.c: Fix test case because with the new
14389 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14390 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14391 file.
14392
14393 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14394
14395 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14396 downloaded from ISO, the collation order of @-. and space has changed.
14397 Therefore, this test file needed to be adapted.
14398 * localedata/fr_CA.UTF-8.in: Likewise.
14399 * localedata/fr_FR.UTF-8.in: Likewise.
14400 * localedata/uk_UA.UTF-8.in: Likewise.
14401
14402 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14403
14404 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14405 order of ȥ in the new iso14651_t1_common file.
14406 * localedata/pl_PL.UTF-8.in: Likewise.
14407
14408 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14409
14410 * localedata/locales/iso14651_t1_common: Add sections for various
14411 scripts to the iso14651_t1_common file.
14412
14413 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14414
14415 * localedata/locales/iso14651_t1_common: Use the code point of a
14416 character in the fourth collation level instead of IGNORE for all
14417 entries which have IGNORE on all 4 levels.
14418
14419 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14420
14421 * localedata/locales/iso14651_t1_common: Add some convenient collation
14422 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14423 rules similar to those in CLDR.
14424
14425 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14426
14427 * localedata/locales/iso14651_t1_common: The new version of this
14428 file downloaded from ISO contained several syntax errors which
14429 are fixed by this patch.
14430
14431 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14432
14433 * localedata/locales/iso14651_t1_common: replace all <U.....>
14434 with <U000.....> because glibc understands only 4 digit or 8 digit
14435
14436 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14437
14438 * localedata/locales/iso14651_t1_common: Necessary changes
14439 to make the file downloaded from ISO usable by glibc.
14440
14441 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14442
14443 [BZ #14095]
14444 * localedata/locales/iso14651_t1_common: Update file to
14445 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14446
14447 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14448
14449 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14450 of <nptl/pthreadP.h>
14451 (thread_attr_compare): Move function to...
14452 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14453 * sysdeps/nptl/timer_routines.h: ... new header.
14454 * sysdeps/mach/hurd/gai_misc.h: New file.
14455
14456 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14457
14458 * string/strcoll_l.c: Include <libc-diag.h>.
14459 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14460 declarations of seq1 and seq2.
14461
14462 [BZ #15105]
14463 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14464 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14465
14466 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14467
14468 [BZ #22433]
14469 [BZ #22807]
14470 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14471 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14472 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14473 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14474 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14475 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14476
14477 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14478
14479 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14480 macros used in __ptrace_request.
14481
14482 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14483
14484 [BZ #22792]
14485 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14486 to $(CC).
14487 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14488 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14489 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14490 <tcb-offsets.h>.
14491
14492 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14493
14494 [BZ #15105]
14495 * ctype/ctype.c (tolower): Use libc_hidden_def.
14496 (toupper): Likewise.
14497 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14498 [!_ISOMAC] (toupper): Likewise.
14499
14500 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14501
14502 * localedata/Makefile: Remove --quiet argument when
14503 installing locales
14504
14505 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14506
14507 [BZ #17438]
14508 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14509 in d_fmt.
14510 * localedata/locales/pt_PT (LC_TIME): likewise
14511
14512 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14513
14514 [BZ #22646]
14515 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14516 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14517 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14518
14519 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14520
14521 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14522
14523 * nptl/Makefile (routines): Remove unregister-atfork.
14524 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14525 (fork_handler_alloc): Remove function.
14526 (fork_handlers, fork_handler_init): New variables.
14527 (__fork_lock): Rename to atfork_lock.
14528 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14529 to use a dynamic array to add/remove atfork handlers.
14530 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14531 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14532 Remove declaration.
14533 (fork_handler): Remove next, refcntr, and need_signal member.
14534 (__run_fork_handler_type): New enum.
14535 (__run_fork_handlers): New prototype.
14536 * nptl/register-atfork.c: Remove file.
14537 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14538
14539 * sysdeps/nptl/nptl-signals.h: Move to ...
14540 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14541 comments.
14542 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14543 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14544 unnecessary check for SIGTIMER.
14545 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14546 remove unnecessary removal of SIGTIMER.
14547 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14548 include-signals.h rename.
14549 * nptl/pthreadP.h: Likewise.
14550 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14551 __is_internal_signal instead of __nptl_is_internal_signal.
14552
14553 2018-02-22 Andrew Waterman <andrew@sifive.com>
14554
14555 [BZ # 22884]
14556 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14557 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14558 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14559 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14560
14561 2018-02-22 DJ Delorie <dj@delorie.com>
14562
14563 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14564
14565 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14566
14567 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14568 do_misaligned, not misaligned8.
14569
14570 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14571
14572 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14573 Add memcpy_thunderx2.
14574 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14575 Increment to 4.
14576 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14577 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14578 and IS_THUNDERX2PA checks.
14579 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14580 Use macro to set name appropriately.
14581 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14582 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14583 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14584 New macro.
14585 (IS_THUNDERX2): New macro.
14586
14587 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14588
14589 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14590
14591 2018-02-21 Zack Weinberg <zackw@panix.com>
14592
14593 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14594 Define here, unconditionally.
14595 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14596 * libio/libioP.h: Remove #if 0 blocks.
14597 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14598 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14599 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14600
14601 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14602 Assume weak_alias is always defined.
14603
14604 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14605 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14606 Remove #if 0 and #ifdef TODO blocks.
14607 Assume text_set_element is always defined.
14608
14609 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14610 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14611 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14612
14613 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14614 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14615 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14616 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14617 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14618 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14619 Reformat bit flags for _flags field to make occupancy clearer.
14620 Update commentary.
14621 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14622 Keep definitions consistent with those in libio/libio.h.
14623
14624 * libio/libio.h (_IO_file_flags): Remove macro.
14625 All uses changed to _flags.
14626
14627 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14628 (__HAVE_COLUMN, _IO_BE): Don't define.
14629 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14630 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14631 * libio/libioP.h (EOF): Don't define.
14632 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14633 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14634 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14635 testing _IO_UNIFIED_JUMPTABLES.
14636
14637 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14638 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14639 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14640 (_IO_size_t): Delete; all uses changed to size_t.
14641 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14642 (_IO_off_t): Delete; all uses changed to off_t.
14643 (_IO_off64_t): Delete; all uses changed to off64_t.
14644 (_IO_pid_t): Delete; all uses changed to pid_t.
14645 (_IO_uid_t): Delete; all uses changed to uid_t.
14646 (_IO_wint_t): Delete; all uses changed to wint_t.
14647 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14648 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14649 (_IO_cookie_io_functions_t): Delete; all uses changed to
14650 cookie_io_functions_t.
14651 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14652 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14653 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14654 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14655
14656 * libio/iofopncook.c: Remove unnecessary forward declarations.
14657 * libio/iolibio.h: Correct outdated commentary.
14658 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14659 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14660 Remove unnecessary casts.
14661 * stdio-common/getline.c: Use _IO_getdelim directly.
14662 Don't redefine ssize_t.
14663 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14664 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14665 Remove outdated comments.
14666 * stdio-common/vfscanf.c: Don't redefine va_list.
14667
14668 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14669 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14670 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14671 which are always true, and __cplusplus, which is always false.
14672
14673 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14674
14675 [BZ #15105]
14676 [BZ #19463]
14677 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14678 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14679 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14680 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14681 libc_hidden_proto.
14682 [!_ISOMAC] (putc_unlocked): Likewise.
14683 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14684 define inline if [__USE_EXTERN_INLINES].
14685 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14686 putc_unlocked.
14687
14688 [BZ #15105]
14689 [BZ #19463]
14690 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14691 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14692 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14693 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14694 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14695 getc_unlocked.
14696 * time/tzfile.c (__tzfile_read): Likewise.
14697
14698 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14699
14700 [BZ #22517]
14701 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14702
14703 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14704
14705 * io/fcntl.h: Fix a typo in a comment.
14706
14707 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14708
14709 [BZ #22862]
14710 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14711 define _DEFAULT_SOURCE.
14712 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14713
14714 2018-02-21 Florian Weimer <fweimer@redhat.com>
14715
14716 [BZ #20890]
14717 * elf/cache.c (save_cache): Call fsync on temporary file before
14718 renaming it.
14719 (save_aux_cache): Call fdatasync on temporary file before renaming
14720 it.
14721
14722 2018-02-21 Florian Weimer <fweimer@redhat.com>
14723
14724 [BZ #22787]
14725 * include/caller.h: Remove file.
14726 * elf/dl-caller.c: Likewise.
14727 * elf/Makefile (dl-routines): Remove dl-caller.
14728 (shared-only-routines): Do not add dl-caller.
14729 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14730 __check_caller.
14731 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14732 member.
14733 (dl_open_worker): Do not call __check_caller.
14734 (_dl_open): Do not set caller_dl_open member.
14735 * elf/rtld.c (_rtld_global_ro): Do not initialize
14736 _dl_check_caller member.
14737 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14738 _dl_check_caller member.
14739 (_dl_check_caller): Remove declaration.
14740 * sysdeps/unix/sysv/linux/dl-execstack.c
14741 (_dl_make_stack_executable): Do not call __check_caller.
14742
14743 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14744
14745 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14746 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14747
14748 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14749
14750 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14751 description.
14752
14753 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14754
14755 [BZ #16335]
14756 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14757 of 199606L, 200112L, and 200809L.
14758 (_XOPEN_SOURCE): Document special values of 600 and 700.
14759 (_ISOC11_SOURCE): Document macro.
14760 (_ATFILE_SOURCE): Likewise.
14761 (_FORTIFY_SOURCE): Likewise.
14762
14763 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14764
14765 [BZ #15105]
14766 [BZ #19463]
14767 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14768 and define as weak alias of __ferror_unlocked. Use
14769 libc_hidden_weak.
14770 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14771 libc_hidden_proto.
14772 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14773 function if [__USE_EXTERN_INLINES].
14774 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
14775 ferror_unlocked.
14776
14777 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
14778
14779 [BZ #6889]
14780 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
14781
14782 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14783
14784 [BZ #22818]
14785 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
14786 the GLIBC_2.1 version.
14787
14788 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
14789
14790 [BZ #21508]
14791 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
14792 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
14793 intl/tst-gettext-de.po from po/de.po by removing the
14794 POT-Creation-Date line.
14795 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
14796 ../po/de.po.
14797 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
14798 ../po/de.po.
14799
14800 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14801
14802 * mach/Makefile (headers): Add mach/param.h.
14803 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
14804 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
14805 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
14806 (__ptsname_r): Move implementation to...
14807 (__ptsname_internal): ... new function. Add filling the STP
14808 structure.
14809
14810 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
14811
14812 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
14813 idouble to 1 ULP.
14814
14815 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
14816
14817 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
14818 syntax.
14819
14820 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
14821
14822 * nptl/Makefile (tst-mutex8-ENV): Delete.
14823 * nptl/tst-mutex8.c (check_type):
14824 Add runtime check if mutex will be elided.
14825
14826 2018-02-15 Joseph Myers <joseph@codesourcery.com>
14827
14828 [BZ #20980]
14829 [BZ #21234]
14830 * manual/install.texi (Configuring and compiling): Describe
14831 passing CC and CFLAGS on configure command line, not as
14832 environment variables. Use @code markup on those variables.
14833 Specify what options go in CC and what go in CFLAGS. Note the
14834 requirement to compile with optimization.
14835 * INSTALL: Regenerated.
14836
14837 [BZ #18124]
14838 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
14839 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
14840 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
14841 __sigprocmask instead of sigprocmask.
14842 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
14843 Likewise.
14844 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
14845 __sigsetjmp and sigprocmask.
14846
14847 [BZ #15105]
14848 * include/argz.h (argz_next): Use libc_hidden_proto.
14849 (__argz_next): Likewise.
14850 * string-argz-next.c (__argz_next): Use libc_hidden_def.
14851 (argz_next): Use libc_hidden_weak.
14852
14853 [BZ #15105]
14854 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
14855 libc_hidden_proto.
14856 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
14857 libc_hidden_def.
14858
14859 [BZ #15105]
14860 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
14861 libc_hidden_proto.
14862 * libio/iofputs.c (fputs): Use libc_hidden_weak.
14863
14864 [BZ #15105]
14865 [BZ #19463]
14866 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
14867 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
14868 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
14869 (__feof_unlocked): New declaration, and inline function if
14870 [__USE_EXTERN_INLINES].
14871 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
14872 instead of feof_unlocked.
14873 * intl/localealias.c [_LIBC] (FEOF): Likewise.
14874 * nss/nsswitch.c (nss_parse_file): Likewise.
14875 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
14876 Likewise.
14877 * time/getdate.c (__getdate_r): Likewise.
14878 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
14879 Define as macro to call __feof_unlocked.
14880
14881 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14882
14883 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
14884
14885 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
14886
14887 * math/Makefile: Remove mpexp.c and mplog.c
14888 * sysdeps/i386/fpu/mpexp.c: Delete file.
14889 * sysdeps/i386/fpu/mplog.c: Likewise.
14890 * sysdeps/ia64/fpu/mpexp.c: Likewise.
14891 * sysdeps/ia64/fpu/mplog.c: Likewise.
14892 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
14893 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
14894 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
14895 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
14896 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
14897 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
14898 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
14899 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
14900 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
14901 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14902 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
14903 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
14904 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14905 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
14906 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
14907 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14908
14909 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
14910
14911 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14912
14913 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14914
14915 * sysdeps/sh/libm-test-ulps: Update.
14916
14917 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14918
14919 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
14920 idouble to 1 ULP.
14921
14922 2018-02-12 Zack Weinberg <zackw@panix.com>
14923
14924 [BZ #19239]
14925 * posix/sys/types.h: Don't include sys/sysmacros.h.
14926 * misc/sys/sysmacros.h: Remove the conditional deprecation
14927 warnings for the macros defined by this header.
14928
14929 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
14930
14931 * manual/probes.texi: Remove slowexp probes.
14932 * math/Makefile: Remove slowexp.
14933 * sysdeps/generic/math_private.h (__slowexp): Remove.
14934 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
14935 document error bounds.
14936 * sysdeps/i386/fpu/slowexp.c: Remove.
14937 * sysdeps/ia64/fpu/slowexp.c: Remove.
14938 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
14939 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
14940 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
14941 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
14942 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
14943 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
14944 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
14945 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
14946 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
14947 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
14948 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
14949
14950 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
14951
14952 [BZ #13932]
14953 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
14954 * benchtests/pow-inputs: Update comment for slow path cases.
14955 * manual/probes.texi (slowpow_p10): Delete removed probe.
14956 (slowpow_p10): Likewise.
14957 * math/Makefile: Remove halfulp.c and slowpow.c.
14958 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
14959 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
14960 (__halfulp): Remove.
14961 (__slowpow): Remove.
14962 * sysdeps/i386/fpu/halfulp.c: Delete file.
14963 * sysdeps/i386/fpu/slowpow.c: Likewise.
14964 * sysdeps/ia64/fpu/halfulp.c: Likewise.
14965 * sysdeps/ia64/fpu/slowpow.c: Likewise.
14966 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
14967 improve comments and add error analysis.
14968 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
14969 (power1): Remove function:
14970 (log1): Remove error argument, add error analysis.
14971 (my_log2): Remove function.
14972 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
14973 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14974 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
14975 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
14976 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
14977 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
14978 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
14979 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
14980 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
14981 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
14982 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
14983 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14984 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
14985 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14986
14987 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
14988
14989 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
14990 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
14991
14992 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
14993
14994 [BZ #22433]
14995 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
14996 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
14997 and PTRACE_SETHBPREGS.
14998
14999 2018-02-10 Zack Weinberg <zackw@panix.com>
15000
15001 [BZ #22830]
15002 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15003 correctly.
15004 * malloc/tst-malloc-stats-cancellation.c: New test case.
15005 * malloc/Makefile: Add new test case.
15006
15007 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15008
15009 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15010
15011 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15012
15013 * math/Makefile (libm-narrow-fns): Add add.
15014 (libm-test-funcs-narrow): Likewise.
15015 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15016 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15017 * math/gen-auto-libm-tests.c (test_functions): Add add.
15018 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15019 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15020 (NARROW_ADD_TRIVIAL): Likewise.
15021 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15022 macro.
15023 (__daddl): Likewise.
15024 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15025 dadd.
15026 (CFLAGS-nldbl-dadd.c): New variable.
15027 (CFLAGS-nldbl-fadd.c): Likewise.
15028 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15029 __nldbl_daddl.
15030 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15031 prototype.
15032 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15033 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15034 * math/auto-libm-test-in: Add tests of add.
15035 * math/auto-libm-test-out-narrow-add: New generated file.
15036 * math/libm-test-narrow-add.inc: New file.
15037 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15038 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15039 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15040 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15041 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15042 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15043 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15044 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15045 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15046 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15047 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15048 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15049 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15050 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15051 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15052 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15053 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15054 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15055 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15056 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15057 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15058 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15059 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15060 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15061 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15062 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15063 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15064 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15065 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15066 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15067 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15068 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15073 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15074 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15075 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15076 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15077 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15078 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15079 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15080 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15081 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15082 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15083
15084 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15085 (f128-pairs): New variable.
15086 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15087 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15088 to CFLAGS.
15089 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15090 Also make tests add $(f128-loader-link) to gnulib-tests.
15091
15092 2018-02-09 DJ Delorie <dj@redhat.com>
15093
15094 [BZ #22827]
15095 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15096 64-bit ELF type for 64-bit ELF objects.
15097
15098 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15099
15100 * math/libm-test-driver.c (snan_tests_arg): New variable.
15101 * math/libm-test-support.h (snan_tests_arg): New declaration.
15102 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15103
15104 * math/Makefile (test-type-pairs): New variable.
15105 (test-type-pairs-f64xf128-yes): Likewise.
15106 (tests): Add test-narrow-macros.
15107 (libm-test-funcs-narrow): New variable.
15108 (libm-test-c-narrow): Likewise.
15109 (generated): Add $(libm-test-c-narrow).
15110 (libm-tests-base-narrow): New variable.
15111 (libm-tests-narrow): Likewise.
15112 (libm-tests): Add $(libm-tests-narrow).
15113 (libm-tests-for-type): Handle $(libm-tests-narrow).
15114 (libm-test-c-narrow-obj): New variable.
15115 ($(libm-test-c-narrow-obj)): New rule.
15116 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15117 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15118 $(o-iterator) to set dependencies and CFLAGS.
15119 * math/gen-auto-libm-tests.c: Document use for narrowing
15120 functions.
15121 (output_for_one_input_case): Take argument NARROW.
15122 (generate_output): Likewise. Update call to
15123 output_for_one_input_case.
15124 (main): Take --narrow option. Update call to generate_output.
15125 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15126 (apply_lit): Update call to _apply_lit.
15127 (apply_arglit): New function.
15128 (parse_args): Handle "a" arguments.
15129 (parse_auto_input): Handle format names using ":".
15130 * math/README.libm-test: Document "a" parameter type.
15131 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15132 (ARG_TYPE_TRUE_MIN): Likewise.
15133 (ARG_TYPE_MAX): Likwise.
15134 (ARG_MIN_EXP): Likewise.
15135 (ARG_MAX_EXP): Likewise.
15136 (ARG_MANT_DIG): Likewise.
15137 (TEST_COND_arg_ibm128): Likewise.
15138 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15139 (TEST_COND_arg_fmt): New macro.
15140 (init_max_error): Update prototype.
15141 * math/libm-test-support.c (test_ibm128): New variable.
15142 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15143 instead of using [TEST_COND_ibm128] conditional.
15144 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15145 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15146 [TEST_NARROW] (TEST_MSG): New definition.
15147 (arg_plus_zero): New macro.
15148 (arg_minus_zero): Likewise.
15149 (arg_plus_infty): Likewise.
15150 (arg_minus_infty): Likewise.
15151 (arg_qnan_value_pl): Likewise.
15152 (arg_qnan_value): Likewise.
15153 (arg_snan_value_pl): Likewise.
15154 (arg_snan_value): Likewise.
15155 (arg_max_value): Likewise.
15156 (arg_min_value): Likewise.
15157 (arg_min_subnorm_value): Likewise.
15158 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15159 (RUN_TEST_LOOP_aa_f): New macro.
15160 (TEST_SUFF): New macro.
15161 (TEST_SUFF_STR): Likewise.
15162 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15163 (TEST_COND_any_ibm128): New macro.
15164 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15165 this_func. Update call to init_max_error.
15166 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15167 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15168 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15169 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15170 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15171 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15172 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15173 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15174 * math/test-math-vector.h (TEST_NARROW): Likewise.
15175 * math/test-arg-double.h: New file.
15176 * math/test-arg-float128.h: Likewise.
15177 * math/test-arg-float32x.h: Likewise.
15178 * math/test-arg-float64.h: Likewise.
15179 * math/test-arg-float64x.h: Likewise.
15180 * math/test-arg-ldouble.h: Likewise.
15181 * math/test-math-narrow.h: Likewise.
15182 * math/test-narrow-macros.c: Likewise.
15183 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15184 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15185 test-narrow-macros-ldbl-64.
15186 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15187
15188 * math/bits/mathcalls-narrow.h: New file.
15189 * include/bits/mathcalls-narrow.h: Likewise.
15190 * math/math-narrow.h: Likewise.
15191 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15192 (__MATHCALL_NARROW_ARGS_2): Likewise.
15193 (__MATHCALL_NARROW_ARGS_3): Likewise.
15194 (__MATHCALL_NARROW_NORMAL): Likewise.
15195 (__MATHCALL_NARROW_REDIR): Likewise.
15196 (__MATHCALL_NARROW): Likewise.
15197 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15198 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15199 defined.
15200 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15201 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15202 (libm-narrow-fns): New variable.
15203 (libm-narrow-types-basic): Likewise.
15204 (libm-narrow-types-ldouble-yes): Likewise.
15205 (libm-narrow-types-float128-yes): Likewise.
15206 (libm-narrow-types-float128-alias-yes): Likewise.
15207 (libm-narrow-types): Likewise.
15208 (libm-routines): Add narrowing functions.
15209 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15210 (libc_feholdexcept_setroundf128): New macro.
15211 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15212 * sysdeps/ieee754/float128/float128_private.h: Include
15213 <math/math-narrow.h>.
15214 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15215 Undefine and redefine.
15216 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15217 (libm_alias_float_ldouble): Undefine and redefine.
15218 (libm_alias_double_ldouble): Likewise.
15219
15220 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15221
15222 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15223
15224 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15225 FPCR/FPSR.
15226
15227 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15228
15229 * manual/creature.texi: Convert references to gcc.info to gcc.
15230 * manual/stdio.texi: Likewise.
15231 * manual/string.texi: Likewise.
15232
15233 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15234
15235 [BZ #17979]
15236 * posix/bits/types.h (__int_least8_t): New typedef.
15237 (__uint_least8_t): Likewise.
15238 (__int_least16_t): Likewise.
15239 (__uint_least16_t): Likewise.
15240 (__int_least32_t): Likewise.
15241 (__uint_least32_t): Likewise.
15242 (__int_least64_t): Likewise.
15243 (__uint_least64_t): Likewise.
15244 * sysdeps/generic/stdint.h (int_least8_t): Define using
15245 __int_least8_t.
15246 (int_least16_t): Define using __int_least16_t.
15247 (int_least32_t): Define using __int_least32_t.
15248 (int_least64_t): Define using __int_least64_t.
15249 (uint_least8_t): Define using __uint_least8_t.
15250 (uint_least16_t): Define using __uint_least16_t.
15251 (uint_least32_t): Define using __uint_least32_t.
15252 (uint_least64_t): Define using __uint_least64_t.
15253 * wcsmbs/uchar.h: Include <bits/types.h>.
15254 (char16_t): Define using __uint_least16_t conditional only on
15255 [!__USE_ISOCXX11].
15256 (char32_t): Define using __uint_least32_t conditional only on
15257 [!__USE_ISOCXX11].
15258 * wcsmbs/test-char-types.c: New file.
15259 * wcsmbs/Makefile (tests): Add test-char-types.
15260
15261 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15262 version to 4.0.1.
15263
15264 2018-02-07 Zack Weinberg <zackw@panix.com>
15265
15266 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15267 Delete all contents except for definitions of _G_HAVE_MMAP and
15268 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15269 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15270 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15271 change as above.
15272
15273 * libio/libio.h: Don't include bits/_G_config.h here.
15274 Include stddef.h with __need_wchar_t defined. Include
15275 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15276 Define _IO_iconv_t here, directly.
15277 Don't define _IO_HAVE_ST_BLKSIZE.
15278 * libio/libioP.h: Include _G_config.h here. Move include of
15279 shlib-compat.h up with rest of includes. Simplify conditionals
15280 controlling definition of _IO_JUMPS_OFFSET.
15281
15282 * csu/init.c: Remove always-true #if around entire file.
15283 Don't include stdio.h. Set _IO_stdin_used to hardwired
15284 constant 0x20001, and update commentary.
15285 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15286 Replace all uses of _G_va_list with __gnuc_va_list.
15287 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15288 instead of #if _IO_HAVE_ST_BLKSIZE.
15289 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15290 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15291 not #ifdef.
15292
15293 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15294 multiple-include guard to match.
15295 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15296 into this file.
15297 Remove preprocessor conditionals that are always true and/or
15298 redundant to other preprocessor conditionals in the same nest.
15299 Include shlib-compat.h unconditionally.
15300 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15301 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15302 defined after including stdio.h.
15303 Use __BEGIN_DECLS/__END_DECLS.
15304
15305 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15306 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15307 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15308
15309 2018-02-07 Zack Weinberg <zackw@panix.com>
15310
15311 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15312 New single-type headers split from _G_config.h.
15313 * libio/bits/types/cookie_io_functions_t.h
15314 * libio/bits/types/struct_FILE.h
15315 New single-type headers split from libio.h.
15316
15317 * libio/Makefile: Install the above new headers. Don't install
15318 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15319 bits/libio-ldbl.h.
15320 * libio/_G_config.h, libio/libio.h: Delete file.
15321
15322 * libio/bits/libio.h: Remove improper-inclusion guard.
15323 Include stdio.h and don't repeat anything that it does.
15324 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15325 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15326 __io_read_fn as cookie_read_function_t,
15327 __io_write_fn as cookie_write_function_t,
15328 __io_seek_fn as cookie_seek_function_t,
15329 __io_close_fn as cookie_close_function_t,
15330 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15331 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15332 here, in the "compatibility defines" section. Remove an #if 0
15333 block. Use the "body" macros from bits/types/struct_FILE.h to
15334 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15335 and _IO_ferror_unlocked.
15336 Move prototypes of __uflow and __overflow...
15337
15338 * libio/stdio.h: ...here. Don't include bits/libio.h.
15339 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15340 directly from stdarg.h. Include bits/types/__fpos_t.h,
15341 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15342 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15343 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15344 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15345 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15346 __ssize_t, not _IO_ssize_t. Unconditionally define
15347 BUFSIZ as 8192 and EOF as (-1).
15348
15349 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15350 macros from bits/types/struct_FILE.h instead of _IO_* macros
15351 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15352 instead of _IO_ssize_t.
15353 * libio/bits/stdio2.h: Similarly.
15354
15355 * libio/iolibio.h: Add multiple-include guard.
15356 Include bits/libio.h after stdio.h.
15357 * libio/libioP.h: Add multiple-include guard.
15358 Include stdio.h and bits/libio.h before iolibio.h.
15359
15360 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15361 * include/bits/types/cookie_io_functions_t.h
15362 * include/bits/types/struct_FILE.h: New wrappers.
15363
15364 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15365 Get definitions of _G_fpos_t and _G_fpos64_t from
15366 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15367 respectively. Remove improper-inclusion guards.
15368
15369 * conform/data/stdio.h-data: Update expectations of va_list.
15370 * scripts/check-installed-headers.sh: Remove special case for
15371 libio.h and _G_config.h.
15372
15373 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15374
15375 [BZ #15105]
15376 [BZ #19463]
15377 * include/sys/sysmacros.h [!_ISOMAC]
15378 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15379 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15380 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15381 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15382 libc_hidden_proto.
15383 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15384 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15385 Likewise.
15386 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15387 Undefine and redefine to add use __gnu_dev_ prefix.
15388 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15389 Likewise.
15390 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15391 and define as hidden inline function.
15392 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15393 Likewise.
15394 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15395 Likewise.
15396 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15397 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15398 (gnu_dev_minor): Likewise.
15399 (gnu_dev_makedev): Likewise.
15400 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15401 makedev.
15402 * posix/wordexp.c (exec_comm_child): Likewise.
15403 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15404 instead of minor and __gnu_dev_major instead of major.
15405 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15406 __gnu_dev_major instead of major.
15407 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15408 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15409 instead of gnu_dev_minor.
15410 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15411 (SLAVE_P): Likewise.
15412 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15413 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15414 instead of major.
15415
15416 [BZ #21313]
15417 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15418 in another place.
15419 * locale/weightwc.h (findidx): Likewise.
15420
15421 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15422
15423 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15424 (slowlog_inexact): Likewise
15425 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15426 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15427
15428 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15429
15430 [BZ #22797]
15431 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15432 missing second underscore to parameter name.
15433
15434 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15435
15436 [BZ #14508]
15437 [BZ #15512]
15438 [BZ #17082]
15439 [BZ #20530]
15440 * bits/byteswap.h: Update file comment. Do not include
15441 <bits/byteswap-16.h>.
15442 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15443 constant.
15444 (__bswap_16): Define as inline function.
15445 (__bswap_constant_32): Reformat definition.
15446 (__bswap_32): Always define as inline function, not macro, using
15447 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15448 otherwise __bswap_constant_32.
15449 (__bswap_constant_64): Reformat definition. Do not use
15450 __extension__ here.
15451 (__bswap_64): Always define as inline function, not macro. Use
15452 __extension__ on function definition. Use __builtin_bswap64 if
15453 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15454 * string/test-endian-file-scope.c: New file.
15455 * string/test-endian-sign-conversion.c: Likewise.
15456 * string/Makefile (headers): Remove bits/byteswap-16.h.
15457 (tests): Add test-endian-file-scope and
15458 test-endian-sign-conversion.
15459 (CFLAGS-test-endian-sign-conversion.c): New variable.
15460 * bits/byteswap-16.h: Remove file.
15461 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15462 * sysdeps/ia64/bits/byteswap.h: Likewise.
15463 * sysdeps/m68k/bits/byteswap.h: Likewise.
15464 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15465 * sysdeps/s390/bits/byteswap.h: Likewise.
15466 * sysdeps/tile/bits/byteswap.h: Likewise.
15467 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15468 * sysdeps/x86/bits/byteswap.h: Likewise.
15469
15470 [BZ #17721]
15471 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15472 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15473 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15474 199901L] (__restrict): Define to restrict.
15475
15476 [BZ #19667]
15477 * string/testcopy.c: Include <support/support.h>. Do not include
15478 <malloc.h>. Use <support/test-driver.c>.
15479 (main): Rename to do_test. Make static. Use xmalloc instead of
15480 malloc.
15481
15482 [BZ #13575]
15483 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15484 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15485 (SSIZE_MAX): Define to INT_MAX.
15486 * posix/test-ssize-max.c: New file.
15487 * posix/Makefile (tests): Add test-ssize-max.
15488
15489 [BZ #19668]
15490 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15491 <support/support.h>. Do not include <malloc.h>.
15492 (query_auxv): Use xmalloc instead of malloc.
15493
15494 [BZ #14553]
15495 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15496 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15497 instead of loff_t.
15498
15499 2018-02-06 Florian Weimer <fweimer@redhat.com>
15500
15501 [BZ #18023]
15502 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15503 Use scratch_buffer instead of extend_alloca.
15504
15505 2018-02-06 Zack Weinberg <zackw@panix.com>
15506
15507 * libio/stdio.h: Don't define getc or putc as macros.
15508 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15509 not _IO_getc and _IO_putc.
15510
15511 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15512 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15513
15514 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15515
15516 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15517 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15518
15519 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15520
15521 [BZ #14890]
15522 * elf/elf.h (NT_PRFPREG): New macro.
15523 (NT_S390_VXRS_LOW): Likewise.
15524 (NT_S390_VXRS_HIGH): Likewise.
15525 (NT_S390_GS_CB): Likewise.
15526 (NT_S390_GS_BC): Likewise.
15527 (NT_S390_RI_CB): Likewise.
15528
15529 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15530 (MAP_SYNC): New macro.
15531 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15532 Likewise.
15533 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15534 (MAP_SYNC): Likewise.
15535 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15536 (MAP_SYNC): Likewise.
15537 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15538 (MAP_SYNC): Likewise.
15539 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15540 (MAP_SYNC): Likewise.
15541 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15542 (MAP_SYNC): Likewise.
15543 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15544 (MAP_SYNC): Likewise.
15545 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15546 Likewise.
15547 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15548 Likewise.
15549
15550 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15551 (MAP_SHARED_VALIDATE): New macro.
15552 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15553 (MAP_SHARED_VALIDATE): Likewise.
15554
15555 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15556
15557 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15558 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15559 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15560
15561 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15562
15563 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15564 (DT_NUM): Updated to 35.
15565
15566 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15567
15568 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15569 __builtin_expect with __glibc_likely and __glibc_unlikely.
15570 (elf_machine_rela): Likewise.
15571 (elf_machine_lazy_rel): Likewise.
15572
15573 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15574
15575 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15576 __builtin_expect with __glibc_likely and __glibc_unlikely.
15577 (elf_machine_lazy_rel): Likewise.
15578
15579 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15580
15581 [BZ #22638]
15582 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15583 SHARED.
15584 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15585
15586 2018-02-05 Andreas Schwab <schwab@suse.de>
15587
15588 [BZ #22761]
15589 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15590 string.
15591
15592 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15593
15594 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15595 not check against PTHREAD_STACK_MIN.
15596
15597 2018-02-02 Sean McKean <smckean83@gmail.com>
15598
15599 [BZ #22735]
15600 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15601
15602 2018-02-02 Florian Weimer <fweimer@redhat.com>
15603
15604 [BZ #22753]
15605 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15606 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15607 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15608 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15609 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15610 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15611 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15612 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15613 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15614 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15615 * misc/tst-preadvwritev2.c (do_test): Call it.
15616 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15617
15618 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15619
15620 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15621
15622 * benchtests/bench-memcmp.c: Print json instead of plain text.
15623
15624 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15625 every test run.
15626
15627 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15628
15629 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15630 version to 4.15.
15631 (s390_sthyi): New syscall.
15632
15633 * sysdeps/generic/ldbl-classify-compat.h: New file.
15634 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15635 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15636 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15637 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15638 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15639 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15640 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15641 <ldbl-classify-compat.h>.
15642 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15643 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15644 <ldbl-classify-compat.h>.
15645 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15646 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15647 <ldbl-classify-compat.h>.
15648 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15649 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15650 <ldbl-classify-compat.h>.
15651 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15652 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15653 <ldbl-classify-compat.h>.
15654 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15655 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15656 <ldbl-classify-compat.h>.
15657 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15658 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15659 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15660 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15661 * sysdeps/microblaze/math_private.h: Likewise.
15662 * sysdeps/nios2/math_private.h: Likewise.
15663 * sysdeps/sh/math_private.h: Likewise.
15664
15665 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15666 * sysdeps/m68k/coldfire/math_private.h: ... here.
15667 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15668 * sysdeps/tile/math_private.h: Likewise.
15669 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15670 Remove macro.
15671 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15672 Likewise.
15673
15674 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15675 Remove macro.
15676 (libc_fetestexcept): Likewise.
15677 (libc_feupdateenv_test): Likewise.
15678 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15679 (libc_fetestexcept): Likewise.
15680 (libc_feupdateenv_test): Likewise.
15681 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15682 (libc_fetestexcept): Likewise.
15683 (libc_feupdateenv_test): Likewise.
15684 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15685 (libc_fetestexcept): Likewise.
15686 (libc_feupdateenv_test): Likewise.
15687
15688 * sysdeps/generic/math_private.h
15689 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15690 New inline function.
15691 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15692 Likewise.
15693
15694 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15695 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15696 * sysdeps/generic/math_private.h
15697 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15698 inline function.
15699 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15700 Likewise.
15701 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15702 Likewise.
15703 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15704 Likewise.
15705 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15706 Likewise.
15707 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15708 Likewise.
15709 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15710 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15711 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15712 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15713 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15714 (__fegetenv): Likewise.
15715 (fesetenv): Likewise.
15716 (__fesetenv): Likewise.
15717 (feupdateenv): Likewise.
15718 (__feupdateenv): Likewise.
15719 (fegetround): Likewise.
15720 (__fegetround): Likewise.
15721 (fesetround): Likewise.
15722 (__fesetround): Likewise.
15723
15724 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15725 (feraiseexcept): New macro.
15726 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15727 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15728 Remove macro.
15729 (__feraiseexcept): Likewise.
15730 (feclearexcept): Likewise.
15731 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15732 (__feraiseexcept): Likewise.
15733 (feclearexcept): Likewise.
15734 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15735 (__feraiseexcept): Likewise.
15736 (feclearexcept): Likewise.
15737 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15738 (__feraiseexcept): Likewise.
15739 (feclearexcept): Likewise.
15740 (fetestexcept): Likewise.
15741
15742 * sysdeps/m68k/coldfire/math-tests.h: New file.
15743
15744 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15745 * sysdeps/m68k/bits/fenv.h: ... here.
15746 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15747 not define.
15748 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15749 Likewise.
15750 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15751 Likewise.
15752 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15753 Likewise.
15754 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15755 Likewise.
15756 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15757 Define to 0.
15758 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15759 (__FE_UNDEFINED): New enum constant.
15760 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15761 Do not define.
15762 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15763 Likewise.
15764 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15765 Likewise.
15766 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15767 to match generic bits/fenv.h.
15768 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15769 Do not define.
15770
15771 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15772 packed on bits.
15773 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15774 * soft-fp/half.h (union _FP_UNION_H): Likewise.
15775 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
15776 * soft-fp/single.h (union _FP_UNION_S): Likewise.
15777
15778 2018-02-01 Carlos O'Donell <carlos@redhat.com>
15779 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
15780 Joseph Myers <joseph@codesourcery.com>
15781
15782 [BZ #21314]
15783 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
15784 (__log1p): Disable -Wmaybe-uninitialized for -Os around
15785 computation using c.
15786 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
15787 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
15788 computation using c.
15789
15790 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15791
15792 * version.h (RELEASE): Set to "development".
15793 (VERSION): Set to "2.27.9000".
15794 * NEWS (2.28): New section.
15795
15796 * version.h (RELEASE): Set to "stable".
15797 (VERSION): Set to "2.27".
15798 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
15799
15800 * NEWS: Add the list of bugs fixed in 2.27.
15801
15802 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15803
15804 * stdlib/test-atexit-race-common.c (do_test): Check stack size
15805 against PTHREAD_STACK_MIN.
15806
15807 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
15808
15809 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
15810 New entries.
15811 (Rafal Luzynski, Andreas Schwab): Update.
15812
15813 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
15814
15815 [BZ #10871]
15816 * NEWS: List the languages which actually use the alternative
15817 months feature in this release. Also explain that "alt_mon" and
15818 "ab_alt_mon" are optional.
15819
15820 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
15821
15822 [BZ #22765]
15823 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
15824
15825 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
15826
15827 * manual/install.texi (Tools for Compilation): Update the newest
15828 versions of gcc, binutils, texinfo, gawk, bison, and sed.
15829 * INSTALL: Regenerated.
15830
15831 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
15832
15833 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
15834 instead of __builtin_expect.
15835
15836 2018-01-30 Florian Weimer <fweimer@redhat.com>
15837
15838 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
15839 data.
15840 * nss/tst-nss-getpwent.c (do_test): Likewise.
15841
15842 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
15843
15844 [BZ #10871]
15845 * localedata/locales/hr_HR (mon): Rename to...
15846 (alt_mon): This.
15847 (mon): Import from CLDR (genitive case).
15848 (d_t_fmt): Update the comment.
15849
15850 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
15851
15852 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
15853 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
15854 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
15855
15856 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
15857
15858 * mach/Versions: Fix version when __mach_host_self_ was added.
15859 * hurd/Versions: Fix version when _hurd_exec_paths was added.
15860 * sysdeps/mach/hurd/i386/ld.abilist: New file.
15861 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
15862 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
15863 * sysdeps/mach/hurd/i386/libc.abilist: New file.
15864 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
15865 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
15866 * sysdeps/mach/hurd/i386/libm.abilist: New file.
15867 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
15868 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
15869 * sysdeps/mach/hurd/i386/librt.abilist: New file.
15870 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
15871 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
15872 || to respect codestyle.
15873 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
15874 (do_test_bz20181): Rename accordingly.
15875 * malloc/malloc.c: Include <assert.h>.
15876 (assert): Do not define.
15877 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
15878 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
15879 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
15880 * sysdeps/mach/hurd/hp-timing.h: New file.
15881 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
15882
15883 2018-01-29 Darius Rad <darius@bluespec.com>
15884
15885 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
15886
15887 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
15888
15889 * sysdeps/init_array/crti.S (.section .init_array): Add
15890 PREINIT_FUNCTION when defined.
15891 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
15892 * config.h.in: Regenerate.
15893 * manual/platform.texi: Add RISC-V documenation for
15894 __riscv_flush_icache.
15895 * sysdeps/riscv/__longjmp.S: New file.
15896 * sysdeps/riscv/backtrace.c: Likewise.
15897 * sysdeps/riscv/bits/endian.h: Likewise.
15898 * sysdeps/riscv/bits/setjmp.h: Likewise.
15899 * sysdeps/riscv/bits/wordsize.h: Likewise.
15900 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
15901 * sysdeps/riscv/bsd-setjmp.c: Likewise.
15902 * sysdeps/riscv/dl-trampoline.S: Likewise.
15903 * sysdeps/riscv/gccframe.h: Likewise.
15904 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
15905 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
15906 * sysdeps/riscv/machine-gmon.h: Likewise.
15907 * sysdeps/riscv/memusage.h: Likewise.
15908 * sysdeps/riscv/setjmp.S: Likewise.
15909 * sysdeps/riscv/sys/asm.h: Likewise.
15910 * sysdeps/riscv/tls-macros.h: Likewise.
15911 * sysdeps/riscv/dl-tls.h: New file.
15912 * sysdeps/riscv/libc-tls.c: Likewise.
15913 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
15914 * sysdeps/riscv/nptl/tls.h: Likewise.
15915 * sysdeps/riscv/stackinfo.h: Likewise.
15916 * sysdeps/riscv/bits/fenv.h: New file.
15917 * sysdeps/riscv/e_sqrtl.c: Likewise.
15918 * sysdeps/riscv/fpu_control.h: Likewise.
15919 * sysdeps/riscv/math-tests.h: Likewise.
15920 * sysdeps/riscv/nofpu/Implies: Likewise.
15921 * sysdeps/riscv/sfp-machine.h: Likewise.
15922 * sysdeps/riscv/tininess.h: Likewise.
15923 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
15924 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
15925 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
15926 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
15927 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
15928 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
15929 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
15930 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
15931 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
15932 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
15933 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
15934 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
15935 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
15936 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
15937 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
15938 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
15939 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
15940 * sysdeps/riscv/rvd/s_finite.c: Likewise.
15941 * sysdeps/riscv/rvd/s_fma.c: Likewise.
15942 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
15943 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
15944 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
15945 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
15946 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
15947 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
15948 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
15949 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
15950 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
15951 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
15952 * sysdeps/riscv/rvf/fegetround.c: Likewise.
15953 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
15954 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
15955 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
15956 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
15957 * sysdeps/riscv/rvf/fesetround.c: Likewise.
15958 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
15959 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
15960 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
15961 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
15962 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
15963 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
15964 * sysdeps/riscv/rvf/math_private.h: Likewise.
15965 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
15966 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
15967 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
15968 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
15969 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
15970 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
15971 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
15972 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
15973 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
15974 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
15975 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
15976 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
15977 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
15978 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
15979 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
15980 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
15981 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
15982 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
15983 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
15984 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
15985 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
15986 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15987 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
15988 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
15989 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
15990 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
15991 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
15992 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
15993 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
15994 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
15995 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
15996 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
15997 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
15998 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
15999 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16000 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16001 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16002 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16003 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16004 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16005 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16006 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16007 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16008 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16009 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16010 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16011 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16012 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16013 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16014 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16015 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16016 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16017 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16018 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16019 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16020 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16021 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16022 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16023 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16024 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16025 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16026 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16027 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16028 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16029 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16030 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16031 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16032 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16033 * sysdeps/riscv/Implies: New file.
16034 * sysdeps/riscv/Makefile: Likewise.
16035 * sysdeps/riscv/configure: Likewise.
16036 * sysdeps/riscv/configure.ac: Likewise.
16037 * sysdeps/riscv/nptl/Makefile: Likewise.
16038 * sysdeps/riscv/preconfigure: Likewise.
16039 * sysdeps/riscv/rv64/Implies-after: Likewise.
16040 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16041 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16042 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16043 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16044 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16045 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16046 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16047 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16048 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16049 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16050 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16051 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16052 (Config): Likewise.
16053
16054 2018-01-29 Florian Weimer <fweimer@redhat.com>
16055
16056 [BZ #22701]
16057 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16058 libnsl_hidden_proto.
16059 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16060 libnsl_hidden_proto.
16061 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16062 * nis/Makefile (libnsl-routines): Add nss-default only for
16063 build-obsolete-nsl.
16064 * nis/nis_defaults.c (__nis_default_ttl): Add
16065 libnsl_hidden_nolink_def.
16066 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16067 declaration.
16068 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16069 * nis/ypclnt.c (yp_maplist): Likewise.
16070
16071 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16072
16073 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16074 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16075
16076 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16077
16078 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16079 clean -dxfq for git updates when replacing sources.
16080
16081 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16082 --disable-libcilkrts unconditionally, not just for the final GCC
16083 build for Hurd.
16084
16085 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16086 version to 4.15.
16087
16088 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16089
16090 [BZ #10871]
16091 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16092 case).
16093
16094 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16095
16096 [BZ #10871]
16097 * localedata/locales/be_BY (mon): Rename to...
16098 (alt_mon): This, then synchronize with CLDR (nominative case).
16099 (abmon): Rename to...
16100 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16101 (mon): Import from CLDR (genitive case).
16102 (abmon): Likewise.
16103 * localedata/locales/be_BY@latin (mon): Rename to...
16104 (alt_mon): This.
16105 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16106
16107 * localedata/locales/be_BY@latin (lang_name): Reworded to
16108 "biełaruskaja mova".
16109
16110 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16111
16112 [BZ #10871]
16113 * localedata/locales/el_CY (mon): Renamed to...
16114 (alt_mon): This.
16115 (mon): Import from CLDR (genitive case).
16116 * localedata/locales/el_GR: Likewise.
16117
16118 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16119
16120 [BZ #10871]
16121 * localedata/locales/ru_RU (mon): Rename to...
16122 (alt_mon): This.
16123 (abmon): Rename to...
16124 (ab_alt_mon): This.
16125 (mon): Import from CLDR (genitive case).
16126 (abmon): Copy from the old content except the 5th month which is
16127 now in the genitive case, even when abbreviated.
16128 * localedata/locales/ru_UA: Likewise.
16129 * time/tst-strptime.c (day_tests): Add an actual example of
16130 a difference between %b and %Ob in Russian.
16131
16132 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16133
16134 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16135 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16136 a `c' variable.
16137 * resolv/res-close.c: Include <stdlib.h>.
16138 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16139 <sys/wait.h>, <time.h>, <sys/uio.h>.
16140 (NOT_CANCEL_H): Add inclusion guard.
16141 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16142 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16143 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16144 return 0.
16145 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16146 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16147 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16148 instead of void *.
16149 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16150 timer_ptr2id to cast struct timer_node * to void *.
16151 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16152 --disable-libcilkrts to gcc configure.
16153 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16154 and make them the default for now.
16155 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16156 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16157 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16158 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16159 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16160 MACH_IPC_COMPAT.
16161 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16162 __task_terminate would ever return successfully.
16163 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16164 to global scope.
16165 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16166 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16167 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16168 critical section to make code simpler and avoid warning.
16169 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16170 critical section to make code simpler and avoid warning.
16171 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16172 const char * instead of char *.
16173 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16174 __hurd_file_name_split, hurd_file_name_split,
16175 __hurd_directory_name_split, hurd_directory_name_split,
16176 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16177 hurd_file_name_path_lookup): Make lookup function parameter take a
16178 const char *name instead of char *name.
16179 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16180 __hurd_directory_name_split): Likewise.
16181 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16182 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16183 * sysdeps/mach/hurd/check_native.c: New file.
16184 * sysdeps/mach/hurd/check_pf.c: New file.
16185 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16186 (__freeifaddrs): Define macro to freeifaddrs.
16187 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16188 * sysdeps/mach/libmachuser.abilist: New file.
16189 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16190 (do_test_bz20181): Rename accordingly.
16191 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16192 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16193 <sys/mount.h>.
16194 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16195 version only if __USE_EXTERN_INLINES is defined.
16196 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16197 __hurd_sockfail): Likewise.
16198 (_hurd_fd_get): Always declare functions, and provide inline versions
16199 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16200 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16201 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16202 _hurd_port_set): Always declare functions, and provide inline versions
16203 only if __USE_EXTERN_INLINES and _LIBC are defined and
16204 IS_IN(libc).
16205 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16206 _hurd_critical_section_unlock): Likewise.
16207 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16208 * __hurd_threadvar_location): Likewise.
16209 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16210 _hurd_userlink_clear): Likewise.
16211 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16212 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16213 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16214 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16215 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16216 __spin_lock_locked): Likewise.
16217 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16218 __spin_lock_locked): Likewise.
16219 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16220 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16221 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16222 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16223 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16224 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16225 _POSIX_NO_TRUNC): Define to 0.
16226 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16227 check size against PTHREAD_STACK_MIN.
16228 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16229 IS_IN(libpthread)]: Include <sigsetops.h>.
16230 * mach/Makefile (user-interfaces): Add mach/gnumach.
16231 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16232 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16233 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16234 instead of invalid -1.
16235 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16236 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16237 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16238 <net/ppp_defs.h>.
16239
16240 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16241
16242 * hurd/fcntl-internal.h: New file.
16243
16244 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16245
16246 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16247
16248 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16249
16250 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16251
16252 [BZ #22701]
16253 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16254 Build only shared objects.
16255
16256 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16257
16258 * README: Update for hppa.
16259
16260 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16261
16262 * sysdeps/sparc/fpu/libm-test-ulps: Update
16263 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16264
16265 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16266
16267 Revert:
16268
16269 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16270
16271 [BZ #22563]
16272 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16273 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16274 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16275 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16276 to feature_1.
16277
16278 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16279
16280 [BZ #22563]
16281 * bits/types/__cancel_jmp_buf_tag.h: New file.
16282 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16283 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16284 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16285 * nptl/Makefile (headers): Add
16286 bits/types/__cancel_jmp_buf_tag.h.
16287 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16288 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16289 * sysdeps/nptl/pthread.h: Include
16290 <bits/types/__cancel_jmp_buf_tag.h>.
16291 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16292 __cancel_jmp_buf.
16293 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16294
16295 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16296
16297 [BZ #10871]
16298 * localedata/locales/uk_UA (mon): Renamed to...
16299 (alt_mon): This.
16300 (alt_digits): "0" removed and then renamed to...
16301 (mon): This.
16302 (date_fmt): Definition changed not to use the alternative
16303 digits hack.
16304
16305 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16306
16307 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16308 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16309 * elf/elf.h (EF_RISCV_RVC): New define.
16310 (EF_RISCV_FLOAT_ABI): Likewise.
16311 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16312 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16313 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16314 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16315 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16316 define.
16317 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16318
16319 2018-01-25 Andreas Schwab <schwab@suse.de>
16320
16321 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16322 single quotes.
16323 * sysdeps/gnu/configure: Regenerate.
16324 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16325 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16327 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16328 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16329 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16330 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16331 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16332
16333 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16334
16335 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16336 URL, and run autoconf, make it the default for now.
16337
16338 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16339
16340 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16341 soft-float ColdFire configuration.
16342
16343 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16344 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16345 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16346
16347 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16348 MicroBlaze file.
16349
16350 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16351 ....
16352 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16353 ... here.
16354 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16355 New file.
16356
16357 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16358 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16359 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16360 file.
16361
16362 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16363
16364 [BZ #22742]
16365 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16366 Rename to __reserved and add comment.
16367 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16368 Rename to __reserved.
16369
16370 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16371
16372 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16373 i686-gnu configurations.
16374 (Context.run_builds): Include mig, gnumach and hurd in components
16375 considered.
16376 (Context.checkout): Add mig, gnumach and hurd to components.
16377 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16378 hurd.
16379 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16380 (Config.build): Install gnumach headers, build mig and install
16381 hurd headers for 'gnu' OS.
16382 (Config.install_gnumach_headers): New function.
16383 (Config.install_hurd_headers): Likewise.
16384 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16385 when building for 'gnu' OS.
16386
16387 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16388
16389 * manual/tunables.texi (Hardware Capability Tunables): Fix
16390 spelling.
16391
16392 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16393
16394 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16395 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16396 (ALTMON_11, ALTMON_12): Improve documentation.
16397 * manual/time.texi (strftime): Likewise.
16398
16399 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16400
16401 [BZ #10871]
16402 * localedata/locales/pl_PL: Alternative month names added,
16403 primary month names are genitive now.
16404 * time/tst-strptime.c (day_tests): Actually use a genitive case
16405 of a month name in Polish language.
16406
16407 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16408
16409 [BZ #10871]
16410 * manual/locale.texi: Document ALTMON_1..12 constants for
16411 nl_langinfo. Specify when to use ALTMON instead of MON.
16412 * manual/time.texi (strftime, strptime): Document GNU extension
16413 permitting O modifier with %B and %b. Specify when to use
16414 %OB instead of %B.
16415
16416 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16417
16418 [BZ #10871]
16419 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16420 names, define them as the same as abbreviated month names explicitly.
16421 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16422 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16423 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16424 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16425 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16426 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16427 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16428 _NL_WABALTMON_12): New enum constants.
16429 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16430 wab_alt_mon, and ab_alt_mon_defined members.
16431 (time_output): Output ab_alt_mon and wab_alt_mon members.
16432 (time_read): Read them, initialize them as copies of abmon and wabmon
16433 respectively if they are missing, initialize ab_alt_mon_defined.
16434 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16435 * locale/programs/locfile-kw.h: Regenerate.
16436 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16437 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16438 and ru_RU.UTF-8.
16439 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16440 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16441 (__strftime_internal): Handle %Ob and %Oh formats.
16442 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16443 (__strptime_internal): Handle %Ob and %Oh formats.
16444 * time/tst-strptime.c (day_tests): Add more tests to parse different
16445 forms of month names including the new %Ob format specifier.
16446
16447 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16448
16449 [BZ #10871]
16450 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16451 define them as the same as primary full month names explicitly.
16452 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16453 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16454 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16455 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16456 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16457 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16458 _NL_WALTMON_12): New enum constants.
16459 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16460 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16461 macros.
16462 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16463 walt_mon, and alt_mon_defined members.
16464 (time_output): Output alt_mon and walt_mon members.
16465 (time_read): Read them, initialize them as copies of mon and wmon
16466 respectively if they are missing, initialize alt_mon_defined.
16467 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16468 * locale/programs/locfile-kw.h: Regenerate.
16469 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16470 * localedata/tst-langinfo.c (map): Add tests for the new constants
16471 ALTMON_1 .. ALTMON_12.
16472 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16473 and pl_PL.UTF-8.
16474 * time/strftime_l.c (f_altmonth): New macro.
16475 (__strftime_internal): Handle %OB format.
16476 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16477 (__strptime_internal): Handle %OB format.
16478 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16479 of month names including the new %OB format specifier.
16480
16481 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16482
16483 [BZ #22685]
16484 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16485 from ABORT_TRANSACTION.
16486 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16487 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16488 ABORT_TRANSACTION_IMPL): Likewise.
16489 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16490 Linux code, but remove the code that aborts transactions.
16491
16492 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16493
16494 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16495
16496 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16497
16498 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16499 in date: "2004-14-09" should be "2004-09-14".
16500 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16501 "2003-15-09" should be "2003-09-15".
16502
16503 2018-01-18 Arjun Shankar <arjun@redhat.com>
16504
16505 [BZ #22343]
16506 [BZ #22774]
16507 CVE-2018-6485
16508 CVE-2018-6551
16509 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16510 after padding.
16511 (_int_memalign): check for integer overflow before calling
16512 _int_malloc.
16513 * malloc/tst-malloc-too-large.c: New test.
16514 * malloc/Makefile: Add tst-malloc-too-large.
16515
16516 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16517
16518 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16519 in date: "2017-24-07" should be "2017-07-24".
16520 * localedata/locales/mai_IN: Likewise.
16521 * localedata/locales/mai_NP: Likewise.
16522
16523 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16524
16525 * po/ru.po: Update translations.
16526
16527 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16528
16529 [BZ #22719]
16530 * sysdeps/hppa/backtrace.c: New file.
16531
16532 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16533
16534 [BZ #22715]
16535 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16536 align La_x86_64_retval to VEC_SIZE.
16537
16538 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16539
16540 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16541 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16542
16543 2018-01-16 Florian Weimer <fweimer@redhat.com>
16544
16545 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16546 Move tst-thread-exit-clobber ...
16547 [$(CXX)] (tests-unsupported): ... to here.
16548
16549 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16550
16551 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16552 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16553 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16554 (_dl_aarch64_cap_flags): Update.
16555 (_DL_HWCAP_COUNT): Update.
16556
16557 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16558
16559 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16560 (_DL_HWCAP_LAST): Remove.
16561 (_DL_HWCAP_COUNT): Move to ...
16562 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16563 (_DL_HWCAP_COUNT): ... here.
16564
16565 2018-01-16 Florian Weimer <fweimer@redhat.com>
16566
16567 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16568 mode with GNU extensions.
16569
16570 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16571
16572 * elf/elf.h (NT_ARM_SVE): Define.
16573
16574 2018-01-15 Florian Weimer <fweimer@redhat.com>
16575
16576 [BZ #22636]
16577 * nptl/tst-minstack-throw.cc: New file.
16578 * nptl/Makefile (tests): Add tst-minstack-throw.
16579 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16580 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16581
16582 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16583
16584 * scripts/build-many-glibcs.py (Context.checkout): Default
16585 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16586 version to 1.1.0.
16587
16588 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16589
16590 [BZ #22707]
16591 * elf/elf.h (DF_1_STUB): Define.
16592 (DF_1_PIE): Define.
16593
16594 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16595
16596 [BZ #22697]
16597 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16598 Do not add 0.5 to integer or out-of-range arguments.
16599
16600 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16601
16602 * po/bg.po: Update translations.
16603 * po/cs.po: Likewise.
16604 * po/de.po: Likewise.
16605 * po/ko.po: Likewise.
16606 * po/pl.po: Likewise.
16607 * po/sv.po: Likewise.
16608 * po/uk.po: Likewise.
16609 * po/vi.po: Likewise.
16610
16611 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16612
16613 * aarch64/start.S (_start): Use __wrap_main.
16614 (__wrap_main): New local symbol.
16615
16616 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16617
16618 [BZ #22679]
16619 CVE-2018-1000001
16620 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16621 generic_getcwd if the path returned by getcwd syscall is not absolute.
16622 * io/tst-getcwd-abspath.c: New test.
16623 * io/Makefile (tests): Add tst-getcwd-abspath.
16624
16625 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16626
16627 * malloc/malloc.c (malloc_consolidate): Add size check.
16628
16629 2018-01-12 Florian Weimer <fweimer@redhat.com>
16630
16631 * support/write_message.c (write_message): Preserve errno.
16632 * support/check.c (print_failure): Likewise.
16633 * support/support_test_verify_impl.c (support_test_verify_impl):
16634 Likewise.
16635 * support/support_test_compare_failure.c
16636 (support_test_compare_failure): Likewise.
16637
16638 2018-01-12 Florian Weimer <fweimer@redhat.com>
16639
16640 [BZ #22701]
16641 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16642 Prevent installation of libnsl.so.
16643 (libnsl-inhibit-o): Do not build (or install) static libraries.
16644
16645 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16646
16647 [BZ #22657]
16648 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16649 before the day number which may produce a double space.
16650 (date_fmt): Likewise.
16651
16652 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16653
16654 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16655 instead of fegetenv.
16656
16657 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16658
16659 [BZ #22702]
16660 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16661 comment to say exceptions are discarded.
16662 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16663 __fegetenv.
16664 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16665 be enabled.
16666
16667 2018-01-11 Florian Weimer <fweimer@redhat.com>
16668
16669 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16670 and error message.
16671
16672 2018-01-11 Florian Weimer <fweimer@redhat.com>
16673
16674 [BZ #22636]
16675 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16676 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16677
16678 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16679
16680 [BZ #22693]
16681 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16682 negative arguments in test for NaN or infinity argument.
16683
16684 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16685
16686 * po/libc.pot: Regenerate.
16687
16688 2018-01-10 Florian Weimer <fweimer@redhat.com>
16689
16690 [BZ #22636]
16691 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16692 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16693
16694 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16695
16696 * hurd/hurd/fd.h: Include <fcntl.h>
16697 (__hurd_at_flags): New function.
16698 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16699 with call to __hurd_at_flags.
16700 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16701 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16702 __faccessat
16703 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16704 (__access_noerrno): Use __faccessat_common instead of access_common.
16705 (__access): Likewise.
16706 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16707 with a call to __faccessat.
16708 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16709 (__faccessat_common): ... this. Move implementation of __access into it when
16710 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16711 reauthenticate_cwdir_at helper to implement AT mechanism.
16712 (__faccessat_noerrno): New function, just calls __faccessat_common.
16713 (__faccessat): New function, just calls __faccessat_common.
16714 (faccessat): Define weak alias.
16715
16716 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16717
16718 [BZ #22691]
16719 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16720 (CFLAGS-s_fmaxmagl.c): New variable.
16721 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16722
16723 [BZ #22690]
16724 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16725 long int for arguments of possibly overflowing addition or
16726 subtraction.
16727 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16728
16729 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16730
16731 [BZ #22688]
16732 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16733 (CFLAGS-e_remainderl.c): New variable.
16734
16735 [BZ #22687]
16736 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16737 variable.
16738 (CFLAGS-s_cacoshl.c): Likewise.
16739 (CFLAGS-s_casinhl.c): Likewise.
16740 (CFLAGS-s_catanl.c): Likewise.
16741 (CFLAGS-s_catanhl.c): Likewise.
16742 (CFLAGS-s_cexpl.c): Likewise.
16743 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16744 (CFLAGS-s_csinhl.c): Likewise.
16745 (CFLAGS-s_clogl.c): Likewise.
16746 (CFLAGS-s_clog10l.c): Likewise.
16747 (CFLAGS-s_csinl.c): Likewise.
16748 (CFLAGS-s_csqrtl.c): Likewise.
16749
16750 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16751 2017-01-09 Svante Signell <svante.signell@gmail.com>
16752
16753 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16754 (_hurd_exec_paths): New function.
16755 * hurd/hurd.h (_hurd_exec): Deprecate function.
16756 (_hurd_exec_paths): Declare function.
16757 * hurd/Versions: Export _hurd_exec_paths.
16758 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16759 (__execve): Use __getcwd to build absolute path, and use
16760 _hurd_exec_paths instead of _hurd_exec.
16761 * sysdeps/mach/hurd/spawni.c: Likewise.
16762 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16763 _hurd_exec.
16764
16765 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16766
16767 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16768 test instead of failing in case of ENOENT returned by posix_openpt.
16769
16770 2018-01-08 Florian Weimer <fweimer@redhat.com>
16771
16772 resolv: Support binary labels in test framework.
16773 * support/resolv_test.c (struct to_be_freed): Remove.
16774 (struct compressed_name): New.
16775 (allocate_compressed_name, ascii_tolower)
16776 (compare_compressed_name): New functions.
16777 (struct resolv_response_builder): Update type of
16778 compression_offsets for use with tsearch. Rempve to_be_freed.
16779 (response_push_pointer_to_free): Remove function.
16780 (resolv_response_add_name): Rewrite using struct compressed_name
16781 and tsearch instead of hsearch_r.
16782 (response_builder_allocate): Remove initialization of
16783 compression_offsets.
16784 (response_builder_free): Update for removal of to_be_freed. Use
16785 tdestroy instead of hdestroy_r.
16786 * resolv/Makefile (tests): Add tst-resolv-binary.
16787 (tst-resolv-binary): Link with -lresolv -lpthread.
16788
16789 2018-01-08 Florian Weimer <fweimer@redhat.com>
16790
16791 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
16792 time. Pass positive flag instead of negative flag to
16793 support_test_compare_failure.
16794 (support_test_compare_failure): Change negative parameter to
16795 positive.
16796 * support/support_test_compare_failure.c (report)
16797 (support_test_compare_failure): Likewise.
16798 * support/tst-test_compare.c (return_ssize_t, return_int): New.
16799 (do_test): Check int/size_t, ssize_t/size_t comparisons.
16800
16801 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
16802
16803 [BZ #22637]
16804 * nptl/descr.h (stackblock, stackblock_size): Update comments.
16805 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
16806 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
16807 stacksize.
16808 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
16809
16810 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
16811
16812 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16813 Add s_sincosf-sse2 and s_sincosf-fma.
16814 (CFLAGS-s_sincosf-fma.c): New.
16815 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
16816 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
16817 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
16818 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
16819 __sincosf is defined.
16820
16821 2018-01-08 Florian Weimer <fweimer@redhat.com>
16822
16823 * nptl/tst-thread-exit-clobber.cc: New file.
16824 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
16825 C++11 mode.
16826 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
16827 (tests): Add tst-thread-exit-clobber.
16828 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
16829
16830 2018-01-08 Florian Weimer <fweimer@redhat.com>
16831
16832 * support/check.h (support_static_assert): Define.
16833 (TEST_COMPARE): Use it.
16834
16835 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
16836
16837 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
16838 [!__RLIM_T_MATCHES_RLIM64_T]
16839 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
16840 __getrlimit64. Add libc_hidden_weak.
16841
16842 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
16843
16844 * elf/elf.h (R_RISCV_NONE): New define.
16845 (R_RISCV_32): Likewise.
16846 (R_RISCV_64): Likewise.
16847 (R_RISCV_RELATIVE): Likewise.
16848 (R_RISCV_COPY): Likewise.
16849 (R_RISCV_JUMP_SLOT): Likewise.
16850 (R_RISCV_TLS_DTPMOD32): Likewise.
16851 (R_RISCV_TLS_DTPMOD64): Likewise.
16852 (R_RISCV_TLS_DTPREL32): Likewise.
16853 (R_RISCV_TLS_DTPREL64): Likewise.
16854 (R_RISCV_TLS_TPREL32): Likewise.
16855 (R_RISCV_TLS_TPREL64): Likewise.
16856 * Makerules (make-link-multidir): Make directories before linking into
16857 them.
16858 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
16859 define.
16860 (VDSO_HASH_LINUX_4_15): Likewise.
16861 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
16862 in subdirectories of lib.
16863 * nptl/Makefile (/librt.so): Always depend on
16864 "$(shared-thread-library)".
16865
16866 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16867
16868 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
16869 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
16870 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
16871 (___tls_get_addr).
16872 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
16873 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
16874 "-O2 -march=i686".
16875 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
16876 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
16877 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
16878 * sysdeps/gnu/glob-lstat-compat.c: New file.
16879 * sysdeps/gnu/glob64-lstat-compat.c: New file.
16880 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
16881
16882 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16883
16884 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
16885 Reserve 16 chars to reloc_addr before calling _itoa_word.
16886
16887 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16888
16889 [BZ #22678]
16890 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
16891 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
16892
16893 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
16894 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
16895
16896 * resource/tst-getrlimit.c: Add copyright header.
16897
16898 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16899 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16900
16901 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16902 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
16903 Define __GI_getrlimit64 as weak alias of __getrlimit64.
16904 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
16905 instead.
16906 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
16907 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
16908 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
16909 RLIM64_INFINITY): Fix values to match the kernel ones.
16910 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
16911 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
16912 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
16913 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
16914 getrlimit64@@GLIBC_2_27.
16915 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
16916 and setrlimit64.
16917 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
16918 getrlimit, setrlimit, getrlimit64 and setrlimit64.
16919 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
16920 setrlimit, getrlimit64 and setrlimit64.
16921
16922 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
16923
16924 [BZ #22648]
16925 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
16926 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
16927
16928 2018-01-04 Joseph Myers <joseph@codesourcery.com>
16929
16930 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
16931 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
16932 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
16933
16934 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16935
16936 [BZ #15479]
16937 [BZ #22666]
16938 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
16939 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
16940
16941 [BZ #15479]
16942 [BZ #22665]
16943 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
16944 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
16945 * sysdeps/alpha/fpu/s_floor.c: Likewise.
16946 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
16947
16948 2018-01-04 Florian Weimer <fweimer@redhat.com>
16949
16950 [BZ #22667]
16951 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
16952 Align the stack before calling exit.
16953 * stdlib/tst-makecontext-align.c: New file.
16954 * stdlib/Makefile (tests): Add tst-makecontext-align.
16955
16956 2018-01-04 Florian Weimer <fweimer@redhat.com>
16957
16958 Add support for calling dlvsym from libc.so.
16959 * include/dlfcn.h (__libc_dlvsym): Declare.
16960 * elf/Makefile (tests-static-internal): Add
16961 tst-libc_dlvsym-static.
16962 (tests-internal): Add tst-libc_dlvsym.
16963 (modules-names): Add tst-libc_dlvsym-dso.
16964 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
16965 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
16966 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
16967 object tst-libc_dlvsym-dso.so needs to be built before running
16968 these tests.
16969 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
16970 * elf/Versions: Export __libc_dlvsym.
16971 * elf/dl-libc.c (struct do_dlvsym_args): New.
16972 (do_dlvsym, __libc_dlvsym): New functions.
16973 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
16974 (_dl_open_hook2): New variable.
16975 (__libc_register_dl_open_hook): Set it.
16976 * elf/tst-libc_dlvsym-dso.c: New file.
16977 * elf/tst-libc_dlvsym-static.c: Likewise.
16978 * elf/tst-libc_dlvsym.c: Likewise.
16979 * elf/tst-libc_dlvsym.h: Likewise.
16980
16981 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16982
16983 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
16984 include <sys/mount.h>.
16985
16986 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
16987
16988 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
16989 Add __NO_MATH_ERRNO__ check.
16990
16991 2018-01-02 Joseph Myers <joseph@codesourcery.com>
16992
16993 * sysdeps/mips/mips32/libm-test-ulps: Update.
16994 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
16995
16996 2018-01-02 Florian Weimer <fweimer@redhat.com>
16997
16998 * misc/tst-pselect.c: Add copyright header.
16999
17000 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17001
17002 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17003 comment.
17004 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17005 comment.
17006 (settrlimit): Rename into setrlimit.
17007 (__sttrlimit): Rename into __setrlimit.
17008
17009 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17010 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17011 never defined in that case.
17012
17013 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17014
17015 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17016
17017 * sysdeps/arm/libm-test-ulps: Update.
17018
17019 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17020 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17021
17022 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17023
17024 * NEWS: Add cosf and sincosf to list of optimized functions.
17025
17026 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17027
17028 [BZ #22660]
17029 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17030 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17031 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17032 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17033
17034 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17035
17036 [BZ #22433]
17037 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17038
17039 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17040 making a copy of it.
17041
17042 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17043
17044 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17045 trailing whitespace removed.
17046 * scripts/config.guess: Update to version 2018-01-01.
17047 * scripts/config.sub: Update to version 2018-01-01.
17048 * scripts/move-if-change: Update from gnulib.
17049
17050 * NEWS: Update copyright dates.
17051 * catgets/gencat.c (print_version): Likewise.
17052 * csu/version.c (banner): Likewise.
17053 * debug/catchsegv.sh: Likewise.
17054 * debug/pcprofiledump.c (print_version): Likewise.
17055 * debug/xtrace.sh (do_version): Likewise.
17056 * elf/ldconfig.c (print_version): Likewise.
17057 * elf/ldd.bash.in: Likewise.
17058 * elf/pldd.c (print_version): Likewise.
17059 * elf/sotruss.sh: Likewise.
17060 * elf/sprof.c (print_version): Likewise.
17061 * iconv/iconv_prog.c (print_version): Likewise.
17062 * iconv/iconvconfig.c (print_version): Likewise.
17063 * locale/programs/locale.c (print_version): Likewise.
17064 * locale/programs/localedef.c (print_version): Likewise.
17065 * login/programs/pt_chown.c (print_version): Likewise.
17066 * malloc/memusage.sh (do_version): Likewise.
17067 * malloc/memusagestat.c (print_version): Likewise.
17068 * malloc/mtrace.pl: Likewise.
17069 * manual/libc.texinfo: Likewise.
17070 * nptl/version.c (banner): Likewise.
17071 * nscd/nscd.c (print_version): Likewise.
17072 * nss/getent.c (print_version): Likewise.
17073 * nss/makedb.c (print_version): Likewise.
17074 * posix/getconf.c (main): Likewise.
17075 * scripts/test-installation.pl: Likewise.
17076 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17077
17078 * All files with FSF copyright notices: Update copyright dates
17079 using scripts/update-copyrights.
17080 * locale/programs/charmap-kw.h: Regenerated.
17081 * locale/programs/locfile-kw.h: Likewise.
17082
17083 2017-12-31 Zack Weinberg <zackw@panix.com>
17084
17085 * libio/bits/libio-ldbl.h: Correct check for improper
17086 inclusion. Add own multiple include guard.
17087
17088 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17089 Dmitry V. Levin <ldv@altlinux.org>
17090
17091 [BZ #22625]
17092 CVE-2017-16997
17093 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17094 string token expansion. Check for NULL pointer or empty string possibly
17095 returned by expand_dynamic_string_token.
17096 (decompose_rpath): Check for empty path after dynamic string
17097 token expansion.
17098
17099 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17100
17101 [BZ #22433]
17102 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17103
17104 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17105 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17106 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17107 and PTRACE_SYSCALL.
17108 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17109 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17110 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17111 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17112 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17113 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17114
17115 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17116 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17117 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17118 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17119 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17120 bits/ptrace-shared.h.
17121 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17122 <bits/ptrace-shared.h>.
17123 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17124 __ptrace_peeksiginfo_flags, ptrace): Remove.
17125 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17126 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17127 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17128 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17129 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17130
17131 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17132
17133 [BZ #17804]
17134 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17135 end of the loop. Improve comments.
17136
17137 2017-12-29 Zack Weinberg <zackw@panix.com>
17138
17139 [BZ #22615]
17140 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17141 might be set on success.
17142
17143 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17144
17145 [BZ #22611]
17146 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17147 is unchanged on success.
17148
17149 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17150
17151 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17152 updated.
17153 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17154 expand_dynamic_string_token): Likewise.
17155 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17156 is_path argument.
17157
17158 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17159 contains ':'.
17160
17161 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17162 is set and name contains ':', and all code depending on these checks.
17163
17164 2017-12-24 Zack Weinberg <zackw@panix.com>
17165
17166 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17167 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17168 respectively.
17169 * libio/libio.h: Rename the original version of this file to
17170 libio/bits/libio.h. Error out if not included by stdio.h or the
17171 stub libio.h.
17172 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17173 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17174 if not included by bits/libio.h or the stub _G_config.h.
17175 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17176 sysdeps/unix/sysv/linux/bits. Error out if not included by
17177 bits/libio.h or the stub _G_config.h.
17178 * libio/stdio.h: Include bits/libio.h, not libio.h.
17179 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17180 well as libio.h and _G_config.h.
17181
17182 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17183 * libio/strfile.h, stdio-common/vfscanf.c
17184 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17185 Include stdio.h, not _G_config.h nor libio.h.
17186 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17187 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17188
17189 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17190
17191 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17192
17193 [BZ #22347]
17194 * stdlib/getrandom.c (getrandom): Fix comment.
17195 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17196
17197 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17198
17199 [BZ #21161]
17200 * manual/arith.texi (strtoul): Fix a typo.
17201
17202 [BZ #22596]
17203 * manual/arith.texi (finite): Fix the description of the return
17204 value.
17205
17206 2017-12-22 Eric Blake <ebb9@byu.net>
17207
17208 Avoid gcc warnings on cygwin
17209 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17210 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17211 Avoid unused variable.
17212
17213 2017-12-22 Florian Weimer <fweimer@redhat.com>
17214
17215 * io/Makefile (routines): Add copy_file_range.
17216 (tests): Add tst-copy_file_range.
17217 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17218 * io/Versions (GLIBC_2.27): Export copy_file_range.
17219 * io/copy_file_range-compat.c: New file.
17220 * io/copy_file_range.c: Likewise.
17221 * io/tst-copy_file_range-compat.c: Likewise.
17222 * io/tst-copy_file_range.c: Likewise.
17223 * manual/llio.texi (Copying File Data): New section.
17224 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17225 * support/Makefile (libsupport-routines): Add support-xfstat,
17226 xftruncate, xlseek.
17227 * support/support-xfstat.c: New file.
17228 * support/xftruncate.c: Likewise.
17229 * support/xlseek.c: Likewise.
17230 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17231 * sysdeps/unix/sysv/linux/**.abilist: Update.
17232 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17233
17234 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17235
17236 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17237 disable-multi-arch variant to aarch64-linux-gnu.
17238
17239 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17240
17241 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17242 trailing whitespace removed.
17243 * scripts/config.guess: Update to version 2017-12-17.
17244 * scripts/config.sub: Update to version 2017-11-23.
17245 * scripts/install-sh: Update to version 2017-09-23.17.
17246 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17247
17248 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17249
17250 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17251 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17252 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17253 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17254 * sysdeps/tile/crtn.S: Likewise.
17255 * sysdeps/tile/dl-start.S (_start): Likewise.
17256 * sysdeps/tile/dl-trampoline.S: Likewise.
17257 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17258 * sysdeps/tile/start.S (_start): Likewise.
17259 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17260 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17261 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17262 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17263 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17264 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17265 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17266
17267 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17268 comment.
17269 * sysdeps/tile/preconfigure: Remove tilegx folder.
17270 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17271 * sysdeps/tile/Implies: ... here.
17272 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17273 * sysdeps/tile/Makefile: ... here.
17274 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17275 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17276 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17277 * sysdeps/tile/bits/wordsize.h: ... here.
17278 * sysdeps/tile/tilegx/*: Move to ...
17279 * sysdeps/tile/*: ... here.
17280 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17281 * sysdeps/tile/tilegx32/Implies: ... here.
17282 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17283 * sysdeps/tile/tilegx64/Implies: ... here.
17284 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17285 to ...
17286 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17287 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17288 * sysdeps/unix/sysv/linux/tile/*: ... here.
17289 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17290 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17291 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17292 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17293
17294 * README: Remove tilepro-*-linux-gnu from supported architecture.
17295 * scripts/build-many-glibcs.py: Likewise.
17296 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17297 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17298 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17299 elf_machine_matches_host, elf_machine_dynamic,
17300 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17301 howto, elf_machine_rela): Likewise.
17302 * sysdeps/tile/dl-start.S (_start): Likewise.
17303 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17304 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17305 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17306 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17307 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17308 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17309 Likewise.
17310 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17311 * sysdeps/tile/preconfigure: Likewise.
17312 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17313 POINTER_CHK_GUARD): Likewise.
17314 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17315 * sysdeps/tile/start.S (_start): Likewise.
17316 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17317 Likewise.
17318 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17319 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17320 CMOVNEZ): Remove.
17321 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17322 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17323 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17324 Likewise.
17325 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17326 * sysdeps/tile/tilepro/Implies: Remove file.
17327 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17328 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17329 * sysdeps/tile/tilepro/memchr.c: Likewise.
17330 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17331 * sysdeps/tile/tilepro/memset.c: Likewise.
17332 * sysdeps/tile/tilepro/memusage.h: Likewise.
17333 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17334 * sysdeps/tile/tilepro/strchr.c: Likewise.
17335 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17336 * sysdeps/tile/tilepro/strlen.c: Likewise.
17337 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17338 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17339 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17340 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17341 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17342 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17343 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17344 Likewise.
17345 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17346 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17347 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17348 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17349 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17350 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17351 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17352 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17353 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17354 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17355 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17356 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17357 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17358 tilepro mention in comment.
17359
17360 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17361 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17362 * nptl/pthread_join_common.c: New file: common function used on
17363 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17364 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17365 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17366 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17367 (cleanup): Move definition to pthread_join_common.c.
17368 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17369 Remove superflous checks.
17370 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17371 Likewise.
17372
17373 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17374
17375 * sysdeps/aarch64/libm-test-ulps: Update.
17376
17377 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17378
17379 * sysdeps/aarch64/memset.S (MEMSET): Define.
17380
17381 2017-12-20 Florian Weimer <fweimer@redhat.com>
17382
17383 [BZ #22635]
17384 nptl: Provide full implementation of pthread_self in libc.so.
17385 * nptl/Makefile (routines): Add pthread_self.
17386 (libpthread-routines): Replace pthread_self with
17387 compat-pthread_self.
17388 * nptl/forward.c (pthread_self): Remove.
17389 * nptl/nptl-init.c (pthread_functions): Do not initialize
17390 ptr_pthread_self.
17391 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17392 * nptl/compat-pthread_self.c: New file.
17393 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17394 Remove ptr_pthread_self.
17395
17396 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17397
17398 * posix/regcomp.c: Fix spelling in comments.
17399 * posix/regex.h: Likewise.
17400 * posix/regex_internal.c: Likewise.
17401 * posix/regexec.c: Likewise.
17402
17403 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17404
17405 [BZ #22377]
17406 * math/Makefile [C++] (tests): Add test for iseqsig.
17407 * math/math.h [C++] (iseqsig): New implementation, which does
17408 not rely on __MATH_TG/__builtin_types_compatible_p.
17409 * math/test-math-iseqsig.cc: New file.
17410 * sysdeps/powerpc/powerpc64le/Makefile
17411 (CFLAGS-test-math-iseqsig.cc): New variable.
17412
17413 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17414
17415 * elf/dl-load.c (is_trusted_path): Remove.
17416 (fillin_rpath): Remove check_trusted argument and its use,
17417 all callers changed.
17418
17419 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17420
17421 [BZ #22630]
17422 * Makeconfig (link-pie-before-libc): Replace -pie with
17423 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17424 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17425 (tst-dlopen-aout-no-pie): New.
17426 (LDFLAGS-tst-prelink): Removed.
17427 (tst-prelink-no-pie): New.
17428 (LDFLAGS-tst-main1): Removed.
17429 (tst-main1-no-pie): New.
17430 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17431 (tst-gmon-no-pie): New.
17432
17433 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17434
17435 * manual/install.texi: Document that --enable-static-pie
17436 implies PIE.
17437 * INSTALL: Regenerated.
17438
17439 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17440
17441 [BZ #21309]
17442 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17443 unsigned.
17444
17445 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17446
17447 Revert:
17448
17449 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17450
17451 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17452
17453 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17454
17455 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17456 <errno.h>. Include "eexp.tbl".
17457 (half): New constant.
17458 (one): Likewise.
17459 (__ieee754_exp): Rewrite.
17460 (__slowexp): Remove prototype.
17461 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17462 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17463 * sysdeps/i386/fpu/slowexp.c: Likewise.
17464 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17465 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17466 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17467 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17468 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17469 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17470 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17471 comment.
17472 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17473 (CPPFLAGS-slowexp.c): Remove variable.
17474 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17475 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17476 (CFLAGS-slowexp-fma.c): Remove variable.
17477 (CFLAGS-slowexp-fma4.c): Likewise.
17478 (CFLAGS-slowexp-avx.c): Likewise.
17479 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17480 define as macro.
17481 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17482 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17483 * math/Makefile (type-double-routines): Remove slowexp.
17484 * manual/probes.texi (slowexp_p6): Remove.
17485 (slowexp_p32): Likewise.
17486
17487 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17488
17489 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17490 arithmetic.
17491
17492 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17493
17494 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17495
17496 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17497
17498 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17499
17500 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17501 <errno.h>. Include "eexp.tbl".
17502 (half): New constant.
17503 (one): Likewise.
17504 (__ieee754_exp): Rewrite.
17505 (__slowexp): Remove prototype.
17506 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17507 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17508 * sysdeps/i386/fpu/slowexp.c: Likewise.
17509 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17510 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17511 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17512 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17513 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17514 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17515 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17516 comment.
17517 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17518 (CPPFLAGS-slowexp.c): Remove variable.
17519 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17520 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17521 (CFLAGS-slowexp-fma.c): Remove variable.
17522 (CFLAGS-slowexp-fma4.c): Likewise.
17523 (CFLAGS-slowexp-avx.c): Likewise.
17524 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17525 define as macro.
17526 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17527 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17528 * math/Makefile (type-double-routines): Remove slowexp.
17529 * manual/probes.texi (slowexp_p6): Remove.
17530 (slowexp_p32): Likewise.
17531
17532 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17533 James Clarke <jrtc27@jrtc27.com>
17534
17535 [BZ #22603]
17536 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17537 addition.
17538
17539 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17540
17541 [BZ #22605]
17542 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17543 code.
17544
17545 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17546
17547 [BZ #22563]
17548 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17549 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17550 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17551 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17552 to feature_1.
17553
17554 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17555
17556 [BZ #22563]
17557 * bits/types/__cancel_jmp_buf_tag.h: New file.
17558 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17559 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17560 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17561 * nptl/Makefile (headers): Add
17562 bits/types/__cancel_jmp_buf_tag.h.
17563 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17564 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17565 * sysdeps/nptl/pthread.h: Include
17566 <bits/types/__cancel_jmp_buf_tag.h>.
17567 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17568 __cancel_jmp_buf.
17569 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17570
17571 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17572
17573 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17574 --enable-static-pie variants to x86_64, x32 and i686.
17575
17576 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17577
17578 [BZ #22631]
17579 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17580 argument for attrubutes. All callers changed.
17581 (__inline_mathop1): Likewise. All callers changed.
17582 (__inline_mathop): Likewise. All callers changed.
17583 [__USE_MISC] (scalbn): Use __inline_forward instead of
17584 __inline_forward_c.
17585 [__USE_ISOC99] (scalbln): Likewise.
17586 [__USE_ISOC99] (nearbyint): Likewise.
17587 [__USE_ISOC99] (lrint): Likewise.
17588 [__USE_MISC] (scalbnf): Likewise.
17589 [__USE_ISOC99] (scalblnf): Likewise.
17590 [__USE_ISOC99] (nearbyintf): Likewise.
17591 [__USE_ISOC99] (lrintf): Likewise.
17592 [__USE_MISC] (scalbnl): Likewise.
17593 [__USE_ISOC99] (scalblnl): Likewise.
17594 [__USE_ISOC99] (nearbyintl): Likewise.
17595 [__USE_ISOC99] (lrintl): Likewise.
17596 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17597 __inline_mathop and __m81_defun changed.
17598
17599 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17600 CPU or FPU for ARM hard-float configurations.
17601
17602 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17603
17604 * nptl/tst-attr3.c: Include <libc-diag.h>.
17605 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17606
17607 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17608
17609 * string/tester.c (test_strncat): Also disable -Warray-bounds
17610 warnings for two tests.
17611
17612 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17613
17614 [BZ #22614]
17615 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17616 $(cc-pie-default) == yes.
17617 * config.make.in (cc-pie-default): New.
17618 * configure.ac (libc_cv_pie_default): Renamed to ...
17619 (libc_cv_cc_pie_default): This.
17620 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17621 * configure: Regenerated.
17622
17623 2017-12-18 Florian Weimer <fweimer@redhat.com>
17624
17625 [BZ #20204]
17626 ld.so: Harden dl-libc/libdl hooks.
17627 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17628 (rtld_active): New function.
17629 * dlfcn/dladdr.c (__dladdr): Call it.
17630 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17631 * dlfcn/dlclose.c (__dlcose): Likewise.
17632 * dlfcn/dlerror.c (__dlerror): Likewise.
17633 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17634 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17635 * dlfcn/dlopen.c (__dlopen): Likewise.
17636 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17637 * dlfcn/dlsym.c (__dlsym): Likewise.
17638 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17639 * libio/vtables.c (_IO_vtable_check): Likewise.
17640 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17641 (__libc_dlclose): Likewise.
17642 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17643 assignment.
17644
17645 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17646
17647 [BZ #22446]
17648 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17649 buffers for readlink input and output.
17650
17651 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17652
17653 [BZ #22624]
17654 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17655 inhibit_stack_protector.
17656
17657 [BZ #22624]
17658 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17659 inhibit_stack_protector.
17660
17661 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17662
17663 [BZ #22627]
17664 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17665 code and invocation.
17666
17667 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17668
17669 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17670
17671 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17672
17673 [BZ #22505]
17674 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17675
17676 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17677
17678 * sysdeps/s390/fpu/libm-test-ulps: Update.
17679
17680 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17681
17682 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17683
17684 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17685
17686 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17687 constants to s_sincosf.h file.
17688 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17689 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17690 implementation.
17691 * sysdeps/ieee754/flt-32/s_sincosf.h:
17692 New file.
17693
17694 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17695
17696 [BZ #14681]
17697 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17698 before mtrace.
17699
17700 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17701
17702 [BZ #19574]
17703 * INSTALL: Regenerated.
17704 * Makeconfig (real-static-start-installed-name): New.
17705 (pic-default): Updated for --enable-static-pie.
17706 (pie-default): New for --enable-static-pie.
17707 (default-pie-ldflag): Likewise.
17708 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17709 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17710 Replace $(static-start-installed-name) with
17711 $(real-static-start-installed-name).
17712 (+prectorT): Updated for --enable-static-pie.
17713 (+postctorT): Likewise.
17714 (CFLAGS-.o): Add $(pie-default).
17715 (CFLAGS-.op): Likewise.
17716 * NEWS: Mention --enable-static-pie.
17717 * config.h.in (ENABLE_STATIC_PIE): New.
17718 * configure.ac (--enable-static-pie): New configure option.
17719 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17720 (have-static-pie): Likewise.
17721 Enable static PIE if linker supports --no-dynamic-linker.
17722 (ENABLE_STATIC_PIE): New AC_DEFINE.
17723 (enable-static-pie): New LIBC_CONFIG_VAR.
17724 * configure: Regenerated.
17725 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17726 gr$(start-installed-name) for --enable-static-pie.
17727 (extra-objs): Likewise.
17728 (install-lib): Likewise.
17729 (extra-objs): Add static-reloc.o and static-reloc.os
17730 ($(objpfx)$(start-installed-name)): Also depend on
17731 $(objpfx)static-reloc.o.
17732 ($(objpfx)r$(start-installed-name)): New.
17733 ($(objpfx)g$(start-installed-name)): Also depend on
17734 $(objpfx)static-reloc.os.
17735 ($(objpfx)gr$(start-installed-name)): New.
17736 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17737 in libc.a.
17738 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17739 initimage.
17740 * csu/static-reloc.c: New file.
17741 * elf/Makefile (routines): Add dl-reloc-static-pie.
17742 (elide-routines.os): Likewise.
17743 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17744 (tst-tls1-static-non-pie-no-pie): New.
17745 * elf/dl-reloc-static-pie.c: New file.
17746 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17747 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17748 STATIC_PIE_BOOTSTRAP.
17749 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17750 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17751 (tests-static): Likewise.
17752 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17753 (tst-gmon-static-no-pie): New.
17754 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17755 (CRT-tst-gmon-static-pie): Likewise.
17756 (tst-gmon-static-pie-ENV): Likewise.
17757 (tests-special): Likewise.
17758 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17759 (clean-tst-gmon-static-pie-data): Likewise.
17760 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17761 * gmon/tst-gmon-static-pie.c: New file.
17762 * manual/install.texi: Document --enable-static-pie.
17763 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17764 (_dl_get_dl_main_map): Likewise.
17765 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17766 * sysdeps/x86_64/configure.ac: Likewise.
17767 * sysdeps/i386/configure: Regenerated.
17768 * sysdeps/x86_64/configure: Likewise.
17769 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17770 (ASFLAGS-.op): Likewise.
17771
17772 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17773
17774 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
17775 * posix/tst-mmap-offset.c (fname): Use /tmp.
17776 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
17777
17778 2017-12-15 Steve Ellcey <sellcey@cavium.com>
17779
17780 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
17781
17782 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
17783
17784 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
17785 errno.
17786
17787 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17788
17789 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
17790 --with-float=hard for arm-linux-gnueabihf configurations.
17791
17792 [BZ #14121]
17793 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
17794 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
17795 ($(mo-installed)): Use $(objpfx)%.mo.
17796 (realclean): Remove rule.
17797
17798 * po/Makefile (linguas): Remove rule and dependencies.
17799 (linguas.mo): Likewise.
17800 (.PHONY): Do not depend on linguas and linguas.mo.
17801 (podir): Remove variable.
17802 (pofiles): Likewise.
17803 [$(pofiles)] (%.po): Remove rule.
17804
17805 * sysdeps/sparc/sparc32/Makefile
17806 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
17807 start-of-line whitespace in argument of echo.
17808 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
17809 with whitespace. Generate __wrap_.udiv alias.
17810 * sysdeps/sparc/sparc32/rem.S: Regenerated.
17811 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17812 * sysdeps/sparc/sparc32/udiv.S: Likewise.
17813 * sysdeps/sparc/sparc32/urem.S: Likewise.
17814
17815 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17816
17817 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
17818 for aligned inputs.
17819
17820 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17821
17822 * benchtests/bench-strcmp.c: Print output in JSON format.
17823
17824 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
17825
17826 2017-12-14 Florian Weimer <fweimer@redhat.com>
17827
17828 [BZ #22607]
17829 CVE-2017-1000409
17830 * elf/dl-load.c (_dl_init_paths): Compute number of components in
17831 the expanded path string.
17832
17833 2017-12-14 Florian Weimer <fweimer@redhat.com>
17834
17835 [BZ #22606]
17836 CVE-2017-1000408
17837 * elf/dl-load.c (system_dirs): Update comment.
17838 (nsystem_dirs_len): Use array_length.
17839 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
17840
17841 2017-12-14 Florian Weimer <fweimer@redhat.com>
17842
17843 Simplify compiling most of support/ outside of glibc.
17844 * support/check_addrinfo.c: Include <string.h>.
17845 * support/check_dns_packet.c: Likewise.
17846 * support/check_hostent.c: Likewise.
17847 * support/support_can_chroot.c: Include <support/xunistd.h>.
17848 * support/support_format_addrinfo.c: Include <stdlib.h>
17849 * support/support_format_dns_packet.c: Include <stdbool.h>.
17850 * support/support_format_hostent.c: Include <stdlib.h>.
17851 * support/support_format_netent.c: Likewise.
17852 * support/support_write_string.c: Include <support/xunistd.h>.
17853 * support/xdlfcn.c: Include <stddef.h>.
17854
17855 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
17856
17857 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
17858
17859 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17860 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17861
17862 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17863 (sysdeps_routines): Add memset-niagara7.
17864 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
17865 Likewise.
17866 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
17867 file.
17868 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
17869 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17870 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
17871 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
17872 Add niagara7 option.
17873 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
17874 memset.
17875
17876 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17877 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
17878 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
17879 Likewise.
17880 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
17881 New file.
17882 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
17883 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
17884 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
17885 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
17886 and __memmove_niagara7.
17887 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
17888 Add niagara7 option.
17889 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
17890 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
17891 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
17892 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
17893 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
17894
17895 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
17896
17897 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
17898 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
17899 * sysdeps/sparc/sparc64/memmove.S: Likewise.
17900 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
17901
17902 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
17903 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
17904 _dl_sparc_cap_flags array.
17905 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
17906
17907 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17908
17909 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
17910 time whenever possible.
17911
17912 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17913
17914 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
17915 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
17916
17917 2017-12-12 Joseph Myers <joseph@codesourcery.com>
17918
17919 * soft-fp/fmadf4.c: Move to ....
17920 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
17921 * soft-fp/fmasf4.c: Move to ....
17922 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
17923 * soft-fp/fmatf4.c: Move to ....
17924 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
17925 * sysdeps/ieee754/soft-fp/Makefile: New file.
17926 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
17927 * sysdeps/arm/preconfigure: Regenerated.
17928 * sysdeps/arm/nofpu/Implies: New file.
17929 * sysdeps/arm/s_fma.c: Remove file.
17930 * sysdeps/arm/s_fmaf.c: Likewise.
17931 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
17932 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
17933 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
17934 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
17935 * sysdeps/microblaze/s_fma.c: Remove file.
17936 * sysdeps/microblaze/s_fmaf.c: Likewise.
17937 * sysdeps/mips/mips32/nofpu/Implies: New file.
17938 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
17939 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
17940 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
17941 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
17942 * sysdeps/mips/ieee754/s_fma.c: Remove file.
17943 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
17944 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
17945 implementation.
17946 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
17947 * sysdeps/nios2/s_fma.c: Remove file.
17948 * sysdeps/nios2/s_fmaf.c: Likewise.
17949 * sysdeps/sh/nofpu/Implies: New file.
17950 * sysdeps/sh/s_fma.c: Remove file.
17951 * sysdeps/sh/s_fmaf.c: Likewise.
17952 * sysdeps/tile/Implies: Add ieee754/soft-fp.
17953 * sysdeps/tile/s_fma.c: Remove file.
17954 * sysdeps/tile/s_fmaf.c: Likewise.
17955
17956 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
17957
17958 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17959 Add s_cosf-sse2 and s_cosf-fma.
17960 (CFLAGS-s_cosf-fma.c): New.
17961 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
17962 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
17963 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
17964
17965 2017-12-12 Steve Ellcey <sellcey@cavium.com>
17966
17967 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
17968
17969 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17970
17971 * libio/Makefile (tests): Add tst-bz22415.
17972 (tst-bz22415-ENV): New rule.
17973 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
17974 (tests-special): Add tst-bz22415-mem.out.
17975 ($(objpfx)tst-bz22415-mem.out): New rule.
17976 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
17977 in case of a successful seek operation.
17978 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
17979 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
17980 buffer is required.
17981 * libio/tst-bz22415.c: New test.
17982
17983 * sysdeps/ia64/fpu/libm-test-ulps: Update.
17984
17985 2017-12-12 James Clarke <jrtc27@jrtc27.com>
17986
17987 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
17988 __IPC_64 to 0 to avoid IPC_64 being set.
17989
17990 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17991
17992 [BZ #22593]
17993 * math/bits/mathcalls.h (nextafter): Remove const.
17994 (nexttoward): Likewise.
17995
17996 2017-12-12 Joseph Myers <joseph@codesourcery.com>
17997
17998 * configure.ac (--with-fp): Remove configure option.
17999 (with_fp_cond): New variable.
18000 (libc_cv_with_fp): New configure test. Use this variable instead
18001 of with_fp.
18002 * configure: Regenerated.
18003 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18004 * manual/install.texi (Configuring and compiling): Remove
18005 --without-fp.
18006 * INSTALL: Regenerated.
18007 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18008 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18009 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18010 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18011 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18012 use --without-fp to configure glibc.
18013
18014 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18015
18016 * manual/locale.texi (nl_langinfo): Fix a typo.
18017
18018 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18019
18020 [BZ #22588]
18021 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18022
18023 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18024
18025 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18026 (CFLAGS-argp-parse.c): Likewise.
18027 (CFLAGS-argp-fmtstream.c): Likewise.
18028 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18029 (CPPFLAGS-sha512-crypt.c): Likewise.
18030 (CPPFLAGS-md5-crypt.c): Likewise.
18031 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18032 (CFLAGS-stack_chk_fail_local.c): Likewise.
18033 (CFLAGS-backtrace.c): Likewise.
18034 (CFLAGS-sprintf_chk.c): Likewise.
18035 (CFLAGS-snprintf_chk.c): Likewise.
18036 (CFLAGS-vsprintf_chk.c): Likewise.
18037 (CFLAGS-vsnprintf_chk.c): Likewise.
18038 (CFLAGS-asprintf_chk.c): Likewise.
18039 (CFLAGS-vasprintf_chk.c): Likewise.
18040 (CFLAGS-obprintf_chk.c): Likewise.
18041 (CFLAGS-dprintf_chk.c): Likewise.
18042 (CFLAGS-vdprintf_chk.c): Likewise.
18043 (CFLAGS-printf_chk.c): Likewise.
18044 (CFLAGS-fprintf_chk.c): Likewise.
18045 (CFLAGS-vprintf_chk.c): Likewise.
18046 (CFLAGS-vfprintf_chk.c): Likewise.
18047 (CFLAGS-gets_chk.c): Likewise.
18048 (CFLAGS-fgets_chk.c): Likewise.
18049 (CFLAGS-fgets_u_chk.c): Likewise.
18050 (CFLAGS-fread_chk.c): Likewise.
18051 (CFLAGS-fread_u_chk.c): Likewise.
18052 (CFLAGS-swprintf_chk.c): Likewise.
18053 (CFLAGS-vswprintf_chk.c): Likewise.
18054 (CFLAGS-wprintf_chk.c): Likewise.
18055 (CFLAGS-fwprintf_chk.c): Likewise.
18056 (CFLAGS-vwprintf_chk.c): Likewise.
18057 (CFLAGS-vfwprintf_chk.c): Likewise.
18058 (CFLAGS-fgetws_chk.c): Likewise.
18059 (CFLAGS-fgetws_u_chk.c): Likewise.
18060 (CFLAGS-read_chk.c): Likewise.
18061 (CFLAGS-pread_chk.c): Likewise.
18062 (CFLAGS-pread64_chk.c): Likewise.
18063 (CFLAGS-recv_chk.c): Likewise.
18064 (CFLAGS-recvfrom_chk.c): Likewise.
18065 (CFLAGS-tst-longjmp_chk.c): Likewise.
18066 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18067 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18068 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18069 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18070 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18071 (CFLAGS-tst-chk1.c): Likewise.
18072 (CFLAGS-tst-chk2.c): Likewise.
18073 (CFLAGS-tst-chk3.c): Likewise.
18074 (CFLAGS-tst-chk4.cc): Likewise.
18075 (CFLAGS-tst-chk5.cc): Likewise.
18076 (CFLAGS-tst-chk6.cc): Likewise.
18077 (CFLAGS-tst-lfschk1.c): Likewise.
18078 (CFLAGS-tst-lfschk2.c): Likewise.
18079 (CFLAGS-tst-lfschk3.c): Likewise.
18080 (CFLAGS-tst-lfschk4.cc): Likewise.
18081 (CFLAGS-tst-lfschk5.cc): Likewise.
18082 (CFLAGS-tst-lfschk6.cc): Likewise.
18083 (CFLAGS-tst-ssp-1.c): Likewise.
18084 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18085 (CFLAGS-scandir64.c): Likewise.
18086 (CFLAGS-scandir-tail.c): Likewise.
18087 (CFLAGS-scandir64-tail.c): Likewise.
18088 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18089 (CFLAGS-dl-tunables.c): Likewise.
18090 (CFLAGS-dl-runtime.c): Likewise.
18091 (CFLAGS-dl-lookup.c): Likewise.
18092 (CFLAGS-dl-iterate-phdr.c): Likewise.
18093 (CFLAGS-vismain.c): Likewise.
18094 (CFLAGS-tst-linkall-static.c): Likewise.
18095 (CFLAGS-tst-linkall-static.c): Likewise.
18096 (CPPFLAGS-dl-load.c): Likewise.
18097 (CFLAGS-ldconfig.c): Likewise.
18098 (CFLAGS-dl-cache.c): Likewise.
18099 (CFLAGS-cache.c): Likewise.
18100 (CFLAGS-rtld.c): Likewise.
18101 (CFLAGS-multiload.c): Likewise.
18102 (CFLAGS-filtmod1.c): Likewise.
18103 (CFLAGS-tst-align.c): Likewise.
18104 (CFLAGS-tst-align2.c): Likewise.
18105 (CFLAGS-tst-alignmod.c): Likewise.
18106 (CFLAGS-tst-alignmod2.c): Likewise.
18107 (CPPFLAGS-tst-execstack.c): Likewise.
18108 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18109 (CFLAGS-tst-latepthreadmod.c): Likewise.
18110 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18111 (CFLAGS-getgrnam_r.c): Likewise.
18112 (CFLAGS-getgrent_r.c): Likewise.
18113 (CFLAGS-getgrent.c): Likewise.
18114 (CFLAGS-fgetgrent.c): Likewise.
18115 (CFLAGS-fgetgrent_r.c): Likewise.
18116 (CFLAGS-putgrent.c): Likewise.
18117 (CFLAGS-initgroups.c): Likewise.
18118 (CFLAGS-getgrgid.c): Likewise.
18119 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18120 (CFLAGS-getsgent.c): Likewise.
18121 (CFLAGS-fgetsgent.c): Likewise.
18122 (CFLAGS-fgetsgent_r.c): Likewise.
18123 (CFLAGS-putsgent.c): Likewise.
18124 (CFLAGS-getsgnam.c): Likewise.
18125 (CFLAGS-getsgnam_r.c): Likewise.
18126 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18127 (CFLAGS-iconv_charmap.c): Likewise.
18128 (CFLAGS-dummy-repertoire.c): Likewise.
18129 (CFLAGS-charmap.c): Likewise.
18130 (CFLAGS-linereader.c): Likewise.
18131 (CFLAGS-simple-hash.c): Likewise.
18132 (CFLAGS-gconv_conf.c): Likewise.
18133 (CFLAGS-iconvconfig.c): Likewise.
18134 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18135 (CFLAGS-gethstbyad.c): Likewise.
18136 (CFLAGS-gethstbynm_r.c): Likewise.
18137 (CFLAGS-gethstbynm.c): Likewise.
18138 (CFLAGS-gethstbynm2_r.c): Likewise.
18139 (CFLAGS-gethstbynm2.c): Likewise.
18140 (CFLAGS-gethstent_r.c): Likewise.
18141 (CFLAGS-gethstent.c): Likewise.
18142 (CFLAGS-rcmd.c): Likewise.
18143 (CFLAGS-getnetbynm_r.c): Likewise.
18144 (CFLAGS-getnetbynm.c): Likewise.
18145 (CFLAGS-getnetbyad_r.c): Likewise.
18146 (CFLAGS-getnetbyad.c): Likewise.
18147 (CFLAGS-getnetent_r.c): Likewise.
18148 (CFLAGS-getnetent.c): Likewise.
18149 (CFLAGS-getaliasent_r.c): Likewise.
18150 (CFLAGS-getaliasent.c): Likewise.
18151 (CFLAGS-getrpcent_r.c): Likewise.
18152 (CFLAGS-getrpcent.c): Likewise.
18153 (CFLAGS-getservent_r.c): Likewise.
18154 (CFLAGS-getservent.c): Likewise.
18155 (CFLAGS-getprtent_r.c): Likewise.
18156 (CFLAGS-getprtent.c): Likewise.
18157 (CFLAGS-either_ntoh.c): Likewise.
18158 (CFLAGS-either_hton.c): Likewise.
18159 (CFLAGS-getnetgrent.c): Likewise.
18160 (CFLAGS-getnetgrent_r.c): Likewise.
18161 (CFLAGS-tst-checks-posix.c): Likewise.
18162 (CFLAGS-tst-sockaddr.c): Likewise.
18163 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18164 (CFLAGS-tst-translit.c): Likewise.
18165 (CFLAGS-tst-gettext2.c): Likewise.
18166 (CFLAGS-tst-codeset.c): Likewise.
18167 (CFLAGS-tst-gettext3.c): Likewise.
18168 (CFLAGS-tst-gettext4.c): Likewise.
18169 (CFLAGS-tst-gettext5.c): Likewise.
18170 (CFLAGS-tst-gettext6.c): Likewise.
18171 * io/Makefile (CFLAGS-open.c): Likewise.
18172 (CFLAGS-open64.c): Likewise.
18173 (CFLAGS-creat.c): Likewise.
18174 (CFLAGS-creat64.c): Likewise.
18175 (CFLAGS-fcntl.c): Likewise.
18176 (CFLAGS-poll.c): Likewise.
18177 (CFLAGS-ppoll.c): Likewise.
18178 (CFLAGS-lockf.c): Likewise.
18179 (CFLAGS-statfs.c): Likewise.
18180 (CFLAGS-fstatfs.c): Likewise.
18181 (CFLAGS-statvfs.c): Likewise.
18182 (CFLAGS-fstatvfs.c): Likewise.
18183 (CFLAGS-fts.c): Likewise.
18184 (CFLAGS-fts64.c): Likewise.
18185 (CFLAGS-ftw.c): Likewise.
18186 (CFLAGS-ftw64.c): Likewise.
18187 (CFLAGS-lockf.c): Likewise.
18188 (CFLAGS-posix_fallocate.c): Likewise.
18189 (CFLAGS-posix_fallocate64.c): Likewise.
18190 (CFLAGS-fallocate.c): Likewise.
18191 (CFLAGS-fallocate64.c): Likewise.
18192 (CFLAGS-read.c): Likewise.
18193 (CFLAGS-write.c): Likewise.
18194 (CFLAGS-test-stat.c): Likewise.
18195 (CFLAGS-test-lfs.c): Likewise.
18196 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18197 (CFLAGS-fputc.c): Likewise.
18198 (CFLAGS-fputwc.c): Likewise.
18199 (CFLAGS-freopen64.c): Likewise.
18200 (CFLAGS-freopen.c): Likewise.
18201 (CFLAGS-fseek.c): Likewise.
18202 (CFLAGS-fseeko64.c): Likewise.
18203 (CFLAGS-fseeko.c): Likewise.
18204 (CFLAGS-ftello64.c): Likewise.
18205 (CFLAGS-ftello.c): Likewise.
18206 (CFLAGS-fwide.c): Likewise.
18207 (CFLAGS-genops.c): Likewise.
18208 (CFLAGS-getc.c): Likewise.
18209 (CFLAGS-getchar.c): Likewise.
18210 (CFLAGS-getwc.c): Likewise.
18211 (CFLAGS-getwchar.c): Likewise.
18212 (CFLAGS-iofclose.c): Likewise.
18213 (CFLAGS-iofflush.c): Likewise.
18214 (CFLAGS-iofgetpos64.c): Likewise.
18215 (CFLAGS-iofgetpos.c): Likewise.
18216 (CFLAGS-iofgets.c): Likewise.
18217 (CFLAGS-iofgetws.c): Likewise.
18218 (CFLAGS-iofputs.c): Likewise.
18219 (CFLAGS-iofputws.c): Likewise.
18220 (CFLAGS-iofread.c): Likewise.
18221 (CFLAGS-iofsetpos64.c): Likewise.
18222 (CFLAGS-iofsetpos.c): Likewise.
18223 (CFLAGS-ioftell.c): Likewise.
18224 (CFLAGS-iofwrite.c): Likewise.
18225 (CFLAGS-iogetdelim.c): Likewise.
18226 (CFLAGS-iogetline.c): Likewise.
18227 (CFLAGS-iogets.c): Likewise.
18228 (CFLAGS-iogetwline.c): Likewise.
18229 (CFLAGS-ioputs.c): Likewise.
18230 (CFLAGS-ioseekoff.c): Likewise.
18231 (CFLAGS-ioseekpos.c): Likewise.
18232 (CFLAGS-iosetbuffer.c): Likewise.
18233 (CFLAGS-iosetvbuf.c): Likewise.
18234 (CFLAGS-ioungetc.c): Likewise.
18235 (CFLAGS-ioungetwc.c): Likewise.
18236 (CFLAGS-oldfileops.c): Likewise.
18237 (CFLAGS-oldiofclose.c): Likewise.
18238 (CFLAGS-oldiofgetpos64.c): Likewise.
18239 (CFLAGS-oldiofgetpos.c): Likewise.
18240 (CFLAGS-oldiofsetpos64.c): Likewise.
18241 (CFLAGS-oldiofsetpos.c): Likewise.
18242 (CFLAGS-peekc.c): Likewise.
18243 (CFLAGS-putc.c): Likewise.
18244 (CFLAGS-putchar.c): Likewise.
18245 (CFLAGS-putwc.c): Likewise.
18246 (CFLAGS-putwchar.c): Likewise.
18247 (CFLAGS-rewind.c): Likewise.
18248 (CFLAGS-wfileops.c): Likewise.
18249 (CFLAGS-wgenops.c): Likewise.
18250 (CFLAGS-oldiofopen.c): Likewise.
18251 (CFLAGS-iofopen.c): Likewise.
18252 (CFLAGS-iofopen64.c): Likewise.
18253 (CFLAGS-oldtmpfile.c): Likewise.
18254 (CFLAGS-tst_putwc.c): Likewise.
18255 * locale/Makefile (CFLAGS-md5.c): Likewise.
18256 (CFLAGS-charmap.c): Likewise.
18257 (CFLAGS-locfile.c): Likewise.
18258 (CFLAGS-charmap-dir.c): Likewise.
18259 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18260 (CFLAGS-getpt.c): Likewise.
18261 (CFLAGS-pt_chown.c): Likewise.
18262 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18263 (CFLAGS-obstack.c): Likewise.
18264 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18265 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18266 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18267 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18268 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18269 (CFLAGS-test-tgmath.c): Likewise.
18270 (CFLAGS-test-tgmath2.c): Likewise.
18271 (CFLAGS-test-tgmath-ret.c): Likewise.
18272 (CFLAGS-test-powl.c): Likewise.
18273 (CFLAGS-test-snan.c): Likewise.
18274 (CFLAGS-test-signgam-finite.c): Likewise.
18275 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18276 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18277 (CFLAGS-test-signgam-uchar.c): Likewise.
18278 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18279 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18280 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18281 (CFLAGS-test-signgam-uint.c): Likewise.
18282 (CFLAGS-test-signgam-uint-init.c): Likewise.
18283 (CFLAGS-test-signgam-uint-static.c): Likewise.
18284 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18285 (CFLAGS-test-signgam-ullong.c): Likewise.
18286 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18287 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18288 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18289 (CFLAGS-test-math-cxx11.cc): Likewise.
18290 (CFLAGS-test-math-isinff.cc): Likewise.
18291 (CFLAGS-test-math-iszero.cc): Likewise.
18292 (CFLAGS-test-math-issignaling.cc): Likewise.
18293 (CFLAGS-test-math-iscanonical.cc): Likewise.
18294 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18295 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18296 (CFLAGS-test-flt-eval-method.c): Likewise.
18297 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18298 (CFLAGS-test-finite-macros.c): Likewise.
18299 * misc/Makefile (CFLAGS-select.c): Likewise.
18300 (CFLAGS-tsearch.c): Likewise.
18301 (CFLAGS-lsearch.c): Likewise.
18302 (CFLAGS-pselect.c): Likewise.
18303 (CFLAGS-readv.c): Likewise.
18304 (CFLAGS-writev.c): Likewise.
18305 (CFLAGS-preadv.c): Likewise.
18306 (CFLAGS-preadv64.c): Likewise.
18307 (CFLAGS-pwritev.c): Likewise.
18308 (CFLAGS-pwritev64.c): Likewise.
18309 (CFLAGS-preadv2.c): Likewise.
18310 (CFLAGS-preadv64v2.c): Likewise.
18311 (CFLAGS-pwritev2.c): Likewise.
18312 (CFLAGS-pwritev64v2.c): Likewise.
18313 (CFLAGS-usleep.c): Likewise.
18314 (CFLAGS-syslog.c): Likewise.
18315 (CFLAGS-error.c): Likewise.
18316 (CFLAGS-getpass.c): Likewise.
18317 (CFLAGS-mkstemp.c): Likewise.
18318 (CFLAGS-mkstemp64.c): Likewise.
18319 (CFLAGS-getsysstats.c): Likewise.
18320 (CFLAGS-getusershell.c): Likewise.
18321 (CFLAGS-err.c): Likewise.
18322 (CFLAGS-tst-tsearch.c): Likewise.
18323 (CFLAGS-msync.c): Likewise.
18324 (CFLAGS-fdatasync.c): Likewise.
18325 (CFLAGS-fsync.c): Likewise.
18326 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18327 (CFLAGS-unwind.c): Likewise.
18328 (CFLAGS-unwind-forcedunwind.c): Likewise.
18329 (CFLAGS-pthread_cancel.c): Likewise.
18330 (CFLAGS-pthread_setcancelstate.c): Likewise.
18331 (CFLAGS-pthread_setcanceltype.c): Likewise.
18332 (CFLAGS-cancellation.c): Likewise.
18333 (CFLAGS-libc-cancellation.c): Likewise.
18334 (CFLAGS-pthread_exit.c): Likewise.
18335 (CFLAGS-forward.c): Likewise.
18336 (CFLAGS-pthread_testcancel.c): Likewise.
18337 (CFLAGS-pthread_join.c): Likewise.
18338 (CFLAGS-pthread_timedjoin.c): Likewise.
18339 (CFLAGS-pthread_once.c): Likewise.
18340 (CFLAGS-pthread_cond_wait.c): Likewise.
18341 (CFLAGS-sem_wait.c): Likewise.
18342 (CFLAGS-sem_timedwait.c): Likewise.
18343 (CFLAGS-fcntl.c): Likewise.
18344 (CFLAGS-lockf.c): Likewise.
18345 (CFLAGS-pread.c): Likewise.
18346 (CFLAGS-pread64.c): Likewise.
18347 (CFLAGS-pwrite.c): Likewise.
18348 (CFLAGS-pwrite64.c): Likewise.
18349 (CFLAGS-wait.c): Likewise.
18350 (CFLAGS-waitpid.c): Likewise.
18351 (CFLAGS-sigwait.c): Likewise.
18352 (CFLAGS-msgrcv.c): Likewise.
18353 (CFLAGS-msgsnd.c): Likewise.
18354 (CFLAGS-tcdrain.c): Likewise.
18355 (CFLAGS-open.c): Likewise.
18356 (CFLAGS-open64.c): Likewise.
18357 (CFLAGS-pause.c): Likewise.
18358 (CFLAGS-recv.c): Likewise.
18359 (CFLAGS-send.c): Likewise.
18360 (CFLAGS-accept.c): Likewise.
18361 (CFLAGS-sendto.c): Likewise.
18362 (CFLAGS-connect.c): Likewise.
18363 (CFLAGS-recvfrom.c): Likewise.
18364 (CFLAGS-recvmsg.c): Likewise.
18365 (CFLAGS-sendmsg.c): Likewise.
18366 (CFLAGS-close.c): Likewise.
18367 (CFLAGS-read.c): Likewise.
18368 (CFLAGS-write.c): Likewise.
18369 (CFLAGS-nanosleep.c): Likewise.
18370 (CFLAGS-sigsuspend.c): Likewise.
18371 (CFLAGS-msync.c): Likewise.
18372 (CFLAGS-fdatasync.c): Likewise.
18373 (CFLAGS-fsync.c): Likewise.
18374 (CFLAGS-pt-system.c): Likewise.
18375 (CFLAGS-tst-cleanup2.c): Likewise.
18376 (CFLAGS-tst-cleanupx2.c): Likewise.
18377 (CFLAGS-flockfile.c): Likewise.
18378 (CFLAGS-ftrylockfile.c): Likewise.
18379 (CFLAGS-funlockfile.c): Likewise.
18380 (CFLAGS-tst-initializers1.c): Likewise.
18381 (CFLAGS-tst-initializers1-c89.c): Likewise.
18382 (CFLAGS-tst-initializers1-c99.c): Likewise.
18383 (CFLAGS-tst-initializers1-c11.c): Likewise.
18384 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18385 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18386 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18387 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18388 (CFLAGS-nscd_getgr_r.c): Likewise.
18389 (CFLAGS-nscd_gethst_r.c): Likewise.
18390 (CFLAGS-nscd_getai.c): Likewise.
18391 (CFLAGS-nscd_initgroups.c): Likewise.
18392 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18393 (CFLAGS-pause.c): Likewise.
18394 (CFLAGS-pread.c): Likewise.
18395 (CFLAGS-pread64.c): Likewise.
18396 (CFLAGS-pwrite.c): Likewise.
18397 (CFLAGS-pwrite64.c): Likewise.
18398 (CFLAGS-sleep.c): Likewise.
18399 (CFLAGS-wait.c): Likewise.
18400 (CFLAGS-waitid.c): Likewise.
18401 (CFLAGS-waitpid.c): Likewise.
18402 (CFLAGS-getopt.c): Likewise.
18403 (CFLAGS-wordexp.c): Likewise.
18404 (CFLAGS-sysconf.c): Likewise.
18405 (CFLAGS-pathconf.c): Likewise.
18406 (CFLAGS-fpathconf.c): Likewise.
18407 (CFLAGS-spawn.c): Likewise.
18408 (CFLAGS-spawnp.c): Likewise.
18409 (CFLAGS-spawni.c): Likewise.
18410 (CFLAGS-glob.c): Likewise.
18411 (CFLAGS-glob64.c): Likewise.
18412 (CFLAGS-getconf.c): Likewise.
18413 (CFLAGS-nanosleep.c): Likewise.
18414 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18415 (CFLAGS-getpwent.c): Likewise.
18416 (CFLAGS-getpw.c): Likewise.
18417 (CFLAGS-fgetpwent_r.c): Likewise.
18418 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18419 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18420 (CFLAGS-mq_timedreceive.c): Likewise.
18421 (CFLAGS-mq_timedsend.c): Likewise.
18422 (CFLAGS-clock_nanosleep.c): Likewise.
18423 (CFLAGS-librt-cancellation.c): Likewise.
18424 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18425 (CFLAGS-getspent.c): Likewise.
18426 (CFLAGS-fgetspent.c): Likewise.
18427 (CFLAGS-fgetspent_r.c): Likewise.
18428 (CFLAGS-putspent.c): Likewise.
18429 (CFLAGS-getspnam.c): Likewise.
18430 (CFLAGS-getspnam_r.c): Likewise.
18431 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18432 (CFLAGS-sigsuspend.c): Likewise.
18433 (CFLAGS-sigtimedwait.c): Likewise.
18434 (CFLAGS-sigwait.c): Likewise.
18435 (CFLAGS-sigwaitinfo.c): Likewise.
18436 (CFLAGS-sigreturn.c): Likewise.
18437 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18438 (CFLAGS-vfwprintf.c): Likewise.
18439 (CFLAGS-tmpfile.c): Likewise.
18440 (CFLAGS-tmpfile64.c): Likewise.
18441 (CFLAGS-tempname.c): Likewise.
18442 (CFLAGS-psignal.c): Likewise.
18443 (CFLAGS-vprintf.c): Likewise.
18444 (CFLAGS-cuserid.c): Likewise.
18445 (CFLAGS-errlist.c): Likewise.
18446 (CFLAGS-siglist.c): Likewise.
18447 (CFLAGS-scanf15.c): Likewise.
18448 (CFLAGS-scanf17.c): Likewise.
18449 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18450 (CFLAGS-msort.c): Likewise.
18451 (CFLAGS-qsort.c): Likewise.
18452 (CFLAGS-system.c): Likewise.
18453 (CFLAGS-fmtmsg.c): Likewise.
18454 (CFLAGS-strfmon.c): Likewise.
18455 (CFLAGS-strfmon_l.c): Likewise.
18456 (CFLAGS-strfromd.c): Likewise.
18457 (CFLAGS-strfromf.c): Likewise.
18458 (CFLAGS-strfroml.c): Likewise.
18459 (CFLAGS-tst-bsearch.c): Likewise.
18460 (CFLAGS-tst-qsort.c): Likewise.
18461 (CFLAGS-tst-makecontext2.c): Likewise.
18462 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18463 (CFLAGS-xnlm_prot.c): Likewise.
18464 (CFLAGS-xrstat.c): Likewise.
18465 (CFLAGS-xyppasswd.c): Likewise.
18466 (CFLAGS-xklm_prot.c): Likewise.
18467 (CFLAGS-xrex.c): Likewise.
18468 (CFLAGS-xsm_inter.c): Likewise.
18469 (CFLAGS-xmount.c): Likewise.
18470 (CFLAGS-xrusers.c): Likewise.
18471 (CFLAGS-xspray.c): Likewise.
18472 (CFLAGS-xnfs_prot.c): Likewise.
18473 (CFLAGS-xrquota.c): Likewise.
18474 (CFLAGS-xkey_prot.c): Likewise.
18475 (CFLAGS-auth_unix.c): Likewise.
18476 (CFLAGS-key_call.c): Likewise.
18477 (CFLAGS-pmap_rmt.c): Likewise.
18478 (CFLAGS-clnt_perr.c): Likewise.
18479 (CFLAGS-openchild.c): Likewise.
18480 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18481 (CFLAGS-msgsnd.c): Likewise.
18482 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18483 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18484 (CFLAGS-tzset.c): Likewise.
18485 (CFLAGS-getdate.c): Likewise.
18486 (CFLAGS-test_time.c): Likewise.
18487 (CPPFLAGS-tst-tzname.c): Likewise.
18488 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18489 (CFLAGS-zic.c): Likewise.
18490 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18491 (CFLAGS-wcswidth.c): Likewise.
18492 (CFLAGS-wcstol.c): Likewise.
18493 (CFLAGS-wcstoul.c): Likewise.
18494 (CFLAGS-wcstoll.c): Likewise.
18495 (CFLAGS-wcstoull.c): Likewise.
18496 (CFLAGS-wcstod.c): Likewise.
18497 (CFLAGS-wcstold.c): Likewise.
18498 (CFLAGS-wcstof128.c): Likewise.
18499 (CFLAGS-wcstof.c): Likewise.
18500 (CFLAGS-wcstol_l.c): Likewise.
18501 (CFLAGS-wcstoul_l.c): Likewise.
18502 (CFLAGS-wcstoll_l.c): Likewise.
18503 (CFLAGS-wcstoull_l.c): Likewise.
18504 (CFLAGS-wcstod_l.c): Likewise.
18505 (CFLAGS-wcstold_l.c): Likewise.
18506 (CFLAGS-wcstof128_l.c): Likewise.
18507 (CFLAGS-wcstof_l.c): Likewise.
18508 (CPPFLAGS-tst-wchar-h.c): Likewise.
18509 (CPPFLAGS-wcstold_l.c): Likewise.
18510
18511 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18512
18513 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18514
18515 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18516 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18517
18518 * manual/tunables.texi (Hardware Capability Tunables): Document
18519 glibc.tune.cached_memopt.
18520 * sysdeps/powerpc/cpu-features.c: New file.
18521 * sysdeps/powerpc/cpu-features.h: New file.
18522 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18523 _dl_powerpc_cpu_features.
18524 * sysdeps/powerpc/dl-tunables.list: New file.
18525 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18526 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18527 (INIT_ARCH): Initialize use_aligned_memopt.
18528 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18529 IS_IN(rtld))]: Restrict dl_platform_init availability and
18530 initialize CPU features used by tunables.
18531 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18532 Add memcpy-power8-cached.
18533 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18534 __memcpy_power8_cached.
18535 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18536 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18537 New file.
18538
18539 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18540
18541 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18542 (CFLAGS-noinl-tester.c): Likewise.
18543 (CFLAGS-tst-strlen.c): Likewise.
18544 (CFLAGS-stratcliff.c): Likewise.
18545 (CFLAGS-test-ffs.c): Likewise.
18546 (CFLAGS-tst-inlcall.c): Likewise.
18547 (CFLAGS-tst-xbzero-opt.c): Likewise.
18548 (CFLAGS-memcpy.c): Likewise.
18549 (CFLAGS-wordcopy.c): Likewise.
18550
18551 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18552
18553 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18554 Store r15 on stack and add cfi rule.
18555 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18556 Likewise.
18557
18558 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18559
18560 [BZ #22577]
18561 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18562 call.
18563
18564 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18565
18566 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18567 Add s_sinf-sse2 and s_sinf-fma.
18568 (CFLAGS-s_sinf-fma.c): New.
18569 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18570 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18571 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18572
18573 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18574
18575 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18576
18577 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18578
18579 [BZ #22568]
18580 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18581 part of result to imaginary part of argument if it is zero and the
18582 real part of the argument is not finite.
18583 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18584 of result to real part of argument if it is zero and the imaginary
18585 part of the argument is not finite.
18586
18587 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18588
18589 [BZ #22524]
18590 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18591 and to the list of locales to be built for testing.
18592 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18593 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18594 and build the collation rules upon that.
18595
18596 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18597
18598 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18599 * manual/math.texi (Mathematics): Document support for _Float32.
18600 * math/Makefile (test-types): Add float32.
18601 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18602 * stdlib/Versions (GLIBC_2.27): Likewise.
18603 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18604 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18605 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18606 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18607 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18608 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18609 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18610 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18611 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18612 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18613 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18614 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18615 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18616 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18617 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18618 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18619 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18620 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18621 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18622 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18623 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18624 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18625 Likewise.
18626 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18627 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18628 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18629 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18630 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18632 Likewise.
18633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18634 Likewise.
18635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18636 Likewise.
18637 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18638 Likewise.
18639
18640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18641 Likewise.
18642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18643 Likewise.
18644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18645 Likewise.
18646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18647 Likewise.
18648 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18649 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18650 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18651 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18652 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18653 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18654 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18655 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18656 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18657 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18658 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18659 Likewise.
18660 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18661 Likewise.
18662 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18663 Likewise.
18664 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18665 Likewise.
18666 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18667 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18668 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18669 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18670 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18671 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18672 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18673 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18674
18675 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18676
18677 * stdlib/strtof.c: Include <bits/floatn.h>
18678 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18679 and later undefine as macro. Define as weak alias if
18680 [!USE_WIDE_CHAR].
18681 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18682 and later undefine as macro. Define as weak alias if
18683 [USE_WIDE_CHAR].
18684 * stdlib/strtof_l.c: Include <bits/floatn.h>
18685 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18686 and later undefine as macro. Define as weak alias if
18687 [!USE_WIDE_CHAR].
18688 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18689 and later undefine as macro. Define as weak alias if
18690 [USE_WIDE_CHAR].
18691
18692 * stdlib/strfromf.c: Include <bits/floatn.h>.
18693 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18694 and later undefine as macro and define as weak alias.
18695
18696 * math/test-float32.h: New file.
18697
18698 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18699 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18700 (libm_alias_float_other_r): Create f32 alias.
18701 (libm_alias_float_r): Use semicolon before call to
18702 libm_alias_float_other_r.
18703
18704 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18705 second argument to libm_alias_float_other.
18706 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18707 second argument to libm_alias_float_other.
18708 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18709 argument to libm_alias_float_other.
18710
18711 [BZ #22561]
18712 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18713 real part of result for argument 0 + i * NaN.
18714 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18715 results for tests of 0 + i * NaN.
18716
18717 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18718
18719 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18720
18721 2017-12-06 David S. Miller <davem@davemloft.net>
18722
18723 * sysdeps/sparc/fpu/libm-test-ulps: Update
18724 exp_{downward,towardzero,upward} ulps.
18725
18726 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18727
18728 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18729 variables static.
18730
18731 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18732 (Y0_2D): Likewise.
18733 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18734 (Y0_2D): Likewise.
18735 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18736 (Y0_2D): Likewise.
18737 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18738 (Y0_2D): Likewise.
18739
18740 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18741
18742 [BZ #22515]
18743 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18744 and to the list of locales to be built for testing.
18745 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18746 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18747 and build the collation rules upon that.
18748
18749 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18750
18751 * NEWS: Add sinf to list of optimized functions.
18752
18753 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18754
18755 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18756 (__HAVE_FLOAT32X): Likewise.
18757 * manual/math.texi (Mathematics): Document support for _Float64
18758 and _Float32x.
18759 * math/Makefile (test-types): Add float64 and float32x.
18760 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18761 functions.
18762 * stdlib/Versions (GLIBC_2.27): Likewise.
18763 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18764 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18765 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18766 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18767 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18768 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18769 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18770 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18771 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18772 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18773 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18774 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18775 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18776 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18777 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18778 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18779 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18780 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18781 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18782 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18783 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18784 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18785 Likewise.
18786 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18787 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18788 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18789 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18790 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18791 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18792 Likewise.
18793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18794 Likewise.
18795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18796 Likewise.
18797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18798 Likewise.
18799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18800 Likewise.
18801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18802 Likewise.
18803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18804 Likewise.
18805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18806 Likewise.
18807 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18808 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18809 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18810 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18811 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18812 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18813 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18814 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18815 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18816 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18817 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18818 Likewise.
18819 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18820 Likewise.
18821 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18822 Likewise.
18823 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18824 Likewise.
18825 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18826 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18827 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18828 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18829 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18830 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18831 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18832 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18833
18834 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18835
18836 * bits/floatn-common.h: Include <bits/long-double.h>.
18837 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18838 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
18839 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18840 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
18841 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
18842 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
18843 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18844 (__builtin_huge_valf64): Use __builtin_huge_vall.
18845 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18846 (__builtin_inff64): Use __builtin_infl.
18847 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18848 (__builtin_nanf64): Use __builtin_nanl.
18849 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
18850 (__builtin_nansf64): Use __builtin_nansl.
18851
18852 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
18853 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
18854 Carlos O'Donnell <carlos@redhat.com>
18855
18856 * elf/dl-tunables.list: Add elision parameters.
18857 * manual/tunables.texi: Add entries about elision tunable.
18858 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
18859 Add callback functions to dynamically enable/disable elision.
18860 Add multiple callbacks functions to set elision parameters.
18861 Deleted __libc_enable_secure check.
18862 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
18863 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
18864 * configure: Regenerated.
18865 * configure.ac: Option enable_lock_elision was deleted.
18866 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
18867 * config.make.in: Remove references to enable_lock_elision.
18868 * manual/install.texi: Elision configure option was removed.
18869 * INSTALL: Regenerated to remove enable_lock_elision.
18870 * nptl/Makefile:
18871 Disable elision so it can verify error case for destroying a mutex.
18872 * sysdeps/powerpc/nptl/elide.h:
18873 Cleanup ENABLE_LOCK_ELISION check.
18874 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
18875 * sysdeps/s390/configure: Regenerated.
18876 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
18877 * nptl/tst-mutex8.c:
18878 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
18879 * sysdeps/powerpc/powerpc32/sysdep.h:
18880 Deleted all ENABLE_LOCK_ELISION checks.
18881 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
18882 * sysdeps/powerpc/sysdep.h: Likewise.
18883 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
18884 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
18885 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
18886 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
18887 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
18888 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
18889 enable-lock-elision.
18890
18891 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18892
18893 * stdlib/strtod.c: Include <bits/floatn.h>.
18894 (BUILD_DOUBLE): New macro.
18895 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18896 (strtof64): Define and later undefine as macro. Define as weak
18897 alias if [!USE_WIDE_CHAR].
18898 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18899 (wcstof64): Define and later undefine as macro. Define as weak
18900 alias if [USE_WIDE_CHAR].
18901 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18902 (strtof32x): Define and later undefine as macro. Define as weak
18903 alias if [!USE_WIDE_CHAR].
18904 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18905 (wcstof32x): Define and later undefine as macro. Define as weak
18906 alias if [USE_WIDE_CHAR].
18907 * stdlib/strtod_l.c: Include <bits/floatn.h>.
18908 (BUILD_DOUBLE): New macro.
18909 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18910 (strtof64_l): Define and later undefine as macro. Define as weak
18911 alias if [!USE_WIDE_CHAR].
18912 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
18913 (wcstof64_l): Define and later undefine as macro. Define as weak
18914 alias if [USE_WIDE_CHAR].
18915 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18916 (strtof32x_l): Define and later undefine as macro. Define as weak
18917 alias if [!USE_WIDE_CHAR].
18918 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
18919 (wcstof32x_l): Define and later undefine as macro. Define as weak
18920 alias if [USE_WIDE_CHAR].
18921
18922 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18923
18924 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
18925 (reduced): Use ones as double instead of integer.
18926
18927 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
18928
18929 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
18930
18931 2017-12-05 Joseph Myers <joseph@codesourcery.com>
18932
18933 * stdlib/strfromd.c: Include <bits/floatn.h>.
18934 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
18935 and later undefine as macro and define as weak alias.
18936 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
18937 Likewise.
18938
18939 * math/test-float32x.h: New file.
18940 * math/test-float64.h: Likewise.
18941
18942 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
18943 (libm_alias_double_other_r_f64): New macro.
18944 (libm_alias_double_other_r_f32x): Likewise.
18945 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
18946 libm_alias_double_other_r_f32x.
18947 (libm_alias_double_r): Use semicolon before call to
18948 libm_alias_double_other_r.
18949 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
18950 <bits/floatn.h>.
18951 (libm_alias_double_other_r_f64): New macro.
18952 (libm_alias_double_other_r_f32x): Likewise.
18953 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
18954 libm_alias_double_other_r_f32x.
18955
18956 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
18957
18958 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
18959 int.
18960 (SINF_FUNC): Likewise. Replace floor with simple casts.
18961
18962 2017-12-05 Mike FABIAN <mfabian@redhat.com>
18963
18964 [BZ #22517]
18965 * localedata/Makefile: Add et_EE.UTF-8 to test-input
18966 and to the list of locales to be built for testing.
18967 * localedata/et_EE.UTF-8.in: New file for testing the collation.
18968 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
18969 and build the collation rules upon that.
18970
18971 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
18972
18973 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
18974 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
18975 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
18976 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
18977 instead of __insn__xxx.
18978 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
18979 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
18980 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
18981 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
18982 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
18983 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
18984
18985 2017-12-05 Florian Weimer <fweimer@redhat.com>
18986
18987 Linux: Implement interfaces for memory protection keys
18988 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
18989 xsignal, xsysconf.
18990 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
18991 * support/xunistd.h (xsysconf): Declare.
18992 * support/xraise.c: New file.
18993 * support/xsigaction.c: Likewise.
18994 * support/xsignal.c: Likewise.
18995 * support/xsysconf.c: Likewise.
18996 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
18997 pkey_set, pkey_get, pkey_mprotect.
18998 [misc] (tests): Add tst-pkey.
18999 (tst-pkey): Link with -lpthread.
19000 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19001 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19002 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19003 (PKEY_DISABLE_WRITE): Define.
19004 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19005 Declare.
19006 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19007 (SEGV_PKUERR): Add.
19008 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19009 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19010 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19011 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19012 Add.
19013 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19014 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19015 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19016 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19017 * sysdeps/unix/sysv/linux/**.abilist: Update.
19018
19019 2017-12-05 Florian Weimer <fweimer@redhat.com>
19020
19021 * support/tst-test_compare.c (subprocess): Use long long instead
19022 of long argument for consistent type width across 32-bit and
19023 64-bit architectures.
19024 (do_test): Adjust expected output.
19025
19026 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19027
19028 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19029 (cosf): Define using libm_alias_float.
19030 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19031 (fabsf): Define using libm_alias_float.
19032 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19033 (fmaf): Define using libm_alias_float.
19034 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19035 (rintf): Define using libm_alias_float.
19036 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19037 (sinf): Define using libm_alias_float.
19038 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19039 <libm-alias-float.h>.
19040 (modff): Define using libm_alias_float.
19041 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19042 <libm-alias-float.h>.
19043 (logbf): Define using libm_alias_float.
19044 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19045 <libm-alias-float.h>.
19046 (ceilf): Define using libm_alias_float.
19047 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19048 <libm-alias-float.h>.
19049 (copysignf): Define using libm_alias_float.
19050 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19051 <libm-alias-float.h>.
19052 (floorf): Define using libm_alias_float.
19053 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19054 <libm-alias-float.h>.
19055 (llrintf): Define using libm_alias_float.
19056 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19057 <libm-alias-float.h>.
19058 (llroundf): Define using libm_alias_float.
19059 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19060 <libm-alias-float.h>.
19061 (lrintf): Define using libm_alias_float.
19062 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19063 <libm-alias-float.h>.
19064 (lroundf): Define using libm_alias_float.
19065 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19066 <libm-alias-float.h>.
19067 (nearbyintf): Define using libm_alias_float.
19068 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19069 <libm-alias-float.h>.
19070 (rintf): Define using libm_alias_float.
19071 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19072 <libm-alias-float.h>.
19073 (roundf): Define using libm_alias_float.
19074 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19075 <libm-alias-float.h>.
19076 (truncf): Define using libm_alias_float.
19077 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19078 Include <libm-alias-float.h>.
19079 (ceilf): Define using libm_alias_float.
19080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19081 Include <libm-alias-float.h>.
19082 (copysignf): Define using libm_alias_float.
19083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19084 Include <libm-alias-float.h>.
19085 (floorf): Define using libm_alias_float.
19086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19087 Include <libm-alias-float.h>.
19088 (llrintf): Define using libm_alias_float.
19089 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19090 Include <libm-alias-float.h>.
19091 (llroundf): Define using libm_alias_float.
19092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19093 Include <libm-alias-float.h>.
19094 (logbf): Define using libm_alias_float.
19095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19096 Include <libm-alias-float.h>.
19097 (lrintf): Define using libm_alias_float.
19098 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19099 Include <libm-alias-float.h>.
19100 (lroundf): Define using libm_alias_float.
19101 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19102 Include <libm-alias-float.h>.
19103 (modff): Define using libm_alias_float.
19104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19105 Include <libm-alias-float.h>.
19106 (roundf): Define using libm_alias_float.
19107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19108 Include <libm-alias-float.h>.
19109 (truncf): Define using libm_alias_float.
19110 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19111 <libm-alias-float.h>.
19112 (llrintf): Define using libm_alias_float.
19113 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19114 <libm-alias-float.h>.
19115 (llroundf): Define using libm_alias_float.
19116 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19117 <libm-alias-float.h>.
19118 (ceilf): Define using libm_alias_float.
19119 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19120 <libm-alias-float.h>.
19121 (floorf): Define using libm_alias_float.
19122 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19123 <libm-alias-float.h>.
19124 (llroundf): Define using libm_alias_float.
19125 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19126 <libm-alias-float.h>.
19127 (lroundf): Define using libm_alias_float.
19128 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19129 <libm-alias-float.h>.
19130 (roundf): Define using libm_alias_float.
19131 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19132 <libm-alias-float.h>.
19133 (truncf): Define using libm_alias_float.
19134 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19135 <libm-alias-float.h>.
19136 (copysignf): Define using libm_alias_float.
19137 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19138 <libm-alias-float.h>.
19139 (llrintf): Define using libm_alias_float.
19140 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19141 <libm-alias-float.h>.
19142 (llroundf): Define using libm_alias_float.
19143 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19144 <libm-alias-float.h>.
19145 (lrintf): Define using libm_alias_float.
19146 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19147 <libm-alias-float.h>.
19148 (lroundf): Define using libm_alias_float.
19149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19150 <libm-alias-float.h>.
19151 (ceilf): Define using libm_alias_float.
19152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19153 <libm-alias-float.h>.
19154 (copysignf): Define using libm_alias_float.
19155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19156 <libm-alias-float.h>.
19157 (cosf): Define using libm_alias_float.
19158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19159 <libm-alias-float.h>.
19160 (floorf): Define using libm_alias_float.
19161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19162 <libm-alias-float.h>.
19163 (llrintf): Define using libm_alias_float.
19164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19165 <libm-alias-float.h>.
19166 (llroundf): Define using libm_alias_float.
19167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19168 <libm-alias-float.h>.
19169 (logbf): Define using libm_alias_float.
19170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19171 <libm-alias-float.h>.
19172 (modff): Define using libm_alias_float.
19173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19174 <libm-alias-float.h>.
19175 (roundf): Define using libm_alias_float.
19176 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19177 <libm-alias-float.h>.
19178 (sinf): Define using libm_alias_float.
19179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19180 <libm-alias-float.h>.
19181 (truncf): Define using libm_alias_float.
19182 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19183 <libm-alias-float.h>.
19184 (ceilf): Define using libm_alias_float.
19185 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19186 <libm-alias-float.h>.
19187 (copysignf): Define using libm_alias_float.
19188 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19189 <libm-alias-float.h>.
19190 (floorf): Define using libm_alias_float.
19191 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19192 <libm-alias-float.h>.
19193 (llrintf): Define using libm_alias_float.
19194 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19195 <libm-alias-float.h>.
19196 (llroundf): Define using libm_alias_float.
19197 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19198 <libm-alias-float.h>.
19199 (nearbyintf): Define using libm_alias_float.
19200 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19201 <libm-alias-float.h>.
19202 (rintf): Define using libm_alias_float.
19203 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19204 <libm-alias-float.h>.
19205 (roundf): Define using libm_alias_float.
19206 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19207 <libm-alias-float.h>.
19208 (truncf): Define using libm_alias_float.
19209 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19210 <libm-alias-float.h>.
19211 (ceilf): Define using libm_alias_float.
19212 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19213 <libm-alias-float.h>.
19214 (floorf): Define using libm_alias_float.
19215 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19216 <libm-alias-float.h>.
19217 (llroundf): Define using libm_alias_float.
19218 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19219 <libm-alias-float.h>.
19220 (roundf): Define using libm_alias_float.
19221 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19222 <libm-alias-float.h>.
19223 (truncf): Define using libm_alias_float.
19224 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19225 <libm-alias-float.h>.
19226 (copysignf): Define using libm_alias_float.
19227 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19228 <libm-alias-float.h>.
19229 (llrintf): Define using libm_alias_float.
19230 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19231 <libm-alias-float.h>.
19232 (llroundf): Define using libm_alias_float.
19233 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19234 <libm-alias-float.h>.
19235 (cosf): Define using libm_alias_float.
19236 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19237 <libm-alias-float.h>.
19238 (llrintf): Define using libm_alias_float.
19239 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19240 <libm-alias-float.h>.
19241 (llroundf): Define using libm_alias_float.
19242 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19243 <libm-alias-float.h>.
19244 (sinf): Define using libm_alias_float.
19245
19246 2017-12-04 Florian Weimer <fweimer@redhat.com>
19247
19248 * support/check.h (TEST_COMPARE): Define.
19249 (support_test_compare_failure): Declare.
19250 * support/Makefile (libsupport-routines): Add
19251 support_test_compare_failure.
19252 (tests): Add tst-test_compare.
19253 * support /support_test_compare_failure.c: New file.
19254 * support/tst-test_compare.c: Likewise.
19255
19256 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19257
19258 [BZ #22527]
19259 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19260 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19261 available, this rewrite of the collation rules does reproduce
19262 the test file in the same order.
19263
19264 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19265
19266 [BZ #10580]
19267 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19268 digraphs in the month and day names. Using single code points for
19269 digraphs is deprecated. While there are dedicated Unicode
19270 codepoints, for the digraphs, these are included for backwards
19271 compatibility and modern texts use a sequence of Basic Latin
19272 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19273 This makes the month and day names agree exactly with CLDR now,
19274 CLDR does not use the single code points for the digraphs either.
19275
19276 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19277
19278 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19279
19280 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19281
19282 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19283 of floor.
19284
19285 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19286
19287 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19288 Define only for libc.so.
19289
19290 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19291
19292 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19293 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19294 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19295 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19296 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19297
19298 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19299
19300 [BZ #5997]
19301 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19302
19303 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19304
19305 [BZ libc/19170]
19306 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19307 PREINIT_FUNCTION_WEAK is nonzero.
19308 (gmon_initializer): New function. Put procedure label for it in
19309 .init_array section.
19310 (_init): Don't call PREINIT_FUNCTION.
19311 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19312 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19313 value when map argument is null.
19314
19315 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19316 depi instruction from PIC pc-relative sequence.
19317 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19318 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19319 (elf_machine_load_address): Likewise.
19320 (elf_machine_runtime_setup): Likewise.
19321
19322 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19323
19324 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19325 <libm-alias-double.h>.
19326 (logb): Define using libm_alias_double.
19327 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19328 <libm-alias-double.h>.
19329 (copysign): Define using libm_alias_double.
19330 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19331 <libm-alias-double.h>.
19332 (llrint): Define using libm_alias_double.
19333 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19334 <libm-alias-double.h>.
19335 (llround): Define using libm_alias_double.
19336 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19337 <libm-alias-double.h>.
19338 (lrint): Define using libm_alias_double.
19339 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19340 <libm-alias-double.h>.
19341 (lround): Define using libm_alias_double.
19342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19343 Include <libm-alias-double.h>.
19344 (copysign): Define using libm_alias_double.
19345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19346 Include <libm-alias-double.h>.
19347 (llrint): Define using libm_alias_double.
19348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19349 Include <libm-alias-double.h>.
19350 (llround): Define using libm_alias_double.
19351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19352 <libm-alias-double.h>.
19353 (logb): Define using libm_alias_double.
19354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19355 Include <libm-alias-double.h>.
19356 (lrint): Define using libm_alias_double.
19357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19358 Include <libm-alias-double.h>.
19359 (lround): Define using libm_alias_double.
19360 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19361 <libm-alias-double.h>.
19362 (llrint): Define using libm_alias_double.
19363 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19364 <libm-alias-double.h>.
19365 (llround): Define using libm_alias_double.
19366 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19367 <libm-alias-double.h>.
19368 (llround): Define using libm_alias_double.
19369 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19370 <libm-alias-double.h>.
19371 (lround): Define using libm_alias_double.
19372 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19373 <libm-alias-double.h>.
19374 (copysign): Define using libm_alias_double.
19375 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19376 <libm-alias-double.h>.
19377 (llrint): Define using libm_alias_double.
19378 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19379 <libm-alias-double.h>.
19380 (llround): Define using libm_alias_double.
19381 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19382 <libm-alias-double.h>.
19383 (lrint): Define using libm_alias_double.
19384 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19385 <libm-alias-double.h>.
19386 (lround): Define using libm_alias_double.
19387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19388 <libm-alias-double.h>.
19389 (copysign): Define using libm_alias_double.
19390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19391 <libm-alias-double.h>.
19392 (llrint): Define using libm_alias_double.
19393 (lrint): Likewise.
19394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19395 <libm-alias-double.h>.
19396 (llround): Define using libm_alias_double.
19397 (lround): Likewise.
19398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19399 <libm-alias-double.h>.
19400 (logb): Define using libm_alias_double.
19401 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19402 <libm-alias-double.h>.
19403 (copysign): Define using libm_alias_double.
19404 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19405 <libm-alias-double.h>.
19406 (llrint): Define using libm_alias_double.
19407 (lrint): Likewise.
19408 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19409 <libm-alias-double.h>.
19410 (llround): Define using libm_alias_double.
19411 (lround): Likewise.
19412 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19413 <libm-alias-double.h>.
19414 (llround): Define using libm_alias_double.
19415 (lround): Likewise.
19416 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19417 <libm-alias-double.h>.
19418 (copysign): Define using libm_alias_double.
19419 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19420 <libm-alias-double.h>.
19421 (llrint): Define using libm_alias_double.
19422 (lrint): Likewise.
19423 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19424 <libm-alias-double.h>.
19425 (llround): Define using libm_alias_double.
19426 (lround): Likewise.
19427 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19428 <libm-alias-double.h>.
19429 (llrint): Define using libm_alias_double.
19430 (lrint): Likewise.
19431 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19432 <libm-alias-double.h>.
19433 (llround): Define using libm_alias_double.
19434 (lround): Likewise.
19435
19436 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19437
19438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19439 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19440 compat symbol based on llround.
19441
19442 * sysdeps/powerpc/power7/fpu/s_logb.c
19443 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19444 symbol based on __logb, not on logb.
19445 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19446 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19448 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19449
19450 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19451 (rint): Define using libm_alias_double.
19452 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19453 <libm-alias-double.h>.
19454 (modf): Define using libm_alias_double.
19455 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19456 <libm-alias-double.h>.
19457 (ceil): Define using libm_alias_double.
19458 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19459 <libm-alias-double.h>.
19460 (floor): Define using libm_alias_double.
19461 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19462 <libm-alias-double.h>.
19463 (nearbyint): Define using libm_alias_double.
19464 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19465 <libm-alias-double.h>.
19466 (rint): Define using libm_alias_double.
19467 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19468 <libm-alias-double.h>.
19469 (round): Define using libm_alias_double.
19470 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19471 <libm-alias-double.h>.
19472 (trunc): Define using libm_alias_double.
19473 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19474 <libm-alias-double.h>.
19475 (ceil): Define using libm_alias_double.
19476 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19477 Include <libm-alias-double.h>.
19478 (floor): Define using libm_alias_double.
19479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19480 <libm-alias-double.h>.
19481 (modf): Define using libm_alias_double.
19482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19483 Include <libm-alias-double.h>.
19484 (round): Define using libm_alias_double.
19485 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19486 Include <libm-alias-double.h>.
19487 (trunc): Define using libm_alias_double.
19488 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19489 <libm-alias-double.h>.
19490 (ceil): Define using libm_alias_double.
19491 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19492 <libm-alias-double.h>.
19493 (floor): Define using libm_alias_double.
19494 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19495 <libm-alias-double.h>.
19496 (round): Define using libm_alias_double.
19497 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19498 <libm-alias-double.h>.
19499 (trunc): Define using libm_alias_double.
19500 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19501 <libm-alias-double.h>.
19502 (ceil): Define using libm_alias_double.
19503 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19504 <libm-alias-double.h>.
19505 (floor): Define using libm_alias_double.
19506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19507 <libm-alias-double.h>.
19508 (modf): Define using libm_alias_double.
19509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19510 <libm-alias-double.h>.
19511 (round): Define using libm_alias_double.
19512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19513 <libm-alias-double.h>.
19514 (trunc): Define using libm_alias_double.
19515 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19516 <libm-alias-double.h>.
19517 (ceil): Define using libm_alias_double.
19518 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19519 <libm-alias-double.h>.
19520 (floor): Define using libm_alias_double.
19521 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19522 <libm-alias-double.h>.
19523 (nearbyint): Define using libm_alias_double.
19524 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19525 <libm-alias-double.h>.
19526 (rint): Define using libm_alias_double.
19527 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19528 <libm-alias-double.h>.
19529 (round): Define using libm_alias_double.
19530 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19531 <libm-alias-double.h>.
19532 (trunc): Define using libm_alias_double.
19533 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19534 <libm-alias-double.h>.
19535 (ceil): Define using libm_alias_double.
19536 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19537 <libm-alias-double.h>.
19538 (floor): Define using libm_alias_double.
19539 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19540 <libm-alias-double.h>.
19541 (round): Define using libm_alias_double.
19542 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19543 <libm-alias-double.h>.
19544 (trunc): Define using libm_alias_double.
19545
19546 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19547 (fabs): Define using libm_alias_double.
19548 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19549 (fma): Define using libm_alias_double.
19550 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19551 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19552 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19553 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19554
19555 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19556
19557 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19558
19559 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19560 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19561 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19562
19563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19564 due redirect macro.
19565
19566 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19567
19568 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19569
19570 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19571
19572 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19573 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19574 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19575 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19576
19577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19578 (libm-sysdep_routines): Add s_nearbyintf-generic and
19579 s_nearbyint-generic.
19580 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19581 New file.
19582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19584 Likewise.
19585 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19586 Likewise.
19587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19588 file.
19589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19590 Likewise.
19591
19592 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19593 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19595 file.
19596 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19598 Likewise.
19599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19602
19603 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19604 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19605 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19606 file.
19607 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19608 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19609 Likewise.
19610 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19611 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19612 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19613
19614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19615 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19616 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19617 file.
19618 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19620 Likewise.
19621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19624
19625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19626 (sysdep_calls): New rule.
19627 (sysdep_routines): Use sysdep_calls as base.
19628 (libm-sysdep_routines): Add generic rule for symbols shared with
19629 libc. Add s_copysign-generic and s_copysign-generic objects.
19630 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19631 New file.
19632 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19634 Likewise.
19635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19638
19639 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19640
19641 [BZ #22519]
19642 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19643 the list of locales to be built for testing.
19644 * localedata/is_IS.UTF-8.in: New file.
19645 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19646 on iso14651_t1.
19647
19648 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19649
19650 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19651 <libm-alias-float.h>.
19652 (fabsf): Define using libm_alias_float.
19653
19654 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19655
19656 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19657
19658 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19659
19660 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19661 <libm-alias-float.h>.
19662 (fabsf): Define using libm_alias_float.
19663 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19664 <libm-alias-float.h>.
19665 (lrintf): Define using libm_alias_float.
19666 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19667 <libm-alias-float.h>.
19668 (rintf): Define using libm_alias_float.
19669
19670 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19671 <libm-alias-double.h>.
19672 (fabs): Define using libm_alias_double.
19673 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19674 <libm-alias-double.h>.
19675 (lrint): Define using libm_alias_double.
19676 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19677 <libm-alias-double.h>.
19678 (rint): Define using libm_alias_double.
19679
19680 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19681 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19682 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19683 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19684 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19685 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19686 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19687 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19688 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19689 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19690 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19691 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19692 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19693 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19694 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19695 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19696 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19697 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19698 s_atan_template.c.
19699 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19700 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19701 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19702 s_ceil_template.c.
19703 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19704 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19705 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19706 s_cos_template.c.
19707 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19708 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19709 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19710 s_expm1_template.c.
19711 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19712 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19713 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19714 s_fabs_template.c.
19715 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19716 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19717 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19718 s_floor_template.c.
19719 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19720 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19721 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19722 s_frexp_template.c.
19723 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19724 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19725 s_lrint_template.c.
19726 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19727 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19728 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19729 s_modf_template.c.
19730 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19731 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19732 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19733 s_nearbyint_template.c.
19734 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19735 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19736 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19737 s_remquo_template.c.
19738 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19739 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19740 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19741 s_rint_template.c.
19742 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19743 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19744 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19745 s_sin_template.c.
19746 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19747 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19748 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19749 s_sincos_template.c.
19750 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19751 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19752 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19753 s_tan_template.c.
19754 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19755 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19756 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19757 s_tanh_template.c.
19758 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19759 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19760 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19761 s_trunc_template.c.
19762 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19763 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19764 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19765 s_atan.c instead of including s_atan.c.
19766 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19767 s_atanf.c instead of including s_atanf.c.
19768 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19769 s_atanl.c instead of including s_atanl.c.
19770 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19771 instead of s_atan.c.
19772 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19773 instead of s_atanf.c.
19774 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
19775 instead of s_atanl.c.
19776
19777 * scripts/update-copyrights: Do not handle intl/plural.c
19778 specially.
19779
19780 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
19781
19782 [BZ #22432]
19783 * configure.ac (BISON): Require to be present.
19784 * configure: Regenerated.
19785 * intl/Makefile (generated): Add plural.c.
19786 [$(BISON) != no]: Make code unconditional.
19787 (plural.c): Change rule to $(objpfx)plural.c.
19788 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
19789 * intl/plural.c: Remove.
19790 * manual/install.texi (Tools for Compilation): Document bison as
19791 required.
19792 * INSTALL: Regenerated.
19793
19794 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19795
19796 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
19797 <libm-alias-double.h>.
19798 (llrint): Define using libm_alias_double.
19799 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
19800 <libm-alias-float.h>.
19801 (llrintf): Define using libm_alias_float.
19802 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
19803 <libm-alias-ldouble.h>.
19804 (llrintl): Define using libm_alias_ldouble.
19805
19806 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
19807 declare_mgen_alias instead of weak_alias.
19808 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
19809 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
19810 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
19811
19812 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19813
19814 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19815 Add add_n-generic.
19816 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
19817 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
19818 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
19819
19820 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19821 Add submul_1-generic.
19822 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
19823 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
19824 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
19825
19826 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19827 Add addmul_1-generic.
19828 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
19829 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
19830 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
19831
19832 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19833 Add sub_n-generic.
19834 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
19835 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
19836 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
19837
19838 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
19839 Add mul_1-generic.
19840 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
19841 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
19842 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
19843
19844 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19845
19846 According to CLDR, collation rules for Serbian and Bosnian
19847 should be the same as for Croatian.
19848
19849 [BZ #22534]
19850 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
19851 and to the list of locales to be built for testing.
19852 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19853 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
19854 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
19855 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
19856
19857 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19858
19859 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
19860 to make test case pass.
19861 * localedata/hr_HR.UTF-8.in: Add more test strings.
19862
19863 2017-11-30 Mike FABIAN <mfabian@redhat.com>
19864
19865 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
19866
19867 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19868
19869 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
19870 the list of locales to built for testing.
19871 * localedata/hr_HR.UTF-8.in: New file.
19872
19873 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
19874
19875 [BZ #10580]
19876 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
19877 iso14651_t1.
19878 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
19879 CLDR (except use ligatures for the digraphs, CLDR does not use
19880 the ligatures), add first_workday, some fixes in the date and time
19881 formats.
19882 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
19883 for Đ and đ.
19884 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
19885 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
19886 Add int_p_cs_precedes and int_n_cs_precedes.
19887 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
19888 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
19889 LC_MONETARY now).
19890 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
19891 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
19892 name_miss.
19893 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
19894 and lang_lib. Change postal_fmt.
19895
19896 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19897
19898 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
19899 <setjmp.h>.
19900 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19901 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
19902 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
19903 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
19904 * sysdeps/generic/setjmpP.h: New file.
19905 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
19906 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
19907 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
19908 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
19909 Add jmp_buf-ssp.sym.
19910 (tests): Add tst-saved_mask-1.
19911
19912 2017-11-30 Arjun Shankar <arjun@redhat.com>
19913
19914 [BZ #22375]
19915 CVE-2017-17426
19916 * malloc/malloc.c (__libc_malloc): Use checked_request2size
19917 instead of request2size.
19918
19919 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19920
19921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
19922 (__lllrint): Remove alias.
19923 (lllrint): Likewise.
19924 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
19925 (__lllrintf): Likewise.
19926 (lllrintf): Likewise.
19927
19928 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
19929 <libm-alias-float.h>.
19930 (copysignf): Define using libm_alias_float.
19931 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
19932 <libm-alias-float.h>.
19933 (fabsf): Define using libm_alias_float.
19934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
19935 Include <libm-alias-float.h>.
19936 (copysignf): Define using libm_alias_float.
19937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
19938 <libm-alias-float.h>.
19939 (fabsf): Define using libm_alias_float.
19940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
19941 <libm-alias-float.h>.
19942 (fdimf): Define using libm_alias_float.
19943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
19944 <libm-alias-float.h>.
19945 (fmaf): Define using libm_alias_float.
19946 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
19947 <libm-alias-float.h>.
19948 (llrintf): Define using libm_alias_float.
19949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19950 Include <libm-alias-float.h>.
19951 (nearbyintf): Define using libm_alias_float.
19952 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
19953 <libm-alias-float.h>.
19954 (rintf): Define using libm_alias_float.
19955 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
19956 <libm-alias-float.h>.
19957 (llrintf): Define using libm_alias_float.
19958 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
19959 <libm-alias-float.h>.
19960 (lrintf): Define using libm_alias_float.
19961 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
19962 <libm-alias-float.h>.
19963 (nearbyintf): Define using libm_alias_float.
19964 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
19965 <libm-alias-float.h>.
19966 (rintf): Define using libm_alias_float.
19967 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
19968 <libm-alias-float.h>.
19969 (ceilf): Define using libm_alias_float.
19970 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
19971 <libm-alias-float.h>.
19972 (floorf): Define using libm_alias_float.
19973 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
19974 <libm-alias-float.h>.
19975 (fmaf): Define using libm_alias_float.
19976 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
19977 <libm-alias-float.h>.
19978 (lrintf): Define using libm_alias_float.
19979 (llrintf): Likewise.
19980 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
19981 <libm-alias-float.h>.
19982 (nearbyintf): Define using libm_alias_float.
19983 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
19984 <libm-alias-float.h>.
19985 (rintf): Define using libm_alias_float.
19986 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
19987 <libm-alias-float.h>.
19988 (truncf): Define using libm_alias_float.
19989 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
19990 <libm-alias-float.h>.
19991 (copysignf): Define using libm_alias_float.
19992 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
19993 <libm-alias-float.h>.
19994 (fabsf): Define using libm_alias_float.
19995 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
19996 <libm-alias-float.h>.
19997 (lrintf): Define using libm_alias_float.
19998 (llrintf): Likewise.
19999 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20000 <libm-alias-float.h>.
20001 (nearbyintf): Define using libm_alias_float.
20002 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20003 <libm-alias-float.h>.
20004 (rintf): Define using libm_alias_float.
20005
20006 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20007
20008 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20009 <libm-alias-double.h>.
20010 (copysign): Define using libm_alias_double.
20011 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20012 <libm-alias-double.h>.
20013 (fabs): Define using libm_alias_double.
20014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20015 Include <libm-alias-double.h>.
20016 (copysign): Define using libm_alias_double.
20017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20018 <libm-alias-double.h>.
20019 (fabs): Define using libm_alias_double.
20020 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20021 <libm-alias-double.h>.
20022 (fdim): Define using libm_alias_double.
20023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20024 <libm-alias-double.h>.
20025 (fma): Define using libm_alias_double.
20026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20027 <libm-alias-double.h>.
20028 (llrint): Define using libm_alias_double.
20029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20030 Include <libm-alias-double.h>.
20031 (nearbyint): Define using libm_alias_double.
20032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20033 <libm-alias-double.h>.
20034 (rint): Define using libm_alias_double.
20035 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20036 <libm-alias-double.h>.
20037 (fabs): Define using libm_alias_double.
20038 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20039 <libm-alias-double.h>.
20040 (llrint): Define using libm_alias_double.
20041 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20042 <libm-alias-double.h>.
20043 (nearbyint): Define using libm_alias_double.
20044 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20045 <libm-alias-double.h>.
20046 (rint): Define using libm_alias_double.
20047 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20048 <libm-alias-double.h>.
20049 (ceil): Define using libm_alias_double.
20050 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20051 <libm-alias-double.h>.
20052 (floor): Define using libm_alias_double.
20053 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20054 <libm-alias-double.h>.
20055 (fma): Define using libm_alias_double.
20056 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20057 <libm-alias-double.h>.
20058 (lrint): Define using libm_alias_double.
20059 (llrint): Likewise.
20060 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20061 <libm-alias-double.h>.
20062 (nearbyint): Define using libm_alias_double.
20063 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20064 <libm-alias-double.h>.
20065 (rint): Define using libm_alias_double.
20066 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20067 <libm-alias-double.h>.
20068 (trunc): Define using libm_alias_double.
20069 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20070 <libm-alias-double.h>.
20071 (copysign): Define using libm_alias_double.
20072 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20073 <libm-alias-double.h>.
20074 (fabs): Define using libm_alias_double.
20075 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20076 <libm-alias-double.h>.
20077 (lrint): Define using libm_alias_double.
20078 (llrint): Likewise.
20079 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20080 <libm-alias-double.h>.
20081 (nearbyint): Define using libm_alias_double.
20082 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20083 <libm-alias-double.h>.
20084 (rint): Define using libm_alias_double.
20085
20086 [BZ #22229]
20087 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20088 <math_ldbl_opt.h>.
20089 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20090
20091 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20092 SPARC --disable-multi-arch glibc variants.
20093
20094 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20095 <libm-alias-float.h>.
20096 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20097 if [SHARED].
20098 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20099 <libm-alias-float.h>.
20100 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20101 if [SHARED].
20102 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20103 <libm-alias-float.h>.
20104 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20105 if [SHARED].
20106 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20107 <libm-alias-float.h>.
20108 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20109 if [SHARED].
20110 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20111 <libm-alias-float.h>.
20112 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20113 if [SHARED].
20114 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20115 <libm-alias-float.h>.
20116 (ceilf): Define using libm_alias_float.
20117 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20118 <libm-alias-float.h>.
20119 (floorf): Define using libm_alias_float.
20120 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20121 <libm-alias-float.h>.
20122 (fmaf): Define using libm_alias_float.
20123 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20124 <libm-alias-float.h>.
20125 (nearbyintf): Define using libm_alias_float.
20126 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20127 <libm-alias-float.h>.
20128 (rintf): Define using libm_alias_float.
20129 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20130 <libm-alias-float.h>.
20131 (truncf): Define using libm_alias_float.
20132 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20133 (copysignf): Define using libm_alias_float.
20134 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20135 (cosf): Define using libm_alias_float.
20136 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20137 (fabsf): Define using libm_alias_float.
20138 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20139 (fmaxf): Define using libm_alias_float.
20140 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20141 (fminf): Define using libm_alias_float.
20142 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20143 (llrintf): Define using libm_alias_float.
20144 [!__ILP32__] (lrintf): Likewise.
20145 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20146 (sincosf): Define using libm_alias_float.
20147 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20148 (sinf): Define using libm_alias_float.
20149 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20150 (lrintf): Define using libm_alias_float.
20151
20152 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20153 <libm-alias-double.h>.
20154 (atan): Define using libm_alias_double.
20155 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20156 <libm-alias-double.h>.
20157 (ceil): Define using libm_alias_double.
20158 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20159 <libm-alias-double.h>.
20160 (floor): Define using libm_alias_double.
20161 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20162 <libm-alias-double.h>.
20163 (fma): Define using libm_alias_double.
20164 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20165 <libm-alias-double.h>.
20166 (nearbyint): Define using libm_alias_double.
20167 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20168 <libm-alias-double.h>.
20169 (rint): Define using libm_alias_double.
20170 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20171 <libm-alias-double.h>.
20172 (sin): Define using libm_alias_double.
20173 (cos): Likewise.
20174 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20175 <libm-alias-double.h>.
20176 (tan): Define using libm_alias_double.
20177 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20178 <libm-alias-double.h>.
20179 (trunc): Define using libm_alias_double.
20180 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20181 (copysign): Define using libm_alias_double.
20182 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20183 (fabs): Define using libm_alias_double.
20184 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20185 (fmax): Define using libm_alias_double.
20186 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20187 (fmin): Define using libm_alias_double.
20188 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20189 (llrint): Define using libm_alias_double.
20190 [!__ILP32__] (lrint): Likewise.
20191 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20192 (lrint): Define using libm_alias_double.
20193
20194 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20195
20196 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20197 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20198 objects.
20199 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20200 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20201 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20202 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20203 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20204 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20205
20206 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20207 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20208 objects.
20209 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20210 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20211 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20212 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20213 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20214 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20215
20216 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20217 (libm-sysdep_routines): Add s_nearbyint-generic and
20218 s_nearbyintf-generic objects.
20219 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20220 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20221 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20222 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20223 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20224 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20225
20226 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20227 Add s_finitef-generic and s_finite-generic objects.
20228 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20229 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20230 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20231 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20232 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20233 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20234
20235 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20236 Add s_isinff-generic and s_isinf-generic objects.
20237 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20238 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20239 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20240 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20241 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20242 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20243
20244 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20245 Add s_isnanf-generic and s_isnan-generic objects.
20246 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20247 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20248 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20249 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20250 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20251 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20252
20253 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20254 macro.
20255 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20256 rule.
20257 (sysdep_routines): Use sysdep_calls as base.
20258 (libm-sysdep_routines): Add generic rule for symbols shared with
20259 libc. Add s_signbit-generic and s_signbitf-generic objects.
20260 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20261 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20262 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20263 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20264 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20265 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20266
20267 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20268
20269 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20270 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20271 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20272 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20273 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20274 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20275 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20276 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20277 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20278 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20279 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20280 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20281 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20282 libm_alias_float_r.
20283 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20284 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20285 (logf): Likewise.
20286 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20287 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20288 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20289 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20290 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20291 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20292 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20293 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20294 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20295 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20296 libm_alias_float.
20297 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20298 (cosf): Likewise.
20299 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20300 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20301 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20302 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20303 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20304 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20305 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20306 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20307 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20308 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20309 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20310 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20311 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20312 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20313 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20314 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20315 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20316 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20317 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20318 libm_alias_float.
20319 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20320 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20321 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20322 * sysdeps/ia64/fpu/w_lgammaf_main.c
20323 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20324 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20325
20326 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20327 Alexandre Oliva <aoliva@redhat.com>
20328
20329 [BZ #17750]
20330 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20331 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20332 accents sorting.
20333 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20334 sorting.
20335 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20336 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20337 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20338 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20339 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20340 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20341 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20342 instead of “ifdef DIACRIT_BACKWARD”.
20343
20344 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20345
20346 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20347 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20348 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20349 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20350 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20351 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20352 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20353 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20354 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20355 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20356 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20357 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20358 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20359 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20360 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20361 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20362 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20363 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20364 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20365 ($(have-as-vis3) == yes): Remove conditional.
20366 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20367 Likewise.
20368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20369 file.
20370 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20371 file.
20372 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20373 file.
20374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20375 file.
20376 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20377 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20378 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20379 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20380 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20381 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20382 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20383 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20384
20385 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20386
20387 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20388 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20389 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20390 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20391 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20392 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20393 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20394 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20395 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20396 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20397 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20398 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20399 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20400 libm_alias_double_r.
20401 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20402 (log): Likewise.
20403 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20404 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20405 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20406 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20407 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20408 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20409 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20410 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20411 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20412 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20413 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20414 libm_alias_double.
20415 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20416 (cos): Likewise.
20417 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20418 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20419 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20420 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20421 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20422 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20423 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20424 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20425 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20426 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20427 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20428 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20429 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20430 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20431 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20432 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20433 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20434 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20435 libm_alias_double.
20436 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20437 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20438 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20439 * sysdeps/ia64/fpu/w_lgamma_main.c
20440 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20441 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20442
20443 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20444
20445 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20446 address of $global$ into %dp register earlier. Use pc-relative
20447 instruction sequence for PIC case.
20448
20449 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20450
20451 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20452 (asinhf): Define using libm_alias_float.
20453 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20454 (atanf): Define using libm_alias_float.
20455 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20456 (cbrtf): Define using libm_alias_float.
20457 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20458 (ceilf): Define using libm_alias_float.
20459 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20460 (copysignf): Define using libm_alias_float.
20461 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20462 (expm1f): Define using libm_alias_float.
20463 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20464 (fabsf): Define using libm_alias_float.
20465 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20466 (floorf): Define using libm_alias_float.
20467 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20468 (fmaxf): Define using libm_alias_float.
20469 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20470 (fminf): Define using libm_alias_float.
20471 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20472 (frexpf): Define using libm_alias_float.
20473 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20474 (llrintf): Define using libm_alias_float.
20475 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20476 (logbf): Define using libm_alias_float.
20477 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20478 (lrintf): Define using libm_alias_float.
20479 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20480 (nearbyintf): Define using libm_alias_float.
20481 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20482 (remquof): Define using libm_alias_float.
20483 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20484 (rintf): Define using libm_alias_float.
20485 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20486 (truncf): Define using libm_alias_float.
20487 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20488 <libm-alias-float.h>.
20489 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20490 if [SHARED].
20491 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20492 <libm-alias-float.h>.
20493 (expf): Define using libm_alias_float, or libm_alias_float_other
20494 if [SHARED].
20495 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20496 <libm-alias-float.h>.
20497 (log2f): Define using libm_alias_float, or libm_alias_float_other
20498 if [SHARED].
20499 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20500 <libm-alias-float.h>.
20501 (logf): Define using libm_alias_float, or libm_alias_float_other
20502 if [SHARED].
20503 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20504 <libm-alias-float.h>.
20505 (powf): Define using libm_alias_float, or libm_alias_float_other
20506 if [SHARED].
20507 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20508 <libm-alias-float.h>.
20509 (cosf): Define using libm_alias_float.
20510 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20511 <libm-alias-float.h>.
20512 (sincosf): Define using libm_alias_float.
20513 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20514 <libm-alias-float.h>.
20515 (sinf): Define using libm_alias_float.
20516 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20517 (fmaxf): Define using libm_alias_float.
20518 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20519 (fminf): Define using libm_alias_float.
20520 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20521 <libm-alias-float.h>.
20522 (fmaf): Define using libm_alias_float.
20523
20524 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20525 (asinh): Define using libm_alias_double.
20526 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20527 (atan): Define using libm_alias_double.
20528 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20529 (cbrt): Define using libm_alias_double.
20530 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20531 (ceil): Define using libm_alias_double.
20532 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20533 (copysign): Define using libm_alias_double.
20534 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20535 (expm1): Define using libm_alias_double.
20536 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20537 (fabs): Define using libm_alias_double.
20538 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20539 (fdim): Define using libm_alias_double.
20540 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20541 (floor): Define using libm_alias_double.
20542 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20543 (fmax): Define using libm_alias_double.
20544 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20545 (fmin): Define using libm_alias_double.
20546 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20547 (frexp): Define using libm_alias_double.
20548 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20549 (llrint): Define using libm_alias_double.
20550 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20551 (logb): Define using libm_alias_double.
20552 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20553 (lrint): Define using libm_alias_double.
20554 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20555 (nearbyint): Define using libm_alias_double.
20556 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20557 (remquo): Define using libm_alias_double.
20558 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20559 (rint): Define using libm_alias_double.
20560 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20561 (trunc): Define using libm_alias_double.
20562 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20563 (fmax): Define using libm_alias_double.
20564 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20565 (fmin): Define using libm_alias_double.
20566 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20567 (fma): Define using libm_alias_double.
20568
20569 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20570
20571 [BZ #22370]
20572 * elf/dl-hwcaps.c (ROUND): Removed.
20573 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20574 and ELF_NOTE_NEXT_OFFSET.
20575 * elf/dl-load.c (ROUND): Removed.
20576 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20577 * elf/readelflib.c (ROUND): Removed.
20578 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20579 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20580 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20581 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20582
20583 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20584
20585 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20586 [!__fmaf] (fmaf): Define using libm_alias_float.
20587
20588 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20589 [!__fma] (fma): Define using libm_alias_double.
20590 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20591
20592 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20593
20594 [BZ #22336]
20595 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20596 and implement the collation rules for cs from CLDR on top of that.
20597 * Makefile: Add cs_CZ.UTF-8 to test-input.
20598 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20599
20600 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20601
20602 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20603
20604 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20605 Icarus Sparry <icarus.w.sparry@intel.com>
20606
20607 * benchtests/Makefile:Add BENCHSET to allow subsets of
20608 benchmarks to be run.
20609 * benchtests/README: Add documentation for: Running subsets of
20610 benchmarks.
20611
20612 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20613
20614 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20615 range of tests names.
20616
20617 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20618 result from property and remove "max", min" and "mean" from
20619 required properties based on benchtests/bench-skeleton.c.
20620
20621 2017-11-28 Florian Weimer <fweimer@redhat.com>
20622
20623 [BZ #20826]
20624 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20625 due to Internet requirement.
20626 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20627 tst-getaddrinfo5.
20628 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20629
20630 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20631
20632 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20633 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20634 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20635 (sysdep_routines): Add memset-ultra1.
20636 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20637 file.
20638 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20639 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20640 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20641 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20642 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20643 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20644 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20645 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20646
20647 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20648 file.
20649 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20650 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20651 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20652 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20653 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20654 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20655 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20656 macro.
20657 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20658 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20659 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20660 (sysdep_routines): Add memcpy-ultra1.
20661 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20662 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20663
20664 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20665
20666 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20667 (cfloat_versions): Take function argument without trailing 'f'.
20668 Call libm_alias_float_other.
20669 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20670 * sysdeps/alpha/fpu/cargf.c: Likewise.
20671 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20672 * sysdeps/alpha/fpu/conjf.c: Likewise.
20673 * sysdeps/alpha/fpu/crealf.c: Likewise.
20674 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20675 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20676 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20677 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20678 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20679 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20680 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20681 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20682 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20683 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20684 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20685 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20686 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20687 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20688 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20689 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20690 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20691 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20692 (clog10f): Use libm_alias_float_other.
20693 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20694 (ceilf): Define using libm_alias_float.
20695 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20696 (copysignf): Define using libm_alias_float.
20697 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20698 (fabsf): Define using libm_alias_float.
20699 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20700 (floorf): Define using libm_alias_float.
20701 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20702 (fmaxf): Define using libm_alias_float.
20703 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20704 (fminf): Define using libm_alias_float.
20705 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20706 (lrintf): Define using libm_alias_float.
20707 (llrintf): Likewise.
20708 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20709 (lroundf): Define using libm_alias_float.
20710 (llroundf): Likewise.
20711 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20712 (rintf): Define using libm_alias_float.
20713 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20714 (truncf): Define using libm_alias_float.
20715
20716 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20717 (ceilf): Define using libm_alias_float.
20718 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20719 (floorf): Define using libm_alias_float.
20720 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20721 (fmaf): Define using libm_alias_float.
20722 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20723 (fmaxf): Define using libm_alias_float.
20724 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20725 (fminf): Define using libm_alias_float.
20726 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20727 (llrintf): Define using libm_alias_float.
20728 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20729 (llroundf): Define using libm_alias_float.
20730 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20731 (lrintf): Define using libm_alias_float.
20732 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20733 (lroundf): Define using libm_alias_float.
20734 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20735 <libm-alias-float.h>.
20736 (nearbyintf): Define using libm_alias_float.
20737 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20738 (rintf): Define using libm_alias_float.
20739 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20740 (roundf): Define using libm_alias_float.
20741 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20742 (truncf): Define using libm_alias_float.
20743
20744 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20745 (ceil): Define using libm_alias_double.
20746 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20747 (copysign): Define using libm_alias_double.
20748 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20749 (fabs): Define using libm_alias_double.
20750 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20751 (floor): Define using libm_alias_double.
20752 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20753 (fmax): Define using libm_alias_double.
20754 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20755 (fmin): Define using libm_alias_double.
20756 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20757 (lrint): Define using libm_alias_double.
20758 (llrint): Likewise.
20759 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20760 (lround): Define using libm_alias_double.
20761 (llround): Likewise.
20762 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20763 (rint): Define using libm_alias_double.
20764 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20765 (trunc): Define using libm_alias_double.
20766
20767 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20768 (libm_alias_double_r): Add semicolon after weak_alias call.
20769
20770 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20771
20772 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20773 (ceil): Define using libm_alias_double.
20774 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
20775 (floor): Define using libm_alias_double.
20776 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
20777 (fma): Define using libm_alias_double.
20778 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
20779 (fmax): Define using libm_alias_double.
20780 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
20781 (fmin): Define using libm_alias_double.
20782 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
20783 (llrint): Define using libm_alias_double.
20784 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
20785 (llround): Define using libm_alias_double.
20786 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
20787 (lrint): Define using libm_alias_double.
20788 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
20789 (lround): Define using libm_alias_double.
20790 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
20791 (nearbyint): Define using libm_alias_double.
20792 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
20793 (rint): Define using libm_alias_double.
20794 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
20795 (round): Define using libm_alias_double.
20796 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
20797 (trunc): Define using libm_alias_double.
20798
20799 2017-11-27 Florian Weimer <fweimer@redhat.com>
20800
20801 * sysdeps/unix/sysv/linux/mlock2.c: New file.
20802 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
20803 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
20804 (tests): Add tst-mlock2.
20805 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
20806 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
20807 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
20808 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
20809 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
20810 for mlock. Document mlock2.
20811
20812 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20813
20814 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
20815 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
20816 Likewise.
20817 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
20818 Likewise.
20819 * sysdeps/x86/Makeconfig: New file.
20820 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
20821 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20822 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
20823 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20824 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20825 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20826 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
20827 Likewise.
20828 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20829 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20830 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20831 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20832 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20833 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
20834 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
20835 * manual/math.texi (Mathematics): Document support for _Float64x.
20836 * math/Versions (GLIBC_2.27): Add _Float64x functions.
20837 * stdlib/Versions (GLIBC_2.27): Likewise.
20838 * wcsmbs/Versions (GLIBC_2.27): Likewise.
20839 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20840 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20841 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20842 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20843 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20844 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20845 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20846 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20847 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20848 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20849 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20851 Likewise.
20852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20853 Likewise.
20854 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20855 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20856 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20857 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20858 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20859 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20860 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20861 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20862 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20863 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20864 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20865 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20866 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20867 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20868
20869 2017-11-27 Andreas Schwab <schwab@suse.de>
20870
20871 * elf/Makefile (dl-routines): Add dl-sort-maps.
20872 * elf/dl-sort-maps.c: New file.
20873 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
20874 (_dl_sort_maps): Declare.
20875 * elf/dl-fini.c (_dl_sort_fini): Remove.
20876 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
20877 * elf/dl-close.c (_dl_close_worker): Likewise.
20878 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
20879 open-coding it.
20880 * elf/dl-open.c (dl_open_worker): Likewise.
20881
20882 2017-11-24 Joseph Myers <joseph@codesourcery.com>
20883
20884 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
20885 using libm_alias_float128.
20886 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
20887 Likewise.
20888 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
20889 Likewise.
20890 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
20891 (setpayloadsigf128): Likewise.
20892 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
20893 Likewise.
20894 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
20895 Likewise.
20896
20897 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
20898 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
20899 -mfloat128 to CFLAGS.
20900 ($(foreach
20901 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
20902 Likewise.
20903 (CFLAGS-libm-test-support-float64x.c): New variable.
20904 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
20905 $(f128-loader-link) to gnulib-tests.
20906
20907 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
20908 (libm_alias_float128_other_r): If
20909 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
20910 alias.
20911 (libm_alias_float128_r): Add semicolon after weak_alias call.
20912 * sysdeps/generic/libm-alias-ldouble.h
20913 (libm_alias_ldouble_other_r_f128): New macro.
20914 (libm_alias_ldouble_other_r_f64x): Likewise.
20915 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20916 and libm_alias_ldouble_other_r_f64x.
20917 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
20918 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
20919 (libm_alias_ldouble_other_r_f128): New macro.
20920 (libm_alias_ldouble_other_r_f64x): Likewise.
20921 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
20922 and libm_alias_ldouble_other_r_f64x.
20923
20924 * stdlib/strfroml.c: Always include <stdlib.h>.
20925 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
20926 undefine as macro and define as weak alias.
20927 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
20928 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
20929 <stdlib.h>.
20930 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
20931 Define and later undefine as macro and define as weak alias.
20932
20933 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20934 Define and later undefine as macro. Define as weak alias if
20935 [!USE_WIDE_CHAR].
20936 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
20937 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20938 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
20939 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
20940 Define and later undefine as macro. Define as weak alias if
20941 [!USE_WIDE_CHAR].
20942 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
20943 Define and later undefine as macro. Define as weak alias if
20944 [USE_WIDE_CHAR].
20945 * sysdeps/ieee754/float128/strtof128_l.c
20946 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
20947 Define and later undefine as macro. Define as weak alias if
20948 [!USE_WIDE_CHAR].
20949 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
20950 Define and later undefine as macro. Define as weak alias if
20951 [USE_WIDE_CHAR].
20952 * sysdeps/ieee754/ldbl-128/strtold_l.c
20953 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20954 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20955 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20956 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20957 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
20958 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20959 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20960 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20961 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20962 * sysdeps/ieee754/ldbl-96/strtold_l.c
20963 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
20964 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
20965 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
20966 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
20967
20968 * math/test-float64x.h: New file.
20969 * math/Makefile (type-float64x-yes): New variable.
20970 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
20971
20972 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
20973 function-like macro.
20974 (min_of_type_): Likewise.
20975 (min_of_type_l): Likewise.
20976 (min_of_type_f128): Likewise.
20977 (min_of_type): Pass () as last argument of __MATH_TG.
20978
20979 * stdlib/tst-strtod-round-skeleton.c
20980 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
20981 headers.
20982
20983 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
20984 for combinations of long double with _Float64 and _Float64x.
20985
20986 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
20987 (__DECL_SIMD_cosf32): Likewise.
20988 (__DECL_SIMD_cosf64): Likewise.
20989 (__DECL_SIMD_cosf32x): Likewise.
20990 (__DECL_SIMD_cosf64x): Likewise.
20991 (__DECL_SIMD_cosf128x): Likewise.
20992 (__DECL_SIMD_sinf16): Likewise.
20993 (__DECL_SIMD_sinf32): Likewise.
20994 (__DECL_SIMD_sinf64): Likewise.
20995 (__DECL_SIMD_sinf32x): Likewise.
20996 (__DECL_SIMD_sinf64x): Likewise.
20997 (__DECL_SIMD_sinf128x): Likewise.
20998 (__DECL_SIMD_sincosf16): Likewise.
20999 (__DECL_SIMD_sincosf32): Likewise.
21000 (__DECL_SIMD_sincosf64): Likewise.
21001 (__DECL_SIMD_sincosf32x): Likewise.
21002 (__DECL_SIMD_sincosf64x): Likewise.
21003 (__DECL_SIMD_sincosf128x): Likewise.
21004 (__DECL_SIMD_logf16): Likewise.
21005 (__DECL_SIMD_logf32): Likewise.
21006 (__DECL_SIMD_logf64): Likewise.
21007 (__DECL_SIMD_logf32x): Likewise.
21008 (__DECL_SIMD_logf64x): Likewise.
21009 (__DECL_SIMD_logf128x): Likewise.
21010 (__DECL_SIMD_expf16): Likewise.
21011 (__DECL_SIMD_expf32): Likewise.
21012 (__DECL_SIMD_expf64): Likewise.
21013 (__DECL_SIMD_expf32x): Likewise.
21014 (__DECL_SIMD_expf64x): Likewise.
21015 (__DECL_SIMD_expf128x): Likewise.
21016 (__DECL_SIMD_powf16): Likewise.
21017 (__DECL_SIMD_powf32): Likewise.
21018 (__DECL_SIMD_powf64): Likewise.
21019 (__DECL_SIMD_powf32x): Likewise.
21020 (__DECL_SIMD_powf64x): Likewise.
21021 (__DECL_SIMD_powf128x): Likewise.
21022
21023 * stdlib/Versions (libc): Move entries for wcstof128 and
21024 wcstof128_l to ....
21025 * wcsmbs/Versions (libc): ... here.
21026 Include <float128-abi.h>.
21027
21028 2017-11-24 Florian Weimer <fweimer@redhat.com>
21029
21030 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21031 bits/mman-shared.h.
21032 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21033 <bits/mman-shared.h>.
21034 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21035 to ...
21036 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21037 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21038 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21039 <bits/mman-shared.h>.
21040
21041 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21042
21043 [BZ #22457]
21044 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21045 posix_memalign/free.
21046 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21047
21048 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21049
21050 [BZ #22469]
21051 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21052 and implement the collation rules for pl from CLDR on top of that.
21053 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21054 of locales to be built for testing.
21055 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21056
21057 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21058
21059 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21060 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21061 libm_alias_ldouble_other.
21062 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21063 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21064 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21065 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21066 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21067 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21068 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21069 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21070 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21071 libm_alias_ldouble_r.
21072 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21073 libm_alias_ldouble_other.
21074 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21075 (log10l): Likewise.
21076 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21077 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21078 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21079 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21080 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21081 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21082 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21083 (atan2l): Likewise.
21084 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21085 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21086 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21087 libm_alias_ldouble.
21088 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21089 (cosl): Likewise.
21090 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21091 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21092 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21093 (expl): Likewise.
21094 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21095 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21096 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21097 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21098 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21099 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21100 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21101 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21102 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21103 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21104 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21105 libm_alias_ldouble.
21106 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21107 libm_alias_ldouble_other.
21108 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21109 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21110 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21111 libm_alias_ldouble.
21112 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21113 libm_alias_ldouble_other.
21114 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21115 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21116 * sysdeps/ia64/fpu/w_lgammal_main.c
21117 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21118 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21119
21120 2017-11-23 Florian Weimer <fweimer@redhat.com>
21121
21122 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21123 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21124 alike. Remove freeres marker.
21125 * malloc/arena.c (arena_thread_freeres): Call
21126 tcache_thread_shutdown.
21127
21128 2017-11-23 Florian Weimer <fweimer@redhat.com>
21129
21130 [BZ #22459]
21131 Export nscd hash function as __nss_hash.
21132 * include/nss.h (__nss_hash): Declare.
21133 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21134 symbol.
21135 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21136 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21137 of __nscd_hash.
21138 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21139 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21140 * nss/Makefiles (routines): Add nss_hash.
21141 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21142 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21143 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21144 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21145
21146 2017-11-23 Florian Weimer <fweimer@redhat.com>
21147
21148 [BZ #22478]
21149 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21150 Return error code, not -1.
21151 * signal/tst-sigwait-eintr.c: New file.
21152 * signal/Makefile (tests): Add tst-sigwait-eintr.
21153
21154 2017-11-23 Florian Weimer <fweimer@redhat.com>
21155
21156 Linux: Add memfd_create system call wrapper
21157 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21158 tst-memfd_create.
21159 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21160 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21161 [__USE_GNU] (memfd_create): Declare.
21162 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21163 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21164 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21165 * sysdeps/unix/sysv/linux/**.abilist: Update.
21166 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21167
21168 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21169
21170 * localedata/gen-locale.sh: Fix typo in variable name.
21171
21172 * resolv/res_debug.c (p_secstodate): Condition definition on
21173 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21174 directly as __p_secstodate, and as a compat symbol. Do not use
21175 libresolv_hidden_def.
21176 * resolv/resolv.h (p_secstodate): Remove macro and function
21177 declaration.
21178 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21179 using p_secstodate.
21180 * include/resolv.h (__p_secstodate): Do not use
21181 libresolv_hidden_proto.
21182 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21183 (tests-internal): ... here.
21184 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21185 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21186 and declare and use __p_secstodate and use compat_symbol_reference
21187 in that case.
21188 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21189 implementation returning 77.
21190
21191 [BZ #22463]
21192 * resolv/res_debug.c: Include <libc-diag.h>.
21193 (p_secstodate): Assert time_t at least as wide as u_long. On
21194 overflow, use integer seconds since the epoch as output, or use
21195 "<overflow>" as output and set errno to EOVERFLOW if integer
21196 seconds since the epoch would be 14 or more characters.
21197 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21198 for sprintf call.
21199 * resolv/tst-p_secstodate.c: New file.
21200 * resolv/Makefile (tests): Add tst-p_secstodate.
21201 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21202
21203 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21204 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21205 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21206
21207 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21208
21209 * posix/regcomp.c (init_word_char): Add comments.
21210
21211 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21212
21213 [BZ #22447]
21214 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21215 strlen to compute length of ut_user and set trailing NUL byte of
21216 result explicitly.
21217
21218 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21219
21220 [BZ #15537]
21221 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21222 using “copy "iso14651_t1"” and then implementing the
21223 collation rules for lv from CLDR on top of that.
21224 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21225 of locales to be built for testing.
21226 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21227 sorting.
21228
21229 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21230
21231 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21232 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21233 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21234 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21235 [__USE_MISC] (MADV_HWPOISON): New macro.
21236 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21237
21238 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21239
21240 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21241 -Wmissing-braces on GCC 4.9.
21242
21243 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21244
21245 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21246 * sysdeps/s390/s390-32/start.S (_start): Likewise
21247 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21248 (thread_start): Likewise.
21249 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21250 (thread_start): Likewise.
21251 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21252 (__makecontext_ret): Likewise.
21253 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21254 (__makecontext_ret): Likewise.
21255
21256 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21257
21258 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21259 __wcschrnul): Remove attribute_hidden.
21260
21261 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21262
21263 regex: don't assume uint64_t or uint32_t
21264 This avoids -Werror=overflow errors for 32-bit systems in
21265 the 64-bit case. Problem reported by Joseph Myers in:
21266 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21267 Also, when this code is used in Gnulib it ports to platforms
21268 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21269 them, and on some 32-bit compilers there is no uint64_t.
21270 Problem reported by Gianluigi Tiesi in:
21271 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21272 * posix/regcomp.c (init_word_char): Don't assume that the types
21273 uint64_t and uint32_t exist. Adapted from Gnulib patch
21274 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21275 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21276
21277 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21278
21279 * sysdeps/aarch64/memset-reg.h: New file.
21280 * sysdeps/aarch64/memset.S: Use it.
21281 (__memset): Rename to MEMSET macro.
21282 [ZVA_MACRO]: Use zva_macro.
21283 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21284 Add memset_generic and memset_falkor.
21285 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21286 (__libc_ifunc_impl_list): Add memset ifuncs.
21287 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21288 local variable zva_size.
21289 * sysdeps/aarch64/multiarch/memset.c: New file.
21290 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21291 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21292 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21293 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21294 (DCZID_DZP_MASK): New macro.
21295 (DCZID_BS_MASK): Likewise.
21296 (init_cpu_features): Read and set zva_size.
21297 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21298 (struct cpu_features): New member zva_size.
21299
21300 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21301 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21302 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21303
21304 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21305 backwards. Fix timing computation.
21306 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21307 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21308 on memset by N at a time. Fix timing computation.
21309
21310 2017-11-20 Florian Weimer <fweimer@redhat.com>
21311
21312 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21313 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21314
21315 2017-11-19 Florian Weimer <fweimer@redhat.com>
21316
21317 manual: Document mprotect
21318 * manual/memory.texi (Memory Protection): New section.
21319 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21320 documentation of PROT_* flags and reference the Memory Protection
21321 section instead.
21322
21323 2017-11-19 Florian Weimer <fweimer@redhat.com>
21324
21325 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21326 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21327 (Scatter-Gather): ... to here. Remove misleading comment.
21328
21329 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21330
21331 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21332 style.
21333
21334 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21335 when /proc/<pid>/setgroups does not exist.
21336
21337 2017-11-18 Florian Weimer <fweimer@redhat.com>
21338
21339 * sysdeps/unix/sysv/linux/tst-ttyname.c
21340 (become_root_in_mount_ns): Remove.
21341 (do_in_chroot_1): Call support_enter_mount_namespace.
21342 (do_in_chroot_2): Likewise.
21343 (do_test): Call support_become_root early.
21344
21345 2017-11-18 Florian Weimer <fweimer@redhat.com>
21346
21347 * support/namespace.h (support_enter_mount_namespace): Declare.
21348 * support/support_enter_mount_namespace.c: New file.
21349 * support/Makefile (libsupport-routines): Add
21350 support_enter_mount_namespace.
21351
21352 2017-11-18 Florian Weimer <fweimer@redhat.com>
21353
21354 * support/temp_file.c (support_create_temp_directory): Use
21355 test_dir and do not rely on the presence of the XXXXXX suffix.
21356 * support/temp_file.h (support_create_temp_directory): Update
21357 comment.
21358 * support/tst-xreadlink.c (do_test): Adjust.
21359 * support/support_chroot.c (support_chroot_create): Likewise.
21360
21361 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21362
21363 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21364 macro.
21365 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21366 htm-no-suspend.
21367
21368 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21369
21370 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21371 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21372 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21373 (ceill): Define using libm_alias_ldouble.
21374 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21375 <libm-alias-ldouble.h>.
21376 (copysignl): Define using libm_alias_ldouble.
21377 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21378 (fabsl): Define using libm_alias_ldouble.
21379 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21380 (floorl): Define using libm_alias_ldouble.
21381 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21382 (fmaxl): Define using libm_alias_ldouble.
21383 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21384 (fminl): Define using libm_alias_ldouble.
21385 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21386 (llrintl): Define using libm_alias_ldouble.
21387 (lrintl): Likewise.
21388 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21389 <libm-alias-ldouble.h>.
21390 (nearbyintl): Define using libm_alias_ldouble.
21391 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21392 (truncl): Define using libm_alias_ldouble.
21393 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21394 <libm-alias-ldouble.h>.
21395 (lrintl): Define using libm_alias_ldouble.
21396
21397 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21398 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21399 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21400 (asinhl): Define using libm_alias_ldouble.
21401 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21402 (atanl): Define using libm_alias_ldouble.
21403 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21404 (cbrtl): Define using libm_alias_ldouble.
21405 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21406 (ceill): Define using libm_alias_ldouble.
21407 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21408 (copysignl): Define using libm_alias_ldouble.
21409 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21410 (fabsl): Define using libm_alias_ldouble.
21411 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21412 (floorl): Define using libm_alias_ldouble.
21413 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21414 (fmaxl): Define using libm_alias_ldouble.
21415 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21416 (fminl): Define using libm_alias_ldouble.
21417 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21418 (frexpl): Define using libm_alias_ldouble.
21419 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21420 (llrintl): Define using libm_alias_ldouble.
21421 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21422 (logbl): Define using libm_alias_ldouble.
21423 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21424 (lrintl): Define using libm_alias_ldouble.
21425 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21426 (nearbyintl): Define using libm_alias_ldouble.
21427 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21428 (nextafterl): Define using libm_alias_ldouble.
21429 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21430 (remquol): Define using libm_alias_ldouble.
21431 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21432 (rintl): Define using libm_alias_ldouble.
21433 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21434 (truncl): Define using libm_alias_ldouble.
21435 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21436 (fmaxl): Define using libm_alias_ldouble.
21437 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21438 (fminl): Define using libm_alias_ldouble.
21439
21440 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21441 to C syntax instead of availability and properties of types.
21442 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21443 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21444 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21445 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21446 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21447 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21448
21449 2017-11-17 Florian Weimer <fweimer@redhat.com>
21450
21451 support_become_root: Enable file creation in namespaces.
21452 * support/support_become_root.c (setup_mapping): New function.
21453 (support_become_root): Call it.
21454
21455 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21456
21457 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21458 macro.
21459
21460 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21461
21462 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21463 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21464
21465 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21466
21467 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21468
21469 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21470 version to 4.14.
21471
21472 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21473
21474 * INSTALL: Fix botched up regeneration.
21475
21476 * NEWS: Update sourceare link to https.
21477 * configure.ac: Likewise.
21478 * crypt/md5test-giant.c: Likewise.
21479 * dlfcn/bug-atexit1.c: Likewise.
21480 * dlfcn/bug-atexit2.c: Likewise.
21481 * localedata/README: Likewise.
21482 * malloc/tst-mallocfork.c: Likewise.
21483 * manual/install.texi: Likewise.
21484 * nptl/tst-pthread-getattr.c: Likewise.
21485 * stdio-common/tst-fgets.c: Likewise.
21486 * stdio-common/tst-fwrite.c: Likewise.
21487 * sunrpc/Makefile: Likewise.
21488 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21489 * wcsmbs/tst-mbrtowc2.c: Likewise.
21490 * configure: Regenerate.
21491 * INSTALL: Regenerate.
21492
21493 2017-11-15 Martin Sebor <msebor@redhat.com>
21494
21495 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21496 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21497 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21498
21499 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21500
21501 [BZ #22145]
21502 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21503 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21504
21505 [BZ #22145]
21506 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21507 Defer is_pty check until end of the function.
21508 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21509
21510 [BZ #22145]
21511 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21512 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21513 (ttyname): Likewise.
21514 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21515 (__ttyname_r): Likewise.
21516
21517 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21518 int to bool.
21519
21520 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21521
21522 * manual/terminal.texi (Is It a Terminal):
21523 Mention ENODEV for ttyname and ttyname_r.
21524
21525 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21526
21527 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21528 constant and macro.
21529
21530 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21531 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21532 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21533 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21534 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21535 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21536
21537 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21538
21539 * signal/sigrelse.c (sigrelse): Optimize implementation.
21540
21541 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21542 (__sigpause): Rely on __sigsuspend to implement single thread
21543 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21544
21545 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21546
21547 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21548 kernel version to 4.14.
21549
21550 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21551
21552 [BZ #22442]
21553 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21554 Check if ifname is too long.
21555
21556 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21557
21558 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21559
21560 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21561
21562 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21563 was accidentally lost.
21564
21565 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21566
21567 * localedata/locales/az_IR: Add standard copyright header.
21568
21569 2017-11-15 Florian Weimer <fweimer@redhat.com>
21570
21571 [BZ #22439]
21572 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21573 not just the top one. Output a new "subheaps" statistic.
21574
21575 2017-11-15 Florian Weimer <fweimer@redhat.com>
21576
21577 [BZ #22408]
21578 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21579 under the per-arena lock.
21580 * malloc/Makefile (tests): Add tst-malloc_info.
21581 (tst-malloc_info): Link with libpthread.
21582 * malloc/tst-malloc_info.c: New file.
21583
21584 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21585
21586 [BZ #21660]
21587 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21588 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21589 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21590 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21591 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21592 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21593 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21594 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21595 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21596 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21597 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21598 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21599 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21600 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21601 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21602 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21603 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21604 (__floating_type): Likewise.
21605 (__real_integer_type): Likewise.
21606 (__complex_integer_type): Likewise.
21607 (__expr_is_real): Likewise.
21608 (__tgmath_real_type_sub): Likewise.
21609 (__tgmath_real_type): Likewise.
21610 (__tgmath_complex_type_sub): Likewise.
21611 (__tgmath_complex_type): Likewise.
21612 (__TGMATH_F128): Likewise.
21613 (__TGMATH_CF128): Likewise.
21614 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21615 new macros.
21616 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21617 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21618 Likewise.
21619 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21620 Likewise.
21621 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21622 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21623 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21624 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21625 Likewise.
21626 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21627 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21628 Likewise.
21629 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21630 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21631 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21632 Likewise.
21633 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21634 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21635 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21636 (cimag): Likewise.
21637 (creal): Likewise.
21638
21639 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21640
21641 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21642 for stpncpy calls for GCC 8.
21643 (test_strncat): Disable -Wstringop-truncation warning for strncat
21644 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21645 strncat call for GCC 7.
21646 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21647 calls for GCC 8.
21648 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21649 trailing NUL.
21650
21651 * string/bug-strncat1.c: Include <libc-diag.h>.
21652 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21653
21654 2017-11-13 Claude Paroz <claude@2xlibre.net>
21655
21656 [BZ #22387]
21657 * localedata/locales/aa_DJ: Improved readibility by replacing
21658 <Uxxxx> sequences in the ASCII printable range by their ASCII
21659 character equivalents.
21660 * localedata/locales/aa_ER: Likewise.
21661 * localedata/locales/aa_ER@saaho: Likewise.
21662 * localedata/locales/aa_ET: Likewise.
21663 * localedata/locales/af_ZA: Likewise.
21664 * localedata/locales/agr_PE: Likewise.
21665 * localedata/locales/ak_GH: Likewise.
21666 * localedata/locales/am_ET: Likewise.
21667 * localedata/locales/anp_IN: Likewise.
21668 * localedata/locales/ar_AE: Likewise.
21669 * localedata/locales/ar_BH: Likewise.
21670 * localedata/locales/ar_DZ: Likewise.
21671 * localedata/locales/ar_EG: Likewise.
21672 * localedata/locales/ar_IN: Likewise.
21673 * localedata/locales/ar_IQ: Likewise.
21674 * localedata/locales/ar_JO: Likewise.
21675 * localedata/locales/ar_KW: Likewise.
21676 * localedata/locales/ar_LB: Likewise.
21677 * localedata/locales/ar_LY: Likewise.
21678 * localedata/locales/ar_MA: Likewise.
21679 * localedata/locales/ar_OM: Likewise.
21680 * localedata/locales/ar_QA: Likewise.
21681 * localedata/locales/ar_SA: Likewise.
21682 * localedata/locales/ar_SD: Likewise.
21683 * localedata/locales/ar_SS: Likewise.
21684 * localedata/locales/ar_SY: Likewise.
21685 * localedata/locales/ar_TN: Likewise.
21686 * localedata/locales/ar_YE: Likewise.
21687 * localedata/locales/as_IN: Likewise.
21688 * localedata/locales/ast_ES: Likewise.
21689 * localedata/locales/ayc_PE: Likewise.
21690 * localedata/locales/az_AZ: Likewise.
21691 * localedata/locales/az_IR: Likewise.
21692 * localedata/locales/be_BY: Likewise.
21693 * localedata/locales/be_BY@latin: Likewise.
21694 * localedata/locales/bem_ZM: Likewise.
21695 * localedata/locales/ber_DZ: Likewise.
21696 * localedata/locales/ber_MA: Likewise.
21697 * localedata/locales/bg_BG: Likewise.
21698 * localedata/locales/bhb_IN: Likewise.
21699 * localedata/locales/bho_IN: Likewise.
21700 * localedata/locales/bi_VU: Likewise.
21701 * localedata/locales/bn_BD: Likewise.
21702 * localedata/locales/bn_IN: Likewise.
21703 * localedata/locales/bo_CN: Likewise.
21704 * localedata/locales/bo_IN: Likewise.
21705 * localedata/locales/br_FR: Likewise.
21706 * localedata/locales/brx_IN: Likewise.
21707 * localedata/locales/bs_BA: Likewise.
21708 * localedata/locales/byn_ER: Likewise.
21709 * localedata/locales/ca_AD: Likewise.
21710 * localedata/locales/ca_ES: Likewise.
21711 * localedata/locales/ca_FR: Likewise.
21712 * localedata/locales/ca_IT: Likewise.
21713 * localedata/locales/ce_RU: Likewise.
21714 * localedata/locales/chr_US: Likewise.
21715 * localedata/locales/cmn_TW: Likewise.
21716 * localedata/locales/crh_UA: Likewise.
21717 * localedata/locales/cs_CZ: Likewise.
21718 * localedata/locales/csb_PL: Likewise.
21719 * localedata/locales/cv_RU: Likewise.
21720 * localedata/locales/cy_GB: Likewise.
21721 * localedata/locales/da_DK: Likewise.
21722 * localedata/locales/de_AT: Likewise.
21723 * localedata/locales/de_BE: Likewise.
21724 * localedata/locales/de_CH: Likewise.
21725 * localedata/locales/de_DE: Likewise.
21726 * localedata/locales/de_IT: Likewise.
21727 * localedata/locales/de_LI: Likewise.
21728 * localedata/locales/de_LU: Likewise.
21729 * localedata/locales/doi_IN: Likewise.
21730 * localedata/locales/dv_MV: Likewise.
21731 * localedata/locales/dz_BT: Likewise.
21732 * localedata/locales/el_CY: Likewise.
21733 * localedata/locales/el_GR: Likewise.
21734 * localedata/locales/en_AG: Likewise.
21735 * localedata/locales/en_AU: Likewise.
21736 * localedata/locales/en_BW: Likewise.
21737 * localedata/locales/en_CA: Likewise.
21738 * localedata/locales/en_DK: Likewise.
21739 * localedata/locales/en_GB: Likewise.
21740 * localedata/locales/en_HK: Likewise.
21741 * localedata/locales/en_IE: Likewise.
21742 * localedata/locales/en_IL: Likewise.
21743 * localedata/locales/en_IN: Likewise.
21744 * localedata/locales/en_NG: Likewise.
21745 * localedata/locales/en_NZ: Likewise.
21746 * localedata/locales/en_PH: Likewise.
21747 * localedata/locales/en_SG: Likewise.
21748 * localedata/locales/en_US: Likewise.
21749 * localedata/locales/en_ZA: Likewise.
21750 * localedata/locales/en_ZM: Likewise.
21751 * localedata/locales/en_ZW: Likewise.
21752 * localedata/locales/eo: Likewise.
21753 * localedata/locales/es_AR: Likewise.
21754 * localedata/locales/es_BO: Likewise.
21755 * localedata/locales/es_CL: Likewise.
21756 * localedata/locales/es_CO: Likewise.
21757 * localedata/locales/es_CR: Likewise.
21758 * localedata/locales/es_CU: Likewise.
21759 * localedata/locales/es_DO: Likewise.
21760 * localedata/locales/es_EC: Likewise.
21761 * localedata/locales/es_ES: Likewise.
21762 * localedata/locales/es_GT: Likewise.
21763 * localedata/locales/es_HN: Likewise.
21764 * localedata/locales/es_MX: Likewise.
21765 * localedata/locales/es_NI: Likewise.
21766 * localedata/locales/es_PA: Likewise.
21767 * localedata/locales/es_PE: Likewise.
21768 * localedata/locales/es_PR: Likewise.
21769 * localedata/locales/es_PY: Likewise.
21770 * localedata/locales/es_SV: Likewise.
21771 * localedata/locales/es_US: Likewise.
21772 * localedata/locales/es_UY: Likewise.
21773 * localedata/locales/es_VE: Likewise.
21774 * localedata/locales/et_EE: Likewise.
21775 * localedata/locales/eu_ES: Likewise.
21776 * localedata/locales/eu_ES@euro: Likewise.
21777 * localedata/locales/fa_IR: Likewise.
21778 * localedata/locales/ff_SN: Likewise.
21779 * localedata/locales/fi_FI: Likewise.
21780 * localedata/locales/fil_PH: Likewise.
21781 * localedata/locales/fo_FO: Likewise.
21782 * localedata/locales/fr_BE: Likewise.
21783 * localedata/locales/fr_CA: Likewise.
21784 * localedata/locales/fr_CH: Likewise.
21785 * localedata/locales/fr_FR: Likewise.
21786 * localedata/locales/fr_LU: Likewise.
21787 * localedata/locales/fur_IT: Likewise.
21788 * localedata/locales/fy_DE: Likewise.
21789 * localedata/locales/fy_NL: Likewise.
21790 * localedata/locales/ga_IE: Likewise.
21791 * localedata/locales/gd_GB: Likewise.
21792 * localedata/locales/gez_ER: Likewise.
21793 * localedata/locales/gez_ET: Likewise.
21794 * localedata/locales/gl_ES: Likewise.
21795 * localedata/locales/gu_IN: Likewise.
21796 * localedata/locales/gv_GB: Likewise.
21797 * localedata/locales/ha_NG: Likewise.
21798 * localedata/locales/hak_TW: Likewise.
21799 * localedata/locales/he_IL: Likewise.
21800 * localedata/locales/hi_IN: Likewise.
21801 * localedata/locales/hif_FJ: Likewise.
21802 * localedata/locales/hne_IN: Likewise.
21803 * localedata/locales/hr_HR: Likewise.
21804 * localedata/locales/hsb_DE: Likewise.
21805 * localedata/locales/ht_HT: Likewise.
21806 * localedata/locales/hu_HU: Likewise.
21807 * localedata/locales/hy_AM: Likewise.
21808 * localedata/locales/i18n: Likewise.
21809 * localedata/locales/ia_FR: Likewise.
21810 * localedata/locales/id_ID: Likewise.
21811 * localedata/locales/ig_NG: Likewise.
21812 * localedata/locales/ik_CA: Likewise.
21813 * localedata/locales/is_IS: Likewise.
21814 * localedata/locales/it_CH: Likewise.
21815 * localedata/locales/it_IT: Likewise.
21816 * localedata/locales/iu_CA: Likewise.
21817 * localedata/locales/ja_JP: Likewise.
21818 * localedata/locales/ka_GE: Likewise.
21819 * localedata/locales/kk_KZ: Likewise.
21820 * localedata/locales/kl_GL: Likewise.
21821 * localedata/locales/kn_IN: Likewise.
21822 * localedata/locales/ko_KR: Likewise.
21823 * localedata/locales/kok_IN: Likewise.
21824 * localedata/locales/ks_IN: Likewise.
21825 * localedata/locales/ks_IN@devanagari: Likewise.
21826 * localedata/locales/ku_TR: Likewise.
21827 * localedata/locales/kw_GB: Likewise.
21828 * localedata/locales/ky_KG: Likewise.
21829 * localedata/locales/lb_LU: Likewise.
21830 * localedata/locales/lg_UG: Likewise.
21831 * localedata/locales/li_BE: Likewise.
21832 * localedata/locales/li_NL: Likewise.
21833 * localedata/locales/lij_IT: Likewise.
21834 * localedata/locales/ln_CD: Likewise.
21835 * localedata/locales/lo_LA: Likewise.
21836 * localedata/locales/lt_LT: Likewise.
21837 * localedata/locales/lv_LV: Likewise.
21838 * localedata/locales/lzh_TW: Likewise.
21839 * localedata/locales/mag_IN: Likewise.
21840 * localedata/locales/mai_IN: Likewise.
21841 * localedata/locales/mg_MG: Likewise.
21842 * localedata/locales/mhr_RU: Likewise.
21843 * localedata/locales/mi_NZ: Likewise.
21844 * localedata/locales/mk_MK: Likewise.
21845 * localedata/locales/ml_IN: Likewise.
21846 * localedata/locales/mn_MN: Likewise.
21847 * localedata/locales/mni_IN: Likewise.
21848 * localedata/locales/mr_IN: Likewise.
21849 * localedata/locales/ms_MY: Likewise.
21850 * localedata/locales/mt_MT: Likewise.
21851 * localedata/locales/my_MM: Likewise.
21852 * localedata/locales/nan_TW: Likewise.
21853 * localedata/locales/nan_TW@latin: Likewise.
21854 * localedata/locales/nb_NO: Likewise.
21855 * localedata/locales/nds_DE: Likewise.
21856 * localedata/locales/nds_NL: Likewise.
21857 * localedata/locales/ne_NP: Likewise.
21858 * localedata/locales/nhn_MX: Likewise.
21859 * localedata/locales/niu_NU: Likewise.
21860 * localedata/locales/niu_NZ: Likewise.
21861 * localedata/locales/nl_AW: Likewise.
21862 * localedata/locales/nl_BE: Likewise.
21863 * localedata/locales/nl_NL: Likewise.
21864 * localedata/locales/nn_NO: Likewise.
21865 * localedata/locales/nr_ZA: Likewise.
21866 * localedata/locales/nso_ZA: Likewise.
21867 * localedata/locales/oc_FR: Likewise.
21868 * localedata/locales/om_ET: Likewise.
21869 * localedata/locales/om_KE: Likewise.
21870 * localedata/locales/or_IN: Likewise.
21871 * localedata/locales/os_RU: Likewise.
21872 * localedata/locales/pa_IN: Likewise.
21873 * localedata/locales/pa_PK: Likewise.
21874 * localedata/locales/pap_AW: Likewise.
21875 * localedata/locales/pap_CW: Likewise.
21876 * localedata/locales/pl_PL: Likewise.
21877 * localedata/locales/ps_AF: Likewise.
21878 * localedata/locales/pt_BR: Likewise.
21879 * localedata/locales/pt_PT: Likewise.
21880 * localedata/locales/quz_PE: Likewise.
21881 * localedata/locales/raj_IN: Likewise.
21882 * localedata/locales/ro_RO: Likewise.
21883 * localedata/locales/ru_RU: Likewise.
21884 * localedata/locales/ru_UA: Likewise.
21885 * localedata/locales/rw_RW: Likewise.
21886 * localedata/locales/sa_IN: Likewise.
21887 * localedata/locales/sat_IN: Likewise.
21888 * localedata/locales/sc_IT: Likewise.
21889 * localedata/locales/sd_IN: Likewise.
21890 * localedata/locales/sd_IN@devanagari: Likewise.
21891 * localedata/locales/se_NO: Likewise.
21892 * localedata/locales/sgs_LT: Likewise.
21893 * localedata/locales/shs_CA: Likewise.
21894 * localedata/locales/si_LK: Likewise.
21895 * localedata/locales/sid_ET: Likewise.
21896 * localedata/locales/sk_SK: Likewise.
21897 * localedata/locales/sl_SI: Likewise.
21898 * localedata/locales/sm_WS: Likewise.
21899 * localedata/locales/so_DJ: Likewise.
21900 * localedata/locales/so_ET: Likewise.
21901 * localedata/locales/so_KE: Likewise.
21902 * localedata/locales/so_SO: Likewise.
21903 * localedata/locales/sq_AL: Likewise.
21904 * localedata/locales/sq_MK: Likewise.
21905 * localedata/locales/sr_ME: Likewise.
21906 * localedata/locales/sr_RS: Likewise.
21907 * localedata/locales/sr_RS@latin: Likewise.
21908 * localedata/locales/ss_ZA: Likewise.
21909 * localedata/locales/st_ZA: Likewise.
21910 * localedata/locales/sv_FI: Likewise.
21911 * localedata/locales/sv_SE: Likewise.
21912 * localedata/locales/sw_KE: Likewise.
21913 * localedata/locales/sw_TZ: Likewise.
21914 * localedata/locales/szl_PL: Likewise.
21915 * localedata/locales/ta_IN: Likewise.
21916 * localedata/locales/ta_LK: Likewise.
21917 * localedata/locales/tcy_IN: Likewise.
21918 * localedata/locales/te_IN: Likewise.
21919 * localedata/locales/tg_TJ: Likewise.
21920 * localedata/locales/th_TH: Likewise.
21921 * localedata/locales/the_NP: Likewise.
21922 * localedata/locales/ti_ER: Likewise.
21923 * localedata/locales/ti_ET: Likewise.
21924 * localedata/locales/tig_ER: Likewise.
21925 * localedata/locales/tk_TM: Likewise.
21926 * localedata/locales/tl_PH: Likewise.
21927 * localedata/locales/tn_ZA: Likewise.
21928 * localedata/locales/to_TO: Likewise.
21929 * localedata/locales/tpi_PG: Likewise.
21930 * localedata/locales/tr_CY: Likewise.
21931 * localedata/locales/tr_TR: Likewise.
21932 * localedata/locales/ts_ZA: Likewise.
21933 * localedata/locales/tt_RU: Likewise.
21934 * localedata/locales/tt_RU@iqtelif: Likewise.
21935 * localedata/locales/ug_CN: Likewise.
21936 * localedata/locales/uk_UA: Likewise.
21937 * localedata/locales/unm_US: Likewise.
21938 * localedata/locales/ur_IN: Likewise.
21939 * localedata/locales/ur_PK: Likewise.
21940 * localedata/locales/uz_UZ: Likewise.
21941 * localedata/locales/uz_UZ@cyrillic: Likewise.
21942 * localedata/locales/ve_ZA: Likewise.
21943 * localedata/locales/vi_VN: Likewise.
21944 * localedata/locales/wa_BE: Likewise.
21945 * localedata/locales/wae_CH: Likewise.
21946 * localedata/locales/wal_ET: Likewise.
21947 * localedata/locales/wo_SN: Likewise.
21948 * localedata/locales/xh_ZA: Likewise.
21949 * localedata/locales/yi_US: Likewise.
21950 * localedata/locales/yo_NG: Likewise.
21951 * localedata/locales/yue_HK: Likewise.
21952 * localedata/locales/yuw_PG: Likewise.
21953 * localedata/locales/zh_CN: Likewise.
21954 * localedata/locales/zh_HK: Likewise.
21955 * localedata/locales/zh_SG: Likewise.
21956 * localedata/locales/zh_TW: Likewise.
21957 * localedata/locales/zu_ZA: Likewise.
21958
21959 2017-11-13 Florian Weimer <fweimer@redhat.com>
21960
21961 * support/next_to_fault.h, support/next_to_fault.c: New files.
21962 * support/Makefile (libsupport-routines): Add next_to_fault.
21963 * resolv/tst-inet_pton.c (struct next_to_fault)
21964 (next_to_fault_allocate, next_to_fault_free): Remove.
21965 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
21966
21967 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
21968
21969 * elf/dl-support.c: Include <dl-procruntime.c>.
21970 * include/link.h: Include <link_map.h>.
21971 * sysdeps/generic/dl-procruntime.c: New file.
21972 * sysdeps/generic/link_map.h: Likewise.
21973 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
21974 the writable ld.so namespace.
21975
21976 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
21977
21978 timezone: pacify GCC -Wstringop-truncation
21979 Problem reported by Martin Sebor in:
21980 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
21981 * timezone/zic.c (writezone): Use memcpy, not strncpy.
21982
21983 2017-11-12 Florian Weimer <fweimer@redhat.com>
21984
21985 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
21986 tst-xreadlink.
21987 (tests): Add tst-xreadlink.
21988 * support/support.h (xstrndup): Declare.
21989 * support/xunistd.h (xunlink, xreadlink): Declare.
21990 * support/temp_file.h (support_create_temp_directory): Declare.
21991 * support/temp_file.c (support_create_temp_directory): New function.
21992 * support/support_chroot.c (support_chroot_create): Use it.
21993 * support/xreadlink.c: New file.
21994 * support/xstrndup.c: Likewise.
21995 * support/xunlink.c: Likewise.
21996 * support/tst-xreadlink.c: Likewise.
21997
21998 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
21999
22000 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22001
22002 2017-11-11 Florian Weimer <fweimer@redhat.com>
22003
22004 [BZ #22409]
22005 [BZ #22412]
22006 * resolv/res_comp.c (printable_string, binary_hnok)
22007 (binary_leading_dash): New functions.
22008 (res_hnok): Reimplement using these functions and ns_name_pton.
22009 (res_ownok): Likewise.
22010 (res_mailok): Reimplement using printable_string, ns_name_pton and
22011 binary_hnok.
22012 (res_dnok): Reimplement using printable_string and ns_name_pton.
22013 * resolv/tst-res_hnok.c (tests): Add additional tests.
22014 (LETTERDIGITS, PRINTABLE): Define.
22015 (do_test): Adjust one_char results.
22016
22017 2017-11-11 Florian Weimer <fweimer@redhat.com>
22018
22019 [BZ #22413]
22020 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22021 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22022
22023 2017-11-11 Florian Weimer <fweimer@redhat.com>
22024
22025 * resolv/tst-ns_name_pton.c: New file.
22026 * resolv/Makefile (tests): Add tst-ns_name_pton.
22027 (tst-ns_name_pton): Link against libresolv.
22028
22029 2017-11-11 Florian Weimer <fweimer@redhat.com>
22030
22031 * resolv/tst-res_hnok.c: New file.
22032 * resolv/Makefile (tests): Add tst-res_hnok.
22033 (tst-res_hnok): Link against libresolv.
22034
22035 2017-11-11 Florian Weimer <fweimer@redhat.com>
22036
22037 * resolv/tst-resolv-network.c: Use test framework instead explicit
22038 main function.
22039
22040 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22041
22042 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22043 <jmp_buf-macros.h>.
22044 [!_ISOMAC] (STR_HELPER): New.
22045 [!_ISOMAC] (STR): Likewise.
22046 [!_ISOMAC] (TEST_SIZE): Likewise.
22047 [!_ISOMAC] (TEST_ALIGN): Likewise.
22048 [!_ISOMAC] (TEST_OFFSET): Likewise.
22049 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22050 field offsets of jmp_buf as well as sigjmp_buf.
22051 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22052 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22053 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22054 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22055 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22056 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22057 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22058 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22059 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22060 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22061 Likewise.
22062 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22063 Likewise.
22064 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22066 Likewise.
22067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22068 Likewise.
22069 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22070 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22071 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22072 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22073 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22074 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22075 Likewise.
22076 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22077 Likewise.
22078 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22079 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22080 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22081
22082 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22083
22084 * include/float.h
22085 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22086 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22087 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22088 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22089 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22090 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22092 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22094 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22096 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22097 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22098 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22099 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22100 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22101 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22102 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22103 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22104 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22105 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22106 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22107 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22108 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22109 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22110 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22111 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22112 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22113 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22114 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22115 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22116 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22117 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22118 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22119 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22120 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22121 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22122 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22123 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22124 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22125 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22126 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22127 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22128 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22129 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22130 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22131 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22132 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22133 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22134 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22135 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22136 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22137 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22138 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22139 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22140 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22141 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22142 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22143 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22144 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22145 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22146 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22147 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22148 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22149 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22150 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22151 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22152 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22153 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22154 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22155 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22156 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22157 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22158 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22159 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22160 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22161 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22162 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22163 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22164 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22165 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22166 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22167 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22168 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22169 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22170 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22171 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22172 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22173
22174 * stdlib/tst-strtod.h (F16): New macro.
22175 (F32): Likewise.
22176 (F64): Likewise.
22177 (F32X): Likewise.
22178 (F64X): Likewise.
22179 (F128X): Likewise.
22180 (IF_FLOAT16): Likewise.
22181 (IF_FLOAT32): Likewise.
22182 (IF_FLOAT64): Likewise.
22183 (IF_FLOAT32X): Likewise.
22184 (IF_FLOAT64X): Likewise.
22185 (IF_FLOAT128X): Likewise.
22186 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22187 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22188 (STRTOD_TEST_FOREACH): Likewise.
22189 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22190 (CHOOSE_f64): Likewise.
22191 (CHOOSE_f32x): Likewise.
22192 (CHOOSE_f64x): Likewise.
22193
22194 2017-11-07 Andreas Schwab <schwab@suse.de>
22195
22196 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22197
22198 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22199
22200 [BZ #22403]
22201 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22202 to be escaped.
22203 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22204 to be escaped.
22205
22206 2017-11-07 Claude Paroz <claude@2xlibre.net>
22207
22208 [BZ #22403]
22209 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22210 to be escaped.
22211 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22212 to be escaped.
22213 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22214 to be escaped.
22215
22216 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22217
22218 [BZ #22298]
22219 * nptl/allocatestack.c (allocate_stack): Check if
22220 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22221 __PTHREAD_MUTEX_HAVE_PREV is defined.
22222 * nptl/descr.h (pthread): Likewise.
22223 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22224 Likewise.
22225 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22226 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22227 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22228 * sysdeps/nptl/bits/thread-shared-types.h
22229 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22230 defines.
22231 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22232 of __WORDSIZE for internal layout.
22233 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22234 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22235 instead of __WORDSIZE whether to use an union for __spins and __list
22236 fields.
22237 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22238 case.
22239 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22240 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22241 defines.
22242 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22243 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22244 Likewise.
22245 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22246 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22247 Likewise.
22248 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22249 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22250 Likewise.
22251 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22252 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22253 Likewise.
22254 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22255 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22256 Likewise.
22257 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22258 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22259 Likewise.
22260 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22261 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22262 Likewise.
22263 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22264 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22265 Likewise.
22266 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22267 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22268 Likewise.
22269 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22270 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22271 Likewise.
22272 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22273 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22274 Likewise.
22275 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22276 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22277 Likewise.
22278 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22279 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22280 Likewise.
22281 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22282 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22283 Likewise.
22284
22285 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22286 New macros.
22287 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22288 checks for expected input type size.
22289 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22290 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22291 Likewise.
22292 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22293 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22294 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22295 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22296 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22297 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22298 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22299 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22300 superflous runtime assert check.
22301 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22302 Likewise.
22303 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22304 Likewise.
22305 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22306 Likewise.
22307 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22308 Likewise.
22309 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22310 Likewise.
22311 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22312 Likewise.
22313 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22314 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22315 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22316 Likewise.
22317 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22318 Likewise.
22319 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22320 Likewise.
22321 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22322 Likewise.
22323 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22324 Likewise.
22325 * nptl/pthread_attr_setinheritsched.c
22326 (__pthread_attr_setinheritsched): Likewise.
22327 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22328 Likewise.
22329 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22330 Likewise.
22331 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22332 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22333 __old_pthread_attr_setstack): Likewise.
22334 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22335 Likewise.
22336 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22337 Likewise.
22338 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22339 Likewise.
22340 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22341 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22342 Likewise.
22343 * nptl/tst-typesizes.c: Remove file.
22344
22345 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22346 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22347 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22348 checks for internal pthread_mutex_t offsets.
22349 * sysdeps/aarch64/nptl/pthread-offsets.h
22350 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22351 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22352 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22353 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22354 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22355 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22356 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22357 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22358 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22359 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22360 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22361 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22362 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22363 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22364 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22365 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22366 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22367 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22368
22369 2017-11-07 Florian Weimer <fweimer@redhat.com>
22370
22371 * bits/mman-linux.h: Move ...
22372 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22373 comment.
22374 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22375 outdated comment.
22376
22377 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22378
22379 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22380 Redefine STRNLEN as __strnlen_power8.
22381
22382 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22383
22384 * signal/sighold.c (sighold): Optimize implementation.
22385
22386 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22387 __NR_rt_sigqueueinfo.
22388
22389 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22390 __sigtimedwait.
22391 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22392 assume __NR_rt_sigtimedwait.
22393 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22394 and add LIBC_CANCEL_HANDLED for cancellation marking.
22395 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22396
22397 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22398 (sysdeps_routines): Add memchr_noneon.
22399 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22400 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22401 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22402 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22403 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22404 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22405 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22406
22407 * sysdeps/arm/arm-ifunc.h: New file.
22408 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22409 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22410 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22411 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22412 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22413 (__memcpy_neon): Avoid create hidden alias.
22414 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22415 (__memcpy_vfp): Likewise.
22416 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22417 (sysdep_routines): Add memcpy_arm.
22418 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22419
22420 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22421
22422 [BZ #22362]
22423 * Makerules (make-link-multidir): New.
22424 * config.make.in (multidir): New.
22425 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22426 * configure: Regenerated.
22427 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22428 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22429 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22430 New target.
22431
22432 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22433
22434 [BZ #22402]
22435 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22436 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22437
22438 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22439
22440 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22441 to be escaped.
22442
22443 2017-11-04 Florian Weimer <fweimer@redhat.com>
22444
22445 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22446
22447 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22448
22449 * math/math.h [__HAVE_DISTINCT_FLOAT16
22450 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22451 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22452 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22453 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22454 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22455 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22456 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22457 (__MATH_TG_F32): New macro.
22458 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22459 (__MATH_TG_F64X): Likewise.
22460 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22461 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22462
22463 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22464
22465 * po/de.po: Update translations.
22466 * po/ru.po: Likewise.
22467
22468 2017-11-03 Florian Weimer <fweimer@redhat.com>
22469
22470 * manual/filesys.texi (Hard Links): Document linkat.
22471
22472 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22473
22474 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22475 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22476 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22477 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22478 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22479 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22480 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22481 the same as _Float128.
22482 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22483 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22484 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22485
22486 * stdlib/stdlib.h
22487 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22488 Declare.
22489 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22490 Likewise.
22491 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22492 Likewise.
22493 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22494 (strtof32x): Likewise.
22495 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22496 (strtof64x): Likewise.
22497 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22498 (strtof128x): Likewise.
22499 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22500 (strfromf16): Likewise.
22501 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22502 (strfromf32): Likewise.
22503 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22504 (strfromf64): Likewise.
22505 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22506 (strfromf32x): Likewise.
22507 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22508 (strfromf64x): Likewise.
22509 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22510 (strfromf128x): Likewise.
22511 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22512 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22513 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22514 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22515 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22516 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22517
22518 2017-11-03 Richard Henderson <rth@twiddle.net>
22519
22520 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22521
22522 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22523
22524 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22525
22526 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22527
22528 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22529 DT_TLSDESC_GOT initialization.
22530 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22531 (_dl_tlsdesc_resolve_hold): Likewise.
22532 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22533 (_dl_tlsdesc_resolve_hold): Likewise.
22534 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22535 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22536
22537 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22538
22539 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22540
22541 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22542
22543 [BZ #18572]
22544 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22545 non-lazily for R_ARM_TLS_DESC.
22546
22547 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22548
22549 [BZ #17078]
22550 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22551 R_ARM_TLS_DESC case.
22552 (elf_machine_lazy_rel): Remove the prelink check.
22553
22554 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22555
22556 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22557 DT_TLSDESC_GOT initialization.
22558 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22559 (_dl_tlsdesc_resolve_rela): Likewise.
22560 (_dl_tlsdesc_resolve_hold): Likewise.
22561 (_dl_tlsdesc_undefweak): Remove ldar.
22562 (_dl_tlsdesc_dynamic): Likewise.
22563 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22564 (_dl_tlsdesc_resolve_rela): Likewise.
22565 (_dl_tlsdesc_resolve_hold): Likewise.
22566 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22567 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22568 (_dl_tlsdesc_resolve_rela): Likewise.
22569 (_dl_tlsdesc_resolve_hold): Likewise.
22570
22571 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22572
22573 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22574 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22575
22576 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22577
22578 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22579 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22580
22581 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22582
22583 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22584 Declare.
22585 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22586 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22587 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22588 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22589 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22590 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22591 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22592 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22593 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22594 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22595 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22596
22597 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22598
22599 [BZ #22382]
22600 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22601 * localedata/locales/tpi_PG: Add standard header.
22602
22603 2017-11-02 Florian Weimer <fweimer@redhat.com>
22604
22605 test-errno-linux: quotactl can fail with EPERM in containers.
22606 * sysdeps/unix/sysv/linux/test-errno-linux.c
22607 (LIST, LIST_FORWARD): New macros.
22608 (check_error_in_list): New function.
22609 (test_wrp_rv): Accept list of permitted error codes.
22610 (test_wrp_rv2): Remove.
22611 (test_wrp): Call test_wrp_rv with list of error codes.
22612 (test_wrp2): Accept list of error codes.
22613 (do_test): Adjust. Allow EPERM for quotactl.
22614
22615 2017-11-02 Florian Weimer <fweimer@redhat.com>
22616
22617 * stdio-common/bug16.c (do_test): Use array_length.
22618 * stdio-common/errlist.c (_sys_nerr): Likewise.
22619 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22620 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22621 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22622 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22623 (do_test): Use array_length.
22624 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22625 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22626 * stdio-common/tst-printf-round.c (do_test): Likewise.
22627 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22628 (CHECK): Use array_length.
22629 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22630 * stdio-common/tstscanf.c (main): Likewise.
22631 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22632
22633 2017-11-02 Florian Weimer <fweimer@redhat.com>
22634
22635 Add array_length and array_end macros.
22636 * include/array_length.h: New file.
22637
22638 2017-11-02 Florian Weimer <fweimer@redhat.com>
22639
22640 [BZ #22332]
22641 * posix/tst-glob-tilde.c (do_noescape): New variable.
22642 (one_test): Process it.
22643 (do_test): Set do_noescape. Add unescaping test case.
22644
22645 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22646
22647 * math/complex.h
22648 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22649 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22650 with appropriate macros defined and undefined.
22651 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22652 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22653 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22654 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22655 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22656 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22657 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22658 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22659 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22660 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22661
22662 * math/complex.h
22663 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22664 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22665 that for long double. Do not condition define and undefine of
22666 _Mdouble_complex_ on [__CFLOAT128].
22667
22668 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22669
22670 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22671 of <sysdeps/generic/sysdep.h>.
22672 (ALIGNARG): Removed.
22673 (ASM_SIZE_DIRECTIVE): Likewise.
22674 (ENTRY): Likewise.
22675 (END): Likewise.
22676 (ENTRY_CHK): Likewise.
22677 (END_CHK): Likewise.
22678 (syscall_error): Likewise.
22679 (mcount): Likewise.
22680 (PSEUDO_END): Likewise.
22681 (L): Likewise.
22682 (atom_text_section): Likewise.
22683 * sysdeps/x86/sysdep.h: New file.
22684 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22685 of <sysdeps/generic/sysdep.h>.
22686 (ALIGNARG): Removed.
22687 (ASM_SIZE_DIRECTIVE): Likewise.
22688 (ENTRY): Likewise.
22689 (END): Likewise.
22690 (ENTRY_CHK): Likewise.
22691 (END_CHK): Likewise.
22692 (syscall_error): Likewise.
22693 (mcount): Likewise.
22694 (PSEUDO_END): Likewise.
22695 (L): Likewise.
22696 (atom_text_section): Likewise.
22697
22698 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22699
22700 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22701 category of LC_CTYPE set to "i18n:2012".
22702 * localedata/locales/i18n_ctype: Regenerate.
22703
22704 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22705
22706 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22707 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22708 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22709 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22710
22711 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22712 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22713 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22714 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22715
22716 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22717
22718 * math/complex.h
22719 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22720 New macro.
22721 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22722 Likewise.
22723 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22724 Likewise.
22725 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22726 (CMPLXF32X): Likewise.
22727 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22728 (CMPLXF64X): Likewise.
22729 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22730 (CMPLXF128X): Likewise.
22731
22732 * math/math.h
22733 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22734 (__MATH_EVAL_FMT2): Define to add 0.0f.
22735
22736 2017-10-31 Alan Modra <amodra@gmail.com>
22737
22738 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22739 include sysdep.h.
22740 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22754 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22755 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22756 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22757 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22758 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22759 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22760 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22761 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22762 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22763 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22764 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22765 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22766 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22767 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22768 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22769 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22770 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22771 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22772 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22773 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22774 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
22775 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
22776 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
22777 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
22778 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
22779 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
22780 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
22781 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
22782 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
22783 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
22784 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
22785 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
22786 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
22787 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
22788 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22789 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
22790 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
22791 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
22792 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
22793 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
22794 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
22795 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
22796 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
22797 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
22798 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22799 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22800 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
22801 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
22802 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
22803 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
22804 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
22805 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
22806 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
22807 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
22808 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
22809
22810 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
22811 include sysdep.h and math_ldbl_opt.h.
22812
22813 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
22814 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
22815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
22816 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
22817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
22818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
22819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
22820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
22821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
22822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
22823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
22824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
22825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
22826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
22827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
22828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
22829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
22830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
22831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
22832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
22833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
22834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
22835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
22836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
22837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
22838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
22839
22840 2017-10-31 Alan Modra <amodra@gmail.com>
22841
22842 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
22843 string/strncase_l.c, not string/strncase.c.
22844 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
22845 (libc_hidden_def): Redefine.
22846
22847 2017-10-31 Alan Modra <amodra@gmail.com>
22848
22849 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
22850 (__STRCMP, STRCMP, __strcasecmp_l): Define.
22851 (__strcasecmp): Don't define.
22852
22853 2017-10-31 Alan Modra <amodra@gmail.com>
22854
22855 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
22856 IS_IN (libc).
22857 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
22858 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
22859 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
22860
22861 2017-10-31 Alan Modra <amodra@gmail.com>
22862
22863 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
22864 USE_AS_STPNCPY.
22865
22866 2017-10-31 Alan Modra <amodra@gmail.com>
22867
22868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
22869 Redefine only when SHARED.
22870
22871 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22872
22873 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
22874 Include <bits/math-finite.h> with appropriate macros defined and
22875 undefined.
22876 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
22877 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
22878 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
22879 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
22880 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
22881
22882 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
22883 [!_Mlong_double_] (_Mlong_double_): Likewise.
22884 [!_Mfloat16_] (_Mfloat16_): Likewise.
22885 [!_Mfloat32_] (_Mfloat32_): Likewise.
22886 [!_Mfloat64_] (_Mfloat64_): Likewise.
22887 [!_Mfloat128_] (_Mfloat128_): Likewise.
22888 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
22889 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
22890 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
22891 (_Mdouble_): Define without indirection through those macros.
22892 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
22893 [!_Mfloat128_] (_Mfloat128_): Likewise.
22894 [_Mlong_double_] (_Mlong_double_): Likewise.
22895 (_Mdouble_): Define without indirection through those macros.
22896 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
22897 not add -D_Mlong_double_=double.
22898 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
22899 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
22900
22901 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22902
22903 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
22904
22905 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22906
22907 * sysdeps/x86/libc-start.c: Reformat.
22908
22909 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
22910
22911 [BZ #22353]
22912 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
22913 (1): Renamed to ...
22914 (L(Src0)): This.
22915 (L(Src1)): New.
22916 (L(Src2)): Likewise.
22917 (L(1)): Renamed to ...
22918 (L(Src3)): This.
22919
22920 2017-10-30 Joseph Myers <joseph@codesourcery.com>
22921
22922 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
22923 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
22924 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
22925 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
22926 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
22927 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
22928 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
22929 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
22930 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
22931 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
22932 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
22933 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
22934 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
22935 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
22936 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
22937 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
22938 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
22939 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
22940 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
22941 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
22942 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
22943 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
22944 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
22945 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
22946 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
22947 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
22948 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
22949 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
22950 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
22951 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
22952 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
22953 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
22954 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
22955 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
22956 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
22957 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
22958 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
22959 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
22960 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
22961 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
22962 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
22963 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
22964 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
22965 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
22966 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
22967 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
22968 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
22969 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
22970 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
22971 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
22972 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
22973 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
22974 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
22975 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
22976 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
22977 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
22978 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
22979 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
22980 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
22981 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
22982 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
22983 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
22984 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
22985 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
22986 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
22987 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
22988
22989 2017-10-30 Florian Weimer <fweimer@redhat.com>
22990
22991 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
22992 always defined.
22993 * io/tst-mkdirat.c (do_test): Likewise.
22994 * io/tst-mkfifoat.c (do_test): Likewise.
22995 * io/tst-mknodat.c (do_test): Likewise.
22996 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
22997 * locale/programs/locale.c (select_dirs): Likewise.
22998 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
22999 * posix/bug-glob2.c (my_readdir): Likewise.
23000 * posix/tst-dir.c (main): Likewise.
23001 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23002 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23003
23004 2017-10-30 Florian Weimer <fweimer@redhat.com>
23005
23006 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23007 just __USE_GNU.
23008
23009 2017-10-30 Florian Weimer <fweimer@redhat.com>
23010
23011 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23012 Convert to support/test-driver.c.
23013 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23014 New macro parameters.
23015 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23016 * posix/tst-gnuglob.c: New file.
23017 * posix/tst-gnuglob64.c: Likewise.
23018 * posix/Makefile (tests): Add tst-gnuglob64.
23019
23020 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23021
23022 [BZ #19485]
23023 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23024 and use a better translation for March in “mon”.
23025 * localedata/locales/csb_PL: Use more ASCII to improve the
23026 readability of the source.
23027
23028 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23029
23030 [BZ #13953]
23031 * localedata/locales/km_KH: Use ASCII as much
23032 as possible for better readability of the source and
23033 remove useless comments.
23034 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23035 was commented out and apparently wrong anyway because it was
23036 using Lao characters. If Buddhist era should be used
23037 for km_KH, a native speaker should write the correct formaat
23038 for Khmer.
23039 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23040 (According to CLDR, the first weekday for Cambodia is Sunday).
23041 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23042 (These were using Lao characters which must be wrong. If we get
23043 the correct data from a native speaker, we could add it back, until
23044 then it is better not to have name_mr and name_mrs at all than
23045 having it wrong).
23046
23047 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23048
23049 * locale/loadlocale.c: Correct size of
23050 _nl_value_type_LC_<category> arrays.
23051
23052 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23053
23054 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23055 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23056 with appropriate macros defined and undefined.
23057 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23058 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23059 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23060 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23061 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23062
23063 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23064
23065 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23066 "-O2 -march=i586".
23067
23068 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23069
23070 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23071 with lowercase letters to make it agree with CLDR.
23072
23073 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23074
23075 [BZ #15260]
23076 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23077 first letters of yesstr and nostr in yesexpr and noexpr,
23078 not for the full words.
23079 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23080 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23081 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23082 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23083 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23084 first letters of yesstr and nostr in yesexpr and noexpr,
23085 until now only English was matched in yesexpr and noexpr.
23086 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23087 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23088 fil but not for tl. As tl and fil are very similar, using fil
23089 is probably better than using English.
23090
23091 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23092
23093 [BZ #21706]
23094 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23095 in yesstr and nostr.
23096
23097 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23098
23099 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23100 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23101 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23102 Likewise.
23103 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23104 Likewise.
23105 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23106 Likewise.
23107 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23108 Likewise.
23109 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23110 (SNANF128X): Likewise.
23111
23112 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23113 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23114 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23115 (HUGE_VAL_F32): Likewise.
23116 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23117 (HUGE_VAL_F64): Likewise.
23118 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23119 (HUGE_VAL_F32X): Likewise.
23120 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23121 (HUGE_VAL_F64X): Likewise.
23122 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23123 (HUGE_VAL_F128X): Likewise.
23124
23125 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23126
23127 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23128 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23129 for the br_FR locale.
23130
23131 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23132
23133 [BZ #21706]
23134 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23135
23136 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23137
23138 * locale/programs/record-status.h: Define globals, and function
23139 prototypes. Move function bodies...
23140 * locale/programs/record-status.c: ... to here. New file.
23141 * iconv/Makefile (iconv_prog-modules): Add record-status.
23142 * locale/Makefile (lib-modules): Likewise.
23143 * iconv/iconv_prog.c: Remove verbose.
23144 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23145 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23146 record a warning about ASCII compatibility.
23147 * locale/programs/ld-monetary.c (monetary_finish): If
23148 warn_int_curr_symbol is true then record a warning about the symbol
23149 not being in our ISO 4217 list.
23150 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23151 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23152 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23153 (OPT_NO_WARN): Define.
23154 (OPT_WARN): Define.
23155 (options): Add entry for --no-warnings, and --warnings.
23156 (set_warnings): New function to enable/disable warnings.
23157 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23158 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23159 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23160 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23161 Pass flags to generate_locale.
23162 (generate_locale): Accept new flag argument and pass it to localedef
23163 invocation.
23164 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23165 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23166
23167 * localedata/Makefile (test-input-data): Use full file name.
23168 * localedata/da_DK.in: Rename to...
23169 * localedata/da_DK.ISO-8859-1.in: ...this.
23170 * localedata/de_DE.in: Rename to...
23171 * localedata/de_DE.ISO-8859-1.in: ...this.
23172 * localedata/en_US.in: Rename to...
23173 * localedata/en_US.ISO-8859-1.in: ...this.
23174 * localedata/fr_FR.in: Rename to...
23175 * localedata/fr_FR.UTF-8.in: ... this.
23176 * localedata/hr_HR.in: Rename to...
23177 * localedata/hr_HR.ISO-8859-2.in: ...this.
23178 * localedata/hu_HU.in: Rename to...
23179 * localedata/hu_HU.UTF-8.in: ...this.
23180 * localedata/si_LK.in: Rename to...
23181 * localedata/si_LK.UTF-8.in: ...this.
23182 * localedata/sv_SE.in: Rename to...
23183 * localedata/sv_SE.ISO-8859-1.in: ...this.
23184 * localedata/tr_TR.in: Rename to...
23185 * localedata/tr_TR.UTF-8.in: ...this.
23186 * localedata/uk_UA.in: Rename to...
23187 * localedata/uk_UA.UTF-8.in: ...this.
23188 * localedata/sort-test.sh: Test file is locale name with the
23189 suffix.
23190
23191 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23192 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23193 file.
23194 * localedata/locales/i18n_ctype: Regenerate.
23195 * localedata/locales/tr_TR: Likewise.
23196 * localedata/locales/translit_circle: Likewise.
23197 * localedata/locales/translit_cjk_compat: Likewise.
23198 * localedata/locales/translit_combining: Likewise.
23199 * localedata/locales/translit_compat: Likewise.
23200 * localedata/locales/translit_font: Likewise.
23201 * localedata/locales/translit_fraction: Likewise.
23202
23203 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23204
23205 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23206 lxvd2x/stxvd2x with lvx/stvx.
23207 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23208
23209 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23210
23211 * include/alloc_buffer.h: Replace "if if " with "if " in
23212 comments.
23213 * sysdeps/mips/memcpy.S: Likkewise.
23214 * sysdeps/mips/memset.S: Likewise.
23215 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23216 Likewise.
23217 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23218 Likewise.
23219 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23220 Likewise.
23221
23222 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23223
23224 [BZ #15261]
23225 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23226 yesexpr and noexpr.
23227 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23228 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23229 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23230 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23231 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23232 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23233 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23234
23235 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23236
23237 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23238 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23239 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23240 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23241 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23242 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23243 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23244 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23245 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23246 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23247 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23248 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23249
23250 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23251
23252 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23253 as possible for better readability of the source.
23254 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23255 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23256 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23257 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23258 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23259 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23260 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23261 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23262 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23263 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23264 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23265 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23266 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23267 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23268 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23269 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23270 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23271 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23272 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23273 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23274 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23275 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23276 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23277 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23278 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23279 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23280 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23281 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23282 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23283 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23284 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23285 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23286 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23287 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23288 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23289 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23290 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23291 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23292 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23293 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23294 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23295 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23296 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23297 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23298 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23299 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23300 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23301 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23302 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23303 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23304 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23305 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23306 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23307 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23308 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23309 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23310 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23311 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23312 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23313 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23314 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23315 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23316 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23317 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23318 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23319 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23320 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23321 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23322 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23323 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23324 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23325 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23326 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23327 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23328 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23329 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23330 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23331 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23332 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23333 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23334 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23335 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23336 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23337 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23338 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23339 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23340 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23341 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23342 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23343 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23344 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23345 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23346 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23347 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23348 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23349 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23350 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23351 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23352 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23353 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23354 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23355 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23356 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23357 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23358 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23359 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23360 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23361 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23362 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23363 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23364 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23365 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23366 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23367 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23368 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23369 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23370 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23371 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23372 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23373 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23374 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23375 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23376 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23377 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23378 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23379 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23380 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23381 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23382 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23383 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23384 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23385 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23386 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23387 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23388 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23389 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23390 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23391 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23392 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23393 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23394 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23395 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23396 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23397 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23398 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23399 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23400 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23401 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23402 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23403 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23404 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23405 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23406 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23407 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23408 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23409 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23410 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23411 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23412 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23413 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23414 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23415 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23416 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23417 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23418 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23419 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23420 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23421 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23422 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23423 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23424 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23425 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23426 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23427 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23428
23429 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23430
23431 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23432 (Use first letters of yesstr and nostr correctly instead of using
23433 full words).
23434
23435 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23436
23437 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23438 (Use first letters of yesstr and nostr correctly).
23439
23440 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23441
23442 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23443 also check for the first characters of yesstr and nostr.
23444 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23445 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23446
23447 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23448
23449 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23450 also check for Chinese characters.
23451
23452 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23453
23454 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23455 match also for the contents of yesstr and nostr. As the first letter
23456 of yesstr and nostr is equal, checking only for the first letter
23457 is not enough.
23458
23459 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23460
23461 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23462 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23463
23464 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23465
23466 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23467 of main contributor.
23468
23469 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23470
23471 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23472 instead of using English.
23473
23474 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23475
23476 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23477 by including the first letters of nostr and yesexpr in the regexp.
23478 Also make it more readable by using ASCII where possible.
23479
23480 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23481
23482 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23483 the first letter of nostr in the regexp. It agrees with CLDR now.
23484 Also make it more readable by using ASCII where possible.
23485
23486 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23487
23488 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23489 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23490 these strings contain a U+17D6 (which somewhat looks like a colon)
23491 instead of a real colon to separate the full words for “yes”
23492 and “no” from the single letter responses.
23493
23494 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23495
23496 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23497 it agree with CLDR (include the first letter of yesstr).
23498 Also make it more readable by using ASCII where possible.
23499
23500 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23501
23502 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23503 and improve yesexpr and noexpr. The yesstr and nostr apparently
23504 came from CLDR. And CLDR has a bug there: these strings contain
23505 a U+0903 (which looks like a colon) instead of a real colon
23506 to separate the full words for “yes” and “no” from the single
23507 letter responses.
23508
23509 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23510
23511 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23512 letters of the full yesstr and nostr in yesexpr and noexpr.
23513
23514 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23515
23516 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23517 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23518 * localedata/locales/an_ES: Make source more readable by using ASCII
23519 where possible.
23520
23521 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23522
23523 [BZ #20952]
23524 * localedata/locales/yuw_PG: New file.
23525 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23526 * locale/iso-639.def: Add Yau (Uruwa).
23527
23528 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23529
23530 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23531
23532 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23533
23534 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23535 (__libc_realloc): Likewise.
23536 (_mid_memalign): Likewise.
23537 (__libc_calloc): Likewise.
23538
23539 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23540
23541 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23542 by adding the generic +1 and -0 as in all other locales.
23543 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23544 day names and make it more readable by using ASCII where possible.
23545
23546 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23547
23548 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23549 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23550
23551 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23552
23553 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23554 WNOHANG in waitpid call.
23555
23556 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23557
23558 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23559 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23560
23561 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23562 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23563 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23564 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23565 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23566 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23567 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23568 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23569 variables.
23570
23571 2017-10-23 Michael Collison <michael.collison@arm.com>
23572
23573 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23574 with __builtin_sqrt.
23575 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23576 with __builtin_sqrtf.
23577 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23578 with __builtin_ceil.
23579 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23580 with __builtin_ceilf.
23581 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23582 with __builtin_floor.
23583 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23584 with __builtin_floorf.
23585 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23586 with __builtin_fma.
23587 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23588 with __builtin_fmaf.
23589 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23590 with __builtin_fmax.
23591 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23592 with __builtin_fmaxf.
23593 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23594 with __builtin_fmin.
23595 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23596 with __builtin_fminf.
23597 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23598 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23599 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23600 with builtin_rint and conversion to int.
23601 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23602 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23603 with builtin_llround.
23604 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23605 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23606 with builtin_rint and conversion to long int.
23607 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23608 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23609 with builtin_lround.
23610 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23611 with builtin_lroundf.
23612 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23613 statements with __builtin_nearbyint.
23614 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23615 statements with __builtin_nearbyintf.
23616 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23617 with __builtin_rint.
23618 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23619 with __builtin_rintf.
23620 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23621 with __builtin_round.
23622 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23623 with __builtin_roundf.
23624 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23625 with __builtin_trunc.
23626 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23627 with __builtin_truncf.
23628 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23629 and s_l[l]round[f].c too.
23630
23631 2017-10-23 Alan Modra <amodra@gmail.com>
23632
23633 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23634 Adjust stack after restoring regs. Add missing LR cfi_restore.
23635
23636 2017-10-23 Alan Modra <amodra@gmail.com>
23637
23638 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23639 Move LR save and frame setup/teardown and LR restore to
23640 immediately around memset call. Provide cfi.
23641
23642 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23643
23644 * sysdeps/i386/fpu/e_powf.S: Removed.
23645 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23646 * sysdeps/i386/fpu/w_powf.c: Likewise.
23647 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23648 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23649 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23650 Add e_powf-sse2.
23651 (CFLAGS-e_powf-sse2.c): New.
23652 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23653 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23654
23655 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23656
23657 * sysdeps/i386/fpu/e_log2f.S: Removed.
23658 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23659 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23660 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23661 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23662 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23663 Add e_log2f-sse2.
23664 (CFLAGS-e_log2f-sse2.c): New.
23665 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23666 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23667
23668 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23669
23670 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23671 Add e_powf-fma.
23672 (CFLAGS-e_powf-fma.c): New.
23673 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23674 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23675
23676 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23677
23678 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23679 Add e_log2f-fma.
23680 (CFLAGS-e_log2f-fma.c): New.
23681 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23682 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23683
23684 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23685
23686 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23687 Add e_logf-fma.
23688 (CFLAGS-e_logf-fma.c): New.
23689 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23690 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23691
23692 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23693
23694 * sysdeps/i386/fpu/e_logf.S: Removed.
23695 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23696 * sysdeps/i386/fpu/w_logf.c: Likewise.
23697 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23698 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23699 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23700 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23701 Add e_logf-sse2.
23702 (CFLAGS-e_logf-sse2.c): New.
23703 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23704 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23705
23706 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23707
23708 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23709 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23710 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23711 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23712 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23713 Add e_exp2f-sse2.
23714 (CFLAGS-e_exp2f-sse2.c): New.
23715 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23716 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23717
23718 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23719
23720 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23721 Add e_exp2f-fma.
23722 (CFLAGS-e_exp2f-fma.c): New.
23723 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23724 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23725
23726 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23727
23728 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23729 * sysdeps/i386/fpu/e_expf.S: Likewise.
23730 * sysdeps/i386/fpu/math_errf.c: Likewise.
23731 * sysdeps/i386/fpu/w_expf.c: Likewise.
23732 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23733 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23734 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23735 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23736 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23737 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23738 Remove e_expf-ia32.
23739 (CFLAGS-e_expf-sse2.c): New.
23740 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23741 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23742
23743 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23744
23745 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23746 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23747 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23748 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23749 e_expf.c.
23750 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23751 New.
23752 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23753 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23754 Renamed to ...
23755 (__redirect_expf): This.
23756 (SYMBOL_NAME): Changed to expf.
23757 (__ieee754_expf): Renamed to ...
23758 (__expf): This.
23759 (__GI___expf): This.
23760 (__ieee754_expf): Add strong_alias.
23761 (__expf_finite): Likewise.
23762 (__expf): New.
23763 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23764
23765 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23766
23767 [BZ #22332]
23768 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23769 unescaping.
23770
23771 2017-10-21 Florian Weimer <fweimer@redhat.com>
23772
23773 * posix/Makefile (tests): Add tst-glob-tilde.
23774 (tests-special): Add tst-glob-tilde-mem.out
23775 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
23776 (tst-glob-tilde-mem.out): Add mtrace check.
23777 * posix/tst-glob-tilde.c: New file.
23778
23779 2017-10-20 Joseph Myers <joseph@codesourcery.com>
23780
23781 * bits/floatn-common.h: New file.
23782 * math/Makefile (headers): Add bits/floatn-common.h.
23783 * bits/floatn.h: Include <bits/floatn-common.h>.
23784 * sysdeps/ia64/bits/floatn.h: Likewise.
23785 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23786 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
23787 * sysdeps/powerpc/bits/floatn.h: Likewise.
23788 * sysdeps/x86/bits/floatn.h: Likewise.
23789
23790 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23791
23792 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
23793 indicates whether compiler emits an warning for alias for
23794 functions with incompatible types.
23795
23796 [BZ #22273]
23797 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
23798 the auxiliary process is terminated by a signal before calling _exit
23799 or execve.
23800
23801 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23802
23803 [BZ #21265]
23804 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
23805 New.
23806 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
23807 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
23808 and bit_arch_XSAVEC_Usable if needed.
23809 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
23810 and bit_arch_Use_dl_runtime_resolve_opt.
23811 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
23812 Removed.
23813 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
23814 (bit_arch_Prefer_No_AVX512): Updated.
23815 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
23816 (bit_arch_XSAVEC_Usable): New.
23817 (STATE_SAVE_OFFSET): Likewise.
23818 (STATE_SAVE_MASK): Likewise.
23819 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
23820 (cpu_features): Add xsave_state_size and xsave_state_full_size.
23821 (index_arch_Use_dl_runtime_resolve_opt): Removed.
23822 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
23823 (index_arch_XSAVEC_Usable): New.
23824 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23825 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
23826 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
23827 is enabled.
23828 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
23829 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
23830 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
23831 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
23832 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
23833 _dl_runtime_resolve_xsavec.
23834 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
23835 Removed.
23836 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
23837 instead of VEC_SIZE.
23838 (REGISTER_SAVE_BND0): Removed.
23839 (REGISTER_SAVE_BND1): Likewise.
23840 (REGISTER_SAVE_BND3): Likewise.
23841 (REGISTER_SAVE_RAX): Always defined to 0.
23842 (VMOV): Removed.
23843 (_dl_runtime_resolve_avx): Likewise.
23844 (_dl_runtime_resolve_avx_slow): Likewise.
23845 (_dl_runtime_resolve_avx_opt): Likewise.
23846 (_dl_runtime_resolve_avx512): Likewise.
23847 (_dl_runtime_resolve_avx512_opt): Likewise.
23848 (_dl_runtime_resolve_sse): Likewise.
23849 (_dl_runtime_resolve_sse_vex): Likewise.
23850 (USE_FXSAVE): New.
23851 (_dl_runtime_resolve_fxsave): Likewise.
23852 (USE_XSAVE): Likewise.
23853 (_dl_runtime_resolve_xsave): Likewise.
23854 (USE_XSAVEC): Likewise.
23855 (_dl_runtime_resolve_xsavec): Likewise.
23856 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
23857 Removed.
23858 (_dl_runtime_resolve_avx512_opt): Likewise.
23859 (_dl_runtime_resolve_avx): Likewise.
23860 (_dl_runtime_resolve_avx_opt): Likewise.
23861 (_dl_runtime_resolve_sse): Likewise.
23862 (_dl_runtime_resolve_sse_vex): Likewise.
23863 (_dl_runtime_resolve_fxsave): New.
23864 (_dl_runtime_resolve_xsave): Likewise.
23865 (_dl_runtime_resolve_xsavec): Likewise.
23866
23867 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
23868
23869 [BZ #22320]
23870 CVE-2017-15670
23871 * posix/glob.c (__glob): Fix one-byte overflow.
23872
23873 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23874
23875 * malloc/malloc.c (sysdep-cancel.h): Add include.
23876
23877 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
23878
23879 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
23880
23881 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
23882
23883 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
23884 (tests): Remove $(objpfx)ga_test depdendency.
23885 * resolv/ga_test.c: Remove file.
23886
23887 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23888
23889 [BZ #18812]
23890 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
23891 * localedata/locales/kab_DZ: New file.
23892
23893 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23894
23895 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
23896 _dl_relocate_static_pie instead of _dl_start to compute load
23897 address in static PIE.
23898
23899 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
23900
23901 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
23902
23903 2017-10-20 Mike FABIAN <mfabian@redhat.com>
23904
23905 [BZ #13605]
23906 * localedata/SUPPORTED: Add shn_MM/UTF-8.
23907 * localedata/locales/shn_MM: New file.
23908
23909 2017-10-20 Florian Weimer <fweimer@redhat.com>
23910
23911 [BZ #22321]
23912 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
23913 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
23914 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
23915 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
23916 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
23917 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
23918
23919 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
23920
23921 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
23922
23923 2017-10-19 Joseph Myers <joseph@codesourcery.com>
23924
23925 * sysdeps/mips/ieee754/bits/floatn.h: New file.
23926
23927 [BZ #22322]
23928 * sysdeps/mips/bits/long-double.h: Move to ....
23929 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
23930
23931 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
23932
23933 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
23934
23935 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
23936 H.J. Lu <hongjiu.lu@intel.com>
23937
23938 [BZ #22299]
23939 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
23940 GLRO(dl_platform) to NULL.
23941 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
23942 (modules-names): Add tst-platformmod-1 and
23943 x86_64/tst-platformmod-2.
23944 (CFLAGS-tst-platform-1.c): New.
23945 (CFLAGS-tst-platformmod-1.c): Likewise.
23946 (CFLAGS-tst-platformmod-2.c): Likewise.
23947 (LDFLAGS-tst-platformmod-2.so): Likewise.
23948 ($(objpfx)tst-platform-1): Likewise.
23949 ($(objpfx)tst-platform-1.out): Likewise.
23950 (tst-platform-1-ENV): Likewise.
23951 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
23952 * sysdeps/x86_64/tst-platform-1.c: New file.
23953 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
23954 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
23955
23956 2017-10-19 Mike FABIAN <mfabian@redhat.com>
23957
23958 [BZ #13994]
23959 * locale/iso-639.def: Add Karbi.
23960 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
23961 * localedata/locales/mjw_IN: New file.
23962
23963 2017-10-18 Joseph Myers <joseph@codesourcery.com>
23964
23965 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
23966 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
23967 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
23968 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
23969 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
23970 (libm_alias_ldouble_other_r): Also create _Float128 alias.
23971 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
23972 <bits/floatn.h>.
23973 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
23974 (libm_alias_ldouble_other_r): Also create _Float128 alias.
23975 * manual/math.texi (Mathematics): Document additional architecture
23976 support for _Float128.
23977 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23978 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23979 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23980 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23981 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23982 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23983 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23984 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23985 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23986 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23987 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23988 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23989 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23990 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23991 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23992
23993 2017-10-18 Renlin Li <renlin.li@arm.com>
23994
23995 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
23996 _DYNAMIC symbol to calculate load address.
23997
23998 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
23999
24000 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24001 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24002 summary bits.
24003 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24004 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24005
24006 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24007
24008 [BZ #16777]
24009 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24010 and improve readability by using more ASCII.
24011 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24012 and improve readability by using more ASCII.
24013
24014 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24015
24016 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24017 not all targets support atomics on bool.
24018
24019 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24020
24021 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24022 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24023 __f128.
24024 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24025 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24026 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24027 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24028 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24029 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24030
24031 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24032
24033 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24034 defines.
24035
24036 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24037
24038 [BZ #22159]
24039 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24040 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24041 (do_check_remalloced_chunk): Fix build bug.
24042 (do_check_malloc_state): Add assert that checks arena->top.
24043 (malloc_consolidate): Remove initialization.
24044 (int_mallinfo): Remove call to malloc_consolidate.
24045 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24046
24047 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24048
24049 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24050 (have_fastchunks): Remove.
24051 (clear_fastchunks): Remove.
24052 (set_fastchunks): Remove.
24053 (malloc_state): Add have_fastchunks.
24054 (malloc_init_state): Use have_fastchunks.
24055 (do_check_malloc_state): Remove incorrect invariant checks.
24056 (_int_malloc): Use have_fastchunks.
24057 (_int_free): Likewise.
24058 (malloc_consolidate): Likewise.
24059
24060 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24061
24062 * malloc/malloc.c (tcache_put): Inline.
24063 (tcache_get): Inline.
24064
24065 2017-10-17 Jordi Mallach <jordi@gnu.org>
24066
24067 Aurelien Jarno <aurelien@aurel32.net>
24068 [BZ #2522]
24069 * localedata/locales/ca_ES@valencia: New file.
24070 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24071
24072 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24073
24074 [BZ #22296]
24075 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24076 < 6.x
24077
24078 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24079
24080 * scripts/build-many-glibcs.py (Context.add_all_configs):
24081 Add arm-linux-gnueabihf multiarch extra_glibcs.
24082
24083 * sysdeps/generic/ifunc-init.h: New file.
24084 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24085
24086 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24087
24088 [BZ #22019]
24089 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24090 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24091 * stdlib/tst-strfmon_l.c: adapt test case.
24092
24093 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24094
24095 * sysdeps/generic/float128-abi.h: New file.
24096 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24097 non-__prefixed symbols to ....
24098 * math/Versions: ... here. Include <float128-abi.h>.
24099 * stdlib/Versions ... and here. Include <float128-abi.h>
24100
24101 2017-10-16 Florian Weimer <fweimer@redhat.com>
24102
24103 * version.h (VERSION): Switch to ".9000" as the development
24104 version suffix.
24105
24106 2017-10-16 Florian Weimer <fweimer@redhat.com>
24107
24108 [BZ #22050]
24109 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24110 compat_symbol_reference to access non-default version.
24111
24112 2017-10-16 Florian Weimer <fweimer@redhat.com>
24113
24114 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24115
24116 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24117
24118 * include/shlib-compat.h (compat_symbol_reference): Update
24119 comment.
24120
24121 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24122
24123 * math/Makefile (test-types): Add
24124 $(type-float128-$(float128-alias-fcts)).
24125 * math/test-float128.h (TYPE_STR): Define conditional on
24126 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24127 (ULP_IDX): Likewise.
24128 (ULP_I_IDX): Likewise.
24129
24130 * stdlib/strtold.c: Include <bits/floatn.h>
24131 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24132 and later undefine as macro. Define as weak alias if
24133 [!USE_WIDE_CHAR].
24134 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24135 and later undefine as macro. Define as weak alias if
24136 [USE_WIDE_CHAR].
24137 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24138 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24139 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24140 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24141 Define and later undefine as macro. Define as weak alias if
24142 [USE_WIDE_CHAR].
24143 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24144 <bits/floatn.h>.
24145 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24146 Define and later undefine as macro. Define as weak alias if
24147 [!USE_WIDE_CHAR].
24148 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24149 Define and later undefine as macro. Define as weak alias if
24150 [USE_WIDE_CHAR].
24151
24152 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24153
24154 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24155 record_verbose messages.
24156
24157 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24158
24159 [BZ #22052]
24160 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24161 to silence -O3 -Wall warning with GCC 7.
24162
24163 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24164
24165 * Makeconfig (+link-static-before-libc): Use the first of
24166 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24167 * gmon/Makefile (tests): Add tst-gmon-static.
24168 (tests-static): Likewise.
24169 (CFLAGS-tst-gmon-static.c): New.
24170 (CRT-tst-gmon-static): Likewise.
24171 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24172 (tst-gmon-static-ENV): Likewise.
24173 (tests-special): Likewise.
24174 ($(objpfx)tst-gmon-static.out): Likewise.
24175 (clean-tst-gmon-static-data): Likewise.
24176 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24177 * gmon/tst-gmon-static-gprof.sh: New file.
24178 * gmon/tst-gmon-static.c: Likewise.
24179
24180 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24181
24182 [BZ #22295]
24183 * locale/programs/linereader.c (get_string): Don't warn on
24184 non-symbolic character.
24185
24186 [BZ #22294]
24187 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24188 int_curr_symbol.
24189
24190 [BZ #22292]
24191 * locale/programs/record-status.h: New file
24192 * locale/programs/locale.c: Add comment.
24193 * locale/programs/charmap-dir.c: Don't include error.h.
24194 (charmap_opendir): Use record_error.
24195 * locale/programs/charmap.c: Don't include error.h.
24196 (charmap_read): Use record_error, and record_warning.
24197 (parse_charmap): Likewise.
24198 * locale/programs/ld-address.c: Don't include error.h.
24199 (address_finish): Use record_error, and record_warning.
24200 * locale/programs/ld-collate.c: Don't include error.h.
24201 (collate_finish): Use record_error, and record_error_at_line.
24202 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24203 (ctype_class_new): Likewise.
24204 (ctype_map_new): Likewise.
24205 (set_one_default): Likewise.
24206 (set_class_defaults): Likewise.
24207 (translit_flatten): Likewise.
24208 (allocate_arrays): Use record_error, and record_verbose.
24209 * locale/programs/ld-identification.c: Don't include error.h.
24210 (indentation_finish): Use record_error and record_warning.
24211 * locale/programs/ld-measurement.c: Don't include error.h.
24212 (measurement_finish): Use record_error.
24213 * locale/programs/ld-messages.c
24214 (message_finish): Likewise.
24215 * locale/programs/ld-monetary.c
24216 (monetary_finish): Likewise.
24217 * locale/programs/ld-name.c (name_finish): Use record_error
24218 and record_warning.
24219 * locale/programs/ld-numeric.c
24220 (numeric_finish): Use record_error.
24221 * locale/programs/ld-paper.c: Don't include error.h.
24222 (paper_finish): Use record_error.
24223 * locale/programs/ld-telephone.c: Don't include error.h.
24224 (telephone_finish): Use record_error.
24225 * locale/programs/ld-time.c (time_finish): Likewise.
24226 * locale/programs/linereader.h (lr_error): Make inline func.
24227 * locale/programs/localedef.c: Define recorded_warning_count,
24228 and recorded_error_count.
24229 (main): Use record_error. Use recorded_error_count and
24230 recorded_warning_count to issue correct error returns.
24231 (add_to_readlist): Use record_error.
24232 (find_locale): Likewise.
24233 (load_locale): Likewise.
24234 * locale/programs/localedef.h: Remove be_quiet
24235 and WITH_CUR_LOCALE.
24236 * locale/programs/locarchive.c (compare_from_file): Use
24237 record_error.
24238 * locale/programs/locfile.c (write_locale_data): Use
24239 record_error.
24240 * locale/programs/repertoire.c: Dont include error.h.
24241 (repertoire_complain): Use record_error.
24242 * localedata/tst-fmon.sh: Expect failures from localedef.
24243 * localedata/tst-locale.sh: Likewise.
24244 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24245
24246 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24247 (REPORTS): Likewise.
24248 (check): Likewise.
24249 (i18n): Rename to...
24250 (i18n_ctype): ...this.
24251 (i18n-report): Rename to...
24252 (i18n_ctype-report): ...this.
24253 * localedata/locales/i18n_ctype: Regenerate.
24254 * localedata/locales/i18n: copy i18n_ctype.
24255
24256 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24257
24258 * stdlib/strfroml.c: Include <bits/floatn.h>.
24259 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24260 Define before include of <stdlib.h> and undefine afterwards, then
24261 define as weak alias.
24262
24263 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24264 Undefine and restore default definition. Use
24265 libm_alias_ldouble_other.
24266
24267 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24268
24269 [BZ #22153]
24270 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24271 in coredumps.
24272
24273 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24274
24275 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24276 Assign sym_map to be map for local symbols, as TLS relocations
24277 use sym_map to determine whether the symbol is defined and to
24278 extract the TLS information.
24279 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24280 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24281
24282 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24283
24284 [BZ #22189]
24285 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24286 (math_force_eval): Add powerpc version.
24287
24288 [BZ #22142]
24289 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24290 -DBL_MAX.
24291 (do_test): Likewise.
24292 * stdio-common/tst-printf.sh: Likewise.
24293 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24294 ifdef clause in order to set the carry bit right. Replace r0 by
24295 0 without changing the behavior.
24296
24297 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24298
24299 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24300 <libm-alias-ldouble.h>.
24301 (fabsl): Define using libm_alias_ldouble.
24302 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24303 <libm-alias-ldouble.h>.
24304 (fabsl): Define using libm_alias_ldouble.
24305
24306 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24307 Remove conditional code.
24308
24309 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24310 Rename to __clog10_internal_l.
24311 (__clog10_internal_l): Define aliases using
24312 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24313 with __clog10.
24314
24315 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24316
24317 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24318 * benchtests/sincosf-inputs: New file.
24319 * benchtests/cosf-inputs: New file.
24320 * benchtests/sinf-inputs: New file.
24321
24322 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24323
24324 * posix/tst-spawn.c (do_test): Wait for both children.
24325
24326 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24327
24328 [BZ #22284]
24329 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24330 tests-pie): Add tst-gmon-pie.
24331 (CFLAGS-tst-gmon-pie.c): New.
24332 (CRT-tst-gmon-pie): Likewise.
24333 (tst-gmon-pie-ENV): Likewise.
24334 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24335 ($(objpfx)tst-gmon-pie.out): Likewise.
24336 (clean-tst-gmon-pie-data): Likewise.
24337 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24338 * gmon/gmon.c [PIC]: Include <link.h>.
24339 [PIC] (callback): New function.
24340 (write_hist): Add an argument for load address. Subtract load
24341 address from PCs.
24342 (write_call_graph): Likewise.
24343 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24344 it to write_hist and write_call_graph.
24345 * gmon/tst-gmon-pie.c: New file.
24346
24347 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24348
24349 * math/Makefile (test-types-basic): New variable.
24350 (test-types): Likewise.
24351 (libm-test-support): Use $(test-types) instead of $(types).
24352 (libm-tests-base-normal): Likewise.
24353 (libm-tests-base-finite): Likewise.
24354 (libm-tests-base-inline): Likewise.
24355 (generated): Likewise.
24356 ($(objpfx)libm-test-support-$(t).c): Likewise.
24357 (libm-tests-for-type iterator): Likewise.
24358 (libm-test-support iterator): Likewise.
24359 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24360 (ulp_idx): Use ULP_IDX.
24361 * math/test-ldouble.h: Include <float.h>.
24362 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24363 (ULP_IDX): New macro.
24364 (ULP_I_IDX): Likewise.
24365 * math/test-double.h (ULP_IDX): Likewise.
24366 (ULP_I_IDX): Likewise.
24367 * math/test-float.h (ULP_IDX): Likewise.
24368 (ULP_I_IDX): Likewise.
24369 * math/test-float128.h (ULP_IDX): Likewise.
24370 (ULP_I_IDX): Likewise.
24371
24372 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24373
24374 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24375 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24376 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24377 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24378 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24379 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24380 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24381 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24382 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24383 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24384 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24385 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24386 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24387 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24388 (SINGLE_THREAD_BY_GLOBAL): Define.
24389 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24390 Likewise.
24391 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24392 Likewise.
24393 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24394 Likewise.
24395 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24396 Likewise.
24397 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24398 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24399 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24400 Likewise.
24401
24402 2017-10-11 Andreas Schwab <schwab@suse.de>
24403
24404 * nis/Makefile (aux): Remove.
24405 * nscd/Makefile (aux): Add nscd_hash.
24406 (nscd-modules): Likewise.
24407 ($(objpfx)nscd): Don't depend on libnsl.
24408 * nscd/nscd_hash.c: New file.
24409 * nscd/nscd_hash.h: Likewise.
24410 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24411 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24412 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24413 instead of <nis/rpcsvc/nis.h>.
24414 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24415
24416 2017-10-11 Florian Weimer <fweimer@redhat.com>
24417
24418 [BZ #22078]
24419 Avoid large NSS buffers with many addresses, aliases.
24420 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24421 using dynarrays and struct alloc_buffer.
24422 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24423 (tst-nss-files-hosts-multi): Link with -ldl.
24424 * nss/tst-nss-files-hosts-multi.c: New file.
24425
24426 2017-10-11 Florian Weimer <fweimer@redhat.com>
24427
24428 [BZ #18023]
24429 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24430 scratch_buffer. Eliminate gotos.
24431
24432 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24433
24434 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24435 libm_alias_ldouble_other.
24436 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24437 undefine and redefine.
24438 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24439 (exp10l): Do not define here.
24440 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24441 (weak_alias): Undefine and redefine.
24442 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24443 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24444 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24445 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24446
24447 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24448 [!__fma] (fma): Define using libm_alias_double.
24449 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24450 [!__fmaf] (fmaf): Define using libm_alias_float.
24451 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24452 (fmal): Define using libm_alias_ldouble.
24453
24454 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24455
24456 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24457 New macro.
24458 (libm_alias_double_other): Likewise.
24459 (libm_alias_double_r): Use libm_alias_double_other_r.
24460 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24461 New macro.
24462 (libm_alias_float_other): Likewise.
24463 (libm_alias_float_r): Use libm_alias_float_other_r.
24464 * sysdeps/generic/libm-alias-float128.h
24465 (libm_alias_float128_other_r): New macro.
24466 (libm_alias_float128_other): Likewise.
24467 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24468 * sysdeps/generic/libm-alias-ldouble.h
24469 (libm_alias_ldouble_other_r): New macro.
24470 (libm_alias_ldouble_other): Likewise.
24471 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24472 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24473 (libm_alias_double_other_r): New macro.
24474 (libm_alias_double_other): Likewise.
24475 (libm_alias_double_r): Use libm_alias_double_other_r.
24476 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24477 (libm_alias_ldouble_other_r): New macro.
24478 (libm_alias_ldouble_other): Likewise.
24479 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24480 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24481 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24482 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24483 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24484 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24485 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24486 * math/w_exp2f.c: Use libm_alias_float_other.
24487 * math/w_expf.c: Likewise.
24488 * math/w_log2f.c: Likewise.
24489 * math/w_logf.c: Likewise.
24490 * math/w_powf.c: Likewise.
24491 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24492 [!__exp2f]: Use libm_alias_float_other.
24493 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24494 [!__expf]: Use libm_alias_float_other.
24495 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24496 [!__log2f]: Use libm_alias_float_other.
24497 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24498 [!__logf]: Use libm_alias_float_other.
24499 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24500 [!__powf]: Use libm_alias_float_other.
24501
24502 2017-10-10 Florian Weimer <fweimer@redhat.com>
24503
24504 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24505 function.
24506 (_nss_files_gethostbyname3_r): Call it.
24507
24508 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24509
24510 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24511 error. Remove default definition of declare_mgen_alias.
24512 [!declare_mgen_alias_r]: Likewise.
24513 * sysdeps/generic/math-type-macros-double.h
24514 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24515 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24516 (declare_mgen_alias_r): Likewise.
24517 * sysdeps/generic/math-type-macros-float128.h
24518 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24519 * sysdeps/generic/math-type-macros-ldouble.h
24520 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24521 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24522 macro.
24523 (declare_mgen_alias_r_s): Likewise.
24524 (declare_mgen_alias_r): Likewise.
24525 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24526 (lgamma_r): Define using libm_alias_double_r.
24527 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24528 (lgammaf_r): Define using libm_alias_float_r.
24529 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24530 (lgammal_r): Define using libm_alias_ldouble_r.
24531 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24532 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24533
24534 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24535
24536 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24537 extern declaration.
24538
24539 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24540
24541 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24542
24543 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24544
24545 [BZ #21326]
24546 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24547 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24548 * math/Makefile (test-math-cxx11): New test.
24549 * math/test-math-cxx11.cc: New file.
24550
24551 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24552
24553 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24554
24555 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24556 call to allocate the slave pty file descriptor.
24557
24558 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24559
24560 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24561 [!__fma] (fma): Define using libm_alias_double.
24562 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24563 [!__fma] (fma): Define using libm_alias_double.
24564
24565 * sysdeps/ieee754/float128/float128_private.h: Include
24566 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24567 (libm_alias_ldouble_r): Undefine and redefine.
24568 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24569 <libm-alias-ldouble.h>.
24570 (asinhl): Define using libm_alias_ldouble.
24571 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24572 <libm-alias-ldouble.h>.
24573 (atanl): Define using libm_alias_ldouble.
24574 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24575 <libm-alias-ldouble.h>.
24576 (cbrtl): Define using libm_alias_ldouble.
24577 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24578 <libm-alias-ldouble.h>.
24579 (ceill): Define using libm_alias_ldouble.
24580 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24581 <libm-alias-ldouble.h>.
24582 (copysignl): Define using libm_alias_ldouble.
24583 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24584 <libm-alias-ldouble.h>.
24585 (cosl): Define using libm_alias_ldouble.
24586 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24587 <libm-alias-ldouble.h>.
24588 (erfl): Define using libm_alias_ldouble.
24589 (erfcl): Likewise.
24590 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24591 <libm-alias-ldouble.h>.
24592 (expm1l): Define using libm_alias_ldouble.
24593 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24594 <libm-alias-ldouble.h>.
24595 (fabsl): Define using libm_alias_ldouble.
24596 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24597 <libm-alias-ldouble.h>.
24598 (floorl): Define using libm_alias_ldouble.
24599 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24600 <libm-alias-ldouble.h>.
24601 (fmal): Define using libm_alias_ldouble.
24602 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24603 <libm-alias-ldouble.h>.
24604 (frexpl): Define using libm_alias_ldouble.
24605 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24606 libm_alias_ldouble.
24607 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24608 <libm-alias-ldouble.h>.
24609 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24610 libm_alias_ldouble.
24611 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24612 <libm-alias-ldouble.h>.
24613 (getpayloadl): Define using libm_alias_ldouble.
24614 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24615 <libm-alias-ldouble.h>.
24616 (llrintl): Define using libm_alias_ldouble.
24617 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24618 <libm-alias-ldouble.h>.
24619 (llroundl): Define using libm_alias_ldouble.
24620 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24621 <libm-alias-ldouble.h>.
24622 (logbl): Define using libm_alias_ldouble.
24623 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24624 <libm-alias-ldouble.h>.
24625 (lrintl): Define using libm_alias_ldouble.
24626 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24627 <libm-alias-ldouble.h>.
24628 (lroundl): Define using libm_alias_ldouble.
24629 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24630 <libm-alias-ldouble.h>.
24631 (modfl): Define using libm_alias_ldouble.
24632 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24633 <libm-alias-ldouble.h>.
24634 (nearbyintl): Define using libm_alias_ldouble.
24635 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24636 <libm-alias-ldouble.h>.
24637 (nextafterl): Define using libm_alias_ldouble.
24638 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24639 <libm-alias-ldouble.h>.
24640 (nextupl): Define using libm_alias_ldouble.
24641 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24642 <libm-alias-ldouble.h>.
24643 (remquol): Define using libm_alias_ldouble.
24644 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24645 <libm-alias-ldouble.h>.
24646 (rintl): Define using libm_alias_ldouble.
24647 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24648 <libm-alias-ldouble.h>.
24649 (roundevenl): Define using libm_alias_ldouble.
24650 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24651 <libm-alias-ldouble.h>.
24652 (roundl): Define using libm_alias_ldouble.
24653 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24654 using libm_alias_ldouble.
24655 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24656 <libm-alias-ldouble.h>.
24657 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24658 Define using libm_alias_ldouble.
24659 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24660 <libm-alias-ldouble.h>.
24661 (sincosl): Define using libm_alias_ldouble.
24662 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24663 <libm-alias-ldouble.h>.
24664 (sinl): Define using libm_alias_ldouble.
24665 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24666 <libm-alias-ldouble.h>.
24667 (tanhl): Define using libm_alias_ldouble.
24668 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24669 <libm-alias-ldouble.h>.
24670 (tanl): Define using libm_alias_ldouble.
24671 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24672 <libm-alias-ldouble.h>.
24673 (totalorderl): Define using libm_alias_ldouble.
24674 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24675 <libm-alias-ldouble.h>.
24676 (totalordermagl): Define using libm_alias_ldouble.
24677 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24678 <libm-alias-ldouble.h>.
24679 (truncl): Define using libm_alias_ldouble.
24680 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24681 libm_alias_ldouble.
24682 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24683 libm_alias_ldouble.
24684 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24685 <libm-alias-ldouble.h>.
24686 (weak_alias): Do not undefine and redefine.
24687 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24688 (copysignl): Define with long_double_symbol only if [IS_IN
24689 (libc)].
24690 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24691 <libm-alias-ldouble.h>.
24692 (weak_alias): Do not undefine and redefine.
24693 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24694 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24695 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24696 <libm-alias-ldouble.h>.
24697 (weak_alias): Do not undefine and redefine.
24698 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24699 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24700 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24701 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24702 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24703 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24704 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24705 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24706 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24707 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24708 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24709 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24710 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24711 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24712 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24713 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24714 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24715 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24716 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24717 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24718 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24719 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24720 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24721 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24722 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24723 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24724
24725 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24726
24727 [BZ #22111]
24728 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24729 (tcache_thread_freeres): Set tcache_shutting_down before
24730 freeing the tcache.
24731 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24732 * malloc/tst-malloc-tcache-leak.c: New file.
24733
24734 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24735
24736 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24737 back to powerpc32 file.
24738 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24739 (memrchr): Add __memrchr_power8 to ifunc list.
24740 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24741 extra bytes for unaligned inputs.
24742
24743 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24744
24745 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24746 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24747 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24748 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24749 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24750
24751 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24752
24753 * sysdeps/arm/libm-test-ulps: Update.
24754
24755 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24756 <libm-alias-ldouble.h>.
24757 (asinhl): Define using libm_alias_ldouble.
24758 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24759 <libm-alias-ldouble.h>.
24760 (cbrtl): Define using libm_alias_ldouble.
24761 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24762 <libm-alias-ldouble.h>.
24763 (copysignl): Define using libm_alias_ldouble.
24764 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24765 <libm-alias-ldouble.h>.
24766 (cosl): Define using libm_alias_ldouble.
24767 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24768 <libm-alias-ldouble.h>.
24769 (erfl): Define using libm_alias_ldouble.
24770 (erfcl): Likewise.
24771 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24772 <libm-alias-ldouble.h>.
24773 (fmal): Define using libm_alias_ldouble.
24774 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
24775 <libm-alias-ldouble.h>.
24776 (frexpl): Define using libm_alias_ldouble.
24777 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
24778 libm_alias_ldouble.
24779 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
24780 <libm-alias-ldouble.h>.
24781 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
24782 libm_alias_ldouble.
24783 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
24784 <libm-alias-ldouble.h>.
24785 (getpayloadl): Define using libm_alias_ldouble.
24786 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
24787 <libm-alias-ldouble.h>.
24788 (llrintl): Define using libm_alias_ldouble.
24789 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
24790 <libm-alias-ldouble.h>.
24791 (llroundl): Define using libm_alias_ldouble.
24792 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
24793 <libm-alias-ldouble.h>.
24794 (lrintl): Define using libm_alias_ldouble.
24795 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
24796 <libm-alias-ldouble.h>.
24797 (lroundl): Define using libm_alias_ldouble.
24798 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
24799 <libm-alias-ldouble.h>.
24800 (modfl): Define using libm_alias_ldouble.
24801 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
24802 <libm-alias-ldouble.h>.
24803 (nextupl): Define using libm_alias_ldouble.
24804 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
24805 <libm-alias-ldouble.h>.
24806 (remquol): Define using libm_alias_ldouble.
24807 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
24808 <libm-alias-ldouble.h>.
24809 (roundevenl): Define using libm_alias_ldouble.
24810 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
24811 <libm-alias-ldouble.h>.
24812 (roundl): Define using libm_alias_ldouble.
24813 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
24814 using libm_alias_ldouble.
24815 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
24816 <libm-alias-ldouble.h>.
24817 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
24818 <libm-alias-ldouble.h>.
24819 (setpayloadsigl): Define using libm_alias_ldouble.
24820 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
24821 <libm-alias-ldouble.h>.
24822 (sincosl): Define using libm_alias_ldouble.
24823 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
24824 <libm-alias-ldouble.h>.
24825 (sinl): Define using libm_alias_ldouble.
24826 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
24827 <libm-alias-ldouble.h>.
24828 (tanhl): Define using libm_alias_ldouble.
24829 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
24830 <libm-alias-ldouble.h>.
24831 (tanl): Define using libm_alias_ldouble.
24832 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
24833 <libm-alias-ldouble.h>.
24834 (totalorderl): Define using libm_alias_ldouble.
24835 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
24836 <libm-alias-ldouble.h>.
24837 (totalordermagl): Define using libm_alias_ldouble.
24838 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
24839 libm_alias_ldouble.
24840 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
24841 libm_alias_ldouble.
24842
24843 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
24844
24845 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
24846 memmove_falkor.
24847 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24848 (__libc_ifunc_impl_list): Likewise.
24849 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
24850 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
24851
24852 * benchtests/bench-memmove-walk.c: New file.
24853 * benchtests/Makefile (string-benchset): Add it.
24854
24855 * benchtests/bench-memset-walk.c: New file.
24856 * benchtests/Makefile (string-benchset): Add it.
24857
24858 * benchtests/bench-memcpy-walk.c: New file.
24859 * benchtests/Makefile (string-benchset): Add it.
24860
24861 2017-10-05 Florian Weimer <fweimer@redhat.com>
24862
24863 nscd: Eliminate compilation time dependency in the build output.
24864 * nscd/nscd_stat.c (STATDATA_VERSION)
24865 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
24866 (STATDATA_VERSION_FULL): New macro definitions.
24867 (compilation): Remove.
24868 (struct statdata): Adjust version member.
24869 (send_stats): Set version from STATDATA_VERSION_FULL.
24870 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
24871
24872 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24873
24874 * configure.ac (--enable-add-ons): Remove option.
24875 (machine): Do not mention add-ons in comment.
24876 (LIBC_PRECONFIGURE): Likewise.
24877 (add_ons): Remove variable and sanity checks and logic to locate
24878 add-ons.
24879 (add_ons_automatic): Remove variable.
24880 (configured_add_ons): Likewise.
24881 (add_ons_sfx): Likewise.
24882 (add_ons_pfx): Likewise.
24883 (add_on_subdirs): Likewise.
24884 (sysnames_add_ons): Likewise. Remove loop over add-ons and
24885 consideration of add-ons in Implies handling.
24886 (sysdeps_add_ons): Likewise.
24887 * configure: Regenerated.
24888 * libidn/configure.ac: Remove.
24889 * libidn/configure: Likewise.
24890 * sysdeps/unix/inet/configure.ac: New file.
24891 * sysdeps/unix/inet/configure: New generated file.
24892 * sysdeps/unix/inet/Subdirs: Add libidn.
24893 * Makeconfig (sysdeps-srcdirs): Remove variable.
24894 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
24895 ($(common-objpfx)config.status): Do not depend on add-on files.
24896 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
24897 comment.
24898 (all-subdirs): Do not include $(add-on-subdirs).
24899 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
24900 * config.make.in (add-ons): Remove variable.
24901 (add-on-subdirs): Likewise.
24902 (sysdeps-add-ons): Likewise.
24903 * manual/Makefile (add-chapters): Remove.
24904 ($(objpfx)texis): Do not depend on $(add-chapters).
24905 (nonexamples): Do not handle $(add-chapters).
24906 (examples): Do not handle $(add-ons).
24907 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
24908 libc-texinfo.sh.
24909 * manual/install.texi (Installation): Do not mention add-ons.
24910 (--enable-add-ons): Do not document configure option.
24911 * INSTALL: Regenerated.
24912 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
24913 * manual/maint.texi (Hierarchy Conventions): Do not mention
24914 add-ons.
24915 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
24916 --enable-add-ons.
24917 * scripts/gen-sorted.awk: Do not handle Subdirs files from
24918 add-ons.
24919 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
24920 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
24921
24922 2017-10-05 Andreas Schwab <schwab@suse.de>
24923
24924 [BZ #15142]
24925 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
24926 (_IO_flush_all_lockp): Always lock list_all_lock.
24927 (_IO_flush_all_linebuffered): Likewise.
24928 (_IO_unbuffer_all): Likewise.
24929
24930 2017-10-05 Florian Weimer <fweimer@redhat.com>
24931
24932 [BZ #15436]
24933 Do not flush stdio streams on abort.
24934 * stdlib/abort.c (fflush): Remove macro definition.
24935 (abort): Remove stages related to stdio flushing.
24936
24937 2017-10-05 Florian Weimer <fweimer@redhat.com>
24938
24939 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
24940
24941 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
24942
24943 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
24944
24945 2017-10-05 Florian Weimer <fweimer@redhat.com>
24946
24947 * support/support_format_hostent.c (support_format_hostent): Add
24948 more error information for NETDB_INTERNAL.
24949
24950 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24951
24952 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
24953 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
24954 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
24955 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
24956 AC_DEFINE if multi-arch is enabled.
24957 * sysdeps/i386/configure: Regenerated.
24958
24959 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24960
24961 * Makeconfig (+link-static-before-libc): Use
24962 $(DEFAULT-LDFLAGS-$(@F)).
24963 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
24964 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
24965 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
24966
24967 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24968
24969 * elf/Makefile (tests): Add tst-main1.
24970 (modules-names): Add tst-main1mod.
24971 ($(objpfx)tst-main1): New.
24972 (CRT-tst-main1): Likewise.
24973 (LDFLAGS-tst-main1): Likewise.
24974 (LDLIBS-tst-main1): Likewise.
24975 (tst-main1mod.so-no-z-defs): Likewise.
24976 * elf/tst-main1.c: New file.
24977 * elf/tst-main1mod.c: Likewise.
24978
24979 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
24980
24981 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
24982
24983 2017-10-04 Joseph Myers <joseph@codesourcery.com>
24984
24985 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
24986 (fma): Define using libm_alias_double.
24987 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
24988 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
24989 <math_ldbl_opt.h>.
24990 (fmal): Do not define as compat symbol here.
24991 * sysdeps/alpha/fpu/s_fma.c: New file.
24992
24993 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24994
24995 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
24996
24997 2017-10-04 Joseph Myers <joseph@codesourcery.com>
24998
24999 [BZ #22229]
25000 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25001 <math_ldbl_opt.h>
25002 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25003 and libc.
25004 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25005 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25006 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25007 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25008 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25009 Include <math_ldbl_opt.h>
25010 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25011 and libc.
25012 (compat_symbol): Undefine and redefine.
25013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25014 <math_ldbl_opt.h>
25015 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25016 (compat_symbol): Undefine and redefine.
25017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25018 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25019 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25020 GLIBC_2_1 for libm.
25021 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25022 GLIBC_2.0 copysignl symbol.
25023 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25024 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25025
25026 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25027
25028 2017-10-04 Florian Weimer <fweimer@redhat.com>
25029
25030 * scripts/check-local-headers.sh: Ignore nspr4 header file
25031 directory in addition to nspr.
25032
25033 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25034
25035 [BZ #17956]
25036 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25037 * configure: Regenerate.
25038 * crypt/Makefile (nss-cpp-flags): New variable.
25039 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25040 (CPPFLAGS-md5-crypt.c): Use it.
25041 * scripts/check-local-headers.sh: Ignore nspr header file
25042 directory.
25043
25044 2017-10-04 Andreas Schwab <schwab@suse.de>
25045
25046 * nis/Makefile (services): Remove compat.
25047 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25048 ($(objpfx)libnss_compat.so): Remove rule.
25049 * nis/Versions (libnss_compat): Remove.
25050 * nss/Makefile (services): Add compat.
25051 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25052 * nss/Versions (libnss_compat): Define.
25053 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25054 Don't include <rpc/types.h>. Replace bool_t by bool.
25055 * nss/nss_compat/compat-initgroups.c: Likewise.
25056 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25057 instead of <rpcsrv/ypclnt.h>.
25058 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25059 yp_get_default_domain.
25060 * nss/nss_compat/compat-pwd.c: Likewise.
25061 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25062 yp_get_default_domain.
25063 * nss/nss_compat/nisdomain.c: New file.
25064 * nss/nss_compat/nisdomain.h: Likewise.
25065
25066 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25067
25068 [BZ #22244]
25069 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25070 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25071
25072 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25073
25074 [BZ #22243]
25075 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25076 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25077
25078 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25079
25080 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25081 "movl main@GOTOFF(%ebx), %eax".
25082
25083 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25084
25085 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25086 allow undefined _DYNAMIC in PIE libc.a.
25087 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25088 Likewse.
25089
25090 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25091
25092 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25093 check _DYNAMIC.
25094
25095 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25096
25097 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25098 check _DYNAMIC.
25099
25100 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25101
25102 * math/test-math-iscanonical.cc (error): Replace bool with int.
25103
25104 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25105
25106 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25107 (modf): Define using libm_alias_double, only if [!__modf].
25108 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25109 <libm-alias-double.h>.
25110 (modf): Define using libm_alias_double, only if [!__modf].
25111 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25112 compat symbol here.
25113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25114 (weak_alias): Do not undefine and redefine.
25115 (strong_alias): Likewise.
25116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25117 (weak_alias): Likewise.
25118 (strong_alias): Likewise.
25119
25120 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25121 (logb): Define using libm_alias_double, only if [!__logb].
25122 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25123 <libm-alias-double.h>.
25124 (logb): Define using libm_alias_double, only if [!__logb].
25125 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25127 (weak_alias): Do not undefine and redefine.
25128 (strong_alias): Likewise.
25129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25130 (weak_alias): Likewise.
25131 (strong_alias): Likewise.
25132
25133 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25134
25135 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25136 Check SHARED instead PIC.
25137
25138 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25139
25140 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25141 [!__fmaf] (fmaf): Define using libm_alias_float.
25142
25143 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25144 (frexp): Define using libm_alias_double.
25145 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25146 <libm-alias-double.h>.
25147 (frexp): Define using libm_alias_double.
25148 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25149 compat symbol here.
25150
25151 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25152
25153 [BZ #22235]
25154 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25155 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25156 (CFLAGS-test-math-iscanonical.cc): New variable.
25157 * math/test-math-iscanonical.cc: New file.
25158 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25159 Provide a C++ implementation based on function overloading,
25160 rather than using __MATH_TG, which uses C-only builtins.
25161 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25162 Likewise.
25163 * sysdeps/powerpc/powerpc64le/Makefile
25164 (CFLAGS-test-math-iscanonical.cc): New variable.
25165
25166 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25167
25168 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25169 (ceil): Define using libm_alias_double.
25170 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25171 (floor): Define using libm_alias_double.
25172 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25173 <libm-alias-double.h>.
25174 (llround): Define using libm_alias_double.
25175 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25176 <libm-alias-double.h>.
25177 (lround): Define using libm_alias_double.
25178 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25179 <libm-alias-double.h>.
25180 (nearbyint): Define using libm_alias_double.
25181 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25182 <libm-alias-double.h>.
25183 (remquo): Define using libm_alias_double.
25184 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25185 (rint): Define using libm_alias_double.
25186 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25187 (round): Define using libm_alias_double.
25188 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25189 (trunc): Define using libm_alias_double.
25190 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25191 <libm-alias-double.h>.
25192 (ceil): Define using libm_alias_double.
25193 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25194 <libm-alias-double.h>.
25195 (floor): Define using libm_alias_double.
25196 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25197 <libm-alias-double.h>.
25198 (llround): Define using libm_alias_double.
25199 [_LP64] (lround): Likewise.
25200 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25201 <libm-alias-double.h>.
25202 [!_LP64] (lround): Define using libm_alias_double.
25203 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25204 <libm-alias-double.h>.
25205 (nearbyint): Define using libm_alias_double.
25206 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25207 <libm-alias-double.h>.
25208 (remquo): Define using libm_alias_double.
25209 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25210 <libm-alias-double.h>.
25211 (rint): Define using libm_alias_double.
25212 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25213 <libm-alias-double.h>.
25214 (round): Define using libm_alias_double.
25215 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25216 <libm-alias-double.h>.
25217 (trunc): Define using libm_alias_double.
25218 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25219 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25220 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25221 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25222 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25223 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25224 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25225 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25226 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25227
25228 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25229
25230 * math/w_remainder.c: New file.
25231 * math/w_remainderf.c: New file.
25232 * math/w_remainderl.c: New file.
25233
25234 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25235
25236 * elf/rtld.c (BOOTSTRAP_MAP): New.
25237 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25238 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25239 Likewise.
25240 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25241 Likewise.
25242 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25243 Likewise.
25244
25245 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25246
25247 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25248 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25249 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25250 rtld_hidden_data_ver): Define to empty.
25251 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25252 __assert_perror_fail): Likewise.
25253 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25254 (__rewinddir): Likewise.
25255 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25256 (__profile_frequency): Likewise.
25257 * include/setjmp.h (__sigsetjmp): Likewise.
25258 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25259 __libc_sigaction): Likewise.
25260 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25261 not set hidden attribute.
25262 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25263 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25264 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25265 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25266 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25267 __fxstatat64): Likewise.
25268 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25269 (__uname): Likewise.
25270 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25271 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25272 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25273 (NO_RTLD_HIDDEN): Set.
25274 * sysdeps/mach/hurd/configure: Refresh.
25275 * config.h.in: Refresh.
25276
25277 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25278
25279 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25280 (atan): Define using libm_alias_double.
25281 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25282 (tan): Define using libm_alias_double.
25283 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25284 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25285
25286 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25287 define as weak alias of __atan. Do not define any aliases if
25288 [__atan].
25289 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25290 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25291 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25292 as weak alias of __tan. Do not define any aliases if [__tan].
25293 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25294 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25295 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25296 __atan.
25297 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25298 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25299 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25300 and define as weak alias of __atan.
25301 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25302 __atan.
25303 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25304 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25305 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25306 define as weak alias of __tan.
25307
25308 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25309
25310 * math/w_lgamma.c: New file.
25311 * math/w_lgammaf.c: New file.
25312 * math/w_lgammal.c: New file.
25313
25314 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25315
25316 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25317 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25318 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25319 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25320 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25321 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25322 * sysdeps/i386/fpu/w_log2f.c: New file.
25323 * sysdeps/i386/fpu/w_logf.c: New file.
25324 * sysdeps/i386/fpu/w_powf.c: New file.
25325 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25326 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25327 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25328
25329 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25330 H.J. Lu <hongjiu.lu@intel.com>
25331
25332 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25333 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25334 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25335 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25336 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25337 the new expf code.
25338 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25339 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25340 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25341 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25342 * sysdeps/i386/fpu/w_exp2f.c: New file.
25343 * sysdeps/i386/fpu/w_expf.c: New file.
25344 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25345 * sysdeps/x86_64/fpu/w_expf.c: New file.
25346
25347 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25348
25349 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25350 (log2f): Likewise.
25351 (powf): Likewise.
25352 * math/w_log2f.c: New file.
25353 * math/w_logf.c: New file.
25354 * math/w_powf.c: New file.
25355 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25356 * math/w_logf_compat.c (__logf_compat): Likewise.
25357 * math/w_powf_compat.c (__powf_compat): Likewise.
25358 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25359 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25360 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25361 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25362 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25363 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25364 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25365 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25366 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25367 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25368 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25369 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25370 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25371 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25372 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25374 Likewise.
25375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25376 Likewise.
25377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25378 Likewise.
25379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25380 Likewise.
25381 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25382 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25383 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25384 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25385 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25386 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25387 Likewise.
25388 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25389 Likewise.
25390 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25391 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25392 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25393
25394 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25395
25396 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25397 (sysdep_routines): Add memrchr_power8.
25398 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25399 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25400 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25401 New file.
25402 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25403 (memrchr): Add __memrchr_power8 to ifunc list.
25404 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25405
25406 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25407
25408 [BZ #18822]
25409 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25410 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25411 libc_hidden_def.
25412 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25413 (__posix_fallocate64_l64): Likewise.
25414
25415 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25416
25417 [BZ #18822]
25418 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25419 (__sched_setaffinity_new): Add libc_hidden_proto and
25420 libc_hidden_def.
25421
25422 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25423
25424 [BZ #18822]
25425 * include/glob.h (__glob64): Add libc_hidden_proto.
25426 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25427 libc_hidden_def.
25428
25429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25430
25431 [BZ #18822]
25432 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25433 attribute_hidden.
25434
25435 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25436
25437 [BZ #18822]
25438 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25439
25440 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25441
25442 [BZ #18822]
25443 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25444 libc_hidden_def.
25445
25446 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25447
25448 [BZ #18822]
25449 * csu/version.c (__libc_print_version): Add attribute_hidden.
25450
25451 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25452
25453 [BZ #18822]
25454 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25455
25456 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25457
25458 [BZ #18822]
25459 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25460
25461 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25462
25463 [BZ #18822]
25464 * nscd/nscd_helper.c (__nis_hash): New prototype.
25465
25466 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25467
25468 [BZ #18822]
25469 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25470 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25471 libc_hidden_def.
25472 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25473 * termios/tcgetattr.c (__tcgetattr): Likewise.
25474
25475 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25476
25477 [BZ #18822]
25478 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25479 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25480 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25481 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25482 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25483
25484 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25485
25486 [BZ #18822]
25487 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25488
25489 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25490
25491 [BZ #18822]
25492 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25493 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25494
25495 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25496
25497 [BZ #18822]
25498 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25499
25500 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25501
25502 [BZ #18822]
25503 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25504 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25505
25506 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25507
25508 [BZ #18822]
25509 * include/ifreq.h: New file.
25510 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25511 (__ifreq): Likewise.
25512 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25513 (__ifreq): Likewise.
25514
25515 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25516
25517 [BZ #18822]
25518 * include/idna.h: New file.
25519 * inet/getnameinfo.c: Include <idna.h> instead of
25520 <libidn/idna.h>.
25521 (__idna_to_unicode_lzlz): Removed.
25522 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25523 <libidn/idna.h>.
25524 (__idna_to_ascii_lz): Removed.
25525 (__idna_to_unicode_lzlz): Likewise.
25526
25527 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25528
25529 [BZ #18822]
25530 * include/plural-exp.h: New file.
25531 * intl/plural-exp.c: Include <plural-exp.h> instead of
25532 "plural-exp.h".
25533
25534 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25535
25536 [BZ #18822]
25537 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25538 "getsourcefilter.h".
25539 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25540 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25541 "getsourcefilter.h".
25542 (__get_sol): Removed.
25543
25544 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25545
25546 [BZ #18822]
25547 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25548 to ...
25549 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25550
25551 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25552
25553 [BZ #18822]
25554 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25555 attribute_hidden.
25556
25557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25558
25559 [BZ #18822]
25560 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25561
25562 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25563
25564 [BZ #18822]
25565 * include/search.h (__tdestroy): Add libc_hidden_proto.
25566 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25567
25568 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25569
25570 [BZ #18822]
25571 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25572
25573 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25574
25575 [BZ #18822]
25576 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25577 attribute_hidden.
25578
25579 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25580
25581 [BZ #18822]
25582 * include/signal.h (__kill): Add libc_hidden_proto.
25583 (__sigblock): Likewise.
25584 (__sigprocmask): Likewise.
25585 (__sigaltstack): Likewise.
25586 * signal/kill.c (__kill): Add libc_hidden_def.
25587 * signal/sigblock.c (__sigblock): Likewise.
25588 * signal/sigprocmask.c (__sigprocmask): Likewise.
25589 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25590 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25591 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25592 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25593 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25594 Likewise.
25595 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25596 Likewise.
25597 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25598 (__sigprocmask): Likewise.
25599 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25600 Likewise.
25601 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25602 (__sigprocmask): Likewise.
25603 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25604 Likewise.
25605
25606 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25607
25608 [BZ #18822]
25609 * include/string.h (__strsep): Add libc_hidden_proto.
25610 * string/strsep.c (__strsep): Add libc_hidden_def.
25611
25612 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25613
25614 [BZ #18822]
25615 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25616 attribute_hidden.
25617 (__spawni): Likewise.
25618
25619 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25620
25621 [BZ #18822]
25622 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25623 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25624 libc_hidden_def.
25625
25626 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25627
25628 [BZ #18822]
25629 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25630
25631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 [BZ #18822]
25634 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25635 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25636 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25637 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25638 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25639 Likewise.
25640 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25641 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25642
25643 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25644
25645 [BZ #18822]
25646 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25647 (__dcigettext): Likewise.
25648
25649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25650
25651 [BZ #18822]
25652 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25653 libc_hidden_proto.
25654 (__get_nprocs): Likewise.
25655 (__get_phys_pages): Likewise.
25656 (__get_avphys_pages): Likewise.
25657 (__get_child_max): Add attribute_hidden.
25658 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25659 (__get_nprocs): Likewise.
25660 (__get_phys_pages): Likewise.
25661 (__get_avphys_pages): Likewise.
25662 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25663 libc_hidden_def.
25664 (__get_nprocs): Likewise.
25665 (__get_phys_pages): Likewise.
25666 (__get_avphys_pages): Likewise.
25667 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25668 libc_hidden_def.
25669 (__get_nprocs_conf): Likewise.
25670 (__get_phys_pages): Likewise.
25671 (__get_avphys_pages): Likewise.
25672
25673 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25674
25675 [BZ #18822]
25676 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25677 attribute_hidden.
25678 (__netlink_close): Likewise.
25679 (__netlink_free_handle): Likewise.
25680 (__netlink_request): Likewise.
25681
25682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25683
25684 [BZ #18822]
25685 * include/rpc/rpc.h (__rpc_thread_variables): Add
25686 attribute_hidden.
25687 (__rpc_thread_svc_cleanup): Likewise.
25688 (__rpc_thread_clnt_cleanup): Likewise.
25689 (__rpc_thread_key_cleanup): Likewise.
25690
25691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 [BZ #18822]
25694 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25695 (__writev): Likewise.
25696 * misc/readv.c (__readv): Add libc_hidden_def.
25697 * misc/writev.c (__writev): Likewise.
25698 * sysdeps/posix/readv.c (__readv): Likewise.
25699 * sysdeps/posix/writev.c (__writev): Likewise.
25700 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25701 (__readv): Likewise.
25702 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25703 (__writev): Likewise.
25704
25705 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25706
25707 [BZ #18822]
25708 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25709 (__regcomp): Add libc_hidden_proto.
25710 (__regexec): Likewise.
25711 (__regfree): Likewise.
25712 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25713 (__regfree): Likewise.
25714 * posix/regexec.c (__regexec): Likewise.
25715
25716 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25717
25718 [BZ #18822]
25719 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25720 (__getutent): Likewise.
25721 (__getutid): Likewise.
25722 (__getutline): Likewise.
25723 (__pututline): Likewise.
25724 (__getutent_r): Likewise.
25725 (__getutid_r): Likewise.
25726 (__getutline_r): Likewise.
25727 (__utmpname): Add attribute_hidden.
25728 (__setutent): Likewise.
25729 (__endutent): Likewise.
25730 * login/getutent.c (__getutent): Add libc_hidden_def.
25731 * login/getutent_r.c (__getutent_r): Likewise.
25732 (__pututline): Likewise.
25733 * login/getutid.c (__getutid): Likewise.
25734 * login/getutid_r.c (__getutid_r): Likewise.
25735 * login/getutline.c (__getutline): Likewise.
25736 * login/getutline_r.c (__getutline_r): Likewise.
25737 * login/updwtmp.c (__updwtmp): Likewise.
25738
25739 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25740
25741 [BZ #18822]
25742 * include/dirent.h (__opendir): Always add attribute_hidden.
25743 (__fdopendir): Likewise.
25744 (__closedir): Likewise.
25745 (__readdir): Likewise.
25746 (__readdir64): Add libc_hidden_proto.
25747 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25748 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25749 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25750 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25751 New alias.
25752
25753 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25754
25755 [BZ #18822]
25756 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25757 * include/netdb.h (__gethostbyaddr_r): Likewise.
25758 (__gethostbyname_r): Likewise.
25759 (__gethostbyname2_r): Likewise.
25760 (__getnetbyaddr_r): Likewise.
25761 (__getnetbyname_r): Likewise.
25762 (__getservbyname_r): Likewise.
25763 (__getservbyport_r): Likewise.
25764 (__getprotobyname_r): Likewise.
25765 (__getprotobynumber_r): Likewise.
25766 (__getnetgrent_r): Likewise.
25767 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25768 (__getrpcbynumber_r): Likewise.
25769 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25770
25771 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25772
25773 [BZ #18822]
25774 * include/stdio.h (__fcloseall): Add attribute_hidden.
25775 (__getline): Likewise.
25776 (__path_search): Likewise.
25777 (__gen_tempname): Likewise.
25778 (__libc_message): Likewise.
25779 (__flockfile): Likewise.
25780 (__funlockfile): Likewise.
25781 (__fxprintf): Likewise.
25782 (__fxprintf_nocancel): Likewise.
25783
25784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25785
25786 [BZ #18822]
25787 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
25788 (__sgetsgent_r): Likewise.
25789
25790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25791
25792 [BZ #18822]
25793 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
25794 (__statfs64): Likewise.
25795 (__fstatfs64): Likewise.
25796 * include/sys/statvfs.h (__statvfs64): Likewise.
25797 (__fstatvfs64): Likewise.
25798 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
25799 (__statfs_filesize_max): Likewise.
25800 (__statfs_symlinks): Likewise.
25801 (__statfs_chown_restricted): Likewise.
25802
25803 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25804
25805 [BZ #18822]
25806 * include/time.h (__tzstring): Add attribute_hidden.
25807 (__tzfile_read): Likewise.
25808 (__tzfile_compute): Likewise.
25809 (__tzfile_default): Likewise.
25810 (__tzset_parse_tz): Likewise.
25811 (__offtime): Likewise.
25812 (__asctime_r): Likewise.
25813 (__tzset): Likewise.
25814 (__tz_convert): Likewise.
25815 (__getdate_r): Likewise.
25816 (__getclktck): Likewise.
25817
25818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25819
25820 [BZ #18822]
25821 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
25822 (__nscd_unmap): Likewise.
25823 (__nscd_cache_search): Likewise.
25824 (__nscd_get_nl_timestamp): Likewise.
25825 (__nscd_getpwnam_r): Likewise.
25826 (__nscd_getpwuid_r): Likewise.
25827 (__nscd_getgrnam_r): Likewise.
25828 (__nscd_getgrgid_r): Likewise.
25829 (__nscd_gethostbyname_r): Likewise.
25830 (__nscd_gethostbyname2_r): Likewise.
25831 (__nscd_gethostbyaddr_r): Likewise.
25832 (__nscd_getai): Likewise.
25833 (__nscd_getgrouplist): Likewise.
25834 (__nscd_getservbyname_r): Likewise.
25835 (__nscd_getservbyport_r): Likewise.
25836 (__nscd_innetgr): Likewise.
25837 (__nscd_setnetgrent): Likewise.
25838
25839 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25840
25841 [BZ #18822]
25842 * include/gmp.h: Declare internal functions only if _ISOMAC is
25843 undefined.
25844 (__mpn_extract_double): Add attribute_hidden.
25845 (__mpn_extract_long_double): Likewise.
25846 (__mpn_extract_float128): Likewise.
25847 (__mpn_construct_float): Likewise.
25848 (__mpn_construct_double): Likewise.
25849 (__mpn_construct_long_double): Likewise.
25850 (__mpn_construct_float128): Likewise.
25851 (mpn_add_1): Likewise.
25852 (mpn_addmul_1): Likewise.
25853 (mpn_add_n): Likewise.
25854 (mpn_cmp): Likewise.
25855 (mpn_divrem): Likewise.
25856 (mpn_lshift): Likewise.
25857 (mpn_mul): Likewise.
25858 (mpn_mul_1): Likewise.
25859 (mpn_rshift): Likewise.
25860 (mpn_sub_1): Likewise.
25861 (mpn_submul_1): Likewise.
25862 (mpn_sub_n): Likewise.
25863
25864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25865
25866 [BZ #18822]
25867 * include/wchar.h (__wcsnlen): Add attribute_hidden.
25868 (__wcscat): Likewise.
25869 (__btowc): Likewise.
25870 (__wcrtomb): Likewise.
25871 (__mbsrtowcs): Likewise.
25872 (__wcsrtombs): Likewise.
25873 (__mbsnrtowcs): Likewise.
25874 (__wcsnrtombs): Likewise.
25875 (__wcsncpy): Likewise.
25876 (__wcpncpy): Likewise.
25877 (__wmemcpy): Likewise.
25878 (__wmempcpy): Likewise.
25879 (__wmemmove): Likewise.
25880 (__wcschrnul): Likewise.
25881 (__vfwscanf): Likewise.
25882 (__vswprintf): Likewise.
25883 (__fwprintf): Likewise.
25884 (__vfwprintf): Likewise.
25885
25886 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25887
25888 [BZ #18822]
25889 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
25890 (__getgrgid_r): Likewise.
25891 (__getgrnam_r): Likewise.
25892 * include/pwd.h (__getpwuid_r): Likewise.
25893 (__getpwnam_r): Likewise.
25894 (__fgetpwent_r): Likewise.
25895 * include/shadow.h (__getspnam_r): Likewise.
25896 (__sgetspent_r): Likewise.
25897 (__fgetspent_r): Likewise.
25898
25899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25900
25901 [BZ #18822]
25902 * include/unistd.h (__access): Add attribute_hidden.
25903 (__lseek64): Likewise.
25904 (__libc_pread64): Likewise.
25905 (__pipe2): Likewise.
25906 (__sleep): Likewise.
25907 (__chdir): Likewise.
25908 (__fchdir): Likewise.
25909 (__getcwd): Likewise.
25910 (__rmdir): Likewise.
25911 (__execvpe): Likewise.
25912 (__execve): Likewise.
25913 (__setsid): Likewise.
25914 (__getuid): Likewise.
25915 (__geteuid): Likewise.
25916 (__getgid): Likewise.
25917 (__getegid): Likewise.
25918 (__getgroups): Likewise.
25919 (__group_member): Likewise.
25920 (__ttyname_r): Likewise.
25921 (__isatty): Likewise.
25922 (__readlink): Likewise.
25923 (__unlink): Likewise.
25924 (__gethostname): Likewise.
25925 (__profil): Likewise.
25926 (__getdtablesize): Likewise.
25927 (__brk): Likewise.
25928 (__ftruncate): Likewise.
25929 (__ftruncate64): Likewise.
25930
25931 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25932
25933 [BZ #18822]
25934 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
25935 * argp/argp-fs-xinl.c: Likewise.
25936 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
25937 * argp/argp-parse.c: Include <argp.h>.
25938 * argp/argp-xinl.c: Likewise.
25939 * include/argp-fmtstream.h: New file.
25940 * include/argp.h (__argp_error): Add attribute_hidden.
25941 (__argp_failure): Likewise.
25942 (__argp_input): Likewise.
25943 (__argp_state_help): Likewise.
25944
25945 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25946
25947 [BZ #18822]
25948 * include/wchar.h (____wcstof_l_internal): New prototype.
25949 (____wcstod_l_internal): Likewise.
25950 (____wcstold_l_internal): Likewise.
25951 (____wcstol_l_internal): Likewise.
25952 (____wcstoul_l_internal): Likewise.
25953 (____wcstoll_l_internal): Likewise.
25954 (____wcstoull_l_internal): Likewise.
25955 (____wcstof128_l_internal): Likewise.
25956 * sysdeps/ieee754/float128/wcstof128.c
25957 (____wcstof128_l_internal): Removed.
25958 * sysdeps/ieee754/float128/wcstof128_l.c
25959 (____wcstof128_l_internal): Likewise.
25960 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
25961 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
25962 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
25963 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
25964 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
25965 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
25966 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
25967 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
25968 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
25969 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
25970
25971 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25972
25973 [BZ #18822]
25974 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
25975 instead of <sys/statvfs.h>.
25976 (__internal_statvfs): Removed.
25977 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
25978 instead of <sys/statvfs.h>.
25979 (__internal_statvfs64): Removed.
25980 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
25981 "internal_statvfs.h" instead of <sys/statvfs.h>.
25982 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
25983 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
25984 instead of <sys/statvfs.h>.
25985 (__internal_statvfs): Removed.
25986 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
25987 instead of <sys/statvfs.h>.
25988 (__internal_statvfs64): Removed.
25989
25990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25991
25992 [BZ #18822]
25993 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
25994 (__gconv_close): Likewise.
25995 (__gconv): Likewise.
25996 (__gconv_find_transform): Likewise.
25997 (__gconv_lookup_cache): Likewise.
25998 (__gconv_compare_alias_cache): Likewise.
25999 (__gconv_load_cache): Likewise.
26000 (__gconv_get_path): Likewise.
26001 (__gconv_close_transform): Likewise.
26002 (__gconv_release_cache): Likewise.
26003 (__gconv_find_shlib): Likewise.
26004 (__gconv_release_shlib): Likewise.
26005 (__gconv_get_builtin_trans): Likewise.
26006 (__gconv_compare_alias): Likewise.
26007 * include/dlfcn.h (_dlerror_run): Likewise.
26008 * include/stdio.h (__fortify_fail_abort): Likewise.
26009 * include/time.h (__tz_compute): Likewise.
26010 (__strptime_internal): Likewise.
26011 * intl/gettextP.h (_nl_find_domain): Likewise.
26012 (_nl_load_domain): Likewise.
26013 (_nl_find_msg): Likewise.
26014 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26015 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26016 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26017 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26018 (__gai_find_request): Likewise.
26019 (__gai_remove_request): Likewise.
26020 (__gai_notify): Likewise.
26021 (__gai_notify_only): Likewise.
26022 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26023 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26024 (_dl_non_dynamic_init): Likewise.
26025 (_dl_aux_init): Likewise.
26026 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26027 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26028 Likewise.
26029 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26030 (__wcsmbs_clone_conv): Likewise.
26031 (__wcsmbs_named_conv): Likewise.
26032
26033 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26034
26035 [BZ #18822]
26036 * include/stdlib.h (__random): Add attribute_hidden.
26037 (__random_r): Likewise.
26038 (__srandom_r): Likewise.
26039 (__initstate_r): Likewise.
26040 (__setstate_r): Likewise.
26041 (__erand48_r): Likewise.
26042 (__nrand48_r): Likewise.
26043 (__jrand48_r): Likewise.
26044 (__srand48_r): Likewise.
26045 (__seed48_r): Likewise.
26046 (__lcong48_r): Likewise.
26047 (__drand48_iterate): Likewise.
26048 (__setenv): Likewise.
26049 (__unsetenv): Likewise.
26050 (__clearenv): Likewise.
26051 (__ptsname_r): Likewise.
26052 (__posix_openpt): Likewise.
26053 (__add_to_environ): Likewise.
26054 (__realpath): Add libc_hidden_proto.
26055 (__ecvt_r): Likewise.
26056 (__fcvt_r): Likewise.
26057 (__qecvt_r): Likewise.
26058 (__qfcvt_r): Likewise.
26059 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26060 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26061
26062 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26063
26064 [BZ #18822]
26065 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26066 * include/time.h (__mktime_internal): Likewise.
26067 * libio/iolibio.h (__fopen_internal): Likewise.
26068
26069 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26070
26071 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26072 pointer in frame.
26073 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26074 Correct offset used to restore PIC register.
26075
26076 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26077
26078 [BZ libc/22165]
26079 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26080 code to load address of __getcontext_ret when generating PIC code.
26081
26082 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26083
26084 * elf/Makefile (tests-static-internal): Add
26085 tst-tls1-static-non-pie.
26086 (LDFLAGS-tst-tls1-static-non-pie): New.
26087 * elf/tst-tls1-static-non-pie.c: New file.
26088
26089 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26090
26091 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26092 (asinh): Define using libm_alias_double.
26093 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26094 (cbrt): Define using libm_alias_double.
26095 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26096 <libm-alias-double.h>.
26097 (copysign): Define using libm_alias_double.
26098 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26099 (erf): Define using libm_alias_double.
26100 (erfc): Likewise.
26101 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26102 (expm1): Define using libm_alias_double.
26103 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26104 (fabs): Define using libm_alias_double.
26105 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26106 libm_alias_double.
26107 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26108 <libm-alias-double.h>.
26109 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26110 libm_alias_double.
26111 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26112 <libm-alias-double.h>.
26113 (getpayload): Define using libm_alias_double.
26114 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26115 <libm-alias-double.h>.
26116 (llrint): Define using libm_alias_double.
26117 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26118 (lrint): Define using libm_alias_double.
26119 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26120 <libm-alias-double.h>.
26121 (nextup): Define using libm_alias_double.
26122 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26123 <libm-alias-double.h>.
26124 (roundeven): Define using libm_alias_double.
26125 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26126 libm_alias_double.
26127 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26128 <libm-alias-double.h>.
26129 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26130 using libm_alias_double.
26131 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26132 (cos): Define using libm_alias_double.
26133 (sin): Likewise.
26134 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26135 <libm-alias-double.h>.
26136 (sincos): Define using libm_alias_double.
26137 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26138 (tanh): Define using libm_alias_double.
26139 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26140 <libm-alias-double.h>.
26141 (totalorder): Define using libm_alias_double.
26142 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26143 <libm-alias-double.h>.
26144 (totalordermag): Define using libm_alias_double.
26145 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26146 libm_alias_double.
26147 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26148 libm_alias_double.
26149 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26150 <libm-alias-double.h>.
26151 (getpayload): Define using libm_alias_double.
26152 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26153 <libm-alias-double.h>.
26154 (roundeven): Define using libm_alias_double.
26155 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26156 <libm-alias-double.h>.
26157 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26158 <libm-alias-double.h>.
26159 (totalorder): Define using libm_alias_double.
26160 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26161 <libm-alias-double.h>.
26162 (totalordermag): Define using libm_alias_double.
26163 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26164 libc compat symbol here.
26165 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26166 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26167 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26168 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26169 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26170 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26171 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26172 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26173 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26174 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26175
26176 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26177
26178 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26179 _dl_relocate_static_pie instead of _dl_start to compute load
26180 address in static PIE. Return 0 if _DYNAMIC is undefined for
26181 static executable.
26182
26183 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26184
26185 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26186 _DYNAMIC is undefined for static executable.
26187
26188 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26189
26190 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26191
26192 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26193
26194 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26195
26196 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26197
26198 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26199 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26200 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26201 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26202 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26203 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26204 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26205 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26206 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26207 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26208 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26209 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26210 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26211 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26212 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26213 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26214 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26215
26216 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26217
26218 * math/bits/cmathcalls.h (cimag): Remove inline.
26219 (creal): Remove inline.
26220 (conj): Remove inline.
26221
26222 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26223
26224 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26225 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26226 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26227 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26228 (issignalingf_inline): Likewise.
26229 (POWF_LOG2_TABLE_BITS): Likewise.
26230 (POWF_LOG2_POLY_ORDER): Likewise.
26231 (POWF_SCALE_BITS): Likewise.
26232 (POWF_SCALE): Likewise.
26233 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26234 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26235 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26236
26237 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26238
26239 * math/Makefile (type-float-routines): Add e_log2f_data.
26240 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26241 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26242 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26243 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26244 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26245 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26246 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26247
26248 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26249
26250 * math/Makefile (type-float-routines): Add e_logf_data.
26251 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26252 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26253 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26254 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26255 * sysdeps/i386/fpu/e_logf_data.c: New file.
26256 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26257 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26258
26259 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26260
26261 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26262 undefined _DYNAMIC in PIE libc.a.
26263 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26264 Likewse.
26265
26266 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26267
26268 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26269 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26270 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26271 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26272 (__signbit): Remove.
26273 (__signbitl): Remove.
26274 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26275 (__signbit): Remove.
26276 (__signbitl): Remove.
26277 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26278 (__signbit): Remove.
26279 (__signbitl): Remove.
26280 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26281 (__signbit): Remove.
26282 (__signbitl): Remove.
26283 * sysdeps/tile/bits/mathinline.h: Delete file.
26284 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26285 (__signbit): Remove.
26286 (__signbitl): Remove.
26287
26288 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26289
26290 * math/math.h: Improve handling of C99 isgreater macros.
26291 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26292 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26293 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26294 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26295 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26296
26297 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26298
26299 * sysdeps/aarch64/libm-test-ulps: Update.
26300
26301 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26302
26303 [BZ #22225]
26304 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26305 math_opt_barrier on argument when doing arithmetic on it.
26306 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26307 Likewise. Use math_force_eval not math_opt_barrier after
26308 arithmetic.
26309 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26310 math_opt_barrier on argument when doing arithmetic on it.
26311 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26312 Likewise.
26313
26314 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26315
26316 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26317 libc_hidden_def.
26318 (__freeifaddrs): Likewise.
26319
26320 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26321
26322 * include/dirent.h (__dirfd): New declaration.
26323 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26324 alias.
26325 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26326 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26327 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26328 * include/unistd.h (__revoke): New declaration.
26329 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26330 alias.
26331 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26332 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26333 revoke.
26334 * include/dirent.h (__seekdir): New declaration.
26335 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26336 redefine as weak alias.
26337 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26338 of seekdir.
26339 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26340 and use libc_hidden_def on them.
26341 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26342 them.
26343 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26344 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26345 instead of getifaddrs and freeifaddrs.
26346
26347 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26348
26349 [BZ #18822]
26350 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26351 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26352 (__dso_handle): Remove declaration.
26353 * dlfcn/tstatexit.c (__dso_handle): Removed.
26354 (main): Don't check __dso_handle.
26355 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26356 (main): Don't check __dso_handle.
26357 * include/dso_handle.h: New file.
26358 * malloc/mtrace.c: Include <dso_handle.h>.
26359 (mtrace): Pass __dso_handle directly.
26360 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26361 (__dso_handle): Remove declaration.
26362 (__pthread_atfork): Pass __dso_handle directly.
26363 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26364 (__dso_handle): Removed.
26365 * posix/wordexp-test.c: Include <dso_handle.h>.
26366 (__dso_handle): Remove declaration.
26367 (__app_register_atfork): Pass __dso_handle directly.
26368 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26369 (__dso_handle): Remove declaration.
26370 (at_quick_exit): Pass __dso_handle directly.
26371 * stdlib/atexit.c: Include <dso_handle.h>.
26372 (__dso_handle): Remove declaration.
26373 (atexit): Pass __dso_handle directly.
26374 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26375 (__dso_handle): Removed.
26376
26377 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26378
26379 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26380 using VDSO.
26381
26382 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26383
26384 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26385 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26386 values to correct default value for given type.
26387
26388 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26389
26390 [BZ #22101]
26391 * elf/Makefile (tests): Add tst-debug1.
26392 ($(objpfx)tst-debug1): New.
26393 ($(objpfx)tst-debug1.out): Likewise.
26394 ($(objpfx)tst-debug1mod1.so): Likewise.
26395 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26396 with p_filesz == 0.
26397 * elf/tst-debug1.c: New file.
26398
26399 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26400
26401 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26402 Define using __ifunc.
26403
26404 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26405
26406 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26407 exp2f() values.
26408
26409 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26410
26411 [BZ #22156]
26412 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26413
26414 2017-09-26 Florian Weimer <fweimer@redhat.com>
26415
26416 * resolv/Makefile (tests-internal): Fix typo in comment.
26417
26418 2017-09-26 Florian Weimer <fweimer@redhat.com>
26419
26420 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26421
26422 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26423
26424 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26425 Use an union instead of a max_align_t array for __space,
26426 so that __space is the same size on all platforms.
26427 * malloc/scratch_buffer_grow_preserve.c
26428 (__libc_scratch_buffer_grow_preserve): Likewise.
26429
26430 [BZ #22183]
26431 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26432 version to 2.
26433 * posix/Makefile (routines): Add glob-lstat-compat and
26434 glob64-lstat-compat.
26435 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26436 * posix/glob-lstat-compat.c: New file.
26437 * posix/glob64-lstat-compat.c: Likewise.
26438 * posix/tst-glob_lstat_compat.c: Likewise.
26439 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26440 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26441 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26442 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26443 Likewise.
26444 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26445 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26446 * posix/glob.c (glob_lstat): New function.
26447 (glob): Rename to __glob and add versioned symbol to 2.27.
26448 (glob_in_dir): Use glob_lstat.
26449 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26450 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26451 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26452 2.27.
26453 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26454 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26455 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26456 gl_lstat on glob call.
26457 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26458 and glob64 symbols.
26459 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26460 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26461 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26462 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26463 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26464 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26465 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26466 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26467 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26468 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26469 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26470 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26472 Likewise.
26473 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26475 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26476 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26477 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26478 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26479 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26480 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26481 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26482 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26483 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26484 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26485
26486 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26487
26488 * configure.ac (AS): Require binutils 2.25 or later.
26489 * configure: Regenerated.
26490
26491 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26492
26493 [BZ #22207]
26494 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26495 VM size.
26496
26497 2017-09-25 DJ Delorie <dj@redhat.com>
26498
26499 [BZ #22161]
26500 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26501 resetting timeout.
26502
26503 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26504
26505 * sysdeps/ieee754/dbl-64/sincos32.h
26506 [SINCCOS32_H]: Remove define.
26507 [SINCOS32_H]: Define.
26508
26509 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26510
26511 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26512 (exp2f): Likewise.
26513 * math/w_exp2f.c: New file.
26514 * math/w_expf.c: New file.
26515 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26516 * math/w_expf_compat.c (__expf_compat): Likewise.
26517 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26518 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26519 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26520 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26521 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26522 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26523 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26524 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26525 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26526 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26527 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26528 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26529 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26530 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26532 Likewise.
26533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26534 Likewise.
26535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26536 Likewise.
26537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26538 Likewise.
26539 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26540 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26541 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26542 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26543 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26544 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26545 Likewise.
26546 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26547 Likewise.
26548 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26549 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26550 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26551
26552 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26553
26554 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26555 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26556 (roundtoint, converttoint): Likewise.
26557 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26558 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26559 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26560 * sysdeps/ieee754/flt-32/math_config.h: New file.
26561 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26562 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26563 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26564 * sysdeps/i386/fpu/math_errf.c: New file.
26565 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26566 * sysdeps/ia64/fpu/math_errf.c: New file.
26567 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26568 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26569
26570 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26571
26572 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26573 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26574 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26575 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26576 to make sure that these symbols are defined.
26577 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26578 of <limits.h>
26579 (__need_NULL): Do not define.
26580 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26581 alignment.
26582 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26583 CMGROUP_MAX, cmsgcred): Do not define.
26584 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26585 NULL.
26586 * bits/socket.h: Likewise.
26587 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26588 __gettimeofday instead of gettimeofday.
26589 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26590 instead of settimeofday.
26591
26592 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26593
26594 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26595 (asinhf): Define using libm_alias_float.
26596 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26597 (atanf): Define using libm_alias_float.
26598 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26599 (cbrtf): Define using libm_alias_float.
26600 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26601 (ceilf): Define using libm_alias_float.
26602 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26603 <libm-alias-float.h>.
26604 (copysignf): Define using libm_alias_float.
26605 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26606 (cosf): Define using libm_alias_float.
26607 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26608 (erff): Define using libm_alias_float.
26609 (erfcf): Likewise.
26610 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26611 (expm1f): Define using libm_alias_float.
26612 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26613 (fabsf): Define using libm_alias_float.
26614 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26615 (floorf): Define using libm_alias_float.
26616 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26617 (frexpf): Define using libm_alias_float.
26618 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26619 libm_alias_float.
26620 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26621 <libm-alias-float.h>.
26622 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26623 libm_alias_float.
26624 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26625 <libm-alias-float.h>.
26626 (getpayloadf): Define using libm_alias_float.
26627 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26628 <libm-alias-float.h>.
26629 (llrintf): Define using libm_alias_float.
26630 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26631 <libm-alias-float.h>.
26632 (llroundf): Define using libm_alias_float.
26633 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26634 (logbf): Define using libm_alias_float.
26635 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26636 (lrintf): Define using libm_alias_float.
26637 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26638 (lroundf): Define using libm_alias_float.
26639 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26640 (modff): Define using libm_alias_float.
26641 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26642 <libm-alias-float.h>.
26643 (nearbyintf): Define using libm_alias_float.
26644 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26645 <libm-alias-float.h>.
26646 (nextafterf): Define using libm_alias_float.
26647 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26648 <libm-alias-float.h>.
26649 (nextupf): Define using libm_alias_float.
26650 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26651 <libm-alias-float.h>.
26652 (remquof): Define using libm_alias_float.
26653 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26654 (rintf): Define using libm_alias_float.
26655 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26656 <libm-alias-float.h>.
26657 (roundevenf): Define using libm_alias_float.
26658 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26659 (roundf): Define using libm_alias_float.
26660 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26661 using libm_alias_float.
26662 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26663 <libm-alias-float.h>.
26664 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26665 Define using libm_alias_float.
26666 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26667 <libm-alias-float.h>.
26668 (sincosf): Define using libm_alias_float.
26669 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26670 (sinf): Define using libm_alias_float.
26671 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26672 (tanf): Define using libm_alias_float.
26673 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26674 (tanhf): Define using libm_alias_float.
26675 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26676 <libm-alias-float.h>.
26677 (totalorderf): Define using libm_alias_float.
26678 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26679 <libm-alias-float.h>.
26680 (totalordermagf): Define using libm_alias_float.
26681 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26682 (truncf): Define using libm_alias_float.
26683 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26684 libm_alias_float.
26685 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26686 libm_alias_float.
26687
26688 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26689
26690 [BZ #22146]
26691 math/math.h: Let fpclassify use the builtin in C++ mode, even
26692 when optimazing for size.
26693
26694 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26695
26696 * csu/Makefile (generated): Do not add version-info.h.
26697 (before-compile): Likewise.
26698 (all-Banner-files): Remove variable.
26699 ($(objpfx)version-info.h): Remove rule.
26700 * csu/version.c (banner): Do not include "version-info.h".
26701 * libidn/Banner: Remove.
26702 * manual/contrib.texi (Simon Josefsson): New entry.
26703
26704 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26705
26706 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26707 Remove conditionals on LDBL_MANT_DIG.
26708 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26709 (__ieee754_lgammal_r): Likewise.
26710
26711 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26712
26713 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26714 _Float128 and L().
26715 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26716 _Float128 and L(). Replace _Float128 with long double and L(x)
26717 with xL, throughout the file.
26718 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26719 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26720 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26721 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26722
26723 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26724
26725 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26726 sysdeps/ieee754/ldbl-128ibm.
26727 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26728 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26729 of including it. Keep _Float128 and L() intact. These will be
26730 reviewed by a separate patch.
26731 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26732 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26733 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26734 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26735
26736 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26737
26738 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26739 (__finitef128): Define to __redirect___finitef128.
26740 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26741 (__isinff128): Define to __redirect___isinff128.
26742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26743 (__isnanf128): Define to __redirect___isnanf128.
26744
26745 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26746
26747 * sysdeps/powerpc/powerpc64le/Makefile
26748 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26749 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26750
26751 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26752 Carlos O'Donell <carlos@redhat.com>
26753
26754 [BZ #22180]
26755 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26756 * stdlib/test-dlclose-exit-race.c: New file.
26757 * stdlib/test-dlclose-exit-race-helper.c: New file.
26758 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26759
26760 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26761
26762 * crypt/Banner: Remove file.
26763 * nptl/Banner: Likewise.
26764 * resolv/Banner: Likewise.
26765 * soft-fp/Banner: Likewise.
26766 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26767 ($(objpfx)version.d): Remove dependency on banner.h.
26768 ($(objpfx)version.os): Likewise.
26769 * nptl/version.c (banner): Do not include banner.h.
26770 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26771 Jelinek and BIND code.
26772
26773 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26774 Carlos O'Donell <carlos@redhat.com>
26775
26776 * support/xdlfcn.h: New file.
26777 * support/xdlfcn.c: New file.
26778 * support/Makefile (libsupport-routines): Add xdlfcn.
26779 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
26780
26781 2017-09-20 Joseph Myers <joseph@codesourcery.com>
26782
26783 [BZ #20142]
26784 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26785 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
26786 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
26787 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
26788 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
26789 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
26790 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
26791 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
26792
26793 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26794 Ricky Zhou <rickyz@google.com>
26795 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26796
26797 [BZ #14333]
26798 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
26799 Remove atomics.
26800 (__new_exitfn): Fail registration when we finished at_exit processing.
26801 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
26802 * stdlib/on_exit.c (__on_exit): Likewise.
26803 * stdlib/exit.c (__exit_funcs_done): New variable.
26804 (__run_exit_handlers): Use __exit_funcs_lock.
26805 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
26806 declarations.
26807 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
26808 (test-cxa_atexit-race, test-on_exit-race): New tests.
26809 * stdlib/test-atexit-race-common.c: New file.
26810 * stdlib/test-atexit-race.c: New file.
26811 * stdlib/test-at_quick_exit-race.c: New file.
26812 * stdlib/test-cxa_atexit-race.c: New file.
26813 * stdlib/test-on_exit-race.c: New file.
26814
26815 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
26816
26817 * benchtests/Makefile: Add exp2f and log2f benchmarks.
26818 * benchtests/exp2f-inputs: Copy of expf-inputs.
26819 * benchtests/log2f-inputs: Copy of logf-inputs.
26820
26821 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26822
26823 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
26824 Explicitly take address of first element of array arguments in
26825 call to INLINE_SYSCALL.
26826
26827 2017-09-19 Andreas Schwab <schwab@suse.de>
26828
26829 [BZ #22134]
26830 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
26831 execveat first.
26832 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
26833 unimplemented.
26834 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
26835 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
26836 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
26837 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
26838 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
26839 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26840 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
26841 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
26842 * posix/Makefile (tests): Add tst-fexecve.
26843 * posix/tst-fexecve.c: New file.
26844
26845 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26846
26847 * benchtests/Makefile: Add logf benchmark.
26848 * benchtests/logf-inputs: Add reduced trace from wrf_r.
26849
26850 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26851
26852 * benchtests/Makefile: Add expf benchmark.
26853 * benchtests/expf-inputs: Add reduced trace from wrf_r.
26854
26855 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
26856
26857 * csu/Makefile: Add -funwind-tables to libc-start.c.
26858 * debug/Makefile: Add -funwind-tables to backtrace.c.
26859 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
26860 * sysdeps/arm/Makefile: Likewise.
26861 * sysdeps/i386/Makefile: Likewise.
26862 * sysdeps/m68k/Makefile: Likewise.
26863 * sysdeps/mips/Makefile: Likewise.
26864 * sysdeps/nios2/Makefile: Likewise.
26865 * sysdeps/sh/Makefile: Likewise.
26866 * sysdeps/sparc/Makefile: Likewise.
26867
26868 2017-09-19 Joseph Myers <joseph@codesourcery.com>
26869
26870 * benchtests/Makefile (bench-math): Add trunc and truncf.
26871 (CFLAGS-bench-trunc.c): New variable.
26872 (CFLAGS-bench-truncf.c): Likewise.
26873 * benchtests/trunc-inputs: New file.
26874 * benchtests/truncf-inputs: Likewise.
26875
26876 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26877
26878 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
26879
26880 2017-09-18 Joseph Myers <joseph@codesourcery.com>
26881
26882 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
26883 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
26884 redefine.
26885 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
26886 (exp10l): Define as weak alias.
26887 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
26888 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
26889 and redefine.
26890 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
26891 (remainderl): Define as weak alias.
26892
26893 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
26894 (fmal): Define using libm_alias_ldouble.
26895 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
26896 (acoshl): Define using libm_alias_ldouble.
26897 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
26898 (acosl): Define using libm_alias_ldouble.
26899 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
26900 (asinl): Define using libm_alias_ldouble.
26901 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
26902 (atan2l): Define using libm_alias_ldouble.
26903 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
26904 (atanhl): Define using libm_alias_ldouble.
26905 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
26906 (coshl): Define using libm_alias_ldouble.
26907 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
26908 (exp10l): Define using libm_alias_ldouble.
26909 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
26910 (exp2l): Define using libm_alias_ldouble.
26911 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
26912 (expl): Define using libm_alias_ldouble.
26913 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
26914 (fmodl): Define using libm_alias_ldouble.
26915 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
26916 (hypotl): Define using libm_alias_ldouble.
26917 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
26918 (j0l): Define using libm_alias_ldouble.
26919 (y0l): Likewise.
26920 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
26921 (j1l): Define using libm_alias_ldouble.
26922 (y1l): Likewise.
26923 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
26924 (jnl): Define using libm_alias_ldouble.
26925 (ynl): Likewise.
26926 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
26927 (log10l): Define using libm_alias_ldouble.
26928 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
26929 (log2l): Define using libm_alias_ldouble.
26930 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
26931 (logl): Define using libm_alias_ldouble.
26932 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
26933 (powl): Define using libm_alias_ldouble.
26934 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
26935 (remainderl): Define using libm_alias_ldouble.
26936 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
26937 (sinhl): Define using libm_alias_ldouble.
26938 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
26939 (sqrtl): Define using libm_alias_ldouble.
26940 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
26941 (tgammal): Define using libm_alias_ldouble.
26942 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
26943 (exp10l): Do not use long_double_symbol here.
26944 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
26945 [LIBM_SVID_COMPAT] (remainderl): Likewise.
26946 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
26947 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
26948 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
26949 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
26950 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
26951 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
26952 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
26953 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
26954 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
26955 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
26956 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
26957 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
26958 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
26959 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
26960 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
26961 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
26962 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
26963 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
26964 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
26965 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
26966
26967 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
26968
26969 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
26970 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
26971
26972 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
26973
26974 * io/read.c (read): Add libc_hidden_weak.
26975 * sysdeps/mach/hurd/read.c (read): Likewise.
26976 * io/write.c (write): Likewise.
26977 * sysdeps/mach/hurd/write.c (write): Likewise.
26978 * io/pread64.c (__pread64): Likewise.
26979 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
26980 * posix/pread64.c (__pread64): Add libc_hidden_def.
26981
26982 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
26983
26984 * benchtests/scripts/compare_strings.py: New option -g.
26985 (draw_graph): Print a message that a graph is being generated.
26986 (process_results): Generate graph only if -g is passed.
26987 (main): Process option -g.
26988
26989 * benchtests/scripts/compare_strings.py (process_results):
26990 Better spacing for output.
26991
26992 * benchtests/scripts/compare_strings.py: Use argparse.
26993 * benchtests/README: Document existence of compare_strings.py.
26994
26995 2017-09-15 Joseph Myers <joseph@codesourcery.com>
26996
26997 * math/s_fma.c: Include <libm-alias-double.h>.
26998 (fma): Define using libm_alias_double.
26999 * math/s_nextafter.c: Include <libm-alias-double.h>.
27000 (nextafter): Define using libm_alias_double.
27001 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27002 (acos): Define using libm_alias_double.
27003 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27004 (aocsh): Define using libm_alias_double.
27005 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27006 (asin): Define using libm_alias_double.
27007 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27008 (atan2): Define using libm_alias_double.
27009 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27010 (atanh): Define using libm_alias_double.
27011 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27012 (cosh): Define using libm_alias_double.
27013 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27014 (exp10): Define using libm_alias_double.
27015 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27016 (exp2): Define using libm_alias_double.
27017 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27018 (exp): Define using libm_alias_double.
27019 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27020 (fmod): Define using libm_alias_double.
27021 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27022 (hypot): Define using libm_alias_double.
27023 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27024 (j0): Define using libm_alias_double.
27025 (y0): Likewise.
27026 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27027 (j1): Define using libm_alias_double.
27028 (y1): Likewise.
27029 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27030 (jn): Define using libm_alias_double.
27031 (yn): Likewise.
27032 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27033 (log10): Define using libm_alias_double.
27034 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27035 (log2): Define using libm_alias_double.
27036 * math/w_log_compat.c: Include <libm-alias-double.h>.
27037 (log): Define using libm_alias_double.
27038 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27039 (pow): Define using libm_alias_double.
27040 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27041 (remainder): Define using libm_alias_double.
27042 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27043 (sinh): Define using libm_alias_double.
27044 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27045 (sqrt): Define using libm_alias_double.
27046 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27047 (tgamma): Define using libm_alias_double.
27048 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27049 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27050 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27051 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27052 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27053 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27054 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27055 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27056 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27057 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27058 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27059 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27060 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27061 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27062 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27063 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27064 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27065 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27066 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27067 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27068 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27069 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27070 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27071 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27072 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27073
27074 * math/e_acoshl.c: Remove.
27075 * math/e_acosl.c: Likewise.
27076 * math/e_asinl.c: Likewise.
27077 * math/e_atan2l.c: Likewise.
27078 * math/e_atanhl.c: Likewise.
27079 * math/e_coshl.c: Likewise.
27080 * math/e_expl.c: Likewise.
27081 * math/e_fmodl.c: Likewise.
27082 * math/e_gammal_r.c: Likewise.
27083 * math/e_hypotl.c: Likewise.
27084 * math/e_j0l.c: Likewise.
27085 * math/e_j1l.c: Likewise.
27086 * math/e_jnl.c: Likewise.
27087 * math/e_lgammal_r.c: Likewise.
27088 * math/e_log10l.c: Likewise.
27089 * math/e_log2l.c: Likewise.
27090 * math/e_logl.c: Likewise.
27091 * math/e_powl.c: Likewise.
27092 * math/e_rem_pio2l.c: Likewise.
27093 * math/e_sinhl.c: Likewise.
27094 * math/e_sqrtf128.c: Likewise.
27095 * math/e_sqrtl.c: Likewise.
27096 * math/k_cosl.c: Likewise.
27097 * math/k_sinl.c: Likewise.
27098 * math/k_tanl.c: Likewise.
27099 * math/s_asinhl.c: Likewise.
27100 * math/s_atanl.c: Likewise.
27101 * math/s_cbrtl.c: Likewise.
27102 * math/s_erfl.c: Likewise.
27103 * math/s_expm1l.c: Likewise.
27104 * math/s_log1pl.c: Likewise.
27105 * math/s_tanhl.c: Likewise.
27106
27107 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27108
27109 [BZ #21745]
27110 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27111 [$(subdir) = math] (sysdep_calls): New variable. Has the
27112 previous contents of sysdep_routines, but re-sorted..
27113 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27114 sysdep_calls.
27115 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27116 defined in sysdep_calls and replace by the respective m_* names.
27117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27118 (compat_symbol): Undefine to avoid duplicated compat symbols in
27119 libc.
27120
27121 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27122
27123 * math/s_fmaf.c: Include <libm-alias-float.h>.
27124 (fmaf): Define using libm_alias_float.
27125 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27126 (acosf): Define using libm_alias_float.
27127 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27128 (acoshf): Define using libm_alias_float.
27129 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27130 (asinf): Define using libm_alias_float.
27131 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27132 (atan2f): Define using libm_alias_float.
27133 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27134 (atanhf): Define using libm_alias_float.
27135 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27136 (coshf): Define using libm_alias_float.
27137 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27138 (exp10f): Define using libm_alias_float.
27139 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27140 (fmodf): Define using libm_alias_float.
27141 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27142 (hypotf): Define using libm_alias_float.
27143 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27144 (j0f): Define using libm_alias_float.
27145 (y0f): Likewise.
27146 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27147 (j1f): Define using libm_alias_float.
27148 (y1f): Likewise.
27149 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27150 (jnf): Define using libm_alias_float.
27151 (ynf): Likewise.
27152 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27153 (log10f): Define using libm_alias_float.
27154 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27155 (log2f): Define using libm_alias_float.
27156 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27157 (logf): Define using libm_alias_float.
27158 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27159 (powf): Define using libm_alias_float.
27160 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27161 (remainderf): Define using libm_alias_float.
27162 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27163 (sinhf): Define using libm_alias_float.
27164 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27165 (sqrtf): Define using libm_alias_float.
27166 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27167 (tgammaf): Define using libm_alias_float.
27168
27169 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27170
27171 * include/math.h (roundeven): Change hidden_proto call to
27172 __roundeven.
27173 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27174 alias.
27175 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27176 (y0): Rename to __y0 and define as weak alias.
27177 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27178 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27179 alias.
27180 (y0f): Rename to __y0f and define as weak alias.
27181 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27182 alias.
27183 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27184 (y1): Rename to __y1 and define as weak alias.
27185 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27186 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27187 alias.
27188 (y1f): Rename to __y1f and define as weak alias.
27189 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27190 alias.
27191 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27192 (yn): Rename to __yn and define as weak alias.
27193 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27194 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27195 alias.
27196 (ynf): Rename to __ynf and define as weak alias.
27197 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27198 (fromfp): Define as weak alias.
27199 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27200 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27201 (fromfpx): Define as weak alias.
27202 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27203 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27204 __getpayload and define as weak alias.
27205 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27206 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27207 __roundeven and define as weak alias.
27208 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27209 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27210 __setpayload.
27211 (setpayload): Define as weak alias.
27212 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27213 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27214 __setpayloadsig.
27215 (setpayloadsig): Define as weak alias.
27216 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27217 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27218 __totalorder and define as weak alias.
27219 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27220 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27221 to __totalordermag and define as weak alias.
27222 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27223 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27224 (ufromfp): Define as weak alias.
27225 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27226 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27227 __ufromfpx.
27228 (ufromfpx): Define as weak alias.
27229 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27230 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27231 Rename to __getpayload and define as weak alias.
27232 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27233 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27234 Rename to __roundeven and define as weak alias.
27235 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27236 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27237 Rename to __totalorder and define as weak alias.
27238 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27239 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27240 (totalordermag): Rename to __totalordermag and define as weak
27241 alias.
27242 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27243 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27244 macro.
27245 (__roundevenl): Likewise.
27246 (__totalorderl): Likewise.
27247 (__totalordermagl): Likewise
27248 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27249 __fromfpf128.
27250 (fromfpf128): Define as weak alias.
27251 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27252 __fromfpxf128.
27253 (fromfpxf128): Define as weak alias.
27254 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27255 __setpayloadf128.
27256 (setpayloadf128): Define as weak alias.
27257 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27258 __setpayloadsigf128.
27259 (setpayloadsigf128): Define as weak alias.
27260 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27261 __ufromfpf128.
27262 (ufromfpf128): Define as weak alias.
27263 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27264 __ufromfpxf128.
27265 (ufromfpxf128): Define as weak alias.
27266 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27267 (fromfpf): Define as weak alias.
27268 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27269 __fromfpxf.
27270 (fromfpxf): Define as weak alias.
27271 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27272 __getpayloadf and define as weak alias.
27273 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27274 __roundevenf and define as weak alias.
27275 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27276 __setpayloadf.
27277 (setpayloadf): Define as weak alias.
27278 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27279 __setpayloadsigf.
27280 (setpayloadsigf): Define as weak alias.
27281 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27282 __totalorderf and define as weak alias.
27283 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27284 Rename to __totalordermagf and define as weak alias.
27285 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27286 __ufromfpf.
27287 (ufromfpf): Define as weak alias.
27288 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27289 __ufromfpxf.
27290 (ufromfpxf): Define as weak alias.
27291 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27292 __fromfpl.
27293 (fromfpl): Define as weak alias.
27294 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27295 __fromfpxl.
27296 (fromfpxl): Define as weak alias.
27297 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27298 to __getpayloadl and define as weak alias.
27299 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27300 __roundevenl and define as weak alias.
27301 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27302 __setpayloadl.
27303 (setpayloadl): Define as weak alias.
27304 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27305 __setpayloadsigl.
27306 (setpayloadsigl): Define as weak alias.
27307 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27308 to __totalorderl and define as weak alias.
27309 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27310 Rename to __totalordermagl and define as weak alias.
27311 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27312 __ufromfpl.
27313 (ufromfpl): Define as weak alias.
27314 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27315 __ufromfpxl.
27316 (ufromfpxl): Define as weak alias.
27317 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27318 __fromfpl.
27319 (fromfpl): Define as weak alias.
27320 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27321 __fromfpxl.
27322 (fromfpxl): Define as weak alias.
27323 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27324 Rename to __getpayloadl and define as weak alias.
27325 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27326 to __roundevenl and define as weak alias. Call __roundeven
27327 instead of roundeven.
27328 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27329 __setpayloadl.
27330 (setpayloadl): Define as weak alias.
27331 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27332 __setpayloadsigl.
27333 (setpayloadsigl): Define as weak alias.
27334 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27335 Rename to __totalorderl and define as weak alias.
27336 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27337 Rename to __totalordermagl and define as weak alias.
27338 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27339 __ufromfpl.
27340 (ufromfpl): Define as weak alias.
27341 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27342 __ufromfpxl.
27343 (ufromfpxl): Define as weak alias.
27344 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27345 __fromfpl.
27346 (fromfpl): Define as weak alias.
27347 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27348 __fromfpxl.
27349 (fromfpxl): Define as weak alias.
27350 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27351 __getpayloadl and define as weak alias.
27352 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27353 __roundevenl and define as weak alias.
27354 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27355 __setpayloadl.
27356 (setpayloadl): Define as weak alias.
27357 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27358 __setpayloadsigl.
27359 (setpayloadsigl): Define as weak alias.
27360 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27361 __totalorderl and define as weak alias.
27362 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27363 Rename to __totalordermagl and define as weak alias.
27364 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27365 __ufromfpl.
27366 (ufromfpl): Define as weak alias.
27367 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27368 __ufromfpxl.
27369 (ufromfpxl): Define as weak alias.
27370
27371 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27372
27373 * benchtests/bench-string.h (realloc_bufs): New function.
27374 (test_init): Call it.
27375 * benchtests/bench-memset-large.c (do_test): Likewise.
27376 * benchtests/bench-memset.c (do_test): Likewise.
27377
27378 * benchtests/bench-memset-large.c: Print output in JSON
27379 format.
27380 * benchtests/bench-memset.c: Likewise.
27381
27382 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27383
27384 [BZ #21084]
27385 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27386 * iconvdata/Makefile: Add IBM858.
27387 * iconvdata/gconv-modules: Likewise.
27388 * iconvdata/tst-tables.sh: Likewise.
27389 * iconvdata/ibm858.c: New file.
27390 * localedata/charmaps/IBM858: Likewise.
27391
27392 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27393
27394 [BZ #22023]
27395 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27396 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27397
27398 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27399
27400 [BZ #22112]
27401 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27402 and add tel_int_fmt.
27403
27404 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27405
27406 * sysdeps/generic/libm-alias-float128.h: New file.
27407 * sysdeps/generic/math-type-macros-float128.h: Include
27408 <libm-alias-float128.h>.
27409 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27410
27411 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27412
27413 * sysdeps/generic/libm-alias-ldouble.h: New file.
27414 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27415 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27416 * sysdeps/generic/math-type-macros-ldouble.h: Include
27417 <libm-alias-ldouble.h>.
27418 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27419 libm_alias_ldouble.
27420
27421 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27422
27423 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27424 * math/w_exp_compat.c: ... here.
27425 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27426 * math/w_expf_compat.c: ... here.
27427 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27428 * math/w_expl_compat.c: ... here.
27429 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27430 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27431 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27432 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27433
27434 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27435
27436 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27437 redefine.
27438 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27439 macro.
27440 (ldexpl): Only define as compat symbol for libc, not libm.
27441 (scalbnl): Define as compat symbol for libc here.
27442 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27443 define for [IS_IN (libc)].
27444 (__ldexpl_2): Remove alias.
27445 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27446 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27447 name in long_double_symbol call.
27448 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27449 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27450 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27451 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27452 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27453 Remove macro.
27454 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27455 Define as compat symbol.
27456
27457 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27458
27459 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27460 * sysdeps/unix/sysv/linux/alpha/Makefile
27461 [$(subdir) = csu] (sysdep_routines): Remove rule.
27462
27463 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27464
27465 * sysdeps/generic/libm-alias-double.h: New file.
27466 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27467 * sysdeps/generic/math-type-macros-double.h: Include
27468 <libm-alias-double.h>.
27469 [declare_mgen_alias] (declare_mgen_alias): Define to use
27470 libm_alias_double.
27471 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27472 (M_LIBM_NEED_COMPAT): Remove macro.
27473 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27474 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27475 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27476 code.
27477 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27478 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27479 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27480 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27481 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27482 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27483 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27484 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27485 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27486 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27487 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27488 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27489 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27490 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27491 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27492 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27493 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27494 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27495 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27496 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27497 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27498 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27499 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27500 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27501 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27502 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27503 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27504 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27505 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27506 macro.
27507 (declare_mgen_alias): New macro.
27508 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27509 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27510 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27511 (M_LIBM_NEED_COMPAT): Remove macro.
27512 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27513 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27514 <first-versions.h>.
27515 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27516 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27517
27518 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27519
27520 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27521 (declare_mgen_alias_2): Remove.
27522 * sysdeps/generic/math-type-macros-double.h
27523 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27524 Likewise.
27525 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27526 alias.
27527 (ldexp): Define with declare_mgen_alias.
27528 (scalbn): Likewise.
27529
27530 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27531
27532 * grp/initgroups.c: Include config.h.
27533 (DEFAULT_CONFIG): New macro.
27534 (internal_getgrouplist): Use DEFAULT_CONFIG.
27535 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27536 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27537 (DEFAULT_DEFCONFIG): New macro.
27538 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27539 * nss/grp-lookup.c: Include config.h
27540 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27541 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27542 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27543 * manual/nss.texi: Update default values section.
27544
27545 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27546
27547 [BZ #21967]
27548 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27549 New.
27550 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27551 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27552 Handle MathVec_Prefer_No_AVX512.
27553 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27554 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27555 is set.
27556
27557 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27558
27559 * posix/sched_primax.c (__sched_get_priority_max): Add
27560 libc_hidden_def.
27561 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27562 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27563 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27564 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27565 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27566 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27567 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27568 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27569 Add aliases.
27570
27571 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27572
27573 * sysdeps/generic/libm-alias-float.h: New file.
27574 * sysdeps/generic/math-type-macros-float.h: Include
27575 <libm-alias-float.h>.
27576 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27577
27578 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27579
27580 [BZ #22093]
27581 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27582 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27583 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27584 (HWCAP_IMPORTANT): Likewise.
27585 (HWCAP_X86_64): New enum.
27586 (HWCAP_X86_AVX512_1): Updated.
27587 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27588 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27589 (modules-names): Add x86_64/tst-x86_64mod-1.
27590 (LDFLAGS-tst-x86_64mod-1.so): New.
27591 ($(objpfx)tst-x86_64-1): Likewise.
27592 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27593 (tst-x86_64-1-clean): Likewise.
27594 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27595 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27596
27597 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27598
27599 * po/sv.po: Update translations.
27600 * po/fr.po: Likewise.
27601
27602 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27603
27604 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27605 seconds.
27606 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27607 seconds.
27608 * elf/rtld-Rules: Fix $(error) use.
27609
27610 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27611
27612 [BZ #14925]
27613 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27614 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27615 * localedata/locales/bn_BD: “Bengali” was still used in some
27616 comments. Change it to “Bangla”.
27617
27618 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27619
27620 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27621
27622 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27623
27624 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27625 thunderx2t99p1 to list of cpu names.
27626 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27627 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27628
27629 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27630
27631 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27632 Use strcmp instead of tunable_is_name.
27633
27634 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27635
27636 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27637 (F_GET_RW_HINT): New macro.
27638 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27639 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27640 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27641 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27642 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27643 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27644 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27645 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27646 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27647
27648 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27649 (F_ADD_SEALS): New macro.
27650 [__USE_GNU] (F_GET_SEALS): Likewise.
27651 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27652 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27653 [__USE_GNU] (F_SEAL_GROW): Likewise.
27654 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27655
27656 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27657
27658 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27659 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27660 * posix/glob_internal.h (__glob_pattern_type):
27661 * posix/glob.c (glob):
27662 * posix/glob_pattern_p.c (__glob_pattern_p):
27663 Use them.
27664
27665 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27666 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27667 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27668 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27669 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27671 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27672 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27673 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27674 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27675 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27676 * sysdeps/wordsize-64/glob.c: Likewise.
27677 * sysdeps/wordsize-64/glob64.c: Likewise.
27678 * sysdeps/wordsize-64/globfree.c: Likewise.
27679 * sysdeps/wordsize-64/globfree64.c: Likewise.
27680 * sysdeps/unix/sysv/linux/glob.c: New file.
27681 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27682 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27683 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27684 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27685 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27686 adds !GLOB_NO_OLD_VERSION as an extra condition.
27687 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27688 using relative path instead of absolute one.
27689 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27690 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27691 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27692 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27693 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27694 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27695
27696 [BZ #1062]
27697 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27698 (glob): Use the same scratch buffer for both getlogin_r and
27699 getpwnam_r. Don’t require preallocation of the login name. This
27700 simplifies storage allocation, and corrects the handling of
27701 long login names.
27702
27703 [BZ #1062]
27704 * posix/glob.c (glob): Port recent patches to platforms
27705 lacking getpwnam_r.
27706 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27707 returns an error number rather than setting errno.
27708
27709 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27710 instead of GCC extension.
27711 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27712 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27713 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27714
27715 [BZ #866]
27716 [BZ #1062]
27717 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27718 * posix/bug-glob1.c: Remove file.
27719 * posix/tst-glob_symlinks.c: New file.
27720 * posix/glob.c (__lstat64): New macro.
27721 (is_dir): New function.
27722 (glob, glob_in_dir): Match symlinks even if they are dangling.
27723 (link_stat, link_exists_p): Remove. All uses removed.
27724
27725 [BZ #1062]
27726 [BZ #19971]
27727 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27728 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27729 All uses removed.
27730
27731 [BZ #1062]
27732 CVE-2017-15671
27733 * posix/Makefile (routines): Add globfree, globfree64, and
27734 glob_pattern_p.
27735 * posix/flexmember.h: New file.
27736 * posix/glob_internal.h: Likewise.
27737 * posix/glob_pattern_p.c: Likewise.
27738 * posix/globfree.c: Likewise.
27739 * posix/globfree64.c: Likewise.
27740 * sysdeps/gnu/globfree64.c: Likewise.
27741 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27742 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27743 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27744 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27745 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27746 * sysdeps/wordsize-64/globfree.c: Likewise.
27747 * sysdeps/wordsize-64/globfree64.c: Likewise.
27748 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27749 [NDEBUG): Remove comments.
27750 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27751 (dirent_type): New type. Use uint_fast8_t not
27752 uint8_t, as C99 does not require uint8_t.
27753 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27754 (struct readdir_result): Use dirent_type. Do not define skip_entry
27755 unless it is needed; this saves a byte on platforms lacking d_ino.
27756 (readdir_result_type, readdir_result_skip_entry):
27757 New functions, replacing ...
27758 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27759 these functions, which were removed. This makes the callers
27760 easier to read. All callers changed.
27761 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27762 (size_add_wrapv, glob_use_alloca): New static functions.
27763 (glob, glob_in_dir): Check for size_t overflow in several places,
27764 and fix some size_t checks that were not quite right.
27765 Remove old code using SHELL since Bash no longer
27766 uses this.
27767 (glob, prefix_array): Separate MS code better.
27768 (glob_in_dir): Remove old Amiga and VMS code.
27769 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27770 separate files.
27771 (glob_in_dir): Do not rely on undefined behavior in accessing
27772 struct members beyond their bounds. Use a flexible array member
27773 instead
27774 (link_stat): Rename from link_exists2_p and return -1/0 instead of
27775 0/1. Caller changed.
27776 (glob): Fix memory leaks.
27777 * posix/glob64 (globfree64): Move to separate file.
27778 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
27779 (globfree64): Remove hidden alias.
27780 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
27781 oldglob.
27782 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
27783 separate file.
27784 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
27785 define.
27786 Move compat code to separate file.
27787 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
27788 separate file.
27789
27790 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
27791
27792 * resolv/tst-resolv-qtypes.c (domain): Changed to
27793 "const char domain[] =".
27794
27795 2017-09-07 Joseph Myers <joseph@codesourcery.com>
27796
27797 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
27798 version to 3.1.6.
27799
27800 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
27801 (TCP_MD5SIG_EXT): Likewise.
27802 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
27803 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
27804 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
27805
27806 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
27807
27808 2017-09-07 Mike FABIAN <mfabian@redhat.com>
27809
27810 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
27811
27812 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
27813
27814 [BZ #22100]
27815 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
27816
27817 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27818
27819 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
27820 before assuming that the file is empty. Avoid testing buffer content
27821 when nread == 0.
27822
27823 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27824
27825 [BZ #18858]
27826 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27827 Remove define.
27828 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
27829 Likewise.
27830 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
27831 Likewise.
27832 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
27833 Likewise.
27834 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
27835 Likewise.
27836 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
27837 Likewise.
27838 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
27839 Likewise.
27840
27841 2017-09-06 Florian Weimer <fweimer@redhat.com>
27842
27843 * malloc/dynarray_emplace_enlarge.c
27844 (__libc_dynarray_emplace_enlarge): Add missing else.
27845
27846 2017-09-06 Florian Weimer <fweimer@redhat.com>
27847
27848 [BZ #22096]
27849 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
27850 case of failure to obtain the global conf object.
27851
27852 2017-09-06 Florian Weimer <fweimer@redhat.com>
27853
27854 [BZ #22095]
27855 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
27856 dynarray allocation failure.
27857
27858 2017-09-06 Florian Weimer <fweimer@redhat.com>
27859
27860 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
27861 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
27862 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
27863 New functions.
27864 (response): Call them. Add 'p', '6' flag processing.
27865 (test_reverse): New function.
27866 (test_get2_any): Call it.
27867 (test_no_inet6): Add 'p' test.
27868 (test_inet6): Likewise.
27869
27870 2017-09-06 Florian Weimer <fweimer@redhat.com>
27871
27872 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
27873 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
27874 the QNAME.
27875 (test_gai): Adjust query names. Add additional tests.
27876 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
27877 test_get2. Adjust query names. Add additional tests.
27878 (test_no_inet6): New function, extracted from threadfunc.
27879 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
27880 Add additional tests.
27881
27882 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27883
27884 [BZ #22070]
27885 * localedata/unicode-gen/utf8_gen.py: Set the width for
27886 characters with Prepended_Concatenation_Mark property to 1
27887 * localedata/charmaps/UTF-8: Updated using the improved script.
27888
27889 2017-09-06 Mike FABIAN <mfabian@redhat.com>
27890
27891 [BZ #21750]
27892 * localedata/unicode-gen/utf8_gen.py: Improve the script to
27893 use the range notation for all ranges of neighbouring characters
27894 with the same width.
27895
27896 2017-09-05 Joseph Myers <joseph@codesourcery.com>
27897
27898 * sysdeps/generic/math-type-macros-double.h: Include
27899 <math-svid-compat.h>.
27900 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27901 * sysdeps/generic/math-type-macros-float.h: Include
27902 <math-svid-compat.h>.
27903 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27904 * sysdeps/generic/math-type-macros-ldouble.h: Include
27905 <math-svid-compat.h>.
27906 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
27907 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
27908 condition.
27909 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
27910 * math/w_acosf_compat.c: Likewise.
27911 * math/w_acosh_compat.c: Likewise.
27912 * math/w_acoshf_compat.c: Likewise.
27913 * math/w_acoshl_compat.c: Likewise.
27914 * math/w_acosl_compat.c: Likewise.
27915 * math/w_asin_compat.c: Likewise.
27916 * math/w_asinf_compat.c: Likewise.
27917 * math/w_asinl_compat.c: Likewise.
27918 * math/w_atan2_compat.c: Likewise.
27919 * math/w_atan2f_compat.c: Likewise.
27920 * math/w_atan2l_compat.c: Likewise.
27921 * math/w_atanh_compat.c: Likewise.
27922 * math/w_atanhf_compat.c: Likewise.
27923 * math/w_atanhl_compat.c: Likewise.
27924 * math/w_cosh_compat.c: Likewise.
27925 * math/w_coshf_compat.c: Likewise.
27926 * math/w_coshl_compat.c: Likewise.
27927 * math/w_exp10_compat.c: Likewise.
27928 * math/w_exp10f_compat.c: Likewise.
27929 * math/w_exp10l_compat.c: Likewise.
27930 * math/w_exp2_compat.c: Likewise.
27931 * math/w_exp2f_compat.c: Likewise.
27932 * math/w_exp2l_compat.c: Likewise.
27933 * math/w_fmod_compat.c: Likewise.
27934 * math/w_fmodf_compat.c: Likewise.
27935 * math/w_fmodl_compat.c: Likewise.
27936 * math/w_hypot_compat.c: Likewise.
27937 * math/w_hypotf_compat.c: Likewise.
27938 * math/w_hypotl_compat.c: Likewise.
27939 * math/w_j0_compat.c: Likewise.
27940 * math/w_j0f_compat.c: Likewise.
27941 * math/w_j0l_compat.c: Likewise.
27942 * math/w_j1_compat.c: Likewise.
27943 * math/w_j1f_compat.c: Likewise.
27944 * math/w_j1l_compat.c: Likewise.
27945 * math/w_jn_compat.c: Likewise.
27946 * math/w_jnf_compat.c: Likewise.
27947 * math/w_jnl_compat.c: Likewise.
27948 * math/w_lgamma_r_compat.c: Likewise.
27949 * math/w_lgammaf_r_compat.c: Likewise.
27950 * math/w_lgammal_r_compat.c: Likewise.
27951 * math/w_log10_compat.c: Likewise.
27952 * math/w_log10f_compat.c: Likewise.
27953 * math/w_log10l_compat.c: Likewise.
27954 * math/w_log2_compat.c: Likewise.
27955 * math/w_log2f_compat.c: Likewise.
27956 * math/w_log2l_compat.c: Likewise.
27957 * math/w_log_compat.c: Likewise.
27958 * math/w_logf_compat.c: Likewise.
27959 * math/w_logl_compat.c: Likewise.
27960 * math/w_pow_compat.c: Likewise.
27961 * math/w_powf_compat.c: Likewise.
27962 * math/w_powl_compat.c: Likewise.
27963 * math/w_remainder_compat.c: Likewise.
27964 * math/w_remainderf_compat.c: Likewise.
27965 * math/w_remainderl_compat.c: Likewise.
27966 * math/w_sinh_compat.c: Likewise.
27967 * math/w_sinhf_compat.c: Likewise.
27968 * math/w_sinhl_compat.c: Likewise.
27969 * math/w_sqrt_compat.c: Likewise.
27970 * math/w_sqrtf_compat.c: Likewise.
27971 * math/w_sqrtl_compat.c: Likewise.
27972 * math/w_tgamma_compat.c: Likewise.
27973 * math/w_tgammaf_compat.c: Likewise.
27974 * math/w_tgammal_compat.c: Likewise.
27975 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
27976 [LIBM_SVID_COMPAT].
27977 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
27978 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
27979 [LIBM_SVID_COMPAT].
27980 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
27981 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
27982 [LIBM_SVID_COMPAT].
27983 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
27984 * sysdeps/i386/fpu/w_sqrt.c: New file.
27985 * sysdeps/ia64/fpu/w_acos.c: Likewise.
27986 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
27987 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
27988 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
27989 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
27990 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
27991 * sysdeps/ia64/fpu/w_asin.c: Likewise.
27992 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
27993 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
27994 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
27995 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
27996 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
27997 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
27998 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
27999 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28000 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28001 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28002 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28003 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28004 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28005 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28006 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28007 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28008 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28009 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28010 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28011 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28012 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28013 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28014 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28015 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28016 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28017 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28018 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28019 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28020 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28021 * sysdeps/ia64/fpu/w_log.c: Likewise.
28022 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28023 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28024 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28025 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28026 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28027 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28028 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28029 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28030 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28031 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28032 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28033 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28034 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28035 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28036 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28037 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28038 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28039 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28040 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28041 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28042 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28043 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28044 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28045 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28046 [LIBM_SVID_COMPAT].
28047 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28048 * sysdeps/ieee754/k_standard.c: Likewise.
28049 * sysdeps/ieee754/k_standardf.c: Likewise.
28050 * sysdeps/ieee754/k_standardl.c: Likewise.
28051 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28052 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28053 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28054 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28055 long_double_symbol call on [LIBM_SVID_COMPAT].
28056 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28057 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28058 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28059 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28060 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28061 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28062 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28063 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28064 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28065 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28066 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28067 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28068 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28069 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28070 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28071 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28072 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28073 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28074 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28075 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28076 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28077 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28078
28079 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28080
28081 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28082 * malloc/tst-mallocstate.c: Convert from test-skeleton
28083 to test-driver. Ifdef code using TEST_COMPAT macro.
28084 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28085 * math/test-matherr.c: Likewise.
28086
28087 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28088
28089 [BZ #22086]
28090 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28091 comparing word with byte-swapped constant.
28092
28093 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28094
28095 [BZ #20498]
28096 * locale/iso-639.def: add Miskito.
28097 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28098 * localedata/locales/miq_NI: New file.
28099
28100 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28101
28102 [BZ #18822]
28103 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28104 (__mkdir): Likewise.
28105 * io/chmod.c (__chmod): Add libc_hidden_def.
28106 * io/mkdir.c (__mkdir): Likewise.
28107 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28108 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28109 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28110 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28111
28112 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28113
28114 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28115 version to 4.13.
28116
28117 [BZ #22082]
28118 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28119 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28120
28121 2017-09-04 Florian Weimer <fweimer@redhat.com>
28122
28123 * math/math.h: Issue warning if log is defined.
28124
28125 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28126
28127 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28128 kernel version to 4.13.
28129
28130 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28131
28132 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28133 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28134 parameter.
28135 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28136 just <bits/types.h>.
28137 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28138 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28139 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28140 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28141 * misc/preadv2.c: Include <errno.h>.
28142 * misc/preadv64v2.c: Include <errno.h>.
28143 * misc/pwritev2.c: Include <errno.h>.
28144 * misc/pwritev64v2.c: Include <errno.h>.
28145 * sysdeps/posix/preadv2.c: Include <errno.h>.
28146 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28147 Fix <unistd.h> inclusion.
28148 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28149 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28150 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28151 __strtoul_internal): New functions.
28152 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28153 * sysdeps/posix/system.c: Include <sigsetops.h>.
28154 * sysdeps/mach/hurd/i386/Makefile
28155 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28156 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28157 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28158 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28159 __feraiseexcept_renamed to feraiseexcept instead of
28160 __GI_feraiseexcept.
28161 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28162 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28163 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28164 RWF_NOWAIT): Define to 0 if undefined already.
28165 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28166 boils down to 0.
28167 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28168 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28169
28170 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28171
28172 * manual/math.texi (pow10): Do not document.
28173 (pow10f): Likewise.
28174 (pow10l): Likewise.
28175 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28176 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28177 * math/libm-test-exp10.inc (pow10_test): Remove.
28178 (do_test): Do not call pow10.
28179 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28180 [NO_LONG_DOUBLE] (pow10l): Likewise.
28181 * math/w_exp10f_compat.c (pow10f): Likewise.
28182 * math/w_exp10l_compat.c (pow10l): Likewise.
28183 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28184 (pow10): Make into compat symbol.
28185 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28186 (pow10f): Make into compat symbol.
28187 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28188 (pow10l): Make into compat symbol.
28189 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28190 pow10.
28191 (CFLAGS-nldbl-pow10.c): Remove variable..
28192 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28193 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28194 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28195 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28196 Undefine and redefine.
28197 (pow10l): Make into compat symbol.
28198 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28199 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28200 * sysdeps/arm/libm-test-ulps: Likewise.
28201 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28202 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28203 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28204 * sysdeps/microblaze/libm-test-ulps: Likewise.
28205 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28206 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28207 * sysdeps/nios2/libm-test-ulps: Likewise.
28208 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28209 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28210 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28211 * sysdeps/sh/libm-test-ulps: Likewise.
28212 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28213 * sysdeps/tile/libm-test-ulps: Likewise.
28214 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28215
28216 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28217
28218 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28219
28220 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28221
28222 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28223 "../ChangeLog.old/ChangeLog.8".
28224 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28225 "../ChangeLog.old/ChangeLog.14".
28226
28227 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28228
28229 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28230 Threads Library.
28231
28232 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28233
28234 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28235
28236 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28237
28238 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28239 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28240
28241 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28242
28243 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28244 32 atexit handlers.
28245
28246 2017-09-01 Zack Weinberg <zackw@panix.com>
28247
28248 * math/math.h (HUGE_VAL): Improve commentary.
28249
28250 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28251 Andreas Schwab <schwab@suse.de>
28252
28253 [BZ #21530]
28254 * include/stdio.h (__gen_tempfd): New function.
28255 * stdio-common/Makefile (routines): Add gentempfd.
28256 * stdio-common/gentempfd.c: New file.
28257 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28258 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28259 unnamed file first.
28260
28261 2017-09-01 Florian Weimer <fweimer@redhat.com>
28262
28263 [BZ #21915]
28264 [BZ #21922]
28265 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28266 result to determine success or failure, not the errno value.
28267 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28268 (tst-nss-files-hosts-erange): Link with -ldl.
28269 * nss/tst-nss-files-hosts-erange.c: New file.
28270 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28271 (do_test): Add NO_DATA tests.
28272 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28273 (do_test): Call it.
28274
28275 2017-09-01 Florian Weimer <fweimer@redhat.com>
28276
28277 [BZ #21922]
28278 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28279 coming from gethostbyname2_r.
28280
28281 2017-09-01 Florian Weimer <fweimer@redhat.com>
28282
28283 * support/namespace.h (struct support_chroot_configuration): Add
28284 hosts, host_conf.
28285 (struct support_chroot): Add path_hosts, path_host_conf.
28286 * support/support_chroot.c (write_file): New function.
28287 (support_chroot_create): Call it to process /etc/resolv.conf,
28288 /etc/hosts, /etc/host.conf.
28289 (support_chroot_free): Update.
28290
28291 2017-09-01 Florian Weimer <fweimer@redhat.com>
28292
28293 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28294 status indicates it is set.
28295
28296 2017-09-01 Florian Weimer <fweimer@redhat.com>
28297
28298 [BZ #20532]
28299 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28300 function lookup failures more reliable.
28301
28302 2017-09-01 Florian Weimer <fweimer@redhat.com>
28303
28304 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28305 (getcanonname): Likewise.
28306 (gaih_inet): Likewise.
28307
28308 2017-09-01 Florian Weimer <fweimer@redhat.com>
28309
28310 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28311 (getcanonname): Likewise.
28312 (gaih_inet): Likewise.
28313
28314 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28315 Richard Henderson <rth@twiddle.net>
28316
28317 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28318 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28319 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28320 (IREG_SIZE, OREG_SIZE): New macros.
28321 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28322 (IREG_SIZE, OREG_SIZE): New macros.
28323 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28324 (IREG_SIZE): New macro.
28325 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28326 (IREG_SIZE): New macro.
28327 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28328 New includes.
28329 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28330 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28331 (__CONCATX): Handle exceptions correctly on large values that may
28332 set FE_INVALID.
28333 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28334 Initialize if not already set.
28335 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28336
28337 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28338
28339 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28340 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28341 Likewise.
28342 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28343 Likewise.
28344 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28345 Likewise.
28346 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28347 Likewise.
28348 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28349 Likewise.
28350 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28351 Likewise.
28352 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28353 Likewise.
28354 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28355 (NO_CANCELLATION): Likewise.
28356 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28357 Likewise.
28358 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28359 Likewise.
28360 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28361 Likewise.
28362 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28363 (NO_CANCELLATION): Likewise.
28364 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28365 (NO_CANCELLATION): Likewise.
28366 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28367 Likewise
28368 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28369 Likewise.
28370 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28371 Likewise.
28372 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28373 Likewise.
28374 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28375 hidden prototype.
28376 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28377 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28378
28379 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28380
28381 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28382 in resolver call.
28383
28384 2017-08-31 Florian Weimer <fweimer@redhat.com>
28385
28386 * include/libc-symbols.h (internal_function): Remove.
28387
28388 2017-08-31 Florian Weimer <fweimer@redhat.com>
28389
28390 * stdlib/fmtmsg.c (internal_addseverity): Remove
28391 internal_function.
28392
28393 2017-08-31 Florian Weimer <fweimer@redhat.com>
28394
28395 * stdio-common/printf_fp.c (group_number): Remove
28396 internal_function.
28397 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28398
28399 2017-08-31 Florian Weimer <fweimer@redhat.com>
28400
28401 * posix/fnmatch.c (internal_function): Remove definition.
28402 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28403 * posix/regcomp.c (peek_token, init_word_char)
28404 (duplicate_node_closure, fetch_token, peek_token)
28405 (peek_token_bracket, build_range_exp, build_collating_symbol):
28406 Likewise.
28407 * posix/regex_internal.c (re_string_construct_common)
28408 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28409 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28410 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28411 (re_string_translate_buffer, re_string_reconstruct)
28412 (re_string_peek_byte_case, re_string_fetch_byte_case)
28413 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28414 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28415 (re_node_set_add_intersect, re_node_set_init_union)
28416 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28417 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28418 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28419 (re_acquire_state_context): Likewise.
28420 * posix/regex_internal.h (internal_function): Remove definition.
28421 (re_string_realloc_buffers, build_wcs_buffer)
28422 (build_wcs_upper_buffer, build_upper_buffer)
28423 (re_string_translate_buffer, re_string_context_at)
28424 (re_string_char_size_at, re_string_wchar_at)
28425 (re_string_elem_size_at): Likewise.
28426 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28427 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28428 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28429 (re_search_internal, re_search_2_stub, re_search_stub)
28430 (re_copy_regs, prune_impossible_nodes, check_matching)
28431 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28432 (free_fail_stack_return, sift_states_iter_mb)
28433 (sift_states_backward, build_sifted_states)
28434 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28435 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28436 (check_subexp_limits, sift_states_bkref, merge_state_array)
28437 (find_recover_state, transit_state, merge_state_with_log)
28438 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28439 (transit_state_mb, transit_state_bkref, get_subexp)
28440 (get_subexp_sub, find_subexp_node, check_arrival)
28441 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28442 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28443 (check_node_accept_bytes, find_collation_sequence_value)
28444 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28445 (acquire_init_state_context, check_halt_node_context)
28446 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28447 (sub_epsilon_src_nodes): Likewise.
28448 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28449 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28450 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28451 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28452 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28453 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28454 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28455 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28456 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28457 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28458 (PREADV): Likewise.
28459 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28460 (PREADV): Likewise.
28461 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28462 (PWRITEV): Likewise.
28463 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28464 (PWRITEV): Likewise.
28465 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28466 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28467
28468 2017-08-31 Florian Weimer <fweimer@redhat.com>
28469
28470 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28471 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28472 Remove internal_function.
28473 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28474 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28475 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28476 (__deallocate_stack, __libc_pthread_init)
28477 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28478 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28479 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28480 Likewise.
28481 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28482 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28483 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28484 Likewise.
28485 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28486 (__pthread_mutex_unlock_usercnt): Likewise.
28487
28488 2017-08-31 Florian Weimer <fweimer@redhat.com>
28489
28490 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28491 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28492 (fts_safe_changedir): Remove internal_function.
28493 * io/ftw.c (internal_function): Remove definition.
28494 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28495
28496 2017-08-31 Florian Weimer <fweimer@redhat.com>
28497
28498 * inet/deadline.c (__deadline_current_time)
28499 (__deadline_from_timeval, __deadline_to_ms): Remove
28500 internal_function.
28501 * inet/getnameinfo.c (nrl_domainname): Likewise.
28502 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28503 * inet/inet6_option.c (add_pad): Likewise.
28504 * inet/net-internal.h (__deadline_current_time)
28505 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28506 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28507 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28508 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28509
28510 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28511
28512 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28513 include <bits/nan.h>.
28514 * math/Makefile (headers): Remove bits/nan.h.
28515 * bits/nan.h: Remove.
28516 * sysdeps/ieee754/bits/nan.h: Likewise.
28517 * sysdeps/mips/bits/nan.h: Likewise.
28518
28519 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28520 not include <bits/inf.h>.
28521 * math/Makefile (headers): Remove bits/inf.h.
28522 * bits/inf.h: Remove.
28523 * sysdeps/ieee754/bits/inf.h: Likewise.
28524
28525 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28526 bits/huge_vall.h or bits/huge_val_flt128.h.
28527 (HUGE_VAL): Define directly here.
28528 [__USE_ISOC99] (HUGE_VALF): Likewise.
28529 [__USE_ISOC99] (HUGE_VALL): Likewise.
28530 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28531 (HUGE_VAL_F128): Likewise.
28532 * math/Makefile (headers): Remove bits/huge_val.h,
28533 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28534 * bits/huge_val.h: Remove.
28535 * bits/huge_val_flt128.h: Likewise.
28536 * bits/huge_valf.h: Likewise.
28537 * bits/huge_vall.h: Likewise.
28538 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28539 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28540 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28541 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28542 * sysdeps/sh/bits/huge_val.h: Likewise.
28543 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28544 * sysdeps/x86/bits/huge_vall.h: Likewise.
28545
28546 2017-08-31 Florian Weimer <fweimer@redhat.com>
28547
28548 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28549 internal_function.
28550 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28551 Likewise.
28552 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28553 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28554 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28555 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28556 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28557 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28558 * elf/dl-libc.c (dlerror_run): Likewise.
28559 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28560 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28561 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28562 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28563 Likewise.
28564 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28565 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28566 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28567 * elf/dl-profile.c (_dl_start_profile): Likewise.
28568 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28569 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28570 Likewise.
28571 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28572 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28573 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28574 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28575 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28576 (_dl_allocate_tls_storage): Likewise.
28577 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28578 (_dl_check_all_versions): Likewise.
28579 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28580 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28581 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28582 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28583 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28584 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28585 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28586 internal_function from __dl_start.
28587 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28588 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28589 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28590 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28591 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28592 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28593 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28594 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28595 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28596 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28597 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28598 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28599 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28600 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28601 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28602 Likewise.
28603 (struct rtld_global_ro): Remove internal_function from the
28604 _dl_lookup_symbol_x member.
28605 (_dl_symbol_value): Remove. No longer defined anywhere.
28606 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28607 internal_function.
28608 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28609 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28610 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28611 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28612 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28613 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28614 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28615 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28616 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28617 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28618 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28619 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28620
28621 2017-08-31 Florian Weimer <fweimer@redhat.com>
28622
28623 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28624 Remove internal_function.
28625 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28626 Likewise.
28627 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28628 Likewise.
28629
28630 2017-08-31 Florian Weimer <fweimer@redhat.com>
28631
28632 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28633 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28634 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28635
28636 2017-08-31 Florian Weimer <fweimer@redhat.com>
28637
28638 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28639 (__gai_enqueue_request): Remove internal_function.
28640 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28641 (__gai_remove_request, __gai_notify, __gai_notify_only)
28642 (__gai_sigqueue): Likewise.
28643 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28644 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28645 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28646 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28647 Likewise.
28648
28649 2017-08-31 Florian Weimer <fweimer@redhat.com>
28650
28651 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28652 * include/dirent.h (__opendirat, __getdents, __getdents64)
28653 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28654 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28655 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28656 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28657 Likewise.
28658 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28659
28660 2017-08-31 Florian Weimer <fweimer@redhat.com>
28661
28662 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28663 internal_function.
28664 (GETCWD_RETURN_TYPE): Likewise.
28665
28666 2017-08-31 Florian Weimer <fweimer@redhat.com>
28667
28668 * include/time.h (__tz_compute, __strptime_internal): Remove
28669 internal_function.
28670 * time/strptime_l.c (__strptime_internal): Likewise.
28671 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28672
28673 2017-08-31 Florian Weimer <fweimer@redhat.com>
28674
28675 * iconv/gconv.c (__gconv): Remove internal_function.
28676 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28677 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28678 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28679 (__gconv_release_cache): Likewise.
28680 * iconv/gconv_close.c (__gconv_close): Likewise.
28681 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28682 (read_conf_file, __gconv_get_path): Likewise.
28683 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28684 (__gconv_release_step, gen_steps, increment_counter)
28685 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28686 (__gconv_close_transform, free_modules_db): Likewise.
28687 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28688 Likewise.
28689 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28690 (__gconv_find_transform, __gconv_lookup_cache)
28691 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28692 (__gconv_close_transform, __gconv_release_cache)
28693 (__gconv_loaded_object, __gconv_release_shlib)
28694 (__gconv_compare_alias): Likewise.
28695 * iconv/gconv_open.c (__gconv_open): Likewise.
28696 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28697 * iconv/iconvconfig.c (add_module): Likewise.
28698 * intl/dcigettext.c (plural_lookup, guess_category_value)
28699 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28700 * intl/eval-plural.h (plural_eval): Likewise.
28701 * intl/finddomain.c (_nl_find_domain): Likewise.
28702 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28703 (_nl_load_domain, _nl_find_msg): Likewise.
28704 (internal_function): Remove definition.
28705 * intl/loadinfo.h (internal_function): Likewise.
28706 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28707 internal_function.
28708 * intl/localealias.c (internal_function): Remove definition.
28709 (read_alias_file): Remove internal_function.
28710 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28711 * intl/plural-exp.h (internal_function): Remove definition.
28712 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28713 internal_function.
28714 * intl/plural.c: Regenerate.
28715 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28716 * locale/coll-lookup.c (__collidx_table_lookup)
28717 (__collseq_table_lookup): Likewise.
28718 * locale/coll-lookup.h (__collidx_table_lookup)
28719 (__collseq_table_lookup): Likewise.
28720 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28721 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28722 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28723 (_nl_unload_locale): Likewise.
28724 * locale/localeinfo.h (struct __locale_data): Remove
28725 internal_function from cleanup member.
28726 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28727 (_nl_remove_locale, _nl_load_locale_from_archive)
28728 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28729 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28730 (_nl_cleanup_time): Remove internal_function.
28731 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28732 (_nl_parse_alt_digit): Likewise.
28733 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28734 (_nl_select_era_entry): Likewise.
28735 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28736 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28737 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28738 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28739 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28740
28741 2017-08-31 Florian Weimer <fweimer@redhat.com>
28742
28743 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28744 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28745 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28746 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28747 Likewise.
28748 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28749 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28750 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28751 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28752 Likewise.
28753 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28754
28755 2017-08-31 Florian Weimer <fweimer@redhat.com>
28756
28757 * misc/getttyent.c (skip, value): Remove internal_function.
28758 * misc/syslog.c (openlog_internal): Likewise.
28759 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28760
28761 2017-08-31 Florian Weimer <fweimer@redhat.com>
28762
28763 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28764 (__nss_rewrite_field): Remove internal_function.
28765 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28766 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28767 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28768 * nss/nsswitch.c (nss_parse_file, nss_getline)
28769 (nss_parse_service_list, nss_new_service): Likewise.
28770 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28771 * nss/valid_field.c (__nss_valid_field): Likewise.
28772 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28773
28774 2017-08-31 Florian Weimer <fweimer@redhat.com>
28775
28776 * malloc/arena.c (__malloc_fork_lock_parent)
28777 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
28778 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
28779 internal_function from defintions.
28780 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
28781 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
28782 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
28783 internal_function from declarations.
28784 * malloc/malloc.c (internal_function): Do not define.
28785 (mem2mem_check): Remove internal_function from declaration.
28786 (munmap_chunk, mremap_chunk): Remove internal_function.
28787 * malloc/mtrace.c (tr_where): Likewise.
28788
28789 2017-08-31 Florian Weimer <fweimer@redhat.com>
28790
28791 * include/rpc/pmap_clnt.h (__get_socket): Remove
28792 internal_function.
28793 * sunrpc/auth_des.c (synchronize): Likewise.
28794 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
28795 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
28796 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
28797 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
28798 (key_call): Likewise.
28799 * sunrpc/pm_getport.c (__get_socket): Likewise.
28800 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
28801 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
28802 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
28803 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
28804 (invalidate): Likewise.
28805 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
28806 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
28807 (set_input_fragment, get_input_bytes): Likewise.
28808
28809 2017-08-31 Florian Weimer <fweimer@redhat.com>
28810
28811 * malloc/malloc.c (_int_free): Remove locked variable and related
28812 asserts.
28813
28814 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
28815
28816 [BZ #22051]
28817 * Makerules (build-module-helper-objlist): Filter out
28818 $(elf-objpfx)sofini.os.
28819 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
28820 needed.
28821
28822 2017-08-31 Florian Weimer <fweimer@redhat.com>
28823
28824 * libio/fcloseall.c: Assume weak_alias is defined.
28825 * libio/feof.c: Likewise.
28826 * libio/fileno.c: Likewise.
28827 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
28828 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28829 definitions.
28830 (_IO_file_open): Call __open directly.
28831 (_IO_new_file_sync): Assume ESPIPE is defined.
28832 (_IO_file_seekoff_maybe_mmap): Call __read directly.
28833 (_IO_new_file_write): Call __write directly.
28834 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
28835 * libio/ftello64.c (__ftello64): Assume EIO is defined.
28836 * libio/genops.c: Assume _LIBC is defined.
28837 (save_for_backup): Remove internal_function.
28838 * libio/getc.c: Assume weak_alias is defined.
28839 * libio/getwc.c: Likewise.
28840 * libio/iofclose.c: Assume _LIBC is defined.
28841 * libio/iofdopen.c: Likewise.
28842 (_IO_fcntl): Remove macro definition.
28843 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
28844 Call __fcntl directly.
28845 * libio/iofflush.c: Assume weak_alias is defined.
28846 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
28847 defined.
28848 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
28849 * libio/iofgets.c: Likewise.
28850 * libio/iofopen.c: Assume _LIBC is defined.
28851 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
28852 * libio/iofputs.c: Assume weak_alias is defined.
28853 * libio/iofread.c: Likewise.
28854 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
28855 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
28856 * libio/ioftell.c: Assume weak_alias is defined.
28857 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
28858 * libio/iofwide.c: Assume _LIBC is defined.
28859 (_IO_fwide): Drop SHARED conditional because it is implied by
28860 SHLIB_COMPAT.
28861 * libio/iofwrite.c: Assume weak_alias is defined.
28862 * libio/iogetdelim.c: Likewise.
28863 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
28864 * libio/iogetwline.c (wmemcpy): Remove macro definition.
28865 (_IO_getwline): Call __wmemcpy directly.
28866 * libio/iopopen.c: Assume _LIBC is defined.
28867 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28868 (_IO_close): Remove macro definitions.
28869 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
28870 _exit directly.
28871 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
28872 directly.
28873 * libio/ioputs.c: Assume weak_alias is defined.
28874 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
28875 * libio/iosetbuffer.c: Assume weak_alias is defined.
28876 * libio/iosetvbuf.c: Likewise.
28877 * libio/ioungetc.c: Likewise.
28878 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
28879 libc_hidden_def, libc_hidden_weak, NULL are defined.
28880 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
28881 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
28882 defined.
28883 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
28884 definitions.
28885 (_IO_old_file_init_internal): Drop SHARED conditional because it
28886 is implied by SHLIB_COMPAT.
28887 (_IO_old_file_fopen): Call __open directly.
28888 (_IO_old_file_sync): Assume ESPIPE is defined.
28889 (_IO_old_file_write): Call __write directly.
28890 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
28891 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
28892 Call __fcntl directly.
28893 * libio/oldiofgetpos.c: Assume weak_alias is defined.
28894 (_IO_old_fgetpos): Assume EIO is defined.
28895 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
28896 (_IO_old_fgetpos64): Assume EIO is defined.
28897 * libio/oldiofsetpos.c: Assume weak_alias is defined.
28898 (_IO_old_fsetpos): Assume EIO is defined.
28899 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
28900 (_IO_old_fsetpos64): Assume EIO is defined.
28901 * libio/oldiopopen.c: Assume _LIBC is defined.
28902 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
28903 (_IO_close): Remove macro definitions.
28904 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
28905 directly.
28906 (_IO_old_proc_close): Call __close, __waitpid directly.
28907 * libio/put.c: Assume weak_alias is defined.
28908 * libio/stdfiles.c: Assume _LIBC is defined.
28909 * libio/stdio.c: Likewise.
28910 * libio/wfileops.c: Likewise.
28911 (_IO_wfile_sync): Assume ESPIPE is defined.
28912 * libio/wgenops.c: Assume _LIBC is defined.
28913 (save_for_wbackup): Remove internal_function.
28914
28915 2017-08-31 Florian Weimer <fweimer@redhat.com>
28916
28917 * malloc/malloc.c (top_check): Change return type to void. Remove
28918 internal_function.
28919 * malloc/hooks.c (top_check): Likewise.
28920 (malloc_check, realloc_check, memalign_check): Adjust.
28921
28922 2017-08-30 Joseph Myers <joseph@codesourcery.com>
28923
28924 [BZ #21457]
28925 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28926 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
28927 sigcontext and namespace requirements.
28928 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
28929 * sysdeps/m68k/sys/ucontext.h: Likewise.
28930 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
28931 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
28932 <bits/sigcontext.h>.
28933 (__ctx): Define earlier.
28934 (mcontext_t): Define structure contents rather than using struct
28935 sigcontext.
28936 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
28937 __glibc_reserved1 instead of __reserved.
28938 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
28939 <bits/sigcontext.h>.
28940 (__ctx): Define earlier.
28941 (mcontext_t): Define structure contents rather than using struct
28942 sigcontext.
28943 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
28944 mcontext_t instead of struct sigcontext.
28945 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
28946 <bits/sigcontext.h>.
28947 (__ctx): Define earlier.
28948 (mcontext_t): Define structure contents rather than using struct
28949 sigcontext.
28950 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
28951 <bits/sigcontext.h>.
28952 (__ctx): Define earlier.
28953 (mcontext_t): Define structure contents rather than using struct
28954 sigcontext.
28955 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
28956 mcontext_t instead of struct sigcontext.
28957 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
28958 mcontext_t instead of struct sigcontext.
28959 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
28960 <bits/sigcontext.h>.
28961 (__ctx): New macro.
28962 (struct __ia64_fpreg_mcontext): New type.
28963 (mcontext_t): Define structure contents rather than using struct
28964 sigcontext.
28965 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
28966 (uc_sigmask): Define using __ctx.
28967 (uc_stack): Likewise.
28968 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
28969 <bits/sigcontext.h>.
28970 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
28971 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
28972 <bits/sigcontext.h>.
28973 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
28974 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
28975 <bits/sigcontext.h>.
28976 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
28977 <bits/sigcontext.h>.
28978 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
28979 <bits/sigcontext.h>.
28980 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
28981 <bits/sigcontext.h>.
28982 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
28983 <bits/sigcontext.h>.
28984 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
28985 <bits/sigcontext.h>.
28986 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
28987 <bits/sigcontext.h>.
28988 (__ctx): Define earlier.
28989 (mcontext_t): Define structure contents rather than using struct
28990 sigcontext.
28991 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
28992 <bits/sigcontext.h>. Include <bits/types.h>.
28993 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
28994 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
28995 (test-xfail-XPG42/ucontext.h/conform): Likewise.
28996 (test-xfail-UNIX98/signal.h/conform): Likewise.
28997 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
28998 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
28999 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29000 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29001 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29002 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29003 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29004 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29005 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29006
29007 2017-08-30 Florian Weimer <fweimer@redhat.com>
29008
29009 * malloc/dynarray_emplace_enlarge.c
29010 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29011 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29012 * malloc/tst-dynarray.c (test_long_overflow): New function.
29013 (do_test): Call it.
29014
29015 2017-08-30 Florian Weimer <fweimer@redhat.com>
29016
29017 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29018 (set_arena_corrupt): Remove definitions.
29019 (mtrim): Do not check for corrupt arena.
29020 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29021 Likewise.
29022
29023 2017-08-30 Florian Weimer <fweimer@redhat.com>
29024
29025 [BZ #21754]
29026 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29027 check_action.
29028 (ptmalloc_init): Do not set or use check_action.
29029 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29030 call to malloc_printerr. Remove return statement.
29031 (free_check): Likewise. Remove arena unlock.
29032 (top_check): Update comment. Adjust call to malloc_printerr.
29033 Remove heap repair code.
29034 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29035 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29036 (sysmalloc): Adjust call to malloc_printerr.
29037 (munmap_chunk, __libc_realloc): Likewise. Remove return
29038 statement.
29039 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29040 Remove errout label and corresponding gotos.
29041 (_int_free): Likewise. Remove arena unlock.
29042 (do_set_mallopt_check): Do not set check_action.
29043 (malloc_printerr): Adjust parameter list. Do not mark arena as
29044 corrupt.
29045 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29046 comment.
29047 * manual/probes.texi (Memory Allocation Probes): Remove
29048 memory_mallopt_check_action.
29049
29050 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29051
29052 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29053 Use pointer to uint64_t instead of long int for sp.
29054
29055 2017-08-30 Florian Weimer <fweimer@redhat.com>
29056
29057 [BZ #21754]
29058 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29059 without printing a backtrace. Do not leak any information in the
29060 error message.
29061 * manual/memory.texi (Heap Consistency Checking): Update.
29062 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29063
29064 2017-08-30 Florian Weimer <fweimer@redhat.com>
29065
29066 Do not scale NPTL tests with available number of CPUs.
29067 * nptl/tst-cond16.c (count): Set to constant value of 8.
29068 * nptl/tst-cond18.c (count): Likewise.
29069
29070 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29071
29072 [BZ #22035]
29073 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29074 Define to take a second argument that is a macro that
29075 concatentates a suffix, not the suffix itself.
29076 (__CONCAT_d): New macro.
29077 (__CONCAT_f): Likewise.
29078 (__CONCAT_l): Likewise.
29079
29080 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29081
29082 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29083 by child.
29084
29085 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29086 Aurelien Jarno <aurelien@aurel32.net>
29087 Maciej W. Rozycki <macro@imgtec.com>
29088
29089 [BZ #21956]
29090 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29091 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29092 `mips16-syscall6' and `mips16-syscall7'.
29093 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29094 (CFLAGS-mips16-syscall7.c): Remove.
29095 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29096 Remove `__mips16_syscall5', `__mips16_syscall6' and
29097 `__mips16_syscall7'.
29098 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29099 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29100 `__mips_syscall_return'.
29101 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29102 (__mips16_syscall1): Likewise.
29103 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29104 (__mips16_syscall2): Likewise.
29105 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29106 (__mips16_syscall3): Likewise.
29107 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29108 (__mips16_syscall4): Likewise.
29109 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29110 Remove.
29111 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29112 Remove.
29113 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29114 Remove.
29115 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29116 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29117 `__mips16_syscall5'. Remove prototype.
29118 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29119 `__mips16_syscall6'. Remove prototype.
29120 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29121 `__mips16_syscall7'. Remove prototype.
29122 (__nomips16, __mips16_syscall_return): Move to...
29123 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29124 (__nomips16, __mips_syscall_return): ... here.
29125 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29126 `__mips16_syscall_return' to `__mips_syscall_return'.
29127 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29128 `internal_syscall##nr'.
29129 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29130 `internal_syscall##nr'.
29131 (FORCE_FRAME_POINTER): Remove.
29132 (__mips_syscall5): New prototype.
29133 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29134 (__mips_syscall6): New prototype.
29135 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29136 (__mips_syscall7): New prototype.
29137 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29138 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29139 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29140 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29141 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29142 (sysdep_routines): Add libc-do-syscall.
29143 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29144 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29145
29146 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29147
29148 [BZ #21672]
29149 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29150 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29151 (advise_stack_range): New function.
29152 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29153 stack non required to advise_stack_range at allocatestack.c
29154
29155 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29156
29157 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29158
29159 2017-08-29 Florian Weimer <fweimer@redhat.com>
29160
29161 [BZ #22026]
29162 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29163 __end_fct. Mangle __end_fct after setting it to NULL.
29164 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29165 (modules-names, modules-names-tests): Add
29166 tst-gconv-init-failure-mod.
29167 (gconv-modules): New target.
29168 (tst-gconv-init-failure-mod.so): Link against libsupport.
29169 (tst-gconv-init-failure): Depend on gconv-modules,
29170 tst-gconv-init-failure-mod.so.
29171 * iconv/tst-gconv-init-failure-mod.c: New file.
29172 * iconv/tst-gconv-init-failure.c: Likewise.
29173 * iconv/test-gconv-modules: Likewise.
29174
29175 2017-08-29 Florian Weimer <fweimer@redhat.com>
29176
29177 [BZ #22025]
29178 * iconv/gconv_db.c (free_derivation): Remove redundant
29179 parentheses.
29180 (gen_steps): Unconditionally mangle __btowc_fct after
29181 initialization.
29182 (increment_counter): Likewise. Do not call init_fct for internal
29183 modules.
29184
29185 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29186
29187 [BZ #22028]
29188 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29189 (_MSUF_): Remove macro.
29190 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29191 Likewise.
29192 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29193 (__REDIRFROM_X): New macro.
29194 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29195 Likewise.
29196 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29197 (__REDIRTO_X): Likewise.
29198 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29199 arguments.
29200 (__MATH_REDIRCALL_2): Likewise.
29201 (__MATH_REDIRCALL_INTERNAL): Likewise.
29202 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29203 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29204 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29205 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29206 * math/test-finite-macros.c: New file.
29207 * math/Makefile (tests): Add test-finite-macros.
29208 (CFLAGS-test-finite-macros.c): New variable.
29209
29210 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29211 Jeff Law <law@redhat.com>
29212
29213 [BZ #22025]
29214 Mangle NULL pointers in iconv/gconv.
29215 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29216 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29217 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29218 is non-NULL before demangling the end_fct. Check for NULL
29219 end_fct after demangling.
29220 (__gconv_release_step): Demangle the end_fct before checking
29221 it for NULL. Remove assert on __shlibc_handle != NULL.
29222 (gen_steps): Don't check btowc_fct for NULL before mangling.
29223 Demangle init_fct before checking for NULL.
29224 (increment_counter): Likewise.
29225 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29226 end_fct for NULL before mangling.
29227 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29228 for NULL.
29229
29230 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29231
29232 [BZ #21971]
29233 * locale/iso-639.def: add Morisyen.
29234
29235 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29236
29237 [BZ #21930]
29238 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29239 (iszero): New C++ implementation that does not use
29240 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29241 signaling nans are enabled, since __builtin_types_compatible_p
29242 is a C-only feature.
29243 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29244 defined, include ieee754_float128.h for access to the union and
29245 member ieee854_float128.ieee.
29246 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29247 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29248 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29249 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29250 options of test-math-zero on powerpc64le.
29251
29252 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29253
29254 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29255 Change double to float.
29256
29257 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29258
29259 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29260 unconditional.
29261 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29262 conditional code; define contents only for [LIBM_SVID_COMPAT].
29263
29264 2017-08-28 Florian Weimer <fweimer@redhat.com>
29265
29266 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29267 (abi-lp64_be-options): Remove.
29268 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29269 (abi-hard-options): Likewise.
29270 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29271 (abi-o32_hard-options, abi-o32_soft_2008-options)
29272 (abi-o32_hard_2008-options, abi-n32_soft-options)
29273 (abi-n32_hard-options, abi-n32_soft_2008-options)
29274 (abi-n32_hard_2008-options, abi-n64_soft-options)
29275 (abi-n64_hard-options, abi-n64_soft_2008-options)
29276 (abi-n64_hard_2008-options): Likewise.
29277 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29278 (abi-64-v1-options, abi-64-v2-options): Likewise.
29279 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29280 (abi-64-options): Likewise.
29281 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29282 (abi-64-options): Likewise.
29283 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29284 (abi-64-options): Likewise.
29285 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29286 (abi-64-options, abi-x32-options): Likewise.
29287
29288 2017-08-28 Florian Weimer <fweimer@redhat.com>
29289
29290 Store supported list of SYS_* system calls in the source tree.
29291 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29292 (bits/syscall.h): Generate from list file.
29293 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29294 [$(subdir) = misc] (tests): Add tst-syscall-list.
29295 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29296 [$(subdir) = misc] (tst-syscall-list-macros.list)
29297 [$(subdir) = misc] (tst-syscall-list-nr.list)
29298 (tst-syscall-list-sys.list): Helper targets for new
29299 tst-syscall-list test.
29300 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29301 tst-syscall-list.sh.
29302 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29303 target. Do not include bits/syscall.d.
29304 [$(subdir) = misc] (generated): Do not update.
29305 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29306 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29307 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29308 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29309
29310 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29311
29312 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29313 (tst-cxa_atexit, tst-on_exit): Likewise.
29314 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29315 tst-cxa_atexit, and tst-on_exit.
29316 * stdlib/tst-atexit-common.c: New file.
29317 * stdlib/tst-atexit.c: New file.
29318 * stdlib/tst-at_quick_exit.c: New file.
29319 * stdlib/tst-cxa_atexit.c: New file.
29320 * stdlib/tst-on_exit.c: New file.
29321
29322 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29323
29324 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29325 * mach/stack_chk_fail_local.c: New file.
29326 * hurd/stack_chk_fail_local.c: New file.
29327 * mach/Machrules ($(interface-library)-routines): Add
29328 stack_chk_fail_local.
29329 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29330 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29331 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29332 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29333 * hurd/Makefile (CFLAGS-hurdstartup.o,
29334 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29335
29336 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29337
29338 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29339 (index_cpu_*, index_arch_*): Removed.
29340
29341 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29342
29343 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29344 Use uint64_t instead of unsigned long.
29345
29346 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29347
29348 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29349 [__HAVE_DISTINCT_FLOAT128].
29350
29351 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29352 of <bits/math-finite.h>.
29353 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29354 inclusion of <bits/math-finite.h>.
29355 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29356 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29357 __NO_LONG_DOUBLE_MATH].
29358 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29359 (__MATH_REDIRCALL_2): Likewise.
29360 (__MATH_REDIRCALL_INTERNAL): Likewise.
29361 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29362 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29363 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29364
29365 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29366 Remove file.
29367 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29368 Likewise.
29369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29370 Likewise.
29371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29372 Likewise.
29373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29374 Likewise.
29375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29376 Likewise.
29377 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29378 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29379 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29380 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29381 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29382 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29383 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29384 w_sqrtf_compat-ppc32.
29385
29386 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29387
29388 * math/math.h [defined __cplusplus] (issignaling): In the long
29389 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29390 is not defined. Call __issignaling, otherwise.
29391
29392 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29393
29394 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29395 syscall definitions and replace __builtin_expect with __glibc_likely.
29396 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29397 syscall.
29398 (SYSCALL_CANCELLABLE): Removedefinition
29399 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29400 definition.
29401 (PSEUDO_END): Likewise.
29402 [IS_IN (libpthread)] (CENABLE): Likewise.
29403 [IS_IN (libpthread)] (CDISABLE): Likewise.
29404 [IS_IN (libc)] (CENABLE): Likewise.
29405 [IS_IN (libc)] (CENABLE): Likewise.
29406 [IS_IN (librt)] (CDISABLE): Likewise.
29407 [IS_IN (librt)] (CDISABLE): Likewise.
29408 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29409 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29410 definition.
29411 (PSEUDO_END): Likewise.
29412 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29413 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29414 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29415 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29416 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29417 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29418 (CENABLE): Likewise.
29419 (CDISABLE): Likewise.
29420 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29421 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29422 defintion.
29423 (PSEUDO_END): Likewise.
29424 [IS_IN (libpthread)] (CENABLE): Likewise.
29425 [IS_IN (libpthread)] (CDISABLE): Likewise.
29426 [IS_IN (libc)] (CENABLE): Likewise.
29427 [IS_IN (libc)] (CENABLE): Likewise.
29428 [IS_IN (librt)] (CDISABLE): Likewise.
29429 [IS_IN (librt)] (CDISABLE): Likewise.
29430 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29431 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29432 definition.
29433 (PSEUDO_END): Likewise.
29434 [IS_IN (libpthread)] (CENABLE): Likewise.
29435 [IS_IN (libpthread)] (CDISABLE): Likewise.
29436 [IS_IN (libc)] (CENABLE): Likewise.
29437 [IS_IN (libc)] (CENABLE): Likewise.
29438 [IS_IN (librt)] (CDISABLE): Likewise.
29439 [IS_IN (librt)] (CDISABLE): Likewise.
29440 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29441 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29442 definition.
29443 (PSEUDO_END): Likewise.
29444 [IS_IN (libpthread)] (CENABLE): Likewise.
29445 [IS_IN (libpthread)] (CDISABLE): Likewise.
29446 [IS_IN (libc)] (CENABLE): Likewise.
29447 [IS_IN (libc)] (CENABLE): Likewise.
29448 [IS_IN (librt)] (CDISABLE): Likewise.
29449 [IS_IN (librt)] (CDISABLE): Likewise.
29450 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29451 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29452 definition.
29453 (PSEUDO_END): Likewise.
29454 [IS_IN (libpthread)] (CENABLE): Likewise.
29455 [IS_IN (libpthread)] (CDISABLE): Likewise.
29456 [IS_IN (libc)] (CENABLE): Likewise.
29457 [IS_IN (libc)] (CENABLE): Likewise.
29458 [IS_IN (librt)] (CDISABLE): Likewise.
29459 [IS_IN (librt)] (CDISABLE): Likewise.
29460 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29461 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29462 definition.
29463 (PSEUDO_END): Likewise.
29464 [IS_IN (libpthread)] (CENABLE): Likewise.
29465 [IS_IN (libpthread)] (CDISABLE): Likewise.
29466 [IS_IN (libc)] (CENABLE): Likewise.
29467 [IS_IN (libc)] (CENABLE): Likewise.
29468 [IS_IN (librt)] (CDISABLE): Likewise.
29469 [IS_IN (librt)] (CDISABLE): Likewise.
29470 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29471 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29472 definition.
29473 (PSEUDO_END): Likewise.
29474 [IS_IN (libpthread)] (CENABLE): Likewise.
29475 [IS_IN (libpthread)] (CDISABLE): Likewise.
29476 [IS_IN (libc)] (CENABLE): Likewise.
29477 [IS_IN (libc)] (CENABLE): Likewise.
29478 [IS_IN (librt)] (CDISABLE): Likewise.
29479 [IS_IN (librt)] (CDISABLE): Likewise.
29480 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29481 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29482 Remove definition.
29483 (PSEUDO_END): Likewise.
29484 [IS_IN (libpthread)] (CENABLE): Likewise.
29485 [IS_IN (libpthread)] (CDISABLE): Likewise.
29486 [IS_IN (libc)] (CENABLE): Likewise.
29487 [IS_IN (libc)] (CENABLE): Likewise.
29488 [IS_IN (librt)] (CDISABLE): Likewise.
29489 [IS_IN (librt)] (CDISABLE): Likewise.
29490 (SINGLE_THREAD_P): Likewise.
29491 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29492 definition.
29493 (PSEUDO_END): Likewise.
29494 [IS_IN (libpthread)] (CENABLE): Likewise.
29495 [IS_IN (libpthread)] (CDISABLE): Likewise.
29496 [IS_IN (libc)] (CENABLE): Likewise.
29497 [IS_IN (libc)] (CENABLE): Likewise.
29498 [IS_IN (librt)] (CDISABLE): Likewise.
29499 [IS_IN (librt)] (CDISABLE): Likewise.
29500 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29501 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29502 definition.
29503 (PSEUDO_END): Likewise.
29504 [IS_IN (libpthread)] (CENABLE): Likewise.
29505 [IS_IN (libpthread)] (CDISABLE): Likewise.
29506 [IS_IN (libc)] (CENABLE): Likewise.
29507 [IS_IN (libc)] (CENABLE): Likewise.
29508 [IS_IN (librt)] (CDISABLE): Likewise.
29509 [IS_IN (librt)] (CDISABLE): Likewise.
29510 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29511 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29512 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29513 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29514 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29515 definition.
29516 (PSEUDO_END): Likewise.
29517 [IS_IN (libpthread)] (CENABLE): Likewise.
29518 [IS_IN (libpthread)] (CDISABLE): Likewise.
29519 [IS_IN (libc)] (CENABLE): Likewise.
29520 [IS_IN (libc)] (CENABLE): Likewise.
29521 [IS_IN (librt)] (CDISABLE): Likewise.
29522 [IS_IN (librt)] (CDISABLE): Likewise.
29523 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29524 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29525 definition.
29526 (PSEUDO_END): Likewise.
29527 [IS_IN (libpthread)] (CENABLE): Likewise.
29528 [IS_IN (libpthread)] (CDISABLE): Likewise.
29529 [IS_IN (libc)] (CENABLE): Likewise.
29530 [IS_IN (libc)] (CENABLE): Likewise.
29531 [IS_IN (librt)] (CDISABLE): Likewise.
29532 [IS_IN (librt)] (CDISABLE): Likewise.
29533 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29534 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29535 definition.
29536 (PSEUDO_END): Likewise.
29537 [IS_IN (libpthread)] (CENABLE): Likewise.
29538 [IS_IN (libpthread)] (CDISABLE): Likewise.
29539 [IS_IN (libc)] (CENABLE): Likewise.
29540 [IS_IN (libc)] (CENABLE): Likewise.
29541 [IS_IN (librt)] (CDISABLE): Likewise.
29542 [IS_IN (librt)] (CDISABLE): Likewise.
29543 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29544 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29545 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29546 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29547 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29548 definition.
29549 (PSEUDO_END): Likewise.
29550 [IS_IN (libpthread)] (CENABLE): Likewise.
29551 [IS_IN (libpthread)] (CDISABLE): Likewise.
29552 [IS_IN (libc)] (CENABLE): Likewise.
29553 [IS_IN (libc)] (CENABLE): Likewise.
29554 [IS_IN (librt)] (CDISABLE): Likewise.
29555 [IS_IN (librt)] (CDISABLE): Likewise.
29556 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29557 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29558 definition.
29559 (PSEUDO_END): Likewise.
29560 [IS_IN (libpthread)] (CENABLE): Likewise.
29561 [IS_IN (libpthread)] (CDISABLE): Likewise.
29562 [IS_IN (libc)] (CENABLE): Likewise.
29563 [IS_IN (libc)] (CENABLE): Likewise.
29564 [IS_IN (librt)] (CDISABLE): Likewise.
29565 [IS_IN (librt)] (CDISABLE): Likewise.
29566 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29567
29568 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29569
29570 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29571
29572 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29573
29574 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29575
29576 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29577
29578 [BZ #21982]
29579 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29580 middle and outer with size_t instead of int. Repleace %d and
29581 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29582 "MAX (outer, nchars - 64)" to support unsigned outer and
29583 nchars. Also exit loop when outer == 0.
29584
29585 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29586
29587 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29588 * include/signal.h (__sigsuspend_nocancel): Likewise.
29589 * include/time.h (__nanosleep_nocancel): Likewise.
29590 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29591 * login/utmp_file.c: Include non cancellable syscall header.
29592 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29593 prototype.
29594
29595 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29596
29597 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29598 .byte sequences with AVX512F instructions.
29599 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29600 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29601 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29602 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29603 Likewise.
29604 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29605 Likewise.
29606
29607 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29608 Steve Ellcey <sellcey@cavium.com>
29609
29610 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29611 Use PTR_REG macro in cmp instruction.
29612
29613 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29614
29615 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29616 Change the return type of the ifunc resolver to match the return
29617 type of the target function.
29618
29619 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29620
29621 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29622 (preadv64): Likewise.
29623 (pwrite64(: Likewise.
29624 (pwritev64): Likewise.
29625
29626 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29627 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29628 (LOAD_ARGS_0): Likewise.
29629 (LOAD_ARGS_1): Likewise.
29630 (LOAD_ARGS_2): Likewise.
29631 (LOAD_ARGS_3): Likewise.
29632 (LOAD_ARGS_4): Likewise.
29633 (LOAD_ARGS_5): Likewise.
29634 (LOAD_ARGS_6): Likewise.
29635 (LOAD_REGS_0): Likewise.
29636 (LOAD_REGS_1): Likewise.
29637 (LOAD_REGS_2): Likewise.
29638 (LOAD_REGS_3): Likewise.
29639 (LOAD_REGS_4): Likewise.
29640 (LOAD_REGS_5): Likewise.
29641 (LOAD_REGS_6): Likewise.
29642 (ASM_ARGS_0): Likewise.
29643 (ASM_ARGS_1): Likewise.
29644 (ASM_ARGS_2): Likewise.
29645 (ASM_ARGS_3): Likewise.
29646 (ASM_ARGS_4): Likewise.
29647 (ASM_ARGS_5): Likewise.
29648 (ASM_ARGS_6): Likewise.
29649 (LOAD_ARGS_TYPES_1): Likewise.
29650 (LOAD_ARGS_TYPES_2): Likewise.
29651 (LOAD_ARGS_TYPES_3): Likewise.
29652 (LOAD_ARGS_TYPES_4): Likewise.
29653 (LOAD_ARGS_TYPES_5): Likewise.
29654 (LOAD_ARGS_TYPES_6): Likewise.
29655 (LOAD_REGS_TYPES_1): Likewise.
29656 (LOAD_REGS_TYPES_2): Likewise.
29657 (LOAD_REGS_TYPES_3): Likewise.
29658 (LOAD_REGS_TYPES_4): Likewise.
29659 (LOAD_REGS_TYPES_5): Likewise.
29660 (LOAD_REGS_TYPES_6): Likewise.
29661 (TYPEFY): New define.
29662 (ARGIFY): Likewise.
29663 (internal_syscall0): Likewise.
29664 (internal_syscall1): Likewise.
29665 (internal_syscall2): Likewise.
29666 (internal_syscall3): Likewise.
29667 (internal_syscall4): Likewise.
29668 (internal_syscall5): Likewise.
29669 (internal_syscall6): Likewise.
29670 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29671 (INTERNAL_SYSCALL_NCS): Remove define.
29672 (internal_syscall1): Add define.
29673
29674 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29675
29676 * math/w_remainder_compat.c: Remove duplicate inclusion of
29677 math-svid-compat.h.
29678 * math/w_remainderf_compat.c: Likewise.
29679 * math/w_remainderl_compat.c: Likewise.
29680
29681 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29682
29683 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29684
29685 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29686
29687 [BZ #21684]
29688 * math/tgmath.h (__floating_type): Simplify definitions.
29689 (__real_integer_type): New macro.
29690 (__complex_integer_type): Likewise.
29691 (__expr_is_real): Likewise.
29692 (__tgmath_real_type_sub): Update comment to describe handling of
29693 complex types.
29694 (__tgmath_complex_type_sub): New macro.
29695 (__tgmath_complex_type): Likewise.
29696 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29697 (__TGMATH_CF128): Use __expr_is_real.
29698 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29699 __expr_is_real.
29700 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29701 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29702 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29703 integer types.
29704
29705 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29706
29707 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29708 macro.
29709 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29710 alias.
29711 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29712 Likewise.
29713
29714 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29715 nanosleep_not_cancel with __nanosleep_nocancel.
29716 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29717 (__nanosleep_nocancel): New macro.
29718 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29719 function.
29720 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29721 macro.
29722 (__nanosleep_nocancel): New prototype.
29723
29724 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29725 pause_not_cancel with __pause_nocancel.
29726 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29727 (__pause_nocancel): New macro.
29728 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29729 macro.
29730 (__pause_nocancel): New prototype.
29731 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29732
29733 2017-08-22 Martin Sebor <msebor@redhat.com>
29734
29735 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29736 to return a pointer to the same type as the target function.
29737
29738 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29739
29740 [BZ #18822]
29741 [BZ #21986]
29742 * include/printf.h (__printf_fphex): Add attribute_hidden.
29743 (__guess_grouping): New prototype.
29744 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29745 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29746 libc_hidden_proto and libc_hidden_def.
29747 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29748 (__vstrfmon_l): Remove the third argument passed to
29749 __guess_grouping.
29750
29751 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29752
29753 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29754 definition for issignaling that does not rely on __MATH_TG,
29755 since __MATH_TG uses __builtin_types_compatible_p, which is only
29756 available in C mode.
29757 (CFLAGS-test-math-issignaling.cc): New variable.
29758 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29759 * math/test-math-issignaling.cc: New test for C++ implementation
29760 of type-generic issignaling.
29761 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29762 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29763 options of test-math-issignaling on powerpc64le.
29764
29765 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29766
29767 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29768 building libc.a.
29769 (hidden_proto): Likewise.
29770 (hidden_tls_proto): Likewise.
29771 (__hidden_proto): Likewise.
29772
29773 2017-08-22 Florian Weimer <fweimer@redhat.com>
29774
29775 math: Statically link tests of internal functionality.
29776 * math/Makefile (tests): Remove atest-exp, atest-sincos,
29777 atest-exp2.
29778 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
29779 (gmp-objs): Remove assignment.
29780 (atest-exp, atest-sincos, atest-exp2): Remove targets.
29781
29782 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29783
29784 [BZ #21987]
29785 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
29786 and copy to ...
29787 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
29788 ... here.
29789 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
29790 ... and here.
29791
29792 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
29793 variable definitions above inclusion of ../Rules.
29794
29795 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29796
29797 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
29798 case calling __builtin_unreachable.
29799
29800 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29801
29802 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
29803 __waitpid_nocancel.
29804 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
29805 (__waitpid_nocancel): New macro.
29806 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
29807 macro.
29808 (__waitpid_nocancel): Replace macro with a function.
29809 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
29810 function.
29811
29812 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
29813 __fcntl_nocancel.
29814 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
29815 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
29816
29817 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
29818 __writev_nocancel_nostatus.
29819 (write_call_graph): Likewise.
29820 (write_bb_counts): Likewise.
29821 * resolv/herror.c (herror): Likewise.
29822 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
29823 macro.
29824 (__writev_nocancel_nostatus): New macro.
29825 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
29826 Remove macro.
29827 (__writev_nocancel_nostatus): New function.
29828
29829 2017-08-21 Joseph Myers <joseph@codesourcery.com>
29830
29831 Revert:
29832 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
29833
29834 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29835 building libc.a.
29836 (hidden_proto): Likewise.
29837 (hidden_tls_proto): Likewise.
29838 (__hidden_proto): Likewise.
29839
29840 [BZ #21973]
29841 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
29842 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
29843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
29844 Likewise.
29845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
29846 Likewise.
29847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
29848 Likewise.
29849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
29850 Likewise.
29851 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
29852 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
29853 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
29854 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
29855 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
29856 GLIBC_2.0 sqrtl symbol.
29857
29858 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
29859 [__USE_MISC] (_LIB_VERSION): Likewise.
29860 [__USE_MISC] (struct exception): Likewise.
29861 [__USE_MISC] (matherr): Likewise.
29862 [__USE_MISC] (DOMAIN): Likewise.
29863 [__USE_MISC] (SING): Likewise.
29864 [__USE_MISC] (OVERFLOW): Likewise.
29865 [__USE_MISC] (UNDERFLOW): Likewise.
29866 [__USE_MISC] (TLOSS): Likewise.
29867 [__USE_MISC] (PLOSS): Likewise.
29868 [__USE_MISC] (HUGE): Likewise.
29869 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
29870 * math/math-svid-compat.h: New file.
29871 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
29872 and matherrl.
29873 * include/math.h [!_ISOMAC] (__matherr): Remove.
29874 * manual/arith.texi (FP Exceptions): Do not document matherr.
29875 * math/Makefile (tests): Change test-matherr to test-matherr-3.
29876 (tests-internal): New variable.
29877 (install-lib): Do not add libieee.a.
29878 (non-lib.a): Likewise.
29879 (extra-objs): Do not add libieee.a and ieee-math.o.
29880 (CPPFLAGS-s_lib_version.c): Remove variable.
29881 ($(objpfx)libieee.a): Remove rule.
29882 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
29883 * math/ieee-math.c: Remove.
29884 * math/libm-test-support.c (matherr): Remove.
29885 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
29886 and license notices. Include <math-svid-compat.h> and
29887 <shlib-compat.h>.
29888 (matherr): Undefine as macro. Use compat_symbol_reference.
29889 (_LIB_VERSION): Likewise.
29890 * math/test-matherr-2.c: New file.
29891 * math/test-matherr-3.c: Likewise.
29892 * sysdeps/generic/math_private.h (__kernel_standard): Remove
29893 declaration.
29894 (__kernel_standard_f): Likewise.
29895 (__kernel_standard_l): Likewise.
29896 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
29897 <math_private.h>. Include <math-svid-compat.h>.
29898 (_LIB_VERSION): Undefine as macro.
29899 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
29900 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
29901 [LIBM_SVID_COMPAT], use compat_symbol.
29902 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
29903 <math_private.h>. Include <math-svid-compat.h>.
29904 (matherr): Undefine as macro.
29905 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
29906 compat_symbol.
29907 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
29908 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
29909 compat_symbol_reference.
29910 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
29911 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
29912 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
29913 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
29914 (MATHERR_D): Remove declaration.
29915 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
29916 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
29917 [LIBM_BUILD] (pmatherrf): Likewise.
29918 [LIBM_BUILD] (pmatherr): Likewise.
29919 [LIBM_BUILD] (pmatherrl): Likewise.
29920 (DOMAIN): Likewise.
29921 (SING): Likewise.
29922 (OVERFLOW): Likewise.
29923 (UNDERFLOW): Likewise.
29924 (TLOSS): Likewise.
29925 (PLOSS): Likewise.
29926 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
29927 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
29928 compat_symbol.
29929 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
29930 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
29931 compat_symbol.
29932 * math/lgamma-compat.h: Include <math-svid-compat.h>.
29933 * math/w_acos_compat.c: Likewise.
29934 * math/w_acosf_compat.c: Likewise.
29935 * math/w_acosh_compat.c: Likewise.
29936 * math/w_acoshf_compat.c: Likewise.
29937 * math/w_acoshl_compat.c: Likewise.
29938 * math/w_acosl_compat.c: Likewise.
29939 * math/w_asin_compat.c: Likewise.
29940 * math/w_asinf_compat.c: Likewise.
29941 * math/w_asinl_compat.c: Likewise.
29942 * math/w_atan2_compat.c: Likewise.
29943 * math/w_atan2f_compat.c: Likewise.
29944 * math/w_atan2l_compat.c: Likewise.
29945 * math/w_atanh_compat.c: Likewise.
29946 * math/w_atanhf_compat.c: Likewise.
29947 * math/w_atanhl_compat.c: Likewise.
29948 * math/w_cosh_compat.c: Likewise.
29949 * math/w_coshf_compat.c: Likewise.
29950 * math/w_coshl_compat.c: Likewise.
29951 * math/w_exp10_compat.c: Likewise.
29952 * math/w_exp10f_compat.c: Likewise.
29953 * math/w_exp10l_compat.c: Likewise.
29954 * math/w_exp2_compat.c: Likewise.
29955 * math/w_exp2f_compat.c: Likewise.
29956 * math/w_exp2l_compat.c: Likewise.
29957 * math/w_fmod_compat.c: Likewise.
29958 * math/w_fmodf_compat.c: Likewise.
29959 * math/w_fmodl_compat.c: Likewise.
29960 * math/w_hypot_compat.c: Likewise.
29961 * math/w_hypotf_compat.c: Likewise.
29962 * math/w_hypotl_compat.c: Likewise.
29963 * math/w_j0_compat.c: Likewise.
29964 * math/w_j0f_compat.c: Likewise.
29965 * math/w_j0l_compat.c: Likewise.
29966 * math/w_j1_compat.c: Likewise.
29967 * math/w_j1f_compat.c: Likewise.
29968 * math/w_j1l_compat.c: Likewise.
29969 * math/w_jn_compat.c: Likewise.
29970 * math/w_jnf_compat.c: Likewise.
29971 * math/w_jnl_compat.c: Likewise.
29972 * math/w_lgamma_main.c: Likewise.
29973 * math/w_lgamma_r_compat.c: Likewise.
29974 * math/w_lgammaf_main.c: Likewise.
29975 * math/w_lgammaf_r_compat.c: Likewise.
29976 * math/w_lgammal_main.c: Likewise.
29977 * math/w_lgammal_r_compat.c: Likewise.
29978 * math/w_log10_compat.c: Likewise.
29979 * math/w_log10f_compat.c: Likewise.
29980 * math/w_log10l_compat.c: Likewise.
29981 * math/w_log2_compat.c: Likewise.
29982 * math/w_log2f_compat.c: Likewise.
29983 * math/w_log2l_compat.c: Likewise.
29984 * math/w_log_compat.c: Likewise.
29985 * math/w_logf_compat.c: Likewise.
29986 * math/w_logl_compat.c: Likewise.
29987 * math/w_pow_compat.c: Likewise.
29988 * math/w_powf_compat.c: Likewise.
29989 * math/w_powl_compat.c: Likewise.
29990 * math/w_remainder_compat.c: Likewise.
29991 * math/w_remainderf_compat.c: Likewise.
29992 * math/w_remainderl_compat.c: Likewise.
29993 * math/w_scalb_compat.c: Likewise.
29994 * math/w_scalbf_compat.c: Likewise.
29995 * math/w_scalbl_compat.c: Likewise.
29996 * math/w_sinh_compat.c: Likewise.
29997 * math/w_sinhf_compat.c: Likewise.
29998 * math/w_sinhl_compat.c: Likewise.
29999 * math/w_sqrt_compat.c: Likewise.
30000 * math/w_sqrtf_compat.c: Likewise.
30001 * math/w_sqrtl_compat.c: Likewise.
30002 * math/w_tgamma_compat.c: Likewise.
30003 * math/w_tgammaf_compat.c: Likewise.
30004 * math/w_tgammal_compat.c: Likewise.
30005 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30006 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30007 * sysdeps/ieee754/k_standard.c: Likewise.
30008 * sysdeps/ieee754/k_standardf.c: Likewise.
30009 * sysdeps/ieee754/k_standardl.c: Likewise.
30010 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30011 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30012 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30013 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30014 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30015 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30016 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30017 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30018 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30020 Likewise.
30021 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30022 Likewise.
30023 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30024 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30025 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30026 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30027
30028 2017-08-21 Florian Weimer <fweimer@redhat.com>
30029
30030 [BZ #21864]
30031 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30032 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30033 Move before inclusion of ../Rules.
30034
30035 2017-08-21 Florian Weimer <fweimer@redhat.com>
30036
30037 [BZ #21972]
30038 * assert/assert.h (assert): Use static_cast (bool) for C++.
30039 Use the ternary operator in the warning branch for GNU C.
30040 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30041 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30042 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30043 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30044 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30045
30046 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30047
30048 [BZ #18822]
30049 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30050 (__syscall_clock_gettime): Add attribute_hidden.
30051 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30052 (__start_context): Likewise.
30053
30054 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30055
30056 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30057 building libc.a.
30058 (hidden_proto): Likewise.
30059 (hidden_tls_proto): Likewise.
30060 (__hidden_proto): Likewise.
30061
30062 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30063
30064 * include/libc-symbols.h (attribute_hidden): Enable hidden
30065 visibility in libc.a compiled with PIE.
30066
30067 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30068
30069 [BZ #18822]
30070 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30071 Add attribute_hidden.
30072
30073 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30074
30075 [BZ #21864]
30076 * Makerules (all-nonlib): Add $(others-extras).
30077 * catgets/Makefile (others-extras): New.
30078 * elf/Makefile (others-extras): Likewise.
30079 * nss/Makefile (others-extras): Likewise.
30080
30081 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30082
30083 [BZ #18822]
30084 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30085 * elf/dl-open.c: Include <libc-internal.h>.
30086 (__libc_multiple_libcs): Removed.
30087 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30088 <hp-timing.h>.
30089 * include/libc-internal.h (__libc_multiple_libcs): New.
30090 * misc/sbrk.c: Include <libc-internal.h>.
30091 (__libc_multiple_libcs): Removed.
30092
30093 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30094
30095 [BZ #18822]
30096 * grp/initgroups.c (__nss_group_database): Removed.
30097 (__nss_initgroups_database): Likewise.
30098 * nscd/gai.c (__nss_hosts_database): Likewise.
30099 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30100 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30101 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30102 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30103 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30104 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30105 attribute_hidden.
30106 * nss/nsswitch.c (__nss_database_custom): Define only if
30107 USE_NSCD is defined.
30108 (__nss_configure_lookup): Use __nss_database_custom only if
30109 USE_NSCD is defined.
30110 * nss/nsswitch.h (__nss_database_custom): Declare only if
30111 USE_NSCD is defined. Add attribute_hidden.
30112 (__nss_setent): Add attribute_hidden.
30113 (__nss_endent): Likewise.
30114 (__nss_getent_r): Likewise.
30115 (__nss_getent): Likewise.
30116 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30117
30118 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30119
30120 [BZ #18822]
30121 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30122 libc_hidden_proto and libc_hidden_def.
30123
30124 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30125
30126 [BZ #18822]
30127 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30128 Add libc_hidden_proto.
30129 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30130 Add libc_hidden_def.
30131
30132 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30133
30134 [BZ #21974]
30135 * gmon/Makefile (routines): Remove bb_init_func and
30136 bb_exit_func.
30137 (elide-routines.os): Removed.
30138 * gmon/bb_exit_func.c: Likewise.
30139 * gmon/bb_init_func.c: Likewise.
30140 * include/sys/gmon.h (__bb): Likewise.
30141 (__bb_init_func): Likewise.
30142 (__bb_exit_func): Likewise.
30143 * sysdeps/alpha/bb_init_func.S: Likewise.
30144
30145 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30146
30147 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30148 * include/setjmp.h (____longjmp_chk): Here. Add
30149 attribute_hidden.
30150
30151 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30152
30153 [BZ #18822]
30154 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30155 attribute_hidden.
30156 (__strspn_sse2): Likewise.
30157
30158 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30159
30160 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30161 (close_not_cancel_no_status): Likewise.
30162 (__close_nocancel): New macro.
30163 (__close_nocancel_nostatus): Likewise.
30164 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30165 macro.
30166 (close_not_cancel): Likewise.
30167 (close_not_cancel_no_status): Likewise.
30168 (__close_nocancel): New prototype.
30169 (__close_nocancel_nostatus): New function.
30170 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30171 * catgets/open_catalog.c (__open_catalog): Replace
30172 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30173 * gmon/gmon.c (write_gmon): Likewise.
30174 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30175 * intl/loadmsgcat.c (close): Likewise.
30176 * io/ftw.c (open_dir_stream): Likewise.
30177 (ftw_startup): Likewise.
30178 * libio/fileops.c (_IO_file_open): Likewise.
30179 (_IO_file_close_mmap): Likewise.
30180 (_IO_file_close): Likewise.
30181 * libio/iopopen.c (_IO_dup2): Likewise.
30182 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30183 * locale/loadlocale.c (_nl_load_locale): Likewise.
30184 * login/utmp_file.c (pututline_file): Likewise.
30185 (endutent_file): Likewise.
30186 * misc/daemon.c (daemon): Likewise.
30187 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30188 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30189 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30190 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30191 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30192 * nscd/nscd_helper.c (open_socket): Likewise.
30193 (__nscd_open_socket): Likewise.
30194 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30195 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30196 (__nscd_innetgr): Likewise.
30197 * nss/nss_db/db-open.c (internal_setent): Likewise.
30198 * resolv/res-close.c (__res_iclose): Likewise.
30199 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30200 * sysdeps/posix/closedir.c (__closedir): Likewise.
30201 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30202 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30203 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30204 (opendir_tail): Likewise.
30205 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30206 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30207 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30208 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30209 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30210 (gethostid): Likewise.
30211 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30212 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30213 Likewise.
30214 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30215 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30216 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30217 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30218 Likewise.
30219 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30220 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30221 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30222 Likewise.
30223 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30224 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30225 Likewise.
30226 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30227 Likewise.
30228 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30229 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30230 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30231 __close_nocancel.
30232
30233 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30234 (openat_not_cancel_3): Likewise.
30235 (openat64_not_cancel_3): Likewise).
30236 (openat_not_cancel_3): Likewise).
30237 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30238 macro.
30239 (openat_not_cancel_3): Likewise.
30240 (openat64_not_cancel): Likewise.
30241 (openat64_not_cancel_3): Likewise.
30242 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30243 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30244 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30245 __open{64}_nocancel.
30246 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30247 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30248 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30249
30250 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30251
30252 [BZ #18822]
30253 * include/argz.h (__argz_create_sep): New function prototype.
30254 (__argz_append): Likewise.
30255 (__argz_add): Likewise.
30256 (__argz_add_sep): Likewise.
30257 (__argz_delete): Likewise.
30258 (__argz_insert): Likewise.
30259 (__argz_replace): Likewise.
30260 * string/argz.h (__argz_create_sep): Removed.
30261 (__argz_append): Likewise.
30262 (__argz_add): Likewise.
30263 (__argz_add_sep): Likewise.
30264 (__argz_delete): Likewise.
30265 (__argz_insert): Likewise.
30266 (__argz_replace): Likewise.
30267
30268 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30269
30270 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30271 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30272 (GNU_PROPERTY_STACK_SIZE): Likewie.
30273 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30274 (GNU_PROPERTY_LOPROC): Likewise.
30275 (GNU_PROPERTY_HIPROC): Likewise.
30276 (GNU_PROPERTY_LOUSER): Likewise.
30277 (GNU_PROPERTY_HIUSER): Likewise.
30278 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30279 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30280 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30281 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30282 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30283 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30284 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30285 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30286 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30287 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30288 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30289 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30290 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30291 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30292 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30293 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30294 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30295 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30296 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30297 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30298 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30299 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30300 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30301
30302 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30303
30304 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30305 in C++ mode.
30306
30307 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30308
30309 [BZ #21930]
30310 * math/math.h (isinf): Check if in C or C++ mode before using
30311 __builtin_types_compatible_p, since this is a C mode feature.
30312
30313 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30314
30315 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30316 (__write_nocancel): New macro.
30317 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30318 Rewrite as a function prototype.
30319 (write_not_cancel): Remove macro.
30320 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30321 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30322 (write_gmon): Likewise.
30323 * libio/fileops.c (_IO_new_file_write): Likewise.
30324 * login/utmp_file.c (pututline_file): Likewise.
30325 (updwtmp_file): Likewise.
30326 * stdio-common/psiginfo.c (psiginfo): Likewise.
30327 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30328 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30329 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30330 Likewise.
30331 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30332 Likewise.
30333
30334 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30335 (__read_nocancel): New macro.
30336 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30337 __read_nocancel.
30338 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30339 macro.
30340 (__read_nocancel): New prototype.
30341 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30342 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30343 with __read_nocancel.
30344 * intl/loadmsgcat.c (read): Likewise.
30345 * libio/fileops.c (_IO_file_read): Likewise.
30346 * locale/loadlocale.c (_nl_load_locale): Likewise.
30347 * login/utmp_file.c (getutent_r_file): Likewise.
30348 (internal_getut_r): Likewise.
30349 (getutline_r_file): Likewise.
30350 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30351 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30352 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30353 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30354 Likewise.
30355 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30356 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30357 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30358 Likewise.
30359 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30360 Likewise.
30361 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30362 Likewise.
30363 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30364 Likewise.
30365 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30366
30367 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30368
30369 [BZ #21966]
30370 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30371 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30372 usable.
30373
30374 2017-08-17 DJ Delorie <dj@redhat.com>
30375
30376 * bug17079.c: Update to new test harness.
30377 * test-digits-dots.c: Likewise.
30378 * test-netdb.c: Likewise.
30379 * tst-field.c: Likewise.
30380 * tst-nss-getpwent.c: Likewise.
30381 * tst-nss-static.c: Likewise.
30382 * tst-nss-test1.c: Likewise.
30383 * tst-nss-test2.c: Likewise.
30384 * tst-nss-test3.c: Likewise.
30385 * tst-nss-test4.c: Likewise.
30386 * tst-nss-test5.c: Likewise.
30387
30388 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30389
30390 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30391 (open_not_cancel_2): Likewise.
30392 (open_nocancel): New macro.
30393 (open64_nocancel): Likewise.
30394 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30395 (open_not_cancel_2): Likewise.
30396 (__open_nocancel): New prototype.
30397 (__open64_nocancel): Likewise.
30398 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30399 __open_nocancel.
30400 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30401 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30402 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30403 with __open_nocancel.
30404 * csu/check_fds.c (check_one_fd): Likewise.
30405 * gmon/gmon.c (write_gmon): Likewise.
30406 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30407 * intl/loadmsgcat.c (open): Likewise.
30408 * libio/fileops.c (_IO_file_open): Likewise.
30409 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30410 * locale/loadlocale.c (_nl_load_locale): Likewise.
30411 * login/utmp_file.c (setutent_file): Likewise.
30412 * misc/daemon.c (daemon): Likewise.
30413 * nss/nss_db/db-open.c (internal_setent): Likewise.
30414 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30415 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30416 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30417 (__opendir): Likewise.
30418 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30419 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30420 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30421 (gethostid): Likewise.
30422 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30423 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30424 Likewise.
30425 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30426 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30427 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30428 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30429 Likewise.
30430 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30431 Likewise.
30432 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30433 Likewise.
30434 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30435 Likewise.
30436 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30437 Likewise.
30438 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30439 Likewise.
30440 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30441 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30442
30443 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30444
30445 * benchtests/bench-skeleton.c (main): Add support for
30446 latency benchmarking.
30447 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30448
30449 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30450
30451 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30452 the startup object.
30453
30454 2017-08-17 Florian Weimer <fweimer@redhat.com>
30455
30456 * include/sys/socket.h (__opensock): Remove internal_function.
30457 * socket/opensock.c (__opensock): Likewise.
30458 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30459
30460 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30461
30462 [BZ #21944]
30463 * signal/bits/types/__sigval_t.h: New file.
30464 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30465 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30466 and define sigval_t using __sigval_t.
30467 * include/bits/types/__sigval_t.h: New file.
30468 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30469 instead of <bits/types/__sigval_t.h>.
30470 (struct sigevent): Use __sigval_t instead of sigval_t.
30471 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30472 instead of <bits/types/__sigval_t.h>.
30473 (siginfo_t): Use __sigval_t instead of sigval_t.
30474 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30475 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30476 (struct sigevent): Use __sigval_t instead of sigval_t.
30477 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30478 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30479 (siginfo_t): Use __sigval_t instead of sigval_t.
30480 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30481
30482 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30483
30484 * NEWS: Remove "[Add new features here]" for 2.27.
30485
30486 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30487
30488 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30489 libc.so.
30490
30491 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30492
30493 * NEWS: Mention x86-64 FMA optimization.
30494
30495 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30496
30497 [BZ #21912]
30498 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30499 Add e_expf-fma.
30500 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30501 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30502 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30503
30504 2017-08-16 Andreas Schwab <schwab@suse.de>
30505
30506 [BZ #16750]
30507 CVE-2009-5064
30508 * elf/ldd.bash.in: Never run file directly.
30509
30510 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30511
30512 [BZ #21955]
30513 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30514 (L(SP_INF_0)): Likewise.
30515
30516 2017-08-15 Florian Weimer <fweimer@redhat.com>
30517
30518 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30519 run-built-tests.
30520
30521 2017-08-15 Florian Weimer <fweimer@redhat.com>
30522
30523 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30524 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30525 BROKEN_THREAD_SIGNALS code.
30526 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30527 request_list): Remove caller_pid member used for
30528 BROKEN_THREAD_SIGNALS.
30529 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30530 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30531 Remove BROKEN_THREAD_SIGNALS support.
30532 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30533 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30534
30535 2017-08-15 Florian Weimer <fweimer@redhat.com>
30536
30537 * gmon/Makefile (tests): Add tst-gmon.
30538 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30539 Set.
30540 (tests-special): Add tst-gmon-prof.out.
30541 (tst-gmon.out): Depend on clean-tst-gmon-data.
30542 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30543 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30544 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30545 startup object.
30546 * aclocal.m4 (GPROF): Set and substitute.
30547 * config.amke.in (GPROF): Set.
30548 * configure: Regenerate.
30549
30550 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30551
30552 * elf/elf.h A (NT_PPC_TAR): New macro.
30553 (NT_PPC_PPR): Likewise.
30554 (NT_PPC_DSCR): Likewise.
30555 (NT_PPC_EBB): Likewise.
30556 (NT_PPC_PMU): Likewise.
30557 (NT_PPC_TM_CGPR): Likewise.
30558 (NT_PPC_TM_CFPR): Likewise.
30559 (NT_PPC_TM_CVMX): Likewise.
30560 (NT_PPC_TM_CVSX): Likewise.
30561 (NT_PPC_TM_SPR): Likewise.
30562 (NT_PPC_TM_CTAR): Likewise.
30563 (NT_PPC_TM_CPPR): Likewise.
30564 (NT_PPC_TM_CDSCR): Likewise.
30565
30566 2017-08-15 Florian Weimer <fweimer@redhat.com>
30567
30568 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30569 regparm (2) instead of internal_function.
30570 (_MCOUNT_DECL): Adjust.
30571
30572 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30573
30574 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30575 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30576
30577 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30578
30579 * conform/data/sys/wait.h-data (si_value): Do not expect for
30580 XPG42.
30581
30582 2017-08-14 Florian Weimer <fweimer@redhat.com>
30583
30584 [BZ #21962]
30585 NSS: Create stubs for accidentally exported lookup functions.
30586 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30587 Remove declaration.
30588 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30589 (ether_hostton): Call __nss_ethers_lookup2 instead.
30590 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30591 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30592 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30593 (setup): Call __nss_netgroup_lookup2 instead.
30594 * nss/Makefile (routines): Add compat-lookup.
30595 * nss/Versions (GLIBC_2.27): Add symbol version.
30596 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30597 (DB_COMPAT_FCT): Remove.
30598 * nss/compat-lookup.c: New file.
30599 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30600 from databases.def.
30601 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30602 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30603 (netname2user): Call __nss_publickey_lookup2 instead.
30604 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30605 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30606 instead.
30607
30608 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30609 Sergei Trofimovich <slyfox@inbox.ru>
30610
30611 [BZ #21908]
30612 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30613 Rename to MMAP2_PAGE_UNIT.
30614 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30615 __OFF_T_MATCHES_OFF64_T is not defined.
30616 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30617 uint64_t.
30618 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30619 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30620
30621 2017-08-14 Florian Weimer <fweimer@redhat.com>
30622
30623 i386: Do not set internal_function.
30624 * config.h.in (USE_REGPARMS, internal_function): Remove.
30625 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30626 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30627
30628 2017-08-14 Florian Weimer <fweimer@redhat.com>
30629
30630 * elf/dl-init.c (_dl_init): Remove internal_function.
30631 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30632 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30633
30634 2017-08-14 Florian Weimer <fweimer@redhat.com>
30635
30636 * elf/rtld.c (_dl_start): Remove internal_function.
30637 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30638 _dl_start.
30639
30640 2017-08-14 Florian Weimer <fweimer@redhat.com>
30641
30642 * elf/dl-fini.c (_dl_fini): Remove internal_function
30643 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30644
30645 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30646
30647 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30648 (bit_cpu_SHSTK): Likewise.
30649 (index_cpu_IBT): Likewise.
30650 (index_cpu_SHSTK): Likewise.
30651 (reg_IBT): Likewise.
30652 (reg_SHSTK): Likewise.
30653 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30654 Handle index_cpu_IBT and index_cpu_SHSTK.
30655
30656 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30657
30658 [BZ #19982]
30659 * po/fr.po: Fix spelling mistake.
30660
30661 2017-08-13 Florian Weimer <fweimer@redhat.com>
30662
30663 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30664 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30665 (_dl_catch_error, _dl_receive_error): Likewise.
30666 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30667 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30668 (_dl_deallocate_tls): Likewise.
30669 * include/dlfcn.h (_dl_addr): Likewise.
30670 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30671 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30672 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30673 Likewise.
30674
30675 2017-08-13 Florian Weimer <fweimer@redhat.com>
30676
30677 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30678 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30679 internal_function.
30680 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30681
30682 2017-08-13 Florian Weimer <fweimer@redhat.com>
30683
30684 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30685 internal_function.
30686 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30687 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30688 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30689 internal_function from _dl_make_stack_executable_hook member.
30690 (_dl_make_stack_executable): Remove internal_function.
30691 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30692 Likewise.
30693 * sysdeps/unix/sysv/linux/dl-execstack.c
30694 (_dl_make_stack_executable): Likewise.
30695
30696 2017-08-13 Florian Weimer <fweimer@redhat.com>
30697
30698 * sysdeps/unix/sysv/linux/netlinkaccess.h
30699 (__netlink_assert_response): Remove internal_function.
30700 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30701 (__netlink_assert_response): Likewise.
30702
30703 2017-08-13 Florian Weimer <fweimer@redhat.com>
30704
30705 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30706 internal_function.
30707 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30708
30709 2017-08-13 Florian Weimer <fweimer@redhat.com>
30710
30711 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30712 internal_function.
30713 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30714 * inet/netgroup.h (__internal_setnetgrent)
30715 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30716 * inet/getnetgrent_r.c (__internal_setnetgrent)
30717 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30718 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30719 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30720 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30721 * nss/nsswitch.h (db_lookup_function): Likewise.
30722
30723 2017-08-13 Florian Weimer <fweimer@redhat.com>
30724
30725 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30726 Remove internal_function.
30727 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30728 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30729 message argument on the stack.
30730 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30731 Likeweise.
30732
30733 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30734
30735 Adapt test case data to the changes in the thousands
30736 separators.
30737
30738 [BZ #20756]
30739 * localedata/tst-langinfo.sh: Adapt test case data.
30740 * stdlib/tst-strfmon_l.c: Likewise.
30741 * stdlib/tst-strtod4.c: Likewise.
30742 * stdlib/tst-strtod5i.c: Likewise.
30743
30744 2017-08-11 Florian Weimer <fweimer@redhat.com>
30745
30746 [BZ #21242]
30747 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30748 Suppress pedantic warning resulting from statement expression.
30749 (__ASSERT_FUNCTION): Add missing __extension__.
30750
30751 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30752
30753 * benchtests/bench-memmove-large.c: Print output in JSON
30754 format.
30755 * benchtests/bench-memmove.c: Likewise.
30756
30757 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30758 * benchtests/bench-memchr.c (do_one_test): Likewise.
30759 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30760 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30761 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30762 * benchtests/bench-memmove.c (do_one_test): Likewise.
30763 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30764 * benchtests/bench-memset.c (do_one_test): Likewise.
30765 * benchtests/bench-string.h (test_init): Remove memsets.
30766
30767 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30768
30769 * manual/lang.texi
30770 (Computing the Width of an Integer Data Type): Rename section to
30771 "Width of an Integer Type". Remove inaccurate statement regarding
30772 lack of C language facilities for determining width of integer
30773 types, and reorder content to improve flow and context of
30774 discussion.
30775
30776 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30777
30778 * lang.texi (va_copy): Change standard from ISO to C99.
30779 (__va_copy): Add standard and header annotation.
30780 Update description for clarity of origins and current use.
30781
30782 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30783
30784 [BZ #21941]
30785 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
30786 xssqrtqp requires operands to be in Vector Registers
30787 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
30788 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
30789 (__ieee754_sqrtf128): Likewise.
30790
30791 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
30792
30793 * sysdeps/aarch64/memcmp.S (memcmp):
30794 Rewrite of optimized memcmp.
30795
30796 2017-08-10 Florian Weimer <fweimer@redhat.com>
30797
30798 Introduce ld.so exceptions.
30799 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
30800 (_dl_exception_create, _dl_exception_create_format)
30801 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
30802 (_dl_catch_exception): Declare.
30803 (_dl_catch_error): Update comment.
30804 * elf/dl-error-skeleton.c (struct catch): Replace objname,
30805 errstring, malloced members with exception member.
30806 (_dl_out_of_memory): Remove.
30807 (fatal_error): New function, extracted from _dl_signal_error.
30808 (_dl_signal_exception, _dl_signal_cexception): New functions.
30809 (_dl_signal_error): Call _dl_exception_create to allocate an
30810 exception object.
30811 (_dl_catch_exception): New function, based on _dl_catch_error.
30812 (_dl_catch_error): Implement using _dl_catch_exception.
30813 * elf/dl-exception.c: New file.
30814 * elf/Makefile (dl-routines): Add dl-exception.
30815 (elide-routines.os): Likewise.
30816 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
30817 _dl_exception_create_format, _dl_exception_free.
30818 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
30819 _dl_signal_exception.
30820 * elf/dl-lookup.c (make_string): Remove.
30821 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
30822 _dl_signal_cexception, _dl_exception_free.
30823 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
30824 _dl_signal_exception.
30825 * elf/dl-sym.c (do_sym): Likewise.
30826 * elf/dl-version.c (make_string): Remove.
30827 (match_symbol): Use _dl_exception_create_format,
30828 _dl_signal_cexception, _dl_exception_free.
30829 (_dl_check_map_versions): Likewise.
30830 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
30831 _dl_catch_exception.
30832 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
30833 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
30834 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
30835 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
30836 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
30837 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
30838 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
30839 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
30840 Likewise.
30841 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
30842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
30843 (ld.so): Likewise.
30844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
30845 (ld.so): Likewise.
30846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
30847 Likewise.
30848 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
30849 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
30850 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
30851 Likewise.
30852 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
30853 Likewise.
30854 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
30855
30856 2017-08-10 Florian Weimer <fweimer@redhat.com>
30857
30858 * inet/net-internal.h (__inet6_scopeid_pton): Remove
30859 attribute_hidden, internal_function.
30860 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
30861 internal_function.
30862
30863 2017-08-10 Florian Weimer <fweimer@redhat.com>
30864
30865 * malloc/malloc.c (get_max_fast): Reimplement as an inline
30866 function which calls __builtin_unreachable.
30867
30868 2017-08-10 Mike FABIAN <mfabian@redhat.com>
30869
30870 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
30871 Indian monetary formatting
30872 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
30873 test cases.
30874
30875 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
30876
30877 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
30878 Fix typo in comment.
30879
30880 [BZ #21928]
30881 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
30882 PTRACE_SEIZE_DEVEL): Remove.
30883 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
30884 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30885 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
30886 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
30887 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
30888
30889 2017-08-09 Joseph Myers <joseph@codesourcery.com>
30890
30891 * posix/bits/types.h (__qaddr_t): Remove.
30892
30893 [BZ #21457]
30894 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
30895 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30896 __glibc_reserved1.
30897 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
30898 (ucontext_t): Use __ctx with uc_flags.
30899 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
30900 (__ctxt): Likewise.
30901 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30902 __glibc_reserved1.
30903 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
30904 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30905 __glibc_reserved1.
30906 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
30907 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30908 __glibc_reserved1.
30909 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
30910 macro.
30911 (ucontext_t): Use __ctx with uc_flags.
30912 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
30913 (ucontext_t): Use __ctx with uc_flags.
30914 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
30915 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
30916 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
30917 (ucontext_t): Use __ctx with uc_flags.
30918 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
30919 undefine further down.
30920 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
30921 __glibc_reserved1.
30922 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
30923 undefine further down.
30924 (ucontext_t): Use __ctx with uc_flags.
30925 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
30926 undefine further down.
30927 (ucontext_t): Use __ctx with uc_flags.
30928 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
30929 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
30930 Rename uc_pad to __glibc_reserved1.
30931 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
30932 undefine further down.
30933 (ucontext_t): Use __ctx with uc_flags.
30934 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
30935 further down.
30936 (ucontext_t): Use __ctx with uc_flags.
30937 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
30938 __ctx with uc_flags.
30939 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
30940 (ucontext_t): Use __ctx with uc_flags.
30941 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
30942 __ctx with uc_flags.
30943
30944 2017-08-09 Florian Weimer <fweimer@redhat.com>
30945
30946 [BZ #21932]
30947 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
30948 before early return.
30949
30950 2017-08-09 Andreas Schwab <schwab@suse.de>
30951
30952 [BZ #21041]
30953 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
30954 renamed alias.
30955
30956 [BZ #21041]
30957 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
30958 tst-compat-forwarder.
30959 (modules-names): Add tst-compat-forwarder-mod.
30960 ($(objpfx)tst-compat-forwarder): Depend on
30961 $(objpfx)tst-compat-forwarder-mod.so.
30962 * nptl/tst-compat-forwarder.c: New file.
30963 * nptl/tst-compat-forwarder-mod.c: New file.
30964
30965 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
30966
30967 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
30968 comments.
30969
30970 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
30971 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
30972 memcpy_falkor.
30973 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
30974 Bump.
30975 (__libc_ifunc_impl_list): Add __memcpy_falkor.
30976 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
30977 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
30978 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30979 Add falkor.
30980 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
30981 New macro.
30982
30983 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30984
30985 [BZ #759]
30986 * manual/setjmp.texi (getcontex): Document uc_stack value
30987 compatibility differences.
30988
30989 2017-08-08 Joseph Myers <joseph@codesourcery.com>
30990
30991 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
30992 (old_malloc_hook): Likewise.
30993 (old_memalign_hook): Likewise.
30994 (old_realloc_hook): Likewise.
30995 (struct hdr): Likewise.
30996 (flood): Likewise.
30997 (freehook): Likewise.
30998 (mallochook): Likewise.
30999 (memalignhook): Likewise.
31000 (reallochook): Likewise.
31001 (mprobe): Likewise.
31002 * malloc/mtrace.c (mallwatch): Likewise.
31003 (tr_old_free_hook): Likewise.
31004 (tr_old_malloc_hook): Likewise.
31005 (tr_old_realloc_hook): Likewise.
31006 (tr_old_memalign_hook): Likewise.
31007 (tr_where): Likewise.
31008 (lock_and_info): Likewise.
31009 (tr_freehook): Likewise.
31010 (tr_mallochook): Likewise.
31011 (tr_reallochook): Likewise.
31012 (tr_memalignhook): Likewise.
31013 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31014 * misc/mmap.c (__mmap): Likewise.
31015 * misc/mmap64.c (__mmap64): Likewise.
31016 * misc/mprotect.c (__mprotect): Likewise.
31017 * misc/msync.c (msync): Likewise.
31018 * misc/munmap.c (__munmap): Likewise.
31019 * posix/posix_madvise.c (posix_madvise): Likewise.
31020 * socket/send.c (__send): Likewise.
31021 * socket/sendto.c (__sendto): Likewise.
31022 * socket/setsockopt.c (__setsockopt): Likewise.
31023 * string/memcmp.c (__ptr_t): Remove macro.
31024 (MEMCMP): Use void * instead of ptr_t.
31025 * string/memrchr.c (__ptr_t): Remove macro.
31026 (__memrchr): Use void * instead of ptr_t.
31027 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31028 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31029 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31030 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31031 * sysdeps/mach/msync.c (msync): Likewise.
31032 * sysdeps/mach/munmap.c (__munmap): Likewise.
31033 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31034 Likewise.
31035 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31036 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31037 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31038 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31039 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31040 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31041 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31042 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31043 Likewise.
31044 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31045 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31046 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31047 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31048 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31049 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31050 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31051 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31052 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31053 Likewise.
31054 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31055 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31056 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31057 (MEMCMP): Use void * instead of ptr_t.
31058 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31059 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31060
31061 2017-08-08 Florian Weimer <fweimer@redhat.com>
31062
31063 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31064 return statement.
31065
31066 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31067
31068 [BZ #21913]
31069 * csu/libc-tls.c: Include <startup.h> first.
31070 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31071 * elf/dl-tunables.c: Include <startup.h> first.
31072 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31073 * sysdeps/generic/startup.h: New file.
31074 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31075 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31076 (I386_USE_SYSENTER): New. Defined to 0.
31077
31078 2017-08-08 Andreas Schwab <schwab@suse.de>
31079
31080 [BZ #21041]
31081 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31082 * nptl/pt-system.c (system): Likewise.
31083
31084 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31085
31086 [BZ #21780]
31087 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31088 EOPNOTSUPP.
31089 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31090 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31091 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31092 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31093 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31094 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31095 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31096
31097 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31098
31099 [BZ #21899]
31100 * bits/sigaction.h (struct sigaction): Define sa_handler and
31101 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31102 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31103 [__USE_XOPEN_EXTENDED].
31104 (SA_RESTART): Likewise.
31105 (SA_NODEFER): Likewise.
31106 (SA_RESETHAND): Likewise.
31107 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31108 (struct sigaction): Define sa_handler and sa_sigaction using union
31109 also for [__USE_XOPEN_EXTENDED].
31110 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31111 [__USE_XOPEN_EXTENDED].
31112 (SA_RESTART): Likewise.
31113 (SA_NODEFER): Likewise.
31114 (SA_RESETHAND): Likewise.
31115 * sysdeps/unix/sysv/linux/bits/sigaction.h
31116 (struct sigaction): Define sa_handler and sa_sigaction using union
31117 also for [__USE_XOPEN_EXTENDED].
31118 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31119 [__USE_XOPEN_EXTENDED].
31120 (SA_RESTART): Likewise.
31121 (SA_NODEFER): Likewise.
31122 (SA_RESETHAND): Likewise.
31123 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31124 (struct sigaction): Define sa_handler and sa_sigaction using union
31125 also for [__USE_XOPEN_EXTENDED].
31126 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31127 [__USE_XOPEN_EXTENDED].
31128 (SA_RESTART): Likewise.
31129 (SA_NODEFER): Likewise.
31130 (SA_RESETHAND): Likewise.
31131 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31132 (struct sigaction): Define sa_handler and sa_sigaction using union
31133 also for [__USE_XOPEN_EXTENDED].
31134 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31135 [__USE_XOPEN_EXTENDED].
31136 (SA_RESTART): Likewise.
31137 (SA_NODEFER): Likewise.
31138 (SA_RESETHAND): Likewise.
31139 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31140 (struct sigaction): Define sa_handler and sa_sigaction using union
31141 also for [__USE_XOPEN_EXTENDED].
31142 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31143 [__USE_XOPEN_EXTENDED].
31144 (SA_RESTART): Likewise.
31145 (SA_NODEFER): Likewise.
31146 (SA_RESETHAND): Likewise.
31147 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31148 (struct sigaction): Define sa_handler and sa_sigaction using union
31149 also for [__USE_XOPEN_EXTENDED].
31150 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31151 [__USE_XOPEN_EXTENDED].
31152 (SA_RESTART): Likewise.
31153 (SA_NODEFER): Likewise.
31154 (SA_RESETHAND): Likewise.
31155 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31156 (struct sigaction): Define sa_handler and sa_sigaction using union
31157 also for [__USE_XOPEN_EXTENDED].
31158 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31159 [__USE_XOPEN_EXTENDED].
31160 (SA_RESTART): Likewise.
31161 (SA_NODEFER): Likewise. Define directly rather than as alias.
31162 (SA_RESETHAND): Likewise.
31163 (SA_INTERRUPT): Define only for [__USE_MISC].
31164 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31165 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31166 [__USE_MISC].
31167 (SA_STACK): Define only for [__USE_MISC].
31168 * sysdeps/unix/sysv/linux/tile/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 (SA_NOPTRACE): Define only for [__USE_MISC].
31177
31178 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31179 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31180 (struct catalog_info): Likewise.
31181 * inet/htontest.c (lo): Likewise.
31182 (foo): Likewise.
31183 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31184 * inet/inet_net.c (inet_network): Likewise.
31185 * inet/inet_netof.c (inet_netof): Likewise.
31186 * inet/rcmd.c (__ivaliduser): Likewise.
31187 (iruserok): Likewise.
31188 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31189 * locale/programs/locale-spec.c (locale_special): Likewise.
31190 * nis/nis_findserv.c (struct findserv_req): Likewise.
31191 (__nis_findfastest_with_timeout): Likewise.
31192 * nss/test-netdb.c (test_network): Likewise.
31193 * resolv/inet_neta.c (inet_neta): Likewise.
31194 * resolv/ns_date.c (ns_datetosecs): Likewise.
31195 (SECS_PER_DAY): Likewise.
31196 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31197 Likewise.
31198 * resolv/res_comp.c (__putlong): Likewise.
31199 (__putshort): Likewise.
31200 (_getlong): Likewise.
31201 (_getshort): Likewise.
31202 * resolv/res_debug.c (p_time): Likewise.
31203 (precsize_ntoa): Likewise.
31204 (precsize_aton): Likewise.
31205 (latlon2ul): Likewise.
31206 (loc_aton): Likewise.
31207 (loc_ntoa): Likewise.
31208 * resolv/res_hconf.c (struct netaddr): Likewise.
31209 (_res_hconf_reorder_addrs): Likewise.
31210 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31211 (clnttcp_control): Likewise.
31212 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31213 (clntudp_control): Likewise.
31214 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31215 (clntunix_control): Likewise.
31216 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31217 * sunrpc/rpc/auth.h (union des_block): Likewise.
31218 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31219 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31220 (xdrrec_create): Likewise.
31221 (xdrrec_endofrecord): Likewise.
31222 (flush_out): Likewise.
31223 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31224 (xdrstdio_putlong): Likewise.
31225 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31226 Likewise.
31227
31228 * misc/sys/cdefs.h (__long_double_t): Remove.
31229 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31230 instead of __long_double_t,
31231 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31232
31233 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31234
31235 * benchtests/scripts/compare_strings.py: Avoid display error when
31236 running on a text terminal.
31237
31238 * benchtests/scripts/compare_strings.py (main): Add an
31239 optional -base option.
31240 (process_results): New argument base_func.
31241
31242 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31243 hardcoding memcpy.
31244 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31245 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31246
31247 2017-08-07 Andreas Schwab <schwab@suse.de>
31248
31249 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31250 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31251 * intl/Makefile ($(objpfx)tst-gettext.out)
31252 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31253 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31254 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31255 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31256 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31257 * posix/Makefile ($(objpfx)globtest.out)
31258 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31259 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31260 ($(objpfx)tst-printf.out): Likewise.
31261 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31262 ($(objpfx)tst-setcontext3.out): Likewise.
31263
31264 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31265
31266 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31267 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31268 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31269 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31270 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31271 and mptan-fma.
31272 (CFLAGS-doasin-fma.c): New.
31273 (CFLAGS-dosincos-fma.c): Likewise.
31274 (CFLAGS-e_asin-fma.c): Likewise.
31275 (CFLAGS-e_atan2-fma.c): Likewise.
31276 (CFLAGS-e_exp-fma.c): Likewise.
31277 (CFLAGS-e_log-fma.c): Likewise.
31278 (CFLAGS-e_pow-fma.c): Likewise.
31279 (CFLAGS-halfulp-fma.c): Likewise.
31280 (CFLAGS-mpa-fma.c): Likewise.
31281 (CFLAGS-mpatan-fma.c): Likewise.
31282 (CFLAGS-mpatan2-fma.c): Likewise.
31283 (CFLAGS-mpexp-fma.c): Likewise.
31284 (CFLAGS-mplog-fma.c): Likewise.
31285 (CFLAGS-mpsqrt-fma.c): Likewise.
31286 (CFLAGS-mptan-fma.c): Likewise.
31287 (CFLAGS-s_atan-fma.c): Likewise.
31288 (CFLAGS-sincos32-fma.c): Likewise.
31289 (CFLAGS-slowexp-fma.c): Likewise.
31290 (CFLAGS-slowpow-fma.c): Likewise.
31291 (CFLAGS-s_sin-fma.c): Likewise.
31292 (CFLAGS-s_tan-fma.c): Likewise.
31293 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31294 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31295 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31296 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31297 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31298 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31299 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31300 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31301 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31302 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31303 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31304 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31305 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31306 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31307 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31308 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31309 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31310 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31311 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31312 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31313 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31314 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31315 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31316 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31317 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31318 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31319 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31320 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31321 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31322 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31323 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31324
31325 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31326
31327 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31328 (min_of_type_f): New macro.
31329 (min_of_type_): Likewise.
31330 (min_of_type_l): Likewise.
31331 (min_of_type_f128): Likewise.
31332 (min_of_type): Define using __MATH_TG and taking an expression
31333 argument.
31334 (math_check_force_underflow): Pass expression instead of type to
31335 min_of_type.
31336 (math_check_force_underflow_nonneg): Likewise.
31337
31338 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31339
31340 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31341 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31342 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31343
31344 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31345
31346 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31347 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31348 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31349 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31350 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31351 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31352 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31353 memmove_chk-nonshared and memset_chk-nonshared
31354 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31355 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31356 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31357 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31358 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31359 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31360 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31361 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31362 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31363 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31364 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31365 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31366 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31367 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31368 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31369 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31370 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31371 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31372 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31373 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31374 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31375 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31376 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31377 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31378 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31379 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31380 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31381 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31382 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31383 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31384 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31385 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31386 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31387 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31388 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31389 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31390 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31391 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31392 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31393 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31394 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31395 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31396 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31397 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31398 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31399 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31400 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31401 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31402 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31403 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31404 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31405 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31406 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31407 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31408 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31409 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31410 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31411 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31412 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31413 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31414 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31415 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31416 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31417 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31418 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31419 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31420 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31421 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31422 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31423 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31424 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31425 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31426 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31427 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31428 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31429 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31430 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31431 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31432 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31433 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31434 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31435 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31436 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31437 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31438 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31439 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31440 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31441 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31442 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31443 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31444 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31445 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31446 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31447 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31448 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31449 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31450 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31451 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31452 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31453 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31454 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31455 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31456 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31457 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31458 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31459 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31460 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31461 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31462
31463 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31464
31465 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31466 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31467 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31468 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31469 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31470 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31471 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31472 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31473 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31474 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31475 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31476 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31477 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31478 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31479 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31480 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31481 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31482 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31483 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31484 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31485 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31486 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31487 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31488 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31489 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31490 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31491 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31492 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31493 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31494 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31495 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31496 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31497 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31498 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31499 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31500 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31501 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31502 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31503 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31504 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31505 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31506 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31507 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31508 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31509 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31510 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31511 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31512 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31513 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31514 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31515 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31516 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31517 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31518 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31519 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31520 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31521 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31522 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31523 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31524 ...
31525 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31526 Don't include <sysdep.h> nor <init-arch.h>.
31527 (_ZGVbN2v_cos): Removed.
31528 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31529 ...
31530 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31531 Don't include <sysdep.h> nor <init-arch.h>.
31532 (_ZGVdN4v_cos): Removed.
31533 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31534 ...
31535 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31536 Don't include <sysdep.h> nor <init-arch.h>.
31537 (_ZGVeN8v_cos): Removed.
31538 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31539 ...
31540 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31541 Don't include <sysdep.h> nor <init-arch.h>.
31542 (_ZGVbN2v_exp): Removed.
31543 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31544 ...
31545 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31546 Don't include <sysdep.h> nor <init-arch.h>.
31547 (_ZGVdN4v_exp): Removed.
31548 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31549 ...
31550 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31551 Don't include <sysdep.h> nor <init-arch.h>.
31552 (_ZGVeN8v_exp): Removed.
31553 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31554 ...
31555 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31556 Don't include <sysdep.h> nor <init-arch.h>.
31557 (_ZGVbN2v_log): Removed.
31558 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31559 ...
31560 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31561 Don't include <sysdep.h> nor <init-arch.h>.
31562 (_ZGVdN4v_log): Removed.
31563 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31564 ...
31565 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31566 Don't include <sysdep.h> nor <init-arch.h>.
31567 (_ZGVeN8v_log): Removed.
31568 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31569 ...
31570 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31571 Don't include <sysdep.h> nor <init-arch.h>.
31572 (_ZGVbN2vv_pow): Removed.
31573 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31574 ...
31575 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31576 Don't include <sysdep.h> nor <init-arch.h>.
31577 (_ZGVdN4vv_pow): Removed.
31578 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31579 ...
31580 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31581 Don't include <sysdep.h> nor <init-arch.h>.
31582 (_ZGVeN8vv_pow): Removed.
31583 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31584 ...
31585 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31586 Don't include <sysdep.h> nor <init-arch.h>.
31587 (_ZGVbN2v_sin): Removed.
31588 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31589 ...
31590 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31591 Don't include <sysdep.h> nor <init-arch.h>.
31592 (_ZGVbN4v_sin): Removed.
31593 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31594 ...
31595 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31596 Don't include <sysdep.h> nor <init-arch.h>.
31597 (_ZGVbN8v_sin): Removed.
31598 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31599 ...
31600 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31601 Don't include <sysdep.h> nor <init-arch.h>.
31602 (_ZGVbN2vvv_sincos): Removed.
31603 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31604 ...
31605 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31606 Don't include <sysdep.h> nor <init-arch.h>.
31607 (_ZGVdN4vvv_sincos): Removed.
31608 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31609 ...
31610 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31611 Don't include <sysdep.h> nor <init-arch.h>.
31612 (_ZGVeN8vvv_sincos): Removed.
31613 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31614 ...
31615 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31616 Don't include <sysdep.h> nor <init-arch.h>.
31617 (_ZGVeN16v_cosf): Removed.
31618 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31619 ...
31620 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31621 Don't include <sysdep.h> nor <init-arch.h>.
31622 (_ZGVbN4v_cosf): Removed.
31623 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31624 ...
31625 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31626 Don't include <sysdep.h> nor <init-arch.h>.
31627 (_ZGVdN8v_cosf): Removed.
31628 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31629 ...
31630 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31631 Don't include <sysdep.h> nor <init-arch.h>.
31632 (_ZGVeN16v_expf): Removed.
31633 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31634 ...
31635 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31636 Don't include <sysdep.h> nor <init-arch.h>.
31637 (_ZGVbN4v_expf): Removed.
31638 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31639 ...
31640 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31641 Don't include <sysdep.h> nor <init-arch.h>.
31642 (_ZGVdN8v_expf): Removed.
31643 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31644 ...
31645 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31646 Don't include <sysdep.h> nor <init-arch.h>.
31647 (_ZGVeN16v_logf): Removed.
31648 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31649 ...
31650 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31651 Don't include <sysdep.h> nor <init-arch.h>.
31652 (_ZGVbN4v_logf): Removed.
31653 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31654 ...
31655 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31656 Don't include <sysdep.h> nor <init-arch.h>.
31657 (_ZGVdN8v_logf): Removed.
31658 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31659 ...
31660 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31661 Don't include <sysdep.h> nor <init-arch.h>.
31662 (_ZGVeN16vv_powf): Removed.
31663 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31664 ...
31665 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31666 Don't include <sysdep.h> nor <init-arch.h>.
31667 (_ZGVbN4vv_powf): Removed.
31668 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31669 ...
31670 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31671 Don't include <sysdep.h> nor <init-arch.h>.
31672 (_ZGVdN8vv_powf): Removed.
31673 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31674 ...
31675 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31676 Don't include <sysdep.h> nor <init-arch.h>.
31677 (_ZGVeN16vvv_sincosf): Removed.
31678 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31679 ...
31680 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31681 Don't include <sysdep.h> nor <init-arch.h>.
31682 (_ZGVbN4vvv_sincosf): Removed.
31683 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31684 ...
31685 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31686 Don't include <sysdep.h> nor <init-arch.h>.
31687 (_ZGVdN8vvv_sincosf): Removed.
31688 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31689 ...
31690 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31691 Don't include <sysdep.h> nor <init-arch.h>.
31692 (_ZGVeN16v_sinf): Removed.
31693 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31694 ...
31695 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31696 Don't include <sysdep.h> nor <init-arch.h>.
31697 (_ZGVbN4v_sinf): Removed.
31698 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31699 ...
31700 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31701 Don't include <sysdep.h> nor <init-arch.h>.
31702 (_ZGVdN8v_sinf): Removed.
31703
31704 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31705
31706 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31707 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31708 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31709 s_rint-sse4_1 and s_rintf-sse4_1.
31710 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31711 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31712 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31713 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31714 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31715 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31716 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31717 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31718 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31719 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31720 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31721 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31722 (__ceil): Removed.
31723 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31724 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31725 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31726 (__ceilf): Removed.
31727 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31728 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31729 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31730 (__floor): Removed.
31731 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31732 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31733 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31734 (__floorf): Removed.
31735 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31736 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31737 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31738 (__nearbyint): Removed.
31739 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31740 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31741 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31742 (__nearbyintf): Removed.
31743 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31744 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31745 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31746 (__rint): Removed.
31747 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31748 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31749 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31750 (__rintf): Removed.
31751
31752 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31753
31754 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31755 SHARED. Avoid dynamic relocation against main in static PIE.
31756
31757 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31758
31759 [BZ #21815]
31760 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31761 (LDFLAGS-tst-prelink): Likewise.
31762
31763 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31764
31765 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31766 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31767 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31768 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31769 (INTERNAL_SYSCALL_NCS): Likewise.
31770 (LOADARGS_1): Likewise.
31771 (LOADARGS_5): Likewise.
31772 (RESTOREARGS_1): Likewise.
31773 (RESTOREARGS_5): Likewise.
31774
31775 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31776
31777 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
31778 (MEMPCPY_SYMBOL): Likewise.
31779 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
31780 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
31781 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
31782 in libc.a.
31783 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31784 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
31785 Likewise.
31786 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
31787 (__hidden_ver1): Don't use in libc.a.
31788 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
31789 (__mempcpy): Don't create a weak alias in libc.a.
31790 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
31791 libc.a.
31792 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
31793 (__hidden_ver1): Don't use in libc.a.
31794
31795 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31796
31797 * config.make.in (have-insert): New.
31798 * configure.ac (libc_cv_insert): New. Set to yes if linker
31799 supports INSERT in linker script.
31800 (AC_SUBST(libc_cv_insert): New.
31801 * configure: Regenerated.
31802 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
31803 if $(have-insert) == yes.
31804
31805 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31806
31807 * elf/Makefile (tests): Add vismain only if
31808 $(have-protected-data) == yes.
31809 (tests-pie): Likewise.
31810
31811 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31812
31813 [BZ #21871]
31814 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
31815 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
31816
31817 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31818
31819 [BZ #21790]
31820 * sysdeps/i386/i586/memset.S
31821 (__memset_zero_constant_len_parameter): Removed.
31822 * sysdeps/i386/i686/memset.S
31823 (__memset_zero_constant_len_parameter): Likewise.
31824 * sysdeps/i386/i686/multiarch/memset_chk.S
31825 (__memset_zero_constant_len_parameter): Likewise.
31826 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
31827 Likewise.
31828
31829 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31830
31831 * stdlib/getentropy.c (getentropy): Change return type to int.
31832
31833 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
31834
31835 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
31836
31837 2017-08-03 Joseph Myers <joseph@codesourcery.com>
31838
31839 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
31840 u_intN_t.
31841 * math/s_nexttowardf.c (__nexttowardf): Likewise.
31842 * sysdeps/generic/math_private.h (ieee_double_shape_type):
31843 Likewise.
31844 (ieee_float_shape_type): Likewise.
31845 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
31846 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
31847 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
31848 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
31849 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
31850 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
31851 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
31852 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
31853 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
31854 Likewise.
31855 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
31856 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
31857 (__ieee754_yn): Likewise.
31858 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
31859 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
31860 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
31861 Likewise.
31862 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
31863 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
31864 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
31865 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
31866 (__erfc): Likewise.
31867 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
31868 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
31869 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
31870 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
31871 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
31872 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
31873 Likewise.
31874 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
31875 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
31876 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
31877 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
31878 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
31879 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
31880 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
31881 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
31882 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
31883 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
31884 (__issignaling): Likewise.
31885 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
31886 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
31887 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
31888 Likewise.
31889 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31890 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
31891 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
31892 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
31893 Likewise.
31894 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
31895 Likewise.
31896 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
31897 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
31898 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
31899 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
31900 (__erfcf): Likewise.
31901 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
31902 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
31903 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
31904 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
31905 Likewise.
31906 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
31907 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
31908 Likewise.
31909 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
31910 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
31911 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
31912 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
31913 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
31914 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
31915 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
31916 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
31917 Likewise.
31918 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
31919 Likewise.
31920 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
31921 Likewise.
31922 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
31923 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
31924 Likewise.
31925 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
31926 Likewise.
31927 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
31928 (__ieee754_ynl): Likewise.
31929 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
31930 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
31931 Likewise.
31932 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
31933 Likewise.
31934 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
31935 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
31936 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
31937 Likewise.
31938 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
31939 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
31940 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
31941 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
31942 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
31943 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
31944 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
31945 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
31946 Likewise.
31947 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
31948 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
31949 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
31950 Likewise.
31951 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
31952 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
31953 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
31954 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
31955 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
31956 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
31957 Likewise.
31958 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
31959 Likewise.
31960 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
31961 Likewise.
31962 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
31963 Likewise.
31964 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
31965 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
31966 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
31967 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
31968 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
31969 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
31970 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
31971 Likewise.
31972 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
31973 Likewise.
31974 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
31975 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
31976 Likewise.
31977 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
31978 (__ieee754_remainderl): Likewise.
31979 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
31980 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
31981 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
31982 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
31983 Likewise.
31984 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
31985 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
31986 Likewise.
31987 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
31988 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
31989 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
31990 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
31991 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
31992 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
31993 Likewise.
31994 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
31995 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
31996 (__ieee754_y0l): Likewise.
31997 (pzero): Likewise.
31998 (qzero): Likewise.
31999 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32000 (__ieee754_y1l): Likewise.
32001 (pone): Likewise.
32002 (qone): Likewise.
32003 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32004 (__ieee754_ynl): Likewise.
32005 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32006 (__ieee754_lgammal_r): Likewise.
32007 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32008 Likewise.
32009 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32010 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32011 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32012 (__erfcl): Likewise.
32013 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32014 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32015 Likewise.
32016 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32017 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32018 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32019 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32020 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32021 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32022 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32023 Likewise.
32024 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32025 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32026 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32027 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32028 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32029 Likewise.
32030 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32031 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32032 Likewise.
32033 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32034 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32035 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32036 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32037 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32038
32039 2017-08-03 Florian Weimer <fweimer@redhat.com>
32040
32041 [BZ #21885]
32042 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32043 on memory allocation failure.
32044
32045 2017-08-03 Alan Modra <amodra@gmail.com>
32046
32047 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32048 tst-tlsopt-powerpc.c with function name change and no test harness.
32049 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32050 Call tls_get_addr_opt_test.
32051 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32052 (modules-names): Add mod-tlsopt-powerpc.
32053 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32054 (tst-tlsopt-powerpc): Depend on .so.
32055 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32056 define. Expand use in TLS_GD and TLS_LD.
32057
32058 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32059
32060 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32061 function.
32062 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32063
32064 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32065
32066 [BZ #21686]
32067 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32068 comparing size with that of double.
32069 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32070 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32071 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32072 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32073 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32074 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32075 unsigned __int128 types.
32076
32077 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32078
32079 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32080 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32081 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32082 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32083 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32084
32085 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32086
32087 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32088
32089 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32090
32091 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32092 of SHARED.
32093 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32094 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32095 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32096 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32097 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32098 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32099 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32100
32101 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32102
32103 [BZ #21685]
32104 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32105 bit-field expressions passed to sizeof or typeof.
32106 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32107 (__TGMATH_F128): Likewise.
32108 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32109 (__TGMATH_CF128): Likewise.
32110 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32111 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32112 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32113 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32114 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32115 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32116 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32117 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32118 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32119 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32120 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32121 (__TGMATH_UNARY_IMAG): Likewise.
32122 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32123 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32124 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32125 type.
32126 (define_vars_for_type): Handle bit_field type specially.
32127 (Tests.__init__): Declare structure with bit-field element.
32128
32129 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32130
32131 [BZ #21791]
32132 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32133 (MEMCPY_CHK): Define only if SHARED is defined.
32134 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32135 Likewise.
32136 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32137 Likewise.
32138
32139 See ChangeLog.18 for earlier changes.