]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
8f9e2e9d9a1ad5eb30d7e70543e06e301633efac
[thirdparty/glibc.git] / ChangeLog
1 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2
3 * sysdeps/s390/memcopy.h: New file.
4
5 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6
7 * sysdeps/s390/s390-32/bcopy.S: Remove.
8 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9
10 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
11
12 * sysdeps/s390/ifunc-memcpy.h: New File.
13 * sysdeps/s390/memcpy.S: Move to ...
14 * sysdeps/s390/memcpy-z900.S ... here.
15 Move implementations from memcpy-s390x.s to here.
16 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
17 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
18 Remove memcpy/mempcpy variants.
19 * sysdeps/s390/Makefile (sysdep_routines):
20 Add memcpy/mempcpy variants.
21 * sysdeps/s390/multiarch/ifunc-impl-list.c
22 (__libc_ifunc_impl_list): Adjust ifunc variants for
23 memcpy and mempcpy.
24 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
25 to ...
26 * sysdeps/s390/memcpy.c: ... here.
27 Adjust ifunc variants for memcpy.
28 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
29 * sysdeps/s390/mempcpy.c: ... here.
30 Adjust ifunc variants for mempcpy.
31 * sysdeps/s390/mempcpy.S: Delete file.
32
33 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
34
35 * sysdeps/s390/s390-64/memcpy.S: Move to ...
36 * sysdeps/s390/memcpy.S: ... here.
37 Adjust to be usable for 31/64bit.
38 * sysdeps/s390/s390-32/memcpy.S: Delete File.
39 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
40 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
41 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
42 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
43 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
44 Adjust to be usable for 31/64bit.
45 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
46 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
47 * sysdeps/s390/multiarch/memcpy.c: ... here.
48 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
49
50 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
51
52 * sysdeps/s390/ifunc-memcmp.h: New File.
53 * sysdeps/s390/memcmp.S: Move to ...
54 * sysdeps/s390/memcmp-z900.S ... here.
55 Move implementations from memcmp-s390x.s to here.
56 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
57 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
58 Remove memcmp variants.
59 * sysdeps/s390/Makefile (sysdep_routines):
60 Add memcmp variants.
61 * sysdeps/s390/multiarch/ifunc-impl-list.c
62 (__libc_ifunc_impl_list): Adjust ifunc variants for
63 memcmp.
64 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
65 to ...
66 * sysdeps/s390/memcmp.c: ... here.
67 Adjust ifunc variants for memcmp.
68
69 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
70
71 * sysdeps/s390/s390-64/memcmp.S: Move to ...
72 * sysdeps/s390/memcmp.S: ... here.
73 Adjust to be usable for 31/64bit.
74 * sysdeps/s390/s390-32/memcmp.S: Delete File.
75 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
76 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
77 Remove memcmp.
78 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
79 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
80 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
81 Adjust to be usable for 31/64bit.
82 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
83 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
84 * sysdeps/s390/multiarch/memcmp.c: ... here.
85 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
86
87 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
88
89 * sysdeps/s390/s390-32/bzero.S: Delete file.
90 * sysdeps/s390/s390-64/bzero.S: Likewise.
91 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
92 * sysdeps/s390/bzero.c: New file.
93 * sysdeps/s390/memset-z900.S: Add bzero entry points.
94 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
95 * sysdeps/s390/multiarch/ifunc-impl-list.c
96 (__libc_ifunc_impl_list): Add bzero ifunc variants.
97
98 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
99
100 * sysdeps/s390/ifunc-memset.h: New File.
101 * sysdeps/s390/memset.S: Move to ...
102 * sysdeps/s390/memset-z900.S ... here.
103 Move implementations from memset-s390x.s to here.
104 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
105 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
106 Remove memset variants.
107 * sysdeps/s390/Makefile (sysdep_routines):
108 Add memset variants.
109 * sysdeps/s390/multiarch/ifunc-impl-list.c
110 (__libc_ifunc_impl_list): Adjust ifunc variants for
111 memset.
112 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
113 to ...
114 * sysdeps/s390/memset.c: ... here.
115 Adjust ifunc variants for memset.
116
117 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
118
119 * sysdeps/s390/s390-64/memset.S: Move to ...
120 * sysdeps/s390/memset.S: ... here.
121 Adjust to be usable for 31/64bit.
122 * sysdeps/s390/s390-32/memset.S: Delete File.
123 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
124 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
125 Remove memset.
126 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
127 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
128 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
129 Adjust to be usable for 31/64bit.
130 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
131 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
132 * sysdeps/s390/multiarch/memset.c: ... here.
133 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
134
135 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
136
137 * sysdeps/s390/multiarch/ifunc-resolve.h
138 (s390_libc_ifunc_init, s390_libc_ifunc,
139 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
140
141 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
142
143 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
144 * sysdeps/s390/configure.ac: Add check for z10 support.
145 * sysdeps/s390/configure: Regenerated.
146
147 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
148
149 * sysdeps/i386/atomic-machine.h: Merged with ...
150 * sysdeps/x86_64/atomic-machine.h: To ...
151 * sysdeps/x86/atomic-machine.h: This. New file.
152
153 2018-12-18 Florian Weimer <fweimer@redhat.com>
154
155 Rewrite locale/gen-translit.pl in Python.
156 * locale/Makefile (generated): Add C-translit.h.
157 (before-compile): Add $(objpfx)C-translit.h.
158 (C-translit.h): Move to $(objpfx). Create target directory.
159 Build using Python script.
160 * locale/gen-translit.py: New file.
161 * locale/gen-translit.pl: Remove file.
162 * locale/C-translit.h.in: Change comment character to '#' for
163 easier parsing without a C preprocessor.
164 * locale/C-translit.h: Remove generated file.
165 * manual/install.texi (Tools for Compilation): Do not mention
166 C-translit.h.
167 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
168 Remove locale/C-translit.h.
169 * scripts/update-copyrights: Likewise.
170 * INSTALL: Regenerate.
171
172 2018-12-18 Florian Weimer <fweimer@redhat.com>
173
174 [BZ #23995]
175 * localedata/locales/bi_VU: Remove executable bit from file.
176
177 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
178
179 * include/time.h
180 (__localtime64): Add.
181 * manual/maint.texi: Document Y2038 symbol handling.
182 * time/localtime.c
183 (__localtime64): Add.
184 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
185
186 2018-12-17 Joseph Myers <joseph@codesourcery.com>
187
188 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
189 Do not clobber r12.
190
191 * scripts/glibcextract.py (compare_macro_consts): Take parameters
192 to allow extra macros from first or second sources.
193 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
194 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
195 (tests-special): Add $(objpfx)tst-mman-consts.out.
196 ($(objpfx)tst-mman-consts.out): New makefile target.
197
198 2018-12-17 Mao Han <han_mao@c-sky.com>
199
200 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
201 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
202 without stat64 system call support.
203 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
204 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
205 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
206 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
207 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
208 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
209 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
210 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
211 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
212 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
213 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
214
215 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
216
217 regex: fix storage-exhaustion error
218 [BZ #18040]
219 * posix/regexec.c (get_subexp):
220 Do not continue if storage is exhausted.
221
222 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
223
224 regex: fix heap-use-after-free error
225 [BZ #18040]
226 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
227 https://debbugs.gnu.org/32592
228 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
229 call extend_buffers which reallocates the re_string_t internal buffer.
230 Local variable 'buf' was not updated in such case, resulting in
231 use-after-free.
232 * posix/regexec.c (get_subexp): Update 'buf' after call to
233 get_subexp_sub.
234
235 2018-12-15 Florian Weimer <fweimer@redhat.com>
236
237 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
238 (minimum_stride_size): Use it.
239 (support_blob_repeat_allocate): Likewise.
240
241 2018-12-14 Joseph Myers <joseph@codesourcery.com>
242
243 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
244 definition.
245 (acosh): Likewise.
246 (atanh): Likewise.
247
248 2018-12-14 Florian Weimer <fweimer@redhat.com>
249
250 * manual/process.texi (Process Creation Concepts): Remove
251 documentation of process (ID) lifetime. List more process
252 creation functions. Reference Process Identification section.
253 (Process Identification): Add information about process ID
254 lifetime. Describe Linux thread/task IDs.
255 * manual/signal.texi (Signaling Another Process): Mention that the
256 signal is always sent to the process.
257
258 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
259
260 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
261 and tst-ldbl-efgcvt.
262 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
263 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
264 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
265 (fcvt_tests, output_error, output_r_error, do_test): Use the
266 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
267 select the type of floating-point variables and arguments; to
268 produce extra tests for double and conversion specifiers for
269 printf; and to set the names of called functions.
270 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
271 in tst-efgcvt-template.c.
272 * misc/tst-ldbl-efgcvt.c: Likewise.
273
274 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
275
276 * nss/Makefile (tst-nss-test3.out): New rule.
277
278 2018-12-13 Joseph Myers <joseph@codesourcery.com>
279
280 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
281 clobber sp.
282
283 2018-12-13 fanjinke <fanjinke@hygon.cn>
284
285 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
286 "HygonGenuine".
287
288 2018-12-13 Andreas Schwab <schwab@suse.de>
289
290 [BZ #23861]
291 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
292 (__pthread_rwlock_rdlock_full): Update expected value for
293 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
294 * nptl/tst-rwlock-pwn.c: New file.
295 * nptl/Makefile (tests): Add tst-rwlock-pwn.
296
297 2018-12-12 Joseph Myers <joseph@codesourcery.com>
298
299 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
300 definition.
301
302 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
303
304 * benchtests/scripts/compare_bench.py (do_compare): write to
305 stderr in casestat is not present.
306 * benchtests/scripts/compare_bench.py (plot_graphs): write to
307 stderr in case timings field is not present. Also string showing
308 the output filename goes into the stderr.
309
310 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
311
312 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
313 and ZeroDivisorError exceptions.
314 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
315 argument to loop through user provided statistics.
316 * benchtests/scripts/compare_bench.py (main): Include the --stats
317 argument.
318
319 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
320
321 * benchtests/scripts/compare_bench.py (compare_runs): Continue
322 instead of return.
323
324 2018-12-12 Florian Weimer <fweimer@redhat.com>
325
326 * sysdeps/posix/timespec_get.c: Add missing “any later version”
327 clause to copyright header.
328
329 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
330
331 [BZ #23614]
332 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
333 registers saved in the stack frame.
334 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
335 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
336
337 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
338
339 * include/bits/monetary-ldbl.h: New file.
340 * include/bits/printf-ldbl.h: Likewise.
341 * include/bits/stdio-ldbl.h: Likewise.
342 * include/bits/stdlib-ldbl.h: Likewise.
343 * include/bits/syslog-ldbl.h: Likewise.
344 * include/bits/wchar-ldbl.h: Likewise.
345
346 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
347
348 * libio/libio.h: Remove redirection for _IO_vfprintf.
349
350 2018-12-11 Andreas Schwab <schwab@suse.de>
351
352 * Makerules: Remove all references to abilist-pattern.
353 (update-all-abi): Simplify find expression.
354
355 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
356
357 [BZ #23961]
358 * math/auto-libm-test-in: Add new test case.
359 * math/auto-libm-test-out-pow: Regenerated.
360 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
361
362 2018-12-10 DJ Delorie <dj@redhat.com>
363
364 [BZ #23948]
365 * support/test-container.c: Move postclean step to before we
366 change namespaces.
367
368 2018-12-10 Joseph Myers <joseph@codesourcery.com>
369
370 * scripts/gen-as-const.py (main): Handle --python option.
371 * scripts/gen-py-const.awk: Remove.
372 * Makerules (py-const-script): Use gen-as-const.py.
373 ($(py-const)): Likewise.
374 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
375 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
376 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
377 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
378 ~PTHREAD_MUTEX_NO_ELISION_NP.
379 * manual/README.pretty-printers: Update reference to
380 gen-py-const.awk.
381
382 * scripts/glibcextract.py: New file.
383 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
384 or tempfile. Import glibcexctract.
385 (compute_c_consts): Remove. Moved to glibcextract.py.
386 (gen_test): Update reference to compute_c_consts.
387 (main): Likewise.
388 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
389 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
390 * sysdeps/unix/sysv/linux/Makefile
391 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
392 Redirect stderr as well as stdout.
393
394 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
395
396 [BZ #19767]
397 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
398 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
399 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
400 ALWAYS_USE_VSYSCALL.
401 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
402 ALWAYS_USE_VSYSCALL.
403 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
404 ALWAYS_USE_VSYSCALL.
405
406 2018-12-10 Florian Weimer <fweimer@redhat.com>
407
408 [BZ #23972]
409 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
410 offset instead of count for clarity. Fix typo in comment.
411 (__old_getdents64): Keep track of previous offset. Use it to call
412 handle_overflow.
413 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
414 that d_off is never zero.
415
416 2018-12-10 Andreas Schwab <schwab@suse.de>
417
418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
419 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
421 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
422 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
423
424 2018-12-10 Joseph Myers <joseph@codesourcery.com>
425
426 * timezone/private.h: Update from tzcode 2018g.
427 * timezone/tzfile.h: Likewise.
428 * timezone/tzselect.ksh: Likewise.
429 * timezone/zdump.c: Likewise.
430 * timezone/zic.c: Likewise.
431
432 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
433
434 [BZ #23490]
435 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
436 (do_test): Adjust buffer size and fix format.
437
438 2018-12-07 DJ Delorie <dj@redhat.com>
439
440 [BZ #23907]
441 * malloc/tst-tcfree3.c: New.
442 * malloc/Makefile: Add it.
443
444 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
445
446 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
447
448 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
449
450 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
451 used as a mask for the mode argument of __vfscanf_internal and
452 __vfwscanf_internal.
453 * stdio-common/vfscanf-internal.c
454 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
455 (__strtof128_internal): Define to __wcstof128_internal.
456 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
457 __strtof128_internal or __wcstof128_internal when the format of
458 long double is the same as _Float128.
459
460 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
461
462 * include/unistd.h (__confstr): Add prototype and hidden prototype.
463 * posix/confstr.c (confstr): Rename to __confstr.
464 (__confstr): Add hidden def.
465 (confstr): Add weak alias for __confstr.
466 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
467 confstr.
468
469 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
470
471 * NEWS: Mention getcpu.
472 * include/sched.h (__getcpu): New libc_hidden_proto.
473 * manual/resource.texi: Document getcpu.
474 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
475 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
476 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
477 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
478 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
479 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
480 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
481 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
482 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
483 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
484 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
485 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
486 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
487 Likewise.
488 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
489 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
490 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
492 Likewise.
493 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
494 Likewise.
495 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
496 Likewise.
497 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
498 Likewise.
499 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
500 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
501 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
502 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
503 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
504 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
505 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
506 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
507 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
508 * sysdeps/unix/sysv/linux/getcpu.c: New file.
509 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
510 Also check getcpu.
511
512 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
513
514 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
515 functions.
516 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
517
518 2018-12-07 Florian Weimer <fweimer@redhat.com>
519
520 [BZ #17405]
521 * posix/Makefile (routines): Add spawn_faction_addfchdir.
522 * posix/Versions (GLIBC_2.29): Export
523 posix_spawn_file_actions_addfchdir_np.
524 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
525 * posix/spawn_faction_destroy.c
526 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
527 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
528 and the field action.fchdir_action.
529 * posix/tst-spawn-chdir.c (add_chdir): New function.
530 (do_test): Add do_fchdir loop. Call add_chdir.
531 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
532 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
533 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
534 posix_spawn_file_actions_addfchdir_np.
535 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
536 Likewise.
537 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
538 Likewise.
539 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
540 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
541 Likewise.
542 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
543 Likewise.
544 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
545 Likewise.
546 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
547 Likewise.
548 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
549 Likewise.
550 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
551 Likewise.
552 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
553 (GLIBC_2.29): Likewise.
554 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
555 (GLIBC_2.29): Likewise.
556 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
557 (GLIBC_2.29): Likewise.
558 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
559 (GLIBC_2.29): Likewise.
560 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
561 Likewise.
562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
563 (GLIBC_2.29): Likewise.
564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
565 (GLIBC_2.29): Likewise.
566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
567 (GLIBC_2.29): Likewise.
568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
569 (GLIBC_2.29): Likewise.
570 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
571 Likewise.
572 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
573 Likewise.
574 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
575 Likewise.
576 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
577 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
578 Likewise.
579 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
580 Likewise.
581 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
582 Likewise.
583 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
584 Likewise.
585
586 2018-12-06 Joseph Myers <joseph@codesourcery.com>
587
588 * manual/texinfo.tex: Update to version 2018-09-21.20 with
589 trailing whitespace removed.
590 * scripts/config.guess: Update to version 2018-11-28.
591 * scripts/config.sub: Update to version 2018-11-28.
592 * scripts/install-sh: Update to version 2018-03-11.20.
593 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
594 * scripts/move-if-change: Update to version 2018-03-07 03:47.
595
596 2018-12-07 Florian Weimer <fweimer@redhat.com>
597
598 [BZ #23927]
599 CVE-2018-19591
600 * inet/tst-if_index-long.c: New file.
601 * inet/Makefile (tests): Add tst-if_index-long.
602
603 2018-12-07 Florian Weimer <fweimer@redhat.com>
604
605 * support/check.h (support_record_failure_is_failed): Declare.
606 * support/descriptors.h: New file.
607 * support/support_descriptors.c: Likewise.
608 * support/tst-support_descriptors.c: Likewise.
609 * support/support_record_failure.c
610 (support_record_failure_is_failed): New function.
611 * support/Makefile (libsupport-routines): Add support_descriptors.
612 (tests): Add tst-support_descriptors.
613
614 2018-12-05 Zack Weinberg <zackw@panix.com>
615 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
616
617 * stdio-common/vfprintf-internal.c
618 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
619 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
620 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
621 and __no_long_double.
622 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
623 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
624 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
625 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
626 and __nldbl_*syslog* functions.
627 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
628 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
629 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
630 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
631 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
632 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
633 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
634 (__nldbl_vwprintf, __nldbl_wprintf):
635 Directly call the appropriate __v*printf_internal routine, passing
636 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
637 variable names.
638 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
639 (__nldbl___printf_chk, __nldbl___snprintf_chk)
640 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
641 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
642 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
643 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
644 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
645 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
646 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
647 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
648 Likewise, and also pass PRINTF_FORTIFY when appropriate.
649 (__nldbl_syslog, __nldbl_vsyslog):
650 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
651 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
652 appropriate.
653 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
654 appropriate.
655
656 2018-12-05 Zack Weinberg <zackw@panix.com>
657 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
658
659 [BZ #11319]
660 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
661 Moved here from debug/vsprintf_chk.c.
662 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
663 and completion logic for the strfile to match exactly what
664 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
665 _IO_str_init_static_internal instead of maxlen-1.
666 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
667 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
668 __vsprintf_internal.
669
670 * debug/vsprintf_chk.c (__vsprintf_chk)
671 * debug/sprintf_chk.c (__sprintf_chk):
672 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
673 'flags' argument is positive, and slen as maxlen. No need to lock
674 the FILE and/or construct a temporary FILE. Minimize and normalize
675 header inclusions and variable names. Do not libc_hidden_def anything.
676
677 * debug/asprintf_chk.c (__asprintf_chk)
678 * debug/dprintf_chk.c (__dprintf_chk)
679 * debug/fprintf_chk.c (__fprintf_chk)
680 * debug/fwprintf_chk.c (__fwprintf_chk)
681 * debug/printf_chk.c (__printf_chk)
682 * debug/snprintf_chk.c (__snprintf_chk)
683 * debug/swprintf_chk.c (__swprintf_chk)
684 * debug/vasprintf_chk.c (__vasprintf_chk)
685 * debug/vdprintf_chk.c (__vdprintf_chk)
686 * debug/vfprintf_chk.c (__vfprintf_chk)
687 * debug/vfwprintf_chk.c (__vfwprintf_chk)
688 * debug/vprintf_chk.c (__vprintf_chk)
689 * debug/vsnprintf_chk.c (__vsnprintf_chk)
690 * debug/vswprintf_chk.c (__vswprintf_chk)
691 * debug/vwprintf_chk.c (__vwprintf_chk)
692 * debug/wprintf_chk.c (__wprintf_chk):
693 Directly call the corresponding vxxprintf_internal function, passing
694 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
695 the FILE and/or construct a temporary FILE. Minimize and normalize
696 header inclusions and variable names. Do not libc_hidden_def anything.
697
698 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
699 __obstack_vprintf_internal.
700 (__obstack_vprintf_chk): Convert into a wrapper that calls
701 __obstack_vprintf_internal (these two functions already had the
702 same code) and move to new file...
703 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
704 file.
705 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
706 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
707 * debug/Makefile (routines): Add vobprintf_chk.
708
709 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
710 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
711 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
712 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
713 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
714 (__nldbl___obstack_vfprintf_chk):
715 Directly call the corresponding vxxprintf_internal function,
716 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
717 duplicate comparison of slen with 0 or maxlen from the corresponding
718 non-__nldbl function.
719
720 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
721 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
722 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
723 Remove libc_hidden_proto.
724
725 * stdio-common/vfprintf-internal.c
726 (__vfprintf_internal, __vfwprintf_internal):
727 Do not check _IO_FLAGS2_FORTIFY.
728 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
729 * libio/libioP.h: Update prototype of __vsprintf_internal and add
730 a comment explaining why it has the maxlen argument.
731 (_IO_acquire_lock_clear_flags2_fct): Remove.
732 (_IO_acquire_lock_clear_flags2): Remove.
733 (_IO_release_lock): Remove conditional statement which will
734 now never execute.
735 (_IO_acquire_lock): Remove variable which is now unused.
736 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
737 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
738
739 * stdio-common/Makefile (tests): Add tst-bz11319 and
740 tst-bz11319-fortify2.
741 (CFLAGS-tst-bz11319-fortify2.c): New macro.
742 * stdio-common/tst-bz11319-fortify2.c: New file.
743 * stdio-common/tst-bz11319.c: Likewise.
744
745 2018-12-05 Zack Weinberg <zackw@panix.com>
746 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
747
748 * misc/syslog.c: Include libioP.h, not iolibio.h.
749 (__vsyslog_internal): New function with the former body of
750 __vsyslog_chk; takes mode_flags argument same as
751 __v*printf_internal. Call __vfprintf_internal directly.
752
753 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
754 Remove libc_hidden_def.
755 (__syslog, __syslog_chk): Use __vsyslog_internal.
756 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
757
758 * include/sys/syslog.h: Add multiple inclusion guard.
759 Add prototype for __vsyslog_internal.
760 Remove declaration and libc_hidden_proto for __vsyslog_chk.
761
762 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
763 Use __vsyslog_internal.
764
765 2018-12-05 Zack Weinberg <zackw@panix.com>
766 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
767
768 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
769 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
770 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
771 New functions.
772 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
773 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
774
775 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
776 Include wctype.h here if COMPILE_WPRINTF is defined.
777 Define __vfprintf_internal or __vfwprintf_internal, depending
778 on COMPILE_WPRINTF.
779 Temporarily, on entry to this function, update mode_flags
780 according to the environmental settings corresponding to
781 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
782 Throughout, check mode_flags instead of __ldbl_is_dbl and
783 _IO_FLAGS2_FORTIFY on the destination FILE.
784 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
785 Include vfprintf-internal.c. Don't include wctype.h.
786 * stdio-common/vfprintf.c: New file. Just define __vfprintf
787 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
788 and vfprintf.
789 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
790 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
791 and vfwprintf.
792 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
793
794 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
795 and add mode_flags argument; use __vfprintf_internal.
796 (__vdprintf): New function. Alias vdprintf to this.
797 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
798 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
799 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
800 (__obstack_printf): Use __obstack_printf_internal.
801 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
802 public aliases __vsnprintf and vsnprintf.
803 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
804 called internally.
805 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
806 public aliases _IO_vsprintf and vsprintf.
807 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
808 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
809 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
810 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
811 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
812
813 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
814 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
815 * stdio-common/fprintf.c, stdio-common/fxprintf.c
816 * stdio-common/printf.c: Use __vfprintf_internal.
817
818 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
819 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
820 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
821
822 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
823 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
824 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
825 __vfwprintf_internal.
826
827 * libio/libio.h: Remove libc_hidden_proto and declaration for
828 _IO_vfprintf.
829 Remove declaration of _IO_vfwprintf.
830 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
831 _IO_vsprintf.
832 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
833 _IO_obstack_printf.
834 * include/stdio.h: Add prototype for __vasprintf.
835 (__vsnprintf): Remove declaration, because there are no more
836 internal calls.
837 * include/wchar.h (__vfwprintf, __vswprintf): Remove
838 declaration, because there are no more internal calls.
839
840 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
841 __vsnprintf_internal, instead of _IO_vsnprintf.
842 * argp/argp-help.c (__argp_error, __argp_failure): Use
843 __vasprintf_internal, instead of _IO_vasprintf.
844 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
845 redefine, because there are no more internal calls.
846
847 2018-12-05 Zack Weinberg <zackw@panix.com>
848 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
849
850 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
851 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
852 Include libio/strfile.h instead of libioP.h.
853 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
854 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
855 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
856 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
857 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
858 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
859 necessary. Do not set __no_long_double. Normalize variable names.
860 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
861 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
862 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
863 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
864 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
865 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
866 Call __vfscanf_internal / __vfwscanf_internal directly, passing
867 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
868 Do not set __no_long_double. Normalize variable names.
869
870 2018-12-05 Zack Weinberg <zackw@panix.com>
871 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
872
873 * stdio-common/isoc99_scanf.c
874 * stdio-common/isoc99_fscanf.c
875 * stdio-common/isoc99_sscanf.c
876 * stdio-common/isoc99_vscanf.c
877 * stdio-common/isoc99_vfscanf.c
878 * stdio-common/isoc99_vsscanf.c
879 * wcsmbs/isoc99_wscanf.c
880 * wcsmbs/isoc99_fwscanf.c
881 * wcsmbs/isoc99_swscanf.c
882 * wcsmbs/isoc99_vwscanf.c
883 * wcsmbs/isoc99_vfwscanf.c
884 * wcsmbs/isoc99_vswscanf.c:
885 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
886 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
887 No need to lock and unlock the FILE passed to that function.
888
889 * stdio-common/vfscanf-internal.c
890 (__vfscanf_internal, __vfwscanf_internal):
891 Don't look at _IO_FLAGS2_SCANF_STD.
892 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
893 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
894 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
895
896 2018-12-05 Zack Weinberg <zackw@panix.com>
897 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
898
899 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
900 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
901 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
902 * libio/strfile.h: Add multiple inclusion guard.
903 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
904
905 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
906 consistency with the other version of this file.
907 (ldbl_compat_symbol): New macro.
908 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
909 New macro.
910
911 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
912 Define __vfscanf_internal or __vfwscanf_internal, depending on
913 COMPILE_WSCANF; don't define any other public symbols.
914 Remove errval and code to set errp.
915 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
916 as the mode_flags argument.
917 (encode_error, conv_error, input_error): Don't set errval.
918 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
919 Include vfscanf-internal.c.
920 * stdio-common/vfscanf.c: New file defining the public entry
921 point vfscanf, which calls __vfscanf_internal.
922 * stdio-common/vfwscanf.c: New file defining the public entry
923 point vfwscanf, which calls __vfwscanf_internal.
924
925 * stdio-common/iovfscanf.c: New file.
926 * stdio-common/iovfwscanf.c: Likewise.
927
928 * stdio-common/Makefile (routines): Add vfscanf-internal,
929 vfwscanf-internal, iovfscanf, iovfwscanf.
930 * stdio-common/Versions: Mention GLIBC_2.29, so that
931 it can be used in SHLIB_COMPAT expressions.
932 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
933 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
934 Call __vfscanf_internal, instead of _IO_vfscanf.
935 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
936 _IO_vfscanf.
937 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
938 _IO_vfwscanf.
939
940 * libio/iovsscanf.c: Clean up includes, when possible. Use
941 _IO_strfile_read or _IO_strfile_readw, when needed. Call
942 __vfscanf_internal or __vfwscanf_internal directly.
943 * libio/iovswscanf.c: Likewise.
944 * libio/swscanf.c: Likewise.
945 * libio/vscanf.c: Likewise.
946 * libio/vwscanf.c: Likewise.
947 * libio/wscanf.c: Likewise.
948 * stdio-common/isoc99_fscanf.c: Likewise.
949 * stdio-common/isoc99_scanf.c: Likewise.
950 * stdio-common/isoc99_sscanf.c: Likewise.
951 * stdio-common/isoc99_vfscanf.c: Likewise.
952 * stdio-common/isoc99_vscanf.c: Likewise.
953 * stdio-common/isoc99_vsscanf.c: Likewise.
954 * stdio-common/scanf.c: Likewise.
955 * stdio-common/sscanf.c: Likewise.
956 * wcsmbs/isoc99_fwscanf.c: Likewise.
957 * wcsmbs/isoc99_swscanf.c: Likewise.
958 * wcsmbs/isoc99_vfwscanf.c: Likewise.
959 * wcsmbs/isoc99_vswscanf.c: Likewise.
960 * wcsmbs/isoc99_vwscanf.c: Likewise.
961 * wcsmbs/isoc99_wscanf.c: Likewise.
962
963 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
964
965 * include/time.h
966 (__tz_compute): Replace time_t with __time64_t.
967 (__tz_convert): Replace time_t* with __time64_t.
968 (__offtime): Replace time_t* with __time64_t.
969 * time/gmtime.c
970 (__gmtime_r): Adjust call to __tz_convert.
971 (gmtime): Likewise.
972 * time/localtime.c
973 (__localtime_r): Likewise.
974 (localtime): Likewise.
975 * time/offtime.c: Replace time_t with __time64_t.
976 * time/tzset.c: Likewise.
977
978 2018-12-04 Joseph Myers <joseph@codesourcery.com>
979
980 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
981 dynamic linker unless [$(run-built-tests) = yes].
982
983 2018-12-03 DJ Delorie <dj@delorie.com>
984
985 * support/test-container.c (check_for_unshare_hints): New.
986 (main): Call it if unshare fails. Add support for "su" scriptlet
987 command.
988
989 2018-12-03 Joseph Myers <joseph@codesourcery.com>
990
991 * scripts/gen-as-const.py (compute_c_consts): Take an argument
992 'START' to indicate that start text should be output.
993 (gen_test): Likewise.
994 (main): Generate 'START' for first symbol or '--' line, or at end
995 of input if not previously generated.
996
997 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
998
999 [BZ #19767]
1000 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
1001 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
1002 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
1003 ALWAYS_USE_VSYSCALL.
1004
1005 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1006
1007 [BZ #23913]
1008 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
1009 new_argv by one.
1010
1011 2018-12-03 Carlos O'Donell <carlos@redhat.com>
1012
1013 [BZ #23923]
1014 * locale/programs/localedef.c: Declare boolean hard_links default true.
1015 (options): Add --no-hard-links option.
1016 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
1017 * locale/programs/localedef.h: Declare prototype for hard_links.
1018 * locale/programs/locfile.c (write_locale_data): Don't use hard
1019 links if hard_links is false.
1020
1021 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
1022
1023 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
1024 cpu_features_basic.
1025 (__cache_sysconf): Likewise.
1026 (init_cacheinfo): Likewise.
1027 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
1028 populate COMMON_CPUID_INDEX_80000007 and
1029 COMMON_CPUID_INDEX_80000008.
1030 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
1031 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
1032 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
1033 (init_cpu_features): Use _Static_assert on
1034 index_arch_Fast_Unaligned_Load.
1035 __get_cpuid_registers and __get_arch_feature. Updated for
1036 cpu_features_basic. Set stepping in cpu_features.
1037 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
1038 (FEATURE_INDEX_2): New.
1039 (FEATURE_INDEX_MAX): Changed to enum.
1040 (COMMON_CPUID_INDEX_D_ECX_1): New.
1041 (COMMON_CPUID_INDEX_80000007): Likewise.
1042 (COMMON_CPUID_INDEX_80000008): Likewise.
1043 (cpuid_registers): Likewise.
1044 (cpu_features_basic): Likewise.
1045 (CPU_FEATURE_USABLE): Likewise.
1046 (bit_arch_XXX_Usable): Likewise.
1047 (cpu_features): Use cpuid_registers and cpu_features_basic.
1048 (bit_arch_XXX): Reweritten.
1049 (bit_cpu_XXX): Likewise.
1050 (index_cpu_XXX): Likewise.
1051 (reg_XXX): Likewise.
1052 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
1053 <support/check.h>.
1054 (CHECK_CPU_FEATURE): New.
1055 (CHECK_CPU_FEATURE_USABLE): Likewise.
1056 (cpu_kinds): Likewise.
1057 (do_test): Print vendor, family, model and stepping. Check
1058 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
1059 (TEST_FUNCTION): Removed.
1060 Include <support/test-driver.c> instead of
1061 "../../test-skeleton.c".
1062 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
1063 Check POPCNT instead of POPCOUNT.
1064 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
1065
1066 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1067
1068 * scripts/gen-as-const.py (main): Avoid emitting empty line when
1069 there is no element in `consts'.
1070
1071 2018-12-01 Florian Weimer <fweimer@redhat.com>
1072
1073 * support/support_capture_subprocess.c
1074 (support_capture_subprocess): Check that pipe descriptors have
1075 expected values. Close original pipe descriptors in subprocess.
1076
1077 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1078
1079 [BZ #23032]
1080 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
1081 attr with __pthread_default_barrierattr.
1082 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
1083 attr with __pthread_default_condattr.
1084 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
1085 attr with __pthread_default_mutexattr.
1086 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
1087 attr with __pthread_default_rwlockattr.
1088
1089 2018-12-01 Kemi Wang <kemi.wang@intel.com>
1090
1091 * manual/tunables.texi (POSIX Thread Tunables): New node.
1092 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
1093 * nptl/nptl-init.c: Include pthread_mutex_conf.h
1094 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
1095 __pthread_tunables_init.
1096 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
1097 (max_adaptive_count): Define.
1098 * nptl/pthread_mutex_conf.c: New file.
1099 * nptl/pthread_mutex_conf.h: New file.
1100 * sysdeps/generic/adaptive_spin_count.h: New file.
1101 * sysdeps/nptl/dl-tunables.list: New file.
1102 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
1103 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
1104 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
1105 Likewise.
1106
1107 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1108
1109 [BZ #20544]
1110 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
1111 * stdlib/on_exit.c (__on_exit): Likewise.
1112 * stdlib/Makefile (tests): Add tst-bz20544.
1113 * stdlib/tst-bz20544.c: New test.
1114
1115 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
1116
1117 [BZ #19767]
1118 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
1119 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1120 New.
1121
1122 2018-11-30 Florian Weimer <fweimer@redhat.com>
1123
1124 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
1125 Extend error logging.
1126 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
1127 symbol.
1128
1129 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1130
1131 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
1132 __sigismember instead of sigismember.
1133 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
1134 cancel_handler): New definitions.
1135 (do_system): Use posix_spawn instead of fork and execl and remove
1136 reentracy code.
1137 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
1138 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
1139 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
1140 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
1141 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
1142 * sysdeps/unix/sysv/linux/system.c: Likewise.
1143
1144 [BZ #22834]
1145 [BZ #17490]
1146 * NEWS: Add new semantic for atfork with popen and system.
1147 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
1148 fork and execl.
1149
1150 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1151
1152 [BZ #23690]
1153 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
1154 modification order when accessing reloc_result->addr.
1155 * include/link.h (reloc_result): Add field init.
1156 * nptl/Makefile (tests): Add tst-audit-threads.
1157 (modules-names): Add tst-audit-threads-mod1 and
1158 tst-audit-threads-mod2.
1159 Add rules to build tst-audit-threads.
1160 * nptl/tst-audit-threads-mod1.c: New file.
1161 * nptl/tst-audit-threads-mod2.c: Likewise.
1162 * nptl/tst-audit-threads.c: Likewise.
1163 * nptl/tst-audit-threads.h: Likewise.
1164
1165 2018-11-30 Joseph Myers <joseph@codesourcery.com>
1166
1167 * scripts/gen-as-const.py: New file.
1168 * scripts/gen-as-const.awk: Remove.
1169 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
1170 gen-as-const.py.
1171 ($(objpfx)test-as-const-%.c): Likewise.
1172
1173 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
1174
1175 * elf/dl-exception.c: Include <_itoa.h>.
1176
1177 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1178
1179 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
1180 returned by __f_setlk.
1181
1182 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
1183 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1184
1185 * elf/Makefile (tests-internal): Add tst-create_format1.
1186 * elf/dl-exception.c (_dl_exception_create_format): Support
1187 %x, %lx and %zx.
1188 * elf/tst-create_format1.c: New file.
1189
1190 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
1191
1192 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
1193 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
1194 gnulib.)
1195 * argp/argp-help.c (__argp_failure): Likewise.
1196
1197 2018-11-29 Mao Han <han_mao@c-sky.com>
1198
1199 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
1200 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
1201 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
1202 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
1203 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
1204 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
1205 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
1206 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
1207 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
1208 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
1209 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
1210 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
1211 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
1212 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
1213 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
1214 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
1215 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
1216 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
1217 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
1218 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
1219 (R_CKCORE_TLS_TPOFF32): New defines.
1220
1221 2018-11-29 Florian Weimer <fweimer@redhat.com>
1222
1223 * posix/Makefile (before-compile): Remove testcases.h and
1224 ptestcases.h.
1225 (generated): Add testcases.h and ptestcases.h.
1226 (testcases.h, ptestcases.h): Move to $(objpfx).
1227 (runtests.o): Add dependency on testcases.h.
1228 (runptests.o): Add dependency on ptestcases.h.
1229 * posix/testcases.h, posix/ptestcases.h: Remove files.
1230 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
1231 not touch posix/testcases.h and posix/ptestcases.h.
1232
1233 2018-11-28 Florian Weimer <fweimer@redhat.com>
1234
1235 support: Add signal support to support_capture_subprocess_check.
1236 * support/capture_subprocess.h (support_capture_subprocess_check):
1237 Adjust comment and rename parameter.
1238 * support/support_capture_subprocess_check.c
1239 (print_actual_status): New function.
1240 (support_capture_subprocess_check): Support negative
1241 status_or_signal. Call print_actual_status.
1242 * support/tst-support_capture_subprocess.c (do_test): Call
1243 support_capture_subprocess_check.
1244 * libio/tst-vtables-common.c (termination_status)
1245 (init_termination_status): Remove.
1246 (check_for_termination): Adjust support_capture_subprocess_check
1247 call.
1248 (do_test): Remove call to init_termination_status.
1249
1250 2018-11-28 Joseph Myers <joseph@codesourcery.com>
1251
1252 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
1253 source directory instead of a copy.
1254 (CommandList.create_copy_dir): Remove.
1255
1256 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
1257
1258 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1259
1260 2018-11-28 Florian Weimer <fweimer@redhat.com>
1261
1262 * support/support.h (support_quote_string): Do not use str
1263 parameter name.
1264
1265 2018-11-27 Joseph Myers <joseph@codesourcery.com>
1266
1267 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
1268 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
1269
1270 2018-11-27 Florian Weimer <fweimer@redhat.com>
1271
1272 * support/support.h (support_quote_string): Declare.
1273 * support/support_quote_string.c: New file.
1274 * support/tst-support_quote_string.c: Likewise.
1275 * support/Makefile (libsupport-routines): Add
1276 support_quote_string.
1277 (tests): Add tst-support_quote_string.
1278
1279 2018-11-27 Florian Weimer <fweimer@redhat.com>
1280
1281 [BZ #23927]
1282 CVE-2018-19591
1283 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
1284 descriptor leak in case of ENODEV error.
1285
1286 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
1287
1288 [BZ #19767]
1289 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
1290 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
1291 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
1292
1293 2018-11-26 Carlos O'Donell <carlos@redhat.com>
1294
1295 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
1296 Error for unknown lines.
1297
1298 2018-11-26 Joseph Myers <joseph@codesourcery.com>
1299
1300 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
1301 Touch additional files.
1302
1303 2018-11-26 Florian Weimer <fweimer@redhat.com>
1304
1305 [BZ #23907]
1306 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
1307 double-frees.
1308
1309 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
1310
1311 [BZ #19767]
1312 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
1313 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
1314 SHARED. Include sysdep.h.
1315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
1316 ALWAYS_USE_VSYSCALL.
1317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
1318 ALWAYS_USE_VSYSCALL.
1319
1320 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
1321
1322 [BZ #19767]
1323 * nptl/Makefile (tests-static): Add tst-cond11-static.
1324 (tests): Likewise.
1325 * nptl/tst-cond11-static.c: New File.
1326 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
1327 tst-affinity-static.
1328 (tests): Likewise.
1329 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
1330 instead of SHARED.
1331 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
1332 (USE_VSYSCALL): Likewise.
1333 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
1334 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
1335 instead of SHARED.
1336 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
1337 SHARED.
1338 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1339 New.
1340
1341 2018-11-23 Joseph Myers <joseph@codesourcery.com>
1342
1343 [BZ #23915]
1344 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1345 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
1346 Undefine.
1347
1348 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
1349
1350 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
1351 (tst-cet-legacy-1a-ARGS): New.
1352 ($(objpfx)tst-cet-legacy-1a): New target.
1353 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
1354
1355 2018-11-22 Joseph Myers <joseph@codesourcery.com>
1356
1357 * conform/conformtest.py (CompileSubTest.__init__): Set
1358 self.run_early to False.
1359 (ExecuteSubTest.__init__): Likewise.
1360 (HeaderTests.run): Try running all non-optional, non-XFAILed
1361 compilation tests in a single execution of the compiler.
1362
1363 * conform/conformtest.py (CompileSubTest): New class.
1364 (ExecuteSubTest): Likewise.
1365 (ElementTest.run): Rename to gen_subtests. Append tests to
1366 self.subtests instead of running them.
1367 (ConstantTest.run): Likewise.
1368 (SymbolTest.run): Likewise.
1369 (TypeTest.run): Likewise.
1370 (TagTest.run): Likewise.
1371 (FunctionTest.run): Likewise.
1372 (VariableTest.run): Likewise.
1373 (MacroFunctionTest.run): Likewise.
1374 (MacroStrTest.run): Likewise.
1375 (HeaderTests.handle_test_line): Generate subtests for tests.
1376 (HeaderTests.run): Run subtests for tests.
1377
1378 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1379
1380 * math/Versions (GLIBC_2.29): Add pow.
1381 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
1382 symbol.
1383 * math/w_pow.c: New file.
1384 * sysdeps/i386/fpu/w_pow.c: New file.
1385 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
1386 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
1387 and add necessary aliases.
1388 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
1389 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
1390 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1391 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1392 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1393 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1394 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1395 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1396 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1397 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1398 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1399 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1400 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1401 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1402 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1407 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1408 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1409 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1410 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1411 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1412 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1413 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1414 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
1415 __pow.
1416 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
1417 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
1418 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
1419
1420 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1421
1422 * math/Versions (GLIBC_2.29): Add log2.
1423 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
1424 symbol.
1425 * math/w_log2.c: New file.
1426 * sysdeps/i386/fpu/w_log2.c: New file.
1427 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
1428 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
1429 and add necessary aliases.
1430 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
1431 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
1432 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1433 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1434 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1435 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1436 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1437 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1438 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1439 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1440 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1441 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1442 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1443 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1444 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1445 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1446 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1447 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1449 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1450 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1451 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1452 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1453 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1454 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1455 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1456
1457 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1458
1459 * math/Versions (GLIBC_2.29): Add log.
1460 * math/w_log_compat.c (__log_compat): Change to versioned compat
1461 symbol.
1462 * math/w_log.c: New file.
1463 * sysdeps/i386/fpu/w_log.c: New file.
1464 * sysdeps/ia64/fpu/e_log.S: Update.
1465 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
1466 and add necessary aliases.
1467 * sysdeps/ieee754/dbl-64/w_log.c: New file.
1468 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
1469 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1470 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1471 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1472 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1473 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1474 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1475 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1476 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1477 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1478 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1479 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1480 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1481 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1486 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1487 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1488 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1489 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1490 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1491 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1492 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1493 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
1494 __log.
1495 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
1496 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
1497 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
1498 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
1499
1500 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1501
1502 * math/Versions (GLIBC_2.29): Add exp and exp2.
1503 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
1504 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
1505 * math/w_exp_compat.c (__exp_compat): Likewise.
1506 * math/w_exp.c: New file.
1507 * math/w_exp2.c: New file.
1508 * sysdeps/i386/fpu/w_exp.c: New file.
1509 * sysdeps/i386/fpu/w_exp2.c: New file.
1510 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
1511 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1512 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
1513 and add necessary aliases.
1514 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
1515 and add necessary aliases.
1516 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
1517 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
1518 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
1519 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
1520 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1521 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1522 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1523 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1524 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1525 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1526 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1527 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1528 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1529 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1530 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1531 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1532 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1534 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1537 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1538 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1539 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1540 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1541 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1542 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1543 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1544 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
1545 (__ieee754_exp): Rename to __exp.
1546 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
1547 (__ieee754_exp): Rename to __exp.
1548 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
1549 (__ieee754_exp): Rename to __exp.
1550 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
1551 __exp.
1552 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
1553
1554 2018-11-20 DJ Delorie <dj@redhat.com>
1555
1556 * malloc/malloc.c (tcache_entry): Add key field.
1557 (tcache_put): Set it.
1558 (tcache_get): Likewise.
1559 (_int_free): Check for double free in tcache.
1560 * malloc/tst-tcfree1.c: New.
1561 * malloc/tst-tcfree2.c: New.
1562 * malloc/Makefile: Run the new tests.
1563 * manual/probes.texi: Document memory_tcache_double_free probe.
1564
1565 * dlfcn/dlerror.c (check_free): Prevent double frees.
1566
1567 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1568
1569 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
1570
1571 2018-11-20 Joseph Myers <joseph@codesourcery.com>
1572
1573 * conform/conformtest.py (ElementTest.run): Use unique identifiers
1574 in tests. Use names for format arguments.
1575 (ConstantTest.run): Likewise.
1576 (SymbolTest.run): Likewise.
1577 (TypeTest.run): Likewise.
1578 (TagTest.run): Likewise.
1579 (FunctionTest.run): Likewise.
1580 (VariableTest.run): Likewise.
1581 (MacroFunctionTest.run): Likewise.
1582 (MacroStrTest.run): Likewise.
1583 (HeaderTests.__init__): Set self.num_tests.
1584 (HeaderTests.handle_test_line): Set test.num. Increment
1585 self.num_tests.
1586
1587 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
1588
1589 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
1590 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
1591 SEEK_SET.
1592
1593 2018-11-19 Mao Han <han_mao@c-sky.com>
1594
1595 * scripts/config.guess: Update to version 2018-08-29.
1596 * scripts/config.sub: Update to version 2018-08-29.
1597
1598 2018-11-19 Florian Weimer <fweimer@redhat.com>
1599
1600 support: Print timestamps in timeout handler.
1601 * support/support_test_main.c (print_timestamp): New function.
1602 (signal_handler): Use it to print the termination time and the
1603 time of the last write to standard output.
1604
1605 2018-11-16 Zack Weinberg <zackw@panix.com>
1606 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1607
1608 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
1609 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
1610 argument.
1611 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
1612 and add flags argument. Check flags instead of __ldbl_is_dbl when
1613 deciding whether to set is_long_double.
1614 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
1615 passing zero for flags argument.
1616 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
1617
1618 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1619 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
1620 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
1621 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
1622 variable names. Remove libc_hidden_def/libc_hidden_proto from
1623 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
1624 longer called from within the library.
1625 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
1626 for __nldbl___vstrfmon_l, declare it explicitly.
1627
1628 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
1629
1630 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
1631
1632 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
1633 macros
1634 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
1635 F_SETLK64, F_SETLKW64, respectively.
1636 * sysdeps/mach/hurd/f_setlk.c: New file.
1637 * sysdeps/mach/hurd/f_setlk.h: New file.
1638 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
1639 f_setlk.
1640 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
1641 (__libc_fcntl): Move non-flock operations to...
1642 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
1643 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
1644
1645 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
1646
1647 mktime: DEBUG_MKTIME cleanup
1648 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
1649 And it’s no longer needed now that glibc and Gnulib both have
1650 their own testing mechanisms for mktime.
1651 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
1652
1653 mktime: fix non-EOVERFLOW errno handling
1654 [BZ#23789]
1655 mktime was not properly reporting failures when the underlying
1656 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
1657 them like EOVERFLOW failures, and set errno to EOVERFLOW.
1658 The problem could happen on non-glibc platforms, with Gnulib.
1659 * time/mktime.c (guess_time_tm): Remove, replacing with ...
1660 (tm_diff): ... this simpler function, which does not change errno.
1661 All callers changed to deal with errno themselves.
1662 (ranged_convert, __mktime_internal): Return failure immediately if
1663 the underlying function reports any failure other than EOVERFLOW.
1664 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
1665 gap code fails.
1666
1667 mktime: fix bug with Y2038 DST transition
1668 [BZ#23789]
1669 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
1670 mishandle a DST transition that jumps over the Y2038 boundary.
1671 No such DST transitions are known so this is only a theoretical
1672 bug, but we might as well do things right.
1673
1674 mktime: make more room for overflow
1675 [BZ#23789]
1676 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
1677 This is so that we can add tm_diff results to a previous guess,
1678 which will be useful in a later patch.
1679
1680 mktime: simplify offset guess
1681 [BZ#23789]
1682 * time/mktime.c (__mktime_internal): Omit excess precision.
1683
1684 mktime: new test for mktime failure
1685 [BZ#23789]
1686 Based on a test suggested by Albert Aribaud in:
1687 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
1688 * time/Makefile (tests): Add bug-mktime4.
1689 * time/bug-mktime4.c: New file.
1690
1691 mktime: fix EOVERFLOW bug
1692 [BZ#23789]
1693 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
1694 Include libc-config.h, not config.h, for __set_errno.
1695 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
1696
1697 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1698
1699 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
1700 __attribute_copy__ to copy attributes from name. Drop static qualifier
1701 to avoid warnings about leaf attribute not having effect on static
1702 functions.
1703
1704 2018-11-13 Florian Weimer <fweimer@redhat.com>
1705
1706 * malloc/malloc.c (fastbin_push_entry): New function.
1707 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
1708 (REMOVE_FB): Remove macro.
1709 (_int_malloc): Use fastbin_pop_entry and reindent.
1710 (_int_free): Use fastbin_push_entry.
1711 (malloc_consolidate): Use atomic_exchange_acquire.
1712
1713 2018-11-13 Joseph Myers <joseph@codesourcery.com>
1714
1715 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
1716 alias attribute, not with strong_alias.
1717
1718 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
1719 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
1720 with additional parameter thread.
1721 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
1722 in terms of __hidden_ver2.
1723 (hidden_tls_def): New macro.
1724 (libc_hidden_tls_def): Likewise.
1725 (rtld_hidden_tls_def): Likewise.
1726 (libm_hidden_tls_def): Likewise.
1727 (libmvec_hidden_tls_def): Likewise.
1728 (libresolv_hidden_tls_def): Likewise.
1729 (librt_hidden_tls_def): Likewise.
1730 (libdl_hidden_tls_def): Likewise.
1731 (libnss_files_hidden_tls_def): Likewise.
1732 (libnsl_hidden_tls_def): Likewise.
1733 (libnss_nisplus_hidden_tls_def): Likewise.
1734 (libutil_hidden_tls_def): Likewise.
1735 (libutil_hidden_tls_def): Likweise.
1736 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
1737 libc_hidden_tls_def.
1738 (__sim_disabled_exceptions_thread): Likewise.
1739 (__sim_round_mode_thread): Likewise.
1740
1741 * sysdeps/sparc/sparc-ifunc.h [SHARED]
1742 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
1743 copy attributes from name.
1744
1745 2018-11-12 Joseph Myers <joseph@codesourcery.com>
1746
1747 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
1748 Use __attribute_copy__ to copy attributes from name.
1749
1750 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
1751 with __hidden_ver1 call.
1752 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
1753 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
1754 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
1755 (__cosf): Do not declare here.
1756 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
1757 (__sincosf): Do not declare here.
1758 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
1759 (__sinf): Do not declare here.
1760
1761 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
1762 (__BIG_ENDIAN): Likewise.
1763 (__BYTE_ORDER): Likewise.
1764 (strong_alias): Likewise.
1765 (_strong_alias): Likewise.
1766
1767 2018-11-12 Florian Weimer <fweimer@redhat.com>
1768
1769 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
1770 function. Move after the definition of in_smallbin_range. Do not
1771 use __builtin_expect for paths that lead to a noreturn function.
1772 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
1773 because it is unclear whether this is in fact an unlikely
1774 condition.
1775 (_int_malloc, _int_free): Adjust.
1776 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
1777 variables.
1778 * malloc/arena.c (heap_trim): Likewise.
1779
1780 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
1781
1782 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
1783 it, free it if needed.
1784 (reauthenticate): Test and use ccwdir.
1785 (child_init_port): In non-resetids case, test and use ccwdir.
1786 (child_chdir): New nested function to set ccwdir.
1787 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
1788 * hurd/hurd/port.h (_hurd_port_move): New function.
1789 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
1790 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
1791 * hurd/Versions (_hurd_port_move): Export function.
1792 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
1793 symbol.
1794 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
1795 of dtablesize for allocating dtable_cloexec.
1796
1797 2018-11-09 Martin Sebor <msebor@redhat.com>
1798
1799 * include/libc-symbols.h (__attribute_copy__): Define macro unless
1800 it's already defined.
1801 (_strong_alias): Use __attribute_copy__.
1802 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
1803 * misc/sys/cdefs.h (__attribute_copy__): New macro.
1804 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
1805 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
1806 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
1807 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
1808 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
1809 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
1810 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
1811 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
1812 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
1813 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
1814 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
1815 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
1816 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
1817 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
1818 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
1819 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
1820 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
1821
1822 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1823
1824 * misc/tst-efgcvt.c: Include support/check.h and
1825 support/test-driver.c. Do not include test-skeleton.c.
1826 (error_count): Remove.
1827 (output_error): Replace increments to error_count with calls to
1828 support_record_failure.
1829 (output_r_error): Likewise.
1830 (special): Likewise.
1831 (do_test): Unconditionally return zero.
1832 (TEST_FUNCTION): Remove.
1833
1834 2018-11-09 Joseph Myers <joseph@codesourcery.com>
1835
1836 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
1837 not $(@D)/scratch.
1838 ($(linknamespace-header-tests)): Likewise.
1839
1840 * conform/conformtest.py: New file.
1841 * conform/conformtest.pl: Remove.
1842 * conform/GlibcConform.pm: Likewise.
1843 * conform/glibcconform.py (KEYWORDS_C90): New constant.
1844 (KEYWORDS_C99): Likewise.
1845 (KEYWORDS): Likewise.
1846 * conform/Makefile ($(conformtest-header-tests)): Use
1847 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
1848 option. Use --header instead of --headers.
1849 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
1850 function entries.
1851 * conform/data/spawn.h-data: Likewise.
1852 * conform/data/fcntl.h-data (openat): Add space after function
1853 name.
1854 * conform/data/wchar.h-data (wcscasecmp): Likewise.
1855 (wcscasecmp_l): Likewise.
1856 * conform/data/termios.h-data (c_cc): Add space after element
1857 name.
1858
1859 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1860
1861 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
1862 instead of manually comparing and reporting mismatching strings.
1863 * misc/tst-ldbl-error.c (do_one_test): Likewise.
1864 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1865
1866 2018-11-08 Joseph Myers <joseph@codesourcery.com>
1867
1868 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
1869 __ASSUME_SOCKETCALL.
1870 * sysdeps/unix/sysv/linux/i386/kernel-features.h
1871 (__ASSUME_SOCKETCALL): Remove.
1872 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1873 (__ASSUME_SOCKETCALL): Likewise.
1874 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1875 (__ASSUME_SOCKETCALL): Likewise.
1876 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1877 (__ASSUME_SOCKETCALL): Likewise.
1878 * sysdeps/unix/sysv/linux/s390/kernel-features.h
1879 (__ASSUME_SOCKETCALL): Likewise.
1880 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1881 (__ASSUME_SOCKETCALL): Likewise.
1882 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1883 (__ASSUME_SOCKETCALL): Likewise.
1884
1885 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
1886
1887 [BZ #23509]
1888 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
1889 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
1890 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
1891 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
1892 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
1893 lc_unknown.
1894
1895 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
1896
1897 [BZ #17630]
1898 * resolv/tst-resolv-network.c: Add test for getnetbyname.
1899
1900 2018-11-07 Joseph Myers <joseph@codesourcery.com>
1901
1902 [BZ #23867]
1903 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1904 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
1905 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1906 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
1907
1908 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1909
1910 * support/support_test_compare_string.c
1911 (support_test_compare_string): Fix printf format.
1912
1913 2018-11-07 Florian Weimer <fweimer@redhat.com>
1914
1915 Implement TEST_COMPARE_STRING.
1916 * support/check.h (TEST_COMPARE_STRING): Define.
1917 (support_test_compare_string): Declare.
1918 * support/Makefile (libsupport-routines): Add
1919 support_test_compare_string.
1920 (tests): Add tst-test_compare_string.
1921 * support/support_test_compare_string.c: New file.
1922 * support/tst-test_compare_string.c: Likewise.
1923
1924 2018-11-07 Andreas Schwab <schwab@suse.de>
1925
1926 [BZ #23864]
1927 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
1928 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
1929 Undef.
1930
1931 2018-11-06 Joseph Myers <joseph@codesourcery.com>
1932
1933 [BZ #23862]
1934 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1935 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
1936 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
1937 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
1938 Likewise.
1939
1940 2018-11-06 Florian Weimer <fweimer@redhat.com>
1941
1942 [BZ #17405]
1943 * posix/Makefile (routines): Add spawn_faction_addchdir.
1944 (tests): Add tst-spawn-chdir.
1945 * posix/Versions (GLIBC_2.29): Add
1946 posix_spawn_file_actions_addchdir_np.
1947 * posix/spawn_faction_addchdir.c: New file.
1948 * posix/spawn_faction_destroy.c
1949 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
1950 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
1951 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
1952 chdir_action.
1953 * posix/tst-spawn-chdir.c: New file.
1954 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
1955 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1956 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
1957 posix_spawn_file_actions_addchdir_np.
1958 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
1959 Likewise.
1960 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
1961 Likewise.
1962 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
1963 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
1964 Likewise.
1965 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
1966 Likewise.
1967 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
1968 Likewise.
1969 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
1970 Likewise.
1971 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
1972 Likewise.
1973 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
1974 Likewise.
1975 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1976 (GLIBC_2.29): Likewise.
1977 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1978 (GLIBC_2.29): Likewise.
1979 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1980 (GLIBC_2.29): Likewise.
1981 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1982 (GLIBC_2.29): Likewise.
1983 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
1984 Likewise.
1985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1986 (GLIBC_2.29): Likewise.
1987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1988 (GLIBC_2.29): Likewise.
1989 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
1990 (GLIBC_2.29): Likewise.
1991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
1992 (GLIBC_2.29): Likewise.
1993 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
1994 Likewise.
1995 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
1996 Likewise.
1997 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
1998 Likewise.
1999 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
2000 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
2001 Likewise.
2002 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
2003 Likewise.
2004 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
2005 Likewise.
2006 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
2007 Likewise.
2008
2009 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2010
2011 * misc/Makefile (tests): Add tst-ldbl-error.
2012 * misc/tst-ldbl-error.c: New file.
2013
2014 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2015
2016 * misc/Makefile (tests): Add tst-ldbl-warn.
2017 * misc/tst-ldbl-warn.c: New file.
2018
2019 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2020
2021 * argp/Makefile (tests): Add tst-ldbl-argp.
2022 * argp/tst-ldbl-argp.c: New file.
2023
2024 2018-11-05 Arjun Shankar <arjun@redhat.com>
2025
2026 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
2027 __gconv_path_elem and call __gconv_get_path unconditionally.
2028
2029 2018-11-05 Andreas Schwab <schwab@suse.de>
2030
2031 [BZ #22927]
2032 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
2033 creating the first helper thread failed.
2034
2035 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2036
2037 * sysdeps/mach/hurd/msync.c: New file.
2038
2039 2018-11-02 Florian Weimer <fweimer@redhat.com>
2040
2041 * support/shell-container.c (copy_func): Call
2042 support_copy_file_range instead of copy_file_range to support
2043 cross-device copies.
2044
2045 2018-11-02 Florian Weimer <fweimer@redhat.com>
2046
2047 * support/test-container.c: Include <libc-pointer-arith.h> for
2048 ALIGN_UP.
2049
2050 2018-11-01 Zong Li <zong@andestech.com>
2051
2052 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
2053 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
2054 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
2055 (__FP_FRAC_SET_8): Add implementation for RV32 use.
2056
2057 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
2058 variable to avoid overlap arguments.
2059
2060 2018-11-01 Joseph Myers <joseph@codesourcery.com>
2061
2062 * posix/bug-regex22.c (main): Use puts with distinct error
2063 messages for unexpected success of re_compile_pattern, not printf
2064 with NULL argument to %s.
2065
2066 * stdio-common/bug22.c: Include <libc-diag.h>.
2067 (do_test): Disable -Wformat-overflow= warnings around fprintf
2068 calls outputting more than INT_MAX characters.
2069 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
2070 around printf call with NULL %s argument.
2071
2072 [BZ #23848]
2073 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
2074 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
2075 Undefine.
2076 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2077 (__ASSUME_RECVMSG_SYSCALL): Likewise.
2078 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2079 (__ASSUME_SENDTO_SYSCALL): Likewise.
2080 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2081 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
2082 [!__arch64__].
2083 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2084 (__ASSUME_CONNECT_SYSCALL): Likewise.
2085 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2086 (__ASSUME_RECVFROM_SYSCALL): Likewise.
2087 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
2088 Define.
2089 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
2090 Likewise.
2091 [__LINUX_KERNEL_VERSION >= 0x040400]
2092 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
2093 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
2094 Remove.
2095 (listen): Likewise.
2096 (setsockopt): Likewise.
2097
2098 2018-11-01 Fredrik Noring <noring@nocrew.org>
2099
2100 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
2101 with the ISA override.
2102
2103 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
2104
2105 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
2106 #endif.
2107
2108 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
2109
2110 * manual/errno.texi (EIEIO): Document how translators should
2111 translate the error message.
2112 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
2113 printing trailing whitespaces refused by git.
2114 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
2115 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
2116 * hurd/Makefile (user-interfaces): Add pci.
2117
2118 2018-10-30 Joseph Myers <joseph@codesourcery.com>
2119
2120 * conform/linknamespace.py: New file.
2121 * conform/linknamespace.pl: Remove file.
2122 * conform/Makefile ($(linknamespace-header-tests)): Use
2123 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
2124 option.
2125
2126 2018-10-30 Florian Weimer <fweimer@redhat.com>
2127
2128 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
2129 memory leaks.
2130
2131 2018-10-30 Florian Weimer <fweimer@redhat.com>
2132
2133 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
2134
2135 2018-10-30 Florian Weimer <fweimer@redhat.com>
2136
2137 * stdlib/tst-strtod-overflow.c (do_test): Switch to
2138 support_blob_repeat.
2139
2140 2018-10-30 Florian Weimer <fweimer@redhat.com>
2141
2142 Avoid spurious test failures in stdlib/test-bz22786.
2143 * support/Makefile (libsupport-routines): Add blob_repeat.
2144 (tests): Add tst-support_blob_repeat.
2145 * support/blob_repeat.h: New file.
2146 * support/blob_repeat.c: Likewise.
2147 * support/tst-support_blob_repeat.c: Likewise.
2148 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
2149 support_blob_repeat_allocate.
2150
2151 2018-10-30 Andreas Schwab <schwab@suse.de>
2152
2153 [BZ #23125]
2154 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
2155 Don't use tail call.
2156 * elf/tst-unwind-main.c: New file.
2157 * elf/Makefile (tests): Add tst-unwind-main.
2158 (CFLAGS-tst-unwind-main.c): Define.
2159
2160 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
2161
2162 [BZ #23791]
2163 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
2164 n_cs_precedes to 0.
2165 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
2166
2167 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2168
2169 * conform/glibcconform.py: Do not import shutil.
2170 (list_exported_functions): Use tempfile.TemporaryDirectory instead
2171 of mkdtemp.
2172
2173 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
2174 critic_missing for versions before 3.4.
2175 * configure: Regenerated.
2176 * manual/install.texi (Tools for Compilation): Document
2177 requirement for Python to build glibc.
2178 * INSTALL: Regenerated.
2179 * Rules [PYTHON]: Make code unconditional.
2180 * benchtests/Makefile [PYTHON]: Likewise.
2181 * conform/Makefile [PYTHON]: Likewise.
2182 * manual/Makefile [PYTHON]: Likewise.
2183 * math/Makefile [PYTHON]: Likewise.
2184
2185 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2186
2187 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
2188 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
2189 answer to interrupt_operation, return EIEIO instead of EINTR.
2190 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
2191 _hurd_intr_rpc_msg_about_to global point to start of controlled
2192 assembly snippet. Make it check canceled flag.
2193 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
2194 the _hurd_intr_rpc_msg_about_to point.
2195 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
2196 issue, remove cancel flag check.
2197
2198 2018-10-26 Joseph Myers <joseph@codesourcery.com>
2199
2200 * scripts/build-many-glibcs.py: Remove compatibility for missing
2201 os.cpu_count and re.fullmatch.
2202
2203 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
2204
2205 [BZ #23822]
2206 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
2207 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
2208 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
2209
2210 2018-10-25 Joseph Myers <joseph@codesourcery.com>
2211
2212 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
2213 macro.
2214
2215 2018-10-25 Florian Weimer <fweimer@redhat.com>
2216
2217 [BZ #23562]
2218 [BZ #23821]
2219 XFAIL siginfo_t si_band conform test on sparc64.
2220 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
2221 (__SI_BAND_TYPE): Only override long int default type on sparc64.
2222 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
2223 (conformtest-xfail-conds): Add sparc64-linux.
2224 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
2225 sparc64.
2226 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
2227
2228 2018-10-25 Joseph Myers <joseph@codesourcery.com>
2229
2230 * elf/elf.h (NT_MIPS_DSP): New macro.
2231 (NT_MIPS_FP_MODE): Likewise.
2232
2233 2018-10-25 Zong Li <zong@andestech.com>
2234
2235 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
2236 name by adding the file extension (.so).
2237
2238 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
2239
2240 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
2241 (test-xfail-ISO11/threads.h/linknamespace,
2242 test-xfail-ISO11/threads.h/conform): Add.
2243
2244 2018-10-24 Joseph Myers <joseph@codesourcery.com>
2245
2246 * math/gen-libm-test.py: Import os.
2247 (ALL_FLOATS_MANUAL): New constant.
2248 (ALL_FLOATS_SUFFIX): Likewise.
2249 (Ulps.all_functions): New function.
2250 (real_all_ulps): Likewise.
2251 (generate_err_table_sub): Likewise.
2252 (generate_err_table): Likewise.
2253 (main): Handle -s and -m options.
2254 * manual/libm-err-tab.pl: Remove.
2255 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
2256 instead of libm-err-tab.pl.
2257 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
2258 != no].
2259 * manual/install.texi (Tools for Compilation): Document
2260 requirement for Python to build manual.
2261 * INSTALL: Regenerated.
2262
2263 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
2264
2265 * bits/time64.h: New file.
2266 * include/time.h: Replace internal_time_t with __time64_t.
2267 * posix/bits/types (__time64_t): Add.
2268 * stdlib/Makefile: Add bits/time64.h to includes.
2269 * time/tzfile.c: Replace internal_time_t with __time64_t.
2270
2271 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2272
2273 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
2274 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
2275 __posix_spawn_file_actions_init, __posix_spawnattr_init,
2276 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
2277 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
2278 prototype.
2279 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
2280 * posix/spawn_faction_addclose.c
2281 (__posix_spawn_file_actions_addclose): Add hidden definition.
2282 * posix/spawn_faction_adddup2.c
2283 (__posix_spawn_file_actions_adddup2): Likewise.
2284 * posix/spawn_faction_destroy.c
2285 (__posix_spawn_file_actions_destroy): Likewise.
2286 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
2287 Likewise.
2288 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
2289 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
2290 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
2291 Likewise.
2292 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
2293 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
2294 Likewise.
2295
2296 2018-10-24 Andreas Schwab <schwab@suse.de>
2297
2298 [BZ #18093]
2299 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
2300 format cache.
2301 * elf/cache.c (print_cache): Likewise.
2302
2303 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
2304
2305 * bits/timesize.h: New file.
2306 * stdlib/Makefile (headers): Add bits/timesize.h.
2307 * sysdeps/unix/sysv/linux/bits/msq-pad.h
2308 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
2309 * sysdeps/unix/sysv/linux/bits/sem-pad.h
2310 (__SEM_PAD_AFTER_TIME): Likewise.
2311 * sysdeps/unix/sysv/linux/bits/shm-pad.h
2312 (__SHM_PAD_AFTER_TIME): Likewise.
2313 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
2314 (__MSQ_PAD_BEFORE_TIME): Likewise.
2315 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
2316 (__SEM_PAD_BEFORE_TIME): Likewise.
2317 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
2318 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
2319 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
2320 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
2321 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
2322 (__MSQ_PAD_BEFORE_TIME): Likewise.
2323 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
2324 (__SEM_PAD_BEFORE_TIME): Likewise.
2325 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
2326 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
2327 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
2328 (__MSQ_PAD_BEFORE_TIME): Likewise.
2329 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
2330 (__SEM_PAD_BEFORE_TIME): Likewise.
2331 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
2332 (__SHM_PAD_BEFORE_TIME): Likewise.
2333 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
2334 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2335 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
2336
2337 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
2338
2339 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
2340 USE_RDTSCP is defined.
2341 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
2342 USE_RDTSCP is defined.
2343
2344 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2345
2346 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
2347 defined.
2348
2349 [BZ #23709]
2350 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
2351 independently of other flags.
2352
2353 2018-10-23 Florian Weimer <fweimer@redhat.com>
2354
2355 * time/tst-mktime2.c (N_STRINGS): Remove.
2356 (set_timezone): New function.
2357 (spring_forward_gap): Call it. Use FAIL_EXIT1.
2358 (mktime_test1): Report localtime failure and check errno value.
2359 Use TEST_COMPARE.
2360 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
2361 (do_test): Remove alarm call. Use set_timezone and array_length.
2362
2363 2018-10-23 Andreas Schwab <schwab@suse.de>
2364
2365 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
2366 (__start_context): Use END instead of PSEUDO_END.
2367
2368 2018-10-22 Joseph Myers <joseph@codesourcery.com>
2369
2370 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2371 version to 4.19.
2372
2373 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2374 version to 4.19.
2375
2376 [BZ #23793]
2377 * wcsmbs/c32rtomb.c: New file.
2378 * wcsmbs/mbrtoc32.c: Likewise.
2379 * wcsmbs/tst-c32-state.c: Likewise.
2380 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
2381 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
2382 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
2383 (tests): Add tst-c32-state.
2384 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
2385 $(gen-locales).
2386
2387 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
2388
2389 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
2390 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
2391
2392 2018-10-19 Joseph Myers <joseph@codesourcery.com>
2393
2394 [BZ #23794]
2395 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
2396 pair and return 0 in that case, and use saved character to
2397 interpret following character.
2398 * wcsmbs/tst-c16-surrogate.c: New file.
2399 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
2400 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
2401 Depend on $(gen-locales)
2402
2403 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2404
2405 [BZ #23562]
2406 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
2407 (struct siginfo_t): Use correct type for si_band.
2408
2409 2018-10-19 Florian Weimer <fweimer@redhat.com>
2410
2411 [BZ #23689]
2412 * resource/bits/types/struct_rusage.h (struct rusage): Update
2413 comment on struct. Remove extraneous field comment.
2414
2415 2018-10-18 David S. Miller <davem@davemloft.net>
2416
2417 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
2418 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
2419 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
2420 sysdep_routines in subdir elf.
2421 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
2422 version for __vdso_clock_gettime.
2423 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
2424 Define.
2425 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
2426 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
2427
2428 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
2429
2430 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
2431
2432 * sysdeps/i386/init-arch.h: Removed.
2433 * sysdeps/i386/i586/init-arch.h: Likewise.
2434 * sysdeps/i386/i686/init-arch.h: Likewise.
2435 * sysdeps/i386/i686/hp-timing.h: Likewise.
2436 * sysdeps/x86_64/hp-timing.h: Likewise.
2437 * sysdeps/i386/isa.h: New file.
2438 * sysdeps/i386/i586/isa.h: Likewise.
2439 * sysdeps/i386/i686/isa.h: Likewise.
2440 * sysdeps/x86_64/isa.h: Likewise.
2441 * sysdeps/x86/hp-timing.h: New file.
2442 * sysdeps/x86/init-arch.h: Include <isa.h>.
2443
2444 2018-10-17 Joseph Myers <joseph@codesourcery.com>
2445
2446 * math/libm-test-pow.inc (pow_test_data): Do not allow
2447 divide-by-zero exception for pow(+/- 0, -Inf).
2448
2449 2018-10-17 Zack Weinberg <zackw@panix.com>
2450
2451 * manual/job.texi (Job Control is Optional): Remove node, as
2452 job control has not been optional in quite some time.
2453 (Job Control): Mention briefly that systems older than
2454 POSIX.1-2001 might not support job control.
2455 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
2456 defined on systems conforming to POSIX.1-2001.
2457
2458 2018-10-17 Arjun Shankar <arjun@redhat.com>
2459
2460 [BZ #22062]
2461 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
2462 indentation.
2463 * (__gconv_read_conf): Mark function static.
2464 * (once): New static variable.
2465 * (__gconv_load_conf): New function.
2466 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
2467 * iconv/gconv_db.c (once): Remove static variable.
2468 * (__gconv_compare_alias): Use __gconv_load_conf instead of
2469 __gconv_read_conf.
2470 * (__gconv_find_transform): Likewise.
2471 * iconv/tst-iconv-mt.c: New test.
2472 * iconv/Makefile: Add tst-iconv_mt.
2473
2474 2018-10-17 Joseph Myers <joseph@codesourcery.com>
2475
2476 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2477 bits/shm-pad.h.
2478 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
2479 (shmatt_t): Define as __syscall_ulong_t.
2480 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
2481 and [__SHM_PAD_AFTER_TIME].
2482 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
2483 Define shm_segsz and associated padding based on
2484 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
2485 Use __syscall_ulong_t instead of unsigned long int.
2486 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
2487 unsigned long int.
2488 [__USE_MISC] (struct shm_info): Likewise.
2489 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
2490 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
2491 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
2492 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
2493 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
2494 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2495 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
2496 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2497 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2498 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2499 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2500
2501 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2502 bits/shmlba.h.
2503 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
2504 (SHMLBA): Remove macro.
2505 (__getpagesize): Remove function declaration.
2506 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
2507 <bits/shmlba.h>.
2508 (SHMLBA): Remove macro.
2509 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
2510 <bits/shmlba.h>.
2511 (SHMLBA): Remove macro.
2512 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
2513 <bits/shmlba.h>.
2514 (SHMLBA): Remove macro.
2515 (__getpagesize): Remove function declaration.
2516 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
2517 <bits/shmlba.h>.
2518 (SHMLBA): Remove macro.
2519 (__getshmlba): Remove function declaration.
2520 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
2521 (SHMLBA): Remove macro.
2522 (__getpagesize): Remove function declaration.
2523 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
2524 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2525 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2526 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
2527 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
2528 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
2529 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
2530 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
2531 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
2532 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
2533
2534 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
2535
2536 [BZ #23275]
2537 * nptl/tst-mutex10.c: New File.
2538 * nptl/Makefile (tests): Add tst-mutex10.
2539 (tst-mutex10-ENV): New variable.
2540 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
2541 Ensure that elision path is used if elision is available.
2542 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
2543 Likewise.
2544 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
2545 Likewise.
2546 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
2547 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
2548 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
2549 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
2550 Likewise.
2551 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
2552 (__pthread_mutex_cond_lock_adjust): Likewise.
2553 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
2554 Likewise.
2555 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
2556 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
2557 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
2558 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
2559 Add comments.
2560 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
2561 Use atomic_load_relaxed and atomic_store_relaxed.
2562 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
2563 Use atomic_store_relaxed.
2564
2565 2018-10-17 Andreas Schwab <schwab@suse.de>
2566
2567 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
2568 * crypt/badsalttest.c (TIMEOUT): Likewise.
2569 * crypt/sha256c-test.c (TIMEOUT): Likewise.
2570 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
2571 * io/test-lfs.c (TIMEOUT): Likewise.
2572 * libio/tst-atime.c (TIMEOUT): Likewise.
2573 * localedata/tst-leaks.c (TIMEOUT): Likewise.
2574 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
2575 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
2576 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
2577 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
2578 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
2579 * nptl/tst-cond11.c (TIMEOUT): Likewise.
2580 * nptl/tst-cond14.c (TIMEOUT): Likewise.
2581 * nptl/tst-cond15.c (TIMEOUT): Likewise.
2582 * nptl/tst-cond24.c (TIMEOUT): Likewise.
2583 * nptl/tst-cond25.c (TIMEOUT): Likewise.
2584 * nptl/tst-kill2.c (TIMEOUT): Likewise.
2585 * nptl/tst-kill3.c (TIMEOUT): Likewise.
2586 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
2587 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
2588 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
2589 * nptl/tst-once2.c (TIMEOUT): Likewise.
2590 * nptl/tst-once3.c (TIMEOUT): Likewise.
2591 * nptl/tst-once4.c (TIMEOUT): Likewise.
2592 * nptl/tst-robust8.c (TIMEOUT): Likewise.
2593 * nptl/tst-robust9.c (TIMEOUT): Likewise.
2594 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
2595 * nptl/tst-sem14.c (TIMEOUT): Likewise.
2596 * nptl/tst-sem6.c (TIMEOUT): Likewise.
2597 * nptl/tst-signal3.c (TIMEOUT): Likewise.
2598 * nptl/tst-spin4.c (TIMEOUT): Likewise.
2599 * nptl/tst-tls3.c (TIMEOUT): Likewise.
2600 * nptl/tst-tls4.c (TIMEOUT): Likewise.
2601 * posix/tst-chmod.c (TIMEOUT): Likewise.
2602 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
2603 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
2604 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
2605 * posix/tst-regex2.c (TIMEOUT): Likewise.
2606 * posix/tst-waitid.c (TIMEOUT): Likewise.
2607 * rt/tst-aio.c (TIMEOUT): Likewise.
2608 * rt/tst-aio10.c (TIMEOUT): Likewise.
2609 * rt/tst-aio4.c (TIMEOUT): Likewise.
2610 * rt/tst-aio5.c (TIMEOUT): Likewise.
2611 * rt/tst-aio6.c (TIMEOUT): Likewise.
2612 * rt/tst-aio64.c (TIMEOUT): Likewise.
2613 * rt/tst-aio7.c (TIMEOUT): Likewise.
2614 * rt/tst-aio9.c (TIMEOUT): Likewise.
2615 * rt/tst-clock.c (TIMEOUT): Likewise.
2616 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
2617 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
2618 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
2619 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
2620 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
2621 * rt/tst-timer4.c (TIMEOUT): Likewise.
2622 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
2623 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
2624 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
2625 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
2626 * time/tst-ftime.c (TIMEOUT): Likewise.
2627 * timezone/tst-tzset.c (TIMEOUT): Likewise.
2628
2629 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2630
2631 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
2632 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
2633 for thunderX2.
2634
2635 2018-10-15 Joseph Myers <joseph@codesourcery.com>
2636
2637 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2638 bits/sem-pad.h.
2639 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
2640 instead of <bits/wordsize.h>.
2641 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
2642 and [__SEM_PAD_AFTER_TIME].
2643 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
2644 __syscall_ulong_t instead of unsigned long int.
2645 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
2646 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
2647 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
2648 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
2649 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
2650 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
2651 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
2652 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
2653 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
2654 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
2655 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
2656
2657 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
2658
2659 regex: simplify by using intprops.h
2660 [BZ#23744]
2661 * posix/regex_internal.h [_LIBC]: Include intprops.h.
2662 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
2663 intprops.h defines them.
2664
2665 regex: __builtin_expect → __glibc_unlikely
2666 [BZ#23744]
2667 This refactoring was prompted by a problem when the regex code is
2668 used as part of Gnulib and when the builder’s compiler does not grok
2669 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
2670 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
2671 Although this refactoring does not fix the problem directly,
2672 we might as well have Gawk use the now-preferred glibc style for when
2673 __builtin_expect is unavailable.
2674 * posix/regex_internal.h (BE): Remove.
2675 All uses replaced by __glibc_unlikely or __glibc_likely.
2676
2677 2018-10-11 Joseph Myers <joseph@codesourcery.com>
2678
2679 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2680 bits/msq-pad.h.
2681 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
2682 instead of <bits/wordsize.h>.
2683 (msgqnum_t): Define as __syscall_ulong_t.
2684 (msglen_t): Likewise.
2685 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
2686 and [__MSQ_PAD_AFTER_TIME].
2687 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
2688 __syscall_ulong_t instead of unsigned long int.
2689 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
2690 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
2691 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
2692 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
2693 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
2694 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
2695 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
2696 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
2697 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
2698 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
2699 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
2700
2701 2018-10-10 Joseph Myers <joseph@codesourcery.com>
2702
2703 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
2704 (struct shmid_ds): Condition padding after time fields on
2705 [__WORDSIZE == 32].
2706 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
2707 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
2708 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2709
2710 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
2711 (struct semid_ds): Condition padding after time fields on
2712 [__WORDSIZE == 32].
2713 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
2714 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
2715 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
2716 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
2717
2718 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
2719 (struct msqid_ds): Condition padding after time fields on
2720 [__WORDSIZE == 32].
2721 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
2722 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
2723 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
2724 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
2725
2726 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
2727
2728 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
2729
2730 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
2731
2732 * libio/tst-readline.c (TIMEOUT): Define.
2733
2734 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
2735
2736 mktime fix for Gnulib + coreutils
2737 [BZ#23745]
2738 This fix affects only Gnulib. Problem discovered when
2739 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
2740 * time/mktime.c:
2741 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
2742 Do not define since it is not used. Defining an unused static
2743 function prompts a warning from GCC when Coreutils is configured
2744 with --enable-gcc-warnings.
2745
2746 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2747
2748 * benchtests/scripts/compare_bench.py (main): set float type on
2749 threshold argument.
2750
2751 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
2752
2753 [BZ #23740]
2754 * localedata/locales/kl_GL (mon): Update, the relative case.
2755 (alt_mon): Add, fill with month names in the nominative case.
2756 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
2757 (d_fmt): Set to "%b %d %Y".
2758
2759 2018-10-04 Joseph Myers <joseph@codesourcery.com>
2760
2761 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
2762 <bits/mman-linux.h>.
2763 (PROT_READ): Don't define here.
2764 (PROT_WRITE): Likewise.
2765 (PROT_EXEC): Likewise.
2766 (PROT_NONE): Likewise.
2767 (PROT_GROWSDOWN): Likewise.
2768 (PROT_GROWSUP): Likewise.
2769 (MAP_SHARED): Likewise.
2770 (MAP_PRIVATE): Likewise.
2771 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
2772 [__USE_MISC] (MAP_FILE): Likewise.
2773 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
2774 [__USE_MISC] (MAP_ANON): Likewise.
2775 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
2776 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
2777 (MCL_CURRENT): Likewise.
2778 (MCL_FUTURE): Likewise.
2779 (MCL_ONFAULT): Likewise.
2780 [__USE_MISC] (MADV_NORMAL): Likewise.
2781 [__USE_MISC] (MADV_RANDOM): Likewise.
2782 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
2783 [__USE_MISC] (MADV_WILLNEED): Likewise.
2784 [__USE_MISC] (MADV_DONTNEED): Likewise.
2785 [__USE_MISC] (MADV_FREE): Likewise.
2786 [__USE_MISC] (MADV_REMOVE): Likewise.
2787 [__USE_MISC] (MADV_DONTFORK): Likewise.
2788 [__USE_MISC] (MADV_DOFORK): Likewise.
2789 [__USE_MISC] (MADV_HWPOISON): Likewise.
2790 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
2791 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
2792 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
2793 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
2794 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
2795 (__MAP_ANONYMOUS): New macro.
2796 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
2797 <bits/mman-linux.h> inclusion.
2798 (MAP_FIXED): Likewise.
2799 (MS_SYNC): Likewise.
2800 (MS_ASYNC): Likewise.
2801 (MS_INVALIDATE): Likewise.
2802 [__USE_MISC] (MADV_MERGEABLE): Likewise.
2803 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
2804 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
2805 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
2806 [__USE_MISC] (MADV_DONTDUMP): Likewise.
2807 [__USE_MISC] (MADV_DODUMP): Likewise.
2808 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
2809 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
2810
2811 [BZ #23735]
2812 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
2813 Define.
2814 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
2815 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
2816 Add test-nldbl-redirect.
2817 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
2818 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
2819 $(objpfx)libnldbl_nonshared.a.
2820
2821 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
2822
2823 * support/support.h (support_objdir_elf_ldso): New variable.
2824 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
2825 * support/Makefile (CFLAGS-support_paths.c): Add definition
2826 for OBJDIR_ELF_LDSO_PATH.
2827 * support/test-container.c (main): Search for the ld.so
2828 which is also used by the testsuite.
2829
2830 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
2831
2832 [BZ #20209]
2833 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
2834 should be "sap" rather than "sab".
2835 (day): Fix spelling of Sunday, should be "sapaat" rather than
2836 "sabaat".
2837
2838 2018-10-02 Joseph Myers <joseph@codesourcery.com>
2839
2840 * math/libm-test-fma.inc (fma_test_data): Add more tests.
2841
2842 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
2843
2844 [BZ #19444]
2845 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
2846 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
2847 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
2848
2849 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2850
2851 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
2852
2853 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
2854
2855 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
2856 Add -mrtm.
2857 (CFLAGS-elision-unlock.c): Likewise.
2858 (CFLAGS-elision-timed.c): Likewise.
2859 (CFLAGS-elision-trylock.c): Likewise.
2860 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
2861
2862 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2863
2864 [BZ #21037]
2865 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
2866 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
2867 new fd_to_filename interface.
2868 * libio/freopen64.c (freopen64): Likewise.
2869 * libio/tst-memstream.h: New file.
2870 * libio/tst-memstream4.c: Likewise.
2871 * libio/tst-wmemstream4.c: Likewise.
2872 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
2873 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
2874 and remove internal dynamic allocation.
2875
2876 2018-10-01 Joseph Myers <joseph@codesourcery.com>
2877
2878 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
2879 (MREMAP_MAYMOVE): Do not define here.
2880 [__USE_GNU] (MREMAP_FIXED): Likewise.
2881 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
2882 (MREMAP_MAYMOVE): Define here instead.
2883 [__USE_GNU] (MREMAP_FIXED): Likewise.
2884 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
2885 (MREMAP_MAYMOVE): Remove.
2886 [__USE_GNU] (MREMAP_FIXED): Likewise.
2887
2888 2018-09-28 Joseph Myers <joseph@codesourcery.com>
2889
2890 * math/fromfp.h: Do not include <math_private.h>.
2891 * math/s_cacosh_template.c: Likewise.
2892 * math/s_casin_template.c: Likewise.
2893 * math/s_casinh_template.c: Likewise.
2894 * math/s_ccos_template.c: Likewise.
2895 * math/s_cproj_template.c: Likewise.
2896 * math/s_fdim_template.c: Likewise.
2897 * math/s_fmaxmag_template.c: Likewise.
2898 * math/s_fminmag_template.c: Likewise.
2899 * math/s_iseqsig_template.c: Likewise.
2900 * math/s_ldexp_template.c: Likewise.
2901 * math/s_nextdown_template.c: Likewise.
2902 * math/w_log1p_template.c: Likewise.
2903 * math/w_scalbln_template.c: Likewise.
2904 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
2905 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
2906 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
2907 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
2908 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
2909 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
2910 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
2911 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
2912 * sysdeps/i386/fpu/s_atanl.c: Likewise.
2913 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
2914 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
2915 * sysdeps/i386/fpu/s_fdim.c: Likewise.
2916 * sysdeps/i386/fpu/s_logbl.c: Likewise.
2917 * sysdeps/i386/fpu/s_rintl.c: Likewise.
2918 * sysdeps/i386/fpu/s_significandl.c: Likewise.
2919 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
2920 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
2921 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2922 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2923 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
2924 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
2925 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2926 * sysdeps/ieee754/k_standardf.c: Likewise.
2927 * sysdeps/ieee754/k_standardl.c: Likewise.
2928 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2929 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
2930 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
2931 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
2932 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
2933 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
2934 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2935 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
2936 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
2937 * sysdeps/ieee754/s_signgam.c: Likewise.
2938 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
2939 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
2940 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
2941 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
2942 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
2943 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
2944 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2945 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
2946 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
2947 * sysdeps/riscv/rvd/s_finite.c: Likewise.
2948 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
2949 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
2950 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
2951 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
2952 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
2953 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
2954 * sysdeps/riscv/rvf/fegetround.c: Likewise.
2955 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
2956 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
2957 * sysdeps/riscv/rvf/fesetround.c: Likewise.
2958 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
2959 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
2960 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
2961 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
2962 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
2963 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
2964 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
2965 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
2966 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
2967 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
2968 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
2969 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
2970 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
2971 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
2972 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2973 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
2974 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
2975 <math_private.h>.
2976 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
2977
2978 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
2979
2980 [BZ #23716]
2981 * sysdeps/i386/dl-cet.c: Removed.
2982 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
2983 prototype.
2984 (_dl_runtime_profile_shstk): Likewise.
2985 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
2986 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
2987
2988 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2989
2990 [BZ #23579]
2991 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
2992 do_test_with_invalid_iov): New tests.
2993 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
2994 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
2995 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
2996 errno is ENOSYS.
2997 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2998 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2999 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
3000
3001 2018-09-27 Joseph Myers <joseph@codesourcery.com>
3002
3003 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3004 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
3005 (MATH_REDIRECT_BINARY_ARGS): New macro.
3006 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3007 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
3008 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
3009 header inclusion.
3010 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
3011 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3012 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
3013 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3014 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
3015 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
3016 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
3017 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3018 Likewise.
3019 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3020 Likewise.
3021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3023 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
3024 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
3025 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
3026 Likewise.
3027 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
3028 Likewise.
3029 * sysdeps/generic/math_private_calls.h
3030 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
3031 Do not declare and define as an inline function.
3032 * math/divtc3.c (__divtc3): Use copysign functions instead of
3033 __copysign variants.
3034 * math/multc3.c (__multc3): Likewise.
3035 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
3036 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
3037 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
3038 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
3039 Likewise.
3040 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
3041 (__ieee754_yn): Likewise.
3042 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
3043 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
3044 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
3045 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3046 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
3047 (__sin): Likewise.
3048 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
3049 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3050 Likewise.
3051 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3052 Likewise.
3053 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3054 Likewise.
3055 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
3056 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3057 Likewise.
3058 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
3059 (__ieee754_ynf): Likewise.
3060 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
3061 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3062 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
3063 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3064 Likewise.
3065 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3066 (__ieee754_ynl): Likewise.
3067 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3068 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3069 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3070 Likewise.
3071 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3072 (__ieee754_ynl): Likewise.
3073 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
3074 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3075 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3076 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3077 Likewise.
3078 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3079 (__ieee754_ynl)
3080 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
3081 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3082 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
3083 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3084 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3085
3086 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3087 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
3088 using MATH_REDIRECT.
3089 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
3090 header inclusion.
3091 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
3092 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3093 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3094 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
3095 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3096 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
3097 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
3098 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
3099 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
3100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
3101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
3102 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3103 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3104 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
3105 (round): Redirect to __round.
3106 (__roundl): Call round instead of __round.
3107 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
3108 Remove macro.
3109 [_ARCH_PWR5X] (__roundf): Likewise.
3110 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
3111 functions instead of __round variants.
3112 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
3113 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
3114 Likewise.
3115 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
3116 Likewise.
3117 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
3118 Likewise.
3119 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
3120 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
3121 __lroundl.
3122 (__ieee754_expl): Call roundl instead of __roundl.
3123
3124 2018-09-27 Andreas Schwab <schwab@suse.de>
3125
3126 [BZ #23717]
3127 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
3128 (do_test): Make st1 static.
3129
3130 2018-09-26 Andreas Schwab <schwab@suse.de>
3131
3132 [BZ #23707]
3133 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
3134 * elf/Makefile (tests): Add tst-unwind-ctor.
3135 (modules-names): Add tst-unwind-ctor-lib.
3136 ($(objpfx)tst-unwind-ctor): Depend on
3137 $(objpfx)tst-unwind-ctor-lib.so.
3138
3139 2018-09-26 Joseph Myers <joseph@codesourcery.com>
3140
3141 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
3142 file. Most contents moved from ....
3143 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
3144 and include <bits/mman-map-flags-generic.h>.
3145 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3146 (sysdep_headers): Add bits/mman-map-flags-generic.h.
3147 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
3148 <bits/mman-map-flags-generic.h>.
3149 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
3150 macros defined in <bits/mman-map-flags-generic.h>.
3151 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
3152 <bits/mman-map-flags-generic.h>.
3153 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
3154 defined in <bits/mman-map-flags-generic.h>.
3155
3156 2018-09-26 Andreas Schwab <schwab@suse.de>
3157
3158 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
3159 output.
3160
3161 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
3162 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3163 Fangrui Song <maskray@google.com>
3164
3165 [BZ #20480]
3166 * config.make.in (have-textrel_ifunc): New define.
3167 * configure.ac: Add check if linker supports textrel relocation with
3168 ifunc.
3169 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
3170 tst-ifunc-textrel.
3171 (CFLAGS-tst-ifunc-textrel.c): New rule.
3172 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
3173 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
3174 * elf/tst-ifunc-textrel.c: New file.
3175
3176 2018-09-25 Joseph Myers <joseph@codesourcery.com>
3177
3178 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
3179 <bits/procfs-prregset.h>.
3180 (prgregset_t): Define using __prgregset_t.
3181 (prfpregset_t): Define using __prfpregset_t.
3182 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3183 (sysdep_headers): Add bits/procfs-prregset.h.
3184 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
3185 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
3186 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
3187 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
3188
3189 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
3190 <bits/procfs-id.h> and <bits/procfs-extra.h>.
3191 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
3192 pr_uid and pr_gid.
3193 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3194 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
3195 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
3196 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
3197 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
3198 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
3199 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
3200 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
3201 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
3202 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
3203 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
3204 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
3205 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
3206 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
3207 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
3208 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
3209 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
3210 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
3211 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
3212 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
3213 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
3214 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
3215 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3216 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
3217
3218 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
3219 AArch64 version. Include <bits/procfs.h>.
3220 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3221 (sysdep_headers): Add bits/procfs.h.
3222 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
3223 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
3224 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
3225 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
3226 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
3227 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
3228 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
3229 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
3230 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
3231 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
3232 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
3233 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
3234 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
3235 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
3236 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
3237 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3238 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
3239
3240 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3241
3242 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
3243 Use libsupport.
3244
3245 2018-09-25 Arjun Shankar <arjun@redhat.com>
3246
3247 * iconv/gconv_int.h (__gconv_path_elem): Remove.
3248 (__gconv_max_path_elem_len): Likewise.
3249 (__gconv_nmodules): Likewise.
3250 (__gconv_get_path): Likewise.
3251 (path_elem): Move to ...
3252 * iconv/gconv_conf.c: ... here.
3253 (__gconv_get_path): Mark function static.
3254 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
3255 * iconv/gconv_open.c: ... here.
3256
3257 2018-09-24 Andreas Schwab <schwab@suse.de>
3258
3259 * scripts/haveversions.awk: New file.
3260 * Makerules ($(common-objpfx)Versions.def)
3261 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
3262 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
3263 Move rules ...
3264 * Makeconfig ($(common-objpfx)Versions.def)
3265 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
3266 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
3267 ... here.
3268 ($(common-objpfx)Versions.mk): New rule. Include it.
3269 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
3270 Emit error if build-obsolete-nsl = yes.
3271 * manual/install.texi (Configuring and compiling): Describe
3272 --enable-obsolete-nsl as unavaiable after version 2.28.
3273 * INSTALL: Regenerate.
3274
3275 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3276
3277 * NEWS: Add note about new TLE support on powerpc64le.
3278 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
3279 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
3280 __ununsed1.
3281 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
3282 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
3283 * sysdeps/powerpc/powerpc32/sysdep.h,
3284 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
3285 ABORT_TRANSACTION): Remove macros.
3286 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
3287 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
3288 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
3289 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
3290 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3291 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
3292 usage.
3293 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
3294
3295 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
3296
3297 [BZ #10425]
3298 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
3299 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
3300 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
3301 which is the same as in it_IT.
3302 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
3303 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
3304
3305 2018-09-20 Joseph Myers <joseph@codesourcery.com>
3306
3307 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3308 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
3309 using MATH_REDIRECT.
3310 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
3311 header inclusion.
3312 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
3313 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
3314 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
3315 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3316 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
3317 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
3319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
3320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
3321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
3322 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3323 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3324 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
3325 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
3326 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
3327 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
3328 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
3329 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3330 (ceil): Redirect to __ceil.
3331 (floor): Redirect to __floor.
3332 (trunc): Redirect to __trunc.
3333 (__truncl): Call trunc instead of __trunc.
3334 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
3335 Remove macro.
3336 [_ARCH_PWR5X] (__truncf): Likewise.
3337 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
3338 trunc functions instead of __trunc variants.
3339 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3340 Likewise.
3341 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3342 Likewise.
3343 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3344 Likewise.
3345 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3346 Likewise.
3347
3348 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
3349 [__i586__ || __pentium__].
3350 [__i486__]: Handle explicitly.
3351 (HAS_CPUID): Define to 1 if above macros are undefined.
3352 (HAS_I586): Likewise.
3353 (HAS_I686): Likewise.
3354
3355 2018-09-20 Florian Weimer <fweimer@redhat.com>
3356
3357 * misc/tst-gethostid.c: New file.
3358 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
3359 (tst-gethostid): Link with -ldl.
3360
3361 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
3362
3363 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
3364 value from gethostbyname_r.
3365
3366 2018-09-19 Carlos O'Donell <carlos@redhat.com>
3367
3368 * stdlib/tst-setcontext9.c (f1): Rename to...
3369 (f1a): ... this.
3370 (f1b): New function implementing lower half of f1 in alternate stack.
3371
3372 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
3373
3374 Fix mktime localtime offset confusion
3375 [BZ #23603]
3376 * include/time.h (__mktime_internal): The localtime offset is now
3377 of type long int instead of time_t. This is the longstanding type
3378 in glibc, and it is more than enough to represent difference
3379 between localtime and gmtime even if it is 32 bits and time_t is
3380 64. Changing it now will let us avoid an unnecessary change when
3381 time_t is widened to 64 bits on 32-bit platforms.
3382 * time/mktime-internal.h (mktime_offset_t): Now long int.
3383
3384 Merge mktime, timegm from upstream Gnulib
3385 [BZ #23603][BZ #16346]
3386 This fixes some obscure problems with integer overflow.
3387 Although it looks scary, it is almost all a byte-for-byte copy
3388 from Gnulib, and the Gnulib code has been tested reasonably well.
3389 * include/intprops.h: New file, copied from Gnulib.
3390 * include/verify.h, time/mktime-internal.h:
3391 New tiny files, simplified from Gnulib.
3392 * time/mktime.c: Copy from Gnulib. This has the following changes:
3393 Do not include config.h if DEBUG_MKTIME is nonzero.
3394 Include stdbool.h, intprops.h, verify.h.
3395 Include string.h only if needed.
3396 Include stdlib.h on MS-Windows.
3397 Include mktime-internal.h.
3398 (DEBUG_MKTIME): Default to 0, and simplify later uses.
3399 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
3400 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
3401 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
3402 simplify later conditionals; default the others to zero. Use
3403 these conditionals to express only the code needed on the current
3404 platform. In uses of these conditionals, explicitly spell out how
3405 _LIBC affects things, so it’s easier to review from a glibc
3406 viewpoint.
3407 (WRAPV): Remove; no longer needed now that we have
3408 systematic overflow checking.
3409 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
3410 compartmentalize tzset issues. Move system-dependent tzsettish
3411 code here from mktime.
3412 (verify): Remove; now done by verify.h. All uses changed.
3413 (long_int): Use a more-conservative definition, to avoid
3414 integer overflow.
3415 (SHR): Remove, replacing with ...
3416 (shr): New function, which means we needn’t worry about side
3417 effects in args, and conversion analysis is simpler.
3418 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
3419 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
3420 (time_t_avg, time_t_add_ok): Remove.
3421 (mktime_min, mktime_max): New constants.
3422 (leapyear, isdst_differ): Use bool for booleans.
3423 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
3424 Use long_int, not time_t, for mktime differences.
3425 (long_int_avg): New function, replacing time_t_avg.
3426 INT_ADD_WRAPV replaces time_t_add_ok.
3427 (guess_time_tm): 6th arg is now long_int, not time_t const *.
3428 All uses changed.
3429 (convert_time): New function.
3430 (ranged_convert): Use it.
3431 (__mktime_internal): Last arg now points to mktime_offset_t, not
3432 time_t. All uses changed. This is a no-op on glibc, where
3433 mktime_offset_t is always time_t. Use int, not time_t, for UTC
3434 offset guess. Directly check for integer overflow instead of
3435 using a heuristic that works only 99.9...% of the time.
3436 Access *OFFSET only once, to avoid an unlikely race if the
3437 compiler delays a load and if this cascades into a signed integer
3438 overflow.
3439 (mktime): Move tzsettish code to my_tzset, and move
3440 localtime_offset to within mktime so that it doesn’t
3441 need a separate ifdef.
3442 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
3443 instead of localtime.
3444 * time/timegm.c: Copy from Gnulib. This has the following changes:
3445 Include mktime-internal.h.
3446 [!_LIBC]: Include config.h and time.h. Do not include
3447 timegm.h or time_r.h. Make __mktime_internal a macro,
3448 and include mktime-internal.h to get its declaration.
3449 (timegm): Temporary is now mktime_offset_t, not time_t.
3450 This affects only Gnulib.
3451
3452 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3453
3454 [BZ #23637]
3455 * string/test-strstr.c (pr23637): New function.
3456 (test_main): Add tests with longer needles.
3457 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
3458 * string/strstr.c (AVAILABLE): Likewise.
3459
3460 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3461
3462 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
3463
3464 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3465
3466 * NEWS: Mention pow improvements.
3467 * math/Makefile (type-double-routines): Add e_pow_log_data.
3468 * sysdeps/generic/math_private.h (__exp1): Remove.
3469 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
3470 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
3471 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
3472 contraction.
3473 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
3474 (exp_inline): Remove.
3475 (__ieee754_exp): Only single double input is handled.
3476 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
3477 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
3478 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
3479 (__pow_log_data): Define.
3480 * sysdeps/ieee754/dbl-64/upow.h: Remove.
3481 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
3482 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
3483 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
3484 contraction.
3485 (CFLAGS-e_pow-fma4.c): Likewise.
3486
3487 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
3488
3489 Simplify tzfile fstat failure code
3490 [BZ #21716]
3491 * time/tzfile.c (__tzfile_read): Simplify slightly.
3492
3493 Fix tzfile low-memory assertion failure
3494 [BZ #21716]
3495 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
3496 when registering time zone abbreviations.
3497
3498 2018-09-18 Joseph Myers <joseph@codesourcery.com>
3499
3500 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
3501 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
3502 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3503 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3504 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
3505 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
3506 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
3507 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3508 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3509
3510 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
3511 __ceil.
3512 (__ceill): Call ceil instead of __ceil.
3513 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
3514 __floor.
3515 (__floorl): Call floor instead of __floor.
3516
3517 2018-09-17 Joseph Myers <joseph@codesourcery.com>
3518
3519 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3520 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
3521 using MATH_REDIRECT.
3522 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
3523 header inclusion.
3524 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
3525 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3526 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3527 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
3528 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3529 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3530 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
3531 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
3532 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
3533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
3534 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
3535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
3536 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
3537 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3538 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
3539 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
3540 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
3541 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
3542 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
3543 Remove macro.
3544 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
3545 functions instead of __ceil variants.
3546 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
3547 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
3548 Likewise.
3549 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
3550 Likewise.
3551 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
3552 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
3553 Likewise.
3554 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3555 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3556
3557 [BZ #21286]
3558 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
3559 constant.
3560 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
3561 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
3562 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
3563 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
3564 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
3565 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
3566 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
3567 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
3568 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
3569 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
3570 (ILL_BADIADDR): Remove constant.
3571 (TRAP_BRANCH): Likewise.
3572 (TRAP_HWBKPT): Likewise.
3573
3574 2018-09-14 Joseph Myers <joseph@codesourcery.com>
3575
3576 [BZ #23656]
3577 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
3578 Remove [_MIPS_SIM = _ABIN32] conditional case.
3579 (struct elf_prpsinfo): Likewise.
3580
3581 [BZ #23649]
3582 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
3583 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
3584 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
3585 Likewise.
3586 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
3587 elf_prpsinfo): Likewise.
3588 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
3589 elf_prpsinfo): Likewise.
3590 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
3591 Likewise.
3592
3593 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3594 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
3595 using MATH_REDIRECT.
3596 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
3597 header inclusion.
3598 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
3599 * sysdeps/alpha/fpu/s_rint.c: Likewise.
3600 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
3601 * sysdeps/i386/fpu/s_rintl.c: Likewise.
3602 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3603 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3604 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
3605 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3606 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3607 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
3608 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
3609 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
3610 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
3611 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
3612 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
3613 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
3614 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3615 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
3616 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
3617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
3618 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
3619 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
3620 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
3621 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
3622 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
3623 * sysdeps/x86_64/fpu/math_private.h: Remove file.
3624 * math/e_scalb.c (invalid_fn): Use rint functions instead of
3625 __rint variants.
3626 * math/e_scalbf.c (invalid_fn): Likewise.
3627 * math/e_scalbl.c (invalid_fn): Likewise.
3628 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
3629 Likewise.
3630 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3631 Likewise.
3632 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
3633 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
3634 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3635 Likewise.
3636 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3637 Likewise.
3638 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3639 Likewise.
3640 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
3641 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3642
3643 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3644 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
3645 New macro.
3646 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3647 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
3648 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3649 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
3650 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3651 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
3652 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3653 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
3654 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3655 && !NO_MATH_REDIRECT] (floor): Likewise.
3656 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
3657 header inclusion.
3658 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
3659 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3660 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3661 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
3662 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3663 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3664 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
3665 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
3666 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
3667 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
3668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
3669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
3670 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3671 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3672 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
3673 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
3674 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
3675 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
3676 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
3677 Remove macro.
3678 [_ARCH_PWR5X] (__floorf): Likewise.
3679 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
3680 inline function.
3681 [__SSE4_1__] (__floorf): Likewise.
3682 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
3683 instead of __floor variants.
3684 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
3685 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
3686 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
3687 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
3688 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
3689 * math/w_tgamma_compat.c (__tgamma): Likewise.
3690 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
3691 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
3692 * math/w_tgammal_compat.c (__tgammal): Likewise.
3693 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
3694 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
3695 Likewise.
3696 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
3697 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
3698 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
3699 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3700 Likewise.
3701 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3702 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
3703 Likewise.
3704 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
3705 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
3706 Likewise.
3707 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3708 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
3709 Likewise.
3710 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
3711 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
3712 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
3713 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
3714 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3715 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3716
3717 2018-09-12 Joseph Myers <joseph@codesourcery.com>
3718
3719 * elf/Makefile (modules-names-tests): New variable.
3720
3721 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
3722
3723 * NEWS: Mention log2 improvements.
3724 * math/Makefile (type-double-routines): Add e_log2_data.
3725 * sysdeps/i386/fpu/e_log2_data.c: New file.
3726 * sysdeps/ia64/fpu/e_log2_data.c: New file.
3727 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
3728 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
3729 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
3730 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
3731 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
3732
3733 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
3734
3735 * NEWS: Mention log improvement.
3736 * math/Makefile (type-double-routines): Add e_log_data.
3737 * sysdeps/i386/fpu/e_log_data.c: New file.
3738 * sysdeps/ia64/fpu/e_log_data.c: New file.
3739 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
3740 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
3741 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
3742 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
3743 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
3744 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
3745
3746 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
3747 Xuepeng Guo <xuepeng.guo@intel.com>
3748
3749 [BZ #23606]
3750 * sysdeps/i386/start.S: Include <sysdep.h>
3751 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
3752 enabled. Add cfi_undefined (eip).
3753
3754 2018-09-11 Joseph Myers <joseph@codesourcery.com>
3755
3756 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
3757 (MOVQ): Likewise.
3758 (EXTRACT_WORDS64): Likewise.
3759 (INSERT_WORDS64): Likewise.
3760 (GET_FLOAT_WORD): Likewise.
3761 (SET_FLOAT_WORD): Likewise.
3762
3763 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
3764 argument.
3765 (Config.build_gcc): Use --disable-libsanitizer for first GCC
3766 build, but not for second build if --full-gcc. Use
3767 --enable-languages=all for second build if --full-gcc.
3768 (get_parser): Add --full-gcc option.
3769 (main): Update call to Context.
3770
3771 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
3772
3773 [BZ #10797]
3774 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
3775 Single Quotation Mark).
3776 (thousands_sep): Likewise.
3777 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
3778 * localedata/locales/it_IT (thousands_sep): Use ".".
3779 (grouping): Use "3;3".
3780
3781 2018-09-10 Joseph Myers <joseph@codesourcery.com>
3782
3783 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3784 x86_64 and i686 configs using --enable-obsolete-rpc
3785 --enable-obsolete-nsl.
3786
3787 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
3788
3789 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3790
3791 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
3792
3793 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
3794 Increment size of new_argv by one.
3795
3796 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
3797
3798 [BZ #17426]
3799 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
3800 * localedata/locales/ar_IN (d_fmt): Likewise.
3801 * localedata/locales/bhb_IN (d_fmt): Likewise.
3802 * localedata/locales/bho_IN (d_fmt): Likewise.
3803 * localedata/locales/bn_BD (d_fmt): Likewise.
3804 * localedata/locales/bn_IN (d_fmt): Likewise.
3805 * localedata/locales/doi_IN (d_fmt): Likewise.
3806 * localedata/locales/gu_IN (d_fmt): Likewise.
3807 * localedata/locales/hi_IN (d_fmt): Likewise.
3808 * localedata/locales/hne_IN (d_fmt): Likewise.
3809 * localedata/locales/kn_IN (d_fmt): Likewise.
3810 * localedata/locales/mag_IN (d_fmt): Likewise.
3811 * localedata/locales/mai_IN (d_fmt): Likewise.
3812 * localedata/locales/mjw_IN (d_fmt): Likewise.
3813 * localedata/locales/ml_IN (d_fmt): Likewise.
3814 * localedata/locales/mni_IN (d_fmt): Likewise.
3815 * localedata/locales/mr_IN (d_fmt): Likewise.
3816 * localedata/locales/pa_IN (d_fmt): Likewise.
3817 * localedata/locales/raj_IN (d_fmt): Likewise.
3818 * localedata/locales/sat_IN (d_fmt): Likewise.
3819 * localedata/locales/sd_IN (d_fmt): Likewise.
3820 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
3821 * localedata/locales/ta_IN (d_fmt): Likewise.
3822 * localedata/locales/ta_LK (d_fmt): Likewise.
3823 * localedata/locales/tcy_IN (d_fmt): Likewise.
3824 * localedata/locales/ur_IN (d_fmt): Likewise.
3825
3826 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
3827 * localedata/locales/ks_IN (d_fmt): Likewise.
3828 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
3829
3830 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
3831 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
3832 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
3833 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
3834
3835 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
3836
3837 * NEWS: Mention exp and exp2 improvements.
3838 * math/Makefile (libm-support): Remove t_exp.
3839 (type-double-routines): Add math_err and e_exp_data.
3840 * sysdeps/aarch64/libm-test-ulps: Update.
3841 * sysdeps/arm/libm-test-ulps: Update.
3842 * sysdeps/i386/fpu/e_exp_data.c: New file.
3843 * sysdeps/i386/fpu/math_err.c: New file.
3844 * sysdeps/i386/fpu/t_exp.c: Remove.
3845 * sysdeps/ia64/fpu/e_exp_data.c: New file.
3846 * sysdeps/ia64/fpu/math_err.c: New file.
3847 * sysdeps/ia64/fpu/t_exp.c: Remove.
3848 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
3849 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
3850 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
3851 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
3852 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
3853 * sysdeps/ieee754/dbl-64/math_config.h: New file.
3854 * sysdeps/ieee754/dbl-64/math_err.c: New file.
3855 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
3856 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
3857 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
3858 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
3859 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
3860 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
3861 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
3862 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3863 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3864
3865 2018-09-05 Joseph Myers <joseph@codesourcery.com>
3866
3867 * sysdeps/alpha/fpu/math_private.h: Remove.
3868
3869 * sysdeps/generic/math_private.h
3870 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
3871 Move this inline function ....
3872 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
3873 * include/math.h [!_ISOMAC]: To here....
3874
3875 2018-09-04 Joseph Myers <joseph@codesourcery.com>
3876
3877 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
3878 code ....
3879 [!FE_HAVE_ROUNDING_MODES]: And this code ....
3880 * include/fenv.h [!_ISOMAC]: ... to here.
3881 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
3882 (feraiseexcept): Likewise.
3883 * math/fromfp.h: Do not include <fenv_private.h>.
3884 * math/s_cexp_template.c: Likewise.
3885 * math/s_csin_template.c: Likewise.
3886 * math/s_csinh_template.c: Likewise.
3887 * math/s_ctan_template.c: Likewise.
3888 * math/s_ctanh_template.c: Likewise.
3889 * math/s_iseqsig_template.c: Likewise.
3890 * math/w_acos_compat.c: Likewise.
3891 * math/w_acosf_compat.c: Likewise.
3892 * math/w_acosl_compat.c: Likewise.
3893 * math/w_asin_compat.c: Likewise.
3894 * math/w_asinf_compat.c: Likewise.
3895 * math/w_asinl_compat.c: Likewise.
3896 * math/w_j0_compat.c: Likewise.
3897 * math/w_j0f_compat.c: Likewise.
3898 * math/w_j0l_compat.c: Likewise.
3899 * math/w_j1_compat.c: Likewise.
3900 * math/w_j1f_compat.c: Likewise.
3901 * math/w_j1l_compat.c: Likewise.
3902 * math/w_jn_compat.c: Likewise.
3903 * math/w_jnf_compat.c: Likewise.
3904 * math/w_log10_compat.c: Likewise.
3905 * math/w_log10f_compat.c: Likewise.
3906 * math/w_log10l_compat.c: Likewise.
3907 * math/w_log2_compat.c: Likewise.
3908 * math/w_log2f_compat.c: Likewise.
3909 * math/w_log2l_compat.c: Likewise.
3910 * math/w_log_compat.c: Likewise.
3911 * math/w_logf_compat.c: Likewise.
3912 * math/w_logl_compat.c: Likewise.
3913 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3914 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3915 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3916 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3917 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3918 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3919 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3920 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3921 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3922 * sysdeps/ieee754/k_standardl.c: Likewise.
3923 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3924 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3925 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3926 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3927 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3928 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3929 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3930 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
3931 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3932 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
3933 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
3934 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
3935 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
3936 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3937 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3938 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3939 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3940 * math/w_ilogb_template.c: Include <fenv.h> instead of
3941 <fenv_private.h>.
3942 * math/w_llogb_template.c: Likewise.
3943 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3944 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3945
3946 2018-09-03 Joseph Myers <joseph@codesourcery.com>
3947
3948 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
3949 * math/fromfp.h: Include <fenv_private.h>.
3950 * math/math-narrow.h: Likewise.
3951 * math/s_cexp_template.c: Likewise.
3952 * math/s_csin_template.c: Likewise.
3953 * math/s_csinh_template.c: Likewise.
3954 * math/s_ctan_template.c: Likewise.
3955 * math/s_ctanh_template.c: Likewise.
3956 * math/s_iseqsig_template.c: Likewise.
3957 * math/w_acos_compat.c: Likewise.
3958 * math/w_acosf_compat.c: Likewise.
3959 * math/w_acosl_compat.c: Likewise.
3960 * math/w_asin_compat.c: Likewise.
3961 * math/w_asinf_compat.c: Likewise.
3962 * math/w_asinl_compat.c: Likewise.
3963 * math/w_ilogb_template.c: Likewise.
3964 * math/w_j0_compat.c: Likewise.
3965 * math/w_j0f_compat.c: Likewise.
3966 * math/w_j0l_compat.c: Likewise.
3967 * math/w_j1_compat.c: Likewise.
3968 * math/w_j1f_compat.c: Likewise.
3969 * math/w_j1l_compat.c: Likewise.
3970 * math/w_jn_compat.c: Likewise.
3971 * math/w_jnf_compat.c: Likewise.
3972 * math/w_llogb_template.c: Likewise.
3973 * math/w_log10_compat.c: Likewise.
3974 * math/w_log10f_compat.c: Likewise.
3975 * math/w_log10l_compat.c: Likewise.
3976 * math/w_log2_compat.c: Likewise.
3977 * math/w_log2f_compat.c: Likewise.
3978 * math/w_log2l_compat.c: Likewise.
3979 * math/w_log_compat.c: Likewise.
3980 * math/w_logf_compat.c: Likewise.
3981 * math/w_logl_compat.c: Likewise.
3982 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
3983 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
3984 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
3985 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
3986 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3987 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3988 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3989 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3990 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3991 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3992 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3993 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3994 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
3995 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
3996 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3997 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
3998 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
3999 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4000 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4001 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4002 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
4003 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4004 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4005 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4006 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4007 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
4008 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4009 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
4010 * sysdeps/ieee754/float128/float128_private.h: Likewise.
4011 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4012 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4013 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4014 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
4015 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4016 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
4017 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4018 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
4019 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4020 * sysdeps/ieee754/k_standardl.c: Likewise.
4021 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4022 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4023 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4024 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4025 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4026 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4027 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4028 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4029 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4030 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4031 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4032 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4033 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4034 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4035 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
4036 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4037 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4038 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
4039 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4040 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4041 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4042 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4043 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4044 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4045 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
4046 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
4047 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4048 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
4049 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
4050 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
4051 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
4052 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
4053 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
4054 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
4055 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
4056 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
4057 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
4058 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4059 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
4060 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
4061 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
4062 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
4063 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
4064 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
4065 * sysdeps/riscv/rvd/s_finite.c: Likewise.
4066 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
4067 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
4068 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
4069 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
4070 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
4071 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
4072 * sysdeps/riscv/rvf/fegetround.c: Likewise.
4073 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
4074 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
4075 * sysdeps/riscv/rvf/fesetround.c: Likewise.
4076 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
4077 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
4078 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
4079 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
4080 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
4081 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
4082 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
4083 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
4084 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
4085 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
4086 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
4087 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
4088 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
4089 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
4090 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
4091 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
4092
4093 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4094
4095 [BZ #20271]
4096 * include/stdio.h (__libc_fatal): Mention newline in comment.
4097 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
4098 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
4099 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4100 * nss/nsswitch.c (__nss_next2): Likewise.
4101 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
4102 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
4103 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
4104 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
4105 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
4106 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
4107 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
4108 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
4109 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
4110 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
4111 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
4112 * sysdeps/unix/sysv/linux/netlink_assert_response.c
4113 (__netlink_assert_response): Likewise.
4114
4115 2018-08-31 Joseph Myers <joseph@codesourcery.com>
4116
4117 * conform/glibcconform.py: New file.
4118 * conform/list-header-symbols.py: Likewise.
4119 * conform/list-header-symbols.pl: Remove.
4120 * conform/Makefile (tests-special): Only add linknamespace tests
4121 if [PYTHON].
4122 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
4123
4124 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
4125
4126 [BZ #23597]
4127 * support/Makefile (libsupport-routines): Add
4128 support_copy_file_range and xcopy_file_range.
4129 * support/support.h: Include <sys/types.h>.
4130 (support_copy_file_range): New prototype.
4131 * support/support_copy_file_range.c: New file. Copied and
4132 modified from io/copy_file_range-compat.c.
4133 * support/test-container.c (copy_one_file): Call xcopy_file_rang
4134 instead of copy_file_range.
4135 * support/xcopy_file_range.c: New file.
4136 * support/xunistd.h (xcopy_file_range): New prototype.
4137
4138 2018-08-30 Carlos O'Donell <carlos@redhat.com>
4139
4140 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
4141 xpthread_create and xpthread_join.
4142
4143 2018-08-30 Florian Weimer <fweimer@redhat.com>
4144
4145 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
4146
4147 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
4148
4149 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
4150 if malloc fails.
4151
4152 2018-08-29 Joseph Myers <joseph@codesourcery.com>
4153
4154 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
4155 and minus_oflow as non-finite.
4156
4157 2018-08-28 Joseph Myers <joseph@codesourcery.com>
4158
4159 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
4160 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
4161 moved to fenv_private.h except for ...
4162 (TOINT_INTRINSICS): Kept in math_private.h.
4163 (roundtoint): Likewise.
4164 (converttoint): Likewise.
4165 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
4166 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
4167 * sysdeps/arm/math_private.h: Remove.
4168 * sysdeps/generic/fenv_private.h: New file. Contents moved from
4169 ....
4170 * sysdeps/generic/math_private.h: ... this file. Include
4171 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
4172 Include <fenv_private.h>. Remove functions and macros moved to
4173 fenv_private.h.
4174 * sysdeps/i386/fpu/math_private.h: Remove.
4175 * sysdeps/mips/math_private.h: Move to ....
4176 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
4177 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
4178 [__mips_hard_float] conditional. Include next <fenv_private.h>.
4179 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
4180 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
4181 * sysdeps/powerpc/fpu/math_private.h: Do not include
4182 <fenv_private.h>.
4183 * sysdeps/riscv/rvf/math_private.h: Move to ....
4184 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
4185 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
4186 <fenv_private.h>.
4187 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
4188 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
4189 * sysdeps/sparc/fpu/math_private.h: Remove.
4190 * sysdeps/i386/fpu/fenv_private.h: Move to ....
4191 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
4192 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
4193 <fenv_private.h>.
4194 * sysdeps/x86_64/fpu/math_private.h: Do not include
4195 <sysdeps/i386/fpu/fenv_private.h>.
4196
4197 2018-08-28 Florian Weimer <fweimer@redhat.com>
4198
4199 [BZ #23578]
4200 * posix/tst-regcomp-truncated.c: New file.
4201 * posix/Makefile (tests): Add it.
4202 (tst-regcomp-truncated.out): Depend on generated locales.
4203
4204 2018-08-28 Florian Weimer <fweimer@redhat.com>
4205
4206 * support/test-container.c (main): Treat unshare failure with
4207 EPERM as an unsupported test.
4208
4209 2018-08-28 Florian Weimer <fweimer@redhat.com>
4210
4211 [BZ #23520]
4212 nscd: Fix use-after-free in addgetnetgrentX and its callers.
4213 * nscd/netgroupcache.c
4214 (addgetnetgrentX): Add tofreep parameter. Do not free
4215 heap-allocated buffer.
4216 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
4217 (addgetnetgrentX_ignore): New function.
4218 (addgetnetgrent): Call it.
4219 (readdgetnetgrent): Likewise.
4220
4221 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4222
4223 * string/memmem.c: Use memcmp for first match.
4224
4225 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4226
4227 [BZ #17426]
4228 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
4229
4230 2018-08-27 DJ Delorie <dj@redhat.com>
4231
4232 * support/Makefile (others): Don't list programs explicitly as a
4233 dependency of "others".
4234
4235 2018-08-27 Joseph Myers <joseph@codesourcery.com>
4236
4237 * sysdeps/generic/math-tests-trap-force.h: New file.
4238 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
4239 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
4240 * sysdeps/powerpc/math-tests.h: Remove file.
4241 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
4242
4243 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
4244 Torvald Riegel <triegel@redhat.com>
4245
4246 [BZ #23538]
4247 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
4248 Update r to include the set wake-request flag if waiters are
4249 remaining after spinning.
4250
4251 2018-08-27 Joseph Myers <joseph@codesourcery.com>
4252
4253 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
4254
4255 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
4256
4257 [BZ #23578]
4258 regex: fix uninitialized memory access
4259 I introduced this bug into gnulib in commit
4260 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
4261 eventually it was merged into glibc. The bug was found by
4262 project-repo <bugs@feusi.co> and reported here:
4263 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
4264 Diagnosis and draft fix reported by Assaf Gordon here:
4265 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
4266 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
4267 * posix/regex_internal.c (build_wcs_upper_buffer):
4268 Fix bug when mbrtowc returns 0.
4269
4270 2018-08-24 Carlos O'Donell <carlos@redhat.com>
4271
4272 * po/be.po: Update translation.
4273
4274 2018-08-24 DJ Delorie <dj@delorie.com>
4275
4276 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
4277 $(libunwind).
4278
4279 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
4280
4281 [BZ #23400]
4282 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
4283 create temporary files in source tree.
4284
4285 2018-08-24 Joseph Myers <joseph@codesourcery.com>
4286
4287 * sysdeps/generic/math-tests-trap.h: New file.
4288 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
4289 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
4290 * sysdeps/aarch64/math-tests.h: Remove file.
4291 * sysdeps/arm/math-tests.h: Likewise.
4292 * sysdeps/riscv/math-tests.h: Likewise.
4293 * sysdeps/aarch64/math-tests-trap.h: New file.
4294 * sysdeps/arm/math-tests-trap.h: Likewise.
4295 * sysdeps/riscv/math-tests-trap.h: Likewise.
4296
4297 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
4298
4299 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
4300 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
4301 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
4302 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
4303 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
4304 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
4305 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4306 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
4307 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
4308 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4309 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4310 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4311 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4312 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
4313 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
4314 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
4315 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
4316 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
4317
4318 2018-08-23 Joseph Myers <joseph@codesourcery.com>
4319
4320 * sysdeps/generic/math-tests-exceptions.h: New file.
4321 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
4322 (EXCEPTION_TESTS_float): Do not define here.
4323 (EXCEPTION_TESTS_double): Likewise.
4324 (EXCEPTION_TESTS_long_double): Likewise.
4325 (EXCEPTION_TESTS_float128): Likewise.
4326 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
4327 Likewise.
4328 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
4329 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
4330 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
4331 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
4332 * sysdeps/mips/math-tests.h: Likewise.
4333 * sysdeps/nios2/math-tests.h: Likewise.
4334 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4335 (EXCEPTION_TESTS_float): Do not define here.
4336 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
4337 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
4338 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
4339
4340 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4341
4342 * NEWS: Move optimized sinf entry to 2.29.
4343
4344 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4345
4346 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
4347
4348 2018-08-22 DJ Delorie <dj@redhat.com>
4349
4350 * Makefile (testroot.pristine): New rules to initialize the
4351 test-in-container "testroot".
4352 * Makerules (all-testsuite): Add tests-container.
4353 * Rules (tests-expected): Add tests-container.
4354 (binaries-all-tests): Likewise.
4355 (tests-container): New, run these tests in the testroot container.
4356 * support/Makefile (others): Add *-container, support_paths.c,
4357 xmkdirp, and links-dso-program.
4358 * support/links-dso-program-c.c: New.
4359 * support/links-dso-program.cc: New.
4360 * support/test-container.c: New.
4361 * support/shell-container.c: New.
4362 * support/echo-container.c: New.
4363 * support/true-container.c: New.
4364 * support/xmkdirp.c: New.
4365 * support/xsymlink.c: New.
4366 * support/support_paths.c: New.
4367 * support/support.h: Add support paths prototypes.
4368 * support/xunistd.h: Add xmkdirp () and xsymlink ().
4369
4370 * nss/tst-nss-test3.c: Convert to test-in-container.
4371 * nss/tst-nss-test3.root/: New.
4372
4373 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
4374
4375 regex: port Gnulib code to z/OS POSIX environment
4376 Problem reported by Arnold Robbins in:
4377 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
4378 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
4379 Undef.
4380
4381 2018-08-22 Joseph Myers <joseph@codesourcery.com>
4382
4383 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
4384 (ROUNDING_TESTS_double): Remove.
4385 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
4386 (ROUNDING_TESTS_double): Remove.
4387 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
4388 (ROUNDING_TESTS_double): Remove.
4389 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
4390 (ROUNDING_TESTS_float): Remove.
4391 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
4392 (ROUNDING_TESTS_float): Remove.
4393 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
4394 (ROUNDING_TESTS_float): Remove.
4395 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
4396 !TEST_MATHVEC here.
4397 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4398 (IF_ROUND_INIT_FE_UPWARD): Likewise.
4399
4400 * sysdeps/generic/math-tests-rounding.h: New file.
4401 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
4402 (ROUNDING_TESTS_float): Do not define here.
4403 (ROUNDING_TESTS_double): Likewise.
4404 (ROUNDING_TESTS_long_double): Likewise.
4405 (ROUNDING_TESTS_float128): Likewise.
4406 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
4407 (ROUNDING_TESTS_double): Undefine before defining.
4408 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
4409 (ROUNDING_TESTS_double): Undefine before defining.
4410 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
4411 (ROUNDING_TESTS_double): Undefine before defining.
4412 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
4413 (ROUNDING_TESTS_float): Undefine before defining.
4414 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
4415 (ROUNDING_TESTS_float): Undefine before defining.
4416 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
4417 (ROUNDING_TESTS_float): Undefine before defining.
4418 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
4419 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
4420 not define here.
4421 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
4422 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
4423 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
4424 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4425 (ROUNDING_TESTS_float): Do not define here.
4426 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
4427 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
4428 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
4429 (ROUNDING_TESTS_float): Likewise.
4430 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
4431 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
4432 * sysdeps/mips/math-tests.h [__mips_soft_float]
4433 (ROUNDING_TESTS_float): Likewise.
4434 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
4435 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
4436 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
4437 (ROUNDING_TESTS_double): Likewise.
4438 (ROUNDING_TESTS_long_double): Likewise.
4439
4440 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
4441
4442 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
4443 (PF_XDP): New macro.
4444 (AF_XDP): New macro.
4445 (SOL_XDP): New macro.
4446
4447 2018-08-21 Joseph Myers <joseph@codesourcery.com>
4448
4449 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
4450 (TCP_INQ): Likewise.
4451 (TCP_CM_INQ): Likewise.
4452 (TCP_REPAIR_ON): Likewise.
4453 (TCP_REPAIR_OFF): Likewise.
4454 (TCP_REPAIR_OFF_NO_WP): Likewise.
4455 (struct tcp_zerocopy_receive): New type.
4456
4457 2018-08-21 Florian Weimer <fweimer@redhat.com>
4458
4459 * support/support.h (support_descriptor_supports_holes): Declare.
4460 * support/Makefile (libsupport-routines): Add
4461 support_descriptor_supports_holes.
4462 * support/support_descriptor_supports_holes.c: New file.
4463 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
4464 and stop testing if holes are not supported.
4465 * io/test-lfs.c (do_prepare): Likewise.
4466 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
4467 Likewise.
4468 * timezone/tst-tzset.c (create_tz_file): Likewise.
4469 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
4470 variable.
4471 (do_prepare): Set it.
4472 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
4473
4474 2018-08-21 Florian Weimer <fweimer@redhat.com>
4475
4476 [BZ #17248]
4477 * Makeconfig (+cflags): Do not sort (and deduplicate).
4478
4479 2018-08-21 Florian Weimer <fweimer@redhat.com>
4480
4481 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
4482 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
4483
4484 2018-08-20 Florian Weimer <fweimer@redhat.com>
4485
4486 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
4487 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
4488
4489 2018-08-20 Joseph Myers <joseph@codesourcery.com>
4490
4491 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4492 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
4493 and ssi_arch members.
4494
4495 * elf/elf.c (NT_VMCOREDD): New macro.
4496 (AT_MINSIGSTKSZ): Likewise.
4497
4498 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4499
4500 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4501 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
4502 s_cosf-ppc64 and s_cosf-power8.
4503 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
4504 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
4505 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4506 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
4507 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
4508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
4509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
4510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
4511 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
4512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
4513 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
4514 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
4515
4516 2018-08-17 Florian Weimer <fweimer@redhat.com>
4517
4518 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4519
4520 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
4521
4522 * malloc/malloc.c (_int_malloc): Additional binning code checks.
4523
4524 2018-08-16 Florian Weimer <fweimer@redhat.com>
4525
4526 * configure.ac: Add --with-nonshared-cflags option.
4527 * config.make.in (extra-nonshared-cflags): Set variable.
4528 * Makeconfig (CFLAGS-.oS): Use it.
4529 * manual/install.texi (Configuring and compiling): Document
4530 --with-nonshared-cflags.
4531 * configure: Regenerate.
4532 * INSTALL: Likewise.
4533
4534 2018-08-16 Florian Weimer <fweimer@redhat.com>
4535
4536 * Makeconfig (ASFLAGS): Always append required assembler flags.
4537
4538 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
4539
4540 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
4541 (malloc_consolidate): Likewise.
4542
4543 2018-08-16 Pochang Chen <johnchen902@gmail.com>
4544
4545 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
4546
4547 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4548
4549 * benchtests/bench-strlen.c (do_test): Allocate buffers before
4550 every strlen call.
4551
4552 * benchtests/bench-strlen.c: Print performance numbers in json.
4553
4554 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4555
4556 * sysdeps/powerpc/powerpc64/multiarch/Makefile
4557 (sysdep_routines): Build strcmp-power9 and strncmp-power9
4558 only for little endian.
4559 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4560 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
4561 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
4562 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
4563 Add check for little endian.
4564 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
4565 (__strcmp_power9): Add check for little endian.
4566 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
4567 Add check for little endian.
4568 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
4569 (__strncmp_power9): Add check for little endian.
4570 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
4571 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
4572 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
4573 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
4574 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
4575
4576 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
4577
4578 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
4579 [!STRLEN](STRLEN): Set to __strlen.
4580 * sysdeps/aarch64/multiarch/strlen.c: New file.
4581 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
4582 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
4583 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4584 (__libc_ifunc_impl_list): Add strlen.
4585 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
4586 strlen_generic and strlen_asimd.
4587
4588 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
4589
4590 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
4591 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
4592 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
4593
4594 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
4595
4596 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
4597
4598 2018-08-14 Florian Weimer <fweimer@redhat.com>
4599
4600 [BZ #23519]
4601 * include/stdio.h (__vfxprintf): Declare.
4602 * stdio-common/fxprintf.c (__vfxprintf): New function.
4603 (__fxprintf): Call it.
4604 * misc/err.c (convert_and_print): Remove function.
4605 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
4606 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
4607 * misc/Makefile (tests): Add tst-warn-wide.
4608 * misc/tst-warn-wide.c: New file.
4609
4610 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
4611 Szabolcs Nagy <szabolcs.nagy@arm.com>
4612
4613 * NEWS: Mention sinf, cosf, sincosf.
4614 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
4615 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
4616 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
4617 constants rather than including generic sincosf.h.
4618 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
4619 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
4620 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
4621 (reduced_cos): Remove.
4622 (sinf_poly): New function.
4623 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
4624
4625 2018-08-14 Florian Weimer <fweimer@redhat.com>
4626
4627 [BZ #23521]
4628 [BZ #23522]
4629 * nss/nss_files/files-alias.c (get_next_alias): During :include:
4630 processing, bail out if no room, and close the stream before
4631 returning ERANGE.
4632 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
4633 (tst-nss-files-alias-leak): Link with libdl.
4634 (tst-nss-files-alias-leak.out): Depend on nss_files.
4635
4636 * nss/tst-nss-files-alias-leak.c: New file.
4637
4638 2018-08-14 Florian Weimer <fweimer@redhat.com>
4639
4640 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
4641 server_user, stat_user.
4642
4643 2018-08-13 Joseph Myers <joseph@codesourcery.com>
4644
4645 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4646 version to 4.18.
4647 (io_pgetevents): New syscall.
4648 (rseq): Likewise.
4649
4650 * manual/install.texi (Configuring and compiling): Do not list
4651 tools used for testing pretty printers here.
4652 (Tools for Compilation): List Python, PExpect and GDB here.
4653 Update descriptions of uses of Perl and Python.
4654 * INSTALL: Regenerate.
4655
4656 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4657 version to 4.18.
4658
4659 2018-08-13 Florian Weimer <fweimer@redhat.com>
4660
4661 * misc/error.c (error): Add missing va_end call.
4662 (error_at_line): Likewise.
4663
4664 2018-08-13 Florian Weimer <fweimer@redhat.com>
4665
4666 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
4667
4668 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
4669
4670 * benchtests/scripts/benchout.schema.json (properties): Add
4671 new properties.
4672
4673 * benchtests/bench-skeleton.c (main): Add duration and
4674 iterations attributes.
4675
4676 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
4677
4678 regex: Gnulib unibyte RRI uses bytes not chars
4679 Adjust the non-glibc code to agree with what Gawk needs for
4680 rational range interpretation (RRI) for regular expression ranges.
4681 In unibyte locales, Gawk wants ranges to use the underlying byte
4682 rather than the character code point. This change does not affect
4683 glibc proper.
4684 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
4685 In unibyte locales, use the byte value rather than
4686 running it through btowc.
4687
4688 2018-08-10 Joseph Myers <joseph@codesourcery.com>
4689
4690 * sysdeps/generic/math-tests-snan.h: New file.
4691 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
4692 (SNAN_TESTS_float): Do not define here.
4693 (SNAN_TESTS_double): Likewise.
4694 (SNAN_TESTS_long_double): Likewise.
4695 (SNAN_TESTS_float128): Likewise.
4696 * sysdeps/i386/fpu/math-tests-snan.h: New file.
4697 * sysdeps/i386/fpu/math-tests.h: Remove file.
4698 * sysdeps/ia64/math-tests-snan.h: New file.
4699 * sysdeps/ia64/math-tests.h: Remove file.
4700 * sysdeps/x86/math-tests.h: Likewise.
4701 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
4702
4703 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
4704 Szabolcs Nagy <szabolcs.nagy@arm.com>
4705
4706 * math/Makefile: Add s_sincosf_data.c.
4707 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
4708 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
4709 (sincosf_poly): Likewise.
4710 (reduce_small): Likewise.
4711 (reduce_large): Likewise.
4712 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
4713 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
4714 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
4715 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
4716
4717 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
4718 Szabolcs Nagy <szabolcs.nagy@arm.com>
4719
4720 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
4721 (converttoint): Use lround.
4722 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
4723 document the semantics when TOINT_INTRINSICS is set.
4724 (converttoint): Likewise.
4725 (TOINT_RINT): Remove.
4726 (TOINT_SHIFT): Remove.
4727 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
4728 path.
4729
4730 2018-08-10 Florian Weimer <fweimer@redhat.com>
4731
4732 [BZ #23497]
4733 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
4734 function.
4735 (__old_getdents64): Use getdents64. Convert entries without
4736 moving them.
4737 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
4738 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
4739 tst-readdir64-compat.
4740
4741 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4742
4743 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
4744 Fix unwind.
4745
4746 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4747
4748 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
4749 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
4750 code to s390x-mcount.h and #include it.
4751 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
4752 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
4753 (__fentry__): Add.
4754
4755 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4756
4757 * stdlib/Versions: Remove __fentry__.
4758 * sysdeps/i386/Versions: Add __fentry__.
4759 * sysdeps/x86_64/Versions: Add __fentry__.
4760
4761 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4762
4763 * sysdeps/s390/Makefile: Register the new tests.
4764 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
4765 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
4766 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
4767 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
4768 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
4769 * sysdeps/s390/tst-dl-runtime.c: New file.
4770
4771 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4772
4773 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4774 Do not clobber R0.
4775
4776 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4777
4778 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
4779 Do not clobber R0.
4780
4781 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4782
4783 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4784 Do not clobber R0.
4785
4786 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4787
4788 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4789 Do not clobber R0.
4790
4791 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4792
4793 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4794 Use symbolic offsets for stack variables.
4795
4796 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4797
4798 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
4799 Use symbolic offsets for stack variables.
4800
4801 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4802
4803 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4804 Use symbolic offsets for stack variables.
4805
4806 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4807
4808 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4809 Use symbolic offsets for stack variables.
4810
4811 2018-08-09 Joseph Myers <joseph@codesourcery.com>
4812
4813 * math/gen-libm-test.py: New file.
4814 * math/gen-libm-test.pl: Remove.
4815 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
4816 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
4817 gen-libm-test.pl.
4818 ($(libm-test-c-noauto-obj)): Likewise.
4819 ($(libm-test-c-auto-obj)): Likewise.
4820 ($(libm-test-c-narrow-obj)): Likewise.
4821 (regen-ulps): Likewise.
4822 * math/README.libm-test: Update references to gen-libm-test.pl.
4823 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
4824 referencing gen-libm-test.pl.
4825 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
4826 * math/libm-test-support.c: Likewise.
4827 * math/libm-test-support.h: Likewise.
4828 * sysdeps/generic/libm-test-ulps: Likewise.
4829
4830 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
4831
4832 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
4833 Fix value.
4834
4835 2018-08-08 Joseph Myers <joseph@codesourcery.com>
4836
4837 * math/libm-test-nextdown.inc (do_test): Move comment to ....
4838 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
4839
4840 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
4841
4842 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
4843 symbols.
4844 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
4845 __pthread_setspecific): Add hidden proto.
4846 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
4847 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
4848
4849 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
4850
4851 * benchtests/bench-string.h (buf1_size, buf2_size): New
4852 variables.
4853 (init_sizes): New function.
4854 (test_init): Use it.
4855 (alloc_buf, exit_error): New functions.
4856 (alloc_bufs): Use ALLOC_BUF.
4857 (realloc_bufs): Remove.
4858 * benchtests/bench-memcmp.c (do_test): Adjust.
4859 * benchtests/bench-memset-large.c (do_test): Likewise.
4860 * benchtests/bench-memset-walk.c (do_test): Likewise.
4861 * benchtests/bench-memset.c (do_test): Likewise.
4862 * benchtests/bench-strncmp.c (do_test): Likewise.
4863
4864 2018-08-06 Andreas Schwab <schwab@suse.de>
4865
4866 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
4867 of CONST_THREAD_AREA.
4868
4869 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
4870
4871 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
4872 (STATE_SAVE_MASK): Likewise.
4873 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
4874 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
4875 (STATE_SAVE_MASK): Likewise.
4876 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
4877 instead of <cpu-features.h>.
4878
4879 2018-08-03 DJ Delorie <dj@redhat.com>
4880
4881 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
4882 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
4883
4884 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4885
4886 2018-08-03 Joseph Myers <joseph@codesourcery.com>
4887
4888 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
4889 after TEST_* calls.
4890 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
4891 * math/libm-test-logb.inc (logb_test_data): Likewise.
4892
4893 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
4894
4895 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
4896 * string/strstr.c (AVAILABLE): Likewise.
4897
4898 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
4899
4900 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
4901 <init-arch.h>.
4902 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
4903 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
4904 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
4905
4906 2018-08-03 Carlos O'Donell <carlos@redhat.com>
4907
4908 * po/be.po: Update translation.
4909
4910 * po/be.po: Update translation.
4911
4912 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
4913
4914 * sysdeps/x86/cpu-features-offsets.sym
4915 (rtld_global_ro_offsetof): Removed.
4916 (CPU_FEATURES_SIZE): Likewise.
4917 (CPUID_OFFSET): Likewise.
4918 (CPUID_SIZE): Likewise.
4919 (CPUID_EAX_OFFSET): Likewise.
4920 (CPUID_EBX_OFFSET): Likewise.
4921 (CPUID_ECX_OFFSET): Likewise.
4922 (CPUID_EDX_OFFSET): Likewise.
4923 (FAMILY_OFFSET): Likewise.
4924 (MODEL_OFFSET): Likewise.
4925 (FEATURE_OFFSET): Likewise.
4926 (FEATURE_SIZ): Likewise.
4927 (COMMON_CPUID_INDEX_1): Likewise.
4928 (COMMON_CPUID_INDEX_7): Likewise.
4929 (FEATURE_INDEX_1): Likewise.
4930 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
4931
4932 2018-08-02 Carlos O'Donell <carlos@redhat.com>
4933
4934 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
4935 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
4936 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
4937 (install-locales): Depend on install-locale-archive.
4938 (install-locale-archive): Define.
4939 (install-locale-files): Define.
4940 (build-one-locale): Define macro.
4941 * manual/install.texi (Running make install): Document.
4942 * manual/INSTALL: Regenerate.
4943
4944 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
4945
4946 * benchtests/scripts/compare_strings.py: Import traceback.
4947 (parse_file): Pretty-print error.
4948
4949 * NEWS: Mention the change.
4950 * elf/dl-tunables.list: Rename tune namespace to cpu.
4951 * sysdeps/powerpc/dl-tunables.list: Likewise.
4952 * sysdeps/x86/dl-tunables.list: Likewise.
4953 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
4954 cpu.name.
4955 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
4956 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
4957 * manual/README.tunables: Likewise.
4958 * manual/tunables.texi: Likewise.
4959 * sysdeps/powerpc/cpu-features.c: Likewise.
4960 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
4961 (init_cpu_features): Likewise.
4962 * sysdeps/x86/cpu-features.c: Likewise.
4963 * sysdeps/x86/cpu-features.h: Likewise.
4964 * sysdeps/x86/cpu-tunables.c: Likewise.
4965 * sysdeps/x86_64/Makefile: Likewise.
4966 * sysdeps/x86/dl-cet.c: Likewise.
4967
4968 2018-08-02 Joseph Myers <joseph@codesourcery.com>
4969
4970 [BZ #23479]
4971 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
4972 [__mips_hard_float].
4973 (FE_UNDERFLOW): Likewise.
4974 (FE_OVERFLOW): Likewise.
4975 (FE_DIVBYZERO): Likewise.
4976 (FE_INVALID): Likewise.
4977 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
4978 (FE_TOWARDZERO): Define only if [__mips_hard_float].
4979 (FE_UPWARD): Likewise.
4980 (FE_DOWNWARD): Likewise.
4981 (__FE_UNDEFINED): Define if [!__mips_hard_float]
4982 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
4983 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
4984 [__mips_hard_float].
4985 (FP_ROUNDMODE): Likewise.
4986 (FP_RND_NEAREST): Likewise.
4987 (FP_RND_ZERO): Likewise.
4988 (FP_RND_PINF): Likewise.
4989 (FP_RND_MINF): Likewise.
4990 (FP_EX_INVALID): Likewise.
4991 (FP_EX_OVERFLOW): Likewise.
4992 (FP_EX_UNDERFLOW): Likewise.
4993 (FP_EX_DIVZERO): Likewise.
4994 (FP_EX_INEXACT): Likewise.
4995 (FP_INIT_ROUNDMODE): Likewise.
4996 * sysdeps/mips/nofpu/fesetenv.c: New file.
4997 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
4998
4999 2018-08-01 Joseph Myers <joseph@codesourcery.com>
5000
5001 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
5002 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
5003 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
5004 conditional on [FE_UPWARD].
5005
5006 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
5007
5008 regex: fix memory leak in Gnulib
5009 Problem and fix reported by Assaf Gordon in:
5010 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
5011 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
5012 range_ends members too, as they are defined in 'struct
5013 re_charset_t' even if not _LIBC. This affects only Gnulib.
5014
5015 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
5016
5017 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
5018 ...
5019 (get_common_indices): This.
5020 (init_cpu_features): Updated.
5021
5022 2018-08-01 Joseph Myers <joseph@codesourcery.com>
5023
5024 * sysdeps/generic/math-tests-snan-payload.h: New file.
5025 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
5026 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
5027 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
5028 * sysdeps/generic/math-tests.h: Include
5029 <math-tests-snan-payload.h>.
5030 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
5031 * sysdeps/hppa/math-tests.h: Remove file.
5032 * sysdeps/mips/math-tests.h [!__mips_nan2008]
5033 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
5034 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
5035 Likewise.
5036
5037 * sysdeps/generic/math-tests-snan-cast.h: New file.
5038 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
5039 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
5040 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
5041 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
5042
5043 2018-08-01 Carlos O'Donel <carlos@redhat.com>
5044
5045 * version.h (RELEASE): Set to "development".
5046 (VERSION): Set to "2.28.9000".
5047 * NEWS (2.29): New section.
5048
5049 * version.h (RELEASE): Set to "stable".
5050 (VERSION): Set to "2.28".
5051 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
5052 * NEWS: Add the list of bugs fixed in 2.28.
5053
5054 * po/ca.po: Update to latest version.
5055 * po/cs.po: Likewise
5056 * po/da.po: Likewise
5057 * po/el.po: Likewise
5058 * po/eo.po: Likewise
5059 * po/es.po: Likewise
5060 * po/fi.po: Likewise
5061 * po/fr.po: Likewise
5062 * po/gl.po: Likewise
5063 * po/hu.po: Likewise
5064 * po/ia.po: Likewise
5065 * po/id.po: Likewise
5066 * po/it.po: Likewise
5067 * po/ja.po: Likewise
5068 * po/ko.po: Likewise
5069 * po/lt.po: Likewise
5070 * po/nb.po: Likewise
5071 * po/nl.po: Likewise
5072 * po/pt_BR.po: Likewise
5073 * po/ru.po: Likewise
5074 * po/rw.po: Likewise
5075 * po/sk.po: Likewise
5076 * po/sl.po: Likewise
5077 * po/tr.po: Likewise
5078 * po/zh_CN.po: Likewise
5079 * po/zh_TW.po: Likewise
5080
5081 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5082
5083 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
5084 initialization...
5085 (init): ... before initializing libpthread.
5086
5087 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
5088 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
5089 (__mach_setup_tls): ... new function.
5090 (mach_setup_tls): New alias.
5091 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
5092 __mach_setup_thread.
5093 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
5094 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
5095 * mach/Versions [libc] (mach_setup_tls): Add symbol.
5096 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
5097
5098 2018-07-31 Carlos O'Donell <carlos@redhat.com>
5099
5100 * manual/install.texi: Update versions.
5101 * INSTALL: Regenerate.
5102
5103 * manual/contrib.texi (Contributors): Update contributions.
5104
5105 2018-07-31 Carlos O'Donell <carlos@redhat.com>
5106
5107 * po/be.po: Update translations.
5108
5109 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5110
5111 * sysdeps/sh/libm-test-ulps: Update.
5112
5113 2018-07-30 Carlos O'Donell <carlos@redhat.com>
5114
5115 * po/bg.po: Update translations.
5116 * po/de.po: Likewise.
5117 * po/hr.po: Likewise.
5118 * po/pt_BR.po: Likewise.
5119 * po/sv.po: Likewise.
5120 * po/vi.po: Likewise.
5121
5122 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
5123
5124 [BZ #23467]
5125 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
5126 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
5127 (CFLAGS-tst-cet-property-1.o): New.
5128 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
5129 ($(objpfx)tst-cet-property-2): Likewise.
5130 ($(objpfx)tst-cet-property-2.out): Likewise.
5131 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
5132 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
5133 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
5134 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
5135 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
5136
5137 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
5138
5139 [BZ #23458]
5140 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
5141
5142 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5143
5144 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
5145 __sbrk): Do not set attribute_hidden.
5146 * sysdeps/mach/hurd/not-errno.h: New file.
5147 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
5148 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
5149
5150 2018-07-27 Carlos O'Donell <carlos@redhat.com>
5151
5152 * po/uk.po: Update translations.
5153 * po/cs.po: Likewise.
5154 * po/pl.po: Likewise.
5155
5156 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
5157
5158 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
5159 parse beyond the note end.
5160
5161 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5162
5163 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
5164 kernel does not support OFD locks.
5165 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
5166
5167 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5168
5169 * sysdeps/mach/hurd/Versions (libc): Make __access and
5170 __access_noerrno external so they can override the ld symbols.
5171 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
5172 __writev, __open64, __access_noerrno extern so they can be overrided.
5173 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
5174 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
5175
5176 2018-07-26 Carlos O'Donell <carlos@redhat.com>
5177
5178 * po/libc.pot: Regenerate.
5179
5180 2018-07-26 Joseph Myers <joseph@codesourcery.com>
5181
5182 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5183
5184 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
5185
5186 [BZ #23459]
5187 * sysdeps/x86/cpu-features.c (get_extended_indices): New
5188 function.
5189 (init_cpu_features): Call get_extended_indices for both Intel
5190 and AMD CPUs.
5191 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
5192 Remove "for AMD" comment.
5193
5194 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
5195
5196 [BZ # 23456]
5197 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
5198 COMMON_CPUID_INDEX_80000001.
5199
5200 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
5201
5202 * string/tst-xbzero-opt.c (use_test_buffer): New function.
5203 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
5204
5205 2018-07-26 Florian Weimer <fweimer@redhat.com>
5206
5207 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
5208 aliases for symbols not in the implementation namespace.
5209
5210 2018-07-25 Carlos O'Donell <carlos@redhat.com>
5211
5212 [BZ #23393]
5213 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
5214 lowercase in LATIN script.
5215 * localedata/Makefile (test-input): Add en_US.UTF-8.
5216 * localedata/en_US.UTF-8.in: New file.
5217 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
5218 and restore old tests.
5219 * posix/tst-regexloc.c (do_test): Add back range expression test.
5220
5221 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5222
5223 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
5224
5225 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5226
5227 * nptl/threads.h: Move to ...
5228 * sysdeps/nptl/threads.h: ... here.
5229 * sysdeps/hurd/stdc-predef.h: New file.
5230
5231 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5232
5233 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
5234 tst-cet-setcontext-1 if CET is enabled.
5235 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
5236 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
5237
5238 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5239
5240 * include/threads.h: Move to ...
5241 * sysdeps/nptl/threads.h: ... here.
5242 * sysdeps/htl/threads.h: New file.
5243 * conform/Makefile (linknamespace-libs-ISO11): Use
5244 static-thread-library instead of linking libpthread.
5245 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
5246
5247 2018-07-25 Florian Weimer <fweimer@redhat.com>
5248
5249 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
5250 nanoseconds into seconds.
5251 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
5252 (do_test): Likewise.
5253 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
5254 (do_test): Likewise. Avoid nanosecond overflow and spurious
5255 timeouts due to system load.
5256 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
5257 (child_wait): Increment it.
5258 (do_test): Wait as long as necessary until all expected threads
5259 have arrived.
5260
5261 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
5262 H.J. Lu <hongjiu.lu@intel.com>
5263
5264 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
5265 __ssp.
5266 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
5267 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
5268 (__push___start_context): New.
5269 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
5270 <asm/prctl.h>.
5271 (__getcontext): Record the current shadow stack base. Save the
5272 caller's shadow stack pointer and base.
5273 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
5274 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
5275 (__push___start_context): New prototype.
5276 (__makecontext): Call __push___start_context to allocate a new
5277 shadow stack, push __start_context onto the new stack as well
5278 as the new shadow stack.
5279 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
5280 <asm/prctl.h>.
5281 (__setcontext): Restore the target shadow stack.
5282 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
5283 <asm/prctl.h>.
5284 (__swapcontext): Record the current shadow stack base. Save
5285 the caller's shadow stack pointer and base. Restore the target
5286 shadow stack.
5287 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5288 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
5289 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
5290
5291 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5292
5293 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
5294 tst-setcontext8 and tst-setcontext9.
5295 * stdlib/tst-setcontext6.c: New file.
5296 * stdlib/tst-setcontext7.c: Likewise.
5297 * stdlib/tst-setcontext8.c: Likewise.
5298 * stdlib/tst-setcontext9.c: Likewise.
5299
5300 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5301
5302 * stdlib/Makefile ((tests): Add tst-setcontext5.
5303 * stdlib/tst-setcontext5.c: New file.
5304
5305 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5306
5307 * stdlib/Makefile (tests): Add tst-setcontext4.
5308 * stdlib/tst-setcontext4.c: New file.
5309
5310 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5311
5312 * stdlib/Makefile (tests): Add tst-swapcontext1.
5313 * stdlib/tst-swapcontext1.c: New test.
5314
5315 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5316
5317 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
5318 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
5319 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
5320 and tst-cet-legacy-4c.
5321 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
5322 and tst-cet-legacy-mod-4.
5323 (CFLAGS-tst-cet-legacy-2.c): New.
5324 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
5325 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
5326 (CFLAGS-tst-cet-legacy-3.c): Likewise.
5327 (CFLAGS-tst-cet-legacy-4.c): Likewise.
5328 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
5329 ($(objpfx)tst-cet-legacy-1): Likewise.
5330 ($(objpfx)tst-cet-legacy-2): Likewise.
5331 ($(objpfx)tst-cet-legacy-2.out): Likewise.
5332 ($(objpfx)tst-cet-legacy-2a): Likewise.
5333 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
5334 ($(objpfx)tst-cet-legacy-4): Likewise.
5335 ($(objpfx)tst-cet-legacy-4.out): Likewise.
5336 ($(objpfx)tst-cet-legacy-4a): Likewise.
5337 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
5338 (tst-cet-legacy-4a-ENV): Likewise.
5339 ($(objpfx)tst-cet-legacy-4b): Likewise.
5340 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
5341 (tst-cet-legacy-4b-ENV): Likewise.
5342 ($(objpfx)tst-cet-legacy-4c): Likewise.
5343 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
5344 (tst-cet-legacy-4c-ENV): Likewise.
5345 * sysdeps/x86/tst-cet-legacy-1.c: New file.
5346 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
5347 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
5348 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
5349 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
5350 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
5351 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
5352 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
5353 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
5354 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
5355 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
5356
5357 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5358
5359 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5360 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5361 with ssp_base.
5362 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5363 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5364 with ssp_base.
5365
5366 2018-07-25 Andreas Schwab <schwab@suse.de>
5367
5368 [BZ #23442]
5369 * locale/weightwc.h (findidx): Handle the case where usrc is a
5370 prefix of cp but one character too short.
5371
5372 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5373
5374 * NEWS: Add ISO C threads addition.
5375
5376 2018-07-24 Florian Weimer <fweimer@redhat.com>
5377
5378 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5379 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
5380 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
5381 4.13.
5382
5383 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5384
5385 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
5386 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
5387 <sys/prctl.h> and <asm/prctl.h>.
5388 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
5389 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
5390 and <asm/prctl.h>.
5391 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
5392 ARCH_CET_LEGACY_BITMAP.
5393 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
5394 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
5395 * sysdeps/x86/libc-start.c: Include <startup.h>.
5396
5397 2018-07-24 Florian Weimer <fweimer@redhat.com>
5398
5399 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
5400 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
5401
5402 2018-07-24 Rical Jasan <rj@2c3t.io>
5403 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5404 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5405
5406 [BZ #14092]
5407 * manual/debug.texi: Update adjacent chapter name.
5408 * manual/probes.texi: Likewise.
5409 * manual/threads.texi (ISO C Threads): New section.
5410 (POSIX Threads): Convert to a section.
5411
5412 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5413 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5414
5415 [BZ# 14092]
5416 * nptl/Makefile (tests): Add new test files.
5417 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
5418 * nptl/tst-cnd-basic.c: Likewise.
5419 * nptl/tst-cnd-broadcast.c: Likewise.
5420 * nptl/tst-cnd-timedwait.c: Likewise.
5421 * nptl/tst-mtx-basic.c: Likewise.
5422 * nptl/tst-mtx-recursive.c: Likewise.
5423 * nptl/tst-mtx-timedlock.c: Likewise.
5424 * nptl/tst-mtx-trylock.c: Likewise.
5425 * nptl/tst-thrd-basic.c: Likewise.
5426 * nptl/tst-thrd-detach.c: Likewise.
5427 * nptl/tst-thrd-sleep.c: Likewise.
5428 * nptl/tst-tss-basic.c: Likewise.
5429
5430 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5431
5432 [BZ #14092]
5433 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
5434 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
5435 symbols.
5436 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5437 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5438 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5439 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5440 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5441 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5442 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5443 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5444 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5445 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5446 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5447 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5449 Likewise.
5450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5451 Likewise.
5452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5453 Likewise.
5454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5455 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5456 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5457 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5458 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5459 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5460 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5461 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5462 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5463 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
5464 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
5465 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
5466 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
5467 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
5468 Likewise.
5469 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
5470 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
5471 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
5472 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
5473 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
5474 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
5475 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
5476 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
5477 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
5478 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
5479 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
5480 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
5481 ikewise.
5482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
5483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
5484 Likewise.
5485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
5486 Likewise.
5487 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
5488 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
5489 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
5490 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
5491 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
5492 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
5493 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
5494 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
5495
5496 [BZ #14092]
5497 * conform/data/threads.h-data (thread_local): New macro.
5498 (TSS_DTOR_ITERATIONS): Likewise.
5499 (tss_t): New type.
5500 (tss_dtor_t): Likewise.
5501 (tss_create): New function.
5502 (tss_get): Likewise.
5503 (tss_set): Likewise.
5504 (tss_delete): Likewise.
5505 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
5506 tss_get, and tss_set objects.
5507 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
5508 * nptl/tss_create.c: New file.
5509 * nptl/tss_delete.c: Likewise.
5510 * nptl/tss_get.c: Likewise.
5511 * nptl/tss_set.c: Likewise.
5512 * sysdeps/nptl/threads.h (thread_local): New define.
5513 (TSS_DTOR_ITERATIONS): Likewise.
5514 (tss_t): New typedef.
5515 (tss_dtor_t): Likewise.
5516 (tss_create): New prototype.
5517 (tss_get): Likewise.
5518 (tss_set): Likewise.
5519 (tss_delete): Likewise.
5520
5521 [BZ #14092]
5522 * conform/data/threads.h-data (cnd_t): New type.
5523 (cnd_init): New function.
5524 (cnd_signal): Likewise.
5525 (cnd_broadcast): Likewise.
5526 (cnd_wait): Likewise.
5527 (cnd_timedwait): Likewise.
5528 (cnd_destroy): Likewise.
5529 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
5530 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
5531 object.
5532 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
5533 * nptl/cnd_broadcast.c: New file.
5534 * nptl/cnd_destroy.c: Likewise.
5535 * nptl/cnd_init.c: Likewise.
5536 * nptl/cnd_signal.c: Likewise.
5537 * nptl/cnd_timedwait.c: Likewise.
5538 * nptl/cnd_wait.c: Likewise.
5539 * sysdeps/nptl/threads.h (cnd_t): New type.
5540 (cnd_init): New prototype.
5541 (cnd_signa): Likewise.
5542 (cnd_broadcast): Likewise.
5543 (cnd_wait): Likewise.
5544 (cnd_timedwait): Likewise.
5545 (cnd_destroy): Likewise.
5546
5547 [BZ #14092]
5548 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
5549 (once_flag): New type.
5550 (call_once): New function.
5551 * nptl/Makefile (libpthread-routines): Add call_once object.
5552 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
5553 * nptl/call_once.c: New file.
5554 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
5555 (once_flag): New type.
5556 (call_once): New prototype.
5557
5558 [BZ #14092]
5559 * conform/data/threads.h-data (mtx_plain): New constant.
5560 (mtx_recursive): Likewise.
5561 (mtx_timed): Likewise.
5562 (mtx_t): New type.
5563 (mtx_init): New function.
5564 (mtx_lock): Likewise.
5565 (mtx_timedlock): Likewise.
5566 (mtx_trylock): Likewise.
5567 (mtx_unlock): Likewise.
5568 (mtx_destroy): Likewise.
5569 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
5570 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
5571 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
5572 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
5573 * nptl/mtx_destroy.c: New file.
5574 * nptl/mtx_init.c: Likewise.
5575 * nptl/mtx_lock.c: Likewise.
5576 * nptl/mtx_timedlock.c: Likewise.
5577 * nptl/mtx_trylock.c: Likewise.
5578 * nptl/mtx_unlock.c: Likewise.
5579 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
5580 (mtx_recursive): Likewise.
5581 (mtx_timed): Likewise.
5582 (mtx_t): New type.
5583 (mtx_init): New prototype.
5584 (mtx_lock): Likewise.
5585 (mtx_timedlock): Likewise.
5586 (mtx_trylock): Likewise.
5587 (mtx_unlock): Likewise.
5588 (mtx_destroy): Likewise.
5589
5590 [BZ #14092]
5591 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
5592 (linknamespace-libs-ISO11): Add libpthread.a.
5593 * conform/data/threads.h-data: New file: add C11 thrd_* types and
5594 functions.
5595 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
5596 * nptl/Makefile (headers): Add threads.h.
5597 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
5598 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
5599 thrd_yield.
5600 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
5601 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
5602 thrd_join, thrd_sleep, and thrd_yield symbols.
5603 * nptl/descr.h (struct pthread): Add c11 field.
5604 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
5605 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
5606 routine with expected function prototype.
5607 (__pthread_create_2_1): Add C11 threads check based on attribute
5608 value.
5609 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
5610 * nptl/thrd_create.c: New file.
5611 * nptl/thrd_current.c: Likewise.
5612 * nptl/thrd_detach.c: Likewise.
5613 * nptl/thrd_equal.c: Likewise.
5614 * nptl/thrd_exit.c: Likewise.
5615 * nptl/thrd_join.c: Likewise.
5616 * nptl/thrd_priv.h: Likewise.
5617 * nptl/thrd_sleep.c: Likewise.
5618 * nptl/thrd_yield.c: Likewise.
5619 * include/threads.h: Likewise.
5620
5621 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5622
5623 * bits/indirect-return.h: New file.
5624 * misc/sys/cdefs.h (__glibc_has_attribute): New.
5625 * sysdeps/x86/bits/indirect-return.h: Likewise.
5626 * stdlib/Makefile (headers): Add bits/indirect-return.h.
5627 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
5628 (swapcontext): Add __INDIRECT_RETURN.
5629 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
5630 (prepare_test_buffer): Use it.
5631
5632 2018-07-24 Andreas Schwab <schwab@suse.de>
5633
5634 [BZ #23448]
5635 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
5636 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
5637
5638 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5639
5640 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
5641 Redefine if shadow stack is enabled.
5642 (SYSCALL_ERROR_LABEL): Likewise.
5643 (__vfork): Pop shadow stack and jump back to to caller directly
5644 when shadow stack is in use.
5645 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
5646 Redefine if shadow stack is enabled.
5647 (SYSCALL_ERROR_LABEL): Likewise.
5648 (__vfork): Pop shadow stack and jump back to to caller directly
5649 when shadow stack is in use.
5650
5651 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5652
5653 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
5654 enabled.
5655 (foo): Likewise.
5656 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
5657 (foo): Likewise.
5658
5659 2018-07-20 Joseph Myers <joseph@codesourcery.com>
5660
5661 * scripts/build-many-glibcs.py (Context.checkout): Default
5662 binutils version to 2.31 branch.
5663
5664 2018-07-20 Zong Li <zong@andestech.com>
5665
5666 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
5667 URL of gcc's tarball.
5668
5669 2018-07-20 Florian Weimer <fweimer@redhat.com>
5670
5671 [BZ #23396]
5672 * posix/regcomp.c (build_equiv_class): When comparing weights, do
5673 not compare an extra byte after the end of the weights.
5674
5675 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5676
5677 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
5678 to 1.
5679 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
5680 hidden prototypes.
5681 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
5682 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
5683 * scripts/check-execstack.awk: Consider `xfail' variable containing a
5684 list of libraries whose stack executability is expected.
5685 * elf/Makefile ($(objpfx)check-execstack.out): Pass
5686 $(check-execstack-xfail) to check-execstack.awk through `xfail'
5687 variable.
5688 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
5689 libc.so libpthread.so.
5690
5691 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
5692
5693 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
5694 SOCK_NONBLOCK.
5695 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
5696 and SOCK_NONBLOCK.
5697 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
5698 implement __pipe2.
5699 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
5700
5701 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5702
5703 * benchtests/scripts/compare_bench.py (__main__): use the argparse
5704 library to improve command line parsing.
5705 (__main__): make schema file as optional parameter (--schema),
5706 defaulting to benchtests/scripts/benchout.schema.json.
5707 (main): move out of the parsing stuff to __main_  and leave it
5708 only as caller of main comparison functions.
5709
5710 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
5711
5712 * NEWS: Add a note for Intel CET status.
5713 * manual/install.texi: Likewise.
5714 * INSTALL: Regenerated.
5715
5716 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
5717
5718 [BZ #23140]
5719 * localedata/locales/oc_FR (mon): Rename to...
5720 (alt_mon): This, then update October (typo fix).
5721 (mon): New content (genitive case, month names preceded by
5722 "de" or "d’").
5723
5724 [BZ #23422]
5725 * localedata/locales/oc_FR (abday): Update all items.
5726 (day): Update Wednesday and Saturday (typo fixes).
5727 (abmon): Update all items, except May.
5728 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
5729 (LC_IDENTIFICATION): Bump the revision number and date.
5730 Keep the "category" entries in alphabetic order.
5731 (LC_ADDRESS): Remove no longer needed comment.
5732 (LC_COLLATE): Use “copy "ca_ES"”.
5733 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
5734 "name_mrs".
5735
5736 2018-07-18 Joseph Myers <joseph@codesourcery.com>
5737
5738 * grp/tst_fgetgrent.c: Include <unistd.h>.
5739 (main): Use mkstemp instead of tmpnam.
5740 * io/test-utime.c (main): Likewise.
5741 * posix/annexc.c (macrofile): Change to modifiable array.
5742 (main): Remove macrofile here.
5743 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
5744 macrofile here.
5745 (check_header): Do not remove macrofile here.
5746 * posix/bug-getopt1.c: Include <stdlib.h>.
5747 (do_test): Use mkstemp instead of tmpnam.
5748 * posix/bug-getopt2.c: Include <stdlib.h>.
5749 (do_test): Use mkstemp instead of tmpnam.
5750 * posix/bug-getopt3.c: Include <stdlib.h>.
5751 (do_test): Use mkstemp instead of tmpnam.
5752 * posix/bug-getopt4.c: Include <stdlib.h>.
5753 (do_test): Use mkstemp instead of tmpnam.
5754 * posix/bug-getopt5.c: Include <stdlib.h>.
5755 (do_test): Use mkstemp instead of tmpnam.
5756 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
5757 (main): Use mkstemp instead of tmpnam.
5758 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
5759 (main): Use mkstemp instead of tmpnam.
5760 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
5761 (main): use mkstemp instead of tmpnam.
5762 * stdlib/isomac.c (macrofile): Change to modifiable array.
5763 (main): Remove macrofile here.
5764 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
5765 macrofile here.
5766 (check_header): Do not remove macrofile here.
5767
5768 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5769
5770 * manual/tunables.texi: Document glibc.tune.x86_ibt and
5771 glibc.tune.x86_shstk.
5772
5773 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5774
5775 * NEWS: Mention --enable-cet.
5776 * manual/install.texi: Document --enable-cet.
5777 * INSTALL: Regenerated.
5778
5779 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5780
5781 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
5782 Add _CET_NOTRACK before indirect jump to jump table.
5783
5784 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5785
5786 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
5787 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5788 to jump table.
5789
5790 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5791
5792 * sysdeps/i386/i686/multiarch/strcat-sse2.S
5793 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5794 to jump table.
5795
5796 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5797
5798 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
5799 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5800 to jump table.
5801
5802 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5803
5804 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
5805 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5806 to jump table.
5807
5808 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5809
5810 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
5811 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5812 to jump table.
5813 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
5814
5815 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5816
5817 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
5818 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5819 to jump table.
5820
5821 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5822
5823 * sysdeps/i386/i686/multiarch/memset-sse2.S
5824 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5825 to jump table.
5826
5827 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5828
5829 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
5830 indirect jump to jump table.
5831
5832 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5833
5834 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
5835 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5836 to jump table.
5837 (MEMCPY): Likewise.
5838
5839 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5840
5841 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
5842 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5843 to jump table.
5844 (MEMCPY): Likewise.
5845
5846 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5847
5848 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
5849 _CET_NOTRACK before indirect jump to jump table.
5850
5851 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5852
5853 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
5854 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5855 to jump table.
5856
5857 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5858
5859 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
5860 indirect jump to jump table.
5861
5862 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
5863
5864 [BZ #22241]
5865 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
5866 (LOCALES): Likewise.
5867 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
5868 * localedata/locales/sah_RU: New file.
5869 * localedata/sah_RU.UTF-8.in: New file.
5870
5871 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5872
5873 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
5874 "sysdep.h".
5875 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
5876 _CET_ENDBR to indirect jump targets and adjust jump destination
5877 for _CET_ENDBR.
5878 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
5879 "sysdep.h".
5880 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
5881 _CET_ENDBR to indirect jump targets and adjust jump destination
5882 for _CET_ENDBR.
5883 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
5884 "sysdep.h".
5885 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
5886 _CET_ENDBR to indirect jump targets and adjust jump destination
5887 for _CET_ENDBR.
5888
5889 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5890
5891 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
5892 _CET_ENDBR.
5893
5894 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5895
5896 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
5897 _CET_ENDBR.
5898 (_dl_tlsdesc_undefweak): Likewise.
5899 (_dl_tlsdesc_dynamic): Likewise.
5900 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
5901 (_dl_tlsdesc_resolve_rel): Likewise.
5902 (_dl_tlsdesc_resolve_rela): Likewise.
5903 (_dl_tlsdesc_resolve_hold): Likewise.
5904 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
5905 (_dl_tlsdesc_undefweak): Likewise.
5906 (_dl_tlsdesc_dynamic): Likewise.
5907 (_dl_tlsdesc_resolve_rela): Likewise.
5908 (_dl_tlsdesc_resolve_hold): Likewise.
5909
5910 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5911
5912 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
5913 (_fini): Likewise.
5914 * sysdeps/x86_64/crti.S (_init): Likewise.
5915 (_fini): Likewise.
5916
5917 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
5918
5919 [BZ #23140]
5920 * localedata/locales/os_RU (mon): Rename to...
5921 (alt_mon): This.
5922 (mon): Import from CLDR (genitive case).
5923
5924 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5925
5926 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
5927 cet-tunables.h> when CET is enabled.
5928
5929 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
5930
5931 [BZ #21598]
5932 * configure.ac: Add --enable-cet.
5933 * configure: Regenerated.
5934 * elf/Makefille (all-built-dso): Add a comment.
5935 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
5936 Include <dl-prop.h>.
5937 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
5938 segment.
5939 * elf/dl-open.c: Include <dl-prop.h>.
5940 (dl_open_worker): Call _dl_open_check.
5941 * elf/rtld.c: Include <dl-prop.h>.
5942 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
5943 _rtld_main_check.
5944 * sysdeps/generic/dl-prop.h: New file.
5945 * sysdeps/i386/dl-cet.c: Likewise.
5946 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
5947 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
5948 * sysdeps/x86/cet-tunables.h: Likewise.
5949 * sysdeps/x86/check-cet.awk: Likewise.
5950 * sysdeps/x86/configure: Likewise.
5951 * sysdeps/x86/configure.ac: Likewise.
5952 * sysdeps/x86/dl-cet.c: Likewise.
5953 * sysdeps/x86/dl-procruntime.c: Likewise.
5954 * sysdeps/x86/dl-prop.h: Likewise.
5955 * sysdeps/x86/libc-start.h: Likewise.
5956 * sysdeps/x86/link_map.h: Likewise.
5957 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
5958 _CET_ENDBR.
5959 (_dl_runtime_profile): Likewise.
5960 (_dl_runtime_resolve_shstk): New.
5961 (_dl_runtime_profile_shstk): Likewise.
5962 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
5963 if CET is enabled.
5964 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
5965 (CFLAGS-.os): Likewise.
5966 (CFLAGS-.op): Likewise.
5967 (CFLAGS-.oS): Likewise.
5968 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
5969 is enabled.
5970 (tests-special): Add $(objpfx)check-cet.out.
5971 (cet-built-dso): New.
5972 (+$(cet-built-dso:=.note)): Likewise.
5973 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
5974 ($(objpfx)check-cet.out): New.
5975 (generated): Add check-cet.out.
5976 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
5977 <cet-tunables.h>.
5978 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
5979 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5980 (init_cpu_features): Call get_cet_status to check CET status
5981 and update dl_x86_feature_1 with CET status. Call
5982 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
5983 (set_x86_shstk). Disable and lock CET in libc.a.
5984 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
5985 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
5986 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5987 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
5988 (_CET_ENDBR): Define if not defined.
5989 (ENTRY): Add _CET_ENDBR.
5990 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
5991 x86_shstk.
5992 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
5993 _CET_ENDBR.
5994 (_dl_runtime_profile): Likewise.
5995
5996 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
5997
5998 [BZ #21895]
5999 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
6000 restore r2 on longjmp.
6001 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
6002 test list.
6003 Added rules to build test tst-setjmp-bug21895-static.
6004 Added module setjmp-bug21895 and rules to build a shared object from it.
6005 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
6006 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
6007
6008 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
6009
6010 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
6011 * benchtests/bench-strstr.c: Likewise.
6012 * string/memmem.c (FASTSEARCH): Define.
6013 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
6014 Add support for FASTSEARCH.
6015 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
6016 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
6017 (FASTSEARCH): Define.
6018 * string/test-strcasestr.c: Rename __strnlen to strnlen.
6019 * string/test-strstr.c: Likewise.
6020
6021 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
6022
6023 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
6024 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
6025
6026 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
6027 H.J. Lu <hongjiu.lu@intel.com>
6028
6029 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
6030 (__longjmp): Restore shadow stack pointer if shadow stack is
6031 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
6032 isn't defined for __longjmp_cancel.
6033 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
6034 (_setjmp): Save shadow stack pointer if shadow stack is enabled
6035 and SHADOW_STACK_POINTER_OFFSET is defined.
6036 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
6037 (setjmp): Save shadow stack pointer if shadow stack is enabled
6038 and SHADOW_STACK_POINTER_OFFSET is defined.
6039 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
6040 (__sigsetjmp): Save shadow stack pointer if shadow stack is
6041 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6042 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
6043 <jmp_buf-ssp.h>.
6044 (____longjmp_chk): Restore shadow stack pointer if shadow stack
6045 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6046 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
6047 Remove jmp_buf-ssp.sym.
6048 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6049 <jmp_buf-ssp.h>.
6050 (____longjmp_chk): Restore shadow stack pointer if shadow stack
6051 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6052 * sysdeps/x86/Makefile (gen-as-const-headers): Add
6053 jmp_buf-ssp.sym.
6054 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
6055 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
6056 (__longjmp): Restore shadow stack pointer if shadow stack is
6057 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
6058 isn't defined for __longjmp_cancel.
6059 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
6060 (__sigsetjmp): Save shadow stack pointer if shadow stack is
6061 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6062
6063 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
6064
6065 [BZ #22563]
6066 * nptl/pthread_create.c: Include <tls-setup.h>.
6067 (__pthread_create_2_1): Call tls_setup_tcbhead.
6068 * sysdeps/generic/tls-setup.h: New file.
6069 * sysdeps/x86/nptl/tls-setup.h: Likewise.
6070 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
6071 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
6072 Likewise.
6073 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
6074 to feature_1.
6075 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
6076 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
6077 (X86_FEATURE_1_SHSTK): Likewise.
6078 (CET_ENABLED): Likewise.
6079 (IBT_ENABLED): Likewise.
6080 (SHSTK_ENABLED): Likewise.
6081
6082 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
6083
6084 [BZ #23208]
6085 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
6086 (LOCALES): Likewise.
6087 * localedata/dsb_DE.UTF-8.in: New file.
6088 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
6089
6090 2018-07-12 Florian Weimer <fweimer@redhat.com>
6091
6092 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
6093 __mprotect, not mprotect.
6094
6095 2018-07-11 Florian Weimer <fweimer@redhat.com>
6096
6097 * io/Makefile (headers): Add bits/statx.h.
6098
6099 2018-07-10 Mike FABIAN <mfabian@redhat.com>
6100
6101 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
6102 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
6103 and headers.
6104 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
6105 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
6106 for utf8_gen.py
6107
6108 2018-07-10 Florian Weimer <fweimer@redhat.com>
6109
6110 * io/Makefile (routines): Add statx.
6111 (tests-internal): Add tst-statx.
6112 * io/Versions (GLIBC_2.28): Export statx.
6113 * io/bits/statx.h: New file.
6114 * io/sys/stat.h [__USE_GNU]: Include it.
6115 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
6116 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
6117 Define.
6118 * io/statx.c: New file.
6119 * io/statx_generic.: Likewise.
6120 * io/tst-statx.: Likewise.
6121 * include/bits/statx.h: Likewise.
6122 * sysdeps/unix/sysv/linux/kernel-features.h
6123 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
6124 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6125 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
6126 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
6127 Undefine.
6128 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6129 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
6130 * sysdeps/unix/sysv/linux/statx.c: New file.
6131 * manual/filesys.texi: Note that statx is undocumented.
6132 * sysdeps/**/libc*.abilist: Update.
6133
6134 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6135
6136 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
6137 a kernel issue which lead to test failure in some cases.
6138
6139 2018-07-10 Florian Weimer <fweimer@redhat.com>
6140
6141 [BZ #23036]
6142 * posix/regexec.c (check_node_accept_bytes): When comparing
6143 weights, do not compare an extra byte after the end of the
6144 weights.
6145
6146 2018-07-10 Florian Weimer <fweimer@redhat.com>
6147
6148 * libio/readline.c: Fix copyright year.
6149 * libio/tst-readline.c Likewise.
6150 * nss/tst-nss-files-hosts-getent.c: Likewise.
6151
6152 2018-07-06 Florian Weimer <fweimer@redhat.com>
6153
6154 [BZ #18991]
6155 * nss/nss_files/files-XXX.c (internal_getent): Use
6156 __libc_readline_unlocked. Seek back to the start of the line if
6157 parsing failes with ERANGE.
6158 (get_contents_ret, get_contents): Remove.
6159 * nss/tst-nss-files-hosts-getent.c: New file.
6160 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
6161 (tst-nss-files-hosts-getent): Link with -ldl.
6162
6163 2018-07-06 Florian Weimer <fweimer@redhat.com>
6164
6165 * include/stdio.h (__libc_readline_unlocked): Declare.
6166 (__ftello64, __fseeko64): Declare aliases.
6167 * libio/readline.c: New file.
6168 * libio/tst-readline.c: Likewise.
6169 (routines): Add readline.
6170 (tests-internal): Add tst-readlime.
6171 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
6172 __libc_readline_unlocked.
6173 * libio/fseeko.c (__fseeko): Rename from fseeko.
6174 (fseeko): Add alias.
6175 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
6176 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
6177 (fseeko64): Add alias.
6178 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
6179 * libio/ftello64.c (__ftello64): Rename from ftello64.
6180 (ftello64): Add alias.
6181
6182 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
6183
6184 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
6185 HWCAP_ATOMICS.
6186
6187 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
6188
6189 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
6190 Use dl_hwcap without masking.
6191 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
6192 Remove HWCAP_CPUID.
6193
6194 2018-07-06 Florian Weimer <fweimer@redhat.com>
6195
6196 * conform/conformtest.pl (checknamespace): Escape literal braces
6197 in regular expressions.
6198
6199 2018-07-06 Amit Pawar <amit.pawar@amd.com>
6200
6201 * sysdeps/x86/cpu-features.c (get_common_indeces):
6202 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
6203 * sysdeps/x86/cpu-features.c (init_cpu_features):
6204 AVX_Fast_Unaligned_Load is disabled for Excavator core.
6205
6206 2018-07-05 Florian Weimer <fweimer@redhat.com>
6207
6208 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
6209 protector.
6210 (CFLAGS-elf-init.oS): Likewise.
6211
6212 2018-07-05 Florian Weimer <fweimer@redhat.com>
6213 Carlos O'Donell <carlos@redhat.com>
6214
6215 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
6216 $(no-stack-protector). stack_chk_fail_local.c can be compiled
6217 with stack protector enabled because there is no risk of infinite
6218 recursion.
6219
6220 2018-07-05 Maciej W. Rozycki <macro@mips.com>
6221
6222 [BZ #19818]
6223 [BZ #23307]
6224 * libc-abis (ABSOLUTE): New ABI.
6225 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
6226 * NEWS: Mention the new ABI.
6227
6228 2018-07-05 Florian Weimer <fweimer@redhat.com>
6229
6230 [BZ # 17662]
6231 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
6232 (RENAME_WHITEOUT): Define.
6233 [__USE_GNU] (renameat2): Declare.
6234 * stdio-common/Makefile (routines): Add renameat2.
6235 (tests): Add tst-renameat2.
6236 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
6237 * stdio-common/renameat2.c: New file.
6238 * stdio-common/tst-renameat2.c: Likewise.
6239 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
6240 * manual/filesys.texi (Temporary Files): Note that renameat2 is
6241 undocumented.
6242 * sysdeps/unix/sysv/linux/kernel-features.h
6243 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
6244 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6245 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
6246 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6247 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
6248 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6249 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
6250 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6251 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
6252 * include/stdio.h (__renameat): Add alias for renameat.
6253 * stdio-common/renameat.c (__renameat): Rename from renameat.
6254 Add hidden definition and alias.
6255 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
6256 * sysdeps/mach/hurd/renameat.c: Likewise.
6257 * sysdeps/**/libc*.abilist: Add renameat2.
6258
6259 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6260
6261 * posix/bug-regex33.c: Fix build after regex sync.
6262
6263 2018-07-04 Carlos O'Donell <carlos@redhat.com>
6264
6265 [BZ #23164]
6266 * localedata/tst-langinfo-setlocale.c: New file.
6267 * localedata/tst-langinfo-setlocale-static.c: New file.
6268 * localedata/tst-langinfo-newlocale.c: New file.
6269 * localedata/tst-langinfo-newlocale-static.c: New file.
6270 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
6271 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
6272 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
6273 (tests-static): Remove tst-langinfo-static. Add
6274 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
6275 (tests-special): Remove $(objpfx)tst-langinfo.out,
6276 $(objpfx)tst-langinfo-static.out. Add
6277 $(objpfx)tst-langinfo-setlocale.out,
6278 $(objpfx)tst-langinfo-newlocale.out,
6279 $(objpfx)tst-langinfo-setlocale-static.out,
6280 $(objpfx)tst-langinfo-newlocale-static.out.
6281 ($(objpfx)tst-langinfo.out): Remove.
6282 ($(objpfx)tst-langinfo-static.out): Remove.
6283 ($(objpfx)tst-langinfo-newlocale.out): New target.
6284 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
6285 (test-xfail-tst-langinfo-newlocale-static): Add.
6286 ($(objpfx)tst-langinfo-setlocale.out): New target.
6287 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
6288 * localedata/tst-langinfo.c: Call test_locale.
6289 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
6290 data.
6291
6292 2018-07-04 Florian Weimer <fweimer@redhat.com>
6293
6294 testrun.sh: Implement --tool=strace, --tool=valgrind
6295 * Makefile (testrun-script): Define variable.
6296 (testrun.sh): Use variable.
6297 * manual/install.texi (Tools for Compilation): make 4.0 or later
6298 is required.
6299 * configure.ac: Check for make 4.0 or later.
6300 * INSTALL: Regenerate.
6301 * configure: Likewise.
6302
6303 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6304
6305 [BZ #23233]
6306 [BZ #21163]
6307 [BZ #18986]
6308 [BZ #13762]
6309 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
6310 * posix/PCRE.tests: Remove invalid test.
6311 * posix/bug-regex28.c: Fix expected values for used syntax.
6312 * posix/bug-regex37.c: New file.
6313 * posix/bug-regex38.c: Likewise.
6314 * posix/regcomp.c: Sync with gnulib.
6315 * posix/regex.c: Likewise.
6316 * posix/regex.h: Likewise.
6317 * posix/regex_internal.c: Likewise.
6318 * posix/regex_internal.h: Likewise.
6319 * posix/regexec.c: Likewise.
6320
6321 2018-06-26 Mike FABIAN <mfabian@redhat.com>
6322
6323 [BZ #23308]
6324 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
6325 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
6326 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
6327 * localedata/unicode-gen/PropList.txt: likewise.
6328 * localedata/unicode-gen/UnicodeData.txt: likewise.
6329 * localedata/charmaps/UTF-8: Regenerate.
6330 * localedata/locales/i18n_ctype: likewise.
6331 * localedata/locales/tr_TR: likewise.
6332 * localedata/locales/translit_circle: likewise.
6333 * localedata/locales/translit_cjk_compat: likewise.
6334 * localedata/locales/translit_combining: likewise.
6335 * localedata/locales/translit_compat: likewise.
6336 * localedata/locales/translit_font: likewise.
6337 * localedata/locales/translit_fraction: likewise.
6338
6339 2018-07-03 Florian Weimer <fweimer@redhat.com>
6340
6341 [BZ #23363]
6342 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
6343 * stdio-common/tst-printf.sh: Adjust expected output.
6344 * LICENSES: Update.
6345
6346 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6347
6348 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
6349 symbol.
6350
6351 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6352
6353 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
6354 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
6355 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
6356 * stdio-common/tst-printfsz-islongdouble.c: New file.
6357 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
6358 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
6359 [subdir == stdio-common] (routines): Add ieee128-printf_size.
6360 [subdir == stdio-common] (tests-internal): Add
6361 test-printf-size-ieee128, and test-printf-size-ibm128.
6362 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
6363 (CFLAGS-test-printf-size-ibm128.c): New variables.
6364 [subdir == stdio-common] (tests-special): Add
6365 $(objpfx)test-printf-size-ieee128.out and
6366 $(objpfx)test-printf-size-ibm128.out.
6367 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
6368 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
6369 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
6370 __printf_sizeieee128.
6371 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
6372 New file.
6373 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
6374 Likewise.
6375 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
6376 Likewise.
6377
6378 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
6379
6380 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
6381 (exp2f_inline): Likewise.
6382 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
6383 (__math_uflowf): Likewise.
6384 (__math_may_uflowf): Likewise.
6385 (__math_divzerof): Likewise.
6386 (__math_invalidf): Likewise.
6387 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
6388 (__math_oflowf): Likewise.
6389 (__math_uflowf): Likewise.
6390 (__math_may_uflowf): Likewise.
6391 (__math_divzerof): Likewise.
6392 (__math_invalidf): Likewise.
6393
6394 2018-06-29 DJ Delorie <dj@redhat.com>
6395 Carlos O'Donell <carlos@redhat.com>
6396
6397 [BZ #23329]
6398 * include/libc-symbols.h: Comment the freeres framework.
6399 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
6400 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
6401 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
6402 * dlfcn/dlerror.c: Include libc-symbols.h
6403 (__dlerror_main_freeres): New function.
6404 * dlfcn/dlfreeres.c: New file.
6405 * dlfcn/sdlfreeres.c: New file.
6406 * include/dlfcn.h: Declare __dlerror_main_freeres.
6407 * malloc/set-freeres.c: Declare __libdl_freeres, and
6408 __libpthread_freeres.
6409 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
6410 the releavant libraries are loaded.
6411 * malloc/thread-freeres.c: Add comments.
6412 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
6413 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
6414 * nptl/allocatestack.c (__nptl_free_stacks): New function.
6415 (__free_stacks): Rename to...
6416 (free_stacks): ...this. Mark static.
6417 (queue_stack): Call free_stacks.
6418 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
6419 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
6420 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
6421 ptr_freeres element from struct.
6422 (pthread_functions): Remove .ptr_freeres from struct initializer.
6423 [SHARED] (nptl_freeres): Remove.
6424 * nptl/nptlfreeres.c: New file.
6425 * nptl/pthreadP.h
6426 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
6427 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
6428 attribute_hidden.
6429 (__free_stacks): Rename to...
6430 (__nptl_stacks_freeres): ...this.
6431 (__shm_directory_freeres): Declare.
6432 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
6433 (__nptl_unwind_freeres): ...this.
6434 * resolv/res-close.c: Add comment.
6435 * resolv/resolv_conf.c: Include libc-symbols.h.
6436 * string/strerror_l.c: Include libc-symbols.h.
6437 * sunrpc/rpc_thread.c: Include libc-symbols.h.
6438 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
6439 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
6440 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
6441
6442 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6443
6444 * stdlib/tst-strfmon_l.c: Add tests for long double.
6445
6446 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
6447
6448 [BZ #23208]
6449 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
6450 * localedata/locales/dsb_DE: New file.
6451
6452 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
6453
6454 [BZ #23140]
6455 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
6456 genitive case).
6457 (alt_mon): New entry, import from CLDR (nominative case).
6458
6459 2018-06-29 Sylvain Lesage <severo@rednegra.net>
6460
6461 [BZ #22996]
6462 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
6463
6464 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
6465
6466 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
6467 Use vector registers.
6468
6469 * sysdeps/aarch64/multiarch/memmove_falkor.S
6470 (__memcpy_falkor): Use vector registers.
6471
6472 2018-06-29 Martin Sebor <msebor@redhat.com>
6473
6474 * manual/stdio.texi (Customizing Printf): Mention interaction
6475 with GCC built-ins.
6476
6477 2018-06-29 Maciej W. Rozycki <macro@mips.com>
6478
6479 [BZ #23307]
6480 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
6481 `st_value' is 0 if `st_shndx' is SHN_ABS.
6482 * elf/tst-absolute-zero.c: New file.
6483 * elf/tst-absolute-zero-lib.c: New file.
6484 * elf/tst-absolute-zero-lib.lds: New file.
6485 * elf/Makefile (tests): Add `tst-absolute-zero'.
6486 (modules-names): Add `tst-absolute-zero-lib'.
6487 (LDLIBS-tst-absolute-zero-lib.so): New variable.
6488 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
6489 ($(objpfx)tst-absolute-zero: New dependency.
6490
6491 2018-06-29 Zack Weinberg <zackw@panix.com>
6492
6493 * configure.ac: New command-line option --disable-crypt.
6494 Force --disable-nss-crypt when --disable-crypt is given, with a
6495 warning if it was explicitly enabled.
6496 * configure: Regenerate.
6497 * config.make.in: New boolean substitution variable $(build-crypt).
6498 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
6499 when $(build-crypt).
6500 * manual/install.texi: Document --disable-crypt.
6501 * INSTALL: Regenerate.
6502
6503 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
6504 which is never set.
6505 * conform/Makefile: Only include libcrypt.a in
6506 linknamespace-libs-xsi and linknamespace-libs-XPG4
6507 when $(build-crypt).
6508 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
6509 USE_CRYPT to 1 when $(build-crypt).
6510 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
6511 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
6512 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
6513
6514 2018-06-29 Zack Weinberg <zackw@panix.com>
6515
6516 * crypt/crypt.h, posix/unistd.h: Update comments and
6517 prototypes for crypt and crypt_r.
6518
6519 * manual/crypt.texi (Cryptographic Functions): New initial
6520 exposition.
6521 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
6522 (Unpredictable Bytes): Improve initial exposition. Clarify error
6523 behavior of getentropy and getrandom.
6524 * manual/examples/genpass.c: Generate a salt using getentropy
6525 instead of the current time. Use hash $5$ (SHA-2-256).
6526 * manual/examples/testpass.c: Demonstrate validation against
6527 hashes generated with three different one-way functions.
6528
6529 * manual/intro.texi: crypt.texi does not need an overview
6530 anymore.
6531
6532 * manual/nss.texi, manual/memory.texi, manual/socket.texi
6533 * manual/terminal.texi: Consistently refer to "passphrases"
6534 * instead of "passwords", and to the "user database" instead
6535 * of the "password database".
6536 * manual/users.texi: Similarly. Add notes about how actual
6537 passphrase hashes are now stored in the shadow database.
6538 Remove 20-year-old junk todo note.
6539
6540 2018-06-29 Zack Weinberg <zackw@panix.com>
6541
6542 * manual/crypt.texi: Use a normal top-level @node declaration.
6543 Move most of the introductory text to the 'crypt' section.
6544 Move the example programs below the @deftypefun for 'crypt_r'.
6545 Move the 'getpass' section...
6546 * manual/terminal.texi: ...here.
6547
6548 2018-06-29 Zack Weinberg <zackw@panix.com>
6549 Florian Weimer <fweimer@redhat.com>
6550
6551 * posix/unistd.h: Do not declare encrypt.
6552 (_XOPEN_CRYPT): Remove macro definition.
6553 (crypt): Declare only for _USE_MISC.
6554 * stdlib/stdlib.h: Do not declare setkey.
6555 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
6556 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
6557
6558 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
6559 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
6560 into compat symbols. Don't define initial_perm if it's not
6561 going to be used.
6562 * crypt/cert.c: Link explicitly with the expected versions for
6563 setkey and encrypt. If they are not available at all, mark
6564 the test as unsupported.
6565
6566 * sunrpc/des_crypt.c: Unconditionally block linkage with
6567 cbc_crypt and ecb_crypt for new binaries.
6568 * sunrpc/des_soft.c: Unconditionally block linkage with
6569 des_setparity for new binaries.
6570
6571 * manual/crypt.texi: Remove the entire "DES Encryption"
6572 section. Also remove the paragraph talking about FIPS 140-2
6573 from the introduction.
6574 * manual/string.texi (strfry, memfrob): Revise. Recommend use
6575 of libgcrypt for "real" encryption, not DES.
6576 * manual/conf.texi (Constants for Sysconf): Mention that
6577 _XOPEN_CRYPT is no longer impelemented.
6578
6579 * conform/data/unistd.h-data: Remove crypt function declaration.
6580
6581 2018-06-29 Florian Weimer <fweimer@redhat.com>
6582
6583 [BZ #23351]
6584 * malloc/hooks.c: Update comments on restoring of dumped heaps.
6585 (disallow_malloc_check): Remove variable.
6586 (__malloc_check_init): Adjust.
6587 (malloc_set_state): Update comment.
6588 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
6589 declarations.
6590
6591 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
6592
6593 [BZ #23140]
6594 * localedata/locales/ast_ES (mon): Rename to...
6595 (alt_mon): This.
6596 (mon): Import from CLDR (genitive case).
6597
6598 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
6599 Jakub Sitnicki <jkbs@redhat.com>
6600
6601 [BZ #21812]
6602 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
6603 on NLM_F_DUMP_INTR.
6604
6605 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
6606
6607 * manual/llio.texi: Remove spurious space.
6608
6609 2018-06-28 Florian Weimer <fweimer@redhat.com>
6610
6611 [BZ #23349]
6612 * time/bits/types/struct_timespec.h: Change header inclusion guard to
6613 _STRUCT_TIMESPEC.
6614
6615 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6616
6617 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
6618 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
6619 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
6620 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
6621 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
6622 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
6623 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
6624
6625 2018-06-27 Maciej W. Rozycki <macro@mips.com>
6626
6627 [BZ #23266]
6628 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
6629 Copy and null-terminate entries that are not terminated, in
6630 addition to empty ones.
6631
6632 2018-06-27 Florian Weimer <fweimer@redhat.com>
6633
6634 [BZ #18023]
6635 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
6636 (extend_alloca_account): Remove.
6637 * manual/stdio.texi (Variable Arguments Output): Update comment.
6638
6639 2018-06-27 Joseph Myers <joseph@codesourcery.com>
6640
6641 * nptl/sockperf.c: Remove file.
6642
6643 2018-06-27 Florian Weimer <fweimer@redhat.com>
6644
6645 [BZ #18023]
6646 * elf/dl-deps.c (_dl_map_object_deps): Use struct
6647 scratch_buffer instead of extend_alloca.
6648
6649 2018-06-27 Florian Weimer <fweimer@redhat.com>
6650
6651 [BZ #18023]
6652 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
6653 scratch_buffer instead of extend_alloca. Update comments.
6654
6655 2018-06-27 Florian Weimer <fweimer@redhat.com>
6656
6657 [BZ #18023]
6658 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
6659 instead of extend_alloca.
6660
6661 2018-06-26 Joseph Myers <joseph@codesourcery.com>
6662
6663 [BZ #13888]
6664 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
6665 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
6666 /tmp.
6667 * scripts/test-installation.pl: Put temporary files in build
6668 directory, not /tmp.
6669 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
6670 (CFLAGS-bug4.c): Likewise.
6671 (CFLAGS-bug5.c): Likewise.
6672 (CFLAGS-test-fseek.c): Likewise.
6673 (CFLAGS-test-popen.c): Likewise.
6674 (CFLAGS-test_rdwr.c): Likewise.
6675 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
6676 /tmp.
6677 * stdio-common/bug4.c (main): Likewise.
6678 * stdio-common/bug5.c (main): Likewise.
6679 * stdio-common/test-fseek.c (TESTFILE): Likewise.
6680 * stdio-common/test-popen.c (do_test): Likewise.
6681 * stdio-common/test_rdwr.c (main): Likewise.
6682
6683 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
6684
6685 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
6686 (sem_open): Set sem.newsem.pad to zero for valgrind.
6687
6688 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6689
6690 [BZ #20251]
6691 * NEWS: Mention fcntl64 addition.
6692 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
6693 * login/utmp_file.c: Likewise.
6694 * sysdeps/posix/fdopendir.c: Likewise.
6695 * sysdeps/posix/opendir.c: Likewise.
6696 * sysdeps/unix/pt-fcntl.c: Likewise.
6697 * include/fcntl.h (__libc_fcntl64, __fcntl64,
6698 __fcntl64_nocancel_adjusted): New prototype.
6699 (__fcntl_nocancel_adjusted): Remove prototype.
6700 * io/Makefile (routines): Add fcntl64.
6701 (CFLAGS-fcntl64.c): New rule.
6702 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
6703 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
6704 * io/fcntl.h (fcntl64): Add prototype and redirect if
6705 __USE_FILE_OFFSET64 is defined.
6706 * io/fcntl64.c: New file.
6707 * manual/llio.text: Add a note for which commands fcntl acts a
6708 cancellation point.
6709 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
6710 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
6711 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
6712 New symbols.
6713 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
6714 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
6715 non-LFS case.
6716 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
6717 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
6718 to __fcntl64_nocancel.
6719 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
6720 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
6721 to __fcntl64_nocancel.
6722 * sysdeps/generic/not-cancel.h: Likewise.
6723 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
6724 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
6725 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
6726 (fcntl64): New symbol.
6727 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6728 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6729 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6730 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6732 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6733 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6734 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6735 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6736 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6737 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
6738 fcntl64): Likewise.
6739 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6740 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
6741 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6742 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6743 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6744 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6745 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6746 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6747 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6749 Likewise.
6750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6751 Likewise.
6752 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6753 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6754 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6755
6756 2018-06-26 Florian Weimer <fweimer@redhat.com>
6757
6758 Run thread shutdown functions in an explicit order.
6759 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
6760 definition.
6761 (__libc_thread_freeres): Call thread shutdown functions
6762 explicitly.
6763 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
6764 * include/string.h (__strerror_thread_freeres): Declare.
6765 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
6766 arena_thread_freeres. No longer static. Remove thread shutdown
6767 hook registration.
6768 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
6769 Declare.
6770 * resolv/res-close.c (__res_thread_freeres): Renamed from
6771 res_thread_freeres. No longer static. Remove thread shutdown
6772 hook registration.
6773 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
6774 * resolv/resolv_conf.c (freeres): Remove incorrect section
6775 attribute and use libc_freeres_fn.
6776 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
6777 strerror_thread_freeres. No longer static. Remove thread
6778 shutdown hook registration.
6779 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
6780 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
6781 shutdown hook registration.
6782 * Makerules (shlib.lds): Do not provide section boundary symbols
6783 for __libc_thread_subfreeres.
6784 * manual/memory.texi (Basic Allocation): Update comment.
6785
6786 2018-06-26 Florian Weimer <fweimer@redhat.com>
6787
6788 Remove always-defined _RPC_THREAD_SAFE_ macro.
6789 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
6790 Do not define _RPC_THREAD_SAFE_.
6791 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
6792 conditional.
6793 * sunrpc/clnt_perr.c: Likewise.
6794 * sunrpc/clnt_raw.c: Likewise.
6795 * sunrpc/clnt_simp.c: Likewise.
6796 * sunrpc/key_call.c: Likewise.
6797 * sunrpc/rpc_common.c: Likewise.
6798 * sunrpc/rpc_main.c: Likewise.
6799 * sunrpc/rpc_thread.c: Likewise.
6800 * sunrpc/svc.c: Likewise.
6801 * sunrpc/svc_raw.c: Likewise.
6802 * sunrpc/svc_simple.c: Likewise.
6803 * sumrpc/svcauth_des.c: Likewise.
6804
6805 2018-06-26 Florian Weimer <fweimer@redhat.com>
6806
6807 * libio/Makefile (tests-internal): Add tst-vtables,
6808 tst-vtables-interposed.
6809 * libio/tst-vtables.c: New file.
6810 * libio/tst-vtables-common.c: Likewise.
6811 * libio/tst-vtables-interposed.c: Likewise.
6812
6813 2018-06-26 Florian Weimer <fweimer@redhat.com>
6814
6815 * support/support_test_main.c (support_test_main): Only call
6816 setvbuf if not disables.
6817 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
6818 * support/test-driver.h (struct test_config): Add no_setvbuf member.
6819
6820 2018-06-26 Florian Weimer <fweimer@redhat.com>
6821
6822 [BZ #23313]
6823 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
6824
6825 2018-06-25 Florian Weimer <fweimer@redhat.com>
6826
6827 [BZ #18023]
6828 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6829 Use struct scratch_buffer instead of extend_alloca.
6830
6831 2018-06-25 Florian Weimer <fweimer@redhat.com>
6832
6833 [BZ #18023]
6834 * nss/getent.c (initgroups_keys): Use dynarray instead of
6835 extend_alloca.
6836
6837 2018-06-25 Florian Weimer <fweimer@redhat.com>
6838
6839 [BZ #18023]
6840 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
6841 Use struct scratch_buffer instead of extend_alloca.
6842
6843 2018-06-25 Florian Weimer <fweimer@redhat.com>
6844
6845 [BZ #18023]
6846 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
6847 back to malloc directly, without stack allocations.
6848
6849 2018-06-25 Florian Weimer <fweimer@redhat.com>
6850
6851 [BZ #18023]
6852 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
6853 of extend_alloca.
6854
6855 2018-06-25 Florian Weimer <fweimer@redhat.com>
6856
6857 [BZ #18023]
6858 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
6859 of extend_alloca.
6860 * nscd/hstcache.c (addhstbyX): Likewise.
6861 * nscd/pwdcache.c (addpwbyX): Likewise.
6862 * nscd/servicescache.c (addservbyX): Likewise.
6863
6864 2018-06-25 Florian Weimer <fweimer@redhat.com>
6865
6866 [BZ #18023]
6867 * nscd/connections.c (read_cmdline): New function.
6868 (restart): Use it. Update comment.
6869
6870 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
6871
6872 [BZ #23140]
6873 * localedata/locales/csb_PL (mon): Rename to...
6874 (alt_mon): This.
6875 (abmon): Rename to...
6876 (ab_alt_mon): This.
6877 (mon): Add with proper genitive forms, copy from Wikipedia.
6878 (abmon): Likewise.
6879
6880 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
6881
6882 [BZ #19485]
6883 * localedata/locales/csb_PL (mon): Fix typos:
6884 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
6885 (yesstr): Add, value is "jo".
6886 (nostr): Add, value is "nié".
6887
6888 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6889
6890 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
6891 all log1p and significand functions on m680x0.
6892 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
6893 of s_significand.c..
6894 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
6895 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
6896 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
6897 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
6898 s_log1p.c and include it..
6899
6900 2018-06-21 Vincent Chen <vincentc@andestech.com>
6901
6902 * elf/elf.h (R_NDS32_NONE): New define.
6903 (R_NDS32_32_RELA): Likewise.
6904 (R_NDS32_COPY): Likewise.
6905 (R_NDS32_GLOB_DAT): Likewise.
6906 (R_NDS32_JUMP_SLOT): Likewise.
6907 (R_NDS32_RELATIVE): Likewise.
6908 (R_NDS32_TLS_TPOFF): Likewise.
6909 (R_NDS32_TLS_DESC): Likewise.
6910
6911 2018-06-21 Mark Wielaard <mark@klomp.org>
6912
6913 * elf/elf.h (R_BPF_MAP_FD): Removed.
6914 (R_BPF_64_64, R_BPF_64_32): New.
6915
6916 2018-06-21 Florian Weimer <fweimer@redhat.com>
6917
6918 [BZ #23253]
6919 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
6920 Renamed from libc_feholdsetround_ctx.
6921 (default_libc_feresetround_ctx): Renamed from
6922 libc_feresetround_ctx.
6923 (default_libc_feholdsetround_noex_ctx): Renamed from
6924 libc_feholdsetround_noex_ctx.
6925 (default_libc_feresetround_noex_ctx): Renamed from
6926 libc_feresetround_noex_ctx.
6927 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
6928 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
6929 forwardning to the old implementations under the new names.
6930 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
6931 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
6932 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
6933 (libc_feresetround_ctx): Forward to default implements for i386
6934 and MATH_SET_BOTH_ROUNDING_MODES.
6935 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
6936 Add -DMATH_SET_BOTH_ROUNDING_MODES.
6937
6938 2018-06-20 Joseph Myers <joseph@codesourcery.com>
6939
6940 * string/tst-cmp.c: Include <libc-diag.h>.
6941 (strncmp_max): Disable -Wstringop-overflow= around call to
6942 strncmp.
6943 (strncasecmp_max): Disable -Wstringop-overflow= around call to
6944 strncasecmp.
6945
6946 * string/bug-strpbrk1.c: Include <libc-diag.h>.
6947 (main): Disable -Wunused-value around call to strpbrk.
6948 * string/bug-strspn1.c: Include <libc-diag.h>.
6949 (main): Disable -Wunused-value around call to strspn.
6950
6951 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6952 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6953
6954 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
6955 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
6956
6957 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6958
6959 * math/Makefile (libm-calls): Move s_significandF to...
6960 (gen-libm-calls): ... here.
6961 * math/s_significand_template.c: New file.
6962 * math/s_significand.c: Removed.
6963 * math/s_significandf.c: Removed.
6964 * math/s_significandl.c: Removed.
6965 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
6966 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
6967
6968 * math/e_exp2_template.c (declare_mgen_finite_alias,
6969 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
6970 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
6971 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
6972
6973 2018-06-20 Florian Weimer <fweimer@redhat.com>
6974
6975 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
6976
6977 2018-06-19 Joseph Myers <joseph@codesourcery.com>
6978
6979 [BZ #23280]
6980 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
6981 floating-point number to strtod functions rather than possibly
6982 negating result of those functions.
6983 * stdio-common/tst-scanf-round.c: New file.
6984 * stdio-common/Makefile (tests): Add tst-scanf-round.
6985 ($(objpfx)tst-scanf-round): Depend on $(libm).
6986
6987 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
6988
6989 * sysdeps/mach/hurd/localplt.data: Move to...
6990 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
6991 R_386_GLOB_DAT like on Linux i386.
6992
6993 2018-06-18 Joseph Myers <joseph@codesourcery.com>
6994
6995 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
6996 (SHM_STAT_ANY): New macro.
6997 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
6998 (SHM_STAT_ANY): Likewise.
6999 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
7000 (SHM_STAT_ANY): Likewise.
7001 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
7002 (SHM_STAT_ANY): Likewise.
7003 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
7004 (SHM_STAT_ANY): Likewise.
7005 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
7006 (SHM_STAT_ANY): Likewise.
7007 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
7008 (SHM_STAT_ANY): Likewise.
7009 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
7010 (SHM_STAT_ANY): Likewise.
7011 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
7012 (SHM_STAT_ANY): Likewise.
7013 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
7014 (SHM_STAT_ANY): Likewise.
7015 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
7016 (SHM_STAT_ANY): Likewise.
7017 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
7018 (SHM_STAT_ANY): Likewise.
7019
7020 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
7021 (SEM_STAT_ANY): New macro.
7022 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
7023 (SEM_STAT_ANY): Likewise.
7024 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
7025 (SEM_STAT_ANY): Likewise.
7026 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
7027 (SEM_STAT_ANY): Likewise.
7028 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
7029 (SEM_STAT_ANY): Likewise.
7030 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
7031 (SEM_STAT_ANY): Likewise.
7032 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
7033 (SEM_STAT_ANY): Likewise.
7034 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
7035 (SEM_STAT_ANY): Likewise.
7036 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
7037 (SEM_STAT_ANY): Likewise.
7038 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
7039 (SEM_STAT_ANY): Likewise.
7040
7041 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
7042 (MSG_STAT_ANY): New macro.
7043 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
7044 (MSG_STAT_ANY): Likewise.
7045 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
7046 (MSG_STAT_ANY): Likewise.
7047 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
7048 (MSG_STAT_ANY): Likewise.
7049 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
7050 (MSG_STAT_ANY): Likewise.
7051 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
7052 (MSG_STAT_ANY): Likewise.
7053 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
7054 (MSG_STAT_ANY): Likewise.
7055 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
7056 (MSG_STAT_ANY): Likewise.
7057 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
7058 (MSG_STAT_ANY): Likewise.
7059 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
7060 (MSG_STAT_ANY): Likewise.
7061
7062 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7063 (MAP_TYPE): Change value to 0x2b.
7064
7065 2018-06-18 Florian Weimer <fweimer@redhat.com>
7066
7067 [BZ #15722]
7068 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
7069 socket with SOCK_CLOEXEC.
7070
7071 2018-06-18 Joseph Myers <joseph@codesourcery.com>
7072
7073 [BZ #23303]
7074 * sysdeps/powerpc/powerpc64/le/Makefile
7075 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
7076 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
7077 (gnulib-tests): Also add $(f128-loader-link) for
7078 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
7079
7080 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7081
7082 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
7083 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
7084 of sendfile.
7085 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
7086 (sendfile64): New strong alias.
7087 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
7088 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
7089 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
7090 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
7091 attribute.
7092 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
7093 ___pthread_get_cleanup_stack.
7094 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
7095 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
7096 * mach/shortcut.awk: Make syscall stubs include
7097 <mach-shortcuts-hidden.h> and add hidden definition.
7098 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
7099 (__mach_msg): Add hidden prototype.
7100 * mach/msg.c: Include <mach.h>.
7101 (__mach_msg): Add hidden definition.
7102 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
7103 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
7104 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
7105 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
7106 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
7107 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
7108 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
7109 prototype and definition.
7110 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
7111 hidden target for _hurd_self_sigstate.
7112
7113 2018-06-15 Joseph Myers <joseph@codesourcery.com>
7114
7115 [BZ #23007]
7116 * stdlib/tst-strtod-nan-sign-main.c: New file.
7117 * stdlib/tst-strtod-nan-sign.c: Likewise.
7118 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
7119 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
7120 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
7121 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
7122 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
7123
7124 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
7125
7126 [BZ #23007]
7127 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
7128 appropriate sign.
7129
7130 2018-06-14 Florian Weimer <fweimer@redhat.com>
7131
7132 [BZ #23290]
7133 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
7134 that the result stays within the ISO-8859-1 range.
7135 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
7136 characters are defined in IBM273.
7137
7138 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7139
7140 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
7141 __mach_task_self): Remove attribute_hidden.
7142
7143 2018-06-14 Joseph Myers <joseph@codesourcery.com>
7144
7145 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
7146 ignore -Wrestrict for one test.
7147
7148 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
7149 Szabolcs Nagy <szabolcs.nagy@arm.com>
7150
7151 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
7152
7153 2018-06-14 Florian Weimer <fweimer@redhat.com>
7154
7155 * scripts/update-abilist.sh: Accept empty list of files to patch.
7156
7157 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
7158
7159 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
7160 test-xfail-check-abi-libmachuser): Add.
7161 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
7162 __libc_read and __libc_write to __read and __write.
7163 * sysdeps/hurd/include/hurd/port.h: New file.
7164 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
7165 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
7166 __thread_switch, __evc_wait): Move declarations to...
7167 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
7168 attribute_hidden.
7169 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
7170 use PLT to call _hurd_self_sigstate.
7171
7172 2018-06-13 Joseph Myers <joseph@codesourcery.com>
7173
7174 [BZ #23279]
7175 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
7176 MAX_EXP as overflowing.
7177 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
7178 overflow flag.
7179 (round_str): Output also whether result overflows in each rounding
7180 mode.
7181 * stdlib/tst-strtod-round-data: Add more tests.
7182 * stdlib/tst-strtod-round-data.h: Regenerated.
7183 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
7184 (TEST): Handle extra arguments for overflow flags.
7185 (struct test_overflow): New type.
7186 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
7187 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
7188 (test_in_one_mode): Take argument with overflow information.
7189 (do_test): Update calls to test_in_one_mode.
7190
7191 2018-06-12 Carlos O'Donell <carlos@redhat.com>
7192
7193 * elf/dl-load (_dl_dst_substitute): Correct comment.
7194 (_dl_dst_count): Likewise.
7195
7196 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
7197 lll_futex_timed_wait.
7198
7199 2018-06-12 Joseph Myers <joseph@codesourcery.com>
7200
7201 [BZ #23277]
7202 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
7203 attribute.
7204 * math/test-nan-const.c: New file.
7205 * math/Makefile (tests): Add test-nan-const.
7206 (CFLAGS-test-nan-const.c): New variable.
7207
7208 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 * benchtests/scripts/compare_strings.py (process_results): Add
7211 funcs argument. Compare only functions which are selected.
7212 (main): Check if base function is among selected functions.
7213 Pass selected functions to process_results.
7214 (__main__): Add -f/--functions argument.
7215
7216 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
7217 Hongbo Zhang <hongbo.zhang@linaro.org>
7218
7219 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
7220 __memcpy_falkor for phecda core.
7221 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
7222 __memmove_falkor for phecda core.
7223 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
7224 __memset_falkor for phecda core.
7225 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
7226 for phecda core.
7227 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
7228 macro to identify phecda core.
7229
7230 2018-06-12 Carlos O'Donell <carlos@redhat.com>
7231 Andreas Schwab <schwab@suse.de>
7232 Dmitry V. Levin <ldv@altlinux.org>
7233 Florian Weimer <fweimer@redhat.com>
7234
7235 [BZ #23102]
7236 [BZ #21942]
7237 [BZ #18018]
7238 [BZ #23259]
7239 CVE-2011-0536
7240 * elf/dl-dst.h: Remove DL_DST_COUNT.
7241 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
7242 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
7243 (is_dst): Comment. Support ELF gABI.
7244 (_dl_dst_count): Comment. Simplify and count DSTs.
7245 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
7246 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
7247 locals.
7248
7249 2018-06-12 Zack Weinberg <zackw@panix.com>
7250
7251 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
7252 * sysdeps/unix/sysv/linux/dl-sysdep.c
7253 Include not-cancel.h. Use __close_nocancel instead of __close,
7254 __open64_nocancel instead of __open, __read_nocancel instead of
7255 __libc_read, and __write_nocancel instead of __libc_write.
7256
7257 * csu/check_fds.c (check_one_fd)
7258 * sysdeps/posix/fdopendir.c (__fdopendir)
7259 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
7260 instead of __fcntl and/or __libc_fcntl.
7261
7262 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
7263 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
7264 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
7265 Use __open64_nocancel instead of __open_nocancel.
7266
7267 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
7268 hidden_proto declarations to the end and issue them if either
7269 IS_IN(libc) or IS_IN(rtld).
7270 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7271 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
7272 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
7273 read_nocancel, waitpid_nocancel, write_nocancel.
7274
7275 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
7276 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
7277 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
7278
7279 * nptl/pt-fcntl.c: New file.
7280 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
7281 (libpthread-routines): Add pt-fcntl.
7282 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
7283 (__libc_fcntl): Remove attribute_hidden.
7284 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
7285 __fcntl_nocancel_adjusted, not fcntl_common.
7286 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
7287 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
7288 to fcntl_nocancel.c.
7289 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
7290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
7291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
7292 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
7293
7294 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
7295 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
7296 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
7297 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
7298 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
7299 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
7300 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
7301 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
7302 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
7303 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
7304 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
7305 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
7306 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
7307 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
7308 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
7309 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
7310 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
7311 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
7312 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
7313 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
7314
7315 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
7316 libpthread-routines.
7317 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
7318 defines nothing.
7319
7320 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
7321 __libc_read, and __write instead of __libc_write. Define
7322 __open64 in addition to __open.
7323
7324 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
7325
7326 [BZ #23250]
7327 [BZ #10686]
7328 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
7329 to _private_tm[3] and add __glibc_reserved2.
7330 Add _Static_assert of offset of __private_ss == 0x30.
7331 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
7332 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
7333
7334 2018-06-12 Florian Weimer <fweimer@redhat.com>
7335
7336 x86: Make strncmp usable from rtld.
7337 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
7338 __strncmp_ia32 if in libc (and not in rtld).
7339 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
7340 strncmp if not in libc (and not to __strncmp_sse2).
7341
7342 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
7343
7344 [BZ #23140]
7345 * localedata/locales/gd_GB (mon): Rename to...
7346 (alt_mon): This.
7347 (mon): Import from CLDR (genitive case).
7348 * localedata/locales/hsb_DE (mon): Rename to...
7349 (alt_mon): This.
7350 (mon): Import from CLDR (genitive case).
7351 * localedata/locales/wa_BE (mon): Rename to...
7352 (alt_mon): This.
7353 (mon): Add, fill with the proper genitive forms, but CLDR data
7354 is incomplete; completed according to the comments in this file.
7355 (d_t_fmt): Do not use "di" before the month name, no longer needed.
7356
7357 * localedata/locales/wa_BE (country_name): Reword
7358 "Beljike" -> "Beldjike".
7359
7360 2018-06-11 Joseph Myers <joseph@codesourcery.com>
7361
7362 [BZ #23272]
7363 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
7364 cases of non-finite arguments.
7365 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7366
7367 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
7368
7369 [BZ #23174]
7370 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
7371
7372 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7373
7374 [BZ #23264]
7375 * include/unistd.h (__execvpex): New prototype.
7376 * posix/Makefile (tests): Add tst-spawn4.
7377 (tests-internal): Add tst-spawn4-compat.
7378 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
7379 * posix/tst-spawn4-compat.c: New file.
7380 * posix/tst-spawn4.c: Likewise.
7381 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
7382 binaries as shell scripts.
7383 * sysdeps/posix/spawni.c (__spawni): Likewise.
7384
7385 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
7386
7387 [BZ #23145]
7388 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
7389 ($(all-built-dso:=.dynsym): New target.
7390 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
7391 ($(objpfx)check-initfini.out): New target.
7392 (generated): Add check-initfini.out.
7393 * scripts/check-initfini.awk: New file.
7394 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
7395 (_fini): Likewise.
7396 * sysdeps/alpha/crti.S (_init): Mark as hidden.
7397 (_fini): Likewise.
7398 * sysdeps/arm/crti.S (_init): Mark as hidden.
7399 (_fini): Likewise.
7400 * sysdeps/hppa/crti.S (_init): Mark as hidden.
7401 (_fini): Likewise.
7402 * sysdeps/i386/crti.S (_init): Mark as hidden.
7403 (_fini): Likewise.
7404 * sysdeps/ia64/crti.S (_init): Mark as hidden.
7405 (_fini): Likewise.
7406 * sysdeps/m68k/crti.S (_init): Mark as hidden.
7407 (_fini): Likewise.
7408 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
7409 (_fini): Likewise.
7410 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
7411 (_fini): Likewise.
7412 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
7413 (_fini): Likewise.
7414 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
7415 (_fini): Likewise.
7416 * sysdeps/nios2/crti.S (_init): Mark as hidden.
7417 (_fini): Likewise.
7418 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
7419 (_fini): Likewise.
7420 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
7421 (_fini): Likewise.
7422 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
7423 (_fini): Likewise.
7424 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
7425 (_fini): Likewise.
7426 * sysdeps/sh/crti.S (_init): Mark as hidden.
7427 (_fini): Likewise.
7428 * sysdeps/sparc/crti.S (_init): Mark as hidden.
7429 (_fini): Likewise.
7430 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
7431 (_fini): Likewise.
7432
7433 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7434
7435 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
7436 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
7437 and TF redirection to KFtype and KF only when the default
7438 long double type is not the IEEE 128-bit floating point type.
7439
7440 2018-06-05 Joseph Myers <joseph@codesourcery.com>
7441
7442 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
7443 macro.
7444 (HWCAP_USCAT): Likewise.
7445 (HWCAP_ILRCPC): Likewise.
7446 (HWCAP_FLAGM): Likewise.
7447 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7448 Increase to 28.
7449 (_dl_aarch64_cap_flags): Add new flag names.
7450
7451 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
7452 (MAP_FIXED_NOREPLACE): New macro.
7453 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
7454 (MAP_FIXED_NOREPLACE): Likewise.
7455 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
7456 (MAP_FIXED_NOREPLACE): Likewise.
7457 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7458 (MAP_FIXED_NOREPLACE): Likewise.
7459 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
7460 (MAP_FIXED_NOREPLACE): Likewise.
7461 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
7462 (MAP_FIXED_NOREPLACE): Likewise.
7463 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
7464 (MAP_FIXED_NOREPLACE): Likewise.
7465 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
7466 (MAP_FIXED_NOREPLACE): Likewise.
7467 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
7468 (MAP_FIXED_NOREPLACE): Likewise.
7469 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
7470 (MAP_FIXED_NOREPLACE): Likewise.
7471 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
7472 (MAP_FIXED_NOREPLACE): Likewise.
7473 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
7474 (MAP_FIXED_NOREPLACE): Likewise.
7475 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
7476 (MAP_FIXED_NOREPLACE): Likewise.
7477 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
7478 (MAP_FIXED_NOREPLACE): Likewise.
7479 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
7480 (MAP_FIXED_NOREPLACE): Likewise.
7481
7482 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7483 version to 4.17.
7484
7485 2018-06-04 Joseph Myers <joseph@codesourcery.com>
7486
7487 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7488 version to 4.17
7489
7490 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7491
7492 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
7493 int.
7494 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
7495
7496 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7497
7498 * benchtests/scripts/compare_string.py: (process_results) Catch
7499 exception in non-existent base_func and catch exception in
7500 non-existent attribute.
7501 (parse_file) Catch exception if input file does not exist.
7502
7503 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7504
7505 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
7506 options to avoid diff calculation and omit header, respectively.
7507 (main): process --no-diff and --no-header
7508
7509 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7510 H.J. Lu <hongjiu.lu@intel.com>
7511
7512 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7513 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
7514 wcsncmp-sse2.
7515 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7516 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
7517 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
7518 and __wcsncmp_sse2.
7519 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
7520 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7521 AVX unaligned load is fast and vzeroupper is preferred.
7522 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
7523 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
7524 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
7525 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
7526 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
7527 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
7528 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
7529 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
7530 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
7531 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
7532 is undefined.
7533
7534 2018-06-01 Florian Weimer <fweimer@redhat.com>
7535
7536 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
7537 configuring with --disable-multi-arch, building with
7538 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
7539 Haswell-era CPU.
7540
7541 2018-06-01 Florian Weimer <fweimer@redhat.com>
7542
7543 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
7544 results from building with “-march=x86-64 -mtune=generic
7545 -mfpmath=sse” and running on a Haswell-era CPU.
7546
7547 2018-06-01 Joseph Myers <joseph@codesourcery.com>
7548
7549 [BZ #18473]
7550 * soft-fp/sqrttf2.c: Remove file.
7551 * soft-fp/sqrtdf2.c: Move to ....
7552 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
7553 <shlib-compat.h>.
7554 (__sqrtdf2): Make conditional on
7555 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
7556 symbol.
7557 * soft-fp/sqrtsf2.c: Move to ....
7558 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
7559 <shlib-compat.h>.
7560 (__sqrtsf2): Make conditional on
7561 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
7562 symbol.
7563 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
7564 (gcc-double-routines): Remove sqrtdf2.
7565 (gcc-quad-routines): Remove sqrttf2.
7566 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
7567 Do not filter out sqrtsf2 and sqrtdf2.
7568 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
7569 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
7570
7571 2018-06-01 Florian Weimer <fweimer@redhat.com>
7572
7573 * sysdeps/generic/libcidn.abilist: Remove file.
7574
7575 2018-06-01 Florian Weimer <fweimer@redhat.com>
7576
7577 [BZ #23236]
7578 * libio/strfile.h (struct _IO_str_fields): Rename members to
7579 discourage their use and add comment.
7580 (_IO_STR_DYNAMIC): Remove unused macro.
7581 * libio/strops.c (_IO_str_init_static_internal): Do not use
7582 callback pointers. Call malloc and free.
7583 (_IO_str_overflow): Do not use callback pointers. Call malloc
7584 and free.
7585 (enlarge_userbuf): Likewise.
7586 (_IO_str_finish): Call free.
7587 * libio/wstrops.c (_IO_wstr_init_static): Initialize
7588 _allocate_buffer_unused.
7589 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
7590 and free.
7591 (enlarge_userbuf): Likewise.
7592 (_IO_wstr_finish): Call free.
7593 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
7594 _allocate_buffer_unused, _free_buffer_unused.
7595 * libio/memstream.c (__open_memstream): Likewise.
7596 * libio/vasprintf.c (_IO_vasprintf): Likewise.
7597 * libio/wmemstream.c (open_wmemstream): Likewise.
7598
7599 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
7600
7601 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
7602 AMD Ryzen 7 1800X.
7603
7604 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7605
7606 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
7607 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
7608 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
7609 New file.
7610 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
7611 Likewise.
7612 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
7613
7614 2018-05-29 Florian Weimer <fweimer@redhat.com>
7615
7616 * support/Makefile (libsupport-routines): Add
7617 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
7618 xpthread_barrierattr_setpshared.
7619 * support/xpthread_barrierattr_destroy.c: New file.
7620 * support/xpthread_barrierattr_init.c: Likewise.
7621 * support/xpthread_barrierattr_setpshared.c: Likewise.
7622
7623 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
7624
7625 [BZ #23206]
7626 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
7627 _r_debug and update DT_DEBUG for debugger.
7628
7629 2018-05-29 Florian Weimer <fweimer@redhat.com>
7630
7631 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
7632 (tst-strtod5i.out): Likewise.
7633
7634 2018-05-25 Joseph Myers <joseph@codesourcery.com>
7635
7636 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
7637 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
7638 (sparc64-quad-routines): New variable. Moved from ....
7639 [$(subdir) = soft-fp] (sysdep_routines): Add
7640 $(sparc64-quad-routines). Moved from ....
7641 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
7642 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
7643 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
7644 moved from ....
7645 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
7646 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
7647 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
7648 * sysdeps/sparc/sparc64/qp_add.c: ... here.
7649 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
7650 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
7651 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
7652 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
7653 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
7654 * sysdeps/sparc/sparc64/qp_div.c: ... here.
7655 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
7656 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
7657 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
7658 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
7659 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
7660 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
7661 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
7662 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
7663 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
7664 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
7665 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
7666 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
7667 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
7668 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
7669 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
7670 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
7671 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
7672 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
7673 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
7674 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
7675 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
7676 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
7677 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
7678 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
7679 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
7680 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
7681 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
7682 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
7683 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
7684 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
7685 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
7686 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
7687 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
7688 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
7689 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
7690 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
7691 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
7692 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
7693 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
7694 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
7695 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
7696 * sysdeps/sparc/sparc64/qp_util.c: ... here.
7697 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
7698 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
7699 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
7700 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
7701 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
7702 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
7703
7704 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
7705 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
7706 (sparc32-quad-routines): New variable. Moved from ....
7707 [$(subdir) = soft-fp] (sysdep_routines): Add
7708 $(sparc32-quad-routines). Moved from ....
7709 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
7710 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
7711 moved from ....
7712 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
7713 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
7714 * sysdeps/sparc/sparc32/q_add.c: ... here.
7715 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
7716 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
7717 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
7718 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
7719 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
7720 * sysdeps/sparc/sparc32/q_div.c: ... here.
7721 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
7722 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
7723 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
7724 * sysdeps/sparc/sparc32/q_feq.c: ... here.
7725 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
7726 * sysdeps/sparc/sparc32/q_fge.c: ... here.
7727 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
7728 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
7729 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
7730 * sysdeps/sparc/sparc32/q_fle.c: ... here.
7731 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
7732 * sysdeps/sparc/sparc32/q_flt.c: ... here.
7733 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
7734 * sysdeps/sparc/sparc32/q_fne.c: ... here.
7735 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
7736 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
7737 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
7738 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
7739 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
7740 * sysdeps/sparc/sparc32/q_mul.c: ... here.
7741 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
7742 * sysdeps/sparc/sparc32/q_neg.c: ... here.
7743 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
7744 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
7745 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
7746 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
7747 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
7748 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
7749 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
7750 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
7751 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
7752 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
7753 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
7754 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
7755 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
7756 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
7757 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
7758 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
7759 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
7760 * sysdeps/sparc/sparc32/q_sub.c: ... here.
7761 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
7762 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
7763 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
7764 * sysdeps/sparc/sparc32/q_util.c: ... here.
7765 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
7766 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
7767 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
7768 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
7769
7770 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7771 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7772
7773 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
7774 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
7775 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
7776 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
7777
7778 2018-05-24 Joseph Myers <joseph@codesourcery.com>
7779
7780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
7781 powerpc/soft-fp.
7782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
7783 Likewise.
7784 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
7785 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
7786
7787 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7788
7789 [BZ #23171]
7790 * math/math.h [C++] (iseqsig): Fix parameter type for the long
7791 double version.
7792
7793 2018-05-23 Joseph Myers <joseph@codesourcery.com>
7794
7795 * sysdeps/sh/Implies: Remove sh/soft-fp.
7796 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
7797 * sysdeps/sh/sfp-machine.h: ... here.
7798
7799 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
7800
7801 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7802 (__mempcpy_erms): Skip zero length.
7803 (__memmove_erms): Likewise.
7804 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7805 (__memset_erms): Likewise.
7806
7807 2018-05-23 Joseph Myers <joseph@codesourcery.com>
7808
7809 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
7810 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
7811 Add functions moved from ....
7812 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
7813 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
7814 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
7815 from ....
7816 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
7817 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
7818 * sysdeps/alpha/e_sqrtl.c: ... here.
7819 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
7820 * sysdeps/alpha/local-soft-fp.h: ... here.
7821 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
7822 * sysdeps/alpha/ots_add.c: ... here.
7823 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
7824 * sysdeps/alpha/ots_cmp.c: ... here.
7825 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
7826 * sysdeps/alpha/ots_cmpe.c: ... here.
7827 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
7828 * sysdeps/alpha/ots_cvtqux.c: ... here.
7829 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
7830 * sysdeps/alpha/ots_cvtqx.c: ... here.
7831 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
7832 * sysdeps/alpha/ots_cvttx.c: ... here.
7833 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
7834 * sysdeps/alpha/ots_cvtxq.c: ... here.
7835 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
7836 * sysdeps/alpha/ots_cvtxt.c: ... here.
7837 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
7838 * sysdeps/alpha/ots_div.c: ... here.
7839 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
7840 * sysdeps/alpha/ots_mul.c: ... here.
7841 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
7842 * sysdeps/alpha/ots_nintxq.c: ... here.
7843 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
7844 * sysdeps/alpha/ots_sub.c: ... here.
7845 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
7846 * sysdeps/alpha/sfp-machine.h: ... here.
7847
7848 2018-05-23 Florian Weimer <fweimer@redhat.com>
7849
7850 [BZ #19728]
7851 [BZ #19729]
7852 [BZ #22247]
7853 CVE-2016-6261
7854 CVE-2016-6263
7855 CVE-2017-14062
7856 Switch to extern IDNA implementation (libidn2).
7857 * libidn: Remove subdirectory.
7858 * LICENSES: Do not mention licensing conditions for the removed
7859 libidn code.
7860 * config.h.in (HAVE_LIBIDN): Remove.
7861 * include/dlfcn.h (__libc_dlopen): Update comment.
7862 * include/idna.h: Remove file.
7863 * inet/Makefile (routines): Add idna.
7864 (tests-static, tests-internal): Add tst-idna_name_classify.
7865 (LOCALES): Generate locales for tests.
7866 (tst-idna_name_classify.out): Depend on generated locales.
7867 * inet/idna_name_classify.c: New file.
7868 * inet/tst-idna_name_classify.c: Likewise.
7869 * inet/net-internal.h (__idna_to_dns_encoding)
7870 (__idna_from_dns_encoding): Declare.
7871 * inet/net-internal.h (enum idna_name_classification): Define.
7872 (__idna_name_classify): Declare.
7873 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
7874 __idna_from_dns_encoding.
7875 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
7876 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
7877 name as a fallback in case of encoding errors.
7878 (getnameinfo): Use DEPRECATED_NI_IDN.
7879 * inet/idna.c: New file.
7880 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
7881 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
7882 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
7883 (modules-names): Add tst-no-libidn2.
7884 (extra-test-objs): Add tst-no-libidn2.os.
7885 (LDFLAGS-tst-no-libidn2.so): Set soname.
7886 (LOCALES): Set, and generate locales.
7887 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
7888 (tst-resolv-ai_idn-latin1): Likewise.
7889 (tst-resolv-ai_idn-nolibidn2): Likewise.
7890 (tst-resolv-ai_idn.out): Depend on locales.
7891 (tst-resolv-ai_idn-latin1.out): Depend on locales.
7892 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
7893 tst-no-libidn2.so.
7894 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
7895 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
7896 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
7897 * resolv/tst-resolv-ai_idn.c: New file.
7898 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
7899 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
7900 * resolv/tst-no-libidn2.c: Likewise.
7901 * support/support_format_addrinfo.c (format_ai_flags): Do not
7902 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
7903 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
7904 (gaih_inet): Call __idna_to_dns_encoding and
7905 __idna_from_dns_encoding, and use the original (punycode) name if
7906 __idna_from_dns_encoding fails due to an encoding error.
7907 (getaddrinfo): Use DEPRECATED_AI_IDN.
7908 * sysdeps/unix/inet/Subdirs (libidn): Remove.
7909 * sysdeps/unix/inet/configure: Remove file.
7910 * sysdeps/unix/inet/configure.ac: Likewise.
7911
7912 2018-05-23 Florian Weimer <fweimer@redhat.com>
7913
7914 Implement allocate_once.
7915 * include/allocate_once.h: New file.
7916 * misc/allocate_once.c: Likewise.
7917 * misc/tst-allocate_once.c: Likewise.
7918 * misc/Makefile (routines): Add allocate_once.
7919 (tests-internal): Add tst-allocate_once.
7920 (generated): Add tst-allocate_once.mtrace,
7921 tst-allocate_once-mem.out.
7922 (tests-special): Add tst-allocate_once-mem.out.
7923 (tst-allocate_once-ENV): Set MALLOC_TRACE.
7924 (tst-allocate_once-mem.out): Call mtrace.
7925 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
7926
7927 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
7928
7929 [BZ #23196]
7930 * string/test-memcpy.c (do_test1): New function.
7931 (test_main): Call it.
7932
7933 2018-05-23 Andreas Schwab <schwab@suse.de>
7934
7935 [BZ #23196]
7936 CVE-2018-11237
7937 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
7938 (L(preloop_large)): Save initial destination pointer in %r11 and
7939 use it instead of %rax after the loop.
7940 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
7941
7942 2018-05-22 Joseph Myers <joseph@codesourcery.com>
7943
7944 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
7945 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
7946 -I../soft-fp. Moved from ....
7947 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
7948 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
7949 * sysdeps/aarch64/e_sqrtl.c: ... here.
7950 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
7951 * sysdeps/aarch64/sfp-machine.h: ... here.
7952
7953 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
7954 -Wmaybe-uninitialized around access to fq[0].
7955 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
7956 Likewise.
7957
7958 [BZ #18471]
7959 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
7960 aliases for non-libc case of versioned symbols.
7961 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
7962 (llseek): Define as compat symbol if
7963 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
7964 with link warning.
7965 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
7966 Make into a compat symbol, disabled for minimum symbol version
7967 GLIBC_2.28 and later.
7968 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
7969
7970 2018-05-22 Florian Weimer <fweimer@redhat.com>
7971
7972 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
7973 not add -mpreferred-stack-boundary=4.
7974 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
7975 (stack-align-test-flags): Likewise.
7976 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
7977 Likewise.
7978 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
7979 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
7980 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
7981 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
7982 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
7983 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
7984 (CFLAGS-tst-align2.c): Likewise.
7985
7986 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
7987
7988 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
7989 (index_arch_Prefer_FSRM): Likewise.
7990 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
7991 Also check Prefer_FSRM.
7992 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
7993 Also return OPTIMIZE (erms) for Prefer_FSRM.
7994
7995 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
7996
7997 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
7998 (index_cpu_FSRM): Likewise.
7999 (reg_FSRM): Likewise.
8000
8001 2018-05-18 Joseph Myers <joseph@codesourcery.com>
8002
8003 * math/gen-tgmath-tests.py: Import sys.
8004 (Tests.__init__): Initialize macros_seen.
8005 (Tests.add_tests): Add macro to macros_seen. Only generate tests
8006 if requested to do so for this macro.
8007 (Tests.add_all_tests): Take argument for macro for which to
8008 generate tests.
8009 (Tests.check_macro_list): New function.
8010 (main): Handle check-list argument and argument specifying macro
8011 for which to generate tests.
8012 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
8013 [PYTHON] (tgmath3-macro-tests): Likewise.
8014 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
8015 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
8016 not test-tgmath3.c.
8017 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
8018 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
8019 to CFLAGS.
8020 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
8021 [PYTHON] ($(foreach
8022 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
8023 rule.
8024 [PYTHON] (tests-special): Add
8025 $(objpfx)test-tgmath3-macro-list.out.
8026 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
8027
8028 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
8029 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
8030 later.
8031
8032 [BZ #22639]
8033 * time/tzset.c (SECSPERDAY): Cast to time_t.
8034 * time/tst-y2039.c: New file.
8035 * time/Makefile (tests): Add tst-y2039.
8036
8037 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8038
8039 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
8040 (PREFETCH_ONE_SET): Remove duplicate line.
8041
8042 2018-05-17 Florian Weimer <fweimer@redhat.com>
8043
8044 * sysdeps/generic/math-type-macros-double.h: Include
8045 <math-nan-payload-double.h> after <libm-alias-double.h>.
8046 * sysdeps/generic/math-type-macros-float.h: Include
8047 <math-nan-payload-float.h> after <libm-alias-float.h>.
8048 * sysdeps/generic/math-type-macros-float128.h: Include
8049 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
8050 * sysdeps/generic/math-type-macros-ldouble.h: Include
8051 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
8052
8053 2018-05-17 Andreas Schwab <schwab@suse.de>
8054
8055 * resolv/res_send.c (__res_context_send): Don't set errno when
8056 returing error after malloc failure.
8057
8058 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
8059
8060 * nptl/allocatestack.c (allocate_stack): Remove the
8061 !__ASSUME_PRIVATE_FUTEX paths.
8062 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
8063 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
8064 Likewise.
8065 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
8066 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
8067 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
8068 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
8069 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
8070 !__ASSUME_PRIVATE_FUTEX path.
8071 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
8072 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
8073 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8074 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
8075 !__ASSUME_PRIVATE_FUTEX macros.
8076 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
8077 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
8078 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
8079 * sysdeps/unix/sysv/linux/kernel-features.h
8080 (__ASSUME_PRIVATE_FUTEX): Removed.
8081
8082 2018-05-17 Joseph Myers <joseph@codesourcery.com>
8083
8084 * math/Makefile (libm-narrow-fns): Add div.
8085 (libm-test-funcs-narrow): Likewise.
8086 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
8087 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
8088 * math/gen-auto-libm-tests.c (test_functions): Add div.
8089 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
8090 (NARROW_DIV_ROUND_TO_ODD): Likewise.
8091 (NARROW_DIV_TRIVIAL): Likewise.
8092 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
8093 macro.
8094 (__ddivl): Likewise.
8095 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
8096 ddiv.
8097 (CFLAGS-nldbl-ddiv.c): New variable.
8098 (CFLAGS-nldbl-fdiv.c): Likewise.
8099 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8100 __nldbl_ddivl.
8101 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
8102 prototype.
8103 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
8104 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
8105 * math/auto-libm-test-in: Add tests of div.
8106 * math/auto-libm-test-out-narrow-div: New generated file.
8107 * math/libm-test-narrow-div.inc: New file.
8108 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
8109 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
8110 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
8111 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
8112 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
8113 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
8114 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
8115 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
8116 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
8117 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
8118 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
8119 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
8120 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
8121 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
8122 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
8123 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
8124 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
8125 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
8126 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8127 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8128 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8129 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8130 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8131 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8132 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8133 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8134 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8135 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8136 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8137 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8138 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8139 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8144 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8145 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8146 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8147 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8148 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8149 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8150 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8151 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8152
8153 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8154
8155 [BZ #23178]
8156 * nscd/nscd-client.h (sendfileall): Remove prototype.
8157 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
8158 (handle_request): Use writeall instead of sendfileall.
8159 * nscd/aicache.c (addhstaiX): Likewise.
8160 * nscd/grpcache.c (cache_addgr): Likewise.
8161 * nscd/hstcache.c (cache_addhst): Likewise.
8162 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8163 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
8164 * nscd/pwdcache.c (cache_addpw): Likewise.
8165 * nscd/servicescache.c (cache_addserv): Likewise.
8166 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
8167 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
8168 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
8169 Remove define.
8170
8171 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
8172
8173 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
8174 Include <string/strncat.c>.
8175 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
8176 alias.
8177 (__GI___strncat): New hidden alias.
8178
8179 2018-05-16 Joseph Myers <joseph@codesourcery.com>
8180
8181 * sysdeps/mips/mips32/libm-test-ulps: Update.
8182 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8183
8184 2018-05-16 Florian Weimer <fweimer@redhat.com>
8185
8186 * support/Makefile (libsupport-routines): Add support_quote_blob,
8187 support_test_compare_blob.
8188 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
8189 * support/check.h (TEST_COMPARE_BLOB): Define.
8190 (support_test_compare_blob): Declare.
8191 * support/support.h (support_quote_blob): Declare.
8192 * support/support_quote_blob.c: New file.
8193 * support/support_test_compare_blob.c: Likewise.
8194 * support/tst-support_quote_blob.c: Likewise.
8195 * support/tst-test_compare_blob.c: Likewise.
8196
8197 2018-05-16 Florian Weimer <fweimer@redhat.com>
8198
8199 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
8200 of <strtod_nan_double.h>.
8201 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
8202 instead of SET_MANTISSA.
8203 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
8204 of include <strtod_nan_float.h>.
8205 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
8206 instead of <strtod_nan_ldouble.h>.
8207 * stdlib/strtod_nan_double.h: Move to ...
8208 * sysdeps/generic/math-nan-payload-double.h: ... here.
8209 (FLOAT): Remove definition.
8210 (SET_MANTISSA): Rename to ...
8211 (SET_NAN_PAYLOAD): ... this.
8212 * stdlib/strtod_nan_float.h: Move to ...
8213 * sysdeps/generic/math-nan-payload-float.h: ... here.
8214 (FLOAT): Remove definition.
8215 (SET_MANTISSA): Rename to ...
8216 (SET_NAN_PAYLOAD): ... this.
8217 * sysdeps/generic/math-type-macros-double.h: Include
8218 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
8219 instead of <math-svid-compat.h>.
8220 * sysdeps/generic/math-type-macros-float.h: Include
8221 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
8222 instead of <math-svid-compat.h>.
8223 * sysdeps/generic/math-type-macros-float128.h: Include
8224 <math-nan-payload-float128.h>.
8225 * sysdeps/generic/math-type-macros-ldouble.h: Include
8226 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
8227 instead of <math-svid-compat.h>.
8228 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
8229 check for definition.
8230 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
8231 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
8232 Include <ieee754_float128.h>.
8233 (FLOAT): Remove definition.
8234 (SET_MANTISSA): Rename to ...
8235 (SET_NAN_PAYLOAD): ... this.
8236 * sysdeps/ieee754/float128/strtof128_nan.c: Include
8237 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
8238 Do not include <float128_private.h>.
8239 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
8240 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
8241 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
8242 (FLOAT): Remove definition.
8243 (SET_MANTISSA): Rename to ...
8244 (SET_NAN_PAYLOAD): ... this.
8245 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
8246 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
8247 (FLOAT): Remove definition.
8248 (SET_MANTISSA): Rename to ...
8249 (SET_NAN_PAYLOAD): ... this.
8250 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
8251 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
8252 (FLOAT): Remove definition.
8253 (SET_MANTISSA): Rename to ...
8254 (SET_NAN_PAYLOAD): ... this.
8255 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
8256 of "../stdlib/strtod_nan_double.h".
8257 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
8258 of "../stdlib/strtod_nan_float.h".
8259 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
8260 instead of "../stdlib/strtod_nan_ldouble.h".
8261 * manual/arith.texi (Parsing of Floats): Adjust comment.
8262
8263 2018-05-16 Joseph Myers <joseph@codesourcery.com>
8264
8265 * math/Makefile (libm-narrow-fns): Add mul.
8266 (libm-test-funcs-narrow): Likewise.
8267 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
8268 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
8269 * math/gen-auto-libm-tests.c (test_functions): Add mul.
8270 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
8271 (NARROW_MUL_ROUND_TO_ODD): Likewise.
8272 (NARROW_MUL_TRIVIAL): Likewise.
8273 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
8274 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
8275 macro.
8276 (__dmull): Likewise.
8277 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
8278 dmul.
8279 (CFLAGS-nldbl-dmul.c): New variable.
8280 (CFLAGS-nldbl-fmul.c): Likewise.
8281 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8282 __nldbl_dmull.
8283 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
8284 prototype.
8285 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
8286 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
8287 * math/auto-libm-test-in: Add tests of mul.
8288 * math/auto-libm-test-out-narrow-mul: New generated file.
8289 * math/libm-test-narrow-mul.inc: New file.
8290 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
8291 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
8292 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
8293 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
8294 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
8295 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
8296 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
8297 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
8298 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
8299 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
8300 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
8301 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
8302 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
8303 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
8304 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
8305 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
8306 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
8307 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
8308 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8309 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8310 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8311 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8312 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8313 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8314 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8315 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8316 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8317 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8318 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8319 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8320 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8321 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8323 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8326 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8327 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8328 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8329 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8330 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8331 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8332 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8333 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8334
8335 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8336
8337 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
8338 with *%eax in call.
8339
8340 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8341
8342 * sysdeps/i386/ldsodefs.h: Removed.
8343 * sysdeps/x86_64/ldsodefs.h: Moved to ...
8344 * sysdeps/x86/ldsodefs.h: This.
8345 (La_i86_regs): New.
8346 (La_i86_retval): Likewise.
8347 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
8348 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
8349
8350 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8351
8352 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
8353 unnecessary testl.
8354
8355 2018-05-13 Alan Modra <amodra@gmail.com>
8356
8357 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
8358 R_PARISC_TLS_DTPOFF32 reloc addend.
8359
8360 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8361
8362 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
8363 * math/math.h: Restrict the prototype definition for the functions
8364 issignaling(_Float128) and iszero(_Float128); and template
8365 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
8366 __HAVE_FLOAT128_UNLIKE_LDBL.
8367 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
8368 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
8369 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
8370 __f128() constants; define the type _Float128 as long double;
8371 and reuse long double in __CFLOAT128.
8372
8373 2018-05-11 Joseph Myers <joseph@codesourcery.com>
8374
8375 * sysdeps/generic/math_private.h: Do not include
8376 <math-barriers.h>.
8377 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
8378 <math_private.h>.
8379 * math/fromfp.h: Include <math-barriers.h>.
8380 * math/math-narrow.h: Likewise.
8381 * math/s_nextafter.c: Likewise.
8382 * math/s_nexttowardf.c: Likewise.
8383 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8384 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8385 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8386 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8387 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8388 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8389 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8390 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8391 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8392 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8393 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8394 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8395 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8396 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8397 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8398 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8399 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8400 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8401 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8402 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8403 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8404 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8405 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8406 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8407 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8408 * sysdeps/ieee754/k_standardl.c: Likewise.
8409 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8410 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8411 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8412 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8413 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8414 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8415 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8416 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8417 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8418 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8419 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8420 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8421 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8422 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8423 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8424 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8425 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8426 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8427 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8428 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8429 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
8430 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
8431
8432 2018-05-11 Florian Weimer <fweimer@redhat.com>
8433
8434 Use 64-bit epoch values in the time zone file parser.
8435 * include/time.h (internal_time_t): Define.
8436 (__tzfile_compute): Use it.
8437 * time/tzfile.c (struct leap): Use internal_time_t for epoch
8438 member.
8439 (transitions): Switch to internal_time_t.
8440 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
8441 types.
8442 (__tzfile_compute): Use internal_time_t for timer argument. Check
8443 for truncation before calling __offtime.
8444
8445 2018-05-11 Florian Weimer <fweimer@redhat.com>
8446
8447 [BZ #23166]
8448 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
8449 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
8450 Likewise.
8451 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
8452 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
8453 export without --enable-obsolete-rpc.
8454 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
8455 symbol. This should not have been exported, ever.
8456
8457 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
8458
8459 [BZ #23152]
8460 * localedata/locales/gd_GB (abmon): Fix typo in May:
8461 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
8462
8463 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8464
8465 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
8466 Use multiple registers to copy data in loop tail.
8467
8468 * sysdeps/aarch64/multiarch/memmove_falkor.S
8469 (__memmove_falkor): Use multiple registers to move data in
8470 loop tail.
8471
8472 2018-05-10 Joseph Myers <joseph@codesourcery.com>
8473
8474 * math/math-underflow.h: New file.
8475 * sysdeps/generic/math_private.h: Do not include <float.h>.
8476 (fabs_tg): Remove macro. Moved to math-underflow.h.
8477 (min_of_type_f): Likewise.
8478 (min_of_type_): Likewise.
8479 (min_of_type_l): Likewise.
8480 (min_of_type_f128): Likewise.
8481 (min_of_type): Likewise.
8482 (math_check_force_underflow): Likewise.
8483 (math_check_force_underflow_nonneg): Likewise.
8484 (math_check_force_underflow_complex): Likewise.
8485 * math/e_exp2_template.c: Include <math-underflow.h>.
8486 * math/k_casinh_template.c: Likewise.
8487 * math/s_catan_template.c: Likewise.
8488 * math/s_catanh_template.c: Likewise.
8489 * math/s_ccosh_template.c: Likewise.
8490 * math/s_cexp_template.c: Likewise.
8491 * math/s_clog10_template.c: Likewise.
8492 * math/s_clog_template.c: Likewise.
8493 * math/s_csin_template.c: Likewise.
8494 * math/s_csinh_template.c: Likewise.
8495 * math/s_csqrt_template.c: Likewise.
8496 * math/s_ctan_template.c: Likewise.
8497 * math/s_ctanh_template.c: Likewise.
8498 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8499 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8500 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8501 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8502 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8503 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8504 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8505 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8506 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8507 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8508 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8509 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8510 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8511 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8512 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8513 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8514 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8515 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8516 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8517 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8518 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8519 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8520 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8521 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8522 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8523 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8524 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8525 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8526 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8527 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8528 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8529 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8530 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8531 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8532 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8533 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8534 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8535 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8536 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8537 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8538 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8539 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8540 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8541 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8542 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8543 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8544 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8545 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8546 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8547 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8548 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8549 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8550 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8551 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8552 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8553 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8554 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8555 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8556 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8557 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8558 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8559 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8560 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8561 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8562 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8563 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8564 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8565 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8566 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8567 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8568 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8569 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8570 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8571 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
8572 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8573 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8574 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8575 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8576 * sysdeps/x86/fpu/powl_helper.c: Likewise.
8577 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
8578 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
8579 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
8580 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
8581 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
8582
8583 2018-05-09 Joseph Myers <joseph@codesourcery.com>
8584
8585 * sysdeps/generic/math-barriers.h: New file.
8586 * sysdeps/generic/math_private.h [!math_opt_barrier]
8587 (math_opt_barrier): Move to math-barriers.h.
8588 [!math_opt_barrier] (math_force_eval): Likewise.
8589 * sysdeps/aarch64/fpu/math-barriers.h: New file.
8590 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
8591 math-barriers.h.
8592 (math_force_eval): Likewise.
8593 * sysdeps/alpha/fpu/math-barriers.h: New file.
8594 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
8595 math-barriers.h.
8596 (math_force_eval): Likewise.
8597 * sysdeps/x86/fpu/math-barriers.h: New file.
8598 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
8599 math-barriers.h.
8600 (math_force_eval): Likewise.
8601 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
8602 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
8603 multiple-include guard for rename.
8604 * sysdeps/powerpc/fpu/math-barriers.h: New file.
8605 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
8606 math-barriers.h.
8607 (math_force_eval): Likewise.
8608
8609 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
8610
8611 [BZ #22786]
8612 CVE-2018-11236
8613 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
8614 computation.
8615 * stdlib/Makefile (test-bz22786): New test.
8616 * stdlib/test-bz22786.c: New test.
8617
8618 2018-05-09 Joseph Myers <joseph@codesourcery.com>
8619
8620 * include/math-narrow-eval.h: New file. Contents moved from ....
8621 * sysdeps/generic/math_private.h: ... here.
8622 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
8623 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
8624 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
8625 * stdlib/strtod_l.c: Likewise.
8626 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8627 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8628 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8629 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8630 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8631 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8632 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8633 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8634 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8635 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
8636 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8637 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
8638 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8639 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8640 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8641 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8642 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8643 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8644 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8645 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8646 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8647 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8648 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8649 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8650 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
8651 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8652 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8653 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8654 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
8655
8656 2018-05-08 Andreas Schwab <schwab@suse.de>
8657
8658 * sysdeps/nptl/internaltypes.h: Fix comment.
8659
8660 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
8661
8662 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
8663 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
8664 hidden.
8665
8666 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8667
8668 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
8669 of I into loop header.
8670 * benchtests/bench-memmove-walk.c
8671 (test_main): Likewise.
8672
8673 2018-05-07 Alexandre Oliva <oliva@gnu.org>
8674
8675 Revert:
8676 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
8677 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
8678
8679 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
8680
8681 [BZ #20419]
8682 * elf/dl-load.c (open_verify): Fix stack overflow.
8683 * elf/Makefile (tst-big-note): New test.
8684 * elf/tst-big-note-lib.S: New.
8685 * elf/tst-big-note.c: New.
8686
8687 2018-05-04 Joseph Myers <joseph@codesourcery.com>
8688
8689 * scripts/abilist.awk: Ignore absolute symbols.
8690 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
8691 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
8692 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
8693 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
8694 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
8695 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
8696 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8697 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
8698 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
8699 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
8700 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
8701 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
8702 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
8703 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
8704 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
8705 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
8706 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
8707 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
8708 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8709 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
8710 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8711 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
8712 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
8713 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
8714 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
8715 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
8716 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
8717 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
8718 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8719 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
8720 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
8721 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8722 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
8723 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8724 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
8725 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
8726 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
8727 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
8728 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
8729 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
8730 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
8731 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8732 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
8733 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
8734 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8735 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
8736 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8737 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
8738 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
8739 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
8740 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
8741 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
8742 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
8743 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
8744 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8745 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
8746 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
8747 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8748 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
8749 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8750 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
8751 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
8752 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
8753 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
8754 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
8755 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
8756 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
8757 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8758 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
8759 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
8760 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8761 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
8762 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8763 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
8764 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
8765 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
8766 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
8767 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
8768 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
8769 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
8770 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8771 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
8772 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
8773 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8774 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
8775 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8776 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
8777 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
8778 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
8779 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
8780 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
8781 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
8782 Likewise.
8783 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
8784 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8785 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
8786 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
8787 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8788 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
8789 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8790 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
8791 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
8792 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
8793 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
8794 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
8795 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
8796 Likewise.
8797 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
8798 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8799 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
8800 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
8801 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8802 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
8803 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8804 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
8805 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
8806 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
8807 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
8808 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
8809 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
8810 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
8811 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8812 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
8813 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
8814 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8815 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
8816 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8817 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
8818 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
8819 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
8820 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
8821 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8822 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
8823 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
8824 Likewise.
8825 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
8826 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
8827 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
8828 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
8829 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8830 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
8831 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
8832 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
8833 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
8834 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
8835 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
8836 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
8837 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
8838 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8839 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
8840 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
8841 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
8842 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
8843 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8844 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
8845 Likewise.
8846 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
8847 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
8848 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
8849 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8850 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
8851 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8852 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
8853 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
8854 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
8855 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
8856 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8857 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
8858 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
8859 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8860 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
8861 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
8862 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
8863 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
8864 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8865 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
8866 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
8867 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8868 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
8869 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8870 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
8871 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
8872 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
8873 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
8874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
8875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
8877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
8878 Likewise.
8879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
8880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
8881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
8882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
8883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8884 Likewise.
8885 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
8886 Likewise.
8887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
8888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
8889 Likewise.
8890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
8891 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8892 Likewise.
8893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8894 Likewise.
8895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
8896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
8897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
8898 Likewise.
8899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
8900 Likewise.
8901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
8902 Likewise.
8903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
8904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8906 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
8907 Likewise.
8908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
8909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
8910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
8911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
8914 Likewise.
8915 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
8916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8917 Likewise.
8918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8919 Likewise.
8920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
8921 Likewise.
8922 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
8923 Likewise.
8924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
8925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
8926 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
8927 Likewise.
8928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
8929 Likewise.
8930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
8931 Likewise.
8932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
8933 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
8934 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
8935 Likewise.
8936 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
8937 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8938 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
8939 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
8940 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8941 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
8942 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8943 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
8944 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
8945 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
8946 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
8947 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
8948 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
8949 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
8950 Likewise.
8951 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8952 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
8953 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
8954 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8955 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
8956 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8957 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
8958 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
8959 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
8960 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
8961 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
8962 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
8963 Likewise.
8964 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8965 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
8966 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
8967 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8968 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
8969 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8970 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
8971 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
8972 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
8973 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
8974 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
8975 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
8976 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
8977 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8978 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
8979 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
8980 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8981 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
8982 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8983 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
8984 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
8985 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
8986 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
8987 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
8988 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
8989 Likewise.
8990 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
8991 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8992 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
8993 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
8994 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8995 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
8996 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8997 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
8998 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
8999 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
9000 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
9001 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
9002 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
9003 Likewise.
9004 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
9005 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9006 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
9007 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
9008 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9009 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
9010 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9011 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
9012 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
9013 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
9014 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
9015 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
9016 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
9017 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
9018 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9019 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
9020 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
9021 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9022 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
9023 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9024 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
9025 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
9026 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
9027 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
9028 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
9029 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
9030 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
9031 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
9032 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9033 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
9034 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
9035 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9036 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
9037 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9038 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
9039 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
9040 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
9041 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
9042
9043 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
9044
9045 [BZ #23137]
9046 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
9047 Use atomic_load_acquire to load __tid.
9048
9049 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
9050
9051 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
9052 Restore the pointer into %rdx, after syscall and use %rdx,
9053 instead of %rsi, to restore context.
9054
9055 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
9056
9057 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
9058 Pop the pointer into %rdx after syscall and use %rdx, instead
9059 of %rsi, to restore context.
9060
9061 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
9062
9063 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
9064 handlers after setjmp.
9065 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
9066 defined.
9067 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
9068 <libc-pointer-arith.h>.
9069 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
9070 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
9071 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
9072 _JUMP_BUF_SIGSET_BITS_PER_WORD.
9073 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
9074 * sysdeps/x86/__longjmp_cancel.S: New file.
9075 * sysdeps/x86/longjmp.c: Likewise.
9076 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
9077
9078 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9079
9080 * NEWS: Add ustat.h deprecation entry.
9081 * bits/ustat.h: Remove file.
9082 * misc/sys/ustat.h: Likewise.
9083 * misc/ustat.h: Likewise.
9084 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
9085 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
9086 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
9087 compatibility mode.
9088 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
9089 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
9090 generic Linux implementation.
9091
9092 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9093
9094 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
9095 * math/w_expl_compat.c: Likewise.
9096 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
9097
9098 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
9099
9100 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
9101
9102 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9103
9104 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
9105 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
9106 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
9107 Remove.
9108 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
9109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
9110 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
9111 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
9112 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
9113 and SYSCALL_LL64.
9114
9115 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9116
9117 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
9118
9119 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
9120 * math/w_asin_template.c: Likewise.
9121 * math/w_atanh_template.c: Likewise.
9122
9123 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9124
9125 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
9126 to powerpc/powerpc64/be for big-endian.
9127 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
9128 little-endian.
9129
9130 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
9131 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
9132 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
9133 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
9134 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
9135 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
9136 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
9137 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
9138 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
9139 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
9140 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
9141 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
9142 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
9143 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
9144 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
9145 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
9146 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
9147 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
9148 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
9149 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
9150 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
9151 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
9152 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
9153 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
9154 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
9155 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
9156 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
9157 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
9158 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
9159 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
9160 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
9161 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
9162
9163 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
9164 adjusted to imply powerpc64 and older processors on powerpc64/be.
9165 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
9166 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
9167 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
9168 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
9169 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
9170 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
9171 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
9172 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
9173 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
9174 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
9175 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
9176 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
9177 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
9178 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
9179 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
9180 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
9181 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
9182 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
9183 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
9184 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
9185 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
9186 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
9187 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
9188 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
9189 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
9190 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
9191 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
9192 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
9193 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
9194 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
9195 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
9196
9197 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
9198 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
9199 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
9200 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
9201
9202 * sysdeps/powerpc/powerpc64/be/Implies: New file.
9203 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
9204 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
9205 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
9206
9207 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
9208 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
9209 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
9210 * sysdeps/powerpc/powerpc64le/configure: Likewise.
9211 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
9212 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
9213 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
9214 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
9215 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
9216 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
9217 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
9218
9219 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
9220 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
9221 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
9222 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
9223 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
9224 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
9225 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
9226 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
9227 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
9228 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
9229 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
9230
9231 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
9232 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
9233 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
9234 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
9235 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
9236 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
9237 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
9238 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
9239 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
9240 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
9241 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
9242 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
9243
9244 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
9245 and adjusted to imply olders processors.
9246 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
9247 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
9248 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
9249 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
9250 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
9251 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
9252 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
9253 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
9254 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
9255 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
9256 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
9257
9258 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
9259 powerpc64/le.
9260 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
9261 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
9262
9263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
9264 powerpc64le.
9265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
9266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
9267
9268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
9269 powerpc64/be.
9270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
9271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
9272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
9273
9274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
9275 powerpc64 and adjusted.
9276 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
9277 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
9278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
9279 Likewise.
9280
9281 2018-04-27 Joseph Myers <joseph@codesourcery.com>
9282
9283 * sysdeps/tile: Remove.
9284 * sysdeps/unix/sysv/linux/tile: Likewise.
9285 * README (tilegx-*-linux-gnu): Remove from list of supported
9286 configurations.
9287 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
9288 contribution of support for generic Linux kernel syscall
9289 interface.
9290 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
9291 tilegx configurations.
9292 (Config.install_linux_headers): Do not handle tile.
9293 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
9294 in comment.
9295 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
9296 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
9297 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
9298 conditional undefine and redefine.
9299 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
9300 in comment.
9301 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
9302 conditional undefine and redefine.
9303
9304 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
9305
9306 * signal/tst-sigaction.c: New file to test BZ #23069.
9307 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
9308
9309 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9310
9311 [BZ #22766]
9312 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
9313 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
9314 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
9315 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
9316
9317 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9318
9319 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
9320 _DIRENT_MATCHES_DIRENT64 is not defined.
9321 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
9322 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
9323 is defined.
9324 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
9325 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
9326
9327 2018-04-25 Joseph Myers <joseph@codesourcery.com>
9328
9329 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
9330 version to GCC 8 branch.
9331
9332 2018-04-24 Joseph Myers <joseph@codesourcery.com>
9333
9334 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
9335 (check_no_hidden): Use type of original function when declaring
9336 alias.
9337
9338 * sysdeps/unix/sysv/linux/sys/ptrace.h
9339 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
9340 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
9341 (struct __ptrace_seccomp_metadata): New type.
9342 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
9343 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9344 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
9345 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9346 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
9347 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9348 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
9349 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9350 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
9351 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9352 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
9353 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9354 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
9355 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9356 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
9357 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9358
9359 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9360
9361 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
9362 defined.
9363 * dirent/versionsort.c (versionsort): Likewise.
9364 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
9365 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
9366 * dirent/versionsort64.c (versionsort64): Likewise.
9367 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
9368 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
9369 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
9370 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
9371 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
9372 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
9373 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
9374 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
9375 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
9376 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
9377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
9378 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
9379 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
9380 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
9381
9382 2018-04-23 Joseph Myers <joseph@codesourcery.com>
9383
9384 * elf/elf.h (NT_PPC_PKEY): New macro.
9385
9386 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
9387
9388 [BZ #23094]
9389 * localedata/locales/hr_HR: fix thousands_sep and
9390 mon_thousands_sep
9391
9392 2018-04-20 Joseph Myers <joseph@codesourcery.com>
9393
9394 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
9395 (XTABS): Define to TAB3.
9396
9397 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9398
9399 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9400
9401 * dirent/scandir-tail-common.c: New file.
9402 * dirent/scandir-tail.c: Use scandir-tail-common.c.
9403 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
9404 * dirent/scandir.c: Use scandir-tail-common.c.
9405 * dirent/scandirat.c: Likewise.
9406 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
9407 * dirent/scandir64.c (scandir64): Always build and alias to scandir
9408 if _DIRENT_MATCHES_DIRENT64 is defined.
9409 * dirent/scandirat64.c (scandirat64): Likewise.
9410 * include/dirent.h (__scandir_tail): Only define iff
9411 _DIRENT_MATCHES_DIRENT64 is not defined.
9412 (__scandir64_tail): Define regardless.
9413 (__scandirat, scandirat64): Remove libc_hidden_proto.
9414 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
9415 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
9416 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
9417 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
9418 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9419 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
9420 * sysdeps/unix/sysv/linux/scandir64.c: New file.
9421
9422 2018-04-20 Joseph Myers <joseph@codesourcery.com>
9423
9424 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
9425 New macro.
9426 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
9427 Increase to 24.
9428 (_dl_aarch64_cap_flags): Add asimdfhm.
9429
9430 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
9431
9432 * sysdeps/nios2/libm-test-ulps: Update.
9433
9434 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9435
9436 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
9437 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
9438
9439 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
9440 requirements.
9441 (_DIRENT_MATCHES_DIRENT64): Undef
9442 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
9443 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
9444 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
9445 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
9446 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
9447 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
9448 use getdents64 syscalls as base.
9449 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
9450 symbol if required.
9451 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
9452 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
9453 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
9454 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
9455 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
9456 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
9457 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
9458 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
9459 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9460 (__get_clockfreq_via_proc_openprom): Use __getdents64.
9461 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
9462
9463 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9464
9465 * scripts/test_printers_common.py (init_test): Disable lock elision.
9466
9467 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9468
9469 * math/test-tgmath.c (count_double, count_float,
9470 count_ldouble, count_cdouble, count_cfloat,
9471 count_cldouble): Use volatile int.
9472
9473 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9474
9475 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
9476 (conformtest-xfail-conds): Add i386-gnu.
9477 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
9478 i386-gnu.
9479 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
9480 ipc_perm.cuid, ipc_perm.cgid): Likewise.
9481 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
9482 msqid_ds.msg_lrpid): Likewise.
9483 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
9484 Likewise.
9485 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
9486 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9487 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
9488 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
9489 unsigned int.
9490 (struct statvfs64): Likewise.
9491 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
9492 Likewise.
9493 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
9494 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
9495 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
9496 instead of wait_queue.
9497 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
9498 instead of vm_area_struct.
9499 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
9500 struct sched_param definition to it.
9501 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9502 * bits/types/struct_sched_param.h: New file.
9503 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
9504 <bits/types/struct_sched_param.h> instead of <sched.h>.
9505 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
9506 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
9507 generic version but include <bits/pthreadtypes.h> to make struct
9508 sigevent's sigev_notify_attributes field a pthread_attr_t*.
9509 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
9510 non-compliant.
9511 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
9512 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
9513 [__USE_XOPEN] (OFDEL): New macro.
9514 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
9515 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
9516 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
9517 prototypes.
9518 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
9519 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
9520 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
9521 non-compliant.
9522 * sysdeps/i386/sys/ucontext.h: Likewise.
9523 * sysdeps/m68k/sys/ucontext.h: Likewise.
9524 * sysdeps/mips/sys/ucontext.h: Likewise.
9525 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
9526 * sysdeps/mach/hurd/i386/Makefile
9527 (test-xfail-POSIX/fcntl.h/conform): Add.
9528 (test-xfail-POSIX/signal.h/conform): Add.
9529 (test-xfail-POSIX/semaphore.h/conform): Add.
9530 (test-xfail-POSIX/regex.h/conform): Add.
9531 (test-xfail-POSIX/aio.h/conform): Add.
9532 (test-xfail-POSIX/mqueue.h/conform): Add.
9533 (test-xfail-POSIX/sys/types.h/conform): Add.
9534 (test-xfail-UNIX98/fcntl.h/conform): Add.
9535 (test-xfail-UNIX98/netdb.h/conform): Add.
9536 (test-xfail-UNIX98/signal.h/conform): Add.
9537 (test-xfail-UNIX98/semaphore.h/conform): Add.
9538 (test-xfail-UNIX98/regex.h/conform): Add.
9539 (test-xfail-UNIX98/aio.h/conform): Add.
9540 (test-xfail-UNIX98/ftw.h/conform): Add.
9541 (test-xfail-UNIX98/mqueue.h/conform): Add.
9542 (test-xfail-UNIX98/netinet/in.h/conform): Add.
9543 (test-xfail-UNIX98/sys/wait.h/conform): Add.
9544 (test-xfail-UNIX98/sys/sem.h/conform): Add.
9545 (test-xfail-UNIX98/sys/uio.h/conform): Add.
9546 (test-xfail-UNIX98/sys/socket.h/conform): Add.
9547 (test-xfail-UNIX98/sys/types.h/conform): Add.
9548 (test-xfail-UNIX98/stdlib.h/conform): Add.
9549 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
9550 (test-xfail-POSIX2008/fcntl.h/conform): Add.
9551 (test-xfail-POSIX2008/netdb.h/conform): Add.
9552 (test-xfail-POSIX2008/signal.h/conform): Add.
9553 (test-xfail-POSIX2008/semaphore.h/conform): Add.
9554 (test-xfail-POSIX2008/regex.h/conform): Add.
9555 (test-xfail-POSIX2008/aio.h/conform): Add.
9556 (test-xfail-POSIX2008/mqueue.h/conform): Add.
9557 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
9558 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
9559 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
9560 (test-xfail-POSIX2008/sys/types.h/conform): Add.
9561 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
9562 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
9563 (test-xfail-XOPEN2K/netdb.h/conform): Add.
9564 (test-xfail-XOPEN2K/signal.h/conform): Add.
9565 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
9566 (test-xfail-XOPEN2K/regex.h/conform): Add.
9567 (test-xfail-XOPEN2K/aio.h/conform): Add.
9568 (test-xfail-XOPEN2K/ftw.h/conform): Add.
9569 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
9570 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
9571 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
9572 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
9573 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
9574 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
9575 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
9576 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
9577 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
9578 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
9579 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
9580 (test-xfail-XOPEN2K8/signal.h/conform): Add.
9581 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
9582 (test-xfail-XOPEN2K8/regex.h/conform): Add.
9583 (test-xfail-XOPEN2K8/aio.h/conform): Add.
9584 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
9585 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
9586 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
9587 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
9588 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
9589 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
9590 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
9591 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
9592 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
9593 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
9594 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
9595 i386-gnu.
9596 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
9597 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
9598
9599 2018-04-18 Joseph Myers <joseph@codesourcery.com>
9600
9601 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
9602 --enable-obsolete for powerpc-linux-gnuspe.
9603
9604 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9605
9606 * conform/data/sys/un.h-data: Allow sun_ prefix.
9607 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
9608 prototypes.
9609 * sysdeps/mach/include/mach.h: Likewise.
9610 * sysdeps/mach/include/mach/mig_support.h: Likewise.
9611 * sysdeps/mach/include/mach_error.h: Likewise.
9612
9613 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9614
9615 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
9616 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
9617 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
9618 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
9619
9620 2018-04-16 Andreas Schwab <schwab@suse.de>
9621
9622 [BZ #19527]
9623 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
9624
9625 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
9626
9627 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
9628 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
9629
9630 2018-04-12 DJ Delorie <dj@redhat.com>
9631
9632 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9633 version to 4.16.
9634
9635 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
9636
9637 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
9638 (struct kernel_sigaction): Use the same definition on 31bit as is used
9639 on 64bit.
9640
9641 2018-04-09 Florian Weimer <fweimer@redhat.com>
9642
9643 [BZ #23037]
9644 * resolv/res_send.c (send_dg): Use designated initializers instead
9645 of assignment to zero-initialize other fields of struct mmsghdr.
9646
9647 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9648
9649 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
9650 __READDIR_ALIAS): Undefine after usage.
9651 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
9652 __READDIR_R_ALIAS): Likewise.
9653 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
9654 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
9655 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
9656 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
9657 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
9658 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
9659 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
9660 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
9661 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
9662 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
9663 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
9664 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
9665 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
9666 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
9667 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
9668 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
9669 * sysdeps/unix/sysv/linux/readdir.c: New file.
9670 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
9671 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
9672 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
9673
9674 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
9675
9676 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
9677
9678 * manual/charset.texi (Converting a Character): Fix typo.
9679
9680 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9681
9682 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9683
9684 * sysdeps/arm/libm-test-ulps: Update.
9685
9686 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
9687 as base implementation.
9688 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
9689 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9690 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9691 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9692 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9693 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
9694 remove unrequired definitions and update comments.
9695 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
9696 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
9697 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
9698 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
9699 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
9700 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
9701 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
9702 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
9703 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
9704 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
9705 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
9706 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
9707 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
9708 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
9709 and RESET_SA_RESTORER hooks.
9710
9711 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
9712
9713 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9714
9715 2018-04-05 Florian Weimer <fweimer@redhat.com>
9716
9717 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
9718 integer overflow, memory leak on error, and indeterminate errno
9719 value. Add a null wide character to terminate the result string.
9720 * manual/charset.texi (Converting a Character): Mention embedded
9721 null bytes in the mbrtowc input string. Explain what happens in
9722 the -2 result case. Do not claim that mbrtowc is simple or
9723 obvious to use. Adjust the description of the code example. Use
9724 @code, not @var, for concrete variables.
9725
9726 2018-04-05 Florian Weimer <fweimer@redhat.com>
9727
9728 * manual/examples/mbstouwcs.c: New file.
9729 * manual/charset.texi (Converting a Character): Include it.
9730
9731 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9732
9733 * include/dirent.h (dirfd): Add hidden proto.
9734 * dirent/dirfd.c (dirfd): Add hidden def.
9735 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
9736 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
9737
9738 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9739
9740 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
9741 sin, cos and sincos to 1 ULP.
9742
9743 2018-04-04 Maciej W. Rozycki <macro@mips.com>
9744
9745 [BZ #19818]
9746 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
9747 symbols.
9748 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
9749 * elf/tst-absolute-sym.c: New file.
9750 * elf/tst-absolute-sym-lib.c: New file.
9751 * elf/tst-absolute-sym-lib.lds: New file.
9752 * elf/Makefile (tests): Add `tst-absolute-sym'.
9753 (modules-names): Add `tst-absolute-sym-lib'.
9754 (LDLIBS-tst-absolute-sym-lib.so): New variable.
9755 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
9756 ($(objpfx)tst-absolute-sym): New dependency.
9757
9758 [BZ #19818]
9759 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
9760 parameter.
9761 (SYMBOL_ADDRESS): New macro.
9762 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
9763 SYMBOL_ADDRESS for symbol address calculation.
9764 * elf/dl-runtime.c (_dl_fixup): Likewise.
9765 (_dl_profile_fixup): Likewise.
9766 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
9767 * elf/rtld.c (dl_main): Likewise.
9768 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
9769 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
9770 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
9771 (elf_machine_rela): Likewise.
9772 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
9773 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
9774 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9775 (elf_machine_rela): Likewise.
9776 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
9777 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
9778 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
9779 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9780 Likewise.
9781 (elf_machine_reloc): Likewise.
9782 (elf_machine_got_rel): Likewise.
9783 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
9784 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
9785 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
9786 Likewise.
9787 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9788 Likewise.
9789 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
9790 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
9791 Likewise.
9792 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
9793 Likewise.
9794 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9795 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
9796 Likewise.
9797 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9798 Likewise.
9799 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
9800 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9801
9802 2018-04-04 Zack Weinberg <zackw@panix.com>
9803
9804 * sysdeps/generic/internal-signals.h: Include signal.h,
9805 sigsetops.h, and stdbool.h.
9806 (__libc_signal_block_all): Actually block all signals.
9807 (__libc_signal_block_app): Likewise.
9808 (__libc_signal_restore_set): Actually restore the signal mask.
9809
9810 2018-04-04 Florian Weimer <fweimer@redhat.com>
9811
9812 inet: Actually build and run tst-deadline.
9813 * inet/Makefile (tests-internal): Add tst-deadline and do not
9814 overwrite the variable.
9815 (tests-static-internal): Remove variable.
9816
9817 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
9818
9819 [BZ #22947]
9820 * bits/uio-ext.h (RWF_APPEND): New.
9821 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
9822 * manual/llio.texi: Document RWF_APPEND.
9823 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
9824 (RWF_SUPPORTED): Add RWF_APPEND.
9825
9826 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9827
9828 [BZ #22391]
9829 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
9830 check for internal nptl signals.
9831 * nptl/sigaction.c (__sigaction): Likewise.
9832 * signal/sigaddset.c (sigaddset): Likewise.
9833 * signal/sigdelset.c (sigdelset): Likewise.
9834 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9835 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
9836 value.
9837 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
9838 to filter out internal nptl signals.
9839 * signal/tst-sigset.c (do_test): Check ech signal indidually and
9840 also check realtime signals using standard macros.
9841 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
9842 __is_internal_signal, __libc_signal_block_all,
9843 __libc_signal_block_app, __libc_signal_restore_set): New functions.
9844 * sysdeps/nptl/sigfillset.c: Remove file.
9845 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
9846 Change return to bool.
9847 (__clear_internal_signals): Remove SIGTIMER clean since it is
9848 equal to SIGCANEL on Linux.
9849 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
9850 signal set was constructed using standard functions.
9851
9852 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9853
9854 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
9855 ifname is too long.
9856 * hurd/hurdsig.c (interrupted_reply_port_location): Use
9857 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
9858 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
9859 hidden def.
9860 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
9861 * signal/sigaddset.c: Include <sigsetopts.h>.
9862 * signal/sigdelset.c: Likewise.
9863
9864 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9865
9866 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
9867 (__cos): Likewise.
9868 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
9869 logic as sin and cos.
9870
9871 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9872
9873 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
9874 inputs. Return correct sign.
9875 (do_sincos): Remove small input check before do_sin, let do_sin set
9876 the sign.
9877 (__sin): Likewise.
9878 (__cos): Likewise.
9879
9880 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9881
9882 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
9883 (do_cos_slow): Likewise.
9884 (do_sin_slow): Likewise.
9885 (reduce_and_compute): Likewise.
9886 (slow): Likewise.
9887 (slow1): Likewise.
9888 (slow2): Likewise.
9889 (sloww): Likewise.
9890 (sloww1): Likewise.
9891 (sloww2): Likewise.
9892 (bslow): Likewise.
9893 (bslow1): Likewise.
9894 (bslow2): Likewise.
9895 (cslow2): Likewise.
9896
9897 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9898
9899 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
9900 (do_cos): Remove corp parameter and calculations.
9901 (do_sin): Likewise.
9902 (do_sincos): Remove cor variable.
9903 (__sin): Use do_sincos for huge inputs.
9904 (__cos): Likewise.
9905 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9906 (reduce_and_compute_sincos): Remove unused function.
9907
9908 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9909
9910 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
9911 reduce_sincos, improve accuracy to 136 bits.
9912 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
9913 (__sin): Use improved reduction and simplified do_sincos calculation.
9914 (__cos): Likewise.
9915 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9916
9917 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9918
9919 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
9920 (do_sincos_2): Likewise.
9921 (__sin): Remove middle range reduction case.
9922 (__cos): Likewise.
9923 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
9924 reduction case.
9925
9926 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9927
9928 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
9929 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
9930 inputs.
9931 (__cos): Likewise.
9932 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
9933
9934 2018-04-03 Joseph Myers <joseph@codesourcery.com>
9935
9936 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9937 version to 4.16
9938
9939 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9940
9941 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
9942 Remove definitions.
9943 (opendir_oflags): Use O_DIRECTORY regardless.
9944 (__opendir, __opendirat): Remove need_isdir_precheck usage.
9945 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
9946
9947 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9948
9949 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
9950 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
9951 macros.
9952 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
9953 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
9954 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
9955 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
9956 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
9957 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
9958
9959 * htl/Makefile: Bump licence to LGPL 2.1+.
9960 * htl/alloca_cutoff.c: Likewise.
9961 * htl/cthreads-compat.c: Likewise.
9962 * htl/lockfile.c: Likewise.
9963 * htl/pt-alloc.c: Likewise.
9964 * htl/pt-cancel.c: Likewise.
9965 * htl/pt-cleanup.c: Likewise.
9966 * htl/pt-create.c: Likewise.
9967 * htl/pt-dealloc.c: Likewise.
9968 * htl/pt-detach.c: Likewise.
9969 * htl/pt-exit.c: Likewise.
9970 * htl/pt-getattr.c: Likewise.
9971 * htl/pt-initialize.c: Likewise.
9972 * htl/pt-internal.h: Likewise.
9973 * htl/pt-join.c: Likewise.
9974 * htl/pt-self.c: Likewise.
9975 * htl/pt-setcancelstate.c: Likewise.
9976 * htl/pt-setcanceltype.c: Likewise.
9977 * htl/pt-sigmask.c: Likewise.
9978 * htl/pt-spin-inlines.c: Likewise.
9979 * htl/pt-testcancel.c: Likewise.
9980 * htl/pt-yield.c: Likewise.
9981 * htl/tests/test-1.c: Likewise.
9982 * htl/tests/test-10.c: Likewise.
9983 * htl/tests/test-11.c: Likewise.
9984 * htl/tests/test-12.c: Likewise.
9985 * htl/tests/test-13.c: Likewise.
9986 * htl/tests/test-14.c: Likewise.
9987 * htl/tests/test-15.c: Likewise.
9988 * htl/tests/test-16.c: Likewise.
9989 * htl/tests/test-17.c: Likewise.
9990 * htl/tests/test-2.c: Likewise.
9991 * htl/tests/test-3.c: Likewise.
9992 * htl/tests/test-4.c: Likewise.
9993 * htl/tests/test-5.c: Likewise.
9994 * htl/tests/test-6.c: Likewise.
9995 * htl/tests/test-7.c: Likewise.
9996 * htl/tests/test-8.c: Likewise.
9997 * htl/tests/test-9.c: Likewise.
9998 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
9999 * sysdeps/htl/bits/cancelation.h: Likewise.
10000 * sysdeps/htl/bits/pthread-np.h: Likewise.
10001 * sysdeps/htl/bits/pthread.h: Likewise.
10002 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
10003 * sysdeps/htl/bits/semaphore.h: Likewise.
10004 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
10005 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
10006 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
10007 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
10008 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
10009 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
10010 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
10011 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
10012 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
10013 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
10014 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
10015 * sysdeps/htl/old_pt-atfork.c: Likewise.
10016 * sysdeps/htl/pt-atfork.c: Likewise.
10017 * sysdeps/htl/pt-attr-destroy.c: Likewise.
10018 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
10019 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
10020 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
10021 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
10022 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
10023 * sysdeps/htl/pt-attr-getscope.c: Likewise.
10024 * sysdeps/htl/pt-attr-getstack.c: Likewise.
10025 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
10026 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
10027 * sysdeps/htl/pt-attr-init.c: Likewise.
10028 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
10029 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
10030 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
10031 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
10032 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
10033 * sysdeps/htl/pt-attr-setscope.c: Likewise.
10034 * sysdeps/htl/pt-attr-setstack.c: Likewise.
10035 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
10036 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
10037 * sysdeps/htl/pt-attr.c: Likewise.
10038 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
10039 * sysdeps/htl/pt-barrier-init.c: Likewise.
10040 * sysdeps/htl/pt-barrier-wait.c: Likewise.
10041 * sysdeps/htl/pt-barrier.c: Likewise.
10042 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
10043 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
10044 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
10045 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
10046 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
10047 * sysdeps/htl/pt-cond-destroy.c: Likewise.
10048 * sysdeps/htl/pt-cond-init.c: Likewise.
10049 * sysdeps/htl/pt-cond-signal.c: Likewise.
10050 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
10051 * sysdeps/htl/pt-cond-wait.c: Likewise.
10052 * sysdeps/htl/pt-cond.c: Likewise.
10053 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
10054 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
10055 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
10056 * sysdeps/htl/pt-condattr-init.c: Likewise.
10057 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
10058 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
10059 * sysdeps/htl/pt-destroy-specific.c: Likewise.
10060 * sysdeps/htl/pt-equal.c: Likewise.
10061 * sysdeps/htl/pt-getconcurrency.c: Likewise.
10062 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
10063 * sysdeps/htl/pt-getschedparam.c: Likewise.
10064 * sysdeps/htl/pt-getspecific.c: Likewise.
10065 * sysdeps/htl/pt-init-specific.c: Likewise.
10066 * sysdeps/htl/pt-key-create.c: Likewise.
10067 * sysdeps/htl/pt-key-delete.c: Likewise.
10068 * sysdeps/htl/pt-key.h: Likewise.
10069 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
10070 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
10071 * sysdeps/htl/pt-mutex-init.c: Likewise.
10072 * sysdeps/htl/pt-mutex-lock.c: Likewise.
10073 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
10074 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
10075 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
10076 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
10077 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
10078 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
10079 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
10080 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
10081 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
10082 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
10083 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
10084 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
10085 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
10086 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
10087 * sysdeps/htl/pt-mutexattr.c: Likewise.
10088 * sysdeps/htl/pt-once.c: Likewise.
10089 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
10090 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
10091 * sysdeps/htl/pt-rwlock-init.c: Likewise.
10092 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
10093 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
10094 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
10095 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
10096 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
10097 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
10098 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
10099 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
10100 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
10101 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
10102 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
10103 * sysdeps/htl/pt-setconcurrency.c: Likewise.
10104 * sysdeps/htl/pt-setschedparam.c: Likewise.
10105 * sysdeps/htl/pt-setschedprio.c: Likewise.
10106 * sysdeps/htl/pt-setspecific.c: Likewise.
10107 * sysdeps/htl/pt-spin.c: Likewise.
10108 * sysdeps/htl/pt-startup.c: Likewise.
10109 * sysdeps/htl/pthread.h: Likewise.
10110 * sysdeps/htl/sem-close.c: Likewise.
10111 * sysdeps/htl/sem-destroy.c: Likewise.
10112 * sysdeps/htl/sem-getvalue.c: Likewise.
10113 * sysdeps/htl/sem-init.c: Likewise.
10114 * sysdeps/htl/sem-open.c: Likewise.
10115 * sysdeps/htl/sem-post.c: Likewise.
10116 * sysdeps/htl/sem-timedwait.c: Likewise.
10117 * sysdeps/htl/sem-trywait.c: Likewise.
10118 * sysdeps/htl/sem-unlink.c: Likewise.
10119 * sysdeps/htl/sem-wait.c: Likewise.
10120 * sysdeps/hurd/htl/pt-kill.c: Likewise.
10121 * sysdeps/i386/htl/pt-machdep.h: Likewise.
10122 * sysdeps/mach/htl/pt-block.c: Likewise.
10123 * sysdeps/mach/htl/pt-spin.c: Likewise.
10124 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
10125 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
10126 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
10127 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
10128 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
10129 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
10130 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
10131 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
10132 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
10133 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
10134 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
10135 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
10136 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
10137 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
10138 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
10139 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
10140 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
10141 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
10142 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
10143 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
10144 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
10145 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
10146 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
10147 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
10148 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
10149 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
10150 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
10151 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
10152 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
10153 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
10154 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
10155 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
10156 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
10157 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
10158 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
10159 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
10160 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
10161 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
10162 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
10163 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
10164 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
10165 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
10166 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
10167
10168 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
10169 * README: Remove the mention of out-of-tree patches needed for
10170 GNU/Hurd.
10171
10172 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
10173 (UTIME_NOW, UTIME_OMIT): Define macros.
10174
10175 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
10176 instead of pthread_detach.
10177 (__cthread_fork): Call __pthread_create instead of pthread_create.
10178 (__cthread_keycreate): Call __pthread_key_create instead of
10179 pthread_key_create.
10180 (__cthread_getspecific): Call __pthread_getspecific instead of
10181 pthread_getspecific.
10182 (__cthread_setspecific): Call __pthread_setspecific instead of
10183 pthread_setspecific.
10184 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
10185 __pthread_mutex_unlock instead of pthread_mutex_lock and
10186 pthread_mutex_unlock.
10187 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
10188 ___pthread_get_cleanup_stack.
10189 (__pthread_get_cleanup_stack): New strong alias.
10190 * htl/pt-create.c: Include <pthreadP.h>.
10191 (entry_point): Call __pthread_exit instead of pthread_exit.
10192 (pthread_create): Rename to __pthread_create.
10193 (pthread_create): New strong alias.
10194 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
10195 (pthread_detach): New strong alias.
10196 (__pthread_detach): Call __pthread_cond_broadcast instead of
10197 pthread_cond_broadcast.
10198 * htl/pt-exit.c: Include <pthreadP.h>.
10199 (__pthread_exit): Call __pthread_setcancelstate and
10200 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
10201 __pthread_get_cleanup_stack.
10202 * htl/pt-testcancel.c: Include <pthreadP.h>.
10203 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
10204 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
10205 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
10206 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
10207 pthread_attr_getstacksize.
10208 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
10209 Rename to __pthread_attr_getstackaddr.
10210 (pthread_attr_getstackaddr): New strong alias.
10211 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
10212 Rename to __pthread_attr_getstacksize.
10213 (pthread_attr_getstacksize): New strong alias.
10214 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
10215 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
10216 (pthread_attr_setstack): New strong alias.
10217 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
10218 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
10219 pthread_attr_getstacksize, pthread_attr_setstacksize and
10220 pthread_attr_setstackaddr.
10221 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
10222 Rename to __pthread_attr_setstackaddr.
10223 (pthread_attr_setstackaddr): New strong alias.
10224 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
10225 Rename to __pthread_attr_setstacksize.
10226 (pthread_attr_setstacksize): New strong alias.
10227 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
10228 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
10229 pthread_exit.
10230 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
10231 (__pthread_key_create): New hidden def.
10232 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
10233 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
10234 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
10235 __pthread_exit, __pthread_key_create, __pthread_getspecific,
10236 __pthread_setspecific, __pthread_setcancelstate,
10237 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
10238 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
10239 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
10240 declarations.
10241 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
10242 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
10243 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
10244 (pthread_attr_setstackaddr): New strong alias.
10245 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
10246 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
10247 (pthread_attr_setstacksize): New strong alias.
10248 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
10249 (call_exit): Call __pthread_exit instead of pthread_exit.
10250 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
10251 (_pthread_mutex_init): New hidden definition.
10252 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
10253 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
10254 instead of pthread_attr_init and pthread_attr_setstack.
10255
10256 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
10257 __vm_deallocate instead of vm_allocate and vm_deallocate.
10258 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
10259 setenv.
10260 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
10261 of geteuid.
10262 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
10263 strdup.
10264 * hurd/siginfo.c: Include <libioP.h>.
10265 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
10266 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
10267 munmap.
10268 * mach/devstream.c: Include <libioP.h>.
10269 (dealloc_ref): Call __mach_port_deallocate instead of
10270 mach_port_deallocate.
10271 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
10272 Call __mach_port_deallocate instead of mach_port_deallocate.
10273 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
10274 pathconf.
10275 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
10276 munmap.
10277 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
10278 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
10279 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
10280 of munmap.
10281 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
10282 of close.
10283 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
10284 instead of sysconf.
10285 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
10286 __clock_gettime instead of clock_gettime.
10287 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
10288 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
10289 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
10290 * sysdeps/unix/bsd/stty.c (stty): Likewise.
10291 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
10292 tcgetattr.
10293 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
10294 __clock_gettime and __nanosleep instead of clock_gettime and
10295 nanosleep.
10296 * hurd/catch-signal.c (hurd_catch_signal): Rename to
10297 __hurd_catch_signal.
10298 (hurd_catch_signal): New strong alias.
10299 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
10300 __hurd_catch_signal instead of hurd_catch_signal.
10301 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
10302 * hurd/hurdexec.c (_hurd_init): Add hidden def.
10303 * hurd/hurdinit.c (_hurd_init): Add hidden def.
10304 * hurd/hurdsig.c: Include <mach/mig_support.h>.
10305 (_hurd_thread_sigstate): Add hidden def.
10306 (_hurd_internal_post_signal): Use __mutex_unlock instead of
10307 mutex_unlock.
10308 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
10309 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
10310 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
10311 __hurd_file_name_path_lookup.
10312 (hurd_file_name_path_lookup): New strong alias.
10313 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
10314 hurd_file_name_path_lookup.
10315 * mach/errstring.c (mach_error_type): Add hidden def.
10316 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
10317 * mach/mutex-init.c (__mutex_init): Add hidden def.
10318 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
10319 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
10320 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
10321 * sysdeps/mach/hurd/getcwd.c
10322 (_hurd_canonicalize_directory_name_internal): Rename to
10323 __hurd_canonicalize_directory_name_internal.
10324 (_hurd_canonicalize_directory_name_internal): New strong alias.
10325 (__canonicalize_directory_name_internal, __getcwd): Call
10326 __hurd_canonicalize_directory_name_internal instead of
10327 _hurd_canonicalize_directory_name_internal.
10328 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
10329 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
10330 hidden defs.
10331 * sysdeps/hurd/include/hurd.h: New file.
10332 * sysdeps/hurd/include/hurd/fd.h: New file.
10333 * sysdeps/hurd/include/hurd/signal.h: New file.
10334 * sysdeps/mach/include/lock-intern.h: New file.
10335 * sysdeps/mach/include/mach.h: New file.
10336 * sysdeps/mach/include/mach/mig_support.h: New file.
10337 * sysdeps/mach/include/mach_error.h: New file.
10338 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
10339 prototype.
10340 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
10341 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
10342 _HEADER_H_HIDDEN_DEF macro.
10343 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
10344 _hurd_fd_error_signal): Add hidden prototype.
10345 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
10346 hidden def.
10347 * libio/iolibio.h (_IO_puts): New hidden prototype.
10348 * libio/ioputs.c (_IO_puts): New hidden def.
10349 * sysdeps/mach/hurd/localplt.data: New file.
10350
10351 2018-04-02 Agustina Arzille <avarzille@riseup.net>
10352 Amos Jeffries <squid3@treenet.co.nz>
10353 David Michael <fedora.dm0@gmail.com>
10354 Marco Gerards <marco@gnu.org>
10355 Marcus Brinkmann <marcus@gnu.org>
10356 Neal H. Walfield <neal@gnu.org>
10357 Pino Toscano <toscano.pino@tiscali.it>
10358 Richard Braun <rbraun@sceen.net>
10359 Roland McGrath <roland@gnu.org>
10360 Samuel Thibault <samuel.thibault@ens-lyon.org>
10361 Thomas DiModica <ricinwich@yahoo.com>
10362 Thomas Schwinge <tschwinge@gnu.org>
10363
10364 * htl: New directory.
10365 * sysdeps/htl: New directory.
10366 * sysdeps/hurd/htl: New directory.
10367 * sysdeps/i386/htl: New directory.
10368 * sysdeps/mach/htl: New directory.
10369 * sysdeps/mach/hurd/htl: New directory.
10370 * sysdeps/mach/hurd/i386/htl: New directory.
10371 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
10372 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
10373 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
10374
10375 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10376
10377 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
10378 signals in thread created for runing timers.
10379
10380 2018-04-01 Florian Weimer <fweimer@redhat.com>
10381
10382 * support/support_format_addrinfo.c (support_format_addrinfo):
10383 Include unknown error number in formatted result.
10384
10385 2018-03-29 Florian Weimer <fweimer@redhat.com>
10386
10387 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
10388 capture SIGBUS.
10389
10390 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10391
10392 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
10393 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
10394 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10395 (__ASSUME_CLONE_BACKWARDS): Define.
10396
10397 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
10398
10399 [BZ #23024]
10400 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
10401 early when linux sentinel value is set.
10402
10403 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10404
10405 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
10406
10407 2018-03-27 Andreas Schwab <schwab@suse.de>
10408
10409 [BZ #23005]
10410 * resolv/res_send.c (__res_context_send): Return ENOMEM if
10411 allocation of private copy of nsaddr_list fails.
10412
10413 2018-03-26 Joseph Myers <joseph@codesourcery.com>
10414
10415 [BZ #16552]
10416 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
10417 * sysdeps/unix/sysv/linux/umount.c: ... here.
10418 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
10419 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
10420 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
10421 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
10422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
10423 * sysdeps/unix/sysv/linux/umount.S: Likewise.
10424 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
10425
10426 2018-03-26 Andreas Schwab <schwab@suse.de>
10427
10428 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
10429 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
10430 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
10431 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
10432 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
10433 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
10434 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
10435 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
10436 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
10437 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
10438 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
10439 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
10440 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
10441 (R_RISCV_NUM): Define.
10442
10443 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10444
10445 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
10446 TLS declaration of errno.
10447 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
10448 __libc_setup_tls.
10449 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
10450 (ARCH_SETUP_TLS): Likewise.
10451 * sysdeps/mach/hurd/libc-start.h: New file copied from
10452 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
10453 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
10454 instead of __libc_setup_tls.
10455 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
10456 __libc_setup_tls before initializing libpthread and running _hurd_init
10457 which starts the signal thread.
10458 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
10459 Declare function.
10460 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10461
10462 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
10463
10464 [BZ #22998]
10465 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
10466 after it is defined.
10467
10468 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
10469 Max Horn <max@quendi.de>
10470
10471 [BZ #22644]
10472 CVE-2017-18269
10473 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
10474 branch conditions.
10475 * string/test-memmove.c (do_test2): New testcase.
10476
10477 2018-03-22 Joseph Myers <joseph@codesourcery.com>
10478
10479 * sysdeps/generic/frame.h: Remove file.
10480 * sysdeps/arm/frame.h: Likewise.
10481 * sysdeps/hppa/frame.h: Likewise.
10482 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
10483 macro.
10484 (GET_FRAME): Likewise.
10485 (GET_STACK): Likewise.
10486 (CALL_SIGHANDLER): Likewise.
10487 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
10488 Likewise.
10489 (GET_FRAME): Likewise.
10490 (GET_STACK): Likewise.
10491 (CALL_SIGHANDLER): Likewise.
10492 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
10493 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10494 (GET_FRAME): Likewise.
10495 (GET_STACK): Likewise.
10496 (CALL_SIGHANDLER): Likewise.
10497 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
10498 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10499 (GET_FRAME): Likewise.
10500 (GET_STACK): Likewise.
10501 (ADVANCE_STACK_FRAME): Likewise.
10502 (CALL_SIGHANDLER): Likewise.
10503 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
10504 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10505 (GET_FRAME): Likewise.
10506 (GET_STACK): Likewise.
10507 (CALL_SIGHANDLER): Likewise.
10508 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
10509 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10510 (GET_FRAME): Likewise.
10511 (GET_STACK): Likewise.
10512 (CALL_SIGHANDLER): Likewise.
10513 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
10514 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10515 (GET_FRAME): Likewise.
10516 (GET_STACK): Likewise.
10517 (CALL_SIGHANDLER): Likewise.
10518 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
10519 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10520 (GET_FRAME): Likewise.
10521 (GET_STACK): Likewise.
10522 (CALL_SIGHANDLER): Likewise.
10523 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
10524 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10525 (GET_FRAME): Likewise.
10526 (GET_STACK): Likewise.
10527 (CALL_SIGHANDLER): Likewise.
10528 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
10529 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10530 (GET_FRAME): Likewise.
10531 (GET_STACK): Likewise.
10532 (CALL_SIGHANDLER): Likewise.
10533 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
10534 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10535 (GET_FRAME): Likewise.
10536 (GET_STACK): Likewise.
10537 (CALL_SIGHANDLER): Likewise.
10538 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
10539 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10540 (GET_FRAME): Likewise.
10541 (GET_STACK): Likewise.
10542 (CALL_SIGHANDLER): Likewise.
10543 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
10544 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10545 (GET_FRAME): Likewise.
10546 (GET_STACK): Likewise.
10547 (CALL_SIGHANDLER): Likewise.
10548 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
10549 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10550 (FIRST_FRAME_POINTER): Likewise.
10551 (ADVANCE_STACK_FRAME): Likewise.
10552 (GET_STACK): Likewise.
10553 (GET_FRAME): Likewise.
10554 (CALL_SIGHANDLER): Likewise.
10555 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
10556 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10557 (ADVANCE_STACK_FRAME): Likewise.
10558 (GET_STACK): Likewise.
10559 (GET_FRAME): Likewise.
10560 (CALL_SIGHANDLER): Likewise.
10561 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
10562 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10563 (GET_FRAME): Likewise.
10564 (GET_STACK): Likewise.
10565 (CALL_SIGHANDLER): Likewise.
10566 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
10567 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10568 (GET_FRAME): Likewise.
10569 (GET_STACK): Likewise.
10570 (CALL_SIGHANDLER): Likewise.
10571
10572 2018-03-21 Joseph Myers <joseph@codesourcery.com>
10573
10574 * sysdeps/x86_64/backtrace.c: Move to ....
10575 * debug/backtrace.c: ... here.
10576 * sysdeps/aarch64/backtrace.c: Remove file.
10577 * sysdeps/alpha/backtrace.c: Likewise.
10578 * sysdeps/hppa/backtrace.c: Likewise.
10579 * sysdeps/ia64/backtrace.c: Likewise.
10580 * sysdeps/mips/backtrace.c: Likewise.
10581 * sysdeps/nios2/backtrace.c: Likewise.
10582 * sysdeps/riscv/backtrace.c: Likewise.
10583 * sysdeps/sh/backtrace.c: Likewise.
10584 * sysdeps/tile/backtrace.c: Likewise.
10585
10586 2018-03-20 Joseph Myers <joseph@codesourcery.com>
10587
10588 [BZ #22987]
10589 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
10590 function.
10591 (fdimf): Likewise.
10592 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
10593
10594 [BZ #17343]
10595 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
10596 possibly overflowing computations.
10597
10598 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10599
10600 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
10601 values from Linux-specific section now that it is in the GNU section.
10602 * sysdeps/gnu/errlist.c: Regenerate.
10603
10604 2018-03-20 Joseph Myers <joseph@codesourcery.com>
10605
10606 * math/Makefile (libm-narrow-fns): Add sub.
10607 (libm-test-funcs-narrow): Likewise.
10608 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
10609 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
10610 * math/gen-auto-libm-tests.c (test_functions): Add sub.
10611 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
10612 (NARROW_SUB_ROUND_TO_ODD): Likewise.
10613 (NARROW_SUB_TRIVIAL): Likewise.
10614 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
10615 macro.
10616 (__dsubl): Likewise.
10617 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
10618 dsub.
10619 (CFLAGS-nldbl-dsub.c): New variable.
10620 (CFLAGS-nldbl-fsub.c): Likewise.
10621 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10622 __nldbl_dsubl.
10623 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
10624 prototype.
10625 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
10626 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
10627 * math/auto-libm-test-in: Add tests of sub.
10628 * math/auto-libm-test-out-narrow-sub: New generated file.
10629 * math/libm-test-narrow-sub.inc: New file.
10630 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
10631 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
10632 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
10633 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
10634 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
10635 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
10636 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
10637 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
10638 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
10639 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
10640 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
10641 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
10642 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
10643 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
10644 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
10645 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
10646 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
10647 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
10648 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10649 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10650 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10651 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10652 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10653 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10654 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10655 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10656 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10657 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10658 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10659 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10660 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10661 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10666 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10667 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10668 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10669 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10670 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10671 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10672 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
10673 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
10674 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10675 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10676
10677 2018-03-19 Joseph Myers <joseph@codesourcery.com>
10678
10679 [BZ #20079]
10680 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
10681
10682 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
10683
10684 * benchtests/bench-timing.h (attribute_hidden): Undefine.
10685
10686 2018-03-18 Richard Braun <rbraun@sceen.net>
10687
10688 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
10689 thread reference.
10690
10691 2018-03-18 Agustina Arzille <avarzille@riseup.net>
10692
10693 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
10694 (__libc_cleanup_fct): Define function.
10695 (__libc_cleanup_region_start, __libc_cleanup_region_end,
10696 __libc_cleanup_end): Rewrite implementation using
10697 __attribute__ ((__cleanup__)).
10698 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
10699 * hurd/Makefile (routines): Add hurdlock.
10700 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
10701 interface.
10702 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
10703 * hurd/hurdpid.c: Include <lowlevellock.h>
10704 (_S_msg_proc_newids): Use lll_wait to synchronize.
10705 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
10706 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
10707 * mach/Makefile (lock-headers): Remove machine-lock.h.
10708 * mach/lock-intern.h: Include <lowlevellock.h> instead of
10709 <machine-lock.h>.
10710 (__spin_lock_t): New type.
10711 (__SPIN_LOCK_INITIALIZER): New macro.
10712 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
10713 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
10714 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
10715 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
10716 (__mutex_init): Initialize with lll.
10717 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
10718 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
10719 needing lll.
10720 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10721 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
10722 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
10723 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
10724 (__setpgid): Use lll for synchronization.
10725 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
10726 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
10727 instead of <cthreads.h>.
10728 (_IO_lock_inexpensive): New macro
10729 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
10730 (__libc_lock_self0): New declaration.
10731 (__libc_lock_owner_self): New macro.
10732 (__libc_key_t): Remove type.
10733 (_LIBC_LOCK_INITIALIZER): New macro.
10734 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
10735 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
10736 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
10737 __libc_lock_define_initialized_recursive,
10738 __rtld_lock_define_initialized_recursive,
10739 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
10740 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
10741 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
10742 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
10743 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
10744 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
10745 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
10746 New macros.
10747 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
10748 * hurd/hurdlock.c: New file.
10749 * hurd/hurdlock.h: New file.
10750 * mach/lowlevellock.h: New file
10751
10752 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10753
10754 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
10755 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
10756 when opening a symlink with O_NOFOLLOW.
10757 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
10758 path when flags contains O_NOFOLLOW.
10759 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
10760 if flags contains O_DIRECTORY and the result is a directory.
10761 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
10762 oneself when the pointer given in D is nul (as set by ext2fs).
10763 * sysdeps/mach/hurd/mlockall.c: New file.
10764 * sysdeps/mach/hurd/munlockall.c: New file.
10765
10766 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
10767
10768 * hurd/hurdsig.c: Include <pthread.h>.
10769 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
10770 get the signal thread stack layout.
10771 * hurd/Makefile (headers): Remove threadvar.h.
10772 (inline-headers): Remove threadvar.h.
10773 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
10774 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
10775 __hurd_threadvar_max, __hurd_errno_location.
10776 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
10777 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
10778 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
10779 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
10780 unless TLS is not initialized yet, in which case we do not need a
10781 critical section yet anyway.
10782 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
10783 <machine-sp.h>.
10784 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
10785 declarations.
10786 (__hurd_threadvar_index): Remove enum.
10787 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
10788 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
10789 inlines.
10790 (__hurd_reply_port0): New variable declaration.
10791 (__hurd_local_reply_port): New macro.
10792 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
10793 (interrupted_reply_port_location): Add thread_t parameter. Use it
10794 with THREAD_TCB to access thread-local variables.
10795 (_hurdsig_abort_rpcs): Pass ss->thread to
10796 interrupted_reply_port_location.
10797 (_hurd_internal_post_signal): Likewise.
10798 (_hurdsig_init): Use presence of cthread_fork instead of
10799 __hurd_threadvar_stack_mask to start signal thread by hand.
10800 Remove signal thread threadvar initialization.
10801 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
10802 * hurd/sigunwind.c: Include <hurd/threadvar.h>
10803 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
10804 of threadvar.
10805 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
10806 __libc_lock_self0.
10807 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
10808 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
10809 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
10810 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
10811 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
10812 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
10813 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
10814 define variables.
10815 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
10816 <hurd/threadvar.h>.
10817 [IS_IN(rtld)] (rtld_errno): New variable.
10818 [IS_IN(rtld)] (__errno_location): New weak function.
10819 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
10820 * sysdeps/mach/hurd/errno.c: Remove file.
10821 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
10822 (__fork): Remove THREADVAR_SPACE macro and its use.
10823 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
10824 variable.
10825 (init): Do not initialize threadvar.
10826 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
10827 symbol.
10828 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
10829 __hurd_local_reply_port instead of threadvar.
10830 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
10831 _hurd_sigstate fields.
10832 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
10833 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
10834 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
10835 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
10836 instead of threadvar.
10837 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
10838 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
10839 (use_threadvar, global_reply_port): Remove variables.
10840 (__hurd_reply_port0): New variable.
10841 (__mig_get_reply_port): Use __hurd_local_reply_port and
10842 __hurd_reply_port0 instead of threadvar.
10843 (__mig_dealloc_reply_port): Likewise.
10844 (__mig_init): Do not initialize threadvar.
10845 * sysdeps/mach/hurd/profil.c: Fix comment.
10846 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
10847 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
10848 cthread_keycreate, cthread_getspecific, cthread_setspecific to
10849 __cthread_fork, __cthread_detach, __pthread_getattr_np,
10850 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
10851 __cthread_setspecific.
10852 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
10853 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
10854 __cthread_t instead of cthread_fork, cthread_detach,
10855 pthread_getattr_np, pthread_attr_getstack.
10856 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
10857 __cthread_keycreate.
10858 (cthread_getspecific): Rename to __cthread_getspecific.
10859 (cthread_setspecific): Rename to __cthread_setspecific.
10860 (__libc_getspecific): Use __cthread_getspecific instead of
10861 cthread_getspecific.
10862 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
10863 __cthread_keycreate instead of cthread_keycreate.
10864 (__libc_setspecific): Use __cthread_setspecific instead of
10865 cthread_setspecific.
10866 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
10867 Likewise.
10868 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
10869 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
10870 testing whether it is defined.
10871
10872 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
10873
10874 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
10875 Define macro.
10876 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
10877 * sysdeps/mach/i386/thread_state.h
10878 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
10879 i386_THREAD_STATE.
10880 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
10881 i386_THREAD_STATE.
10882 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
10883
10884 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
10885 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
10886
10887 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
10888 macros.
10889 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
10890 descriptor instead of creating a new one.
10891 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
10892
10893 * mach/setup-thread.c: Include <ldsodefs.h>.
10894 (__mach_setup_thread): Call _dl_allocate_tls, pass
10895 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
10896 MACHINE_THREAD_STATE_FLAVOR, before getting
10897 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
10898 MACHINE_THREAD_STATE_FLAVOR with the result.
10899 * hurd/hurdfault.c (_hurdsig_fault_init): Call
10900 MACHINE_THREAD_STATE_FIX_NEW.
10901 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
10902 too. Add original thread parameter.
10903
10904 2018-03-16 Joseph Myers <joseph@codesourcery.com>
10905
10906 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
10907 Remove inline function.
10908
10909 * sysdeps/i386/fpu/libm-test-ulps: Update.
10910 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10911
10912 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
10913
10914 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
10915 commit.
10916
10917 2018-03-15 Joseph Myers <joseph@codesourcery.com>
10918
10919 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
10920 (__sincos_code): Remove define and undefine.
10921 [__FAST_MATH__] (__sincos): Remove inline function.
10922 [__FAST_MATH__] (__sincosf): Remove inline function.
10923 [__FAST_MATH__] (__sincosl): Remove inline function.
10924 (__atan2l): Remove inline functions.
10925 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
10926 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
10927 function.
10928 (floor): Remove inline function.
10929 (ceil): Likewise.
10930 [__FAST_MATH__] (__ldexp_code): Remove macro.
10931 [__FAST_MATH__] (ldexp): Remove inline function.
10932 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
10933 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
10934 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
10935 [__USE_ISOC99] (__lrint_code): Remove macro.
10936 [__USE_ISOC99] (__llrint_code): Likewise.
10937 [__USE_ISOC99] (lrintf): Remove inline function.
10938 [__USE_ISOC99] (lrint): Likewise.
10939 [__USE_ISOC99] (lrintl): Likewise.
10940 [__USE_ISOC99] (llrint): Likewise.
10941 [__USE_ISOC99] (llrintf): Likewise.
10942 [__USE_ISOC99] (llrintl): Likewise.
10943
10944 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10945
10946 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
10947 (__ieee754_sqrtf): Remove.
10948 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
10949 (__ieee754_sqrtf): Remove.
10950 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
10951 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
10952 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
10953 (__ieee754_sqrtf): Remove.
10954 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
10955 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
10956 (sqrtf): Remove.
10957 (sqrtl): Remove.
10958 (__ieee754_sqrt): Remove.
10959 (__ieee754_sqrtf): Remove.
10960 (__ieee754_sqrtl): Remove.
10961 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
10962 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
10963 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
10964 (__ieee754_sqrtf): Remove.
10965 (__ieee754_sqrtl): Remove.
10966
10967 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10968
10969 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
10970 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
10971 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10972 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
10973 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
10974 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10975 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10976 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
10977 Likewise.
10978 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
10979 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
10980 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10981 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10982 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
10983 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
10984 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
10985 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10986 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10987 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
10988 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
10989 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10990 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
10991 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
10992 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
10993 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
10994 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10995 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10996 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
10997 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
10998 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
10999 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
11000 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
11001 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
11002 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
11003 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
11004 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11005 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11006 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
11007 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
11008 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11009 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
11010 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11011 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
11012 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11013 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11014 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
11015 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
11016 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11017 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
11018
11019 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
11020
11021 * include/math.h (sqrt): Declare with asm redirect.
11022 (sqrtf): Likewise.
11023 (sqrtl): Likewise.
11024 (sqrtf128): Likewise.
11025 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
11026 nonlib and libnldbl with -fmath-errno.
11027 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
11028 * math/w_sqrt_template.c: Likewise.
11029 * math/w_sqrtf_compat.c: Likewise.
11030 * math/w_sqrtl_compat.c: Likewise.
11031 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
11032 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
11033 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
11034 complex.h.
11035
11036 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
11037
11038 * benchtests/Makefile: Define _ISOMAC.
11039 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
11040 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
11041 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
11042 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
11043 * benchtests/bench-timing.h: Define attribute_hidden.
11044
11045 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
11046
11047 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
11048 mov + lsr.
11049
11050 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
11051
11052 [BZ #22963]
11053 * localedata/locales/cs_CZ (mon): Rename to...
11054 (alt_mon): This.
11055 (mon): Import from CLDR (genitive case).
11056
11057 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
11058
11059 [BZ #22937]
11060 * localedata/locales/el_CY (abmon): Rename to...
11061 (ab_alt_mon): This.
11062 (abmon): Import from CLDR (abbreviated genitive case).
11063 * localedata/locales/el_GR (abmon): Rename to...
11064 (ab_alt_mon): This.
11065 (abmon): Import from CLDR (abbreviated genitive case).
11066
11067 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
11068
11069 [BZ #22932]
11070 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
11071
11072 2018-03-15 Robert Buj <robert.buj@gmail.com>
11073
11074 [BZ #22848]
11075 * localedata/locales/ca_ES (abmon): Rename to...
11076 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
11077 (mon): Rename to...
11078 (alt_mon): This.
11079 (abmon): Import from CLDR (genitive case, month names preceded by
11080 "de" or "d’").
11081 (mon): Likewise.
11082 (abday): Synchronize with CLDR.
11083 (d_t_fmt): Likewise.
11084 (d_fmt): Likewise.
11085 (am_pm): Likewise.
11086
11087 (LC_TIME): Improve indentation.
11088 (LC_TELEPHONE): Likewise.
11089 (LC_NAME): Likewise.
11090 (LC_ADDRESS): Likewise.
11091
11092 2018-03-14 Joseph Myers <joseph@codesourcery.com>
11093
11094 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
11095 (lrintf): Remove definitions used only with old GCC.
11096 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
11097 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
11098 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
11099 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
11100 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
11101 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
11102 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
11103 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
11104 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
11105 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
11106 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
11107 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
11108 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
11109 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
11110 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
11111 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
11112 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
11113 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
11114 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
11115 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
11116 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
11117 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
11118 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
11119 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
11120 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
11121 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
11122 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
11123 [__FAST_MATH__] (__M_SQRT2): Remove macro.
11124
11125 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
11126
11127 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
11128 instruction to unbreak builds with binutils 2.26 and older.
11129
11130 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
11131
11132 * sysdeps/aarch64/strncmp.S (count): New macro.
11133 (strncmp): Store misaligned length in SRC1 in COUNT.
11134 (mutual_align): Adjust.
11135 (misaligned8): Load dword at a time when it is safe.
11136
11137 2018-03-12 Zack Weinberg <zackw@panix.com>
11138
11139 [BZ #1190]
11140 [BZ #19476]
11141 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
11142 if the _IO_EOF_SEEN bit is already set; update commentary.
11143 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
11144 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
11145
11146 * support/support_openpty.c, support/tty.h: New files.
11147 * support/Makefile (libsupport-routines): Add support_openpty.
11148
11149 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
11150 New test cases.
11151 * libio/Makefile (tests): Add tst-fgetc-after-eof.
11152 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
11153
11154 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
11155
11156 * po/pt_BR.po: Update translations.
11157
11158 2018-03-12 David Michael <fedora.dm0@gmail.com>
11159
11160 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
11161 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
11162 get a port to the startup server.
11163
11164 2018-03-11 Zack Weinberg <zackw@panix.com>
11165
11166 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
11167 before nldbl-compat.h.
11168
11169 2018-03-10 Zack Weinberg <zackw@panix.com>
11170
11171 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
11172 math.h or math_private.h.
11173
11174 * sysdeps/alpha/fpu/s_isnan.c
11175 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
11176 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
11177 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
11178 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
11179 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
11180 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
11181 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
11182 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
11183 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
11184 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
11185 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
11186 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
11187 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
11188 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
11189 Include math_private.h.
11190
11191 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
11192 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
11193 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
11194 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
11195 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
11196 * sysdeps/powerpc/power7/fpu/s_logb.c:
11197 Include math.h and math_private.h.
11198
11199 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
11200 uses of $at in .set noat / .set at.
11201
11202 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
11203
11204 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
11205 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
11206 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
11207 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
11208 Likewise.
11209
11210 2018-03-09 Florian Weimer <fweimer@redhat.com>
11211
11212 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
11213 in comment.
11214
11215 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
11216
11217 [BZ #22919]
11218 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
11219 Add nop before __startcontext, add explaining comments.
11220
11221 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11222
11223 [BZ #22926]
11224 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
11225 empty for __SPE__.
11226 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
11227 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
11228 Do not build hardware transactional code for __SPE__.
11229 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
11230 (__lll_trylock_elision): Likewise.
11231 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
11232 (__lll_unlock_elision): Likewise.
11233
11234 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
11235 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
11236 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
11237 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
11238 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
11239 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
11240 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
11241 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
11242 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
11243 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
11244 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
11245 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
11246 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
11247 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
11248 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
11249 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
11250 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
11251 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
11252 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
11253 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
11254 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
11255 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11256 (__ASSUME_CLONE_BACKWARDS): Define.
11257 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
11258 __clone2 if __NR_clone2 is defined.
11259 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11260 (__ASSUME_CLONE_BACKWARDS): Likewise.
11261 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11262 (__ASSUME_CLONE_BACKWARDS): Likewise.
11263 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11264 (__ASSUME_CLONE2): Likewise.
11265 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11266 (__ASSUME_CLONE_BACKWARDS3): Likewise.
11267 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
11268 variants and the define architecture can use.
11269 (__ASSUME_CLONE_DEFAULT): Define as default.
11270 * sysdeps/unix/sysv/linux/mips/kernel-features.h
11271 (__ASSUME_CLONE_BACKWARDS): Likewise.
11272 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11273 (__ASSUME_CLONE_BACKWARDS): Likewise.
11274 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11275 (__ASSUME_CLONE_BACKWARDS2): Likewise.
11276
11277 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
11278
11279 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
11280
11281 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
11282 time.
11283
11284 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
11285 (do_test_limit): Likewise.
11286
11287 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
11288 for every implementation.
11289 (do_test): Likewise.
11290
11291 * benchtests/bench-strncmp.c: Convert output to json.
11292
11293 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
11294
11295 * io/futimens.c: Add missing start-of-file descriptive comment.
11296 * io/utime.c: Likewise.
11297 * misc/futimesat.c: Likewise.
11298 * misc/utimes.c: Likewise.
11299 * sysdeps/mach/hurd/futimesat.c: Likewise.
11300 * sysdeps/mach/hurd/utimes.c: Likewise.
11301 * sysdeps/posix/utime.c: Likewise.
11302 * sysdeps/posix/utimes.c: Likewise.
11303 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
11304 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
11305 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
11306 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
11307
11308 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11309
11310 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
11311 hurd_futimes.
11312 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
11313 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
11314 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
11315 (__futimens): Move implementation to...
11316 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
11317 utime_tvalue_from_tspec): ... new helper functions.
11318 (hurd_futimens): New function.
11319 * sysdeps/mach/hurd/futimesat.c: New file.
11320 * sysdeps/mach/hurd/utimensat.c: New file.
11321
11322 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
11323
11324 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
11325 UTIME_OMIT): New macros.
11326 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
11327 before reverting to converting time spec to time value and calling
11328 __file_utimes.
11329 * sysdeps/mach/hurd/utime-helper.c: New file.
11330 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
11331 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
11332 reverting to utime_tvalue_from_tval and __file_utimes.
11333 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
11334 (__lutimes): Just call hurd_futimens after lookup.
11335 * sysdeps/mach/hurd/utimes.c: Likewise.
11336
11337 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11338
11339 * bits/sigaction.h: Add include guard.
11340 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
11341 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
11342 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
11343 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
11344 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
11345 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
11346 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
11347 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
11348 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
11349
11350 2018-03-05 Joseph Myers <joseph@codesourcery.com>
11351
11352 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
11353 -Wmaybe-uninitialized for -Os.
11354 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
11355 this disabling.
11356
11357 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11358
11359 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
11360 __INO_T_MATCHES_INO64_T is defined.
11361 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
11362 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
11363 of definition.
11364 * dirent/alphasort64.c: Likewise.
11365 * dirent/scandir.c: Likewise.
11366 * dirent/scandir64-tail.c: Likewise.
11367 * dirent/scandir64.c: Likewise.
11368 * dirent/scandirat.c: Likewise.
11369 * dirent/scandirat64.c: Likewise.
11370 * dirent/versionsort.c: Likewise.
11371 * dirent/versionsort64.c: Likewise.
11372 * include/dirent.h: Likewise.
11373
11374 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
11375 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
11376 for socketpair endpoint.
11377 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
11378 WRITE_BUFFER_SIZE as buffer size for sending socket.
11379 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
11380 issue on system where send is implemented with sendto syscall.
11381 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
11382 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
11383 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
11384 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
11385
11386 [BZ #21269]
11387 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
11388 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
11389 sa_restorer for vDSO case.
11390 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
11391
11392 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11393
11394 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
11395 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
11396 * hurd/hurd/ioctl.h: Include <mach/port.h>
11397 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
11398 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
11399 <mach/mach_types.h> and <mach/message.h>.
11400 (headers): Move mach/param.h to bits/mach/param.h.
11401 * sysdeps/mach/i386/mach/param.h: Move file to ...
11402 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
11403 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
11404 of <mach/param.h>.
11405 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
11406 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
11407 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
11408 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
11409 trivial, for C++ conformity.
11410 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
11411 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
11412 Process mig output through $(migheadersed).
11413 * hurd/Makefile (migheadersed): Define variable.
11414 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
11415 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
11416 headers.
11417 * hurd/hurd.h: Include <bits/types/sigset_t.h>
11418 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
11419 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
11420 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
11421 <bits/types/sigset_t.h>.
11422 [!defined __USE_GNU]: Do not #error out.
11423 (struct hurd_sigstate): Use _NSIG instead of NSIG.
11424 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
11425 Include <stddef.h> and <bits/types/sigset_t.h>
11426 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
11427 instead of sighandler_t.
11428 * stdlib/errno.h (error_t): Move definition to...
11429 * bits/types/error_t.h: ... new header.
11430 * stdlib/Makefile (headers): Add bits/types/error_t.h.
11431 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
11432 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
11433 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
11434 * hurd/hurd.h: Include <bits/types/error_t.h>
11435 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
11436 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
11437 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
11438 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
11439 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
11440 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
11441 * sysdeps/mach/hurd/futimens.c: New file.
11442
11443 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
11444
11445 [BZ #22918]
11446 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
11447 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
11448 * nscd/gai.c (__nss_hosts_database): Readd definition.
11449 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
11450 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
11451 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
11452
11453 2018-03-02 Joseph Myers <joseph@codesourcery.com>
11454
11455 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
11456 (ifunc_one): Likewise.
11457
11458 2018-03-01 DJ Delorie <dj@delorie.com>
11459
11460 [BZ #22342]
11461 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
11462 key value.
11463
11464 2018-03-01 Maciej W. Rozycki <macro@mips.com>
11465
11466 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
11467 `match_pid' parameter.
11468 (td_ta_thr_iter): Update accordingly.
11469
11470 2018-03-01 Florian Weimer <fweimer@redhat.com>
11471
11472 * nptl/Makefile (install-lib-ldscripts): Remove.
11473 (install): Remove rule.
11474 ($(inst_libdir)/libpthread.so): Likewise.
11475
11476 2018-03-01 Mike FABIAN <mfabian@redhat.com>
11477
11478 [BZ #22896]
11479 * localedata/locales/an_ES: update month and day names,
11480 improve d_fmt, improve postal_fmt, add country_post,
11481 add country_isbn
11482
11483 2018-03-01 Mike FABIAN <mfabian@redhat.com>
11484
11485 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
11486 Ukrainian instead of Bulgarian.
11487
11488 2018-03-01 Florian Weimer <fweimer@redhat.com>
11489
11490 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
11491 reference.
11492
11493 2018-03-01 Florian Weimer <fweimer@redhat.com>
11494
11495 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
11496 * nptl/Makefile (routines): Add pthread_atfork.
11497 (static-only-routines): Set to pthread_atfork.
11498 (libpthread-routines): Remove pthread_atfork.
11499 (libpthread-static-only-routines): Remove.
11500 (install): Update comment.
11501 (libpthread.so): Do not install libpthread_nonshared.a.
11502 (tests): Do not link with libpthread_nonshared.a.
11503 (generated): Remove libpthread_nonshared.a.
11504 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
11505 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
11506 with libpthread_nonshared.a.
11507
11508 2018-02-28 Joseph Myers <joseph@codesourcery.com>
11509
11510 [BZ #22902]
11511 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
11512 (libc_feholdexcept_setroundf128): New macro.
11513 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
11514
11515 [BZ #15105]
11516 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
11517 libc_hidden_def.
11518 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
11519 * include/inttypes.h: New file.
11520
11521 2018-02-27 Joseph Myers <joseph@codesourcery.com>
11522
11523 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
11524 -Os in two more places.
11525
11526 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11527
11528 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
11529 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
11530 be sorted correctly at the moment because of a bug.
11531
11532 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11533
11534 [BZ #22550] - es_ES locale (and other es_* locales): collation should
11535 treat ñ as a primary different character, sync the collation
11536 for Spanish with CLDR.
11537 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
11538 * localedata/Makefile: Add new test files.
11539 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
11540 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
11541 collation order.
11542 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
11543 * localedata/am_ET.UTF-8.in: New test file.
11544 * localedata/az_AZ.UTF-8.in: Likewise.
11545 * localedata/be_BY.UTF-8.in: Likewise.
11546 * localedata/ber_DZ.UTF-8.in: Likewise.
11547 * localedata/ber_MA.UTF-8.in: Likewise.
11548 * localedata/bg_BG.UTF-8.in: Likewise.
11549 * localedata/br_FR.UTF-8.in: Likewise.
11550 * localedata/cmn_TW.UTF-8.in: Likewise.
11551 * localedata/crh_UA.UTF-8.in: Likewise.
11552 * localedata/csb_PL.UTF-8.in: Likewise.
11553 * localedata/cv_RU.UTF-8.in: Likewise.
11554 * localedata/cy_GB.UTF-8.in: Likewise.
11555 * localedata/dz_BT.UTF-8.in: Likewise.
11556 * localedata/eo.UTF-8.in: Likewise.
11557 * localedata/es_ES.UTF-8.in: Likewise.
11558 * localedata/fa_IR.UTF-8.in: Likewise.
11559 * localedata/fi_FI.UTF-8.in: Likewise.
11560 * localedata/fil_PH.UTF-8.in: Likewise.
11561 * localedata/fur_IT.UTF-8.in: Likewise.
11562 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
11563 * localedata/ha_NG.UTF-8.in: Likewise.
11564 * localedata/ig_NG.UTF-8.in: Likewise.
11565 * localedata/ik_CA.UTF-8.in: Likewise.
11566 * localedata/kk_KZ.UTF-8.in: Likewise.
11567 * localedata/ku_TR.UTF-8.in: Likewise.
11568 * localedata/ky_KG.UTF-8.in: Likewise.
11569 * localedata/ln_CD.UTF-8.in: Likewise.
11570 * localedata/mi_NZ.UTF-8.in: Likewise.
11571 * localedata/ml_IN.UTF-8.in: Likewise.
11572 * localedata/mn_MN.UTF-8.in: Likewise.
11573 * localedata/mr_IN.UTF-8.in: Likewise.
11574 * localedata/mt_MT.UTF-8.in: Likewise.
11575 * localedata/nb_NO.UTF-8.in: Likewise.
11576 * localedata/om_KE.UTF-8.in: Likewise.
11577 * localedata/os_RU.UTF-8.in: Likewise.
11578 * localedata/ps_AF.UTF-8.in: Likewise.
11579 * localedata/ro_RO.UTF-8.in: Likewise.
11580 * localedata/ru_RU.UTF-8.in: Likewise.
11581 * localedata/sc_IT.UTF-8.in: Likewise.
11582 * localedata/se_NO.UTF-8.in: Likewise.
11583 * localedata/sq_AL.UTF-8.in: Likewise.
11584 * localedata/sv_SE.UTF-8.in: Likewise.
11585 * localedata/szl_PL.UTF-8.in: Likewise.
11586 * localedata/tg_TJ.UTF-8.in: Likewise.
11587 * localedata/tk_TM.UTF-8.in: Likewise.
11588 * localedata/tt_RU.UTF-8.in: Likewise.
11589 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
11590 * localedata/ug_CN.UTF-8.in: Likewise.
11591 * localedata/uz_UZ.UTF-8.in: Likewise.
11592 * localedata/vi_VN.UTF-8.in: Likewise.
11593 * localedata/yi_US.UTF-8.in: Likewise.
11594 * localedata/yo_NG.UTF-8.in: Likewise.
11595 * localedata/zh_CN.UTF-8.in: Likewise.
11596 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
11597 file and fix bugs in the collation.
11598 * localedata/locales/az_AZ: Likewise.
11599 * localedata/locales/be_BY: Likewise.
11600 * localedata/locales/ber_DZ: Likewise.
11601 * localedata/locales/ber_MA: Likewise.
11602 * localedata/locales/bg_BG: Likewise.
11603 * localedata/locales/br_FR: Likewise.
11604 * localedata/locales/br_FR@euro: Likewise.
11605 * localedata/locales/ca_ES: Likewise.
11606 * localedata/locales/cns11643_stroke: Likewise.
11607 * localedata/locales/crh_UA: Likewise.
11608 * localedata/locales/cs_CZ: Likewise.
11609 * localedata/locales/csb_PL: Likewise.
11610 * localedata/locales/cv_RU: Likewise.
11611 * localedata/locales/cy_GB: Likewise.
11612 * localedata/locales/da_DK: Likewise.
11613 * localedata/locales/dz_BT: Likewise.
11614 * localedata/locales/en_CA: Likewise.
11615 * localedata/locales/eo: Likewise.
11616 * localedata/locales/es_CU: Likewise.
11617 * localedata/locales/es_EC: Likewise.
11618 * localedata/locales/es_ES: Likewise.
11619 * localedata/locales/es_US: Likewise.
11620 * localedata/locales/et_EE: Likewise.
11621 * localedata/locales/fa_IR: Likewise.
11622 * localedata/locales/fi_FI: Likewise.
11623 * localedata/locales/fil_PH: Likewise.
11624 * localedata/locales/fur_IT: Likewise.
11625 * localedata/locales/gez_ER@abegede: Likewise.
11626 * localedata/locales/ha_NG: Likewise.
11627 * localedata/locales/hr_HR: Likewise.
11628 * localedata/locales/hsb_DE: Likewise.
11629 * localedata/locales/hu_HU: Likewise.
11630 * localedata/locales/ig_NG: Likewise.
11631 * localedata/locales/ik_CA: Likewise.
11632 * localedata/locales/is_IS: Likewise.
11633 * localedata/locales/iso14651_t1_pinyin: Likewise.
11634 * localedata/locales/kk_KZ: Likewise.
11635 * localedata/locales/ku_TR: Likewise.
11636 * localedata/locales/ky_KG: Likewise.
11637 * localedata/locales/ln_CD: Likewise.
11638 * localedata/locales/lt_LT: Likewise.
11639 * localedata/locales/lv_LV: Likewise.
11640 * localedata/locales/mi_NZ: Likewise.
11641 * localedata/locales/ml_IN: Likewise.
11642 * localedata/locales/mn_MN: Likewise.
11643 * localedata/locales/mr_IN: Likewise.
11644 * localedata/locales/mt_MT: Likewise.
11645 * localedata/locales/nb_NO: Likewise.
11646 * localedata/locales/om_KE: Likewise.
11647 * localedata/locales/os_RU: Likewise.
11648 * localedata/locales/pl_PL: Likewise.
11649 * localedata/locales/ps_AF: Likewise.
11650 * localedata/locales/ro_RO: Likewise.
11651 * localedata/locales/ru_RU: Likewise.
11652 * localedata/locales/ru_UA: Likewise.
11653 * localedata/locales/sc_IT: Likewise.
11654 * localedata/locales/se_NO: Likewise.
11655 * localedata/locales/si_LK: Likewise.
11656 * localedata/locales/sq_AL: Likewise.
11657 * localedata/locales/sv_FI: Likewise.
11658 * localedata/locales/sv_FI@euro: Likewise.
11659 * localedata/locales/sv_SE: Likewise.
11660 * localedata/locales/szl_PL: Likewise.
11661 * localedata/locales/tg_TJ: Likewise.
11662 * localedata/locales/ti_ER: Likewise.
11663 * localedata/locales/tk_TM: Likewise.
11664 * localedata/locales/tl_PH: Likewise.
11665 * localedata/locales/tr_TR: Likewise.
11666 * localedata/locales/tt_RU: Likewise.
11667 * localedata/locales/tt_RU@iqtelif: Likewise.
11668 * localedata/locales/ug_CN: Likewise.
11669 * localedata/locales/uk_UA: Likewise.
11670 * localedata/locales/uz_UZ: Likewise.
11671 * localedata/locales/uz_UZ@cyrillic: Likewise.
11672 * localedata/locales/vi_VN: Likewise.
11673 * localedata/locales/yi_US: Likewise.
11674 * localedata/locales/yo_NG: Likewise.
11675
11676 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11677
11678 * gen-locales.mk: Make test files which contain @ modifiers in their
11679 name work.
11680 * localedata/gen-locale.sh: Likewise.
11681
11682 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11683
11684 * posix/tst-fnmatch.input: Fix results for range expressions
11685 for non C locales.
11686 * posix/tst-regexloc.c: Do not use a range expression for
11687 de_DE.ISO-8859-1 locale.
11688
11689 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11690
11691 * posix/bug-regex5.c: Fix test case because with the new
11692 iso14651_t1_common file, the da_DK locale now has 6 collating elements
11693 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
11694 file.
11695
11696 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11697
11698 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
11699 downloaded from ISO, the collation order of @-. and space has changed.
11700 Therefore, this test file needed to be adapted.
11701 * localedata/fr_CA.UTF-8.in: Likewise.
11702 * localedata/fr_FR.UTF-8.in: Likewise.
11703 * localedata/uk_UA.UTF-8.in: Likewise.
11704
11705 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11706
11707 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
11708 order of ȥ in the new iso14651_t1_common file.
11709 * localedata/pl_PL.UTF-8.in: Likewise.
11710
11711 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11712
11713 * localedata/locales/iso14651_t1_common: Add sections for various
11714 scripts to the iso14651_t1_common file.
11715
11716 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11717
11718 * localedata/locales/iso14651_t1_common: Use the code point of a
11719 character in the fourth collation level instead of IGNORE for all
11720 entries which have IGNORE on all 4 levels.
11721
11722 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11723
11724 * localedata/locales/iso14651_t1_common: Add some convenient collation
11725 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
11726 rules similar to those in CLDR.
11727
11728 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11729
11730 * localedata/locales/iso14651_t1_common: The new version of this
11731 file downloaded from ISO contained several syntax errors which
11732 are fixed by this patch.
11733
11734 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11735
11736 * localedata/locales/iso14651_t1_common: replace all <U.....>
11737 with <U000.....> because glibc understands only 4 digit or 8 digit
11738
11739 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11740
11741 * localedata/locales/iso14651_t1_common: Necessary changes
11742 to make the file downloaded from ISO usable by glibc.
11743
11744 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11745
11746 [BZ #14095]
11747 * localedata/locales/iso14651_t1_common: Update file to
11748 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
11749
11750 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11751
11752 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
11753 of <nptl/pthreadP.h>
11754 (thread_attr_compare): Move function to...
11755 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
11756 * sysdeps/nptl/timer_routines.h: ... new header.
11757 * sysdeps/mach/hurd/gai_misc.h: New file.
11758
11759 2018-02-26 Joseph Myers <joseph@codesourcery.com>
11760
11761 * string/strcoll_l.c: Include <libc-diag.h>.
11762 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
11763 declarations of seq1 and seq2.
11764
11765 [BZ #15105]
11766 * stdlib/atoi.c (atoi): Use libc_hidden_def.
11767 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
11768
11769 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
11770
11771 [BZ #22433]
11772 [BZ #22807]
11773 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
11774 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
11775 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
11776 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
11777 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
11778 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
11779
11780 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11781
11782 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
11783 macros used in __ptrace_request.
11784
11785 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
11786
11787 [BZ #22792]
11788 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
11789 to $(CC).
11790 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
11791 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
11792 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
11793 <tcb-offsets.h>.
11794
11795 2018-02-23 Joseph Myers <joseph@codesourcery.com>
11796
11797 [BZ #15105]
11798 * ctype/ctype.c (tolower): Use libc_hidden_def.
11799 (toupper): Likewise.
11800 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
11801 [!_ISOMAC] (toupper): Likewise.
11802
11803 2018-02-23 Mike FABIAN <mfabian@redhat.com>
11804
11805 * localedata/Makefile: Remove --quiet argument when
11806 installing locales
11807
11808 2018-02-23 Mike FABIAN <mfabian@redhat.com>
11809
11810 [BZ #17438]
11811 * localedata/locales/pt_BR (LC_TIME): use / instead of -
11812 in d_fmt.
11813 * localedata/locales/pt_PT (LC_TIME): likewise
11814
11815 2018-02-23 Mike FABIAN <mfabian@redhat.com>
11816
11817 [BZ #22646]
11818 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
11819 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
11820 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
11821
11822 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11823
11824 * sysdeps/sparc/fpu/libm-test-ulps: Update.
11825
11826 * nptl/Makefile (routines): Remove unregister-atfork.
11827 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
11828 (fork_handler_alloc): Remove function.
11829 (fork_handlers, fork_handler_init): New variables.
11830 (__fork_lock): Rename to atfork_lock.
11831 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
11832 to use a dynamic array to add/remove atfork handlers.
11833 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
11834 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
11835 Remove declaration.
11836 (fork_handler): Remove next, refcntr, and need_signal member.
11837 (__run_fork_handler_type): New enum.
11838 (__run_fork_handlers): New prototype.
11839 * nptl/register-atfork.c: Remove file.
11840 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
11841
11842 * sysdeps/nptl/nptl-signals.h: Move to ...
11843 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
11844 comments.
11845 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
11846 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
11847 unnecessary check for SIGTIMER.
11848 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
11849 remove unnecessary removal of SIGTIMER.
11850 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
11851 include-signals.h rename.
11852 * nptl/pthreadP.h: Likewise.
11853 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
11854 __is_internal_signal instead of __nptl_is_internal_signal.
11855
11856 2018-02-22 Andrew Waterman <andrew@sifive.com>
11857
11858 [BZ # 22884]
11859 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
11860 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
11861 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
11862 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
11863
11864 2018-02-22 DJ Delorie <dj@delorie.com>
11865
11866 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
11867
11868 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
11869
11870 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
11871 do_misaligned, not misaligned8.
11872
11873 2018-02-22 Steve Ellcey <sellcey@cavium.com>
11874
11875 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
11876 Add memcpy_thunderx2.
11877 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
11878 Increment to 4.
11879 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
11880 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
11881 and IS_THUNDERX2PA checks.
11882 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
11883 Use macro to set name appropriately.
11884 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
11885 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
11886 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
11887 New macro.
11888 (IS_THUNDERX2): New macro.
11889
11890 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
11891
11892 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11893
11894 2018-02-21 Zack Weinberg <zackw@panix.com>
11895
11896 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
11897 Define here, unconditionally.
11898 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
11899 * libio/libioP.h: Remove #if 0 blocks.
11900 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
11901 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
11902 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
11903
11904 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
11905 Assume weak_alias is always defined.
11906
11907 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
11908 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
11909 Remove #if 0 and #ifdef TODO blocks.
11910 Assume text_set_element is always defined.
11911
11912 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
11913 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
11914 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
11915
11916 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
11917 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
11918 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
11919 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
11920 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
11921 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
11922 Reformat bit flags for _flags field to make occupancy clearer.
11923 Update commentary.
11924 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
11925 Keep definitions consistent with those in libio/libio.h.
11926
11927 * libio/libio.h (_IO_file_flags): Remove macro.
11928 All uses changed to _flags.
11929
11930 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
11931 (__HAVE_COLUMN, _IO_BE): Don't define.
11932 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
11933 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
11934 * libio/libioP.h (EOF): Don't define.
11935 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
11936 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
11937 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
11938 testing _IO_UNIFIED_JUMPTABLES.
11939
11940 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
11941 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
11942 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
11943 (_IO_size_t): Delete; all uses changed to size_t.
11944 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
11945 (_IO_off_t): Delete; all uses changed to off_t.
11946 (_IO_off64_t): Delete; all uses changed to off64_t.
11947 (_IO_pid_t): Delete; all uses changed to pid_t.
11948 (_IO_uid_t): Delete; all uses changed to uid_t.
11949 (_IO_wint_t): Delete; all uses changed to wint_t.
11950 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
11951 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
11952 (_IO_cookie_io_functions_t): Delete; all uses changed to
11953 cookie_io_functions_t.
11954 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
11955 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
11956 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
11957 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
11958
11959 * libio/iofopncook.c: Remove unnecessary forward declarations.
11960 * libio/iolibio.h: Correct outdated commentary.
11961 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
11962 * stdio-common/fxprintf.c (__fxprintf_nocancel):
11963 Remove unnecessary casts.
11964 * stdio-common/getline.c: Use _IO_getdelim directly.
11965 Don't redefine ssize_t.
11966 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
11967 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
11968 Remove outdated comments.
11969 * stdio-common/vfscanf.c: Don't redefine va_list.
11970
11971 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
11972 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
11973 Remove preprocessor conditionals on _LIBC and __USE_GNU,
11974 which are always true, and __cplusplus, which is always false.
11975
11976 2018-02-21 Joseph Myers <joseph@codesourcery.com>
11977
11978 [BZ #15105]
11979 [BZ #19463]
11980 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
11981 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
11982 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
11983 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
11984 libc_hidden_proto.
11985 [!_ISOMAC] (putc_unlocked): Likewise.
11986 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
11987 define inline if [__USE_EXTERN_INLINES].
11988 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
11989 putc_unlocked.
11990
11991 [BZ #15105]
11992 [BZ #19463]
11993 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
11994 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
11995 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
11996 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
11997 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
11998 getc_unlocked.
11999 * time/tzfile.c (__tzfile_read): Likewise.
12000
12001 2018-02-21 Mike FABIAN <mfabian@redhat.com>
12002
12003 [BZ #22517]
12004 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
12005
12006 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
12007
12008 * io/fcntl.h: Fix a typo in a comment.
12009
12010 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
12011
12012 [BZ #22862]
12013 * include/features.h: Add _ISOC11_SOURCE to test for whether to
12014 define _DEFAULT_SOURCE.
12015 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
12016
12017 2018-02-21 Florian Weimer <fweimer@redhat.com>
12018
12019 [BZ #20890]
12020 * elf/cache.c (save_cache): Call fsync on temporary file before
12021 renaming it.
12022 (save_aux_cache): Call fdatasync on temporary file before renaming
12023 it.
12024
12025 2018-02-21 Florian Weimer <fweimer@redhat.com>
12026
12027 [BZ #22787]
12028 * include/caller.h: Remove file.
12029 * elf/dl-caller.c: Likewise.
12030 * elf/Makefile (dl-routines): Remove dl-caller.
12031 (shared-only-routines): Do not add dl-caller.
12032 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
12033 __check_caller.
12034 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
12035 member.
12036 (dl_open_worker): Do not call __check_caller.
12037 (_dl_open): Do not set caller_dl_open member.
12038 * elf/rtld.c (_rtld_global_ro): Do not initialize
12039 _dl_check_caller member.
12040 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
12041 _dl_check_caller member.
12042 (_dl_check_caller): Remove declaration.
12043 * sysdeps/unix/sysv/linux/dl-execstack.c
12044 (_dl_make_stack_executable): Do not call __check_caller.
12045
12046 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
12047
12048 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
12049 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
12050
12051 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
12052
12053 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
12054 description.
12055
12056 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
12057
12058 [BZ #16335]
12059 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
12060 of 199606L, 200112L, and 200809L.
12061 (_XOPEN_SOURCE): Document special values of 600 and 700.
12062 (_ISOC11_SOURCE): Document macro.
12063 (_ATFILE_SOURCE): Likewise.
12064 (_FORTIFY_SOURCE): Likewise.
12065
12066 2018-02-19 Joseph Myers <joseph@codesourcery.com>
12067
12068 [BZ #15105]
12069 [BZ #19463]
12070 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
12071 and define as weak alias of __ferror_unlocked. Use
12072 libc_hidden_weak.
12073 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
12074 libc_hidden_proto.
12075 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
12076 function if [__USE_EXTERN_INLINES].
12077 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
12078 ferror_unlocked.
12079
12080 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
12081
12082 [BZ #6889]
12083 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
12084
12085 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
12086
12087 [BZ #22818]
12088 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
12089 the GLIBC_2.1 version.
12090
12091 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
12092
12093 [BZ #21508]
12094 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
12095 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
12096 intl/tst-gettext-de.po from po/de.po by removing the
12097 POT-Creation-Date line.
12098 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
12099 ../po/de.po.
12100 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
12101 ../po/de.po.
12102
12103 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
12104
12105 * mach/Makefile (headers): Add mach/param.h.
12106 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
12107 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
12108 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
12109 (__ptsname_r): Move implementation to...
12110 (__ptsname_internal): ... new function. Add filling the STP
12111 structure.
12112
12113 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
12114
12115 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
12116 idouble to 1 ULP.
12117
12118 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
12119
12120 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
12121 syntax.
12122
12123 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
12124
12125 * nptl/Makefile (tst-mutex8-ENV): Delete.
12126 * nptl/tst-mutex8.c (check_type):
12127 Add runtime check if mutex will be elided.
12128
12129 2018-02-15 Joseph Myers <joseph@codesourcery.com>
12130
12131 [BZ #20980]
12132 [BZ #21234]
12133 * manual/install.texi (Configuring and compiling): Describe
12134 passing CC and CFLAGS on configure command line, not as
12135 environment variables. Use @code markup on those variables.
12136 Specify what options go in CC and what go in CFLAGS. Note the
12137 requirement to compile with optimization.
12138 * INSTALL: Regenerated.
12139
12140 [BZ #18124]
12141 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
12142 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
12143 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
12144 __sigprocmask instead of sigprocmask.
12145 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
12146 Likewise.
12147 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
12148 __sigsetjmp and sigprocmask.
12149
12150 [BZ #15105]
12151 * include/argz.h (argz_next): Use libc_hidden_proto.
12152 (__argz_next): Likewise.
12153 * string-argz-next.c (__argz_next): Use libc_hidden_def.
12154 (argz_next): Use libc_hidden_weak.
12155
12156 [BZ #15105]
12157 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
12158 libc_hidden_proto.
12159 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
12160 libc_hidden_def.
12161
12162 [BZ #15105]
12163 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
12164 libc_hidden_proto.
12165 * libio/iofputs.c (fputs): Use libc_hidden_weak.
12166
12167 [BZ #15105]
12168 [BZ #19463]
12169 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
12170 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
12171 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
12172 (__feof_unlocked): New declaration, and inline function if
12173 [__USE_EXTERN_INLINES].
12174 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
12175 instead of feof_unlocked.
12176 * intl/localealias.c [_LIBC] (FEOF): Likewise.
12177 * nss/nsswitch.c (nss_parse_file): Likewise.
12178 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
12179 Likewise.
12180 * time/getdate.c (__getdate_r): Likewise.
12181 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
12182 Define as macro to call __feof_unlocked.
12183
12184 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
12185
12186 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
12187
12188 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
12189
12190 * math/Makefile: Remove mpexp.c and mplog.c
12191 * sysdeps/i386/fpu/mpexp.c: Delete file.
12192 * sysdeps/i386/fpu/mplog.c: Likewise.
12193 * sysdeps/ia64/fpu/mpexp.c: Likewise.
12194 * sysdeps/ia64/fpu/mplog.c: Likewise.
12195 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
12196 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
12197 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
12198 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
12199 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
12200 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
12201 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
12202 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
12203 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
12204 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12205 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
12206 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
12207 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12208 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
12209 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
12210 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12211
12212 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
12213
12214 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12215
12216 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12217
12218 * sysdeps/sh/libm-test-ulps: Update.
12219
12220 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
12221
12222 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
12223 idouble to 1 ULP.
12224
12225 2018-02-12 Zack Weinberg <zackw@panix.com>
12226
12227 [BZ #19239]
12228 * posix/sys/types.h: Don't include sys/sysmacros.h.
12229 * misc/sys/sysmacros.h: Remove the conditional deprecation
12230 warnings for the macros defined by this header.
12231
12232 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12233
12234 * manual/probes.texi: Remove slowexp probes.
12235 * math/Makefile: Remove slowexp.
12236 * sysdeps/generic/math_private.h (__slowexp): Remove.
12237 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
12238 document error bounds.
12239 * sysdeps/i386/fpu/slowexp.c: Remove.
12240 * sysdeps/ia64/fpu/slowexp.c: Remove.
12241 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
12242 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
12243 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
12244 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
12245 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
12246 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
12247 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
12248 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
12249 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
12250 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
12251 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
12252
12253 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
12254
12255 [BZ #13932]
12256 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
12257 * benchtests/pow-inputs: Update comment for slow path cases.
12258 * manual/probes.texi (slowpow_p10): Delete removed probe.
12259 (slowpow_p10): Likewise.
12260 * math/Makefile: Remove halfulp.c and slowpow.c.
12261 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
12262 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
12263 (__halfulp): Remove.
12264 (__slowpow): Remove.
12265 * sysdeps/i386/fpu/halfulp.c: Delete file.
12266 * sysdeps/i386/fpu/slowpow.c: Likewise.
12267 * sysdeps/ia64/fpu/halfulp.c: Likewise.
12268 * sysdeps/ia64/fpu/slowpow.c: Likewise.
12269 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
12270 improve comments and add error analysis.
12271 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
12272 (power1): Remove function:
12273 (log1): Remove error argument, add error analysis.
12274 (my_log2): Remove function.
12275 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
12276 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12277 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
12278 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
12279 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
12280 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
12281 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
12282 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
12283 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
12284 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
12285 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
12286 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12287 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
12288 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12289
12290 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
12291
12292 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
12293 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
12294
12295 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
12296
12297 [BZ #22433]
12298 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
12299 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
12300 and PTRACE_SETHBPREGS.
12301
12302 2018-02-10 Zack Weinberg <zackw@panix.com>
12303
12304 [BZ #22830]
12305 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
12306 correctly.
12307 * malloc/tst-malloc-stats-cancellation.c: New test case.
12308 * malloc/Makefile: Add new test case.
12309
12310 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12311
12312 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
12313
12314 2018-02-10 Joseph Myers <joseph@codesourcery.com>
12315
12316 * math/Makefile (libm-narrow-fns): Add add.
12317 (libm-test-funcs-narrow): Likewise.
12318 * math/Versions (GLIBC_2.28): Add narrowing add functions.
12319 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
12320 * math/gen-auto-libm-tests.c (test_functions): Add add.
12321 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
12322 (NARROW_ADD_ROUND_TO_ODD): Likewise.
12323 (NARROW_ADD_TRIVIAL): Likewise.
12324 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
12325 macro.
12326 (__daddl): Likewise.
12327 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
12328 dadd.
12329 (CFLAGS-nldbl-dadd.c): New variable.
12330 (CFLAGS-nldbl-fadd.c): Likewise.
12331 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12332 __nldbl_daddl.
12333 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
12334 prototype.
12335 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
12336 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
12337 * math/auto-libm-test-in: Add tests of add.
12338 * math/auto-libm-test-out-narrow-add: New generated file.
12339 * math/libm-test-narrow-add.inc: New file.
12340 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12341 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
12342 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
12343 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
12344 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
12345 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
12346 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
12347 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
12348 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
12349 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
12350 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
12351 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
12352 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
12353 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
12354 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
12355 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
12356 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
12357 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
12358 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12359 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
12383 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12386
12387 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
12388 (f128-pairs): New variable.
12389 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
12390 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
12391 to CFLAGS.
12392 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
12393 Also make tests add $(f128-loader-link) to gnulib-tests.
12394
12395 2018-02-09 DJ Delorie <dj@redhat.com>
12396
12397 [BZ #22827]
12398 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
12399 64-bit ELF type for 64-bit ELF objects.
12400
12401 2018-02-09 Joseph Myers <joseph@codesourcery.com>
12402
12403 * math/libm-test-driver.c (snan_tests_arg): New variable.
12404 * math/libm-test-support.h (snan_tests_arg): New declaration.
12405 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
12406
12407 * math/Makefile (test-type-pairs): New variable.
12408 (test-type-pairs-f64xf128-yes): Likewise.
12409 (tests): Add test-narrow-macros.
12410 (libm-test-funcs-narrow): New variable.
12411 (libm-test-c-narrow): Likewise.
12412 (generated): Add $(libm-test-c-narrow).
12413 (libm-tests-base-narrow): New variable.
12414 (libm-tests-narrow): Likewise.
12415 (libm-tests): Add $(libm-tests-narrow).
12416 (libm-tests-for-type): Handle $(libm-tests-narrow).
12417 (libm-test-c-narrow-obj): New variable.
12418 ($(libm-test-c-narrow-obj)): New rule.
12419 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
12420 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
12421 $(o-iterator) to set dependencies and CFLAGS.
12422 * math/gen-auto-libm-tests.c: Document use for narrowing
12423 functions.
12424 (output_for_one_input_case): Take argument NARROW.
12425 (generate_output): Likewise. Update call to
12426 output_for_one_input_case.
12427 (main): Take --narrow option. Update call to generate_output.
12428 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
12429 (apply_lit): Update call to _apply_lit.
12430 (apply_arglit): New function.
12431 (parse_args): Handle "a" arguments.
12432 (parse_auto_input): Handle format names using ":".
12433 * math/README.libm-test: Document "a" parameter type.
12434 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
12435 (ARG_TYPE_TRUE_MIN): Likewise.
12436 (ARG_TYPE_MAX): Likwise.
12437 (ARG_MIN_EXP): Likewise.
12438 (ARG_MAX_EXP): Likewise.
12439 (ARG_MANT_DIG): Likewise.
12440 (TEST_COND_arg_ibm128): Likewise.
12441 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
12442 (TEST_COND_arg_fmt): New macro.
12443 (init_max_error): Update prototype.
12444 * math/libm-test-support.c (test_ibm128): New variable.
12445 (init_max_error): Take argument testing_ibm128 and set test_ibm128
12446 instead of using [TEST_COND_ibm128] conditional.
12447 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
12448 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
12449 [TEST_NARROW] (TEST_MSG): New definition.
12450 (arg_plus_zero): New macro.
12451 (arg_minus_zero): Likewise.
12452 (arg_plus_infty): Likewise.
12453 (arg_minus_infty): Likewise.
12454 (arg_qnan_value_pl): Likewise.
12455 (arg_qnan_value): Likewise.
12456 (arg_snan_value_pl): Likewise.
12457 (arg_snan_value): Likewise.
12458 (arg_max_value): Likewise.
12459 (arg_min_value): Likewise.
12460 (arg_min_subnorm_value): Likewise.
12461 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
12462 (RUN_TEST_LOOP_aa_f): New macro.
12463 (TEST_SUFF): New macro.
12464 (TEST_SUFF_STR): Likewise.
12465 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
12466 (TEST_COND_any_ibm128): New macro.
12467 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
12468 this_func. Update call to init_max_error.
12469 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
12470 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
12471 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
12472 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
12473 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
12474 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
12475 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
12476 * math/test-math-scalar.h (TEST_NARROW): Likewise.
12477 * math/test-math-vector.h (TEST_NARROW): Likewise.
12478 * math/test-arg-double.h: New file.
12479 * math/test-arg-float128.h: Likewise.
12480 * math/test-arg-float32x.h: Likewise.
12481 * math/test-arg-float64.h: Likewise.
12482 * math/test-arg-float64x.h: Likewise.
12483 * math/test-arg-ldouble.h: Likewise.
12484 * math/test-math-narrow.h: Likewise.
12485 * math/test-narrow-macros.c: Likewise.
12486 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
12487 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
12488 test-narrow-macros-ldbl-64.
12489 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
12490
12491 * math/bits/mathcalls-narrow.h: New file.
12492 * include/bits/mathcalls-narrow.h: Likewise.
12493 * math/math-narrow.h: Likewise.
12494 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
12495 (__MATHCALL_NARROW_ARGS_2): Likewise.
12496 (__MATHCALL_NARROW_ARGS_3): Likewise.
12497 (__MATHCALL_NARROW_NORMAL): Likewise.
12498 (__MATHCALL_NARROW_REDIR): Likewise.
12499 (__MATHCALL_NARROW): Likewise.
12500 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
12501 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
12502 defined.
12503 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12504 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
12505 (libm-narrow-fns): New variable.
12506 (libm-narrow-types-basic): Likewise.
12507 (libm-narrow-types-ldouble-yes): Likewise.
12508 (libm-narrow-types-float128-yes): Likewise.
12509 (libm-narrow-types-float128-alias-yes): Likewise.
12510 (libm-narrow-types): Likewise.
12511 (libm-routines): Add narrowing functions.
12512 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
12513 (libc_feholdexcept_setroundf128): New macro.
12514 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
12515 * sysdeps/ieee754/float128/float128_private.h: Include
12516 <math/math-narrow.h>.
12517 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
12518 Undefine and redefine.
12519 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
12520 (libm_alias_float_ldouble): Undefine and redefine.
12521 (libm_alias_double_ldouble): Likewise.
12522
12523 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
12524
12525 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
12526
12527 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
12528 FPCR/FPSR.
12529
12530 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
12531
12532 * manual/creature.texi: Convert references to gcc.info to gcc.
12533 * manual/stdio.texi: Likewise.
12534 * manual/string.texi: Likewise.
12535
12536 2018-02-07 Joseph Myers <joseph@codesourcery.com>
12537
12538 [BZ #17979]
12539 * posix/bits/types.h (__int_least8_t): New typedef.
12540 (__uint_least8_t): Likewise.
12541 (__int_least16_t): Likewise.
12542 (__uint_least16_t): Likewise.
12543 (__int_least32_t): Likewise.
12544 (__uint_least32_t): Likewise.
12545 (__int_least64_t): Likewise.
12546 (__uint_least64_t): Likewise.
12547 * sysdeps/generic/stdint.h (int_least8_t): Define using
12548 __int_least8_t.
12549 (int_least16_t): Define using __int_least16_t.
12550 (int_least32_t): Define using __int_least32_t.
12551 (int_least64_t): Define using __int_least64_t.
12552 (uint_least8_t): Define using __uint_least8_t.
12553 (uint_least16_t): Define using __uint_least16_t.
12554 (uint_least32_t): Define using __uint_least32_t.
12555 (uint_least64_t): Define using __uint_least64_t.
12556 * wcsmbs/uchar.h: Include <bits/types.h>.
12557 (char16_t): Define using __uint_least16_t conditional only on
12558 [!__USE_ISOCXX11].
12559 (char32_t): Define using __uint_least32_t conditional only on
12560 [!__USE_ISOCXX11].
12561 * wcsmbs/test-char-types.c: New file.
12562 * wcsmbs/Makefile (tests): Add test-char-types.
12563
12564 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
12565 version to 4.0.1.
12566
12567 2018-02-07 Zack Weinberg <zackw@panix.com>
12568
12569 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
12570 Delete all contents except for definitions of _G_HAVE_MMAP and
12571 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
12572 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
12573 sysdeps/unix/sysv/linux/_G_config.h. Make same content
12574 change as above.
12575
12576 * libio/libio.h: Don't include bits/_G_config.h here.
12577 Include stddef.h with __need_wchar_t defined. Include
12578 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
12579 Define _IO_iconv_t here, directly.
12580 Don't define _IO_HAVE_ST_BLKSIZE.
12581 * libio/libioP.h: Include _G_config.h here. Move include of
12582 shlib-compat.h up with rest of includes. Simplify conditionals
12583 controlling definition of _IO_JUMPS_OFFSET.
12584
12585 * csu/init.c: Remove always-true #if around entire file.
12586 Don't include stdio.h. Set _IO_stdin_used to hardwired
12587 constant 0x20001, and update commentary.
12588 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
12589 Replace all uses of _G_va_list with __gnuc_va_list.
12590 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
12591 instead of #if _IO_HAVE_ST_BLKSIZE.
12592 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
12593 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
12594 not #ifdef.
12595
12596 * libio/bits/libio.h: Move back to libio/libio.h and adjust
12597 multiple-include guard to match.
12598 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
12599 into this file.
12600 Remove preprocessor conditionals that are always true and/or
12601 redundant to other preprocessor conditionals in the same nest.
12602 Include shlib-compat.h unconditionally.
12603 Error out if _LIBC is not defined, or if _ISOMAC is defined,
12604 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
12605 defined after including stdio.h.
12606 Use __BEGIN_DECLS/__END_DECLS.
12607
12608 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
12609 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
12610 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
12611
12612 2018-02-07 Zack Weinberg <zackw@panix.com>
12613
12614 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
12615 New single-type headers split from _G_config.h.
12616 * libio/bits/types/cookie_io_functions_t.h
12617 * libio/bits/types/struct_FILE.h
12618 New single-type headers split from libio.h.
12619
12620 * libio/Makefile: Install the above new headers. Don't install
12621 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
12622 bits/libio-ldbl.h.
12623 * libio/_G_config.h, libio/libio.h: Delete file.
12624
12625 * libio/bits/libio.h: Remove improper-inclusion guard.
12626 Include stdio.h and don't repeat anything that it does.
12627 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
12628 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
12629 __io_read_fn as cookie_read_function_t,
12630 __io_write_fn as cookie_write_function_t,
12631 __io_seek_fn as cookie_seek_function_t,
12632 __io_close_fn as cookie_close_function_t,
12633 and _IO_cookie_io_functions_t as cookie_io_functions_t.
12634 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
12635 here, in the "compatibility defines" section. Remove an #if 0
12636 block. Use the "body" macros from bits/types/struct_FILE.h to
12637 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
12638 and _IO_ferror_unlocked.
12639 Move prototypes of __uflow and __overflow...
12640
12641 * libio/stdio.h: ...here. Don't include bits/libio.h.
12642 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
12643 directly from stdarg.h. Include bits/types/__fpos_t.h,
12644 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
12645 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
12646 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
12647 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
12648 cookie_io_functions_t, not _IO_cookie_io_functions_t;
12649 __ssize_t, not _IO_ssize_t. Unconditionally define
12650 BUFSIZ as 8192 and EOF as (-1).
12651
12652 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
12653 macros from bits/types/struct_FILE.h instead of _IO_* macros
12654 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
12655 instead of _IO_ssize_t.
12656 * libio/bits/stdio2.h: Similarly.
12657
12658 * libio/iolibio.h: Add multiple-include guard.
12659 Include bits/libio.h after stdio.h.
12660 * libio/libioP.h: Add multiple-include guard.
12661 Include stdio.h and bits/libio.h before iolibio.h.
12662
12663 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
12664 * include/bits/types/cookie_io_functions_t.h
12665 * include/bits/types/struct_FILE.h: New wrappers.
12666
12667 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
12668 Get definitions of _G_fpos_t and _G_fpos64_t from
12669 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
12670 respectively. Remove improper-inclusion guards.
12671
12672 * conform/data/stdio.h-data: Update expectations of va_list.
12673 * scripts/check-installed-headers.sh: Remove special case for
12674 libio.h and _G_config.h.
12675
12676 2018-02-07 Joseph Myers <joseph@codesourcery.com>
12677
12678 [BZ #15105]
12679 [BZ #19463]
12680 * include/sys/sysmacros.h [!_ISOMAC]
12681 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
12682 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
12683 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
12684 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
12685 libc_hidden_proto.
12686 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
12687 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
12688 Likewise.
12689 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
12690 Undefine and redefine to add use __gnu_dev_ prefix.
12691 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
12692 Likewise.
12693 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
12694 and define as hidden inline function.
12695 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
12696 Likewise.
12697 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
12698 Likewise.
12699 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
12700 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
12701 (gnu_dev_minor): Likewise.
12702 (gnu_dev_makedev): Likewise.
12703 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
12704 makedev.
12705 * posix/wordexp.c (exec_comm_child): Likewise.
12706 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
12707 instead of minor and __gnu_dev_major instead of major.
12708 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
12709 __gnu_dev_major instead of major.
12710 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
12711 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
12712 instead of gnu_dev_minor.
12713 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
12714 (SLAVE_P): Likewise.
12715 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
12716 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
12717 instead of major.
12718
12719 [BZ #21313]
12720 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
12721 in another place.
12722 * locale/weightwc.h (findidx): Likewise.
12723
12724 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
12725
12726 * manual/probes.texi (slowlog): Delete documentation of removed probe.
12727 (slowlog_inexact): Likewise
12728 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
12729 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
12730
12731 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
12732
12733 [BZ #22797]
12734 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
12735 missing second underscore to parameter name.
12736
12737 2018-02-06 Joseph Myers <joseph@codesourcery.com>
12738
12739 [BZ #14508]
12740 [BZ #15512]
12741 [BZ #17082]
12742 [BZ #20530]
12743 * bits/byteswap.h: Update file comment. Do not include
12744 <bits/byteswap-16.h>.
12745 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
12746 constant.
12747 (__bswap_16): Define as inline function.
12748 (__bswap_constant_32): Reformat definition.
12749 (__bswap_32): Always define as inline function, not macro, using
12750 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
12751 otherwise __bswap_constant_32.
12752 (__bswap_constant_64): Reformat definition. Do not use
12753 __extension__ here.
12754 (__bswap_64): Always define as inline function, not macro. Use
12755 __extension__ on function definition. Use __builtin_bswap64 if
12756 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
12757 * string/test-endian-file-scope.c: New file.
12758 * string/test-endian-sign-conversion.c: Likewise.
12759 * string/Makefile (headers): Remove bits/byteswap-16.h.
12760 (tests): Add test-endian-file-scope and
12761 test-endian-sign-conversion.
12762 (CFLAGS-test-endian-sign-conversion.c): New variable.
12763 * bits/byteswap-16.h: Remove file.
12764 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
12765 * sysdeps/ia64/bits/byteswap.h: Likewise.
12766 * sysdeps/m68k/bits/byteswap.h: Likewise.
12767 * sysdeps/s390/bits/byteswap-16.h: Likewise.
12768 * sysdeps/s390/bits/byteswap.h: Likewise.
12769 * sysdeps/tile/bits/byteswap.h: Likewise.
12770 * sysdeps/x86/bits/byteswap-16.h: Likewise.
12771 * sysdeps/x86/bits/byteswap.h: Likewise.
12772
12773 [BZ #17721]
12774 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
12775 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
12776 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
12777 199901L] (__restrict): Define to restrict.
12778
12779 [BZ #19667]
12780 * string/testcopy.c: Include <support/support.h>. Do not include
12781 <malloc.h>. Use <support/test-driver.c>.
12782 (main): Rename to do_test. Make static. Use xmalloc instead of
12783 malloc.
12784
12785 [BZ #13575]
12786 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
12787 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
12788 (SSIZE_MAX): Define to INT_MAX.
12789 * posix/test-ssize-max.c: New file.
12790 * posix/Makefile (tests): Add test-ssize-max.
12791
12792 [BZ #19668]
12793 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
12794 <support/support.h>. Do not include <malloc.h>.
12795 (query_auxv): Use xmalloc instead of malloc.
12796
12797 [BZ #14553]
12798 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
12799 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
12800 instead of loff_t.
12801
12802 2018-02-06 Florian Weimer <fweimer@redhat.com>
12803
12804 [BZ #18023]
12805 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12806 Use scratch_buffer instead of extend_alloca.
12807
12808 2018-02-06 Zack Weinberg <zackw@panix.com>
12809
12810 * libio/stdio.h: Don't define getc or putc as macros.
12811 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
12812 not _IO_getc and _IO_putc.
12813
12814 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
12815 * stdio-common/tstgetln.c: Don't redefine ssize_t.
12816
12817 2018-02-06 Joseph Myers <joseph@codesourcery.com>
12818
12819 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
12820 (TCP_FASTOPEN_NO_COOKIE): Likewise.
12821
12822 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
12823
12824 [BZ #14890]
12825 * elf/elf.h (NT_PRFPREG): New macro.
12826 (NT_S390_VXRS_LOW): Likewise.
12827 (NT_S390_VXRS_HIGH): Likewise.
12828 (NT_S390_GS_CB): Likewise.
12829 (NT_S390_GS_BC): Likewise.
12830 (NT_S390_RI_CB): Likewise.
12831
12832 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12833 (MAP_SYNC): New macro.
12834 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
12835 Likewise.
12836 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12837 (MAP_SYNC): Likewise.
12838 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12839 (MAP_SYNC): Likewise.
12840 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12841 (MAP_SYNC): Likewise.
12842 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12843 (MAP_SYNC): Likewise.
12844 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12845 (MAP_SYNC): Likewise.
12846 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12847 (MAP_SYNC): Likewise.
12848 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
12849 Likewise.
12850 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
12851 Likewise.
12852
12853 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
12854 (MAP_SHARED_VALIDATE): New macro.
12855 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12856 (MAP_SHARED_VALIDATE): Likewise.
12857
12858 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12859
12860 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
12861 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
12862 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
12863
12864 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12865
12866 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
12867 (DT_NUM): Updated to 35.
12868
12869 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12870
12871 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
12872 __builtin_expect with __glibc_likely and __glibc_unlikely.
12873 (elf_machine_rela): Likewise.
12874 (elf_machine_lazy_rel): Likewise.
12875
12876 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12877
12878 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
12879 __builtin_expect with __glibc_likely and __glibc_unlikely.
12880 (elf_machine_lazy_rel): Likewise.
12881
12882 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12883
12884 [BZ #22638]
12885 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
12886 SHARED.
12887 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
12888
12889 2018-02-05 Andreas Schwab <schwab@suse.de>
12890
12891 [BZ #22761]
12892 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
12893 string.
12894
12895 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
12896
12897 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
12898 not check against PTHREAD_STACK_MIN.
12899
12900 2018-02-02 Sean McKean <smckean83@gmail.com>
12901
12902 [BZ #22735]
12903 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
12904
12905 2018-02-02 Florian Weimer <fweimer@redhat.com>
12906
12907 [BZ #22753]
12908 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
12909 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
12910 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
12911 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
12912 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
12913 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12914 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12915 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
12916 * manual/llio.texi (Scatter-Gather): Mention offset -1.
12917 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
12918 * misc/tst-preadvwritev2.c (do_test): Call it.
12919 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
12920
12921 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
12922
12923 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
12924
12925 * benchtests/bench-memcmp.c: Print json instead of plain text.
12926
12927 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
12928 every test run.
12929
12930 2018-02-01 Joseph Myers <joseph@codesourcery.com>
12931
12932 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12933 version to 4.15.
12934 (s390_sthyi): New syscall.
12935
12936 * sysdeps/generic/ldbl-classify-compat.h: New file.
12937 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
12938 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
12939 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
12940 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
12941 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
12942 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
12943 * sysdeps/ieee754/dbl-64/s_finite.c: Include
12944 <ldbl-classify-compat.h>.
12945 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12946 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
12947 <ldbl-classify-compat.h>.
12948 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12949 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
12950 <ldbl-classify-compat.h>.
12951 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12952 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
12953 <ldbl-classify-compat.h>.
12954 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12955 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
12956 <ldbl-classify-compat.h>.
12957 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12958 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
12959 <ldbl-classify-compat.h>.
12960 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12961 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
12962 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12963 * sysdeps/m68k/coldfire/math_private.h: Remove file.
12964 * sysdeps/microblaze/math_private.h: Likewise.
12965 * sysdeps/nios2/math_private.h: Likewise.
12966 * sysdeps/sh/math_private.h: Likewise.
12967
12968 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
12969 * sysdeps/m68k/coldfire/math_private.h: ... here.
12970 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
12971 * sysdeps/tile/math_private.h: Likewise.
12972 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
12973 Remove macro.
12974 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
12975 Likewise.
12976
12977 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
12978 Remove macro.
12979 (libc_fetestexcept): Likewise.
12980 (libc_feupdateenv_test): Likewise.
12981 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
12982 (libc_fetestexcept): Likewise.
12983 (libc_feupdateenv_test): Likewise.
12984 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
12985 (libc_fetestexcept): Likewise.
12986 (libc_feupdateenv_test): Likewise.
12987 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
12988 (libc_fetestexcept): Likewise.
12989 (libc_feupdateenv_test): Likewise.
12990
12991 * sysdeps/generic/math_private.h
12992 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
12993 New inline function.
12994 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
12995 Likewise.
12996
12997 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
12998 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
12999 * sysdeps/generic/math_private.h
13000 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
13001 inline function.
13002 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
13003 Likewise.
13004 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
13005 Likewise.
13006 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
13007 Likewise.
13008 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
13009 Likewise.
13010 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
13011 Likewise.
13012 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
13013 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
13014 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
13015 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
13016 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
13017 (__fegetenv): Likewise.
13018 (fesetenv): Likewise.
13019 (__fesetenv): Likewise.
13020 (feupdateenv): Likewise.
13021 (__feupdateenv): Likewise.
13022 (fegetround): Likewise.
13023 (__fegetround): Likewise.
13024 (fesetround): Likewise.
13025 (__fesetround): Likewise.
13026
13027 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
13028 (feraiseexcept): New macro.
13029 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
13030 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
13031 Remove macro.
13032 (__feraiseexcept): Likewise.
13033 (feclearexcept): Likewise.
13034 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
13035 (__feraiseexcept): Likewise.
13036 (feclearexcept): Likewise.
13037 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
13038 (__feraiseexcept): Likewise.
13039 (feclearexcept): Likewise.
13040 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
13041 (__feraiseexcept): Likewise.
13042 (feclearexcept): Likewise.
13043 (fetestexcept): Likewise.
13044
13045 * sysdeps/m68k/coldfire/math-tests.h: New file.
13046
13047 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
13048 * sysdeps/m68k/bits/fenv.h: ... here.
13049 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
13050 not define.
13051 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
13052 Likewise.
13053 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
13054 Likewise.
13055 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
13056 Likewise.
13057 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
13058 Likewise.
13059 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
13060 Define to 0.
13061 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
13062 (__FE_UNDEFINED): New enum constant.
13063 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
13064 Do not define.
13065 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
13066 Likewise.
13067 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
13068 Likewise.
13069 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
13070 to match generic bits/fenv.h.
13071 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
13072 Do not define.
13073
13074 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
13075 packed on bits.
13076 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
13077 * soft-fp/half.h (union _FP_UNION_H): Likewise.
13078 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
13079 * soft-fp/single.h (union _FP_UNION_S): Likewise.
13080
13081 2018-02-01 Carlos O'Donell <carlos@redhat.com>
13082 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
13083 Joseph Myers <joseph@codesourcery.com>
13084
13085 [BZ #21314]
13086 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
13087 (__log1p): Disable -Wmaybe-uninitialized for -Os around
13088 computation using c.
13089 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
13090 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
13091 computation using c.
13092
13093 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
13094
13095 * version.h (RELEASE): Set to "development".
13096 (VERSION): Set to "2.27.9000".
13097 * NEWS (2.28): New section.
13098
13099 * version.h (RELEASE): Set to "stable".
13100 (VERSION): Set to "2.27".
13101 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
13102
13103 * NEWS: Add the list of bugs fixed in 2.27.
13104
13105 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13106
13107 * stdlib/test-atexit-race-common.c (do_test): Check stack size
13108 against PTHREAD_STACK_MIN.
13109
13110 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
13111
13112 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
13113 New entries.
13114 (Rafal Luzynski, Andreas Schwab): Update.
13115
13116 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
13117
13118 [BZ #10871]
13119 * NEWS: List the languages which actually use the alternative
13120 months feature in this release. Also explain that "alt_mon" and
13121 "ab_alt_mon" are optional.
13122
13123 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
13124
13125 [BZ #22765]
13126 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
13127
13128 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
13129
13130 * manual/install.texi (Tools for Compilation): Update the newest
13131 versions of gcc, binutils, texinfo, gawk, bison, and sed.
13132 * INSTALL: Regenerated.
13133
13134 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
13135
13136 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
13137 instead of __builtin_expect.
13138
13139 2018-01-30 Florian Weimer <fweimer@redhat.com>
13140
13141 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
13142 data.
13143 * nss/tst-nss-getpwent.c (do_test): Likewise.
13144
13145 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
13146
13147 [BZ #10871]
13148 * localedata/locales/hr_HR (mon): Rename to...
13149 (alt_mon): This.
13150 (mon): Import from CLDR (genitive case).
13151 (d_t_fmt): Update the comment.
13152
13153 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
13154
13155 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
13156 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
13157 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
13158
13159 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
13160
13161 * mach/Versions: Fix version when __mach_host_self_ was added.
13162 * hurd/Versions: Fix version when _hurd_exec_paths was added.
13163 * sysdeps/mach/hurd/i386/ld.abilist: New file.
13164 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
13165 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
13166 * sysdeps/mach/hurd/i386/libc.abilist: New file.
13167 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
13168 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
13169 * sysdeps/mach/hurd/i386/libm.abilist: New file.
13170 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
13171 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
13172 * sysdeps/mach/hurd/i386/librt.abilist: New file.
13173 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
13174 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
13175 || to respect codestyle.
13176 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
13177 (do_test_bz20181): Rename accordingly.
13178 * malloc/malloc.c: Include <assert.h>.
13179 (assert): Do not define.
13180 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
13181 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
13182 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
13183 * sysdeps/mach/hurd/hp-timing.h: New file.
13184 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
13185
13186 2018-01-29 Darius Rad <darius@bluespec.com>
13187
13188 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
13189
13190 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
13191
13192 * sysdeps/init_array/crti.S (.section .init_array): Add
13193 PREINIT_FUNCTION when defined.
13194 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
13195 * config.h.in: Regenerate.
13196 * manual/platform.texi: Add RISC-V documenation for
13197 __riscv_flush_icache.
13198 * sysdeps/riscv/__longjmp.S: New file.
13199 * sysdeps/riscv/backtrace.c: Likewise.
13200 * sysdeps/riscv/bits/endian.h: Likewise.
13201 * sysdeps/riscv/bits/setjmp.h: Likewise.
13202 * sysdeps/riscv/bits/wordsize.h: Likewise.
13203 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
13204 * sysdeps/riscv/bsd-setjmp.c: Likewise.
13205 * sysdeps/riscv/dl-trampoline.S: Likewise.
13206 * sysdeps/riscv/gccframe.h: Likewise.
13207 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
13208 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
13209 * sysdeps/riscv/machine-gmon.h: Likewise.
13210 * sysdeps/riscv/memusage.h: Likewise.
13211 * sysdeps/riscv/setjmp.S: Likewise.
13212 * sysdeps/riscv/sys/asm.h: Likewise.
13213 * sysdeps/riscv/tls-macros.h: Likewise.
13214 * sysdeps/riscv/dl-tls.h: New file.
13215 * sysdeps/riscv/libc-tls.c: Likewise.
13216 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
13217 * sysdeps/riscv/nptl/tls.h: Likewise.
13218 * sysdeps/riscv/stackinfo.h: Likewise.
13219 * sysdeps/riscv/bits/fenv.h: New file.
13220 * sysdeps/riscv/e_sqrtl.c: Likewise.
13221 * sysdeps/riscv/fpu_control.h: Likewise.
13222 * sysdeps/riscv/math-tests.h: Likewise.
13223 * sysdeps/riscv/nofpu/Implies: Likewise.
13224 * sysdeps/riscv/sfp-machine.h: Likewise.
13225 * sysdeps/riscv/tininess.h: Likewise.
13226 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
13227 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13228 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
13229 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
13230 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
13231 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
13232 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13233 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
13234 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13235 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13236 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13237 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
13238 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
13239 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
13240 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
13241 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
13242 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
13243 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13244 * sysdeps/riscv/rvd/s_fma.c: Likewise.
13245 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13246 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13247 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13248 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13249 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13250 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13251 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
13252 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
13253 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
13254 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
13255 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13256 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13257 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13258 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
13259 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
13260 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13261 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13262 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13263 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
13264 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
13265 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13266 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
13267 * sysdeps/riscv/rvf/math_private.h: Likewise.
13268 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13269 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
13270 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13271 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13272 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
13273 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13274 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13275 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13276 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13277 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13278 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13279 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13280 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
13281 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13282 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13283 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13284 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
13285 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
13286 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
13287 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
13288 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
13289 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
13290 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
13291 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
13292 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
13293 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
13294 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
13295 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
13296 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
13297 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
13298 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
13299 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
13300 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
13301 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
13302 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
13303 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
13304 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
13305 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
13306 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
13307 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
13308 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
13309 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
13310 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
13311 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
13312 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
13313 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
13314 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
13315 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
13316 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
13317 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
13318 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
13319 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
13320 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
13321 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
13322 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
13323 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
13324 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
13325 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
13326 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
13327 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
13328 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
13329 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
13330 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13331 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
13332 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13333 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
13334 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
13335 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
13336 * sysdeps/riscv/Implies: New file.
13337 * sysdeps/riscv/Makefile: Likewise.
13338 * sysdeps/riscv/configure: Likewise.
13339 * sysdeps/riscv/configure.ac: Likewise.
13340 * sysdeps/riscv/nptl/Makefile: Likewise.
13341 * sysdeps/riscv/preconfigure: Likewise.
13342 * sysdeps/riscv/rv64/Implies-after: Likewise.
13343 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
13344 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
13345 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
13346 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
13347 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
13348 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
13349 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
13350 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
13351 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
13352 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
13353 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
13354 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
13355 (Config): Likewise.
13356
13357 2018-01-29 Florian Weimer <fweimer@redhat.com>
13358
13359 [BZ #22701]
13360 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
13361 libnsl_hidden_proto.
13362 * include/rpcsvc/yp.h (yp_xdrall): Declare with
13363 libnsl_hidden_proto.
13364 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
13365 * nis/Makefile (libnsl-routines): Add nss-default only for
13366 build-obsolete-nsl.
13367 * nis/nis_defaults.c (__nis_default_ttl): Add
13368 libnsl_hidden_nolink_def.
13369 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
13370 declaration.
13371 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
13372 * nis/ypclnt.c (yp_maplist): Likewise.
13373
13374 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
13375
13376 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13377 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
13378
13379 2018-01-29 Joseph Myers <joseph@codesourcery.com>
13380
13381 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
13382 clean -dxfq for git updates when replacing sources.
13383
13384 * scripts/build-many-glibcs.py (Config.build_gcc): Use
13385 --disable-libcilkrts unconditionally, not just for the final GCC
13386 build for Hurd.
13387
13388 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13389 version to 4.15.
13390
13391 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13392
13393 [BZ #10871]
13394 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
13395 case).
13396
13397 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13398
13399 [BZ #10871]
13400 * localedata/locales/be_BY (mon): Rename to...
13401 (alt_mon): This, then synchronize with CLDR (nominative case).
13402 (abmon): Rename to...
13403 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13404 (mon): Import from CLDR (genitive case).
13405 (abmon): Likewise.
13406 * localedata/locales/be_BY@latin (mon): Rename to...
13407 (alt_mon): This.
13408 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
13409
13410 * localedata/locales/be_BY@latin (lang_name): Reworded to
13411 "biełaruskaja mova".
13412
13413 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13414
13415 [BZ #10871]
13416 * localedata/locales/el_CY (mon): Renamed to...
13417 (alt_mon): This.
13418 (mon): Import from CLDR (genitive case).
13419 * localedata/locales/el_GR: Likewise.
13420
13421 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13422
13423 [BZ #10871]
13424 * localedata/locales/ru_RU (mon): Rename to...
13425 (alt_mon): This.
13426 (abmon): Rename to...
13427 (ab_alt_mon): This.
13428 (mon): Import from CLDR (genitive case).
13429 (abmon): Copy from the old content except the 5th month which is
13430 now in the genitive case, even when abbreviated.
13431 * localedata/locales/ru_UA: Likewise.
13432 * time/tst-strptime.c (day_tests): Add an actual example of
13433 a difference between %b and %Ob in Russian.
13434
13435 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13436
13437 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
13438 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
13439 a `c' variable.
13440 * resolv/res-close.c: Include <stdlib.h>.
13441 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
13442 <sys/wait.h>, <time.h>, <sys/uio.h>.
13443 (NOT_CANCEL_H): Add inclusion guard.
13444 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
13445 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
13446 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
13447 return 0.
13448 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
13449 vm_address_t * to ElfW(Addr) * for dl_main parameter.
13450 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
13451 instead of void *.
13452 * sysdeps/pthread/timer_create.c (timer_create): Do not use
13453 timer_ptr2id to cast struct timer_node * to void *.
13454 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
13455 --disable-libcilkrts to gcc configure.
13456 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
13457 and make them the default for now.
13458 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
13459 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
13460 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
13461 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
13462 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
13463 MACH_IPC_COMPAT.
13464 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
13465 __task_terminate would ever return successfully.
13466 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
13467 to global scope.
13468 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
13469 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
13470 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
13471 critical section to make code simpler and avoid warning.
13472 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
13473 critical section to make code simpler and avoid warning.
13474 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
13475 const char * instead of char *.
13476 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
13477 __hurd_file_name_split, hurd_file_name_split,
13478 __hurd_directory_name_split, hurd_directory_name_split,
13479 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
13480 hurd_file_name_path_lookup): Make lookup function parameter take a
13481 const char *name instead of char *name.
13482 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
13483 __hurd_directory_name_split): Likewise.
13484 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
13485 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
13486 * sysdeps/mach/hurd/check_native.c: New file.
13487 * sysdeps/mach/hurd/check_pf.c: New file.
13488 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
13489 (__freeifaddrs): Define macro to freeifaddrs.
13490 * sysdeps/mach/hurd/libhurduser.abilist: New file.
13491 * sysdeps/mach/libmachuser.abilist: New file.
13492 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
13493 (do_test_bz20181): Rename accordingly.
13494 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
13495 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
13496 <sys/mount.h>.
13497 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
13498 version only if __USE_EXTERN_INLINES is defined.
13499 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
13500 __hurd_sockfail): Likewise.
13501 (_hurd_fd_get): Always declare functions, and provide inline versions
13502 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
13503 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
13504 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
13505 _hurd_port_set): Always declare functions, and provide inline versions
13506 only if __USE_EXTERN_INLINES and _LIBC are defined and
13507 IS_IN(libc).
13508 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
13509 _hurd_critical_section_unlock): Likewise.
13510 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
13511 * __hurd_threadvar_location): Likewise.
13512 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
13513 _hurd_userlink_clear): Likewise.
13514 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
13515 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
13516 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
13517 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
13518 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
13519 __spin_lock_locked): Likewise.
13520 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
13521 __spin_lock_locked): Likewise.
13522 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
13523 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
13524 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
13525 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
13526 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
13527 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
13528 _POSIX_NO_TRUNC): Define to 0.
13529 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
13530 check size against PTHREAD_STACK_MIN.
13531 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
13532 IS_IN(libpthread)]: Include <sigsetops.h>.
13533 * mach/Makefile (user-interfaces): Add mach/gnumach.
13534 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
13535 * sysdeps/mach/configure (mach_interface_list): Regenerate.
13536 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
13537 instead of invalid -1.
13538 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
13539 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
13540 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
13541 <net/ppp_defs.h>.
13542
13543 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
13544
13545 * hurd/fcntl-internal.h: New file.
13546
13547 2018-01-27 James Clarke <jrtc27@jrtc27.com>
13548
13549 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13550
13551 * sysdeps/alpha/fpu/libm-test-ulps: Update.
13552
13553 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
13554
13555 [BZ #22701]
13556 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
13557 Build only shared objects.
13558
13559 2018-01-26 Carlos O'Donell <carlos@redhat.com>
13560
13561 * README: Update for hppa.
13562
13563 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13564
13565 * sysdeps/sparc/fpu/libm-test-ulps: Update
13566 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
13567
13568 2018-01-26 Carlos O'Donell <carlos@redhat.com>
13569
13570 Revert:
13571
13572 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
13573
13574 [BZ #22563]
13575 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13576 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
13577 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13578 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
13579 to feature_1.
13580
13581 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
13582
13583 [BZ #22563]
13584 * bits/types/__cancel_jmp_buf_tag.h: New file.
13585 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
13586 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
13587 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
13588 * nptl/Makefile (headers): Add
13589 bits/types/__cancel_jmp_buf_tag.h.
13590 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
13591 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
13592 * sysdeps/nptl/pthread.h: Include
13593 <bits/types/__cancel_jmp_buf_tag.h>.
13594 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
13595 __cancel_jmp_buf.
13596 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
13597
13598 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13599
13600 [BZ #10871]
13601 * localedata/locales/uk_UA (mon): Renamed to...
13602 (alt_mon): This.
13603 (alt_digits): "0" removed and then renamed to...
13604 (mon): This.
13605 (date_fmt): Definition changed not to use the alternative
13606 digits hack.
13607
13608 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
13609
13610 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
13611 FLAG_RISCV_FLOAT_ABI_DOUBLE.
13612 * elf/elf.h (EF_RISCV_RVC): New define.
13613 (EF_RISCV_FLOAT_ABI): Likewise.
13614 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
13615 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
13616 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
13617 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
13618 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
13619 define.
13620 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
13621
13622 2018-01-25 Andreas Schwab <schwab@suse.de>
13623
13624 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
13625 single quotes.
13626 * sysdeps/gnu/configure: Regenerate.
13627 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
13628 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
13629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
13630 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
13631 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
13632 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
13633 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
13634 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
13635
13636 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13637
13638 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
13639 URL, and run autoconf, make it the default for now.
13640
13641 2018-01-24 Joseph Myers <joseph@codesourcery.com>
13642
13643 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13644 soft-float ColdFire configuration.
13645
13646 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
13647 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
13648 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
13649
13650 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
13651 MicroBlaze file.
13652
13653 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
13654 ....
13655 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
13656 ... here.
13657 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
13658 New file.
13659
13660 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
13661 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
13662 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
13663 file.
13664
13665 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13666
13667 [BZ #22742]
13668 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
13669 Rename to __reserved and add comment.
13670 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
13671 Rename to __reserved.
13672
13673 2018-01-24 Joseph Myers <joseph@codesourcery.com>
13674
13675 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13676 i686-gnu configurations.
13677 (Context.run_builds): Include mig, gnumach and hurd in components
13678 considered.
13679 (Context.checkout): Add mig, gnumach and hurd to components.
13680 (Context.checkout_tar): Add URL mappings for mig, gnumach and
13681 hurd.
13682 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
13683 (Config.build): Install gnumach headers, build mig and install
13684 hurd headers for 'gnu' OS.
13685 (Config.install_gnumach_headers): New function.
13686 (Config.install_hurd_headers): Likewise.
13687 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
13688 when building for 'gnu' OS.
13689
13690 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
13691
13692 * manual/tunables.texi (Hardware Capability Tunables): Fix
13693 spelling.
13694
13695 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
13696
13697 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
13698 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
13699 (ALTMON_11, ALTMON_12): Improve documentation.
13700 * manual/time.texi (strftime): Likewise.
13701
13702 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13703
13704 [BZ #10871]
13705 * localedata/locales/pl_PL: Alternative month names added,
13706 primary month names are genitive now.
13707 * time/tst-strptime.c (day_tests): Actually use a genitive case
13708 of a month name in Polish language.
13709
13710 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13711
13712 [BZ #10871]
13713 * manual/locale.texi: Document ALTMON_1..12 constants for
13714 nl_langinfo. Specify when to use ALTMON instead of MON.
13715 * manual/time.texi (strftime, strptime): Document GNU extension
13716 permitting O modifier with %B and %b. Specify when to use
13717 %OB instead of %B.
13718
13719 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13720
13721 [BZ #10871]
13722 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
13723 names, define them as the same as abbreviated month names explicitly.
13724 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
13725 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
13726 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
13727 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
13728 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
13729 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
13730 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
13731 _NL_WABALTMON_12): New enum constants.
13732 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
13733 wab_alt_mon, and ab_alt_mon_defined members.
13734 (time_output): Output ab_alt_mon and wab_alt_mon members.
13735 (time_read): Read them, initialize them as copies of abmon and wabmon
13736 respectively if they are missing, initialize ab_alt_mon_defined.
13737 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
13738 * locale/programs/locfile-kw.h: Regenerate.
13739 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
13740 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
13741 and ru_RU.UTF-8.
13742 * time/strftime_l.c (a_altmonth, aam_len): New macros.
13743 [!COMPILE_WIDE] (ABALTMON_1): New macro.
13744 (__strftime_internal): Handle %Ob and %Oh formats.
13745 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
13746 (__strptime_internal): Handle %Ob and %Oh formats.
13747 * time/tst-strptime.c (day_tests): Add more tests to parse different
13748 forms of month names including the new %Ob format specifier.
13749
13750 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13751
13752 [BZ #10871]
13753 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
13754 define them as the same as primary full month names explicitly.
13755 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
13756 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
13757 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
13758 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
13759 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
13760 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
13761 _NL_WALTMON_12): New enum constants.
13762 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
13763 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
13764 macros.
13765 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
13766 walt_mon, and alt_mon_defined members.
13767 (time_output): Output alt_mon and walt_mon members.
13768 (time_read): Read them, initialize them as copies of mon and wmon
13769 respectively if they are missing, initialize alt_mon_defined.
13770 * locale/programs/locfile-kw.gperf (alt_mon): Define.
13771 * locale/programs/locfile-kw.h: Regenerate.
13772 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
13773 * localedata/tst-langinfo.c (map): Add tests for the new constants
13774 ALTMON_1 .. ALTMON_12.
13775 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
13776 and pl_PL.UTF-8.
13777 * time/strftime_l.c (f_altmonth): New macro.
13778 (__strftime_internal): Handle %OB format.
13779 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
13780 (__strptime_internal): Handle %OB format.
13781 * time/tst-strptime.c (day_tests): Add tests to parse different forms
13782 of month names including the new %OB format specifier.
13783
13784 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13785
13786 [BZ #22685]
13787 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
13788 from ABORT_TRANSACTION.
13789 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
13790 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
13791 ABORT_TRANSACTION_IMPL): Likewise.
13792 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
13793 Linux code, but remove the code that aborts transactions.
13794
13795 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13796
13797 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
13798
13799 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
13800
13801 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
13802 in date: "2004-14-09" should be "2004-09-14".
13803 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
13804 "2003-15-09" should be "2003-09-15".
13805
13806 2018-01-18 Arjun Shankar <arjun@redhat.com>
13807
13808 [BZ #22343]
13809 [BZ #22774]
13810 CVE-2018-6485
13811 CVE-2018-6551
13812 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
13813 after padding.
13814 (_int_memalign): check for integer overflow before calling
13815 _int_malloc.
13816 * malloc/tst-malloc-too-large.c: New test.
13817 * malloc/Makefile: Add tst-malloc-too-large.
13818
13819 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
13820
13821 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
13822 in date: "2017-24-07" should be "2017-07-24".
13823 * localedata/locales/mai_IN: Likewise.
13824 * localedata/locales/mai_NP: Likewise.
13825
13826 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
13827
13828 * po/ru.po: Update translations.
13829
13830 2018-01-17 Joseph Myers <joseph@codesourcery.com>
13831
13832 [BZ #22719]
13833 * sysdeps/hppa/backtrace.c: New file.
13834
13835 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
13836
13837 [BZ #22715]
13838 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
13839 align La_x86_64_retval to VEC_SIZE.
13840
13841 2018-01-16 Joseph Myers <joseph@codesourcery.com>
13842
13843 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
13844 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
13845
13846 2018-01-16 Florian Weimer <fweimer@redhat.com>
13847
13848 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
13849 Move tst-thread-exit-clobber ...
13850 [$(CXX)] (tests-unsupported): ... to here.
13851
13852 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
13853
13854 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
13855 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
13856 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
13857 (_dl_aarch64_cap_flags): Update.
13858 (_DL_HWCAP_COUNT): Update.
13859
13860 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
13861
13862 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
13863 (_DL_HWCAP_LAST): Remove.
13864 (_DL_HWCAP_COUNT): Move to ...
13865 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
13866 (_DL_HWCAP_COUNT): ... here.
13867
13868 2018-01-16 Florian Weimer <fweimer@redhat.com>
13869
13870 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
13871 mode with GNU extensions.
13872
13873 2018-01-15 Alan Hayward <alan.hayward@arm.com>
13874
13875 * elf/elf.h (NT_ARM_SVE): Define.
13876
13877 2018-01-15 Florian Weimer <fweimer@redhat.com>
13878
13879 [BZ #22636]
13880 * nptl/tst-minstack-throw.cc: New file.
13881 * nptl/Makefile (tests): Add tst-minstack-throw.
13882 (LDLIBS-tst-minstack-throw): Link with libstdc++.
13883 [!CXX] (tests-unsupported): Add tst-minstack-throw.
13884
13885 2018-01-15 Joseph Myers <joseph@codesourcery.com>
13886
13887 * scripts/build-many-glibcs.py (Context.checkout): Default
13888 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
13889 version to 1.1.0.
13890
13891 2018-01-13 Carlos O'Donell <carlos@redhat.com>
13892
13893 [BZ #22707]
13894 * elf/elf.h (DF_1_STUB): Define.
13895 (DF_1_PIE): Define.
13896
13897 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13898
13899 [BZ #22697]
13900 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
13901 Do not add 0.5 to integer or out-of-range arguments.
13902
13903 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
13904
13905 * po/bg.po: Update translations.
13906 * po/cs.po: Likewise.
13907 * po/de.po: Likewise.
13908 * po/ko.po: Likewise.
13909 * po/pl.po: Likewise.
13910 * po/sv.po: Likewise.
13911 * po/uk.po: Likewise.
13912 * po/vi.po: Likewise.
13913
13914 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13915
13916 * aarch64/start.S (_start): Use __wrap_main.
13917 (__wrap_main): New local symbol.
13918
13919 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
13920
13921 [BZ #22679]
13922 CVE-2018-1000001
13923 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
13924 generic_getcwd if the path returned by getcwd syscall is not absolute.
13925 * io/tst-getcwd-abspath.c: New test.
13926 * io/Makefile (tests): Add tst-getcwd-abspath.
13927
13928 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
13929
13930 * malloc/malloc.c (malloc_consolidate): Add size check.
13931
13932 2018-01-12 Florian Weimer <fweimer@redhat.com>
13933
13934 * support/write_message.c (write_message): Preserve errno.
13935 * support/check.c (print_failure): Likewise.
13936 * support/support_test_verify_impl.c (support_test_verify_impl):
13937 Likewise.
13938 * support/support_test_compare_failure.c
13939 (support_test_compare_failure): Likewise.
13940
13941 2018-01-12 Florian Weimer <fweimer@redhat.com>
13942
13943 [BZ #22701]
13944 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
13945 Prevent installation of libnsl.so.
13946 (libnsl-inhibit-o): Do not build (or install) static libraries.
13947
13948 2018-01-12 Egmont Koblinger <egmont@gmail.com>
13949
13950 [BZ #22657]
13951 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
13952 before the day number which may produce a double space.
13953 (date_fmt): Likewise.
13954
13955 2018-01-12 Joseph Myers <joseph@codesourcery.com>
13956
13957 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
13958 instead of fegetenv.
13959
13960 2018-01-11 Joseph Myers <joseph@codesourcery.com>
13961
13962 [BZ #22702]
13963 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
13964 comment to say exceptions are discarded.
13965 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
13966 __fegetenv.
13967 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
13968 be enabled.
13969
13970 2018-01-11 Florian Weimer <fweimer@redhat.com>
13971
13972 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
13973 and error message.
13974
13975 2018-01-11 Florian Weimer <fweimer@redhat.com>
13976
13977 [BZ #22636]
13978 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
13979 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
13980
13981 2018-01-10 Joseph Myers <joseph@codesourcery.com>
13982
13983 [BZ #22693]
13984 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
13985 negative arguments in test for NaN or infinity argument.
13986
13987 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
13988
13989 * po/libc.pot: Regenerate.
13990
13991 2018-01-10 Florian Weimer <fweimer@redhat.com>
13992
13993 [BZ #22636]
13994 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
13995 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
13996
13997 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
13998
13999 * hurd/hurd/fd.h: Include <fcntl.h>
14000 (__hurd_at_flags): New function.
14001 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
14002 with call to __hurd_at_flags.
14003 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
14004 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
14005 __faccessat
14006 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
14007 (__access_noerrno): Use __faccessat_common instead of access_common.
14008 (__access): Likewise.
14009 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
14010 with a call to __faccessat.
14011 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
14012 (__faccessat_common): ... this. Move implementation of __access into it when
14013 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
14014 reauthenticate_cwdir_at helper to implement AT mechanism.
14015 (__faccessat_noerrno): New function, just calls __faccessat_common.
14016 (__faccessat): New function, just calls __faccessat_common.
14017 (faccessat): Define weak alias.
14018
14019 2018-01-10 Joseph Myers <joseph@codesourcery.com>
14020
14021 [BZ #22691]
14022 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
14023 (CFLAGS-s_fmaxmagl.c): New variable.
14024 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
14025
14026 [BZ #22690]
14027 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
14028 long int for arguments of possibly overflowing addition or
14029 subtraction.
14030 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
14031
14032 2018-01-09 Joseph Myers <joseph@codesourcery.com>
14033
14034 [BZ #22688]
14035 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
14036 (CFLAGS-e_remainderl.c): New variable.
14037
14038 [BZ #22687]
14039 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
14040 variable.
14041 (CFLAGS-s_cacoshl.c): Likewise.
14042 (CFLAGS-s_casinhl.c): Likewise.
14043 (CFLAGS-s_catanl.c): Likewise.
14044 (CFLAGS-s_catanhl.c): Likewise.
14045 (CFLAGS-s_cexpl.c): Likewise.
14046 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
14047 (CFLAGS-s_csinhl.c): Likewise.
14048 (CFLAGS-s_clogl.c): Likewise.
14049 (CFLAGS-s_clog10l.c): Likewise.
14050 (CFLAGS-s_csinl.c): Likewise.
14051 (CFLAGS-s_csqrtl.c): Likewise.
14052
14053 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
14054 2017-01-09 Svante Signell <svante.signell@gmail.com>
14055
14056 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
14057 (_hurd_exec_paths): New function.
14058 * hurd/hurd.h (_hurd_exec): Deprecate function.
14059 (_hurd_exec_paths): Declare function.
14060 * hurd/Versions: Export _hurd_exec_paths.
14061 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
14062 (__execve): Use __getcwd to build absolute path, and use
14063 _hurd_exec_paths instead of _hurd_exec.
14064 * sysdeps/mach/hurd/spawni.c: Likewise.
14065 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
14066 _hurd_exec.
14067
14068 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
14069
14070 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
14071 test instead of failing in case of ENOENT returned by posix_openpt.
14072
14073 2018-01-08 Florian Weimer <fweimer@redhat.com>
14074
14075 resolv: Support binary labels in test framework.
14076 * support/resolv_test.c (struct to_be_freed): Remove.
14077 (struct compressed_name): New.
14078 (allocate_compressed_name, ascii_tolower)
14079 (compare_compressed_name): New functions.
14080 (struct resolv_response_builder): Update type of
14081 compression_offsets for use with tsearch. Rempve to_be_freed.
14082 (response_push_pointer_to_free): Remove function.
14083 (resolv_response_add_name): Rewrite using struct compressed_name
14084 and tsearch instead of hsearch_r.
14085 (response_builder_allocate): Remove initialization of
14086 compression_offsets.
14087 (response_builder_free): Update for removal of to_be_freed. Use
14088 tdestroy instead of hdestroy_r.
14089 * resolv/Makefile (tests): Add tst-resolv-binary.
14090 (tst-resolv-binary): Link with -lresolv -lpthread.
14091
14092 2018-01-08 Florian Weimer <fweimer@redhat.com>
14093
14094 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
14095 time. Pass positive flag instead of negative flag to
14096 support_test_compare_failure.
14097 (support_test_compare_failure): Change negative parameter to
14098 positive.
14099 * support/support_test_compare_failure.c (report)
14100 (support_test_compare_failure): Likewise.
14101 * support/tst-test_compare.c (return_ssize_t, return_int): New.
14102 (do_test): Check int/size_t, ssize_t/size_t comparisons.
14103
14104 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14105
14106 [BZ #22637]
14107 * nptl/descr.h (stackblock, stackblock_size): Update comments.
14108 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
14109 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
14110 stacksize.
14111 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14112
14113 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
14114
14115 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14116 Add s_sincosf-sse2 and s_sincosf-fma.
14117 (CFLAGS-s_sincosf-fma.c): New.
14118 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
14119 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
14120 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
14121 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
14122 __sincosf is defined.
14123
14124 2018-01-08 Florian Weimer <fweimer@redhat.com>
14125
14126 * nptl/tst-thread-exit-clobber.cc: New file.
14127 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
14128 C++11 mode.
14129 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
14130 (tests): Add tst-thread-exit-clobber.
14131 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
14132
14133 2018-01-08 Florian Weimer <fweimer@redhat.com>
14134
14135 * support/check.h (support_static_assert): Define.
14136 (TEST_COMPARE): Use it.
14137
14138 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
14139
14140 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
14141 [!__RLIM_T_MATCHES_RLIM64_T]
14142 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
14143 __getrlimit64. Add libc_hidden_weak.
14144
14145 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
14146
14147 * elf/elf.h (R_RISCV_NONE): New define.
14148 (R_RISCV_32): Likewise.
14149 (R_RISCV_64): Likewise.
14150 (R_RISCV_RELATIVE): Likewise.
14151 (R_RISCV_COPY): Likewise.
14152 (R_RISCV_JUMP_SLOT): Likewise.
14153 (R_RISCV_TLS_DTPMOD32): Likewise.
14154 (R_RISCV_TLS_DTPMOD64): Likewise.
14155 (R_RISCV_TLS_DTPREL32): Likewise.
14156 (R_RISCV_TLS_DTPREL64): Likewise.
14157 (R_RISCV_TLS_TPREL32): Likewise.
14158 (R_RISCV_TLS_TPREL64): Likewise.
14159 * Makerules (make-link-multidir): Make directories before linking into
14160 them.
14161 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
14162 define.
14163 (VDSO_HASH_LINUX_4_15): Likewise.
14164 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
14165 in subdirectories of lib.
14166 * nptl/Makefile (/librt.so): Always depend on
14167 "$(shared-thread-library)".
14168
14169 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14170
14171 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
14172 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
14173 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
14174 (___tls_get_addr).
14175 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
14176 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
14177 "-O2 -march=i686".
14178 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
14179 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
14180 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
14181 * sysdeps/gnu/glob-lstat-compat.c: New file.
14182 * sysdeps/gnu/glob64-lstat-compat.c: New file.
14183 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
14184
14185 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14186
14187 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
14188 Reserve 16 chars to reloc_addr before calling _itoa_word.
14189
14190 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
14191
14192 [BZ #22678]
14193 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
14194 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
14195
14196 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
14197 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
14198
14199 * resource/tst-getrlimit.c: Add copyright header.
14200
14201 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
14202 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14203
14204 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
14205 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
14206 Define __GI_getrlimit64 as weak alias of __getrlimit64.
14207 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
14208 instead.
14209 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
14210 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
14211 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
14212 RLIM64_INFINITY): Fix values to match the kernel ones.
14213 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
14214 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
14215 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
14216 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
14217 getrlimit64@@GLIBC_2_27.
14218 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
14219 and setrlimit64.
14220 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
14221 getrlimit, setrlimit, getrlimit64 and setrlimit64.
14222 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
14223 setrlimit, getrlimit64 and setrlimit64.
14224
14225 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
14226
14227 [BZ #22648]
14228 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
14229 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
14230
14231 2018-01-04 Joseph Myers <joseph@codesourcery.com>
14232
14233 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
14234 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
14235 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
14236
14237 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14238
14239 [BZ #15479]
14240 [BZ #22666]
14241 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
14242 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
14243
14244 [BZ #15479]
14245 [BZ #22665]
14246 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
14247 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
14248 * sysdeps/alpha/fpu/s_floor.c: Likewise.
14249 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
14250
14251 2018-01-04 Florian Weimer <fweimer@redhat.com>
14252
14253 [BZ #22667]
14254 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
14255 Align the stack before calling exit.
14256 * stdlib/tst-makecontext-align.c: New file.
14257 * stdlib/Makefile (tests): Add tst-makecontext-align.
14258
14259 2018-01-04 Florian Weimer <fweimer@redhat.com>
14260
14261 Add support for calling dlvsym from libc.so.
14262 * include/dlfcn.h (__libc_dlvsym): Declare.
14263 * elf/Makefile (tests-static-internal): Add
14264 tst-libc_dlvsym-static.
14265 (tests-internal): Add tst-libc_dlvsym.
14266 (modules-names): Add tst-libc_dlvsym-dso.
14267 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
14268 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
14269 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
14270 object tst-libc_dlvsym-dso.so needs to be built before running
14271 these tests.
14272 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
14273 * elf/Versions: Export __libc_dlvsym.
14274 * elf/dl-libc.c (struct do_dlvsym_args): New.
14275 (do_dlvsym, __libc_dlvsym): New functions.
14276 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
14277 (_dl_open_hook2): New variable.
14278 (__libc_register_dl_open_hook): Set it.
14279 * elf/tst-libc_dlvsym-dso.c: New file.
14280 * elf/tst-libc_dlvsym-static.c: Likewise.
14281 * elf/tst-libc_dlvsym.c: Likewise.
14282 * elf/tst-libc_dlvsym.h: Likewise.
14283
14284 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14285
14286 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
14287 include <sys/mount.h>.
14288
14289 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
14290
14291 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
14292 Add __NO_MATH_ERRNO__ check.
14293
14294 2018-01-02 Joseph Myers <joseph@codesourcery.com>
14295
14296 * sysdeps/mips/mips32/libm-test-ulps: Update.
14297 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14298
14299 2018-01-02 Florian Weimer <fweimer@redhat.com>
14300
14301 * misc/tst-pselect.c: Add copyright header.
14302
14303 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
14304
14305 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
14306 comment.
14307 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
14308 comment.
14309 (settrlimit): Rename into setrlimit.
14310 (__sttrlimit): Rename into __setrlimit.
14311
14312 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
14313 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
14314 never defined in that case.
14315
14316 2018-01-02 Joseph Myers <joseph@codesourcery.com>
14317
14318 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14319
14320 * sysdeps/arm/libm-test-ulps: Update.
14321
14322 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
14323 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
14324
14325 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14326
14327 * NEWS: Add cosf and sincosf to list of optimized functions.
14328
14329 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
14330
14331 [BZ #22660]
14332 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
14333 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
14334 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
14335 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
14336
14337 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
14338
14339 [BZ #22433]
14340 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
14341
14342 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
14343 making a copy of it.
14344
14345 2018-01-01 Joseph Myers <joseph@codesourcery.com>
14346
14347 * manual/texinfo.tex: Update to version 2017-12-26.21 with
14348 trailing whitespace removed.
14349 * scripts/config.guess: Update to version 2018-01-01.
14350 * scripts/config.sub: Update to version 2018-01-01.
14351 * scripts/move-if-change: Update from gnulib.
14352
14353 * NEWS: Update copyright dates.
14354 * catgets/gencat.c (print_version): Likewise.
14355 * csu/version.c (banner): Likewise.
14356 * debug/catchsegv.sh: Likewise.
14357 * debug/pcprofiledump.c (print_version): Likewise.
14358 * debug/xtrace.sh (do_version): Likewise.
14359 * elf/ldconfig.c (print_version): Likewise.
14360 * elf/ldd.bash.in: Likewise.
14361 * elf/pldd.c (print_version): Likewise.
14362 * elf/sotruss.sh: Likewise.
14363 * elf/sprof.c (print_version): Likewise.
14364 * iconv/iconv_prog.c (print_version): Likewise.
14365 * iconv/iconvconfig.c (print_version): Likewise.
14366 * locale/programs/locale.c (print_version): Likewise.
14367 * locale/programs/localedef.c (print_version): Likewise.
14368 * login/programs/pt_chown.c (print_version): Likewise.
14369 * malloc/memusage.sh (do_version): Likewise.
14370 * malloc/memusagestat.c (print_version): Likewise.
14371 * malloc/mtrace.pl: Likewise.
14372 * manual/libc.texinfo: Likewise.
14373 * nptl/version.c (banner): Likewise.
14374 * nscd/nscd.c (print_version): Likewise.
14375 * nss/getent.c (print_version): Likewise.
14376 * nss/makedb.c (print_version): Likewise.
14377 * posix/getconf.c (main): Likewise.
14378 * scripts/test-installation.pl: Likewise.
14379 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
14380
14381 * All files with FSF copyright notices: Update copyright dates
14382 using scripts/update-copyrights.
14383 * locale/programs/charmap-kw.h: Regenerated.
14384 * locale/programs/locfile-kw.h: Likewise.
14385
14386 2017-12-31 Zack Weinberg <zackw@panix.com>
14387
14388 * libio/bits/libio-ldbl.h: Correct check for improper
14389 inclusion. Add own multiple include guard.
14390
14391 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
14392 Dmitry V. Levin <ldv@altlinux.org>
14393
14394 [BZ #22625]
14395 CVE-2017-16997
14396 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
14397 string token expansion. Check for NULL pointer or empty string possibly
14398 returned by expand_dynamic_string_token.
14399 (decompose_rpath): Check for empty path after dynamic string
14400 token expansion.
14401
14402 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
14403
14404 [BZ #22433]
14405 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
14406
14407 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
14408 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
14409 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
14410 and PTRACE_SYSCALL.
14411 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
14412 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14413 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14414 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14415 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14416 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14417
14418 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
14419 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14420 __ptrace_peeksiginfo_flags, ptrace): Move to ...
14421 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
14422 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14423 bits/ptrace-shared.h.
14424 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
14425 <bits/ptrace-shared.h>.
14426 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14427 __ptrace_peeksiginfo_flags, ptrace): Remove.
14428 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14429 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14430 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14431 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14432 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14433
14434 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14435
14436 [BZ #17804]
14437 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
14438 end of the loop. Improve comments.
14439
14440 2017-12-29 Zack Weinberg <zackw@panix.com>
14441
14442 [BZ #22615]
14443 * manual/errno.texi (Checking for Errors): Explicitly say that errno
14444 might be set on success.
14445
14446 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14447
14448 [BZ #22611]
14449 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
14450 is unchanged on success.
14451
14452 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
14453
14454 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
14455 updated.
14456 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
14457 expand_dynamic_string_token): Likewise.
14458 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
14459 is_path argument.
14460
14461 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
14462 contains ':'.
14463
14464 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
14465 is set and name contains ':', and all code depending on these checks.
14466
14467 2017-12-24 Zack Weinberg <zackw@panix.com>
14468
14469 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
14470 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
14471 respectively.
14472 * libio/libio.h: Rename the original version of this file to
14473 libio/bits/libio.h. Error out if not included by stdio.h or the
14474 stub libio.h.
14475 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
14476 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
14477 if not included by bits/libio.h or the stub _G_config.h.
14478 * sysdeps/unix/sysv/linux/_G_config.h: Move to
14479 sysdeps/unix/sysv/linux/bits. Error out if not included by
14480 bits/libio.h or the stub _G_config.h.
14481 * libio/stdio.h: Include bits/libio.h, not libio.h.
14482 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
14483 well as libio.h and _G_config.h.
14484
14485 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
14486 * libio/strfile.h, stdio-common/vfscanf.c
14487 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
14488 Include stdio.h, not _G_config.h nor libio.h.
14489 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
14490 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
14491
14492 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
14493
14494 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
14495
14496 [BZ #22347]
14497 * stdlib/getrandom.c (getrandom): Fix comment.
14498 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
14499
14500 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
14501
14502 [BZ #21161]
14503 * manual/arith.texi (strtoul): Fix a typo.
14504
14505 [BZ #22596]
14506 * manual/arith.texi (finite): Fix the description of the return
14507 value.
14508
14509 2017-12-22 Eric Blake <ebb9@byu.net>
14510
14511 Avoid gcc warnings on cygwin
14512 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14513 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14514 Avoid unused variable.
14515
14516 2017-12-22 Florian Weimer <fweimer@redhat.com>
14517
14518 * io/Makefile (routines): Add copy_file_range.
14519 (tests): Add tst-copy_file_range.
14520 (tests-static, tests-internal): Add tst-copy_file_range-compat.
14521 * io/Versions (GLIBC_2.27): Export copy_file_range.
14522 * io/copy_file_range-compat.c: New file.
14523 * io/copy_file_range.c: Likewise.
14524 * io/tst-copy_file_range-compat.c: Likewise.
14525 * io/tst-copy_file_range.c: Likewise.
14526 * manual/llio.texi (Copying File Data): New section.
14527 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
14528 * support/Makefile (libsupport-routines): Add support-xfstat,
14529 xftruncate, xlseek.
14530 * support/support-xfstat.c: New file.
14531 * support/xftruncate.c: Likewise.
14532 * support/xlseek.c: Likewise.
14533 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
14534 * sysdeps/unix/sysv/linux/**.abilist: Update.
14535 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
14536
14537 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
14538
14539 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14540 disable-multi-arch variant to aarch64-linux-gnu.
14541
14542 2017-12-20 Joseph Myers <joseph@codesourcery.com>
14543
14544 * manual/texinfo.tex: Update to version 2017-12-18.20 with
14545 trailing whitespace removed.
14546 * scripts/config.guess: Update to version 2017-12-17.
14547 * scripts/config.sub: Update to version 2017-11-23.
14548 * scripts/install-sh: Update to version 2017-09-23.17.
14549 * scripts/move-if-change: Update to version 2017-09-13 06:45.
14550
14551 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14552
14553 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
14554 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
14555 * sysdeps/tile/_mcount.S (__mcount): Likewise.
14556 * sysdeps/tile/crti.S (_init, _fini): Likewise.
14557 * sysdeps/tile/crtn.S: Likewise.
14558 * sysdeps/tile/dl-start.S (_start): Likewise.
14559 * sysdeps/tile/dl-trampoline.S: Likewise.
14560 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
14561 * sysdeps/tile/start.S (_start): Likewise.
14562 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
14563 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
14564 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
14565 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
14566 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
14567 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
14568 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
14569
14570 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
14571 comment.
14572 * sysdeps/tile/preconfigure: Remove tilegx folder.
14573 * sysdeps/tile/tilegx/Implies: Move definitions to ...
14574 * sysdeps/tile/Implies: ... here.
14575 * sysdeps/tile/tilegx/Makefile: Move rules to ...
14576 * sysdeps/tile/Makefile: ... here.
14577 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
14578 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
14579 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
14580 * sysdeps/tile/bits/wordsize.h: ... here.
14581 * sysdeps/tile/tilegx/*: Move to ...
14582 * sysdeps/tile/*: ... here.
14583 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
14584 * sysdeps/tile/tilegx32/Implies: ... here.
14585 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
14586 * sysdeps/tile/tilegx64/Implies: ... here.
14587 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
14588 to ...
14589 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
14590 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
14591 * sysdeps/unix/sysv/linux/tile/*: ... here.
14592 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
14593 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
14594 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
14595 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
14596
14597 * README: Remove tilepro-*-linux-gnu from supported architecture.
14598 * scripts/build-many-glibcs.py: Likewise.
14599 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
14600 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
14601 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
14602 elf_machine_matches_host, elf_machine_dynamic,
14603 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
14604 howto, elf_machine_rela): Likewise.
14605 * sysdeps/tile/dl-start.S (_start): Likewise.
14606 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
14607 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
14608 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
14609 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
14610 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
14611 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
14612 Likewise.
14613 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
14614 * sysdeps/tile/preconfigure: Likewise.
14615 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
14616 POINTER_CHK_GUARD): Likewise.
14617 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
14618 * sysdeps/tile/start.S (_start): Likewise.
14619 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
14620 Likewise.
14621 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
14622 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
14623 CMOVNEZ): Remove.
14624 * sysdeps/unix/sysv/linux/tile/bits/environments.h
14625 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
14626 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
14627 Likewise.
14628 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
14629 * sysdeps/tile/tilepro/Implies: Remove file.
14630 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
14631 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
14632 * sysdeps/tile/tilepro/memchr.c: Likewise.
14633 * sysdeps/tile/tilepro/memcpy.S: Likewise.
14634 * sysdeps/tile/tilepro/memset.c: Likewise.
14635 * sysdeps/tile/tilepro/memusage.h: Likewise.
14636 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
14637 * sysdeps/tile/tilepro/strchr.c: Likewise.
14638 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
14639 * sysdeps/tile/tilepro/strlen.c: Likewise.
14640 * sysdeps/tile/tilepro/strrchr.c: Likewise.
14641 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
14642 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
14643 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
14644 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
14646 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
14647 Likewise.
14648 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
14660 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
14661 tilepro mention in comment.
14662
14663 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
14664 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
14665 * nptl/pthread_join_common.c: New file: common function used on
14666 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
14667 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
14668 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
14669 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
14670 (cleanup): Move definition to pthread_join_common.c.
14671 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
14672 Remove superflous checks.
14673 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
14674 Likewise.
14675
14676 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
14677
14678 * sysdeps/aarch64/libm-test-ulps: Update.
14679
14680 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14681
14682 * sysdeps/aarch64/memset.S (MEMSET): Define.
14683
14684 2017-12-20 Florian Weimer <fweimer@redhat.com>
14685
14686 [BZ #22635]
14687 nptl: Provide full implementation of pthread_self in libc.so.
14688 * nptl/Makefile (routines): Add pthread_self.
14689 (libpthread-routines): Replace pthread_self with
14690 compat-pthread_self.
14691 * nptl/forward.c (pthread_self): Remove.
14692 * nptl/nptl-init.c (pthread_functions): Do not initialize
14693 ptr_pthread_self.
14694 * nptl/pthread_self.c (pthread_self): Remove weak alias.
14695 * nptl/compat-pthread_self.c: New file.
14696 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
14697 Remove ptr_pthread_self.
14698
14699 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
14700
14701 * posix/regcomp.c: Fix spelling in comments.
14702 * posix/regex.h: Likewise.
14703 * posix/regex_internal.c: Likewise.
14704 * posix/regexec.c: Likewise.
14705
14706 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14707
14708 [BZ #22377]
14709 * math/Makefile [C++] (tests): Add test for iseqsig.
14710 * math/math.h [C++] (iseqsig): New implementation, which does
14711 not rely on __MATH_TG/__builtin_types_compatible_p.
14712 * math/test-math-iseqsig.cc: New file.
14713 * sysdeps/powerpc/powerpc64le/Makefile
14714 (CFLAGS-test-math-iseqsig.cc): New variable.
14715
14716 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
14717
14718 * elf/dl-load.c (is_trusted_path): Remove.
14719 (fillin_rpath): Remove check_trusted argument and its use,
14720 all callers changed.
14721
14722 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14723
14724 [BZ #22630]
14725 * Makeconfig (link-pie-before-libc): Replace -pie with
14726 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
14727 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
14728 (tst-dlopen-aout-no-pie): New.
14729 (LDFLAGS-tst-prelink): Removed.
14730 (tst-prelink-no-pie): New.
14731 (LDFLAGS-tst-main1): Removed.
14732 (tst-main1-no-pie): New.
14733 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
14734 (tst-gmon-no-pie): New.
14735
14736 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14737
14738 * manual/install.texi: Document that --enable-static-pie
14739 implies PIE.
14740 * INSTALL: Regenerated.
14741
14742 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
14743
14744 [BZ #21309]
14745 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
14746 unsigned.
14747
14748 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14749
14750 Revert:
14751
14752 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14753
14754 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14755
14756 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14757
14758 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
14759 <errno.h>. Include "eexp.tbl".
14760 (half): New constant.
14761 (one): Likewise.
14762 (__ieee754_exp): Rewrite.
14763 (__slowexp): Remove prototype.
14764 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
14765 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
14766 * sysdeps/i386/fpu/slowexp.c: Likewise.
14767 * sysdeps/ia64/fpu/slowexp.c: Likewise.
14768 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
14769 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
14770 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
14771 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14772 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
14773 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
14774 comment.
14775 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
14776 (CPPFLAGS-slowexp.c): Remove variable.
14777 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14778 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
14779 (CFLAGS-slowexp-fma.c): Remove variable.
14780 (CFLAGS-slowexp-fma4.c): Likewise.
14781 (CFLAGS-slowexp-avx.c): Likewise.
14782 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
14783 define as macro.
14784 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
14785 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
14786 * math/Makefile (type-double-routines): Remove slowexp.
14787 * manual/probes.texi (slowexp_p6): Remove.
14788 (slowexp_p32): Likewise.
14789
14790 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14791
14792 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
14793 arithmetic.
14794
14795 * lib/glob.c (glob): Do not pass NULL to mempcpy.
14796
14797 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14798
14799 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14800
14801 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14802
14803 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
14804 <errno.h>. Include "eexp.tbl".
14805 (half): New constant.
14806 (one): Likewise.
14807 (__ieee754_exp): Rewrite.
14808 (__slowexp): Remove prototype.
14809 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
14810 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
14811 * sysdeps/i386/fpu/slowexp.c: Likewise.
14812 * sysdeps/ia64/fpu/slowexp.c: Likewise.
14813 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
14814 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
14815 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
14816 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14817 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
14818 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
14819 comment.
14820 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
14821 (CPPFLAGS-slowexp.c): Remove variable.
14822 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14823 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
14824 (CFLAGS-slowexp-fma.c): Remove variable.
14825 (CFLAGS-slowexp-fma4.c): Likewise.
14826 (CFLAGS-slowexp-avx.c): Likewise.
14827 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
14828 define as macro.
14829 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
14830 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
14831 * math/Makefile (type-double-routines): Remove slowexp.
14832 * manual/probes.texi (slowexp_p6): Remove.
14833 (slowexp_p32): Likewise.
14834
14835 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14836 James Clarke <jrtc27@jrtc27.com>
14837
14838 [BZ #22603]
14839 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
14840 addition.
14841
14842 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14843
14844 [BZ #22605]
14845 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
14846 code.
14847
14848 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14849
14850 [BZ #22563]
14851 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14852 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
14853 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14854 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
14855 to feature_1.
14856
14857 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14858
14859 [BZ #22563]
14860 * bits/types/__cancel_jmp_buf_tag.h: New file.
14861 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
14862 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
14863 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
14864 * nptl/Makefile (headers): Add
14865 bits/types/__cancel_jmp_buf_tag.h.
14866 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
14867 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
14868 * sysdeps/nptl/pthread.h: Include
14869 <bits/types/__cancel_jmp_buf_tag.h>.
14870 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
14871 __cancel_jmp_buf.
14872 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
14873
14874 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
14875
14876 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14877 --enable-static-pie variants to x86_64, x32 and i686.
14878
14879 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14880
14881 [BZ #22631]
14882 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
14883 argument for attrubutes. All callers changed.
14884 (__inline_mathop1): Likewise. All callers changed.
14885 (__inline_mathop): Likewise. All callers changed.
14886 [__USE_MISC] (scalbn): Use __inline_forward instead of
14887 __inline_forward_c.
14888 [__USE_ISOC99] (scalbln): Likewise.
14889 [__USE_ISOC99] (nearbyint): Likewise.
14890 [__USE_ISOC99] (lrint): Likewise.
14891 [__USE_MISC] (scalbnf): Likewise.
14892 [__USE_ISOC99] (scalblnf): Likewise.
14893 [__USE_ISOC99] (nearbyintf): Likewise.
14894 [__USE_ISOC99] (lrintf): Likewise.
14895 [__USE_MISC] (scalbnl): Likewise.
14896 [__USE_ISOC99] (scalblnl): Likewise.
14897 [__USE_ISOC99] (nearbyintl): Likewise.
14898 [__USE_ISOC99] (lrintl): Likewise.
14899 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
14900 __inline_mathop and __m81_defun changed.
14901
14902 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
14903 CPU or FPU for ARM hard-float configurations.
14904
14905 2017-12-18 Joseph Myers <joseph@codesourcery.com>
14906
14907 * nptl/tst-attr3.c: Include <libc-diag.h>.
14908 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
14909
14910 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
14911
14912 * string/tester.c (test_strncat): Also disable -Warray-bounds
14913 warnings for two tests.
14914
14915 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
14916
14917 [BZ #22614]
14918 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
14919 $(cc-pie-default) == yes.
14920 * config.make.in (cc-pie-default): New.
14921 * configure.ac (libc_cv_pie_default): Renamed to ...
14922 (libc_cv_cc_pie_default): This.
14923 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
14924 * configure: Regenerated.
14925
14926 2017-12-18 Florian Weimer <fweimer@redhat.com>
14927
14928 [BZ #20204]
14929 ld.so: Harden dl-libc/libdl hooks.
14930 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
14931 (rtld_active): New function.
14932 * dlfcn/dladdr.c (__dladdr): Call it.
14933 * dlfcn/dladdr1.c (__dladdr1): Likewise.
14934 * dlfcn/dlclose.c (__dlcose): Likewise.
14935 * dlfcn/dlerror.c (__dlerror): Likewise.
14936 * dlfcn/dlinfo.c (__dlinfo): Likewise.
14937 * dlfcn/dlmopen.c (__dlmopen): Likewise.
14938 * dlfcn/dlopen.c (__dlopen): Likewise.
14939 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
14940 * dlfcn/dlsym.c (__dlsym): Likewise.
14941 * dlfcn/dlvsym.c (__dlvsym): Likewise.
14942 * libio/vtables.c (_IO_vtable_check): Likewise.
14943 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
14944 (__libc_dlclose): Likewise.
14945 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
14946 assignment.
14947
14948 2017-12-18 Joseph Myers <joseph@codesourcery.com>
14949
14950 [BZ #22446]
14951 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
14952 buffers for readlink input and output.
14953
14954 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
14955
14956 [BZ #22624]
14957 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
14958 inhibit_stack_protector.
14959
14960 [BZ #22624]
14961 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
14962 inhibit_stack_protector.
14963
14964 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
14965
14966 [BZ #22627]
14967 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
14968 code and invocation.
14969
14970 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
14971
14972 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
14973
14974 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
14975
14976 [BZ #22505]
14977 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
14978
14979 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14980
14981 * sysdeps/s390/fpu/libm-test-ulps: Update.
14982
14983 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14984
14985 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14986
14987 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14988
14989 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
14990 constants to s_sincosf.h file.
14991 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14992 * sysdeps/ieee754/flt-32/s_sincosf.c: New
14993 implementation.
14994 * sysdeps/ieee754/flt-32/s_sincosf.h:
14995 New file.
14996
14997 2017-12-12 Carlos O'Donell <carlos@redhat.com>
14998
14999 [BZ #14681]
15000 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
15001 before mtrace.
15002
15003 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
15004
15005 [BZ #19574]
15006 * INSTALL: Regenerated.
15007 * Makeconfig (real-static-start-installed-name): New.
15008 (pic-default): Updated for --enable-static-pie.
15009 (pie-default): New for --enable-static-pie.
15010 (default-pie-ldflag): Likewise.
15011 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
15012 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
15013 Replace $(static-start-installed-name) with
15014 $(real-static-start-installed-name).
15015 (+prectorT): Updated for --enable-static-pie.
15016 (+postctorT): Likewise.
15017 (CFLAGS-.o): Add $(pie-default).
15018 (CFLAGS-.op): Likewise.
15019 * NEWS: Mention --enable-static-pie.
15020 * config.h.in (ENABLE_STATIC_PIE): New.
15021 * configure.ac (--enable-static-pie): New configure option.
15022 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
15023 (have-static-pie): Likewise.
15024 Enable static PIE if linker supports --no-dynamic-linker.
15025 (ENABLE_STATIC_PIE): New AC_DEFINE.
15026 (enable-static-pie): New LIBC_CONFIG_VAR.
15027 * configure: Regenerated.
15028 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
15029 gr$(start-installed-name) for --enable-static-pie.
15030 (extra-objs): Likewise.
15031 (install-lib): Likewise.
15032 (extra-objs): Add static-reloc.o and static-reloc.os
15033 ($(objpfx)$(start-installed-name)): Also depend on
15034 $(objpfx)static-reloc.o.
15035 ($(objpfx)r$(start-installed-name)): New.
15036 ($(objpfx)g$(start-installed-name)): Also depend on
15037 $(objpfx)static-reloc.os.
15038 ($(objpfx)gr$(start-installed-name)): New.
15039 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
15040 in libc.a.
15041 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
15042 initimage.
15043 * csu/static-reloc.c: New file.
15044 * elf/Makefile (routines): Add dl-reloc-static-pie.
15045 (elide-routines.os): Likewise.
15046 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
15047 (tst-tls1-static-non-pie-no-pie): New.
15048 * elf/dl-reloc-static-pie.c: New file.
15049 * elf/dl-support.c (_dl_get_dl_main_map): New function.
15050 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
15051 STATIC_PIE_BOOTSTRAP.
15052 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15053 * gmon/Makefile (tests): Add tst-gmon-static-pie.
15054 (tests-static): Likewise.
15055 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
15056 (tst-gmon-static-no-pie): New.
15057 (CFLAGS-tst-gmon-static-pie.c): Likewise.
15058 (CRT-tst-gmon-static-pie): Likewise.
15059 (tst-gmon-static-pie-ENV): Likewise.
15060 (tests-special): Likewise.
15061 ($(objpfx)tst-gmon-static-pie.out): Likewise.
15062 (clean-tst-gmon-static-pie-data): Likewise.
15063 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
15064 * gmon/tst-gmon-static-pie.c: New file.
15065 * manual/install.texi: Document --enable-static-pie.
15066 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
15067 (_dl_get_dl_main_map): Likewise.
15068 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
15069 * sysdeps/x86_64/configure.ac: Likewise.
15070 * sysdeps/i386/configure: Regenerated.
15071 * sysdeps/x86_64/configure: Likewise.
15072 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
15073 (ASFLAGS-.op): Likewise.
15074
15075 2017-12-15 Joseph Myers <joseph@codesourcery.com>
15076
15077 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
15078 * posix/tst-mmap-offset.c (fname): Use /tmp.
15079 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
15080
15081 2017-12-15 Steve Ellcey <sellcey@cavium.com>
15082
15083 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
15084
15085 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
15086
15087 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
15088 errno.
15089
15090 2017-12-15 Joseph Myers <joseph@codesourcery.com>
15091
15092 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15093 --with-float=hard for arm-linux-gnueabihf configurations.
15094
15095 [BZ #14121]
15096 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
15097 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
15098 ($(mo-installed)): Use $(objpfx)%.mo.
15099 (realclean): Remove rule.
15100
15101 * po/Makefile (linguas): Remove rule and dependencies.
15102 (linguas.mo): Likewise.
15103 (.PHONY): Do not depend on linguas and linguas.mo.
15104 (podir): Remove variable.
15105 (pofiles): Likewise.
15106 [$(pofiles)] (%.po): Remove rule.
15107
15108 * sysdeps/sparc/sparc32/Makefile
15109 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
15110 start-of-line whitespace in argument of echo.
15111 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
15112 with whitespace. Generate __wrap_.udiv alias.
15113 * sysdeps/sparc/sparc32/rem.S: Regenerated.
15114 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
15115 * sysdeps/sparc/sparc32/udiv.S: Likewise.
15116 * sysdeps/sparc/sparc32/urem.S: Likewise.
15117
15118 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15119
15120 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
15121 for aligned inputs.
15122
15123 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15124
15125 * benchtests/bench-strcmp.c: Print output in JSON format.
15126
15127 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
15128
15129 2017-12-14 Florian Weimer <fweimer@redhat.com>
15130
15131 [BZ #22607]
15132 CVE-2017-1000409
15133 * elf/dl-load.c (_dl_init_paths): Compute number of components in
15134 the expanded path string.
15135
15136 2017-12-14 Florian Weimer <fweimer@redhat.com>
15137
15138 [BZ #22606]
15139 CVE-2017-1000408
15140 * elf/dl-load.c (system_dirs): Update comment.
15141 (nsystem_dirs_len): Use array_length.
15142 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
15143
15144 2017-12-14 Florian Weimer <fweimer@redhat.com>
15145
15146 Simplify compiling most of support/ outside of glibc.
15147 * support/check_addrinfo.c: Include <string.h>.
15148 * support/check_dns_packet.c: Likewise.
15149 * support/check_hostent.c: Likewise.
15150 * support/support_can_chroot.c: Include <support/xunistd.h>.
15151 * support/support_format_addrinfo.c: Include <stdlib.h>
15152 * support/support_format_dns_packet.c: Include <stdbool.h>.
15153 * support/support_format_hostent.c: Include <stdlib.h>.
15154 * support/support_format_netent.c: Likewise.
15155 * support/support_write_string.c: Include <support/xunistd.h>.
15156 * support/xdlfcn.c: Include <stddef.h>.
15157
15158 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
15159
15160 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
15161
15162 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15163 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15164
15165 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
15166 (sysdeps_routines): Add memset-niagara7.
15167 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
15168 Likewise.
15169 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
15170 file.
15171 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
15172 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
15173 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
15174 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
15175 Add niagara7 option.
15176 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
15177 memset.
15178
15179 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
15180 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
15181 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
15182 Likewise.
15183 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
15184 New file.
15185 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
15186 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
15187 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
15188 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
15189 and __memmove_niagara7.
15190 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
15191 Add niagara7 option.
15192 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
15193 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
15194 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
15195 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
15196 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
15197
15198 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
15199
15200 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
15201 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
15202 * sysdeps/sparc/sparc64/memmove.S: Likewise.
15203 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
15204
15205 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
15206 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
15207 _dl_sparc_cap_flags array.
15208 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
15209
15210 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15211
15212 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
15213 time whenever possible.
15214
15215 2017-12-12 Carlos O'Donell <carlos@redhat.com>
15216
15217 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
15218 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
15219
15220 2017-12-12 Joseph Myers <joseph@codesourcery.com>
15221
15222 * soft-fp/fmadf4.c: Move to ....
15223 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
15224 * soft-fp/fmasf4.c: Move to ....
15225 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
15226 * soft-fp/fmatf4.c: Move to ....
15227 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
15228 * sysdeps/ieee754/soft-fp/Makefile: New file.
15229 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
15230 * sysdeps/arm/preconfigure: Regenerated.
15231 * sysdeps/arm/nofpu/Implies: New file.
15232 * sysdeps/arm/s_fma.c: Remove file.
15233 * sysdeps/arm/s_fmaf.c: Likewise.
15234 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
15235 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
15236 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
15237 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
15238 * sysdeps/microblaze/s_fma.c: Remove file.
15239 * sysdeps/microblaze/s_fmaf.c: Likewise.
15240 * sysdeps/mips/mips32/nofpu/Implies: New file.
15241 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
15242 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
15243 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
15244 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
15245 * sysdeps/mips/ieee754/s_fma.c: Remove file.
15246 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
15247 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
15248 implementation.
15249 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
15250 * sysdeps/nios2/s_fma.c: Remove file.
15251 * sysdeps/nios2/s_fmaf.c: Likewise.
15252 * sysdeps/sh/nofpu/Implies: New file.
15253 * sysdeps/sh/s_fma.c: Remove file.
15254 * sysdeps/sh/s_fmaf.c: Likewise.
15255 * sysdeps/tile/Implies: Add ieee754/soft-fp.
15256 * sysdeps/tile/s_fma.c: Remove file.
15257 * sysdeps/tile/s_fmaf.c: Likewise.
15258
15259 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
15260
15261 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15262 Add s_cosf-sse2 and s_cosf-fma.
15263 (CFLAGS-s_cosf-fma.c): New.
15264 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
15265 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
15266 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
15267
15268 2017-12-12 Steve Ellcey <sellcey@cavium.com>
15269
15270 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
15271
15272 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15273
15274 * libio/Makefile (tests): Add tst-bz22415.
15275 (tst-bz22415-ENV): New rule.
15276 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
15277 (tests-special): Add tst-bz22415-mem.out.
15278 ($(objpfx)tst-bz22415-mem.out): New rule.
15279 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
15280 in case of a successful seek operation.
15281 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
15282 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
15283 buffer is required.
15284 * libio/tst-bz22415.c: New test.
15285
15286 * sysdeps/ia64/fpu/libm-test-ulps: Update.
15287
15288 2017-12-12 James Clarke <jrtc27@jrtc27.com>
15289
15290 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
15291 __IPC_64 to 0 to avoid IPC_64 being set.
15292
15293 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15294
15295 [BZ #22593]
15296 * math/bits/mathcalls.h (nextafter): Remove const.
15297 (nexttoward): Likewise.
15298
15299 2017-12-12 Joseph Myers <joseph@codesourcery.com>
15300
15301 * configure.ac (--with-fp): Remove configure option.
15302 (with_fp_cond): New variable.
15303 (libc_cv_with_fp): New configure test. Use this variable instead
15304 of with_fp.
15305 * configure: Regenerated.
15306 * config.make.in (with-fp): Use @libc_cv_with_fp@.
15307 * manual/install.texi (Configuring and compiling): Remove
15308 --without-fp.
15309 * INSTALL: Regenerated.
15310 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
15311 * sysdeps/mips/preconfigure (with_fp_cond): Define.
15312 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
15313 * sysdeps/sh/preconfigure (with_fp_cond): Define.
15314 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
15315 use --without-fp to configure glibc.
15316
15317 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
15318
15319 * manual/locale.texi (nl_langinfo): Fix a typo.
15320
15321 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
15322
15323 [BZ #22588]
15324 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
15325
15326 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
15327
15328 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
15329 (CFLAGS-argp-parse.c): Likewise.
15330 (CFLAGS-argp-fmtstream.c): Likewise.
15331 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
15332 (CPPFLAGS-sha512-crypt.c): Likewise.
15333 (CPPFLAGS-md5-crypt.c): Likewise.
15334 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
15335 (CFLAGS-stack_chk_fail_local.c): Likewise.
15336 (CFLAGS-backtrace.c): Likewise.
15337 (CFLAGS-sprintf_chk.c): Likewise.
15338 (CFLAGS-snprintf_chk.c): Likewise.
15339 (CFLAGS-vsprintf_chk.c): Likewise.
15340 (CFLAGS-vsnprintf_chk.c): Likewise.
15341 (CFLAGS-asprintf_chk.c): Likewise.
15342 (CFLAGS-vasprintf_chk.c): Likewise.
15343 (CFLAGS-obprintf_chk.c): Likewise.
15344 (CFLAGS-dprintf_chk.c): Likewise.
15345 (CFLAGS-vdprintf_chk.c): Likewise.
15346 (CFLAGS-printf_chk.c): Likewise.
15347 (CFLAGS-fprintf_chk.c): Likewise.
15348 (CFLAGS-vprintf_chk.c): Likewise.
15349 (CFLAGS-vfprintf_chk.c): Likewise.
15350 (CFLAGS-gets_chk.c): Likewise.
15351 (CFLAGS-fgets_chk.c): Likewise.
15352 (CFLAGS-fgets_u_chk.c): Likewise.
15353 (CFLAGS-fread_chk.c): Likewise.
15354 (CFLAGS-fread_u_chk.c): Likewise.
15355 (CFLAGS-swprintf_chk.c): Likewise.
15356 (CFLAGS-vswprintf_chk.c): Likewise.
15357 (CFLAGS-wprintf_chk.c): Likewise.
15358 (CFLAGS-fwprintf_chk.c): Likewise.
15359 (CFLAGS-vwprintf_chk.c): Likewise.
15360 (CFLAGS-vfwprintf_chk.c): Likewise.
15361 (CFLAGS-fgetws_chk.c): Likewise.
15362 (CFLAGS-fgetws_u_chk.c): Likewise.
15363 (CFLAGS-read_chk.c): Likewise.
15364 (CFLAGS-pread_chk.c): Likewise.
15365 (CFLAGS-pread64_chk.c): Likewise.
15366 (CFLAGS-recv_chk.c): Likewise.
15367 (CFLAGS-recvfrom_chk.c): Likewise.
15368 (CFLAGS-tst-longjmp_chk.c): Likewise.
15369 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
15370 (CFLAGS-tst-longjmp_chk2.c): Likewise.
15371 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
15372 (CFLAGS-tst-longjmp_chk3.c): Likewise.
15373 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
15374 (CFLAGS-tst-chk1.c): Likewise.
15375 (CFLAGS-tst-chk2.c): Likewise.
15376 (CFLAGS-tst-chk3.c): Likewise.
15377 (CFLAGS-tst-chk4.cc): Likewise.
15378 (CFLAGS-tst-chk5.cc): Likewise.
15379 (CFLAGS-tst-chk6.cc): Likewise.
15380 (CFLAGS-tst-lfschk1.c): Likewise.
15381 (CFLAGS-tst-lfschk2.c): Likewise.
15382 (CFLAGS-tst-lfschk3.c): Likewise.
15383 (CFLAGS-tst-lfschk4.cc): Likewise.
15384 (CFLAGS-tst-lfschk5.cc): Likewise.
15385 (CFLAGS-tst-lfschk6.cc): Likewise.
15386 (CFLAGS-tst-ssp-1.c): Likewise.
15387 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
15388 (CFLAGS-scandir64.c): Likewise.
15389 (CFLAGS-scandir-tail.c): Likewise.
15390 (CFLAGS-scandir64-tail.c): Likewise.
15391 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
15392 (CFLAGS-dl-tunables.c): Likewise.
15393 (CFLAGS-dl-runtime.c): Likewise.
15394 (CFLAGS-dl-lookup.c): Likewise.
15395 (CFLAGS-dl-iterate-phdr.c): Likewise.
15396 (CFLAGS-vismain.c): Likewise.
15397 (CFLAGS-tst-linkall-static.c): Likewise.
15398 (CFLAGS-tst-linkall-static.c): Likewise.
15399 (CPPFLAGS-dl-load.c): Likewise.
15400 (CFLAGS-ldconfig.c): Likewise.
15401 (CFLAGS-dl-cache.c): Likewise.
15402 (CFLAGS-cache.c): Likewise.
15403 (CFLAGS-rtld.c): Likewise.
15404 (CFLAGS-multiload.c): Likewise.
15405 (CFLAGS-filtmod1.c): Likewise.
15406 (CFLAGS-tst-align.c): Likewise.
15407 (CFLAGS-tst-align2.c): Likewise.
15408 (CFLAGS-tst-alignmod.c): Likewise.
15409 (CFLAGS-tst-alignmod2.c): Likewise.
15410 (CPPFLAGS-tst-execstack.c): Likewise.
15411 (CFLAGS-tst-ptrguard1-static.c): Likewise.
15412 (CFLAGS-tst-latepthreadmod.c): Likewise.
15413 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
15414 (CFLAGS-getgrnam_r.c): Likewise.
15415 (CFLAGS-getgrent_r.c): Likewise.
15416 (CFLAGS-getgrent.c): Likewise.
15417 (CFLAGS-fgetgrent.c): Likewise.
15418 (CFLAGS-fgetgrent_r.c): Likewise.
15419 (CFLAGS-putgrent.c): Likewise.
15420 (CFLAGS-initgroups.c): Likewise.
15421 (CFLAGS-getgrgid.c): Likewise.
15422 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
15423 (CFLAGS-getsgent.c): Likewise.
15424 (CFLAGS-fgetsgent.c): Likewise.
15425 (CFLAGS-fgetsgent_r.c): Likewise.
15426 (CFLAGS-putsgent.c): Likewise.
15427 (CFLAGS-getsgnam.c): Likewise.
15428 (CFLAGS-getsgnam_r.c): Likewise.
15429 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
15430 (CFLAGS-iconv_charmap.c): Likewise.
15431 (CFLAGS-dummy-repertoire.c): Likewise.
15432 (CFLAGS-charmap.c): Likewise.
15433 (CFLAGS-linereader.c): Likewise.
15434 (CFLAGS-simple-hash.c): Likewise.
15435 (CFLAGS-gconv_conf.c): Likewise.
15436 (CFLAGS-iconvconfig.c): Likewise.
15437 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15438 (CFLAGS-gethstbyad.c): Likewise.
15439 (CFLAGS-gethstbynm_r.c): Likewise.
15440 (CFLAGS-gethstbynm.c): Likewise.
15441 (CFLAGS-gethstbynm2_r.c): Likewise.
15442 (CFLAGS-gethstbynm2.c): Likewise.
15443 (CFLAGS-gethstent_r.c): Likewise.
15444 (CFLAGS-gethstent.c): Likewise.
15445 (CFLAGS-rcmd.c): Likewise.
15446 (CFLAGS-getnetbynm_r.c): Likewise.
15447 (CFLAGS-getnetbynm.c): Likewise.
15448 (CFLAGS-getnetbyad_r.c): Likewise.
15449 (CFLAGS-getnetbyad.c): Likewise.
15450 (CFLAGS-getnetent_r.c): Likewise.
15451 (CFLAGS-getnetent.c): Likewise.
15452 (CFLAGS-getaliasent_r.c): Likewise.
15453 (CFLAGS-getaliasent.c): Likewise.
15454 (CFLAGS-getrpcent_r.c): Likewise.
15455 (CFLAGS-getrpcent.c): Likewise.
15456 (CFLAGS-getservent_r.c): Likewise.
15457 (CFLAGS-getservent.c): Likewise.
15458 (CFLAGS-getprtent_r.c): Likewise.
15459 (CFLAGS-getprtent.c): Likewise.
15460 (CFLAGS-either_ntoh.c): Likewise.
15461 (CFLAGS-either_hton.c): Likewise.
15462 (CFLAGS-getnetgrent.c): Likewise.
15463 (CFLAGS-getnetgrent_r.c): Likewise.
15464 (CFLAGS-tst-checks-posix.c): Likewise.
15465 (CFLAGS-tst-sockaddr.c): Likewise.
15466 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
15467 (CFLAGS-tst-translit.c): Likewise.
15468 (CFLAGS-tst-gettext2.c): Likewise.
15469 (CFLAGS-tst-codeset.c): Likewise.
15470 (CFLAGS-tst-gettext3.c): Likewise.
15471 (CFLAGS-tst-gettext4.c): Likewise.
15472 (CFLAGS-tst-gettext5.c): Likewise.
15473 (CFLAGS-tst-gettext6.c): Likewise.
15474 * io/Makefile (CFLAGS-open.c): Likewise.
15475 (CFLAGS-open64.c): Likewise.
15476 (CFLAGS-creat.c): Likewise.
15477 (CFLAGS-creat64.c): Likewise.
15478 (CFLAGS-fcntl.c): Likewise.
15479 (CFLAGS-poll.c): Likewise.
15480 (CFLAGS-ppoll.c): Likewise.
15481 (CFLAGS-lockf.c): Likewise.
15482 (CFLAGS-statfs.c): Likewise.
15483 (CFLAGS-fstatfs.c): Likewise.
15484 (CFLAGS-statvfs.c): Likewise.
15485 (CFLAGS-fstatvfs.c): Likewise.
15486 (CFLAGS-fts.c): Likewise.
15487 (CFLAGS-fts64.c): Likewise.
15488 (CFLAGS-ftw.c): Likewise.
15489 (CFLAGS-ftw64.c): Likewise.
15490 (CFLAGS-lockf.c): Likewise.
15491 (CFLAGS-posix_fallocate.c): Likewise.
15492 (CFLAGS-posix_fallocate64.c): Likewise.
15493 (CFLAGS-fallocate.c): Likewise.
15494 (CFLAGS-fallocate64.c): Likewise.
15495 (CFLAGS-read.c): Likewise.
15496 (CFLAGS-write.c): Likewise.
15497 (CFLAGS-test-stat.c): Likewise.
15498 (CFLAGS-test-lfs.c): Likewise.
15499 * libio/Makefile (CFLAGS-fileops.c): Likewise.
15500 (CFLAGS-fputc.c): Likewise.
15501 (CFLAGS-fputwc.c): Likewise.
15502 (CFLAGS-freopen64.c): Likewise.
15503 (CFLAGS-freopen.c): Likewise.
15504 (CFLAGS-fseek.c): Likewise.
15505 (CFLAGS-fseeko64.c): Likewise.
15506 (CFLAGS-fseeko.c): Likewise.
15507 (CFLAGS-ftello64.c): Likewise.
15508 (CFLAGS-ftello.c): Likewise.
15509 (CFLAGS-fwide.c): Likewise.
15510 (CFLAGS-genops.c): Likewise.
15511 (CFLAGS-getc.c): Likewise.
15512 (CFLAGS-getchar.c): Likewise.
15513 (CFLAGS-getwc.c): Likewise.
15514 (CFLAGS-getwchar.c): Likewise.
15515 (CFLAGS-iofclose.c): Likewise.
15516 (CFLAGS-iofflush.c): Likewise.
15517 (CFLAGS-iofgetpos64.c): Likewise.
15518 (CFLAGS-iofgetpos.c): Likewise.
15519 (CFLAGS-iofgets.c): Likewise.
15520 (CFLAGS-iofgetws.c): Likewise.
15521 (CFLAGS-iofputs.c): Likewise.
15522 (CFLAGS-iofputws.c): Likewise.
15523 (CFLAGS-iofread.c): Likewise.
15524 (CFLAGS-iofsetpos64.c): Likewise.
15525 (CFLAGS-iofsetpos.c): Likewise.
15526 (CFLAGS-ioftell.c): Likewise.
15527 (CFLAGS-iofwrite.c): Likewise.
15528 (CFLAGS-iogetdelim.c): Likewise.
15529 (CFLAGS-iogetline.c): Likewise.
15530 (CFLAGS-iogets.c): Likewise.
15531 (CFLAGS-iogetwline.c): Likewise.
15532 (CFLAGS-ioputs.c): Likewise.
15533 (CFLAGS-ioseekoff.c): Likewise.
15534 (CFLAGS-ioseekpos.c): Likewise.
15535 (CFLAGS-iosetbuffer.c): Likewise.
15536 (CFLAGS-iosetvbuf.c): Likewise.
15537 (CFLAGS-ioungetc.c): Likewise.
15538 (CFLAGS-ioungetwc.c): Likewise.
15539 (CFLAGS-oldfileops.c): Likewise.
15540 (CFLAGS-oldiofclose.c): Likewise.
15541 (CFLAGS-oldiofgetpos64.c): Likewise.
15542 (CFLAGS-oldiofgetpos.c): Likewise.
15543 (CFLAGS-oldiofsetpos64.c): Likewise.
15544 (CFLAGS-oldiofsetpos.c): Likewise.
15545 (CFLAGS-peekc.c): Likewise.
15546 (CFLAGS-putc.c): Likewise.
15547 (CFLAGS-putchar.c): Likewise.
15548 (CFLAGS-putwc.c): Likewise.
15549 (CFLAGS-putwchar.c): Likewise.
15550 (CFLAGS-rewind.c): Likewise.
15551 (CFLAGS-wfileops.c): Likewise.
15552 (CFLAGS-wgenops.c): Likewise.
15553 (CFLAGS-oldiofopen.c): Likewise.
15554 (CFLAGS-iofopen.c): Likewise.
15555 (CFLAGS-iofopen64.c): Likewise.
15556 (CFLAGS-oldtmpfile.c): Likewise.
15557 (CFLAGS-tst_putwc.c): Likewise.
15558 * locale/Makefile (CFLAGS-md5.c): Likewise.
15559 (CFLAGS-charmap.c): Likewise.
15560 (CFLAGS-locfile.c): Likewise.
15561 (CFLAGS-charmap-dir.c): Likewise.
15562 * login/Makefile (CFLAGS-grantpt.c): Likewise.
15563 (CFLAGS-getpt.c): Likewise.
15564 (CFLAGS-pt_chown.c): Likewise.
15565 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
15566 (CFLAGS-obstack.c): Likewise.
15567 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
15568 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
15569 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
15570 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
15571 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
15572 (CFLAGS-test-tgmath.c): Likewise.
15573 (CFLAGS-test-tgmath2.c): Likewise.
15574 (CFLAGS-test-tgmath-ret.c): Likewise.
15575 (CFLAGS-test-powl.c): Likewise.
15576 (CFLAGS-test-snan.c): Likewise.
15577 (CFLAGS-test-signgam-finite.c): Likewise.
15578 (CFLAGS-test-signgam-finite-c99.c): Likewise.
15579 (CFLAGS-test-signgam-finite-c11.c): Likewise.
15580 (CFLAGS-test-signgam-uchar.c): Likewise.
15581 (CFLAGS-test-signgam-uchar-init.c): Likewise.
15582 (CFLAGS-test-signgam-uchar-static.c): Likewise.
15583 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
15584 (CFLAGS-test-signgam-uint.c): Likewise.
15585 (CFLAGS-test-signgam-uint-init.c): Likewise.
15586 (CFLAGS-test-signgam-uint-static.c): Likewise.
15587 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
15588 (CFLAGS-test-signgam-ullong.c): Likewise.
15589 (CFLAGS-test-signgam-ullong-init.c): Likewise.
15590 (CFLAGS-test-signgam-ullong-static.c): Likewise.
15591 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
15592 (CFLAGS-test-math-cxx11.cc): Likewise.
15593 (CFLAGS-test-math-isinff.cc): Likewise.
15594 (CFLAGS-test-math-iszero.cc): Likewise.
15595 (CFLAGS-test-math-issignaling.cc): Likewise.
15596 (CFLAGS-test-math-iscanonical.cc): Likewise.
15597 (CFLAGS-test-iszero-excess-precision.c): Likewise.
15598 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
15599 (CFLAGS-test-flt-eval-method.c): Likewise.
15600 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
15601 (CFLAGS-test-finite-macros.c): Likewise.
15602 * misc/Makefile (CFLAGS-select.c): Likewise.
15603 (CFLAGS-tsearch.c): Likewise.
15604 (CFLAGS-lsearch.c): Likewise.
15605 (CFLAGS-pselect.c): Likewise.
15606 (CFLAGS-readv.c): Likewise.
15607 (CFLAGS-writev.c): Likewise.
15608 (CFLAGS-preadv.c): Likewise.
15609 (CFLAGS-preadv64.c): Likewise.
15610 (CFLAGS-pwritev.c): Likewise.
15611 (CFLAGS-pwritev64.c): Likewise.
15612 (CFLAGS-preadv2.c): Likewise.
15613 (CFLAGS-preadv64v2.c): Likewise.
15614 (CFLAGS-pwritev2.c): Likewise.
15615 (CFLAGS-pwritev64v2.c): Likewise.
15616 (CFLAGS-usleep.c): Likewise.
15617 (CFLAGS-syslog.c): Likewise.
15618 (CFLAGS-error.c): Likewise.
15619 (CFLAGS-getpass.c): Likewise.
15620 (CFLAGS-mkstemp.c): Likewise.
15621 (CFLAGS-mkstemp64.c): Likewise.
15622 (CFLAGS-getsysstats.c): Likewise.
15623 (CFLAGS-getusershell.c): Likewise.
15624 (CFLAGS-err.c): Likewise.
15625 (CFLAGS-tst-tsearch.c): Likewise.
15626 (CFLAGS-msync.c): Likewise.
15627 (CFLAGS-fdatasync.c): Likewise.
15628 (CFLAGS-fsync.c): Likewise.
15629 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
15630 (CFLAGS-unwind.c): Likewise.
15631 (CFLAGS-unwind-forcedunwind.c): Likewise.
15632 (CFLAGS-pthread_cancel.c): Likewise.
15633 (CFLAGS-pthread_setcancelstate.c): Likewise.
15634 (CFLAGS-pthread_setcanceltype.c): Likewise.
15635 (CFLAGS-cancellation.c): Likewise.
15636 (CFLAGS-libc-cancellation.c): Likewise.
15637 (CFLAGS-pthread_exit.c): Likewise.
15638 (CFLAGS-forward.c): Likewise.
15639 (CFLAGS-pthread_testcancel.c): Likewise.
15640 (CFLAGS-pthread_join.c): Likewise.
15641 (CFLAGS-pthread_timedjoin.c): Likewise.
15642 (CFLAGS-pthread_once.c): Likewise.
15643 (CFLAGS-pthread_cond_wait.c): Likewise.
15644 (CFLAGS-sem_wait.c): Likewise.
15645 (CFLAGS-sem_timedwait.c): Likewise.
15646 (CFLAGS-fcntl.c): Likewise.
15647 (CFLAGS-lockf.c): Likewise.
15648 (CFLAGS-pread.c): Likewise.
15649 (CFLAGS-pread64.c): Likewise.
15650 (CFLAGS-pwrite.c): Likewise.
15651 (CFLAGS-pwrite64.c): Likewise.
15652 (CFLAGS-wait.c): Likewise.
15653 (CFLAGS-waitpid.c): Likewise.
15654 (CFLAGS-sigwait.c): Likewise.
15655 (CFLAGS-msgrcv.c): Likewise.
15656 (CFLAGS-msgsnd.c): Likewise.
15657 (CFLAGS-tcdrain.c): Likewise.
15658 (CFLAGS-open.c): Likewise.
15659 (CFLAGS-open64.c): Likewise.
15660 (CFLAGS-pause.c): Likewise.
15661 (CFLAGS-recv.c): Likewise.
15662 (CFLAGS-send.c): Likewise.
15663 (CFLAGS-accept.c): Likewise.
15664 (CFLAGS-sendto.c): Likewise.
15665 (CFLAGS-connect.c): Likewise.
15666 (CFLAGS-recvfrom.c): Likewise.
15667 (CFLAGS-recvmsg.c): Likewise.
15668 (CFLAGS-sendmsg.c): Likewise.
15669 (CFLAGS-close.c): Likewise.
15670 (CFLAGS-read.c): Likewise.
15671 (CFLAGS-write.c): Likewise.
15672 (CFLAGS-nanosleep.c): Likewise.
15673 (CFLAGS-sigsuspend.c): Likewise.
15674 (CFLAGS-msync.c): Likewise.
15675 (CFLAGS-fdatasync.c): Likewise.
15676 (CFLAGS-fsync.c): Likewise.
15677 (CFLAGS-pt-system.c): Likewise.
15678 (CFLAGS-tst-cleanup2.c): Likewise.
15679 (CFLAGS-tst-cleanupx2.c): Likewise.
15680 (CFLAGS-flockfile.c): Likewise.
15681 (CFLAGS-ftrylockfile.c): Likewise.
15682 (CFLAGS-funlockfile.c): Likewise.
15683 (CFLAGS-tst-initializers1.c): Likewise.
15684 (CFLAGS-tst-initializers1-c89.c): Likewise.
15685 (CFLAGS-tst-initializers1-c99.c): Likewise.
15686 (CFLAGS-tst-initializers1-c11.c): Likewise.
15687 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
15688 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
15689 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
15690 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
15691 (CFLAGS-nscd_getgr_r.c): Likewise.
15692 (CFLAGS-nscd_gethst_r.c): Likewise.
15693 (CFLAGS-nscd_getai.c): Likewise.
15694 (CFLAGS-nscd_initgroups.c): Likewise.
15695 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
15696 (CFLAGS-pause.c): Likewise.
15697 (CFLAGS-pread.c): Likewise.
15698 (CFLAGS-pread64.c): Likewise.
15699 (CFLAGS-pwrite.c): Likewise.
15700 (CFLAGS-pwrite64.c): Likewise.
15701 (CFLAGS-sleep.c): Likewise.
15702 (CFLAGS-wait.c): Likewise.
15703 (CFLAGS-waitid.c): Likewise.
15704 (CFLAGS-waitpid.c): Likewise.
15705 (CFLAGS-getopt.c): Likewise.
15706 (CFLAGS-wordexp.c): Likewise.
15707 (CFLAGS-sysconf.c): Likewise.
15708 (CFLAGS-pathconf.c): Likewise.
15709 (CFLAGS-fpathconf.c): Likewise.
15710 (CFLAGS-spawn.c): Likewise.
15711 (CFLAGS-spawnp.c): Likewise.
15712 (CFLAGS-spawni.c): Likewise.
15713 (CFLAGS-glob.c): Likewise.
15714 (CFLAGS-glob64.c): Likewise.
15715 (CFLAGS-getconf.c): Likewise.
15716 (CFLAGS-nanosleep.c): Likewise.
15717 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
15718 (CFLAGS-getpwent.c): Likewise.
15719 (CFLAGS-getpw.c): Likewise.
15720 (CFLAGS-fgetpwent_r.c): Likewise.
15721 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
15722 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
15723 (CFLAGS-mq_timedreceive.c): Likewise.
15724 (CFLAGS-mq_timedsend.c): Likewise.
15725 (CFLAGS-clock_nanosleep.c): Likewise.
15726 (CFLAGS-librt-cancellation.c): Likewise.
15727 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
15728 (CFLAGS-getspent.c): Likewise.
15729 (CFLAGS-fgetspent.c): Likewise.
15730 (CFLAGS-fgetspent_r.c): Likewise.
15731 (CFLAGS-putspent.c): Likewise.
15732 (CFLAGS-getspnam.c): Likewise.
15733 (CFLAGS-getspnam_r.c): Likewise.
15734 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
15735 (CFLAGS-sigsuspend.c): Likewise.
15736 (CFLAGS-sigtimedwait.c): Likewise.
15737 (CFLAGS-sigwait.c): Likewise.
15738 (CFLAGS-sigwaitinfo.c): Likewise.
15739 (CFLAGS-sigreturn.c): Likewise.
15740 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
15741 (CFLAGS-vfwprintf.c): Likewise.
15742 (CFLAGS-tmpfile.c): Likewise.
15743 (CFLAGS-tmpfile64.c): Likewise.
15744 (CFLAGS-tempname.c): Likewise.
15745 (CFLAGS-psignal.c): Likewise.
15746 (CFLAGS-vprintf.c): Likewise.
15747 (CFLAGS-cuserid.c): Likewise.
15748 (CFLAGS-errlist.c): Likewise.
15749 (CFLAGS-siglist.c): Likewise.
15750 (CFLAGS-scanf15.c): Likewise.
15751 (CFLAGS-scanf17.c): Likewise.
15752 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
15753 (CFLAGS-msort.c): Likewise.
15754 (CFLAGS-qsort.c): Likewise.
15755 (CFLAGS-system.c): Likewise.
15756 (CFLAGS-fmtmsg.c): Likewise.
15757 (CFLAGS-strfmon.c): Likewise.
15758 (CFLAGS-strfmon_l.c): Likewise.
15759 (CFLAGS-strfromd.c): Likewise.
15760 (CFLAGS-strfromf.c): Likewise.
15761 (CFLAGS-strfroml.c): Likewise.
15762 (CFLAGS-tst-bsearch.c): Likewise.
15763 (CFLAGS-tst-qsort.c): Likewise.
15764 (CFLAGS-tst-makecontext2.c): Likewise.
15765 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
15766 (CFLAGS-xnlm_prot.c): Likewise.
15767 (CFLAGS-xrstat.c): Likewise.
15768 (CFLAGS-xyppasswd.c): Likewise.
15769 (CFLAGS-xklm_prot.c): Likewise.
15770 (CFLAGS-xrex.c): Likewise.
15771 (CFLAGS-xsm_inter.c): Likewise.
15772 (CFLAGS-xmount.c): Likewise.
15773 (CFLAGS-xrusers.c): Likewise.
15774 (CFLAGS-xspray.c): Likewise.
15775 (CFLAGS-xnfs_prot.c): Likewise.
15776 (CFLAGS-xrquota.c): Likewise.
15777 (CFLAGS-xkey_prot.c): Likewise.
15778 (CFLAGS-auth_unix.c): Likewise.
15779 (CFLAGS-key_call.c): Likewise.
15780 (CFLAGS-pmap_rmt.c): Likewise.
15781 (CFLAGS-clnt_perr.c): Likewise.
15782 (CFLAGS-openchild.c): Likewise.
15783 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
15784 (CFLAGS-msgsnd.c): Likewise.
15785 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
15786 * time/Makefile (CFLAGS-tzfile.c): Likewise.
15787 (CFLAGS-tzset.c): Likewise.
15788 (CFLAGS-getdate.c): Likewise.
15789 (CFLAGS-test_time.c): Likewise.
15790 (CPPFLAGS-tst-tzname.c): Likewise.
15791 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
15792 (CFLAGS-zic.c): Likewise.
15793 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
15794 (CFLAGS-wcswidth.c): Likewise.
15795 (CFLAGS-wcstol.c): Likewise.
15796 (CFLAGS-wcstoul.c): Likewise.
15797 (CFLAGS-wcstoll.c): Likewise.
15798 (CFLAGS-wcstoull.c): Likewise.
15799 (CFLAGS-wcstod.c): Likewise.
15800 (CFLAGS-wcstold.c): Likewise.
15801 (CFLAGS-wcstof128.c): Likewise.
15802 (CFLAGS-wcstof.c): Likewise.
15803 (CFLAGS-wcstol_l.c): Likewise.
15804 (CFLAGS-wcstoul_l.c): Likewise.
15805 (CFLAGS-wcstoll_l.c): Likewise.
15806 (CFLAGS-wcstoull_l.c): Likewise.
15807 (CFLAGS-wcstod_l.c): Likewise.
15808 (CFLAGS-wcstold_l.c): Likewise.
15809 (CFLAGS-wcstof128_l.c): Likewise.
15810 (CFLAGS-wcstof_l.c): Likewise.
15811 (CPPFLAGS-tst-wchar-h.c): Likewise.
15812 (CPPFLAGS-wcstold_l.c): Likewise.
15813 ---
15814 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
15815
15816 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
15817
15818 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
15819 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15820
15821 * manual/tunables.texi (Hardware Capability Tunables): Document
15822 glibc.tune.cached_memopt.
15823 * sysdeps/powerpc/cpu-features.c: New file.
15824 * sysdeps/powerpc/cpu-features.h: New file.
15825 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
15826 _dl_powerpc_cpu_features.
15827 * sysdeps/powerpc/dl-tunables.list: New file.
15828 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
15829 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
15830 (INIT_ARCH): Initialize use_aligned_memopt.
15831 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
15832 IS_IN(rtld))]: Restrict dl_platform_init availability and
15833 initialize CPU features used by tunables.
15834 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
15835 Add memcpy-power8-cached.
15836 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
15837 __memcpy_power8_cached.
15838 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
15839 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
15840 New file.
15841
15842 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
15843
15844 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
15845 (CFLAGS-noinl-tester.c): Likewise.
15846 (CFLAGS-tst-strlen.c): Likewise.
15847 (CFLAGS-stratcliff.c): Likewise.
15848 (CFLAGS-test-ffs.c): Likewise.
15849 (CFLAGS-tst-inlcall.c): Likewise.
15850 (CFLAGS-tst-xbzero-opt.c): Likewise.
15851 (CFLAGS-memcpy.c): Likewise.
15852 (CFLAGS-wordcopy.c): Likewise.
15853
15854 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
15855
15856 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
15857 Store r15 on stack and add cfi rule.
15858 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
15859 Likewise.
15860
15861 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
15862
15863 [BZ #22577]
15864 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
15865 call.
15866
15867 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
15868
15869 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15870 Add s_sinf-sse2 and s_sinf-fma.
15871 (CFLAGS-s_sinf-fma.c): New.
15872 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
15873 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
15874 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
15875
15876 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
15877
15878 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
15879
15880 2017-12-07 Joseph Myers <joseph@codesourcery.com>
15881
15882 [BZ #22568]
15883 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
15884 part of result to imaginary part of argument if it is zero and the
15885 real part of the argument is not finite.
15886 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
15887 of result to real part of argument if it is zero and the imaginary
15888 part of the argument is not finite.
15889
15890 2017-12-07 Mike FABIAN <mfabian@redhat.com>
15891
15892 [BZ #22524]
15893 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
15894 and to the list of locales to be built for testing.
15895 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
15896 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
15897 and build the collation rules upon that.
15898
15899 2017-12-07 Joseph Myers <joseph@codesourcery.com>
15900
15901 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
15902 * manual/math.texi (Mathematics): Document support for _Float32.
15903 * math/Makefile (test-types): Add float32.
15904 * math/Versions (GLIBC_2.27): Add _Float32 functions.
15905 * stdlib/Versions (GLIBC_2.27): Likewise.
15906 * wcsmbs/Versions (GLIBC_2.27): Likewise.
15907 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
15908 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15909 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15910 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15911 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15912 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15913 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15914 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15915 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15916 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15917 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15918 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15919 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15920 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15921 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15922 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15923 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15924 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15925 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15926 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15927 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
15928 Likewise.
15929 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15930 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15931 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15932 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15933 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15935 Likewise.
15936 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15937 Likewise.
15938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15939 Likewise.
15940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15941 Likewise.
15942
15943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15944 Likewise.
15945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
15946 Likewise.
15947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15948 Likewise.
15949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15950 Likewise.
15951 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15952 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15953 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15954 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15955 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15956 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15957 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15958 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15959 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15960 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15961 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
15962 Likewise.
15963 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15964 Likewise.
15965 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15966 Likewise.
15967 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15968 Likewise.
15969 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15970 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15971 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15972 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15973 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15974 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15975 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15976 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15977
15978 2017-12-06 Joseph Myers <joseph@codesourcery.com>
15979
15980 * stdlib/strtof.c: Include <bits/floatn.h>
15981 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
15982 and later undefine as macro. Define as weak alias if
15983 [!USE_WIDE_CHAR].
15984 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
15985 and later undefine as macro. Define as weak alias if
15986 [USE_WIDE_CHAR].
15987 * stdlib/strtof_l.c: Include <bits/floatn.h>
15988 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
15989 and later undefine as macro. Define as weak alias if
15990 [!USE_WIDE_CHAR].
15991 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
15992 and later undefine as macro. Define as weak alias if
15993 [USE_WIDE_CHAR].
15994
15995 * stdlib/strfromf.c: Include <bits/floatn.h>.
15996 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
15997 and later undefine as macro and define as weak alias.
15998
15999 * math/test-float32.h: New file.
16000
16001 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
16002 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
16003 (libm_alias_float_other_r): Create f32 alias.
16004 (libm_alias_float_r): Use semicolon before call to
16005 libm_alias_float_other_r.
16006
16007 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
16008 second argument to libm_alias_float_other.
16009 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
16010 second argument to libm_alias_float_other.
16011 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
16012 argument to libm_alias_float_other.
16013
16014 [BZ #22561]
16015 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
16016 real part of result for argument 0 + i * NaN.
16017 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
16018 results for tests of 0 + i * NaN.
16019
16020 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16021
16022 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16023
16024 2017-12-06 David S. Miller <davem@davemloft.net>
16025
16026 * sysdeps/sparc/fpu/libm-test-ulps: Update
16027 exp_{downward,towardzero,upward} ulps.
16028
16029 2017-12-06 Joseph Myers <joseph@codesourcery.com>
16030
16031 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
16032 variables static.
16033
16034 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
16035 (Y0_2D): Likewise.
16036 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
16037 (Y0_2D): Likewise.
16038 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
16039 (Y0_2D): Likewise.
16040 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
16041 (Y0_2D): Likewise.
16042
16043 2017-12-06 Mike FABIAN <mfabian@redhat.com>
16044
16045 [BZ #22515]
16046 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
16047 and to the list of locales to be built for testing.
16048 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
16049 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
16050 and build the collation rules upon that.
16051
16052 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16053
16054 * NEWS: Add sinf to list of optimized functions.
16055
16056 2017-12-06 Joseph Myers <joseph@codesourcery.com>
16057
16058 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
16059 (__HAVE_FLOAT32X): Likewise.
16060 * manual/math.texi (Mathematics): Document support for _Float64
16061 and _Float32x.
16062 * math/Makefile (test-types): Add float64 and float32x.
16063 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
16064 functions.
16065 * stdlib/Versions (GLIBC_2.27): Likewise.
16066 * wcsmbs/Versions (GLIBC_2.27): Likewise.
16067 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
16068 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16069 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16070 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16071 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
16072 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16073 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16074 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16075 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
16076 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16077 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16078 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16079 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16080 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16081 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16082 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16083 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16084 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16085 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16086 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16087 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
16088 Likewise.
16089 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16090 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16091 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16092 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16093 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16095 Likewise.
16096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
16097 Likewise.
16098 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16099 Likewise.
16100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
16101 Likewise.
16102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
16103 Likewise.
16104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
16105 Likewise.
16106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
16107 Likewise.
16108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
16109 Likewise.
16110 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16111 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16112 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16113 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16114 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16115 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16116 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16117 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16118 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16119 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16120 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
16121 Likewise.
16122 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
16123 Likewise.
16124 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
16125 Likewise.
16126 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
16127 Likewise.
16128 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
16129 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
16130 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16131 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16132 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16133 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16134 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
16135 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16136
16137 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16138
16139 * bits/floatn-common.h: Include <bits/long-double.h>.
16140 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16141 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
16142 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16143 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
16144 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16145 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
16146 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16147 (__builtin_huge_valf64): Use __builtin_huge_vall.
16148 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16149 (__builtin_inff64): Use __builtin_infl.
16150 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16151 (__builtin_nanf64): Use __builtin_nanl.
16152 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16153 (__builtin_nansf64): Use __builtin_nansl.
16154
16155 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
16156 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
16157 Carlos O'Donnell <carlos@redhat.com>
16158
16159 * elf/dl-tunables.list: Add elision parameters.
16160 * manual/tunables.texi: Add entries about elision tunable.
16161 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
16162 Add callback functions to dynamically enable/disable elision.
16163 Add multiple callbacks functions to set elision parameters.
16164 Deleted __libc_enable_secure check.
16165 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
16166 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
16167 * configure: Regenerated.
16168 * configure.ac: Option enable_lock_elision was deleted.
16169 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
16170 * config.make.in: Remove references to enable_lock_elision.
16171 * manual/install.texi: Elision configure option was removed.
16172 * INSTALL: Regenerated to remove enable_lock_elision.
16173 * nptl/Makefile:
16174 Disable elision so it can verify error case for destroying a mutex.
16175 * sysdeps/powerpc/nptl/elide.h:
16176 Cleanup ENABLE_LOCK_ELISION check.
16177 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
16178 * sysdeps/s390/configure: Regenerated.
16179 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
16180 * nptl/tst-mutex8.c:
16181 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
16182 * sysdeps/powerpc/powerpc32/sysdep.h:
16183 Deleted all ENABLE_LOCK_ELISION checks.
16184 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
16185 * sysdeps/powerpc/sysdep.h: Likewise.
16186 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
16187 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
16188 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
16189 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
16190 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
16191 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
16192 enable-lock-elision.
16193
16194 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16195
16196 * stdlib/strtod.c: Include <bits/floatn.h>.
16197 (BUILD_DOUBLE): New macro.
16198 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16199 (strtof64): Define and later undefine as macro. Define as weak
16200 alias if [!USE_WIDE_CHAR].
16201 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16202 (wcstof64): Define and later undefine as macro. Define as weak
16203 alias if [USE_WIDE_CHAR].
16204 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16205 (strtof32x): Define and later undefine as macro. Define as weak
16206 alias if [!USE_WIDE_CHAR].
16207 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16208 (wcstof32x): Define and later undefine as macro. Define as weak
16209 alias if [USE_WIDE_CHAR].
16210 * stdlib/strtod_l.c: Include <bits/floatn.h>.
16211 (BUILD_DOUBLE): New macro.
16212 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16213 (strtof64_l): Define and later undefine as macro. Define as weak
16214 alias if [!USE_WIDE_CHAR].
16215 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16216 (wcstof64_l): Define and later undefine as macro. Define as weak
16217 alias if [USE_WIDE_CHAR].
16218 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16219 (strtof32x_l): Define and later undefine as macro. Define as weak
16220 alias if [!USE_WIDE_CHAR].
16221 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16222 (wcstof32x_l): Define and later undefine as macro. Define as weak
16223 alias if [USE_WIDE_CHAR].
16224
16225 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16226
16227 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
16228 (reduced): Use ones as double instead of integer.
16229
16230 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
16231
16232 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
16233
16234 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16235
16236 * stdlib/strfromd.c: Include <bits/floatn.h>.
16237 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
16238 and later undefine as macro and define as weak alias.
16239 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
16240 Likewise.
16241
16242 * math/test-float32x.h: New file.
16243 * math/test-float64.h: Likewise.
16244
16245 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
16246 (libm_alias_double_other_r_f64): New macro.
16247 (libm_alias_double_other_r_f32x): Likewise.
16248 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
16249 libm_alias_double_other_r_f32x.
16250 (libm_alias_double_r): Use semicolon before call to
16251 libm_alias_double_other_r.
16252 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
16253 <bits/floatn.h>.
16254 (libm_alias_double_other_r_f64): New macro.
16255 (libm_alias_double_other_r_f32x): Likewise.
16256 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
16257 libm_alias_double_other_r_f32x.
16258
16259 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
16260
16261 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
16262 int.
16263 (SINF_FUNC): Likewise. Replace floor with simple casts.
16264
16265 2017-12-05 Mike FABIAN <mfabian@redhat.com>
16266
16267 [BZ #22517]
16268 * localedata/Makefile: Add et_EE.UTF-8 to test-input
16269 and to the list of locales to be built for testing.
16270 * localedata/et_EE.UTF-8.in: New file for testing the collation.
16271 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
16272 and build the collation rules upon that.
16273
16274 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
16275
16276 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
16277 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
16278 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
16279 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
16280 instead of __insn__xxx.
16281 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
16282 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
16283 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
16284 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
16285 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
16286 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
16287
16288 2017-12-05 Florian Weimer <fweimer@redhat.com>
16289
16290 Linux: Implement interfaces for memory protection keys
16291 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
16292 xsignal, xsysconf.
16293 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
16294 * support/xunistd.h (xsysconf): Declare.
16295 * support/xraise.c: New file.
16296 * support/xsigaction.c: Likewise.
16297 * support/xsignal.c: Likewise.
16298 * support/xsysconf.c: Likewise.
16299 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
16300 pkey_set, pkey_get, pkey_mprotect.
16301 [misc] (tests): Add tst-pkey.
16302 (tst-pkey): Link with -lpthread.
16303 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
16304 pkey_free, pkey_set, pkey_get, pkey_mprotect.
16305 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
16306 (PKEY_DISABLE_WRITE): Define.
16307 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
16308 Declare.
16309 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
16310 (SEGV_PKUERR): Add.
16311 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
16312 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
16313 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
16314 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
16315 Add.
16316 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
16317 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
16318 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
16319 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
16320 * sysdeps/unix/sysv/linux/**.abilist: Update.
16321
16322 2017-12-05 Florian Weimer <fweimer@redhat.com>
16323
16324 * support/tst-test_compare.c (subprocess): Use long long instead
16325 of long argument for consistent type width across 32-bit and
16326 64-bit architectures.
16327 (do_test): Adjust expected output.
16328
16329 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16330
16331 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
16332 (cosf): Define using libm_alias_float.
16333 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
16334 (fabsf): Define using libm_alias_float.
16335 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
16336 (fmaf): Define using libm_alias_float.
16337 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
16338 (rintf): Define using libm_alias_float.
16339 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
16340 (sinf): Define using libm_alias_float.
16341 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
16342 <libm-alias-float.h>.
16343 (modff): Define using libm_alias_float.
16344 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
16345 <libm-alias-float.h>.
16346 (logbf): Define using libm_alias_float.
16347 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
16348 <libm-alias-float.h>.
16349 (ceilf): Define using libm_alias_float.
16350 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
16351 <libm-alias-float.h>.
16352 (copysignf): Define using libm_alias_float.
16353 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
16354 <libm-alias-float.h>.
16355 (floorf): Define using libm_alias_float.
16356 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16357 <libm-alias-float.h>.
16358 (llrintf): Define using libm_alias_float.
16359 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16360 <libm-alias-float.h>.
16361 (llroundf): Define using libm_alias_float.
16362 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
16363 <libm-alias-float.h>.
16364 (lrintf): Define using libm_alias_float.
16365 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
16366 <libm-alias-float.h>.
16367 (lroundf): Define using libm_alias_float.
16368 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
16369 <libm-alias-float.h>.
16370 (nearbyintf): Define using libm_alias_float.
16371 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
16372 <libm-alias-float.h>.
16373 (rintf): Define using libm_alias_float.
16374 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
16375 <libm-alias-float.h>.
16376 (roundf): Define using libm_alias_float.
16377 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
16378 <libm-alias-float.h>.
16379 (truncf): Define using libm_alias_float.
16380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
16381 Include <libm-alias-float.h>.
16382 (ceilf): Define using libm_alias_float.
16383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
16384 Include <libm-alias-float.h>.
16385 (copysignf): Define using libm_alias_float.
16386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
16387 Include <libm-alias-float.h>.
16388 (floorf): Define using libm_alias_float.
16389 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
16390 Include <libm-alias-float.h>.
16391 (llrintf): Define using libm_alias_float.
16392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
16393 Include <libm-alias-float.h>.
16394 (llroundf): Define using libm_alias_float.
16395 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
16396 Include <libm-alias-float.h>.
16397 (logbf): Define using libm_alias_float.
16398 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
16399 Include <libm-alias-float.h>.
16400 (lrintf): Define using libm_alias_float.
16401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
16402 Include <libm-alias-float.h>.
16403 (lroundf): Define using libm_alias_float.
16404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
16405 Include <libm-alias-float.h>.
16406 (modff): Define using libm_alias_float.
16407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
16408 Include <libm-alias-float.h>.
16409 (roundf): Define using libm_alias_float.
16410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
16411 Include <libm-alias-float.h>.
16412 (truncf): Define using libm_alias_float.
16413 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
16414 <libm-alias-float.h>.
16415 (llrintf): Define using libm_alias_float.
16416 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
16417 <libm-alias-float.h>.
16418 (llroundf): Define using libm_alias_float.
16419 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
16420 <libm-alias-float.h>.
16421 (ceilf): Define using libm_alias_float.
16422 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
16423 <libm-alias-float.h>.
16424 (floorf): Define using libm_alias_float.
16425 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
16426 <libm-alias-float.h>.
16427 (llroundf): Define using libm_alias_float.
16428 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
16429 <libm-alias-float.h>.
16430 (lroundf): Define using libm_alias_float.
16431 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
16432 <libm-alias-float.h>.
16433 (roundf): Define using libm_alias_float.
16434 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
16435 <libm-alias-float.h>.
16436 (truncf): Define using libm_alias_float.
16437 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
16438 <libm-alias-float.h>.
16439 (copysignf): Define using libm_alias_float.
16440 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
16441 <libm-alias-float.h>.
16442 (llrintf): Define using libm_alias_float.
16443 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
16444 <libm-alias-float.h>.
16445 (llroundf): Define using libm_alias_float.
16446 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
16447 <libm-alias-float.h>.
16448 (lrintf): Define using libm_alias_float.
16449 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
16450 <libm-alias-float.h>.
16451 (lroundf): Define using libm_alias_float.
16452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
16453 <libm-alias-float.h>.
16454 (ceilf): Define using libm_alias_float.
16455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
16456 <libm-alias-float.h>.
16457 (copysignf): Define using libm_alias_float.
16458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
16459 <libm-alias-float.h>.
16460 (cosf): Define using libm_alias_float.
16461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
16462 <libm-alias-float.h>.
16463 (floorf): Define using libm_alias_float.
16464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
16465 <libm-alias-float.h>.
16466 (llrintf): Define using libm_alias_float.
16467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
16468 <libm-alias-float.h>.
16469 (llroundf): Define using libm_alias_float.
16470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
16471 <libm-alias-float.h>.
16472 (logbf): Define using libm_alias_float.
16473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
16474 <libm-alias-float.h>.
16475 (modff): Define using libm_alias_float.
16476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
16477 <libm-alias-float.h>.
16478 (roundf): Define using libm_alias_float.
16479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
16480 <libm-alias-float.h>.
16481 (sinf): Define using libm_alias_float.
16482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
16483 <libm-alias-float.h>.
16484 (truncf): Define using libm_alias_float.
16485 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
16486 <libm-alias-float.h>.
16487 (ceilf): Define using libm_alias_float.
16488 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
16489 <libm-alias-float.h>.
16490 (copysignf): Define using libm_alias_float.
16491 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
16492 <libm-alias-float.h>.
16493 (floorf): Define using libm_alias_float.
16494 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
16495 <libm-alias-float.h>.
16496 (llrintf): Define using libm_alias_float.
16497 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
16498 <libm-alias-float.h>.
16499 (llroundf): Define using libm_alias_float.
16500 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
16501 <libm-alias-float.h>.
16502 (nearbyintf): Define using libm_alias_float.
16503 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
16504 <libm-alias-float.h>.
16505 (rintf): Define using libm_alias_float.
16506 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
16507 <libm-alias-float.h>.
16508 (roundf): Define using libm_alias_float.
16509 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
16510 <libm-alias-float.h>.
16511 (truncf): Define using libm_alias_float.
16512 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
16513 <libm-alias-float.h>.
16514 (ceilf): Define using libm_alias_float.
16515 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
16516 <libm-alias-float.h>.
16517 (floorf): Define using libm_alias_float.
16518 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
16519 <libm-alias-float.h>.
16520 (llroundf): Define using libm_alias_float.
16521 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
16522 <libm-alias-float.h>.
16523 (roundf): Define using libm_alias_float.
16524 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
16525 <libm-alias-float.h>.
16526 (truncf): Define using libm_alias_float.
16527 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
16528 <libm-alias-float.h>.
16529 (copysignf): Define using libm_alias_float.
16530 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
16531 <libm-alias-float.h>.
16532 (llrintf): Define using libm_alias_float.
16533 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
16534 <libm-alias-float.h>.
16535 (llroundf): Define using libm_alias_float.
16536 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
16537 <libm-alias-float.h>.
16538 (cosf): Define using libm_alias_float.
16539 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
16540 <libm-alias-float.h>.
16541 (llrintf): Define using libm_alias_float.
16542 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
16543 <libm-alias-float.h>.
16544 (llroundf): Define using libm_alias_float.
16545 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
16546 <libm-alias-float.h>.
16547 (sinf): Define using libm_alias_float.
16548
16549 2017-12-04 Florian Weimer <fweimer@redhat.com>
16550
16551 * support/check.h (TEST_COMPARE): Define.
16552 (support_test_compare_failure): Declare.
16553 * support/Makefile (libsupport-routines): Add
16554 support_test_compare_failure.
16555 (tests): Add tst-test_compare.
16556 * support /support_test_compare_failure.c: New file.
16557 * support/tst-test_compare.c: Likewise.
16558
16559 2017-12-04 Mike FABIAN <mfabian@redhat.com>
16560
16561 [BZ #22527]
16562 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
16563 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
16564 available, this rewrite of the collation rules does reproduce
16565 the test file in the same order.
16566
16567 2017-12-04 Mike FABIAN <mfabian@redhat.com>
16568
16569 [BZ #10580]
16570 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
16571 digraphs in the month and day names. Using single code points for
16572 digraphs is deprecated. While there are dedicated Unicode
16573 codepoints, for the digraphs, these are included for backwards
16574 compatibility and modern texts use a sequence of Basic Latin
16575 characters. See: https://www.unicode.org/faq/ligature_digraph.html
16576 This makes the month and day names agree exactly with CLDR now,
16577 CLDR does not use the single code points for the digraphs either.
16578
16579 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
16580
16581 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
16582
16583 2017-12-04 Joseph Myers <joseph@codesourcery.com>
16584
16585 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
16586 of floor.
16587
16588 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
16589
16590 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
16591 Define only for libc.so.
16592
16593 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
16594
16595 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16596 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
16597 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
16598 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
16599 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16600
16601 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16602
16603 [BZ #5997]
16604 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
16605
16606 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
16607
16608 [BZ libc/19170]
16609 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
16610 PREINIT_FUNCTION_WEAK is nonzero.
16611 (gmon_initializer): New function. Put procedure label for it in
16612 .init_array section.
16613 (_init): Don't call PREINIT_FUNCTION.
16614 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
16615 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
16616 value when map argument is null.
16617
16618 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
16619 depi instruction from PIC pc-relative sequence.
16620 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
16621 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
16622 (elf_machine_load_address): Likewise.
16623 (elf_machine_runtime_setup): Likewise.
16624
16625 2017-12-02 Joseph Myers <joseph@codesourcery.com>
16626
16627 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
16628 <libm-alias-double.h>.
16629 (logb): Define using libm_alias_double.
16630 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
16631 <libm-alias-double.h>.
16632 (copysign): Define using libm_alias_double.
16633 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
16634 <libm-alias-double.h>.
16635 (llrint): Define using libm_alias_double.
16636 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
16637 <libm-alias-double.h>.
16638 (llround): Define using libm_alias_double.
16639 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
16640 <libm-alias-double.h>.
16641 (lrint): Define using libm_alias_double.
16642 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
16643 <libm-alias-double.h>.
16644 (lround): Define using libm_alias_double.
16645 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
16646 Include <libm-alias-double.h>.
16647 (copysign): Define using libm_alias_double.
16648 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
16649 Include <libm-alias-double.h>.
16650 (llrint): Define using libm_alias_double.
16651 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
16652 Include <libm-alias-double.h>.
16653 (llround): Define using libm_alias_double.
16654 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
16655 <libm-alias-double.h>.
16656 (logb): Define using libm_alias_double.
16657 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
16658 Include <libm-alias-double.h>.
16659 (lrint): Define using libm_alias_double.
16660 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
16661 Include <libm-alias-double.h>.
16662 (lround): Define using libm_alias_double.
16663 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
16664 <libm-alias-double.h>.
16665 (llrint): Define using libm_alias_double.
16666 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
16667 <libm-alias-double.h>.
16668 (llround): Define using libm_alias_double.
16669 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
16670 <libm-alias-double.h>.
16671 (llround): Define using libm_alias_double.
16672 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
16673 <libm-alias-double.h>.
16674 (lround): Define using libm_alias_double.
16675 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
16676 <libm-alias-double.h>.
16677 (copysign): Define using libm_alias_double.
16678 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
16679 <libm-alias-double.h>.
16680 (llrint): Define using libm_alias_double.
16681 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
16682 <libm-alias-double.h>.
16683 (llround): Define using libm_alias_double.
16684 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
16685 <libm-alias-double.h>.
16686 (lrint): Define using libm_alias_double.
16687 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
16688 <libm-alias-double.h>.
16689 (lround): Define using libm_alias_double.
16690 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
16691 <libm-alias-double.h>.
16692 (copysign): Define using libm_alias_double.
16693 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
16694 <libm-alias-double.h>.
16695 (llrint): Define using libm_alias_double.
16696 (lrint): Likewise.
16697 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
16698 <libm-alias-double.h>.
16699 (llround): Define using libm_alias_double.
16700 (lround): Likewise.
16701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
16702 <libm-alias-double.h>.
16703 (logb): Define using libm_alias_double.
16704 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
16705 <libm-alias-double.h>.
16706 (copysign): Define using libm_alias_double.
16707 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
16708 <libm-alias-double.h>.
16709 (llrint): Define using libm_alias_double.
16710 (lrint): Likewise.
16711 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
16712 <libm-alias-double.h>.
16713 (llround): Define using libm_alias_double.
16714 (lround): Likewise.
16715 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
16716 <libm-alias-double.h>.
16717 (llround): Define using libm_alias_double.
16718 (lround): Likewise.
16719 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
16720 <libm-alias-double.h>.
16721 (copysign): Define using libm_alias_double.
16722 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
16723 <libm-alias-double.h>.
16724 (llrint): Define using libm_alias_double.
16725 (lrint): Likewise.
16726 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
16727 <libm-alias-double.h>.
16728 (llround): Define using libm_alias_double.
16729 (lround): Likewise.
16730 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
16731 <libm-alias-double.h>.
16732 (llrint): Define using libm_alias_double.
16733 (lrint): Likewise.
16734 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
16735 <libm-alias-double.h>.
16736 (llround): Define using libm_alias_double.
16737 (lround): Likewise.
16738
16739 2017-12-01 Joseph Myers <joseph@codesourcery.com>
16740
16741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
16742 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
16743 compat symbol based on llround.
16744
16745 * sysdeps/powerpc/power7/fpu/s_logb.c
16746 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
16747 symbol based on __logb, not on logb.
16748 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
16749 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
16750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
16751 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
16752
16753 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
16754 (rint): Define using libm_alias_double.
16755 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
16756 <libm-alias-double.h>.
16757 (modf): Define using libm_alias_double.
16758 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
16759 <libm-alias-double.h>.
16760 (ceil): Define using libm_alias_double.
16761 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
16762 <libm-alias-double.h>.
16763 (floor): Define using libm_alias_double.
16764 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
16765 <libm-alias-double.h>.
16766 (nearbyint): Define using libm_alias_double.
16767 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
16768 <libm-alias-double.h>.
16769 (rint): Define using libm_alias_double.
16770 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
16771 <libm-alias-double.h>.
16772 (round): Define using libm_alias_double.
16773 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
16774 <libm-alias-double.h>.
16775 (trunc): Define using libm_alias_double.
16776 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
16777 <libm-alias-double.h>.
16778 (ceil): Define using libm_alias_double.
16779 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
16780 Include <libm-alias-double.h>.
16781 (floor): Define using libm_alias_double.
16782 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
16783 <libm-alias-double.h>.
16784 (modf): Define using libm_alias_double.
16785 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
16786 Include <libm-alias-double.h>.
16787 (round): Define using libm_alias_double.
16788 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
16789 Include <libm-alias-double.h>.
16790 (trunc): Define using libm_alias_double.
16791 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
16792 <libm-alias-double.h>.
16793 (ceil): Define using libm_alias_double.
16794 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
16795 <libm-alias-double.h>.
16796 (floor): Define using libm_alias_double.
16797 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
16798 <libm-alias-double.h>.
16799 (round): Define using libm_alias_double.
16800 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
16801 <libm-alias-double.h>.
16802 (trunc): Define using libm_alias_double.
16803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
16804 <libm-alias-double.h>.
16805 (ceil): Define using libm_alias_double.
16806 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
16807 <libm-alias-double.h>.
16808 (floor): Define using libm_alias_double.
16809 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
16810 <libm-alias-double.h>.
16811 (modf): Define using libm_alias_double.
16812 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
16813 <libm-alias-double.h>.
16814 (round): Define using libm_alias_double.
16815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
16816 <libm-alias-double.h>.
16817 (trunc): Define using libm_alias_double.
16818 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
16819 <libm-alias-double.h>.
16820 (ceil): Define using libm_alias_double.
16821 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
16822 <libm-alias-double.h>.
16823 (floor): Define using libm_alias_double.
16824 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
16825 <libm-alias-double.h>.
16826 (nearbyint): Define using libm_alias_double.
16827 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
16828 <libm-alias-double.h>.
16829 (rint): Define using libm_alias_double.
16830 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
16831 <libm-alias-double.h>.
16832 (round): Define using libm_alias_double.
16833 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
16834 <libm-alias-double.h>.
16835 (trunc): Define using libm_alias_double.
16836 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
16837 <libm-alias-double.h>.
16838 (ceil): Define using libm_alias_double.
16839 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
16840 <libm-alias-double.h>.
16841 (floor): Define using libm_alias_double.
16842 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
16843 <libm-alias-double.h>.
16844 (round): Define using libm_alias_double.
16845 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
16846 <libm-alias-double.h>.
16847 (trunc): Define using libm_alias_double.
16848
16849 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
16850 (fabs): Define using libm_alias_double.
16851 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
16852 (fma): Define using libm_alias_double.
16853 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
16854 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
16855 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
16856 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
16857
16858 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16859
16860 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
16861
16862 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
16863 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
16864 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
16865
16866 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
16867 due redirect macro.
16868
16869 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
16870
16871 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
16872
16873 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16874
16875 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
16876 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
16877 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
16878 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
16879
16880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16881 (libm-sysdep_routines): Add s_nearbyintf-generic and
16882 s_nearbyint-generic.
16883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
16884 New file.
16885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
16886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
16887 Likewise.
16888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
16889 Likewise.
16890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
16891 file.
16892 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
16893 Likewise.
16894
16895 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16896 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
16897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
16898 file.
16899 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
16900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
16901 Likewise.
16902 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
16903 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
16904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
16905
16906 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16907 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
16908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
16909 file.
16910 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
16911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
16912 Likewise.
16913 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
16914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
16915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
16916
16917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16918 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
16919 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
16920 file.
16921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
16922 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
16923 Likewise.
16924 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
16925 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
16926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
16927
16928 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16929 (sysdep_calls): New rule.
16930 (sysdep_routines): Use sysdep_calls as base.
16931 (libm-sysdep_routines): Add generic rule for symbols shared with
16932 libc. Add s_copysign-generic and s_copysign-generic objects.
16933 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
16934 New file.
16935 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
16936 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
16937 Likewise.
16938 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
16939 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
16940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
16941
16942 2017-12-01 Mike FABIAN <mfabian@redhat.com>
16943
16944 [BZ #22519]
16945 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
16946 the list of locales to be built for testing.
16947 * localedata/is_IS.UTF-8.in: New file.
16948 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
16949 on iso14651_t1.
16950
16951 2017-12-01 Joseph Myers <joseph@codesourcery.com>
16952
16953 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
16954 <libm-alias-float.h>.
16955 (fabsf): Define using libm_alias_float.
16956
16957 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
16958
16959 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
16960
16961 2017-11-30 Joseph Myers <joseph@codesourcery.com>
16962
16963 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
16964 <libm-alias-float.h>.
16965 (fabsf): Define using libm_alias_float.
16966 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
16967 <libm-alias-float.h>.
16968 (lrintf): Define using libm_alias_float.
16969 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
16970 <libm-alias-float.h>.
16971 (rintf): Define using libm_alias_float.
16972
16973 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
16974 <libm-alias-double.h>.
16975 (fabs): Define using libm_alias_double.
16976 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
16977 <libm-alias-double.h>.
16978 (lrint): Define using libm_alias_double.
16979 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
16980 <libm-alias-double.h>.
16981 (rint): Define using libm_alias_double.
16982
16983 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
16984 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
16985 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
16986 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
16987 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
16988 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
16989 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
16990 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
16991 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
16992 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
16993 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
16994 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
16995 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
16996 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
16997 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
16998 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
16999 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
17000 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
17001 s_atan_template.c.
17002 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
17003 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
17004 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
17005 s_ceil_template.c.
17006 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
17007 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
17008 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
17009 s_cos_template.c.
17010 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
17011 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
17012 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
17013 s_expm1_template.c.
17014 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
17015 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
17016 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
17017 s_fabs_template.c.
17018 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
17019 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
17020 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
17021 s_floor_template.c.
17022 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
17023 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
17024 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
17025 s_frexp_template.c.
17026 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
17027 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
17028 s_lrint_template.c.
17029 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
17030 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
17031 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
17032 s_modf_template.c.
17033 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
17034 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
17035 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
17036 s_nearbyint_template.c.
17037 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
17038 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
17039 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
17040 s_remquo_template.c.
17041 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
17042 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
17043 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
17044 s_rint_template.c.
17045 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
17046 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
17047 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
17048 s_sin_template.c.
17049 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
17050 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
17051 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
17052 s_sincos_template.c.
17053 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
17054 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
17055 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
17056 s_tan_template.c.
17057 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
17058 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
17059 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
17060 s_tanh_template.c.
17061 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
17062 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
17063 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
17064 s_trunc_template.c.
17065 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
17066 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
17067 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
17068 s_atan.c instead of including s_atan.c.
17069 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
17070 s_atanf.c instead of including s_atanf.c.
17071 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
17072 s_atanl.c instead of including s_atanl.c.
17073 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
17074 instead of s_atan.c.
17075 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
17076 instead of s_atanf.c.
17077 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
17078 instead of s_atanl.c.
17079
17080 * scripts/update-copyrights: Do not handle intl/plural.c
17081 specially.
17082
17083 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
17084
17085 [BZ #22432]
17086 * configure.ac (BISON): Require to be present.
17087 * configure: Regenerated.
17088 * intl/Makefile (generated): Add plural.c.
17089 [$(BISON) != no]: Make code unconditional.
17090 (plural.c): Change rule to $(objpfx)plural.c.
17091 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
17092 * intl/plural.c: Remove.
17093 * manual/install.texi (Tools for Compilation): Document bison as
17094 required.
17095 * INSTALL: Regenerated.
17096
17097 2017-11-30 Joseph Myers <joseph@codesourcery.com>
17098
17099 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
17100 <libm-alias-double.h>.
17101 (llrint): Define using libm_alias_double.
17102 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
17103 <libm-alias-float.h>.
17104 (llrintf): Define using libm_alias_float.
17105 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
17106 <libm-alias-ldouble.h>.
17107 (llrintl): Define using libm_alias_ldouble.
17108
17109 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
17110 declare_mgen_alias instead of weak_alias.
17111 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
17112 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
17113 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
17114
17115 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17116
17117 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17118 Add add_n-generic.
17119 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
17120 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
17121 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
17122
17123 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17124 Add submul_1-generic.
17125 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
17126 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
17127 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
17128
17129 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17130 Add addmul_1-generic.
17131 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
17132 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
17133 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
17134
17135 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17136 Add sub_n-generic.
17137 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
17138 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
17139 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
17140
17141 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17142 Add mul_1-generic.
17143 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
17144 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
17145 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
17146
17147 2017-11-30 Mike FABIAN <mfabian@redhat.com>
17148
17149 According to CLDR, collation rules for Serbian and Bosnian
17150 should be the same as for Croatian.
17151
17152 [BZ #22534]
17153 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
17154 and to the list of locales to be built for testing.
17155 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
17156 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
17157 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
17158 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
17159
17160 2017-11-30 Mike FABIAN <mfabian@redhat.com>
17161
17162 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
17163 to make test case pass.
17164 * localedata/hr_HR.UTF-8.in: Add more test strings.
17165
17166 2017-11-30 Mike FABIAN <mfabian@redhat.com>
17167
17168 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
17169
17170 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
17171
17172 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
17173 the list of locales to built for testing.
17174 * localedata/hr_HR.UTF-8.in: New file.
17175
17176 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
17177
17178 [BZ #10580]
17179 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
17180 iso14651_t1.
17181 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
17182 CLDR (except use ligatures for the digraphs, CLDR does not use
17183 the ligatures), add first_workday, some fixes in the date and time
17184 formats.
17185 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
17186 for Đ and đ.
17187 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
17188 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
17189 Add int_p_cs_precedes and int_n_cs_precedes.
17190 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
17191 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
17192 LC_MONETARY now).
17193 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
17194 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
17195 name_miss.
17196 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
17197 and lang_lib. Change postal_fmt.
17198
17199 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
17200
17201 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
17202 <setjmp.h>.
17203 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
17204 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
17205 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
17206 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
17207 * sysdeps/generic/setjmpP.h: New file.
17208 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
17209 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
17210 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
17211 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
17212 Add jmp_buf-ssp.sym.
17213 (tests): Add tst-saved_mask-1.
17214
17215 2017-11-30 Arjun Shankar <arjun@redhat.com>
17216
17217 [BZ #22375]
17218 CVE-2017-17426
17219 * malloc/malloc.c (__libc_malloc): Use checked_request2size
17220 instead of request2size.
17221
17222 2017-11-30 Joseph Myers <joseph@codesourcery.com>
17223
17224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
17225 (__lllrint): Remove alias.
17226 (lllrint): Likewise.
17227 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
17228 (__lllrintf): Likewise.
17229 (lllrintf): Likewise.
17230
17231 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
17232 <libm-alias-float.h>.
17233 (copysignf): Define using libm_alias_float.
17234 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
17235 <libm-alias-float.h>.
17236 (fabsf): Define using libm_alias_float.
17237 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
17238 Include <libm-alias-float.h>.
17239 (copysignf): Define using libm_alias_float.
17240 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
17241 <libm-alias-float.h>.
17242 (fabsf): Define using libm_alias_float.
17243 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
17244 <libm-alias-float.h>.
17245 (fdimf): Define using libm_alias_float.
17246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
17247 <libm-alias-float.h>.
17248 (fmaf): Define using libm_alias_float.
17249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
17250 <libm-alias-float.h>.
17251 (llrintf): Define using libm_alias_float.
17252 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
17253 Include <libm-alias-float.h>.
17254 (nearbyintf): Define using libm_alias_float.
17255 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
17256 <libm-alias-float.h>.
17257 (rintf): Define using libm_alias_float.
17258 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
17259 <libm-alias-float.h>.
17260 (llrintf): Define using libm_alias_float.
17261 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
17262 <libm-alias-float.h>.
17263 (lrintf): Define using libm_alias_float.
17264 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
17265 <libm-alias-float.h>.
17266 (nearbyintf): Define using libm_alias_float.
17267 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
17268 <libm-alias-float.h>.
17269 (rintf): Define using libm_alias_float.
17270 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
17271 <libm-alias-float.h>.
17272 (ceilf): Define using libm_alias_float.
17273 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
17274 <libm-alias-float.h>.
17275 (floorf): Define using libm_alias_float.
17276 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
17277 <libm-alias-float.h>.
17278 (fmaf): Define using libm_alias_float.
17279 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
17280 <libm-alias-float.h>.
17281 (lrintf): Define using libm_alias_float.
17282 (llrintf): Likewise.
17283 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
17284 <libm-alias-float.h>.
17285 (nearbyintf): Define using libm_alias_float.
17286 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
17287 <libm-alias-float.h>.
17288 (rintf): Define using libm_alias_float.
17289 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
17290 <libm-alias-float.h>.
17291 (truncf): Define using libm_alias_float.
17292 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
17293 <libm-alias-float.h>.
17294 (copysignf): Define using libm_alias_float.
17295 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
17296 <libm-alias-float.h>.
17297 (fabsf): Define using libm_alias_float.
17298 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
17299 <libm-alias-float.h>.
17300 (lrintf): Define using libm_alias_float.
17301 (llrintf): Likewise.
17302 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
17303 <libm-alias-float.h>.
17304 (nearbyintf): Define using libm_alias_float.
17305 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
17306 <libm-alias-float.h>.
17307 (rintf): Define using libm_alias_float.
17308
17309 2017-11-29 Joseph Myers <joseph@codesourcery.com>
17310
17311 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
17312 <libm-alias-double.h>.
17313 (copysign): Define using libm_alias_double.
17314 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
17315 <libm-alias-double.h>.
17316 (fabs): Define using libm_alias_double.
17317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
17318 Include <libm-alias-double.h>.
17319 (copysign): Define using libm_alias_double.
17320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
17321 <libm-alias-double.h>.
17322 (fabs): Define using libm_alias_double.
17323 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
17324 <libm-alias-double.h>.
17325 (fdim): Define using libm_alias_double.
17326 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
17327 <libm-alias-double.h>.
17328 (fma): Define using libm_alias_double.
17329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
17330 <libm-alias-double.h>.
17331 (llrint): Define using libm_alias_double.
17332 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
17333 Include <libm-alias-double.h>.
17334 (nearbyint): Define using libm_alias_double.
17335 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
17336 <libm-alias-double.h>.
17337 (rint): Define using libm_alias_double.
17338 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17339 <libm-alias-double.h>.
17340 (fabs): Define using libm_alias_double.
17341 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
17342 <libm-alias-double.h>.
17343 (llrint): Define using libm_alias_double.
17344 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
17345 <libm-alias-double.h>.
17346 (nearbyint): Define using libm_alias_double.
17347 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
17348 <libm-alias-double.h>.
17349 (rint): Define using libm_alias_double.
17350 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
17351 <libm-alias-double.h>.
17352 (ceil): Define using libm_alias_double.
17353 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
17354 <libm-alias-double.h>.
17355 (floor): Define using libm_alias_double.
17356 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
17357 <libm-alias-double.h>.
17358 (fma): Define using libm_alias_double.
17359 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
17360 <libm-alias-double.h>.
17361 (lrint): Define using libm_alias_double.
17362 (llrint): Likewise.
17363 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
17364 <libm-alias-double.h>.
17365 (nearbyint): Define using libm_alias_double.
17366 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
17367 <libm-alias-double.h>.
17368 (rint): Define using libm_alias_double.
17369 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
17370 <libm-alias-double.h>.
17371 (trunc): Define using libm_alias_double.
17372 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
17373 <libm-alias-double.h>.
17374 (copysign): Define using libm_alias_double.
17375 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
17376 <libm-alias-double.h>.
17377 (fabs): Define using libm_alias_double.
17378 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
17379 <libm-alias-double.h>.
17380 (lrint): Define using libm_alias_double.
17381 (llrint): Likewise.
17382 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
17383 <libm-alias-double.h>.
17384 (nearbyint): Define using libm_alias_double.
17385 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
17386 <libm-alias-double.h>.
17387 (rint): Define using libm_alias_double.
17388
17389 [BZ #22229]
17390 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17391 <math_ldbl_opt.h>.
17392 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
17393
17394 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17395 SPARC --disable-multi-arch glibc variants.
17396
17397 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
17398 <libm-alias-float.h>.
17399 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17400 if [SHARED].
17401 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
17402 <libm-alias-float.h>.
17403 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17404 if [SHARED].
17405 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
17406 <libm-alias-float.h>.
17407 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17408 if [SHARED].
17409 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
17410 <libm-alias-float.h>.
17411 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17412 if [SHARED].
17413 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
17414 <libm-alias-float.h>.
17415 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17416 if [SHARED].
17417 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
17418 <libm-alias-float.h>.
17419 (ceilf): Define using libm_alias_float.
17420 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
17421 <libm-alias-float.h>.
17422 (floorf): Define using libm_alias_float.
17423 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
17424 <libm-alias-float.h>.
17425 (fmaf): Define using libm_alias_float.
17426 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
17427 <libm-alias-float.h>.
17428 (nearbyintf): Define using libm_alias_float.
17429 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
17430 <libm-alias-float.h>.
17431 (rintf): Define using libm_alias_float.
17432 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
17433 <libm-alias-float.h>.
17434 (truncf): Define using libm_alias_float.
17435 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
17436 (copysignf): Define using libm_alias_float.
17437 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
17438 (cosf): Define using libm_alias_float.
17439 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
17440 (fabsf): Define using libm_alias_float.
17441 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17442 (fmaxf): Define using libm_alias_float.
17443 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
17444 (fminf): Define using libm_alias_float.
17445 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
17446 (llrintf): Define using libm_alias_float.
17447 [!__ILP32__] (lrintf): Likewise.
17448 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
17449 (sincosf): Define using libm_alias_float.
17450 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
17451 (sinf): Define using libm_alias_float.
17452 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
17453 (lrintf): Define using libm_alias_float.
17454
17455 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
17456 <libm-alias-double.h>.
17457 (atan): Define using libm_alias_double.
17458 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
17459 <libm-alias-double.h>.
17460 (ceil): Define using libm_alias_double.
17461 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
17462 <libm-alias-double.h>.
17463 (floor): Define using libm_alias_double.
17464 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
17465 <libm-alias-double.h>.
17466 (fma): Define using libm_alias_double.
17467 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
17468 <libm-alias-double.h>.
17469 (nearbyint): Define using libm_alias_double.
17470 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
17471 <libm-alias-double.h>.
17472 (rint): Define using libm_alias_double.
17473 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
17474 <libm-alias-double.h>.
17475 (sin): Define using libm_alias_double.
17476 (cos): Likewise.
17477 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
17478 <libm-alias-double.h>.
17479 (tan): Define using libm_alias_double.
17480 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
17481 <libm-alias-double.h>.
17482 (trunc): Define using libm_alias_double.
17483 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
17484 (copysign): Define using libm_alias_double.
17485 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
17486 (fabs): Define using libm_alias_double.
17487 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
17488 (fmax): Define using libm_alias_double.
17489 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
17490 (fmin): Define using libm_alias_double.
17491 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
17492 (llrint): Define using libm_alias_double.
17493 [!__ILP32__] (lrint): Likewise.
17494 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
17495 (lrint): Define using libm_alias_double.
17496
17497 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17498
17499 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17500 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
17501 objects.
17502 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
17503 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
17504 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
17505 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
17506 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
17507 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
17508
17509 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17510 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
17511 objects.
17512 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
17513 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
17514 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
17515 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
17516 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
17517 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
17518
17519 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17520 (libm-sysdep_routines): Add s_nearbyint-generic and
17521 s_nearbyintf-generic objects.
17522 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
17523 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
17524 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
17525 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
17526 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
17527 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
17528
17529 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17530 Add s_finitef-generic and s_finite-generic objects.
17531 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
17532 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
17533 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
17534 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
17535 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
17536 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
17537
17538 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17539 Add s_isinff-generic and s_isinf-generic objects.
17540 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
17541 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
17542 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
17543 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
17544 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
17545 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
17546
17547 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17548 Add s_isnanf-generic and s_isnan-generic objects.
17549 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
17550 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
17551 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
17552 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
17553 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
17554 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
17555
17556 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
17557 macro.
17558 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
17559 rule.
17560 (sysdep_routines): Use sysdep_calls as base.
17561 (libm-sysdep_routines): Add generic rule for symbols shared with
17562 libc. Add s_signbit-generic and s_signbitf-generic objects.
17563 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
17564 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
17565 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
17566 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
17567 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
17568 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
17569
17570 2017-11-29 Joseph Myers <joseph@codesourcery.com>
17571
17572 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
17573 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
17574 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
17575 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
17576 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
17577 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
17578 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
17579 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
17580 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
17581 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
17582 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
17583 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
17584 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
17585 libm_alias_float_r.
17586 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
17587 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
17588 (logf): Likewise.
17589 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
17590 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
17591 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
17592 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
17593 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
17594 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
17595 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
17596 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
17597 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
17598 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
17599 libm_alias_float.
17600 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
17601 (cosf): Likewise.
17602 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
17603 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
17604 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
17605 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
17606 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
17607 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
17608 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
17609 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
17610 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
17611 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
17612 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
17613 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
17614 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
17615 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
17616 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
17617 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
17618 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
17619 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
17620 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
17621 libm_alias_float.
17622 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
17623 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
17624 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
17625 * sysdeps/ia64/fpu/w_lgammaf_main.c
17626 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
17627 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
17628
17629 2017-11-28 Mike FABIAN <mfabian@redhat.com>
17630 Alexandre Oliva <aoliva@redhat.com>
17631
17632 [BZ #17750]
17633 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
17634 * localedata/fr_CA.UTF-8.in: New file with test data for backward
17635 accents sorting.
17636 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
17637 sorting.
17638 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
17639 * localedata/locales/de_DE (LC_COLLATE): Likewise.
17640 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
17641 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
17642 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
17643 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
17644 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
17645 instead of “ifdef DIACRIT_BACKWARD”.
17646
17647 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17648
17649 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
17650 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
17651 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
17652 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
17653 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
17654 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
17655 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
17656 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
17657 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
17658 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
17659 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
17660 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
17661 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
17662 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
17663 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
17664 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
17665 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
17666 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
17667 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17668 ($(have-as-vis3) == yes): Remove conditional.
17669 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
17670 Likewise.
17671 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
17672 file.
17673 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
17674 file.
17675 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
17676 file.
17677 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
17678 file.
17679 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
17680 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
17681 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
17682 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
17683 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
17684 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
17685 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
17686 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
17687
17688 2017-11-29 Joseph Myers <joseph@codesourcery.com>
17689
17690 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
17691 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
17692 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
17693 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
17694 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
17695 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
17696 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
17697 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
17698 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
17699 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
17700 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
17701 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
17702 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
17703 libm_alias_double_r.
17704 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
17705 (log): Likewise.
17706 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
17707 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
17708 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
17709 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
17710 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
17711 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
17712 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
17713 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
17714 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
17715 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
17716 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
17717 libm_alias_double.
17718 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
17719 (cos): Likewise.
17720 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
17721 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
17722 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
17723 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
17724 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
17725 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
17726 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
17727 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
17728 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
17729 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
17730 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
17731 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
17732 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
17733 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
17734 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
17735 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
17736 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
17737 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
17738 libm_alias_double.
17739 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
17740 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
17741 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
17742 * sysdeps/ia64/fpu/w_lgamma_main.c
17743 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
17744 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
17745
17746 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
17747
17748 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
17749 address of $global$ into %dp register earlier. Use pc-relative
17750 instruction sequence for PIC case.
17751
17752 2017-11-28 Joseph Myers <joseph@codesourcery.com>
17753
17754 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
17755 (asinhf): Define using libm_alias_float.
17756 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
17757 (atanf): Define using libm_alias_float.
17758 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
17759 (cbrtf): Define using libm_alias_float.
17760 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
17761 (ceilf): Define using libm_alias_float.
17762 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
17763 (copysignf): Define using libm_alias_float.
17764 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
17765 (expm1f): Define using libm_alias_float.
17766 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
17767 (fabsf): Define using libm_alias_float.
17768 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
17769 (floorf): Define using libm_alias_float.
17770 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17771 (fmaxf): Define using libm_alias_float.
17772 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
17773 (fminf): Define using libm_alias_float.
17774 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
17775 (frexpf): Define using libm_alias_float.
17776 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
17777 (llrintf): Define using libm_alias_float.
17778 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
17779 (logbf): Define using libm_alias_float.
17780 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
17781 (lrintf): Define using libm_alias_float.
17782 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
17783 (nearbyintf): Define using libm_alias_float.
17784 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
17785 (remquof): Define using libm_alias_float.
17786 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
17787 (rintf): Define using libm_alias_float.
17788 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
17789 (truncf): Define using libm_alias_float.
17790 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
17791 <libm-alias-float.h>.
17792 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17793 if [SHARED].
17794 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
17795 <libm-alias-float.h>.
17796 (expf): Define using libm_alias_float, or libm_alias_float_other
17797 if [SHARED].
17798 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
17799 <libm-alias-float.h>.
17800 (log2f): Define using libm_alias_float, or libm_alias_float_other
17801 if [SHARED].
17802 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
17803 <libm-alias-float.h>.
17804 (logf): Define using libm_alias_float, or libm_alias_float_other
17805 if [SHARED].
17806 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
17807 <libm-alias-float.h>.
17808 (powf): Define using libm_alias_float, or libm_alias_float_other
17809 if [SHARED].
17810 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
17811 <libm-alias-float.h>.
17812 (cosf): Define using libm_alias_float.
17813 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
17814 <libm-alias-float.h>.
17815 (sincosf): Define using libm_alias_float.
17816 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
17817 <libm-alias-float.h>.
17818 (sinf): Define using libm_alias_float.
17819 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17820 (fmaxf): Define using libm_alias_float.
17821 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
17822 (fminf): Define using libm_alias_float.
17823 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17824 <libm-alias-float.h>.
17825 (fmaf): Define using libm_alias_float.
17826
17827 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
17828 (asinh): Define using libm_alias_double.
17829 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
17830 (atan): Define using libm_alias_double.
17831 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
17832 (cbrt): Define using libm_alias_double.
17833 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
17834 (ceil): Define using libm_alias_double.
17835 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
17836 (copysign): Define using libm_alias_double.
17837 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
17838 (expm1): Define using libm_alias_double.
17839 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
17840 (fabs): Define using libm_alias_double.
17841 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
17842 (fdim): Define using libm_alias_double.
17843 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
17844 (floor): Define using libm_alias_double.
17845 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
17846 (fmax): Define using libm_alias_double.
17847 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
17848 (fmin): Define using libm_alias_double.
17849 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
17850 (frexp): Define using libm_alias_double.
17851 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
17852 (llrint): Define using libm_alias_double.
17853 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
17854 (logb): Define using libm_alias_double.
17855 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
17856 (lrint): Define using libm_alias_double.
17857 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
17858 (nearbyint): Define using libm_alias_double.
17859 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
17860 (remquo): Define using libm_alias_double.
17861 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
17862 (rint): Define using libm_alias_double.
17863 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
17864 (trunc): Define using libm_alias_double.
17865 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
17866 (fmax): Define using libm_alias_double.
17867 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
17868 (fmin): Define using libm_alias_double.
17869 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
17870 (fma): Define using libm_alias_double.
17871
17872 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
17873
17874 [BZ #22370]
17875 * elf/dl-hwcaps.c (ROUND): Removed.
17876 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
17877 and ELF_NOTE_NEXT_OFFSET.
17878 * elf/dl-load.c (ROUND): Removed.
17879 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
17880 * elf/readelflib.c (ROUND): Removed.
17881 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
17882 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
17883 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
17884 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
17885
17886 2017-11-28 Joseph Myers <joseph@codesourcery.com>
17887
17888 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
17889 [!__fmaf] (fmaf): Define using libm_alias_float.
17890
17891 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
17892 [!__fma] (fma): Define using libm_alias_double.
17893 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
17894
17895 2017-11-28 Mike FABIAN <mfabian@redhat.com>
17896
17897 [BZ #22336]
17898 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
17899 and implement the collation rules for cs from CLDR on top of that.
17900 * Makefile: Add cs_CZ.UTF-8 to test-input.
17901 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
17902
17903 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
17904
17905 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
17906
17907 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
17908 Icarus Sparry <icarus.w.sparry@intel.com>
17909
17910 * benchtests/Makefile:Add BENCHSET to allow subsets of
17911 benchmarks to be run.
17912 * benchtests/README: Add documentation for: Running subsets of
17913 benchmarks.
17914
17915 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
17916
17917 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
17918 range of tests names.
17919
17920 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
17921 result from property and remove "max", min" and "mean" from
17922 required properties based on benchtests/bench-skeleton.c.
17923
17924 2017-11-28 Florian Weimer <fweimer@redhat.com>
17925
17926 [BZ #20826]
17927 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
17928 due to Internet requirement.
17929 * posix/Makefile (tests): Remove tst-getaddrinfo4,
17930 tst-getaddrinfo5.
17931 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
17932
17933 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17934
17935 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17936 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
17937 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
17938 (sysdep_routines): Add memset-ultra1.
17939 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
17940 file.
17941 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
17942 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
17943 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
17944 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
17945 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
17946 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
17947 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
17948 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17949
17950 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
17951 file.
17952 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
17953 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
17954 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
17955 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
17956 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
17957 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
17958 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
17959 macro.
17960 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17961 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
17962 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
17963 (sysdep_routines): Add memcpy-ultra1.
17964 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
17965 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
17966
17967 2017-11-28 Joseph Myers <joseph@codesourcery.com>
17968
17969 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
17970 (cfloat_versions): Take function argument without trailing 'f'.
17971 Call libm_alias_float_other.
17972 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
17973 * sysdeps/alpha/fpu/cargf.c: Likewise.
17974 * sysdeps/alpha/fpu/cimagf.c: Likewise.
17975 * sysdeps/alpha/fpu/conjf.c: Likewise.
17976 * sysdeps/alpha/fpu/crealf.c: Likewise.
17977 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
17978 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
17979 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
17980 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
17981 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
17982 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
17983 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
17984 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
17985 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
17986 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
17987 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
17988 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
17989 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
17990 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
17991 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
17992 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
17993 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
17994 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
17995 (clog10f): Use libm_alias_float_other.
17996 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
17997 (ceilf): Define using libm_alias_float.
17998 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
17999 (copysignf): Define using libm_alias_float.
18000 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
18001 (fabsf): Define using libm_alias_float.
18002 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
18003 (floorf): Define using libm_alias_float.
18004 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
18005 (fmaxf): Define using libm_alias_float.
18006 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
18007 (fminf): Define using libm_alias_float.
18008 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
18009 (lrintf): Define using libm_alias_float.
18010 (llrintf): Likewise.
18011 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
18012 (lroundf): Define using libm_alias_float.
18013 (llroundf): Likewise.
18014 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
18015 (rintf): Define using libm_alias_float.
18016 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
18017 (truncf): Define using libm_alias_float.
18018
18019 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
18020 (ceilf): Define using libm_alias_float.
18021 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
18022 (floorf): Define using libm_alias_float.
18023 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
18024 (fmaf): Define using libm_alias_float.
18025 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
18026 (fmaxf): Define using libm_alias_float.
18027 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
18028 (fminf): Define using libm_alias_float.
18029 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
18030 (llrintf): Define using libm_alias_float.
18031 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
18032 (llroundf): Define using libm_alias_float.
18033 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
18034 (lrintf): Define using libm_alias_float.
18035 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
18036 (lroundf): Define using libm_alias_float.
18037 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
18038 <libm-alias-float.h>.
18039 (nearbyintf): Define using libm_alias_float.
18040 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
18041 (rintf): Define using libm_alias_float.
18042 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
18043 (roundf): Define using libm_alias_float.
18044 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
18045 (truncf): Define using libm_alias_float.
18046
18047 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
18048 (ceil): Define using libm_alias_double.
18049 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
18050 (copysign): Define using libm_alias_double.
18051 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
18052 (fabs): Define using libm_alias_double.
18053 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
18054 (floor): Define using libm_alias_double.
18055 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
18056 (fmax): Define using libm_alias_double.
18057 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
18058 (fmin): Define using libm_alias_double.
18059 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
18060 (lrint): Define using libm_alias_double.
18061 (llrint): Likewise.
18062 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
18063 (lround): Define using libm_alias_double.
18064 (llround): Likewise.
18065 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
18066 (rint): Define using libm_alias_double.
18067 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
18068 (trunc): Define using libm_alias_double.
18069
18070 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
18071 (libm_alias_double_r): Add semicolon after weak_alias call.
18072
18073 2017-11-27 Joseph Myers <joseph@codesourcery.com>
18074
18075 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
18076 (ceil): Define using libm_alias_double.
18077 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
18078 (floor): Define using libm_alias_double.
18079 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
18080 (fma): Define using libm_alias_double.
18081 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
18082 (fmax): Define using libm_alias_double.
18083 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
18084 (fmin): Define using libm_alias_double.
18085 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
18086 (llrint): Define using libm_alias_double.
18087 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
18088 (llround): Define using libm_alias_double.
18089 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
18090 (lrint): Define using libm_alias_double.
18091 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
18092 (lround): Define using libm_alias_double.
18093 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
18094 (nearbyint): Define using libm_alias_double.
18095 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
18096 (rint): Define using libm_alias_double.
18097 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
18098 (round): Define using libm_alias_double.
18099 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
18100 (trunc): Define using libm_alias_double.
18101
18102 2017-11-27 Florian Weimer <fweimer@redhat.com>
18103
18104 * sysdeps/unix/sysv/linux/mlock2.c: New file.
18105 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
18106 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
18107 (tests): Add tst-mlock2.
18108 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
18109 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
18110 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
18111 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
18112 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
18113 for mlock. Document mlock2.
18114
18115 2017-11-27 Joseph Myers <joseph@codesourcery.com>
18116
18117 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
18118 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
18119 Likewise.
18120 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
18121 Likewise.
18122 * sysdeps/x86/Makeconfig: New file.
18123 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
18124 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18125 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
18126 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18127 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18128 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18129 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
18130 Likewise.
18131 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18132 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18133 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18134 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18135 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18136 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18137 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18138 * manual/math.texi (Mathematics): Document support for _Float64x.
18139 * math/Versions (GLIBC_2.27): Add _Float64x functions.
18140 * stdlib/Versions (GLIBC_2.27): Likewise.
18141 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18142 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18143 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18144 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18145 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18146 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18147 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18148 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18149 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18150 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18151 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18152 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18154 Likewise.
18155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18156 Likewise.
18157 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18158 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18159 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18160 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18161 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18162 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18163 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18164 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18165 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18166 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18167 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18168 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18169 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18170 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18171
18172 2017-11-27 Andreas Schwab <schwab@suse.de>
18173
18174 * elf/Makefile (dl-routines): Add dl-sort-maps.
18175 * elf/dl-sort-maps.c: New file.
18176 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
18177 (_dl_sort_maps): Declare.
18178 * elf/dl-fini.c (_dl_sort_fini): Remove.
18179 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
18180 * elf/dl-close.c (_dl_close_worker): Likewise.
18181 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
18182 open-coding it.
18183 * elf/dl-open.c (dl_open_worker): Likewise.
18184
18185 2017-11-24 Joseph Myers <joseph@codesourcery.com>
18186
18187 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
18188 using libm_alias_float128.
18189 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
18190 Likewise.
18191 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
18192 Likewise.
18193 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
18194 (setpayloadsigf128): Likewise.
18195 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
18196 Likewise.
18197 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
18198 Likewise.
18199
18200 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
18201 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
18202 -mfloat128 to CFLAGS.
18203 ($(foreach
18204 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
18205 Likewise.
18206 (CFLAGS-libm-test-support-float64x.c): New variable.
18207 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
18208 $(f128-loader-link) to gnulib-tests.
18209
18210 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
18211 (libm_alias_float128_other_r): If
18212 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
18213 alias.
18214 (libm_alias_float128_r): Add semicolon after weak_alias call.
18215 * sysdeps/generic/libm-alias-ldouble.h
18216 (libm_alias_ldouble_other_r_f128): New macro.
18217 (libm_alias_ldouble_other_r_f64x): Likewise.
18218 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
18219 and libm_alias_ldouble_other_r_f64x.
18220 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
18221 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
18222 (libm_alias_ldouble_other_r_f128): New macro.
18223 (libm_alias_ldouble_other_r_f64x): Likewise.
18224 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
18225 and libm_alias_ldouble_other_r_f64x.
18226
18227 * stdlib/strfroml.c: Always include <stdlib.h>.
18228 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
18229 undefine as macro and define as weak alias.
18230 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
18231 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
18232 <stdlib.h>.
18233 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
18234 Define and later undefine as macro and define as weak alias.
18235
18236 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
18237 Define and later undefine as macro. Define as weak alias if
18238 [!USE_WIDE_CHAR].
18239 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
18240 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18241 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
18242 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
18243 Define and later undefine as macro. Define as weak alias if
18244 [!USE_WIDE_CHAR].
18245 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
18246 Define and later undefine as macro. Define as weak alias if
18247 [USE_WIDE_CHAR].
18248 * sysdeps/ieee754/float128/strtof128_l.c
18249 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
18250 Define and later undefine as macro. Define as weak alias if
18251 [!USE_WIDE_CHAR].
18252 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
18253 Define and later undefine as macro. Define as weak alias if
18254 [USE_WIDE_CHAR].
18255 * sysdeps/ieee754/ldbl-128/strtold_l.c
18256 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18257 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18258 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18259 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18260 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
18261 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18262 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18263 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18264 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18265 * sysdeps/ieee754/ldbl-96/strtold_l.c
18266 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18267 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18268 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18269 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18270
18271 * math/test-float64x.h: New file.
18272 * math/Makefile (type-float64x-yes): New variable.
18273 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
18274
18275 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
18276 function-like macro.
18277 (min_of_type_): Likewise.
18278 (min_of_type_l): Likewise.
18279 (min_of_type_f128): Likewise.
18280 (min_of_type): Pass () as last argument of __MATH_TG.
18281
18282 * stdlib/tst-strtod-round-skeleton.c
18283 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
18284 headers.
18285
18286 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
18287 for combinations of long double with _Float64 and _Float64x.
18288
18289 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
18290 (__DECL_SIMD_cosf32): Likewise.
18291 (__DECL_SIMD_cosf64): Likewise.
18292 (__DECL_SIMD_cosf32x): Likewise.
18293 (__DECL_SIMD_cosf64x): Likewise.
18294 (__DECL_SIMD_cosf128x): Likewise.
18295 (__DECL_SIMD_sinf16): Likewise.
18296 (__DECL_SIMD_sinf32): Likewise.
18297 (__DECL_SIMD_sinf64): Likewise.
18298 (__DECL_SIMD_sinf32x): Likewise.
18299 (__DECL_SIMD_sinf64x): Likewise.
18300 (__DECL_SIMD_sinf128x): Likewise.
18301 (__DECL_SIMD_sincosf16): Likewise.
18302 (__DECL_SIMD_sincosf32): Likewise.
18303 (__DECL_SIMD_sincosf64): Likewise.
18304 (__DECL_SIMD_sincosf32x): Likewise.
18305 (__DECL_SIMD_sincosf64x): Likewise.
18306 (__DECL_SIMD_sincosf128x): Likewise.
18307 (__DECL_SIMD_logf16): Likewise.
18308 (__DECL_SIMD_logf32): Likewise.
18309 (__DECL_SIMD_logf64): Likewise.
18310 (__DECL_SIMD_logf32x): Likewise.
18311 (__DECL_SIMD_logf64x): Likewise.
18312 (__DECL_SIMD_logf128x): Likewise.
18313 (__DECL_SIMD_expf16): Likewise.
18314 (__DECL_SIMD_expf32): Likewise.
18315 (__DECL_SIMD_expf64): Likewise.
18316 (__DECL_SIMD_expf32x): Likewise.
18317 (__DECL_SIMD_expf64x): Likewise.
18318 (__DECL_SIMD_expf128x): Likewise.
18319 (__DECL_SIMD_powf16): Likewise.
18320 (__DECL_SIMD_powf32): Likewise.
18321 (__DECL_SIMD_powf64): Likewise.
18322 (__DECL_SIMD_powf32x): Likewise.
18323 (__DECL_SIMD_powf64x): Likewise.
18324 (__DECL_SIMD_powf128x): Likewise.
18325
18326 * stdlib/Versions (libc): Move entries for wcstof128 and
18327 wcstof128_l to ....
18328 * wcsmbs/Versions (libc): ... here.
18329 Include <float128-abi.h>.
18330
18331 2017-11-24 Florian Weimer <fweimer@redhat.com>
18332
18333 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18334 bits/mman-shared.h.
18335 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
18336 <bits/mman-shared.h>.
18337 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
18338 to ...
18339 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
18340 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
18341 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
18342 <bits/mman-shared.h>.
18343
18344 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18345
18346 [BZ #22457]
18347 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
18348 posix_memalign/free.
18349 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
18350
18351 2017-11-22 Mike FABIAN <mfabian@redhat.com>
18352
18353 [BZ #22469]
18354 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
18355 and implement the collation rules for pl from CLDR on top of that.
18356 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
18357 of locales to be built for testing.
18358 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
18359
18360 2017-11-23 Joseph Myers <joseph@codesourcery.com>
18361
18362 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
18363 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
18364 libm_alias_ldouble_other.
18365 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
18366 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
18367 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
18368 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
18369 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
18370 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
18371 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
18372 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
18373 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
18374 libm_alias_ldouble_r.
18375 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
18376 libm_alias_ldouble_other.
18377 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
18378 (log10l): Likewise.
18379 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
18380 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
18381 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
18382 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
18383 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
18384 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
18385 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
18386 (atan2l): Likewise.
18387 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
18388 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
18389 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
18390 libm_alias_ldouble.
18391 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
18392 (cosl): Likewise.
18393 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
18394 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
18395 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
18396 (expl): Likewise.
18397 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
18398 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
18399 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
18400 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
18401 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
18402 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
18403 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
18404 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
18405 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
18406 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
18407 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
18408 libm_alias_ldouble.
18409 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
18410 libm_alias_ldouble_other.
18411 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
18412 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
18413 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
18414 libm_alias_ldouble.
18415 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
18416 libm_alias_ldouble_other.
18417 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
18418 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
18419 * sysdeps/ia64/fpu/w_lgammal_main.c
18420 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
18421 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
18422
18423 2017-11-23 Florian Weimer <fweimer@redhat.com>
18424
18425 * malloc/malloc.c (tcache_thread_shutdown): Rename from
18426 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
18427 alike. Remove freeres marker.
18428 * malloc/arena.c (arena_thread_freeres): Call
18429 tcache_thread_shutdown.
18430
18431 2017-11-23 Florian Weimer <fweimer@redhat.com>
18432
18433 [BZ #22459]
18434 Export nscd hash function as __nss_hash.
18435 * include/nss.h (__nss_hash): Declare.
18436 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
18437 symbol.
18438 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
18439 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
18440 of __nscd_hash.
18441 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
18442 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
18443 * nss/Makefiles (routines): Add nss_hash.
18444 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
18445 * nss/nss_hash.c: Rename from nis/nis_hash.c.
18446 (__nss_hash): Rename from __nis_hash. Define hidden alias.
18447 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
18448
18449 2017-11-23 Florian Weimer <fweimer@redhat.com>
18450
18451 [BZ #22478]
18452 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
18453 Return error code, not -1.
18454 * signal/tst-sigwait-eintr.c: New file.
18455 * signal/Makefile (tests): Add tst-sigwait-eintr.
18456
18457 2017-11-23 Florian Weimer <fweimer@redhat.com>
18458
18459 Linux: Add memfd_create system call wrapper
18460 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
18461 tst-memfd_create.
18462 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
18463 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
18464 [__USE_GNU] (memfd_create): Declare.
18465 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
18466 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
18467 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
18468 * sysdeps/unix/sysv/linux/**.abilist: Update.
18469 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
18470
18471 2017-11-22 Joseph Myers <joseph@codesourcery.com>
18472
18473 * localedata/gen-locale.sh: Fix typo in variable name.
18474
18475 * resolv/res_debug.c (p_secstodate): Condition definition on
18476 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
18477 directly as __p_secstodate, and as a compat symbol. Do not use
18478 libresolv_hidden_def.
18479 * resolv/resolv.h (p_secstodate): Remove macro and function
18480 declaration.
18481 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
18482 using p_secstodate.
18483 * include/resolv.h (__p_secstodate): Do not use
18484 libresolv_hidden_proto.
18485 * resolv/Makefile (tests): Move tst-p_secstodate to ....
18486 (tests-internal): ... here.
18487 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
18488 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
18489 and declare and use __p_secstodate and use compat_symbol_reference
18490 in that case.
18491 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
18492 implementation returning 77.
18493
18494 [BZ #22463]
18495 * resolv/res_debug.c: Include <libc-diag.h>.
18496 (p_secstodate): Assert time_t at least as wide as u_long. On
18497 overflow, use integer seconds since the epoch as output, or use
18498 "<overflow>" as output and set errno to EOVERFLOW if integer
18499 seconds since the epoch would be 14 or more characters.
18500 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
18501 for sprintf call.
18502 * resolv/tst-p_secstodate.c: New file.
18503 * resolv/Makefile (tests): Add tst-p_secstodate.
18504 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
18505
18506 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
18507 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
18508 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
18509
18510 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
18511
18512 * posix/regcomp.c (init_word_char): Add comments.
18513
18514 2017-11-22 Joseph Myers <joseph@codesourcery.com>
18515
18516 [BZ #22447]
18517 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
18518 strlen to compute length of ut_user and set trailing NUL byte of
18519 result explicitly.
18520
18521 2017-11-21 Mike FABIAN <mfabian@redhat.com>
18522
18523 [BZ #15537]
18524 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
18525 using “copy "iso14651_t1"” and then implementing the
18526 collation rules for lv from CLDR on top of that.
18527 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
18528 of locales to be built for testing.
18529 * lv_LV.UTF-8.in: New file with test data to test the Latvian
18530 sorting.
18531
18532 2017-11-21 Joseph Myers <joseph@codesourcery.com>
18533
18534 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
18535 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
18536 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
18537 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
18538 [__USE_MISC] (MADV_HWPOISON): New macro.
18539 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
18540
18541 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18542
18543 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
18544 -Wmissing-braces on GCC 4.9.
18545
18546 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
18547
18548 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
18549 * sysdeps/s390/s390-32/start.S (_start): Likewise
18550 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
18551 (thread_start): Likewise.
18552 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
18553 (thread_start): Likewise.
18554 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
18555 (__makecontext_ret): Likewise.
18556 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
18557 (__makecontext_ret): Likewise.
18558
18559 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
18560
18561 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
18562 __wcschrnul): Remove attribute_hidden.
18563
18564 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
18565
18566 regex: don't assume uint64_t or uint32_t
18567 This avoids -Werror=overflow errors for 32-bit systems in
18568 the 64-bit case. Problem reported by Joseph Myers in:
18569 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
18570 Also, when this code is used in Gnulib it ports to platforms
18571 that lack uint64_t and uint32_t. The C standard doesn't guarantee
18572 them, and on some 32-bit compilers there is no uint64_t.
18573 Problem reported by Gianluigi Tiesi in:
18574 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
18575 * posix/regcomp.c (init_word_char): Don't assume that the types
18576 uint64_t and uint32_t exist. Adapted from Gnulib patch
18577 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
18578 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
18579
18580 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
18581
18582 * sysdeps/aarch64/memset-reg.h: New file.
18583 * sysdeps/aarch64/memset.S: Use it.
18584 (__memset): Rename to MEMSET macro.
18585 [ZVA_MACRO]: Use zva_macro.
18586 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18587 Add memset_generic and memset_falkor.
18588 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
18589 (__libc_ifunc_impl_list): Add memset ifuncs.
18590 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
18591 local variable zva_size.
18592 * sysdeps/aarch64/multiarch/memset.c: New file.
18593 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
18594 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
18595 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
18596 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
18597 (DCZID_DZP_MASK): New macro.
18598 (DCZID_BS_MASK): Likewise.
18599 (init_cpu_features): Read and set zva_size.
18600 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
18601 (struct cpu_features): New member zva_size.
18602
18603 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
18604 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
18605 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
18606
18607 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
18608 backwards. Fix timing computation.
18609 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
18610 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
18611 on memset by N at a time. Fix timing computation.
18612
18613 2017-11-20 Florian Weimer <fweimer@redhat.com>
18614
18615 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
18616 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
18617
18618 2017-11-19 Florian Weimer <fweimer@redhat.com>
18619
18620 manual: Document mprotect
18621 * manual/memory.texi (Memory Protection): New section.
18622 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
18623 documentation of PROT_* flags and reference the Memory Protection
18624 section instead.
18625
18626 2017-11-19 Florian Weimer <fweimer@redhat.com>
18627
18628 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
18629 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
18630 (Scatter-Gather): ... to here. Remove misleading comment.
18631
18632 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
18633
18634 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
18635 style.
18636
18637 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
18638 when /proc/<pid>/setgroups does not exist.
18639
18640 2017-11-18 Florian Weimer <fweimer@redhat.com>
18641
18642 * sysdeps/unix/sysv/linux/tst-ttyname.c
18643 (become_root_in_mount_ns): Remove.
18644 (do_in_chroot_1): Call support_enter_mount_namespace.
18645 (do_in_chroot_2): Likewise.
18646 (do_test): Call support_become_root early.
18647
18648 2017-11-18 Florian Weimer <fweimer@redhat.com>
18649
18650 * support/namespace.h (support_enter_mount_namespace): Declare.
18651 * support/support_enter_mount_namespace.c: New file.
18652 * support/Makefile (libsupport-routines): Add
18653 support_enter_mount_namespace.
18654
18655 2017-11-18 Florian Weimer <fweimer@redhat.com>
18656
18657 * support/temp_file.c (support_create_temp_directory): Use
18658 test_dir and do not rely on the presence of the XXXXXX suffix.
18659 * support/temp_file.h (support_create_temp_directory): Update
18660 comment.
18661 * support/tst-xreadlink.c (do_test): Adjust.
18662 * support/support_chroot.c (support_chroot_create): Likewise.
18663
18664 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18665
18666 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
18667 macro.
18668 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
18669 htm-no-suspend.
18670
18671 2017-11-17 Joseph Myers <joseph@codesourcery.com>
18672
18673 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
18674 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
18675 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
18676 (ceill): Define using libm_alias_ldouble.
18677 * sysdeps/x86_64/fpu/s_copysignl.S: Include
18678 <libm-alias-ldouble.h>.
18679 (copysignl): Define using libm_alias_ldouble.
18680 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
18681 (fabsl): Define using libm_alias_ldouble.
18682 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
18683 (floorl): Define using libm_alias_ldouble.
18684 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18685 (fmaxl): Define using libm_alias_ldouble.
18686 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18687 (fminl): Define using libm_alias_ldouble.
18688 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
18689 (llrintl): Define using libm_alias_ldouble.
18690 (lrintl): Likewise.
18691 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
18692 <libm-alias-ldouble.h>.
18693 (nearbyintl): Define using libm_alias_ldouble.
18694 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
18695 (truncl): Define using libm_alias_ldouble.
18696 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
18697 <libm-alias-ldouble.h>.
18698 (lrintl): Define using libm_alias_ldouble.
18699
18700 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
18701 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
18702 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
18703 (asinhl): Define using libm_alias_ldouble.
18704 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
18705 (atanl): Define using libm_alias_ldouble.
18706 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
18707 (cbrtl): Define using libm_alias_ldouble.
18708 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
18709 (ceill): Define using libm_alias_ldouble.
18710 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
18711 (copysignl): Define using libm_alias_ldouble.
18712 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
18713 (fabsl): Define using libm_alias_ldouble.
18714 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
18715 (floorl): Define using libm_alias_ldouble.
18716 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18717 (fmaxl): Define using libm_alias_ldouble.
18718 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18719 (fminl): Define using libm_alias_ldouble.
18720 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
18721 (frexpl): Define using libm_alias_ldouble.
18722 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
18723 (llrintl): Define using libm_alias_ldouble.
18724 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
18725 (logbl): Define using libm_alias_ldouble.
18726 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
18727 (lrintl): Define using libm_alias_ldouble.
18728 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
18729 (nearbyintl): Define using libm_alias_ldouble.
18730 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
18731 (nextafterl): Define using libm_alias_ldouble.
18732 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
18733 (remquol): Define using libm_alias_ldouble.
18734 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
18735 (rintl): Define using libm_alias_ldouble.
18736 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
18737 (truncl): Define using libm_alias_ldouble.
18738 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18739 (fmaxl): Define using libm_alias_ldouble.
18740 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18741 (fminl): Define using libm_alias_ldouble.
18742
18743 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
18744 to C syntax instead of availability and properties of types.
18745 * bits/floatn.h [!__ASSEMBLER]: Likewise.
18746 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
18747 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
18748 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
18749 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
18750 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
18751
18752 2017-11-17 Florian Weimer <fweimer@redhat.com>
18753
18754 support_become_root: Enable file creation in namespaces.
18755 * support/support_become_root.c (setup_mapping): New function.
18756 (support_become_root): Call it.
18757
18758 2017-11-17 Joseph Myers <joseph@codesourcery.com>
18759
18760 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
18761 macro.
18762
18763 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18764
18765 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
18766 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
18767
18768 2017-11-16 Joseph Myers <joseph@codesourcery.com>
18769
18770 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
18771
18772 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18773 version to 4.14.
18774
18775 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
18776
18777 * INSTALL: Fix botched up regeneration.
18778
18779 * NEWS: Update sourceare link to https.
18780 * configure.ac: Likewise.
18781 * crypt/md5test-giant.c: Likewise.
18782 * dlfcn/bug-atexit1.c: Likewise.
18783 * dlfcn/bug-atexit2.c: Likewise.
18784 * localedata/README: Likewise.
18785 * malloc/tst-mallocfork.c: Likewise.
18786 * manual/install.texi: Likewise.
18787 * nptl/tst-pthread-getattr.c: Likewise.
18788 * stdio-common/tst-fgets.c: Likewise.
18789 * stdio-common/tst-fwrite.c: Likewise.
18790 * sunrpc/Makefile: Likewise.
18791 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
18792 * wcsmbs/tst-mbrtowc2.c: Likewise.
18793 * configure: Regenerate.
18794 * INSTALL: Regenerate.
18795
18796 2017-11-15 Martin Sebor <msebor@redhat.com>
18797
18798 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
18799 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
18800 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
18801
18802 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
18803
18804 [BZ #22145]
18805 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
18806 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
18807
18808 [BZ #22145]
18809 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
18810 Defer is_pty check until end of the function.
18811 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18812
18813 [BZ #22145]
18814 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
18815 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
18816 (ttyname): Likewise.
18817 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
18818 (__ttyname_r): Likewise.
18819
18820 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
18821 int to bool.
18822
18823 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
18824
18825 * manual/terminal.texi (Is It a Terminal):
18826 Mention ENODEV for ttyname and ttyname_r.
18827
18828 2017-11-15 Joseph Myers <joseph@codesourcery.com>
18829
18830 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
18831 constant and macro.
18832
18833 * sysdeps/unix/sysv/linux/bits/mman-linux.h
18834 [__USE_MISC] (MADV_WIPEONFORK): New macro.
18835 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
18836 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
18837 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
18838 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
18839
18840 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18841
18842 * signal/sigrelse.c (sigrelse): Optimize implementation.
18843
18844 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
18845 (__sigpause): Rely on __sigsuspend to implement single thread
18846 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
18847
18848 2017-11-15 Joseph Myers <joseph@codesourcery.com>
18849
18850 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18851 kernel version to 4.14.
18852
18853 2017-11-15 Steve Ellcey <sellcey@cavium.com>
18854
18855 [BZ #22442]
18856 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
18857 Check if ifname is too long.
18858
18859 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
18860
18861 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
18862
18863 2017-11-15 Mike FABIAN <mfabian@redhat.com>
18864
18865 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
18866 was accidentally lost.
18867
18868 2017-11-15 Mike FABIAN <mfabian@redhat.com>
18869
18870 * localedata/locales/az_IR: Add standard copyright header.
18871
18872 2017-11-15 Florian Weimer <fweimer@redhat.com>
18873
18874 [BZ #22439]
18875 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
18876 not just the top one. Output a new "subheaps" statistic.
18877
18878 2017-11-15 Florian Weimer <fweimer@redhat.com>
18879
18880 [BZ #22408]
18881 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
18882 under the per-arena lock.
18883 * malloc/Makefile (tests): Add tst-malloc_info.
18884 (tst-malloc_info): Link with libpthread.
18885 * malloc/tst-malloc_info.c: New file.
18886
18887 2017-11-15 Joseph Myers <joseph@codesourcery.com>
18888
18889 [BZ #21660]
18890 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
18891 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
18892 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
18893 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
18894 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
18895 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
18896 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
18897 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
18898 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
18899 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
18900 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
18901 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
18902 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
18903 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
18904 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
18905 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
18906 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
18907 (__floating_type): Likewise.
18908 (__real_integer_type): Likewise.
18909 (__complex_integer_type): Likewise.
18910 (__expr_is_real): Likewise.
18911 (__tgmath_real_type_sub): Likewise.
18912 (__tgmath_real_type): Likewise.
18913 (__tgmath_complex_type_sub): Likewise.
18914 (__tgmath_complex_type): Likewise.
18915 (__TGMATH_F128): Likewise.
18916 (__TGMATH_CF128): Likewise.
18917 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
18918 new macros.
18919 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
18920 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
18921 Likewise.
18922 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
18923 Likewise.
18924 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
18925 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
18926 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
18927 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
18928 Likewise.
18929 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
18930 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
18931 Likewise.
18932 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
18933 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
18934 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
18935 Likewise.
18936 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
18937 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
18938 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
18939 (cimag): Likewise.
18940 (creal): Likewise.
18941
18942 2017-11-14 Joseph Myers <joseph@codesourcery.com>
18943
18944 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
18945 for stpncpy calls for GCC 8.
18946 (test_strncat): Disable -Wstringop-truncation warning for strncat
18947 calls for GCC 8. Disable -Wstringop-overflow= warning for one
18948 strncat call for GCC 7.
18949 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
18950 calls for GCC 8.
18951 (test_memcmp): Use memcpy instead of strncpy for calls not copying
18952 trailing NUL.
18953
18954 * string/bug-strncat1.c: Include <libc-diag.h>.
18955 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
18956
18957 2017-11-13 Claude Paroz <claude@2xlibre.net>
18958
18959 [BZ #22387]
18960 * localedata/locales/aa_DJ: Improved readibility by replacing
18961 <Uxxxx> sequences in the ASCII printable range by their ASCII
18962 character equivalents.
18963 * localedata/locales/aa_ER: Likewise.
18964 * localedata/locales/aa_ER@saaho: Likewise.
18965 * localedata/locales/aa_ET: Likewise.
18966 * localedata/locales/af_ZA: Likewise.
18967 * localedata/locales/agr_PE: Likewise.
18968 * localedata/locales/ak_GH: Likewise.
18969 * localedata/locales/am_ET: Likewise.
18970 * localedata/locales/anp_IN: Likewise.
18971 * localedata/locales/ar_AE: Likewise.
18972 * localedata/locales/ar_BH: Likewise.
18973 * localedata/locales/ar_DZ: Likewise.
18974 * localedata/locales/ar_EG: Likewise.
18975 * localedata/locales/ar_IN: Likewise.
18976 * localedata/locales/ar_IQ: Likewise.
18977 * localedata/locales/ar_JO: Likewise.
18978 * localedata/locales/ar_KW: Likewise.
18979 * localedata/locales/ar_LB: Likewise.
18980 * localedata/locales/ar_LY: Likewise.
18981 * localedata/locales/ar_MA: Likewise.
18982 * localedata/locales/ar_OM: Likewise.
18983 * localedata/locales/ar_QA: Likewise.
18984 * localedata/locales/ar_SA: Likewise.
18985 * localedata/locales/ar_SD: Likewise.
18986 * localedata/locales/ar_SS: Likewise.
18987 * localedata/locales/ar_SY: Likewise.
18988 * localedata/locales/ar_TN: Likewise.
18989 * localedata/locales/ar_YE: Likewise.
18990 * localedata/locales/as_IN: Likewise.
18991 * localedata/locales/ast_ES: Likewise.
18992 * localedata/locales/ayc_PE: Likewise.
18993 * localedata/locales/az_AZ: Likewise.
18994 * localedata/locales/az_IR: Likewise.
18995 * localedata/locales/be_BY: Likewise.
18996 * localedata/locales/be_BY@latin: Likewise.
18997 * localedata/locales/bem_ZM: Likewise.
18998 * localedata/locales/ber_DZ: Likewise.
18999 * localedata/locales/ber_MA: Likewise.
19000 * localedata/locales/bg_BG: Likewise.
19001 * localedata/locales/bhb_IN: Likewise.
19002 * localedata/locales/bho_IN: Likewise.
19003 * localedata/locales/bi_VU: Likewise.
19004 * localedata/locales/bn_BD: Likewise.
19005 * localedata/locales/bn_IN: Likewise.
19006 * localedata/locales/bo_CN: Likewise.
19007 * localedata/locales/bo_IN: Likewise.
19008 * localedata/locales/br_FR: Likewise.
19009 * localedata/locales/brx_IN: Likewise.
19010 * localedata/locales/bs_BA: Likewise.
19011 * localedata/locales/byn_ER: Likewise.
19012 * localedata/locales/ca_AD: Likewise.
19013 * localedata/locales/ca_ES: Likewise.
19014 * localedata/locales/ca_FR: Likewise.
19015 * localedata/locales/ca_IT: Likewise.
19016 * localedata/locales/ce_RU: Likewise.
19017 * localedata/locales/chr_US: Likewise.
19018 * localedata/locales/cmn_TW: Likewise.
19019 * localedata/locales/crh_UA: Likewise.
19020 * localedata/locales/cs_CZ: Likewise.
19021 * localedata/locales/csb_PL: Likewise.
19022 * localedata/locales/cv_RU: Likewise.
19023 * localedata/locales/cy_GB: Likewise.
19024 * localedata/locales/da_DK: Likewise.
19025 * localedata/locales/de_AT: Likewise.
19026 * localedata/locales/de_BE: Likewise.
19027 * localedata/locales/de_CH: Likewise.
19028 * localedata/locales/de_DE: Likewise.
19029 * localedata/locales/de_IT: Likewise.
19030 * localedata/locales/de_LI: Likewise.
19031 * localedata/locales/de_LU: Likewise.
19032 * localedata/locales/doi_IN: Likewise.
19033 * localedata/locales/dv_MV: Likewise.
19034 * localedata/locales/dz_BT: Likewise.
19035 * localedata/locales/el_CY: Likewise.
19036 * localedata/locales/el_GR: Likewise.
19037 * localedata/locales/en_AG: Likewise.
19038 * localedata/locales/en_AU: Likewise.
19039 * localedata/locales/en_BW: Likewise.
19040 * localedata/locales/en_CA: Likewise.
19041 * localedata/locales/en_DK: Likewise.
19042 * localedata/locales/en_GB: Likewise.
19043 * localedata/locales/en_HK: Likewise.
19044 * localedata/locales/en_IE: Likewise.
19045 * localedata/locales/en_IL: Likewise.
19046 * localedata/locales/en_IN: Likewise.
19047 * localedata/locales/en_NG: Likewise.
19048 * localedata/locales/en_NZ: Likewise.
19049 * localedata/locales/en_PH: Likewise.
19050 * localedata/locales/en_SG: Likewise.
19051 * localedata/locales/en_US: Likewise.
19052 * localedata/locales/en_ZA: Likewise.
19053 * localedata/locales/en_ZM: Likewise.
19054 * localedata/locales/en_ZW: Likewise.
19055 * localedata/locales/eo: Likewise.
19056 * localedata/locales/es_AR: Likewise.
19057 * localedata/locales/es_BO: Likewise.
19058 * localedata/locales/es_CL: Likewise.
19059 * localedata/locales/es_CO: Likewise.
19060 * localedata/locales/es_CR: Likewise.
19061 * localedata/locales/es_CU: Likewise.
19062 * localedata/locales/es_DO: Likewise.
19063 * localedata/locales/es_EC: Likewise.
19064 * localedata/locales/es_ES: Likewise.
19065 * localedata/locales/es_GT: Likewise.
19066 * localedata/locales/es_HN: Likewise.
19067 * localedata/locales/es_MX: Likewise.
19068 * localedata/locales/es_NI: Likewise.
19069 * localedata/locales/es_PA: Likewise.
19070 * localedata/locales/es_PE: Likewise.
19071 * localedata/locales/es_PR: Likewise.
19072 * localedata/locales/es_PY: Likewise.
19073 * localedata/locales/es_SV: Likewise.
19074 * localedata/locales/es_US: Likewise.
19075 * localedata/locales/es_UY: Likewise.
19076 * localedata/locales/es_VE: Likewise.
19077 * localedata/locales/et_EE: Likewise.
19078 * localedata/locales/eu_ES: Likewise.
19079 * localedata/locales/eu_ES@euro: Likewise.
19080 * localedata/locales/fa_IR: Likewise.
19081 * localedata/locales/ff_SN: Likewise.
19082 * localedata/locales/fi_FI: Likewise.
19083 * localedata/locales/fil_PH: Likewise.
19084 * localedata/locales/fo_FO: Likewise.
19085 * localedata/locales/fr_BE: Likewise.
19086 * localedata/locales/fr_CA: Likewise.
19087 * localedata/locales/fr_CH: Likewise.
19088 * localedata/locales/fr_FR: Likewise.
19089 * localedata/locales/fr_LU: Likewise.
19090 * localedata/locales/fur_IT: Likewise.
19091 * localedata/locales/fy_DE: Likewise.
19092 * localedata/locales/fy_NL: Likewise.
19093 * localedata/locales/ga_IE: Likewise.
19094 * localedata/locales/gd_GB: Likewise.
19095 * localedata/locales/gez_ER: Likewise.
19096 * localedata/locales/gez_ET: Likewise.
19097 * localedata/locales/gl_ES: Likewise.
19098 * localedata/locales/gu_IN: Likewise.
19099 * localedata/locales/gv_GB: Likewise.
19100 * localedata/locales/ha_NG: Likewise.
19101 * localedata/locales/hak_TW: Likewise.
19102 * localedata/locales/he_IL: Likewise.
19103 * localedata/locales/hi_IN: Likewise.
19104 * localedata/locales/hif_FJ: Likewise.
19105 * localedata/locales/hne_IN: Likewise.
19106 * localedata/locales/hr_HR: Likewise.
19107 * localedata/locales/hsb_DE: Likewise.
19108 * localedata/locales/ht_HT: Likewise.
19109 * localedata/locales/hu_HU: Likewise.
19110 * localedata/locales/hy_AM: Likewise.
19111 * localedata/locales/i18n: Likewise.
19112 * localedata/locales/ia_FR: Likewise.
19113 * localedata/locales/id_ID: Likewise.
19114 * localedata/locales/ig_NG: Likewise.
19115 * localedata/locales/ik_CA: Likewise.
19116 * localedata/locales/is_IS: Likewise.
19117 * localedata/locales/it_CH: Likewise.
19118 * localedata/locales/it_IT: Likewise.
19119 * localedata/locales/iu_CA: Likewise.
19120 * localedata/locales/ja_JP: Likewise.
19121 * localedata/locales/ka_GE: Likewise.
19122 * localedata/locales/kk_KZ: Likewise.
19123 * localedata/locales/kl_GL: Likewise.
19124 * localedata/locales/kn_IN: Likewise.
19125 * localedata/locales/ko_KR: Likewise.
19126 * localedata/locales/kok_IN: Likewise.
19127 * localedata/locales/ks_IN: Likewise.
19128 * localedata/locales/ks_IN@devanagari: Likewise.
19129 * localedata/locales/ku_TR: Likewise.
19130 * localedata/locales/kw_GB: Likewise.
19131 * localedata/locales/ky_KG: Likewise.
19132 * localedata/locales/lb_LU: Likewise.
19133 * localedata/locales/lg_UG: Likewise.
19134 * localedata/locales/li_BE: Likewise.
19135 * localedata/locales/li_NL: Likewise.
19136 * localedata/locales/lij_IT: Likewise.
19137 * localedata/locales/ln_CD: Likewise.
19138 * localedata/locales/lo_LA: Likewise.
19139 * localedata/locales/lt_LT: Likewise.
19140 * localedata/locales/lv_LV: Likewise.
19141 * localedata/locales/lzh_TW: Likewise.
19142 * localedata/locales/mag_IN: Likewise.
19143 * localedata/locales/mai_IN: Likewise.
19144 * localedata/locales/mg_MG: Likewise.
19145 * localedata/locales/mhr_RU: Likewise.
19146 * localedata/locales/mi_NZ: Likewise.
19147 * localedata/locales/mk_MK: Likewise.
19148 * localedata/locales/ml_IN: Likewise.
19149 * localedata/locales/mn_MN: Likewise.
19150 * localedata/locales/mni_IN: Likewise.
19151 * localedata/locales/mr_IN: Likewise.
19152 * localedata/locales/ms_MY: Likewise.
19153 * localedata/locales/mt_MT: Likewise.
19154 * localedata/locales/my_MM: Likewise.
19155 * localedata/locales/nan_TW: Likewise.
19156 * localedata/locales/nan_TW@latin: Likewise.
19157 * localedata/locales/nb_NO: Likewise.
19158 * localedata/locales/nds_DE: Likewise.
19159 * localedata/locales/nds_NL: Likewise.
19160 * localedata/locales/ne_NP: Likewise.
19161 * localedata/locales/nhn_MX: Likewise.
19162 * localedata/locales/niu_NU: Likewise.
19163 * localedata/locales/niu_NZ: Likewise.
19164 * localedata/locales/nl_AW: Likewise.
19165 * localedata/locales/nl_BE: Likewise.
19166 * localedata/locales/nl_NL: Likewise.
19167 * localedata/locales/nn_NO: Likewise.
19168 * localedata/locales/nr_ZA: Likewise.
19169 * localedata/locales/nso_ZA: Likewise.
19170 * localedata/locales/oc_FR: Likewise.
19171 * localedata/locales/om_ET: Likewise.
19172 * localedata/locales/om_KE: Likewise.
19173 * localedata/locales/or_IN: Likewise.
19174 * localedata/locales/os_RU: Likewise.
19175 * localedata/locales/pa_IN: Likewise.
19176 * localedata/locales/pa_PK: Likewise.
19177 * localedata/locales/pap_AW: Likewise.
19178 * localedata/locales/pap_CW: Likewise.
19179 * localedata/locales/pl_PL: Likewise.
19180 * localedata/locales/ps_AF: Likewise.
19181 * localedata/locales/pt_BR: Likewise.
19182 * localedata/locales/pt_PT: Likewise.
19183 * localedata/locales/quz_PE: Likewise.
19184 * localedata/locales/raj_IN: Likewise.
19185 * localedata/locales/ro_RO: Likewise.
19186 * localedata/locales/ru_RU: Likewise.
19187 * localedata/locales/ru_UA: Likewise.
19188 * localedata/locales/rw_RW: Likewise.
19189 * localedata/locales/sa_IN: Likewise.
19190 * localedata/locales/sat_IN: Likewise.
19191 * localedata/locales/sc_IT: Likewise.
19192 * localedata/locales/sd_IN: Likewise.
19193 * localedata/locales/sd_IN@devanagari: Likewise.
19194 * localedata/locales/se_NO: Likewise.
19195 * localedata/locales/sgs_LT: Likewise.
19196 * localedata/locales/shs_CA: Likewise.
19197 * localedata/locales/si_LK: Likewise.
19198 * localedata/locales/sid_ET: Likewise.
19199 * localedata/locales/sk_SK: Likewise.
19200 * localedata/locales/sl_SI: Likewise.
19201 * localedata/locales/sm_WS: Likewise.
19202 * localedata/locales/so_DJ: Likewise.
19203 * localedata/locales/so_ET: Likewise.
19204 * localedata/locales/so_KE: Likewise.
19205 * localedata/locales/so_SO: Likewise.
19206 * localedata/locales/sq_AL: Likewise.
19207 * localedata/locales/sq_MK: Likewise.
19208 * localedata/locales/sr_ME: Likewise.
19209 * localedata/locales/sr_RS: Likewise.
19210 * localedata/locales/sr_RS@latin: Likewise.
19211 * localedata/locales/ss_ZA: Likewise.
19212 * localedata/locales/st_ZA: Likewise.
19213 * localedata/locales/sv_FI: Likewise.
19214 * localedata/locales/sv_SE: Likewise.
19215 * localedata/locales/sw_KE: Likewise.
19216 * localedata/locales/sw_TZ: Likewise.
19217 * localedata/locales/szl_PL: Likewise.
19218 * localedata/locales/ta_IN: Likewise.
19219 * localedata/locales/ta_LK: Likewise.
19220 * localedata/locales/tcy_IN: Likewise.
19221 * localedata/locales/te_IN: Likewise.
19222 * localedata/locales/tg_TJ: Likewise.
19223 * localedata/locales/th_TH: Likewise.
19224 * localedata/locales/the_NP: Likewise.
19225 * localedata/locales/ti_ER: Likewise.
19226 * localedata/locales/ti_ET: Likewise.
19227 * localedata/locales/tig_ER: Likewise.
19228 * localedata/locales/tk_TM: Likewise.
19229 * localedata/locales/tl_PH: Likewise.
19230 * localedata/locales/tn_ZA: Likewise.
19231 * localedata/locales/to_TO: Likewise.
19232 * localedata/locales/tpi_PG: Likewise.
19233 * localedata/locales/tr_CY: Likewise.
19234 * localedata/locales/tr_TR: Likewise.
19235 * localedata/locales/ts_ZA: Likewise.
19236 * localedata/locales/tt_RU: Likewise.
19237 * localedata/locales/tt_RU@iqtelif: Likewise.
19238 * localedata/locales/ug_CN: Likewise.
19239 * localedata/locales/uk_UA: Likewise.
19240 * localedata/locales/unm_US: Likewise.
19241 * localedata/locales/ur_IN: Likewise.
19242 * localedata/locales/ur_PK: Likewise.
19243 * localedata/locales/uz_UZ: Likewise.
19244 * localedata/locales/uz_UZ@cyrillic: Likewise.
19245 * localedata/locales/ve_ZA: Likewise.
19246 * localedata/locales/vi_VN: Likewise.
19247 * localedata/locales/wa_BE: Likewise.
19248 * localedata/locales/wae_CH: Likewise.
19249 * localedata/locales/wal_ET: Likewise.
19250 * localedata/locales/wo_SN: Likewise.
19251 * localedata/locales/xh_ZA: Likewise.
19252 * localedata/locales/yi_US: Likewise.
19253 * localedata/locales/yo_NG: Likewise.
19254 * localedata/locales/yue_HK: Likewise.
19255 * localedata/locales/yuw_PG: Likewise.
19256 * localedata/locales/zh_CN: Likewise.
19257 * localedata/locales/zh_HK: Likewise.
19258 * localedata/locales/zh_SG: Likewise.
19259 * localedata/locales/zh_TW: Likewise.
19260 * localedata/locales/zu_ZA: Likewise.
19261
19262 2017-11-13 Florian Weimer <fweimer@redhat.com>
19263
19264 * support/next_to_fault.h, support/next_to_fault.c: New files.
19265 * support/Makefile (libsupport-routines): Add next_to_fault.
19266 * resolv/tst-inet_pton.c (struct next_to_fault)
19267 (next_to_fault_allocate, next_to_fault_free): Remove.
19268 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
19269
19270 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
19271
19272 * elf/dl-support.c: Include <dl-procruntime.c>.
19273 * include/link.h: Include <link_map.h>.
19274 * sysdeps/generic/dl-procruntime.c: New file.
19275 * sysdeps/generic/link_map.h: Likewise.
19276 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
19277 the writable ld.so namespace.
19278
19279 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
19280
19281 timezone: pacify GCC -Wstringop-truncation
19282 Problem reported by Martin Sebor in:
19283 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
19284 * timezone/zic.c (writezone): Use memcpy, not strncpy.
19285
19286 2017-11-12 Florian Weimer <fweimer@redhat.com>
19287
19288 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
19289 tst-xreadlink.
19290 (tests): Add tst-xreadlink.
19291 * support/support.h (xstrndup): Declare.
19292 * support/xunistd.h (xunlink, xreadlink): Declare.
19293 * support/temp_file.h (support_create_temp_directory): Declare.
19294 * support/temp_file.c (support_create_temp_directory): New function.
19295 * support/support_chroot.c (support_chroot_create): Use it.
19296 * support/xreadlink.c: New file.
19297 * support/xstrndup.c: Likewise.
19298 * support/xunlink.c: Likewise.
19299 * support/tst-xreadlink.c: Likewise.
19300
19301 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
19302
19303 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
19304
19305 2017-11-11 Florian Weimer <fweimer@redhat.com>
19306
19307 [BZ #22409]
19308 [BZ #22412]
19309 * resolv/res_comp.c (printable_string, binary_hnok)
19310 (binary_leading_dash): New functions.
19311 (res_hnok): Reimplement using these functions and ns_name_pton.
19312 (res_ownok): Likewise.
19313 (res_mailok): Reimplement using printable_string, ns_name_pton and
19314 binary_hnok.
19315 (res_dnok): Reimplement using printable_string and ns_name_pton.
19316 * resolv/tst-res_hnok.c (tests): Add additional tests.
19317 (LETTERDIGITS, PRINTABLE): Define.
19318 (do_test): Adjust one_char results.
19319
19320 2017-11-11 Florian Weimer <fweimer@redhat.com>
19321
19322 [BZ #22413]
19323 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
19324 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
19325
19326 2017-11-11 Florian Weimer <fweimer@redhat.com>
19327
19328 * resolv/tst-ns_name_pton.c: New file.
19329 * resolv/Makefile (tests): Add tst-ns_name_pton.
19330 (tst-ns_name_pton): Link against libresolv.
19331
19332 2017-11-11 Florian Weimer <fweimer@redhat.com>
19333
19334 * resolv/tst-res_hnok.c: New file.
19335 * resolv/Makefile (tests): Add tst-res_hnok.
19336 (tst-res_hnok): Link against libresolv.
19337
19338 2017-11-11 Florian Weimer <fweimer@redhat.com>
19339
19340 * resolv/tst-resolv-network.c: Use test framework instead explicit
19341 main function.
19342
19343 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
19344
19345 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
19346 <jmp_buf-macros.h>.
19347 [!_ISOMAC] (STR_HELPER): New.
19348 [!_ISOMAC] (STR): Likewise.
19349 [!_ISOMAC] (TEST_SIZE): Likewise.
19350 [!_ISOMAC] (TEST_ALIGN): Likewise.
19351 [!_ISOMAC] (TEST_OFFSET): Likewise.
19352 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
19353 field offsets of jmp_buf as well as sigjmp_buf.
19354 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
19355 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
19356 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
19357 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
19358 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
19359 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
19360 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
19361 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
19362 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
19363 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
19364 Likewise.
19365 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
19366 Likewise.
19367 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
19368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
19369 Likewise.
19370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
19371 Likewise.
19372 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
19373 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
19374 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
19375 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
19376 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
19377 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
19378 Likewise.
19379 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
19380 Likewise.
19381 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19382 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
19383 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
19384
19385 2017-11-07 Joseph Myers <joseph@codesourcery.com>
19386
19387 * include/float.h
19388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19389 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
19390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19391 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
19392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19393 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
19394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19395 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
19396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19397 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
19398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19399 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
19400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19401 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
19402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19403 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
19404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19405 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
19406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19407 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
19408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19409 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
19410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19411 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
19412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19413 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
19414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19415 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
19416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19417 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
19418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19419 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
19420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19421 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
19422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19423 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
19424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19425 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
19426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19427 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
19428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19429 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
19430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19431 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
19432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19433 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
19434 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19435 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
19436 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19437 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
19438 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19439 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
19440 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19441 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
19442 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19443 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
19444 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19445 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
19446 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19447 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
19448 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19449 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
19450 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19451 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
19452 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19453 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
19454 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19455 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
19456 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19457 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
19458 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19459 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
19460 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19461 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
19462 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19463 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
19464 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19465 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
19466 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19467 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
19468 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19469 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
19470 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19471 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
19472 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19473 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
19474 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19475 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
19476
19477 * stdlib/tst-strtod.h (F16): New macro.
19478 (F32): Likewise.
19479 (F64): Likewise.
19480 (F32X): Likewise.
19481 (F64X): Likewise.
19482 (F128X): Likewise.
19483 (IF_FLOAT16): Likewise.
19484 (IF_FLOAT32): Likewise.
19485 (IF_FLOAT64): Likewise.
19486 (IF_FLOAT32X): Likewise.
19487 (IF_FLOAT64X): Likewise.
19488 (IF_FLOAT128X): Likewise.
19489 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
19490 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
19491 (STRTOD_TEST_FOREACH): Likewise.
19492 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
19493 (CHOOSE_f64): Likewise.
19494 (CHOOSE_f32x): Likewise.
19495 (CHOOSE_f64x): Likewise.
19496
19497 2017-11-07 Andreas Schwab <schwab@suse.de>
19498
19499 * nptl/Makefile (tests-internal): Remove tst-typesizes.
19500
19501 2017-11-07 Mike FABIAN <mfabian@redhat.com>
19502
19503 [BZ #22403]
19504 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
19505 to be escaped.
19506 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
19507 to be escaped.
19508
19509 2017-11-07 Claude Paroz <claude@2xlibre.net>
19510
19511 [BZ #22403]
19512 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
19513 to be escaped.
19514 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
19515 to be escaped.
19516 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
19517 to be escaped.
19518
19519 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19520
19521 [BZ #22298]
19522 * nptl/allocatestack.c (allocate_stack): Check if
19523 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
19524 __PTHREAD_MUTEX_HAVE_PREV is defined.
19525 * nptl/descr.h (pthread): Likewise.
19526 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
19527 Likewise.
19528 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
19529 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
19530 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
19531 * sysdeps/nptl/bits/thread-shared-types.h
19532 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
19533 defines.
19534 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
19535 of __WORDSIZE for internal layout.
19536 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
19537 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
19538 instead of __WORDSIZE whether to use an union for __spins and __list
19539 fields.
19540 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
19541 case.
19542 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
19543 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
19544 defines.
19545 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
19546 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19547 Likewise.
19548 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
19549 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19550 Likewise.
19551 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
19552 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19553 Likewise.
19554 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
19555 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19556 Likewise.
19557 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
19558 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19559 Likewise.
19560 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
19561 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19562 Likewise.
19563 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
19564 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19565 Likewise.
19566 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
19567 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19568 Likewise.
19569 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
19570 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19571 Likewise.
19572 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
19573 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19574 Likewise.
19575 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
19576 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19577 Likewise.
19578 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
19579 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19580 Likewise.
19581 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
19582 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19583 Likewise.
19584 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
19585 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19586 Likewise.
19587
19588 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
19589 New macros.
19590 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
19591 checks for expected input type size.
19592 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
19593 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
19594 Likewise.
19595 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
19596 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
19597 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
19598 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
19599 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
19600 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
19601 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
19602 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
19603 superflous runtime assert check.
19604 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
19605 Likewise.
19606 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
19607 Likewise.
19608 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
19609 Likewise.
19610 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
19611 Likewise.
19612 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
19613 Likewise.
19614 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
19615 Likewise.
19616 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
19617 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
19618 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
19619 Likewise.
19620 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
19621 Likewise.
19622 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
19623 Likewise.
19624 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
19625 Likewise.
19626 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
19627 Likewise.
19628 * nptl/pthread_attr_setinheritsched.c
19629 (__pthread_attr_setinheritsched): Likewise.
19630 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
19631 Likewise.
19632 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
19633 Likewise.
19634 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
19635 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
19636 __old_pthread_attr_setstack): Likewise.
19637 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
19638 Likewise.
19639 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
19640 Likewise.
19641 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
19642 Likewise.
19643 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
19644 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
19645 Likewise.
19646 * nptl/tst-typesizes.c: Remove file.
19647
19648 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
19649 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
19650 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
19651 checks for internal pthread_mutex_t offsets.
19652 * sysdeps/aarch64/nptl/pthread-offsets.h
19653 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
19654 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
19655 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
19656 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
19657 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
19658 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
19659 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
19660 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
19661 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
19662 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
19663 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
19664 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
19665 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
19666 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
19667 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
19668 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
19669 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
19670 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
19671
19672 2017-11-07 Florian Weimer <fweimer@redhat.com>
19673
19674 * bits/mman-linux.h: Move ...
19675 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
19676 comment.
19677 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
19678 outdated comment.
19679
19680 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19681
19682 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
19683 Redefine STRNLEN as __strnlen_power8.
19684
19685 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19686
19687 * signal/sighold.c (sighold): Optimize implementation.
19688
19689 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
19690 __NR_rt_sigqueueinfo.
19691
19692 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
19693 __sigtimedwait.
19694 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
19695 assume __NR_rt_sigtimedwait.
19696 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
19697 and add LIBC_CANCEL_HANDLED for cancellation marking.
19698 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
19699
19700 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
19701 (sysdeps_routines): Add memchr_noneon.
19702 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
19703 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
19704 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
19705 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
19706 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
19707 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
19708 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
19709
19710 * sysdeps/arm/arm-ifunc.h: New file.
19711 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
19712 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
19713 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
19714 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
19715 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
19716 (__memcpy_neon): Avoid create hidden alias.
19717 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
19718 (__memcpy_vfp): Likewise.
19719 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
19720 (sysdep_routines): Add memcpy_arm.
19721 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
19722
19723 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
19724
19725 [BZ #22362]
19726 * Makerules (make-link-multidir): New.
19727 * config.make.in (multidir): New.
19728 * configure.ac (libc_cv_multidir): New. AC_SUBST.
19729 * configure: Regenerated.
19730 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
19731 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
19732 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
19733 New target.
19734
19735 2017-11-06 Joseph Myers <joseph@codesourcery.com>
19736
19737 [BZ #22402]
19738 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
19739 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
19740
19741 2017-11-04 Mike FABIAN <mfabian@redhat.com>
19742
19743 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
19744 to be escaped.
19745
19746 2017-11-04 Florian Weimer <fweimer@redhat.com>
19747
19748 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
19749
19750 2017-11-03 Joseph Myers <joseph@codesourcery.com>
19751
19752 * math/math.h [__HAVE_DISTINCT_FLOAT16
19753 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
19754 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
19755 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
19756 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
19757 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
19758 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
19759 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19760 (__MATH_TG_F32): New macro.
19761 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19762 (__MATH_TG_F64X): Likewise.
19763 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19764 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
19765
19766 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
19767
19768 * po/de.po: Update translations.
19769 * po/ru.po: Likewise.
19770
19771 2017-11-03 Florian Weimer <fweimer@redhat.com>
19772
19773 * manual/filesys.texi (Hard Links): Document linkat.
19774
19775 2017-11-03 Joseph Myers <joseph@codesourcery.com>
19776
19777 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
19778 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
19779 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
19780 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
19781 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
19782 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
19783 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
19784 the same as _Float128.
19785 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
19786 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
19787 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
19788
19789 * stdlib/stdlib.h
19790 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
19791 Declare.
19792 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
19793 Likewise.
19794 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
19795 Likewise.
19796 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19797 (strtof32x): Likewise.
19798 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19799 (strtof64x): Likewise.
19800 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19801 (strtof128x): Likewise.
19802 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19803 (strfromf16): Likewise.
19804 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19805 (strfromf32): Likewise.
19806 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19807 (strfromf64): Likewise.
19808 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19809 (strfromf32x): Likewise.
19810 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19811 (strfromf64x): Likewise.
19812 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19813 (strfromf128x): Likewise.
19814 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
19815 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
19816 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
19817 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
19818 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
19819 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
19820
19821 2017-11-03 Richard Henderson <rth@twiddle.net>
19822
19823 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
19824
19825 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19826
19827 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
19828
19829 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19830
19831 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
19832 DT_TLSDESC_GOT initialization.
19833 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
19834 (_dl_tlsdesc_resolve_hold): Likewise.
19835 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
19836 (_dl_tlsdesc_resolve_hold): Likewise.
19837 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
19838 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
19839
19840 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19841
19842 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
19843
19844 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19845
19846 [BZ #18572]
19847 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
19848 non-lazily for R_ARM_TLS_DESC.
19849
19850 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19851
19852 [BZ #17078]
19853 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
19854 R_ARM_TLS_DESC case.
19855 (elf_machine_lazy_rel): Remove the prelink check.
19856
19857 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19858
19859 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
19860 DT_TLSDESC_GOT initialization.
19861 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
19862 (_dl_tlsdesc_resolve_rela): Likewise.
19863 (_dl_tlsdesc_resolve_hold): Likewise.
19864 (_dl_tlsdesc_undefweak): Remove ldar.
19865 (_dl_tlsdesc_dynamic): Likewise.
19866 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
19867 (_dl_tlsdesc_resolve_rela): Likewise.
19868 (_dl_tlsdesc_resolve_hold): Likewise.
19869 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
19870 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
19871 (_dl_tlsdesc_resolve_rela): Likewise.
19872 (_dl_tlsdesc_resolve_hold): Likewise.
19873
19874 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19875
19876 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
19877 binding and initialization non-lazily for R_AARCH64_TLSDESC.
19878
19879 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19880
19881 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
19882 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
19883
19884 2017-11-02 Joseph Myers <joseph@codesourcery.com>
19885
19886 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
19887 Declare.
19888 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
19889 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
19890 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
19891 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
19892 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
19893 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
19894 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
19895 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
19896 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
19897 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
19898 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
19899
19900 2017-11-02 Mike FABIAN <mfabian@redhat.com>
19901
19902 [BZ #22382]
19903 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
19904 * localedata/locales/tpi_PG: Add standard header.
19905
19906 2017-11-02 Florian Weimer <fweimer@redhat.com>
19907
19908 test-errno-linux: quotactl can fail with EPERM in containers.
19909 * sysdeps/unix/sysv/linux/test-errno-linux.c
19910 (LIST, LIST_FORWARD): New macros.
19911 (check_error_in_list): New function.
19912 (test_wrp_rv): Accept list of permitted error codes.
19913 (test_wrp_rv2): Remove.
19914 (test_wrp): Call test_wrp_rv with list of error codes.
19915 (test_wrp2): Accept list of error codes.
19916 (do_test): Adjust. Allow EPERM for quotactl.
19917
19918 2017-11-02 Florian Weimer <fweimer@redhat.com>
19919
19920 * stdio-common/bug16.c (do_test): Use array_length.
19921 * stdio-common/errlist.c (_sys_nerr): Likewise.
19922 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
19923 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
19924 * stdio-common/psiginfo.c (psiginfo): Use array_length.
19925 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
19926 (do_test): Use array_length.
19927 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
19928 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
19929 * stdio-common/tst-printf-round.c (do_test): Likewise.
19930 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
19931 (CHECK): Use array_length.
19932 * stdio-common/tstdiomisc.c (t3, F): Likewise.
19933 * stdio-common/tstscanf.c (main): Likewise.
19934 * stdio-common/vfprintf.c (process_string_arg): Likewise.
19935
19936 2017-11-02 Florian Weimer <fweimer@redhat.com>
19937
19938 Add array_length and array_end macros.
19939 * include/array_length.h: New file.
19940
19941 2017-11-02 Florian Weimer <fweimer@redhat.com>
19942
19943 [BZ #22332]
19944 * posix/tst-glob-tilde.c (do_noescape): New variable.
19945 (one_test): Process it.
19946 (do_test): Set do_noescape. Add unescaping test case.
19947
19948 2017-11-01 Joseph Myers <joseph@codesourcery.com>
19949
19950 * math/complex.h
19951 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
19952 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
19953 with appropriate macros defined and undefined.
19954 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
19955 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19956 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
19957 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19958 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
19959 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19960 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
19961 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19962 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
19963 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19964
19965 * math/complex.h
19966 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
19967 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
19968 that for long double. Do not condition define and undefine of
19969 _Mdouble_complex_ on [__CFLOAT128].
19970
19971 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
19972
19973 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
19974 of <sysdeps/generic/sysdep.h>.
19975 (ALIGNARG): Removed.
19976 (ASM_SIZE_DIRECTIVE): Likewise.
19977 (ENTRY): Likewise.
19978 (END): Likewise.
19979 (ENTRY_CHK): Likewise.
19980 (END_CHK): Likewise.
19981 (syscall_error): Likewise.
19982 (mcount): Likewise.
19983 (PSEUDO_END): Likewise.
19984 (L): Likewise.
19985 (atom_text_section): Likewise.
19986 * sysdeps/x86/sysdep.h: New file.
19987 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
19988 of <sysdeps/generic/sysdep.h>.
19989 (ALIGNARG): Removed.
19990 (ASM_SIZE_DIRECTIVE): Likewise.
19991 (ENTRY): Likewise.
19992 (END): Likewise.
19993 (ENTRY_CHK): Likewise.
19994 (END_CHK): Likewise.
19995 (syscall_error): Likewise.
19996 (mcount): Likewise.
19997 (PSEUDO_END): Likewise.
19998 (L): Likewise.
19999 (atom_text_section): Likewise.
20000
20001 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
20002
20003 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
20004 category of LC_CTYPE set to "i18n:2012".
20005 * localedata/locales/i18n_ctype: Regenerate.
20006
20007 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
20008
20009 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
20010 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
20011 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
20012 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
20013
20014 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
20015 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
20016 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
20017 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
20018
20019 2017-10-31 Joseph Myers <joseph@codesourcery.com>
20020
20021 * math/complex.h
20022 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
20023 New macro.
20024 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
20025 Likewise.
20026 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
20027 Likewise.
20028 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20029 (CMPLXF32X): Likewise.
20030 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20031 (CMPLXF64X): Likewise.
20032 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20033 (CMPLXF128X): Likewise.
20034
20035 * math/math.h
20036 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
20037 (__MATH_EVAL_FMT2): Define to add 0.0f.
20038
20039 2017-10-31 Alan Modra <amodra@gmail.com>
20040
20041 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
20042 include sysdep.h.
20043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
20044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
20045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
20046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
20047 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
20048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
20049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
20050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
20051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
20052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
20053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
20054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
20055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
20056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
20057 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
20058 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
20059 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
20060 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
20061 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
20062 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
20063 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
20064 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
20065 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
20066 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
20067 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
20068 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
20069 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
20070 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
20071 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
20072 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
20073 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
20074 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
20075 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
20076 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
20077 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
20078 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
20079 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
20080 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
20081 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
20082 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
20083 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
20084 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
20085 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
20086 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
20087 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
20088 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
20089 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
20090 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
20091 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
20092 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
20093 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
20094 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
20095 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
20096 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
20097 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
20098 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
20099 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
20100 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
20101 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
20102 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
20103 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
20104 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
20105 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
20106 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
20107 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
20108 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
20109 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
20110 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
20111 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
20112
20113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
20114 include sysdep.h and math_ldbl_opt.h.
20115
20116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
20117 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
20118 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
20119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
20120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
20121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
20122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
20123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
20124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
20125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
20126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
20127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
20128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
20129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
20130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
20131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
20132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
20133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
20134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
20135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
20136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
20137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
20138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
20139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
20140 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
20141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
20142
20143 2017-10-31 Alan Modra <amodra@gmail.com>
20144
20145 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
20146 string/strncase_l.c, not string/strncase.c.
20147 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
20148 (libc_hidden_def): Redefine.
20149
20150 2017-10-31 Alan Modra <amodra@gmail.com>
20151
20152 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
20153 (__STRCMP, STRCMP, __strcasecmp_l): Define.
20154 (__strcasecmp): Don't define.
20155
20156 2017-10-31 Alan Modra <amodra@gmail.com>
20157
20158 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
20159 IS_IN (libc).
20160 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
20161 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
20162 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
20163
20164 2017-10-31 Alan Modra <amodra@gmail.com>
20165
20166 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
20167 USE_AS_STPNCPY.
20168
20169 2017-10-31 Alan Modra <amodra@gmail.com>
20170
20171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
20172 Redefine only when SHARED.
20173
20174 2017-10-30 Joseph Myers <joseph@codesourcery.com>
20175
20176 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
20177 Include <bits/math-finite.h> with appropriate macros defined and
20178 undefined.
20179 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
20180 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
20181 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
20182 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
20183 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
20184
20185 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
20186 [!_Mlong_double_] (_Mlong_double_): Likewise.
20187 [!_Mfloat16_] (_Mfloat16_): Likewise.
20188 [!_Mfloat32_] (_Mfloat32_): Likewise.
20189 [!_Mfloat64_] (_Mfloat64_): Likewise.
20190 [!_Mfloat128_] (_Mfloat128_): Likewise.
20191 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
20192 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
20193 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
20194 (_Mdouble_): Define without indirection through those macros.
20195 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
20196 [!_Mfloat128_] (_Mfloat128_): Likewise.
20197 [_Mlong_double_] (_Mlong_double_): Likewise.
20198 (_Mdouble_): Define without indirection through those macros.
20199 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
20200 not add -D_Mlong_double_=double.
20201 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
20202 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
20203
20204 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
20205
20206 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
20207
20208 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
20209
20210 * sysdeps/x86/libc-start.c: Reformat.
20211
20212 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
20213
20214 [BZ #22353]
20215 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
20216 (1): Renamed to ...
20217 (L(Src0)): This.
20218 (L(Src1)): New.
20219 (L(Src2)): Likewise.
20220 (L(1)): Renamed to ...
20221 (L(Src3)): This.
20222
20223 2017-10-30 Joseph Myers <joseph@codesourcery.com>
20224
20225 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
20226 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
20227 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
20228 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
20229 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
20230 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
20231 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
20232 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
20233 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
20234 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
20235 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
20236 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
20237 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
20238 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
20239 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
20240 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
20241 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
20242 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
20243 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
20244 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
20245 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
20246 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
20247 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
20248 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
20249 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
20250 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
20251 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
20252 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
20253 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
20254 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
20255 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
20256 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
20257 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
20258 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
20259 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
20260 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
20261 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
20262 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
20263 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
20264 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
20265 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
20266 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
20267 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
20268 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
20269 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
20270 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
20271 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
20272 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
20273 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
20274 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
20275 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
20276 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
20277 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
20278 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
20279 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
20280 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
20281 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
20282 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
20283 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
20284 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
20285 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
20286 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
20287 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
20288 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
20289 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
20290 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
20291
20292 2017-10-30 Florian Weimer <fweimer@redhat.com>
20293
20294 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
20295 always defined.
20296 * io/tst-mkdirat.c (do_test): Likewise.
20297 * io/tst-mkfifoat.c (do_test): Likewise.
20298 * io/tst-mknodat.c (do_test): Likewise.
20299 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
20300 * locale/programs/locale.c (select_dirs): Likewise.
20301 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
20302 * posix/bug-glob2.c (my_readdir): Likewise.
20303 * posix/tst-dir.c (main): Likewise.
20304 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
20305 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
20306
20307 2017-10-30 Florian Weimer <fweimer@redhat.com>
20308
20309 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
20310 just __USE_GNU.
20311
20312 2017-10-30 Florian Weimer <fweimer@redhat.com>
20313
20314 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
20315 Convert to support/test-driver.c.
20316 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
20317 New macro parameters.
20318 (PRINTF): Remove macro. Use test_verbose conditionals instead.
20319 * posix/tst-gnuglob.c: New file.
20320 * posix/tst-gnuglob64.c: Likewise.
20321 * posix/Makefile (tests): Add tst-gnuglob64.
20322
20323 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
20324
20325 [BZ #19485]
20326 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
20327 and use a better translation for March in “mon”.
20328 * localedata/locales/csb_PL: Use more ASCII to improve the
20329 readability of the source.
20330
20331 2017-10-30 Mike FABIAN <mfabian@redhat.com>
20332
20333 [BZ #13953]
20334 * localedata/locales/km_KH: Use ASCII as much
20335 as possible for better readability of the source and
20336 remove useless comments.
20337 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
20338 was commented out and apparently wrong anyway because it was
20339 using Lao characters. If Buddhist era should be used
20340 for km_KH, a native speaker should write the correct formaat
20341 for Khmer.
20342 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
20343 (According to CLDR, the first weekday for Cambodia is Sunday).
20344 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
20345 (These were using Lao characters which must be wrong. If we get
20346 the correct data from a native speaker, we could add it back, until
20347 then it is better not to have name_mr and name_mrs at all than
20348 having it wrong).
20349
20350 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
20351
20352 * locale/loadlocale.c: Correct size of
20353 _nl_value_type_LC_<category> arrays.
20354
20355 2017-10-27 Joseph Myers <joseph@codesourcery.com>
20356
20357 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
20358 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
20359 with appropriate macros defined and undefined.
20360 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
20361 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
20362 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
20363 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
20364 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
20365
20366 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
20367
20368 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20369 "-O2 -march=i586".
20370
20371 2017-10-27 Mike FABIAN <mfabian@redhat.com>
20372
20373 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
20374 with lowercase letters to make it agree with CLDR.
20375
20376 2017-10-27 Mike FABIAN <mfabian@redhat.com>
20377
20378 [BZ #15260]
20379 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
20380 first letters of yesstr and nostr in yesexpr and noexpr,
20381 not for the full words.
20382 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
20383 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
20384 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
20385 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
20386 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
20387 first letters of yesstr and nostr in yesexpr and noexpr,
20388 until now only English was matched in yesexpr and noexpr.
20389 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
20390 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
20391 fil but not for tl. As tl and fil are very similar, using fil
20392 is probably better than using English.
20393
20394 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
20395
20396 [BZ #21706]
20397 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
20398 in yesstr and nostr.
20399
20400 2017-10-26 Joseph Myers <joseph@codesourcery.com>
20401
20402 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20403 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
20404 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
20405 Likewise.
20406 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
20407 Likewise.
20408 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
20409 Likewise.
20410 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
20411 Likewise.
20412 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20413 (SNANF128X): Likewise.
20414
20415 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20416 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
20417 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20418 (HUGE_VAL_F32): Likewise.
20419 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20420 (HUGE_VAL_F64): Likewise.
20421 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20422 (HUGE_VAL_F32X): Likewise.
20423 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20424 (HUGE_VAL_F64X): Likewise.
20425 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20426 (HUGE_VAL_F128X): Likewise.
20427
20428 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20429
20430 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
20431 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
20432 for the br_FR locale.
20433
20434 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20435
20436 [BZ #21706]
20437 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
20438
20439 2017-10-25 Carlos O'Donell <carlos@redhat.com>
20440
20441 * locale/programs/record-status.h: Define globals, and function
20442 prototypes. Move function bodies...
20443 * locale/programs/record-status.c: ... to here. New file.
20444 * iconv/Makefile (iconv_prog-modules): Add record-status.
20445 * locale/Makefile (lib-modules): Likewise.
20446 * iconv/iconv_prog.c: Remove verbose.
20447 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
20448 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
20449 record a warning about ASCII compatibility.
20450 * locale/programs/ld-monetary.c (monetary_finish): If
20451 warn_int_curr_symbol is true then record a warning about the symbol
20452 not being in our ISO 4217 list.
20453 * locale/programs/locale.c: Include record-status.h. Remove verbose.
20454 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
20455 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
20456 (OPT_NO_WARN): Define.
20457 (OPT_WARN): Define.
20458 (options): Add entry for --no-warnings, and --warnings.
20459 (set_warnings): New function to enable/disable warnings.
20460 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
20461 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
20462 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
20463 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
20464 Pass flags to generate_locale.
20465 (generate_locale): Accept new flag argument and pass it to localedef
20466 invocation.
20467 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
20468 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
20469
20470 * localedata/Makefile (test-input-data): Use full file name.
20471 * localedata/da_DK.in: Rename to...
20472 * localedata/da_DK.ISO-8859-1.in: ...this.
20473 * localedata/de_DE.in: Rename to...
20474 * localedata/de_DE.ISO-8859-1.in: ...this.
20475 * localedata/en_US.in: Rename to...
20476 * localedata/en_US.ISO-8859-1.in: ...this.
20477 * localedata/fr_FR.in: Rename to...
20478 * localedata/fr_FR.UTF-8.in: ... this.
20479 * localedata/hr_HR.in: Rename to...
20480 * localedata/hr_HR.ISO-8859-2.in: ...this.
20481 * localedata/hu_HU.in: Rename to...
20482 * localedata/hu_HU.UTF-8.in: ...this.
20483 * localedata/si_LK.in: Rename to...
20484 * localedata/si_LK.UTF-8.in: ...this.
20485 * localedata/sv_SE.in: Rename to...
20486 * localedata/sv_SE.ISO-8859-1.in: ...this.
20487 * localedata/tr_TR.in: Rename to...
20488 * localedata/tr_TR.UTF-8.in: ...this.
20489 * localedata/uk_UA.in: Rename to...
20490 * localedata/uk_UA.UTF-8.in: ...this.
20491 * localedata/sort-test.sh: Test file is locale name with the
20492 suffix.
20493
20494 * localedata/unicode-gen/Makefile (check_i18n): Rename to
20495 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
20496 file.
20497 * localedata/locales/i18n_ctype: Regenerate.
20498 * localedata/locales/tr_TR: Likewise.
20499 * localedata/locales/translit_circle: Likewise.
20500 * localedata/locales/translit_cjk_compat: Likewise.
20501 * localedata/locales/translit_combining: Likewise.
20502 * localedata/locales/translit_compat: Likewise.
20503 * localedata/locales/translit_font: Likewise.
20504 * localedata/locales/translit_fraction: Likewise.
20505
20506 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20507
20508 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
20509 lxvd2x/stxvd2x with lvx/stvx.
20510 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
20511
20512 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
20513
20514 * include/alloc_buffer.h: Replace "if if " with "if " in
20515 comments.
20516 * sysdeps/mips/memcpy.S: Likkewise.
20517 * sysdeps/mips/memset.S: Likewise.
20518 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
20519 Likewise.
20520 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
20521 Likewise.
20522 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
20523 Likewise.
20524
20525 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20526
20527 [BZ #15261]
20528 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
20529 yesexpr and noexpr.
20530 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
20531 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
20532 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
20533 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
20534 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
20535 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
20536 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
20537
20538 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20539
20540 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
20541 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
20542 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
20543 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
20544 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
20545 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
20546 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
20547 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
20548 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
20549 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
20550 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
20551 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
20552
20553 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20554
20555 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
20556 as possible for better readability of the source.
20557 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
20558 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
20559 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
20560 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
20561 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
20562 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
20563 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
20564 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
20565 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
20566 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
20567 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
20568 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
20569 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
20570 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
20571 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
20572 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
20573 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
20574 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
20575 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
20576 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
20577 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
20578 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
20579 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
20580 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
20581 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
20582 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
20583 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
20584 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
20585 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
20586 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
20587 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
20588 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
20589 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
20590 * localedata/locales/en_US (LC_MESSAGES): Likewise.
20591 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
20592 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
20593 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
20594 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
20595 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
20596 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
20597 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
20598 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
20599 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
20600 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
20601 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
20602 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
20603 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
20604 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
20605 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
20606 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
20607 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
20608 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
20609 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
20610 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
20611 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
20612 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
20613 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
20614 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
20615 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
20616 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
20617 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
20618 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
20619 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
20620 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
20621 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
20622 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
20623 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
20624 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
20625 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
20626 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
20627 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
20628 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
20629 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
20630 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
20631 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
20632 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
20633 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
20634 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
20635 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
20636 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
20637 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
20638 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
20639 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
20640 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
20641 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
20642 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
20643 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
20644 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
20645 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
20646 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
20647 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
20648 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
20649 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
20650 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
20651 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
20652 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
20653 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
20654 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
20655 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
20656 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
20657 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
20658 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
20659 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
20660 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
20661 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
20662 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
20663 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
20664 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
20665 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
20666 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
20667 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
20668 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
20669 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
20670 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
20671 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
20672 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
20673 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
20674 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
20675 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
20676 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
20677 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
20678 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
20679 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
20680 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
20681 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
20682 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
20683 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
20684 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
20685 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
20686 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
20687 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
20688 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
20689 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
20690 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
20691 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
20692 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
20693 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
20694 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
20695 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
20696 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
20697 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
20698 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
20699 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
20700 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
20701 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
20702 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
20703 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
20704 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
20705 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
20706 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
20707 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
20708 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
20709 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
20710 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
20711 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
20712 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
20713 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
20714 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
20715 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
20716 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
20717 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
20718 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
20719 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
20720 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
20721 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
20722 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
20723 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
20724 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
20725 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
20726 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
20727 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
20728 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
20729 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
20730 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
20731
20732 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20733
20734 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
20735 (Use first letters of yesstr and nostr correctly instead of using
20736 full words).
20737
20738 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20739
20740 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
20741 (Use first letters of yesstr and nostr correctly).
20742
20743 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20744
20745 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
20746 also check for the first characters of yesstr and nostr.
20747 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
20748 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
20749
20750 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20751
20752 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
20753 also check for Chinese characters.
20754
20755 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20756
20757 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
20758 match also for the contents of yesstr and nostr. As the first letter
20759 of yesstr and nostr is equal, checking only for the first letter
20760 is not enough.
20761
20762 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20763
20764 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
20765 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
20766
20767 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20768
20769 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
20770 of main contributor.
20771
20772 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20773
20774 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
20775 instead of using English.
20776
20777 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20778
20779 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
20780 by including the first letters of nostr and yesexpr in the regexp.
20781 Also make it more readable by using ASCII where possible.
20782
20783 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20784
20785 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
20786 the first letter of nostr in the regexp. It agrees with CLDR now.
20787 Also make it more readable by using ASCII where possible.
20788
20789 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20790
20791 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
20792 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
20793 these strings contain a U+17D6 (which somewhat looks like a colon)
20794 instead of a real colon to separate the full words for “yes”
20795 and “no” from the single letter responses.
20796
20797 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20798
20799 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
20800 it agree with CLDR (include the first letter of yesstr).
20801 Also make it more readable by using ASCII where possible.
20802
20803 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20804
20805 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
20806 and improve yesexpr and noexpr. The yesstr and nostr apparently
20807 came from CLDR. And CLDR has a bug there: these strings contain
20808 a U+0903 (which looks like a colon) instead of a real colon
20809 to separate the full words for “yes” and “no” from the single
20810 letter responses.
20811
20812 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20813
20814 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
20815 letters of the full yesstr and nostr in yesexpr and noexpr.
20816
20817 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20818
20819 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
20820 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
20821 * localedata/locales/an_ES: Make source more readable by using ASCII
20822 where possible.
20823
20824 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20825
20826 [BZ #20952]
20827 * localedata/locales/yuw_PG: New file.
20828 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
20829 * locale/iso-639.def: Add Yau (Uruwa).
20830
20831 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
20832
20833 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
20834
20835 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
20836
20837 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
20838 (__libc_realloc): Likewise.
20839 (_mid_memalign): Likewise.
20840 (__libc_calloc): Likewise.
20841
20842 2017-10-23 Mike FABIAN <mfabian@redhat.com>
20843
20844 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
20845 by adding the generic +1 and -0 as in all other locales.
20846 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
20847 day names and make it more readable by using ASCII where possible.
20848
20849 2017-10-24 Joseph Myers <joseph@codesourcery.com>
20850
20851 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
20852 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
20853
20854 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20855
20856 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
20857 WNOHANG in waitpid call.
20858
20859 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
20860
20861 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
20862 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
20863
20864 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
20865 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
20866 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
20867 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
20868 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
20869 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
20870 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
20871 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
20872 variables.
20873
20874 2017-10-23 Michael Collison <michael.collison@arm.com>
20875
20876 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
20877 with __builtin_sqrt.
20878 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
20879 with __builtin_sqrtf.
20880 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
20881 with __builtin_ceil.
20882 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
20883 with __builtin_ceilf.
20884 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
20885 with __builtin_floor.
20886 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
20887 with __builtin_floorf.
20888 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
20889 with __builtin_fma.
20890 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
20891 with __builtin_fmaf.
20892 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
20893 with __builtin_fmax.
20894 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
20895 with __builtin_fmaxf.
20896 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
20897 with __builtin_fmin.
20898 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
20899 with __builtin_fminf.
20900 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
20901 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
20902 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
20903 with builtin_rint and conversion to int.
20904 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
20905 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
20906 with builtin_llround.
20907 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
20908 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
20909 with builtin_rint and conversion to long int.
20910 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
20911 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
20912 with builtin_lround.
20913 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
20914 with builtin_lroundf.
20915 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
20916 statements with __builtin_nearbyint.
20917 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
20918 statements with __builtin_nearbyintf.
20919 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
20920 with __builtin_rint.
20921 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
20922 with __builtin_rintf.
20923 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
20924 with __builtin_round.
20925 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
20926 with __builtin_roundf.
20927 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
20928 with __builtin_trunc.
20929 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
20930 with __builtin_truncf.
20931 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
20932 and s_l[l]round[f].c too.
20933
20934 2017-10-23 Alan Modra <amodra@gmail.com>
20935
20936 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
20937 Adjust stack after restoring regs. Add missing LR cfi_restore.
20938
20939 2017-10-23 Alan Modra <amodra@gmail.com>
20940
20941 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
20942 Move LR save and frame setup/teardown and LR restore to
20943 immediately around memset call. Provide cfi.
20944
20945 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20946
20947 * sysdeps/i386/fpu/e_powf.S: Removed.
20948 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
20949 * sysdeps/i386/fpu/w_powf.c: Likewise.
20950 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
20951 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20952 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20953 Add e_powf-sse2.
20954 (CFLAGS-e_powf-sse2.c): New.
20955 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
20956 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
20957
20958 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20959
20960 * sysdeps/i386/fpu/e_log2f.S: Removed.
20961 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
20962 * sysdeps/i386/fpu/w_log2f.c: Likewise.
20963 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
20964 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20965 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20966 Add e_log2f-sse2.
20967 (CFLAGS-e_log2f-sse2.c): New.
20968 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
20969 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
20970
20971 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20972
20973 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20974 Add e_powf-fma.
20975 (CFLAGS-e_powf-fma.c): New.
20976 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
20977 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
20978
20979 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20980
20981 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20982 Add e_log2f-fma.
20983 (CFLAGS-e_log2f-fma.c): New.
20984 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
20985 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
20986
20987 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20988
20989 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20990 Add e_logf-fma.
20991 (CFLAGS-e_logf-fma.c): New.
20992 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
20993 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
20994
20995 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20996
20997 * sysdeps/i386/fpu/e_logf.S: Removed.
20998 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
20999 * sysdeps/i386/fpu/w_logf.c: Likewise.
21000 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
21001 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
21002 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21003 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21004 Add e_logf-sse2.
21005 (CFLAGS-e_logf-sse2.c): New.
21006 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
21007 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
21008
21009 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21010
21011 * sysdeps/i386/fpu/e_exp2f.S: Removed.
21012 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
21013 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
21014 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21015 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21016 Add e_exp2f-sse2.
21017 (CFLAGS-e_exp2f-sse2.c): New.
21018 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
21019 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
21020
21021 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21022
21023 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21024 Add e_exp2f-fma.
21025 (CFLAGS-e_exp2f-fma.c): New.
21026 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
21027 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
21028
21029 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21030
21031 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
21032 * sysdeps/i386/fpu/e_expf.S: Likewise.
21033 * sysdeps/i386/fpu/math_errf.c: Likewise.
21034 * sysdeps/i386/fpu/w_expf.c: Likewise.
21035 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
21036 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
21037 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
21038 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
21039 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21040 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21041 Remove e_expf-ia32.
21042 (CFLAGS-e_expf-sse2.c): New.
21043 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
21044 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
21045
21046 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21047
21048 * sysdeps/x86_64/fpu/e_expf.S: Removed.
21049 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
21050 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
21051 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
21052 e_expf.c.
21053 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
21054 New.
21055 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
21056 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
21057 Renamed to ...
21058 (__redirect_expf): This.
21059 (SYMBOL_NAME): Changed to expf.
21060 (__ieee754_expf): Renamed to ...
21061 (__expf): This.
21062 (__GI___expf): This.
21063 (__ieee754_expf): Add strong_alias.
21064 (__expf_finite): Likewise.
21065 (__expf): New.
21066 Include <sysdeps/ieee754/flt-32/e_expf.c>.
21067
21068 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
21069
21070 [BZ #22332]
21071 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
21072 unescaping.
21073
21074 2017-10-21 Florian Weimer <fweimer@redhat.com>
21075
21076 * posix/Makefile (tests): Add tst-glob-tilde.
21077 (tests-special): Add tst-glob-tilde-mem.out
21078 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
21079 (tst-glob-tilde-mem.out): Add mtrace check.
21080 * posix/tst-glob-tilde.c: New file.
21081
21082 2017-10-20 Joseph Myers <joseph@codesourcery.com>
21083
21084 * bits/floatn-common.h: New file.
21085 * math/Makefile (headers): Add bits/floatn-common.h.
21086 * bits/floatn.h: Include <bits/floatn-common.h>.
21087 * sysdeps/ia64/bits/floatn.h: Likewise.
21088 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
21089 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
21090 * sysdeps/powerpc/bits/floatn.h: Likewise.
21091 * sysdeps/x86/bits/floatn.h: Likewise.
21092
21093 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21094
21095 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
21096 indicates whether compiler emits an warning for alias for
21097 functions with incompatible types.
21098
21099 [BZ #22273]
21100 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
21101 the auxiliary process is terminated by a signal before calling _exit
21102 or execve.
21103
21104 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
21105
21106 [BZ #21265]
21107 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
21108 New.
21109 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
21110 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
21111 and bit_arch_XSAVEC_Usable if needed.
21112 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
21113 and bit_arch_Use_dl_runtime_resolve_opt.
21114 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
21115 Removed.
21116 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
21117 (bit_arch_Prefer_No_AVX512): Updated.
21118 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
21119 (bit_arch_XSAVEC_Usable): New.
21120 (STATE_SAVE_OFFSET): Likewise.
21121 (STATE_SAVE_MASK): Likewise.
21122 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
21123 (cpu_features): Add xsave_state_size and xsave_state_full_size.
21124 (index_arch_Use_dl_runtime_resolve_opt): Removed.
21125 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
21126 (index_arch_XSAVEC_Usable): New.
21127 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
21128 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
21129 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
21130 is enabled.
21131 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
21132 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
21133 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
21134 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
21135 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
21136 _dl_runtime_resolve_xsavec.
21137 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
21138 Removed.
21139 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
21140 instead of VEC_SIZE.
21141 (REGISTER_SAVE_BND0): Removed.
21142 (REGISTER_SAVE_BND1): Likewise.
21143 (REGISTER_SAVE_BND3): Likewise.
21144 (REGISTER_SAVE_RAX): Always defined to 0.
21145 (VMOV): Removed.
21146 (_dl_runtime_resolve_avx): Likewise.
21147 (_dl_runtime_resolve_avx_slow): Likewise.
21148 (_dl_runtime_resolve_avx_opt): Likewise.
21149 (_dl_runtime_resolve_avx512): Likewise.
21150 (_dl_runtime_resolve_avx512_opt): Likewise.
21151 (_dl_runtime_resolve_sse): Likewise.
21152 (_dl_runtime_resolve_sse_vex): Likewise.
21153 (USE_FXSAVE): New.
21154 (_dl_runtime_resolve_fxsave): Likewise.
21155 (USE_XSAVE): Likewise.
21156 (_dl_runtime_resolve_xsave): Likewise.
21157 (USE_XSAVEC): Likewise.
21158 (_dl_runtime_resolve_xsavec): Likewise.
21159 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
21160 Removed.
21161 (_dl_runtime_resolve_avx512_opt): Likewise.
21162 (_dl_runtime_resolve_avx): Likewise.
21163 (_dl_runtime_resolve_avx_opt): Likewise.
21164 (_dl_runtime_resolve_sse): Likewise.
21165 (_dl_runtime_resolve_sse_vex): Likewise.
21166 (_dl_runtime_resolve_fxsave): New.
21167 (_dl_runtime_resolve_xsave): Likewise.
21168 (_dl_runtime_resolve_xsavec): Likewise.
21169
21170 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
21171
21172 [BZ #22320]
21173 CVE-2017-15670
21174 * posix/glob.c (__glob): Fix one-byte overflow.
21175
21176 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
21177
21178 * malloc/malloc.c (sysdep-cancel.h): Add include.
21179
21180 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
21181
21182 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
21183
21184 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
21185
21186 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
21187 (tests): Remove $(objpfx)ga_test depdendency.
21188 * resolv/ga_test.c: Remove file.
21189
21190 2017-10-20 Mike FABIAN <mfabian@redhat.com>
21191
21192 [BZ #18812]
21193 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
21194 * localedata/locales/kab_DZ: New file.
21195
21196 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
21197
21198 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
21199 _dl_relocate_static_pie instead of _dl_start to compute load
21200 address in static PIE.
21201
21202 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
21203
21204 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
21205
21206 2017-10-20 Mike FABIAN <mfabian@redhat.com>
21207
21208 [BZ #13605]
21209 * localedata/SUPPORTED: Add shn_MM/UTF-8.
21210 * localedata/locales/shn_MM: New file.
21211
21212 2017-10-20 Florian Weimer <fweimer@redhat.com>
21213
21214 [BZ #22321]
21215 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
21216 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
21217 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
21218 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
21219 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
21220 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
21221
21222 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
21223
21224 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
21225
21226 2017-10-19 Joseph Myers <joseph@codesourcery.com>
21227
21228 * sysdeps/mips/ieee754/bits/floatn.h: New file.
21229
21230 [BZ #22322]
21231 * sysdeps/mips/bits/long-double.h: Move to ....
21232 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
21233
21234 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
21235
21236 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
21237
21238 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
21239 H.J. Lu <hongjiu.lu@intel.com>
21240
21241 [BZ #22299]
21242 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
21243 GLRO(dl_platform) to NULL.
21244 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
21245 (modules-names): Add tst-platformmod-1 and
21246 x86_64/tst-platformmod-2.
21247 (CFLAGS-tst-platform-1.c): New.
21248 (CFLAGS-tst-platformmod-1.c): Likewise.
21249 (CFLAGS-tst-platformmod-2.c): Likewise.
21250 (LDFLAGS-tst-platformmod-2.so): Likewise.
21251 ($(objpfx)tst-platform-1): Likewise.
21252 ($(objpfx)tst-platform-1.out): Likewise.
21253 (tst-platform-1-ENV): Likewise.
21254 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
21255 * sysdeps/x86_64/tst-platform-1.c: New file.
21256 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
21257 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
21258
21259 2017-10-19 Mike FABIAN <mfabian@redhat.com>
21260
21261 [BZ #13994]
21262 * locale/iso-639.def: Add Karbi.
21263 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
21264 * localedata/locales/mjw_IN: New file.
21265
21266 2017-10-18 Joseph Myers <joseph@codesourcery.com>
21267
21268 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
21269 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
21270 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
21271 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
21272 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
21273 (libm_alias_ldouble_other_r): Also create _Float128 alias.
21274 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
21275 <bits/floatn.h>.
21276 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
21277 (libm_alias_ldouble_other_r): Also create _Float128 alias.
21278 * manual/math.texi (Mathematics): Document additional architecture
21279 support for _Float128.
21280 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21281 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21282 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21283 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21284 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21285 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21286 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21287 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21288 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21289 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21290 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21291 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21292 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21293 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21294 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21295
21296 2017-10-18 Renlin Li <renlin.li@arm.com>
21297
21298 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
21299 _DYNAMIC symbol to calculate load address.
21300
21301 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
21302
21303 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
21304 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
21305 summary bits.
21306 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
21307 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
21308
21309 2017-10-18 Mike FABIAN <mfabian@redhat.com>
21310
21311 [BZ #16777]
21312 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
21313 and improve readability by using more ASCII.
21314 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
21315 and improve readability by using more ASCII.
21316
21317 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
21318
21319 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
21320 not all targets support atomics on bool.
21321
21322 2017-10-17 Joseph Myers <joseph@codesourcery.com>
21323
21324 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
21325 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
21326 __f128.
21327 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21328 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
21329 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21330 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
21331 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21332 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
21333
21334 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21335
21336 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
21337 defines.
21338
21339 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21340
21341 [BZ #22159]
21342 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
21343 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
21344 (do_check_remalloced_chunk): Fix build bug.
21345 (do_check_malloc_state): Add assert that checks arena->top.
21346 (malloc_consolidate): Remove initialization.
21347 (int_mallinfo): Remove call to malloc_consolidate.
21348 (__libc_mallopt): Clarify why malloc_consolidate is needed.
21349
21350 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21351
21352 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
21353 (have_fastchunks): Remove.
21354 (clear_fastchunks): Remove.
21355 (set_fastchunks): Remove.
21356 (malloc_state): Add have_fastchunks.
21357 (malloc_init_state): Use have_fastchunks.
21358 (do_check_malloc_state): Remove incorrect invariant checks.
21359 (_int_malloc): Use have_fastchunks.
21360 (_int_free): Likewise.
21361 (malloc_consolidate): Likewise.
21362
21363 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21364
21365 * malloc/malloc.c (tcache_put): Inline.
21366 (tcache_get): Inline.
21367
21368 2017-10-17 Jordi Mallach <jordi@gnu.org>
21369
21370 Aurelien Jarno <aurelien@aurel32.net>
21371 [BZ #2522]
21372 * localedata/locales/ca_ES@valencia: New file.
21373 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
21374
21375 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
21376
21377 [BZ #22296]
21378 * math/math.h: Let signbit use the builtin in C++ mode with gcc
21379 < 6.x
21380
21381 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21382
21383 * scripts/build-many-glibcs.py (Context.add_all_configs):
21384 Add arm-linux-gnueabihf multiarch extra_glibcs.
21385
21386 * sysdeps/generic/ifunc-init.h: New file.
21387 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
21388
21389 2017-10-17 Mike FABIAN <mfabian@redhat.com>
21390
21391 [BZ #22019]
21392 * localedata/locales/el_GR: Set n_cs_precedes to 0.
21393 * localedata/locales/el_CY: copy "el_GR" because it is identical.
21394 * stdlib/tst-strfmon_l.c: adapt test case.
21395
21396 2017-10-16 Joseph Myers <joseph@codesourcery.com>
21397
21398 * sysdeps/generic/float128-abi.h: New file.
21399 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
21400 non-__prefixed symbols to ....
21401 * math/Versions: ... here. Include <float128-abi.h>.
21402 * stdlib/Versions ... and here. Include <float128-abi.h>
21403
21404 2017-10-16 Florian Weimer <fweimer@redhat.com>
21405
21406 * version.h (VERSION): Switch to ".9000" as the development
21407 version suffix.
21408
21409 2017-10-16 Florian Weimer <fweimer@redhat.com>
21410
21411 [BZ #22050]
21412 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
21413 compat_symbol_reference to access non-default version.
21414
21415 2017-10-16 Florian Weimer <fweimer@redhat.com>
21416
21417 * malloc/Makefile (others-extras): Set to mcheck-init.o.
21418
21419 2017-10-16 Carlos O'Donell <carlos@redhat.com>
21420
21421 * include/shlib-compat.h (compat_symbol_reference): Update
21422 comment.
21423
21424 2017-10-16 Joseph Myers <joseph@codesourcery.com>
21425
21426 * math/Makefile (test-types): Add
21427 $(type-float128-$(float128-alias-fcts)).
21428 * math/test-float128.h (TYPE_STR): Define conditional on
21429 [FLT128_MANT_DIG == LDBL_MANT_DIG].
21430 (ULP_IDX): Likewise.
21431 (ULP_I_IDX): Likewise.
21432
21433 * stdlib/strtold.c: Include <bits/floatn.h>
21434 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
21435 and later undefine as macro. Define as weak alias if
21436 [!USE_WIDE_CHAR].
21437 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
21438 and later undefine as macro. Define as weak alias if
21439 [USE_WIDE_CHAR].
21440 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
21441 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
21442 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21443 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21444 Define and later undefine as macro. Define as weak alias if
21445 [USE_WIDE_CHAR].
21446 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
21447 <bits/floatn.h>.
21448 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
21449 Define and later undefine as macro. Define as weak alias if
21450 [!USE_WIDE_CHAR].
21451 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21452 Define and later undefine as macro. Define as weak alias if
21453 [USE_WIDE_CHAR].
21454
21455 2017-10-15 Carlos O'Donell <carlos@redhat.com>
21456
21457 * localedata/collate-test.c (allocate_arrays): Don't use \n in
21458 record_verbose messages.
21459
21460 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
21461
21462 [BZ #22052]
21463 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
21464 to silence -O3 -Wall warning with GCC 7.
21465
21466 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
21467
21468 * Makeconfig (+link-static-before-libc): Use the first of
21469 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
21470 * gmon/Makefile (tests): Add tst-gmon-static.
21471 (tests-static): Likewise.
21472 (CFLAGS-tst-gmon-static.c): New.
21473 (CRT-tst-gmon-static): Likewise.
21474 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
21475 (tst-gmon-static-ENV): Likewise.
21476 (tests-special): Likewise.
21477 ($(objpfx)tst-gmon-static.out): Likewise.
21478 (clean-tst-gmon-static-data): Likewise.
21479 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
21480 * gmon/tst-gmon-static-gprof.sh: New file.
21481 * gmon/tst-gmon-static.c: Likewise.
21482
21483 2017-10-13 Carlos O'Donell <carlos@redhat.com>
21484
21485 [BZ #22295]
21486 * locale/programs/linereader.c (get_string): Don't warn on
21487 non-symbolic character.
21488
21489 [BZ #22294]
21490 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
21491 int_curr_symbol.
21492
21493 [BZ #22292]
21494 * locale/programs/record-status.h: New file
21495 * locale/programs/locale.c: Add comment.
21496 * locale/programs/charmap-dir.c: Don't include error.h.
21497 (charmap_opendir): Use record_error.
21498 * locale/programs/charmap.c: Don't include error.h.
21499 (charmap_read): Use record_error, and record_warning.
21500 (parse_charmap): Likewise.
21501 * locale/programs/ld-address.c: Don't include error.h.
21502 (address_finish): Use record_error, and record_warning.
21503 * locale/programs/ld-collate.c: Don't include error.h.
21504 (collate_finish): Use record_error, and record_error_at_line.
21505 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
21506 (ctype_class_new): Likewise.
21507 (ctype_map_new): Likewise.
21508 (set_one_default): Likewise.
21509 (set_class_defaults): Likewise.
21510 (translit_flatten): Likewise.
21511 (allocate_arrays): Use record_error, and record_verbose.
21512 * locale/programs/ld-identification.c: Don't include error.h.
21513 (indentation_finish): Use record_error and record_warning.
21514 * locale/programs/ld-measurement.c: Don't include error.h.
21515 (measurement_finish): Use record_error.
21516 * locale/programs/ld-messages.c
21517 (message_finish): Likewise.
21518 * locale/programs/ld-monetary.c
21519 (monetary_finish): Likewise.
21520 * locale/programs/ld-name.c (name_finish): Use record_error
21521 and record_warning.
21522 * locale/programs/ld-numeric.c
21523 (numeric_finish): Use record_error.
21524 * locale/programs/ld-paper.c: Don't include error.h.
21525 (paper_finish): Use record_error.
21526 * locale/programs/ld-telephone.c: Don't include error.h.
21527 (telephone_finish): Use record_error.
21528 * locale/programs/ld-time.c (time_finish): Likewise.
21529 * locale/programs/linereader.h (lr_error): Make inline func.
21530 * locale/programs/localedef.c: Define recorded_warning_count,
21531 and recorded_error_count.
21532 (main): Use record_error. Use recorded_error_count and
21533 recorded_warning_count to issue correct error returns.
21534 (add_to_readlist): Use record_error.
21535 (find_locale): Likewise.
21536 (load_locale): Likewise.
21537 * locale/programs/localedef.h: Remove be_quiet
21538 and WITH_CUR_LOCALE.
21539 * locale/programs/locarchive.c (compare_from_file): Use
21540 record_error.
21541 * locale/programs/locfile.c (write_locale_data): Use
21542 record_error.
21543 * locale/programs/repertoire.c: Dont include error.h.
21544 (repertoire_complain): Use record_error.
21545 * localedata/tst-fmon.sh: Expect failures from localedef.
21546 * localedata/tst-locale.sh: Likewise.
21547 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
21548
21549 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
21550 (REPORTS): Likewise.
21551 (check): Likewise.
21552 (i18n): Rename to...
21553 (i18n_ctype): ...this.
21554 (i18n-report): Rename to...
21555 (i18n_ctype-report): ...this.
21556 * localedata/locales/i18n_ctype: Regenerate.
21557 * localedata/locales/i18n: copy i18n_ctype.
21558
21559 2017-10-13 Joseph Myers <joseph@codesourcery.com>
21560
21561 * stdlib/strfroml.c: Include <bits/floatn.h>.
21562 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
21563 Define before include of <stdlib.h> and undefine afterwards, then
21564 define as weak alias.
21565
21566 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
21567 Undefine and restore default definition. Use
21568 libm_alias_ldouble_other.
21569
21570 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
21571
21572 [BZ #22153]
21573 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
21574 in coredumps.
21575
21576 2017-10-13 James Clarke <jrtc27@jrtc27.com>
21577
21578 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
21579 Assign sym_map to be map for local symbols, as TLS relocations
21580 use sym_map to determine whether the symbol is defined and to
21581 extract the TLS information.
21582 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
21583 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
21584
21585 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21586
21587 [BZ #22189]
21588 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
21589 (math_force_eval): Add powerpc version.
21590
21591 [BZ #22142]
21592 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
21593 -DBL_MAX.
21594 (do_test): Likewise.
21595 * stdio-common/tst-printf.sh: Likewise.
21596 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
21597 ifdef clause in order to set the carry bit right. Replace r0 by
21598 0 without changing the behavior.
21599
21600 2017-10-13 Joseph Myers <joseph@codesourcery.com>
21601
21602 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
21603 <libm-alias-ldouble.h>.
21604 (fabsl): Define using libm_alias_ldouble.
21605 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
21606 <libm-alias-ldouble.h>.
21607 (fabsl): Define using libm_alias_ldouble.
21608
21609 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
21610 Remove conditional code.
21611
21612 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
21613 Rename to __clog10_internal_l.
21614 (__clog10_internal_l): Define aliases using
21615 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
21616 with __clog10.
21617
21618 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21619
21620 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
21621 * benchtests/sincosf-inputs: New file.
21622 * benchtests/cosf-inputs: New file.
21623 * benchtests/sinf-inputs: New file.
21624
21625 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21626
21627 * posix/tst-spawn.c (do_test): Wait for both children.
21628
21629 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
21630
21631 [BZ #22284]
21632 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
21633 tests-pie): Add tst-gmon-pie.
21634 (CFLAGS-tst-gmon-pie.c): New.
21635 (CRT-tst-gmon-pie): Likewise.
21636 (tst-gmon-pie-ENV): Likewise.
21637 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
21638 ($(objpfx)tst-gmon-pie.out): Likewise.
21639 (clean-tst-gmon-pie-data): Likewise.
21640 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
21641 * gmon/gmon.c [PIC]: Include <link.h>.
21642 [PIC] (callback): New function.
21643 (write_hist): Add an argument for load address. Subtract load
21644 address from PCs.
21645 (write_call_graph): Likewise.
21646 (write_gmon): Call __dl_iterate_phdr to get load address, pass
21647 it to write_hist and write_call_graph.
21648 * gmon/tst-gmon-pie.c: New file.
21649
21650 2017-10-11 Joseph Myers <joseph@codesourcery.com>
21651
21652 * math/Makefile (test-types-basic): New variable.
21653 (test-types): Likewise.
21654 (libm-test-support): Use $(test-types) instead of $(types).
21655 (libm-tests-base-normal): Likewise.
21656 (libm-tests-base-finite): Likewise.
21657 (libm-tests-base-inline): Likewise.
21658 (generated): Likewise.
21659 ($(objpfx)libm-test-support-$(t).c): Likewise.
21660 (libm-tests-for-type iterator): Likewise.
21661 (libm-test-support iterator): Likewise.
21662 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
21663 (ulp_idx): Use ULP_IDX.
21664 * math/test-ldouble.h: Include <float.h>.
21665 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
21666 (ULP_IDX): New macro.
21667 (ULP_I_IDX): Likewise.
21668 * math/test-double.h (ULP_IDX): Likewise.
21669 (ULP_I_IDX): Likewise.
21670 * math/test-float.h (ULP_IDX): Likewise.
21671 (ULP_I_IDX): Likewise.
21672 * math/test-float128.h (ULP_IDX): Likewise.
21673 (ULP_I_IDX): Likewise.
21674
21675 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21676
21677 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
21678 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
21679 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
21680 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
21681 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
21682 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
21683 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
21684 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
21685 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
21686 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
21687 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
21688 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
21689 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
21690 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21691 (SINGLE_THREAD_BY_GLOBAL): Define.
21692 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21693 Likewise.
21694 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21695 Likewise.
21696 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21697 Likewise.
21698 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21699 Likewise.
21700 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
21701 (SINGLE_THREAD_BY_GLOBAL): Likewise.
21702 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21703 Likewise.
21704
21705 2017-10-11 Andreas Schwab <schwab@suse.de>
21706
21707 * nis/Makefile (aux): Remove.
21708 * nscd/Makefile (aux): Add nscd_hash.
21709 (nscd-modules): Likewise.
21710 ($(objpfx)nscd): Don't depend on libnsl.
21711 * nscd/nscd_hash.c: New file.
21712 * nscd/nscd_hash.h: Likewise.
21713 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
21714 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
21715 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
21716 instead of <nis/rpcsvc/nis.h>.
21717 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
21718
21719 2017-10-11 Florian Weimer <fweimer@redhat.com>
21720
21721 [BZ #22078]
21722 Avoid large NSS buffers with many addresses, aliases.
21723 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
21724 using dynarrays and struct alloc_buffer.
21725 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
21726 (tst-nss-files-hosts-multi): Link with -ldl.
21727 * nss/tst-nss-files-hosts-multi.c: New file.
21728
21729 2017-10-11 Florian Weimer <fweimer@redhat.com>
21730
21731 [BZ #18023]
21732 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
21733 scratch_buffer. Eliminate gotos.
21734
21735 2017-10-11 Joseph Myers <joseph@codesourcery.com>
21736
21737 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
21738 libm_alias_ldouble_other.
21739 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
21740 undefine and redefine.
21741 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
21742 (exp10l): Do not define here.
21743 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
21744 (weak_alias): Undefine and redefine.
21745 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
21746 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
21747 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
21748 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
21749
21750 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
21751 [!__fma] (fma): Define using libm_alias_double.
21752 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
21753 [!__fmaf] (fmaf): Define using libm_alias_float.
21754 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
21755 (fmal): Define using libm_alias_ldouble.
21756
21757 2017-10-10 Joseph Myers <joseph@codesourcery.com>
21758
21759 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
21760 New macro.
21761 (libm_alias_double_other): Likewise.
21762 (libm_alias_double_r): Use libm_alias_double_other_r.
21763 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
21764 New macro.
21765 (libm_alias_float_other): Likewise.
21766 (libm_alias_float_r): Use libm_alias_float_other_r.
21767 * sysdeps/generic/libm-alias-float128.h
21768 (libm_alias_float128_other_r): New macro.
21769 (libm_alias_float128_other): Likewise.
21770 (libm_alias_float128_r): Use libm_alias_float128_other_r.
21771 * sysdeps/generic/libm-alias-ldouble.h
21772 (libm_alias_ldouble_other_r): New macro.
21773 (libm_alias_ldouble_other): Likewise.
21774 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
21775 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21776 (libm_alias_double_other_r): New macro.
21777 (libm_alias_double_other): Likewise.
21778 (libm_alias_double_r): Use libm_alias_double_other_r.
21779 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21780 (libm_alias_ldouble_other_r): New macro.
21781 (libm_alias_ldouble_other): Likewise.
21782 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
21783 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
21784 [!USE_AS_COMPAT]: Use libm_alias_double_other.
21785 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
21786 [!USE_AS_COMPAT]: Use libm_alias_float_other.
21787 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
21788 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
21789 * math/w_exp2f.c: Use libm_alias_float_other.
21790 * math/w_expf.c: Likewise.
21791 * math/w_log2f.c: Likewise.
21792 * math/w_logf.c: Likewise.
21793 * math/w_powf.c: Likewise.
21794 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
21795 [!__exp2f]: Use libm_alias_float_other.
21796 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
21797 [!__expf]: Use libm_alias_float_other.
21798 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
21799 [!__log2f]: Use libm_alias_float_other.
21800 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
21801 [!__logf]: Use libm_alias_float_other.
21802 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
21803 [!__powf]: Use libm_alias_float_other.
21804
21805 2017-10-10 Florian Weimer <fweimer@redhat.com>
21806
21807 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
21808 function.
21809 (_nss_files_gethostbyname3_r): Call it.
21810
21811 2017-10-09 Joseph Myers <joseph@codesourcery.com>
21812
21813 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
21814 error. Remove default definition of declare_mgen_alias.
21815 [!declare_mgen_alias_r]: Likewise.
21816 * sysdeps/generic/math-type-macros-double.h
21817 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
21818 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
21819 (declare_mgen_alias_r): Likewise.
21820 * sysdeps/generic/math-type-macros-float128.h
21821 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
21822 * sysdeps/generic/math-type-macros-ldouble.h
21823 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
21824 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
21825 macro.
21826 (declare_mgen_alias_r_s): Likewise.
21827 (declare_mgen_alias_r): Likewise.
21828 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
21829 (lgamma_r): Define using libm_alias_double_r.
21830 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
21831 (lgammaf_r): Define using libm_alias_float_r.
21832 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
21833 (lgammal_r): Define using libm_alias_ldouble_r.
21834 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
21835 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
21836
21837 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21838
21839 * lib/glob.c (__glob_pattern_type): Remove now-spurious
21840 extern declaration.
21841
21842 2017-10-09 Joseph Myers <joseph@codesourcery.com>
21843
21844 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
21845
21846 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
21847
21848 [BZ #21326]
21849 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
21850 [__cplusplus >= 201103] (__USE_ISOC99): Define.
21851 * math/Makefile (test-math-cxx11): New test.
21852 * math/test-math-cxx11.cc: New file.
21853
21854 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
21855
21856 * login/openpty.c (openpty): Close slave pty file descriptor on error.
21857
21858 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
21859 call to allocate the slave pty file descriptor.
21860
21861 2017-10-06 Joseph Myers <joseph@codesourcery.com>
21862
21863 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
21864 [!__fma] (fma): Define using libm_alias_double.
21865 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
21866 [!__fma] (fma): Define using libm_alias_double.
21867
21868 * sysdeps/ieee754/float128/float128_private.h: Include
21869 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
21870 (libm_alias_ldouble_r): Undefine and redefine.
21871 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
21872 <libm-alias-ldouble.h>.
21873 (asinhl): Define using libm_alias_ldouble.
21874 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
21875 <libm-alias-ldouble.h>.
21876 (atanl): Define using libm_alias_ldouble.
21877 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
21878 <libm-alias-ldouble.h>.
21879 (cbrtl): Define using libm_alias_ldouble.
21880 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
21881 <libm-alias-ldouble.h>.
21882 (ceill): Define using libm_alias_ldouble.
21883 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
21884 <libm-alias-ldouble.h>.
21885 (copysignl): Define using libm_alias_ldouble.
21886 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
21887 <libm-alias-ldouble.h>.
21888 (cosl): Define using libm_alias_ldouble.
21889 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
21890 <libm-alias-ldouble.h>.
21891 (erfl): Define using libm_alias_ldouble.
21892 (erfcl): Likewise.
21893 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
21894 <libm-alias-ldouble.h>.
21895 (expm1l): Define using libm_alias_ldouble.
21896 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
21897 <libm-alias-ldouble.h>.
21898 (fabsl): Define using libm_alias_ldouble.
21899 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
21900 <libm-alias-ldouble.h>.
21901 (floorl): Define using libm_alias_ldouble.
21902 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
21903 <libm-alias-ldouble.h>.
21904 (fmal): Define using libm_alias_ldouble.
21905 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
21906 <libm-alias-ldouble.h>.
21907 (frexpl): Define using libm_alias_ldouble.
21908 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
21909 libm_alias_ldouble.
21910 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
21911 <libm-alias-ldouble.h>.
21912 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
21913 libm_alias_ldouble.
21914 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
21915 <libm-alias-ldouble.h>.
21916 (getpayloadl): Define using libm_alias_ldouble.
21917 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
21918 <libm-alias-ldouble.h>.
21919 (llrintl): Define using libm_alias_ldouble.
21920 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
21921 <libm-alias-ldouble.h>.
21922 (llroundl): Define using libm_alias_ldouble.
21923 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
21924 <libm-alias-ldouble.h>.
21925 (logbl): Define using libm_alias_ldouble.
21926 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
21927 <libm-alias-ldouble.h>.
21928 (lrintl): Define using libm_alias_ldouble.
21929 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
21930 <libm-alias-ldouble.h>.
21931 (lroundl): Define using libm_alias_ldouble.
21932 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
21933 <libm-alias-ldouble.h>.
21934 (modfl): Define using libm_alias_ldouble.
21935 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
21936 <libm-alias-ldouble.h>.
21937 (nearbyintl): Define using libm_alias_ldouble.
21938 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
21939 <libm-alias-ldouble.h>.
21940 (nextafterl): Define using libm_alias_ldouble.
21941 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
21942 <libm-alias-ldouble.h>.
21943 (nextupl): Define using libm_alias_ldouble.
21944 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
21945 <libm-alias-ldouble.h>.
21946 (remquol): Define using libm_alias_ldouble.
21947 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
21948 <libm-alias-ldouble.h>.
21949 (rintl): Define using libm_alias_ldouble.
21950 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
21951 <libm-alias-ldouble.h>.
21952 (roundevenl): Define using libm_alias_ldouble.
21953 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
21954 <libm-alias-ldouble.h>.
21955 (roundl): Define using libm_alias_ldouble.
21956 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
21957 using libm_alias_ldouble.
21958 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
21959 <libm-alias-ldouble.h>.
21960 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
21961 Define using libm_alias_ldouble.
21962 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
21963 <libm-alias-ldouble.h>.
21964 (sincosl): Define using libm_alias_ldouble.
21965 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
21966 <libm-alias-ldouble.h>.
21967 (sinl): Define using libm_alias_ldouble.
21968 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
21969 <libm-alias-ldouble.h>.
21970 (tanhl): Define using libm_alias_ldouble.
21971 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
21972 <libm-alias-ldouble.h>.
21973 (tanl): Define using libm_alias_ldouble.
21974 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
21975 <libm-alias-ldouble.h>.
21976 (totalorderl): Define using libm_alias_ldouble.
21977 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
21978 <libm-alias-ldouble.h>.
21979 (totalordermagl): Define using libm_alias_ldouble.
21980 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
21981 <libm-alias-ldouble.h>.
21982 (truncl): Define using libm_alias_ldouble.
21983 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
21984 libm_alias_ldouble.
21985 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
21986 libm_alias_ldouble.
21987 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
21988 <libm-alias-ldouble.h>.
21989 (weak_alias): Do not undefine and redefine.
21990 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21991 (copysignl): Define with long_double_symbol only if [IS_IN
21992 (libc)].
21993 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
21994 <libm-alias-ldouble.h>.
21995 (weak_alias): Do not undefine and redefine.
21996 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21997 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
21998 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
21999 <libm-alias-ldouble.h>.
22000 (weak_alias): Do not undefine and redefine.
22001 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
22002 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
22003 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
22004 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
22005 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
22006 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
22007 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
22008 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
22009 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
22010 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
22011 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
22012 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
22013 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
22014 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
22015 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
22016 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
22017 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
22018 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
22019 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
22020 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
22021 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
22022 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
22023 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
22024 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
22025 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
22026 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
22027
22028 2017-10-06 Carlos O'Donell <carlos@redhat.com>
22029
22030 [BZ #22111]
22031 * malloc/malloc.c (tcache_shutting_down): Use bool type.
22032 (tcache_thread_freeres): Set tcache_shutting_down before
22033 freeing the tcache.
22034 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
22035 * malloc/tst-malloc-tcache-leak.c: New file.
22036
22037 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22038
22039 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
22040 back to powerpc32 file.
22041 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
22042 (memrchr): Add __memrchr_power8 to ifunc list.
22043 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
22044 extra bytes for unaligned inputs.
22045
22046 2017-10-06 Joseph Myers <joseph@codesourcery.com>
22047
22048 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
22049 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
22050 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
22051 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
22052 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
22053
22054 2017-10-05 Joseph Myers <joseph@codesourcery.com>
22055
22056 * sysdeps/arm/libm-test-ulps: Update.
22057
22058 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
22059 <libm-alias-ldouble.h>.
22060 (asinhl): Define using libm_alias_ldouble.
22061 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
22062 <libm-alias-ldouble.h>.
22063 (cbrtl): Define using libm_alias_ldouble.
22064 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
22065 <libm-alias-ldouble.h>.
22066 (copysignl): Define using libm_alias_ldouble.
22067 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
22068 <libm-alias-ldouble.h>.
22069 (cosl): Define using libm_alias_ldouble.
22070 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
22071 <libm-alias-ldouble.h>.
22072 (erfl): Define using libm_alias_ldouble.
22073 (erfcl): Likewise.
22074 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
22075 <libm-alias-ldouble.h>.
22076 (fmal): Define using libm_alias_ldouble.
22077 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
22078 <libm-alias-ldouble.h>.
22079 (frexpl): Define using libm_alias_ldouble.
22080 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
22081 libm_alias_ldouble.
22082 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
22083 <libm-alias-ldouble.h>.
22084 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
22085 libm_alias_ldouble.
22086 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
22087 <libm-alias-ldouble.h>.
22088 (getpayloadl): Define using libm_alias_ldouble.
22089 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
22090 <libm-alias-ldouble.h>.
22091 (llrintl): Define using libm_alias_ldouble.
22092 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
22093 <libm-alias-ldouble.h>.
22094 (llroundl): Define using libm_alias_ldouble.
22095 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
22096 <libm-alias-ldouble.h>.
22097 (lrintl): Define using libm_alias_ldouble.
22098 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
22099 <libm-alias-ldouble.h>.
22100 (lroundl): Define using libm_alias_ldouble.
22101 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
22102 <libm-alias-ldouble.h>.
22103 (modfl): Define using libm_alias_ldouble.
22104 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
22105 <libm-alias-ldouble.h>.
22106 (nextupl): Define using libm_alias_ldouble.
22107 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
22108 <libm-alias-ldouble.h>.
22109 (remquol): Define using libm_alias_ldouble.
22110 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
22111 <libm-alias-ldouble.h>.
22112 (roundevenl): Define using libm_alias_ldouble.
22113 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
22114 <libm-alias-ldouble.h>.
22115 (roundl): Define using libm_alias_ldouble.
22116 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
22117 using libm_alias_ldouble.
22118 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
22119 <libm-alias-ldouble.h>.
22120 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
22121 <libm-alias-ldouble.h>.
22122 (setpayloadsigl): Define using libm_alias_ldouble.
22123 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
22124 <libm-alias-ldouble.h>.
22125 (sincosl): Define using libm_alias_ldouble.
22126 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
22127 <libm-alias-ldouble.h>.
22128 (sinl): Define using libm_alias_ldouble.
22129 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
22130 <libm-alias-ldouble.h>.
22131 (tanhl): Define using libm_alias_ldouble.
22132 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
22133 <libm-alias-ldouble.h>.
22134 (tanl): Define using libm_alias_ldouble.
22135 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
22136 <libm-alias-ldouble.h>.
22137 (totalorderl): Define using libm_alias_ldouble.
22138 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
22139 <libm-alias-ldouble.h>.
22140 (totalordermagl): Define using libm_alias_ldouble.
22141 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
22142 libm_alias_ldouble.
22143 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
22144 libm_alias_ldouble.
22145
22146 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
22147
22148 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
22149 memmove_falkor.
22150 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22151 (__libc_ifunc_impl_list): Likewise.
22152 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
22153 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
22154
22155 * benchtests/bench-memmove-walk.c: New file.
22156 * benchtests/Makefile (string-benchset): Add it.
22157
22158 * benchtests/bench-memset-walk.c: New file.
22159 * benchtests/Makefile (string-benchset): Add it.
22160
22161 * benchtests/bench-memcpy-walk.c: New file.
22162 * benchtests/Makefile (string-benchset): Add it.
22163
22164 2017-10-05 Florian Weimer <fweimer@redhat.com>
22165
22166 nscd: Eliminate compilation time dependency in the build output.
22167 * nscd/nscd_stat.c (STATDATA_VERSION)
22168 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
22169 (STATDATA_VERSION_FULL): New macro definitions.
22170 (compilation): Remove.
22171 (struct statdata): Adjust version member.
22172 (send_stats): Set version from STATDATA_VERSION_FULL.
22173 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
22174
22175 2017-10-05 Joseph Myers <joseph@codesourcery.com>
22176
22177 * configure.ac (--enable-add-ons): Remove option.
22178 (machine): Do not mention add-ons in comment.
22179 (LIBC_PRECONFIGURE): Likewise.
22180 (add_ons): Remove variable and sanity checks and logic to locate
22181 add-ons.
22182 (add_ons_automatic): Remove variable.
22183 (configured_add_ons): Likewise.
22184 (add_ons_sfx): Likewise.
22185 (add_ons_pfx): Likewise.
22186 (add_on_subdirs): Likewise.
22187 (sysnames_add_ons): Likewise. Remove loop over add-ons and
22188 consideration of add-ons in Implies handling.
22189 (sysdeps_add_ons): Likewise.
22190 * configure: Regenerated.
22191 * libidn/configure.ac: Remove.
22192 * libidn/configure: Likewise.
22193 * sysdeps/unix/inet/configure.ac: New file.
22194 * sysdeps/unix/inet/configure: New generated file.
22195 * sysdeps/unix/inet/Subdirs: Add libidn.
22196 * Makeconfig (sysdeps-srcdirs): Remove variable.
22197 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
22198 ($(common-objpfx)config.status): Do not depend on add-on files.
22199 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
22200 comment.
22201 (all-subdirs): Do not include $(add-on-subdirs).
22202 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
22203 * config.make.in (add-ons): Remove variable.
22204 (add-on-subdirs): Likewise.
22205 (sysdeps-add-ons): Likewise.
22206 * manual/Makefile (add-chapters): Remove.
22207 ($(objpfx)texis): Do not depend on $(add-chapters).
22208 (nonexamples): Do not handle $(add-chapters).
22209 (examples): Do not handle $(add-ons).
22210 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
22211 libc-texinfo.sh.
22212 * manual/install.texi (Installation): Do not mention add-ons.
22213 (--enable-add-ons): Do not document configure option.
22214 * INSTALL: Regenerated.
22215 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
22216 * manual/maint.texi (Hierarchy Conventions): Do not mention
22217 add-ons.
22218 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
22219 --enable-add-ons.
22220 * scripts/gen-sorted.awk: Do not handle Subdirs files from
22221 add-ons.
22222 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
22223 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
22224
22225 2017-10-05 Andreas Schwab <schwab@suse.de>
22226
22227 [BZ #15142]
22228 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
22229 (_IO_flush_all_lockp): Always lock list_all_lock.
22230 (_IO_flush_all_linebuffered): Likewise.
22231 (_IO_unbuffer_all): Likewise.
22232
22233 2017-10-05 Florian Weimer <fweimer@redhat.com>
22234
22235 [BZ #15436]
22236 Do not flush stdio streams on abort.
22237 * stdlib/abort.c (fflush): Remove macro definition.
22238 (abort): Remove stages related to stdio flushing.
22239
22240 2017-10-05 Florian Weimer <fweimer@redhat.com>
22241
22242 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
22243
22244 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
22245
22246 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22247
22248 2017-10-05 Florian Weimer <fweimer@redhat.com>
22249
22250 * support/support_format_hostent.c (support_format_hostent): Add
22251 more error information for NETDB_INTERNAL.
22252
22253 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22254
22255 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
22256 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
22257 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
22258 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
22259 AC_DEFINE if multi-arch is enabled.
22260 * sysdeps/i386/configure: Regenerated.
22261
22262 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22263
22264 * Makeconfig (+link-static-before-libc): Use
22265 $(DEFAULT-LDFLAGS-$(@F)).
22266 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
22267 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
22268 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
22269
22270 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22271
22272 * elf/Makefile (tests): Add tst-main1.
22273 (modules-names): Add tst-main1mod.
22274 ($(objpfx)tst-main1): New.
22275 (CRT-tst-main1): Likewise.
22276 (LDFLAGS-tst-main1): Likewise.
22277 (LDLIBS-tst-main1): Likewise.
22278 (tst-main1mod.so-no-z-defs): Likewise.
22279 * elf/tst-main1.c: New file.
22280 * elf/tst-main1mod.c: Likewise.
22281
22282 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22283
22284 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
22285
22286 2017-10-04 Joseph Myers <joseph@codesourcery.com>
22287
22288 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
22289 (fma): Define using libm_alias_double.
22290 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
22291 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
22292 <math_ldbl_opt.h>.
22293 (fmal): Do not define as compat symbol here.
22294 * sysdeps/alpha/fpu/s_fma.c: New file.
22295
22296 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22297
22298 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
22299
22300 2017-10-04 Joseph Myers <joseph@codesourcery.com>
22301
22302 [BZ #22229]
22303 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22304 <math_ldbl_opt.h>
22305 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
22306 and libc.
22307 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
22308 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22309 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
22310 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
22311 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22312 Include <math_ldbl_opt.h>
22313 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
22314 and libc.
22315 (compat_symbol): Undefine and redefine.
22316 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22317 <math_ldbl_opt.h>
22318 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22319 (compat_symbol): Undefine and redefine.
22320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
22321 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
22322 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
22323 GLIBC_2_1 for libm.
22324 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
22325 GLIBC_2.0 copysignl symbol.
22326 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
22327 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
22328
22329 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
22330
22331 2017-10-04 Florian Weimer <fweimer@redhat.com>
22332
22333 * scripts/check-local-headers.sh: Ignore nspr4 header file
22334 directory in addition to nspr.
22335
22336 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
22337
22338 [BZ #17956]
22339 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
22340 * configure: Regenerate.
22341 * crypt/Makefile (nss-cpp-flags): New variable.
22342 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
22343 (CPPFLAGS-md5-crypt.c): Use it.
22344 * scripts/check-local-headers.sh: Ignore nspr header file
22345 directory.
22346
22347 2017-10-04 Andreas Schwab <schwab@suse.de>
22348
22349 * nis/Makefile (services): Remove compat.
22350 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
22351 ($(objpfx)libnss_compat.so): Remove rule.
22352 * nis/Versions (libnss_compat): Remove.
22353 * nss/Makefile (services): Add compat.
22354 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
22355 * nss/Versions (libnss_compat): Define.
22356 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
22357 Don't include <rpc/types.h>. Replace bool_t by bool.
22358 * nss/nss_compat/compat-initgroups.c: Likewise.
22359 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
22360 instead of <rpcsrv/ypclnt.h>.
22361 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
22362 yp_get_default_domain.
22363 * nss/nss_compat/compat-pwd.c: Likewise.
22364 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
22365 yp_get_default_domain.
22366 * nss/nss_compat/nisdomain.c: New file.
22367 * nss/nss_compat/nisdomain.h: Likewise.
22368
22369 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22370
22371 [BZ #22244]
22372 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
22373 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
22374
22375 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22376
22377 [BZ #22243]
22378 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
22379 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
22380
22381 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22382
22383 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
22384 "movl main@GOTOFF(%ebx), %eax".
22385
22386 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22387
22388 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
22389 allow undefined _DYNAMIC in PIE libc.a.
22390 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
22391 Likewse.
22392
22393 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22394
22395 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
22396 check _DYNAMIC.
22397
22398 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22399
22400 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
22401 check _DYNAMIC.
22402
22403 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22404
22405 * math/test-math-iscanonical.cc (error): Replace bool with int.
22406
22407 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22408
22409 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
22410 (modf): Define using libm_alias_double, only if [!__modf].
22411 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
22412 <libm-alias-double.h>.
22413 (modf): Define using libm_alias_double, only if [!__modf].
22414 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
22415 compat symbol here.
22416 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
22417 (weak_alias): Do not undefine and redefine.
22418 (strong_alias): Likewise.
22419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
22420 (weak_alias): Likewise.
22421 (strong_alias): Likewise.
22422
22423 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
22424 (logb): Define using libm_alias_double, only if [!__logb].
22425 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
22426 <libm-alias-double.h>.
22427 (logb): Define using libm_alias_double, only if [!__logb].
22428 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
22429 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
22430 (weak_alias): Do not undefine and redefine.
22431 (strong_alias): Likewise.
22432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
22433 (weak_alias): Likewise.
22434 (strong_alias): Likewise.
22435
22436 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22437
22438 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
22439 Check SHARED instead PIC.
22440
22441 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22442
22443 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
22444 [!__fmaf] (fmaf): Define using libm_alias_float.
22445
22446 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
22447 (frexp): Define using libm_alias_double.
22448 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
22449 <libm-alias-double.h>.
22450 (frexp): Define using libm_alias_double.
22451 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
22452 compat symbol here.
22453
22454 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
22455
22456 [BZ #22235]
22457 * math/math.h: Trivial fix for unbalanced parentheses in comment.
22458 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
22459 (CFLAGS-test-math-iscanonical.cc): New variable.
22460 * math/test-math-iscanonical.cc: New file.
22461 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
22462 Provide a C++ implementation based on function overloading,
22463 rather than using __MATH_TG, which uses C-only builtins.
22464 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
22465 Likewise.
22466 * sysdeps/powerpc/powerpc64le/Makefile
22467 (CFLAGS-test-math-iscanonical.cc): New variable.
22468
22469 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22470
22471 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
22472 (ceil): Define using libm_alias_double.
22473 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
22474 (floor): Define using libm_alias_double.
22475 * sysdeps/ieee754/dbl-64/s_llround.c: Include
22476 <libm-alias-double.h>.
22477 (llround): Define using libm_alias_double.
22478 * sysdeps/ieee754/dbl-64/s_lround.c: Include
22479 <libm-alias-double.h>.
22480 (lround): Define using libm_alias_double.
22481 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
22482 <libm-alias-double.h>.
22483 (nearbyint): Define using libm_alias_double.
22484 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
22485 <libm-alias-double.h>.
22486 (remquo): Define using libm_alias_double.
22487 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
22488 (rint): Define using libm_alias_double.
22489 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
22490 (round): Define using libm_alias_double.
22491 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
22492 (trunc): Define using libm_alias_double.
22493 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
22494 <libm-alias-double.h>.
22495 (ceil): Define using libm_alias_double.
22496 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
22497 <libm-alias-double.h>.
22498 (floor): Define using libm_alias_double.
22499 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
22500 <libm-alias-double.h>.
22501 (llround): Define using libm_alias_double.
22502 [_LP64] (lround): Likewise.
22503 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
22504 <libm-alias-double.h>.
22505 [!_LP64] (lround): Define using libm_alias_double.
22506 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
22507 <libm-alias-double.h>.
22508 (nearbyint): Define using libm_alias_double.
22509 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
22510 <libm-alias-double.h>.
22511 (remquo): Define using libm_alias_double.
22512 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
22513 <libm-alias-double.h>.
22514 (rint): Define using libm_alias_double.
22515 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
22516 <libm-alias-double.h>.
22517 (round): Define using libm_alias_double.
22518 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
22519 <libm-alias-double.h>.
22520 (trunc): Define using libm_alias_double.
22521 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
22522 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
22523 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
22524 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
22525 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
22526 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
22527 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
22528 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
22529 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
22530
22531 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22532
22533 * math/w_remainder.c: New file.
22534 * math/w_remainderf.c: New file.
22535 * math/w_remainderl.c: New file.
22536
22537 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22538
22539 * elf/rtld.c (BOOTSTRAP_MAP): New.
22540 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
22541 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22542 Likewise.
22543 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22544 Likewise.
22545 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22546 Likewise.
22547
22548 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22549
22550 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
22551 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
22552 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
22553 rtld_hidden_data_ver): Define to empty.
22554 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
22555 __assert_perror_fail): Likewise.
22556 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22557 (__rewinddir): Likewise.
22558 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22559 (__profile_frequency): Likewise.
22560 * include/setjmp.h (__sigsetjmp): Likewise.
22561 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
22562 __libc_sigaction): Likewise.
22563 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
22564 not set hidden attribute.
22565 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
22566 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
22567 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
22568 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
22569 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
22570 __fxstatat64): Likewise.
22571 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22572 (__uname): Likewise.
22573 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22574 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
22575 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
22576 (NO_RTLD_HIDDEN): Set.
22577 * sysdeps/mach/hurd/configure: Refresh.
22578 * config.h.in: Refresh.
22579
22580 2017-10-02 Joseph Myers <joseph@codesourcery.com>
22581
22582 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
22583 (atan): Define using libm_alias_double.
22584 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
22585 (tan): Define using libm_alias_double.
22586 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
22587 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
22588
22589 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
22590 define as weak alias of __atan. Do not define any aliases if
22591 [__atan].
22592 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
22593 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
22594 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
22595 as weak alias of __tan. Do not define any aliases if [__tan].
22596 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
22597 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
22598 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
22599 __atan.
22600 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
22601 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
22602 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
22603 and define as weak alias of __atan.
22604 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
22605 __atan.
22606 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
22607 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
22608 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
22609 define as weak alias of __tan.
22610
22611 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22612
22613 * math/w_lgamma.c: New file.
22614 * math/w_lgammaf.c: New file.
22615 * math/w_lgammal.c: New file.
22616
22617 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22618
22619 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
22620 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
22621 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
22622 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
22623 * sysdeps/ieee754/flt-32/w_logf.c: New file.
22624 * sysdeps/ieee754/flt-32/w_powf.c: New file.
22625 * sysdeps/i386/fpu/w_log2f.c: New file.
22626 * sysdeps/i386/fpu/w_logf.c: New file.
22627 * sysdeps/i386/fpu/w_powf.c: New file.
22628 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
22629 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
22630 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
22631
22632 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22633 H.J. Lu <hongjiu.lu@intel.com>
22634
22635 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
22636 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
22637 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
22638 * sysdeps/ieee754/flt-32/w_expf.c: New file.
22639 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
22640 the new expf code.
22641 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
22642 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
22643 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
22644 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
22645 * sysdeps/i386/fpu/w_exp2f.c: New file.
22646 * sysdeps/i386/fpu/w_expf.c: New file.
22647 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
22648 * sysdeps/x86_64/fpu/w_expf.c: New file.
22649
22650 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22651
22652 * math/Versions (logf): New libm symbol at GLIBC_2.27.
22653 (log2f): Likewise.
22654 (powf): Likewise.
22655 * math/w_log2f.c: New file.
22656 * math/w_logf.c: New file.
22657 * math/w_powf.c: New file.
22658 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
22659 * math/w_logf_compat.c (__logf_compat): Likewise.
22660 * math/w_powf_compat.c (__powf_compat): Likewise.
22661 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
22662 * sysdeps/ia64/fpu/e_logf.S: Likewise.
22663 * sysdeps/ia64/fpu/e_powf.S: Likewise.
22664 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
22665 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22666 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22667 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22668 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22669 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22670 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22671 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22672 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22673 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22674 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22675 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22677 Likewise.
22678 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22679 Likewise.
22680 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22681 Likewise.
22682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22683 Likewise.
22684 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22685 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22686 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22687 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22688 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22689 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22690 Likewise.
22691 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22692 Likewise.
22693 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22694 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22695 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22696
22697 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22698
22699 * sysdeps/powerpc/powerpc64/multiarch/Makefile
22700 (sysdep_routines): Add memrchr_power8.
22701 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
22702 (memrchr): Add __memrchr_power8 to list of memrchr functions.
22703 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
22704 New file.
22705 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
22706 (memrchr): Add __memrchr_power8 to ifunc list.
22707 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
22708
22709 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22710
22711 [BZ #18822]
22712 * sysdeps/unix/sysv/linux/posix_fadvise64.c
22713 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
22714 libc_hidden_def.
22715 * sysdeps/unix/sysv/linux/posix_fallocate64.c
22716 (__posix_fallocate64_l64): Likewise.
22717
22718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22719
22720 [BZ #18822]
22721 * sysdeps/unix/sysv/linux/sched_setaffinity.c
22722 (__sched_setaffinity_new): Add libc_hidden_proto and
22723 libc_hidden_def.
22724
22725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22726
22727 [BZ #18822]
22728 * include/glob.h (__glob64): Add libc_hidden_proto.
22729 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
22730 libc_hidden_def.
22731
22732 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22733
22734 [BZ #18822]
22735 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
22736 attribute_hidden.
22737
22738 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22739
22740 [BZ #18822]
22741 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
22742
22743 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22744
22745 [BZ #18822]
22746 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
22747 libc_hidden_def.
22748
22749 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22750
22751 [BZ #18822]
22752 * csu/version.c (__libc_print_version): Add attribute_hidden.
22753
22754 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22755
22756 [BZ #18822]
22757 * include/libc-internal.h (__init_misc): Add attribute_hidden.
22758
22759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22760
22761 [BZ #18822]
22762 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
22763
22764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22765
22766 [BZ #18822]
22767 * nscd/nscd_helper.c (__nis_hash): New prototype.
22768
22769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22770
22771 [BZ #18822]
22772 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
22773 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
22774 libc_hidden_def.
22775 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22776 * termios/tcgetattr.c (__tcgetattr): Likewise.
22777
22778 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22779
22780 [BZ #18822]
22781 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
22782 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
22783 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
22784 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
22785 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
22786
22787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22788
22789 [BZ #18822]
22790 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
22791
22792 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22793
22794 [BZ #18822]
22795 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
22796 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
22797
22798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22799
22800 [BZ #18822]
22801 * intl/hash-string.h (__hash_string): Add attribute_hidden.
22802
22803 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22804
22805 [BZ #18822]
22806 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
22807 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
22808
22809 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22810
22811 [BZ #18822]
22812 * include/ifreq.h: New file.
22813 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
22814 (__ifreq): Likewise.
22815 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
22816 (__ifreq): Likewise.
22817
22818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22819
22820 [BZ #18822]
22821 * include/idna.h: New file.
22822 * inet/getnameinfo.c: Include <idna.h> instead of
22823 <libidn/idna.h>.
22824 (__idna_to_unicode_lzlz): Removed.
22825 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
22826 <libidn/idna.h>.
22827 (__idna_to_ascii_lz): Removed.
22828 (__idna_to_unicode_lzlz): Likewise.
22829
22830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22831
22832 [BZ #18822]
22833 * include/plural-exp.h: New file.
22834 * intl/plural-exp.c: Include <plural-exp.h> instead of
22835 "plural-exp.h".
22836
22837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22838
22839 [BZ #18822]
22840 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
22841 "getsourcefilter.h".
22842 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
22843 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
22844 "getsourcefilter.h".
22845 (__get_sol): Removed.
22846
22847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22848
22849 [BZ #18822]
22850 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
22851 to ...
22852 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
22853
22854 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22855
22856 [BZ #18822]
22857 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
22858 attribute_hidden.
22859
22860 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22861
22862 [BZ #18822]
22863 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
22864
22865 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22866
22867 [BZ #18822]
22868 * include/search.h (__tdestroy): Add libc_hidden_proto.
22869 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
22870
22871 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22872
22873 [BZ #18822]
22874 * include/assert.h (__assert_fail_base): Add attribute_hidden.
22875
22876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22877
22878 [BZ #18822]
22879 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
22880 attribute_hidden.
22881
22882 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22883
22884 [BZ #18822]
22885 * include/signal.h (__kill): Add libc_hidden_proto.
22886 (__sigblock): Likewise.
22887 (__sigprocmask): Likewise.
22888 (__sigaltstack): Likewise.
22889 * signal/kill.c (__kill): Add libc_hidden_def.
22890 * signal/sigblock.c (__sigblock): Likewise.
22891 * signal/sigprocmask.c (__sigprocmask): Likewise.
22892 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
22893 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22894 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22895 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22896 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
22897 Likewise.
22898 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22899 Likewise.
22900 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22901 (__sigprocmask): Likewise.
22902 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
22903 Likewise.
22904 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22905 (__sigprocmask): Likewise.
22906 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22907 Likewise.
22908
22909 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22910
22911 [BZ #18822]
22912 * include/string.h (__strsep): Add libc_hidden_proto.
22913 * string/strsep.c (__strsep): Add libc_hidden_def.
22914
22915 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22916
22917 [BZ #18822]
22918 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
22919 attribute_hidden.
22920 (__spawni): Likewise.
22921
22922 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22923
22924 [BZ #18822]
22925 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
22926 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
22927 libc_hidden_def.
22928
22929 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22930
22931 [BZ #18822]
22932 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
22933
22934 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22935
22936 [BZ #18822]
22937 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
22938 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
22939 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
22940 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
22941 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
22942 Likewise.
22943 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
22944 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
22945
22946 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22947
22948 [BZ #18822]
22949 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
22950 (__dcigettext): Likewise.
22951
22952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22953
22954 [BZ #18822]
22955 * include/sys/sysinfo.h (__get_nprocs_conf): Add
22956 libc_hidden_proto.
22957 (__get_nprocs): Likewise.
22958 (__get_phys_pages): Likewise.
22959 (__get_avphys_pages): Likewise.
22960 (__get_child_max): Add attribute_hidden.
22961 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
22962 (__get_nprocs): Likewise.
22963 (__get_phys_pages): Likewise.
22964 (__get_avphys_pages): Likewise.
22965 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
22966 libc_hidden_def.
22967 (__get_nprocs): Likewise.
22968 (__get_phys_pages): Likewise.
22969 (__get_avphys_pages): Likewise.
22970 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
22971 libc_hidden_def.
22972 (__get_nprocs_conf): Likewise.
22973 (__get_phys_pages): Likewise.
22974 (__get_avphys_pages): Likewise.
22975
22976 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22977
22978 [BZ #18822]
22979 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
22980 attribute_hidden.
22981 (__netlink_close): Likewise.
22982 (__netlink_free_handle): Likewise.
22983 (__netlink_request): Likewise.
22984
22985 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22986
22987 [BZ #18822]
22988 * include/rpc/rpc.h (__rpc_thread_variables): Add
22989 attribute_hidden.
22990 (__rpc_thread_svc_cleanup): Likewise.
22991 (__rpc_thread_clnt_cleanup): Likewise.
22992 (__rpc_thread_key_cleanup): Likewise.
22993
22994 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22995
22996 [BZ #18822]
22997 * include/sys/uio.h (__readv): Add libc_hidden_proto.
22998 (__writev): Likewise.
22999 * misc/readv.c (__readv): Add libc_hidden_def.
23000 * misc/writev.c (__writev): Likewise.
23001 * sysdeps/posix/readv.c (__readv): Likewise.
23002 * sysdeps/posix/writev.c (__writev): Likewise.
23003 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
23004 (__readv): Likewise.
23005 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
23006 (__writev): Likewise.
23007
23008 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23009
23010 [BZ #18822]
23011 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
23012 (__regcomp): Add libc_hidden_proto.
23013 (__regexec): Likewise.
23014 (__regfree): Likewise.
23015 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
23016 (__regfree): Likewise.
23017 * posix/regexec.c (__regexec): Likewise.
23018
23019 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23020
23021 [BZ #18822]
23022 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
23023 (__getutent): Likewise.
23024 (__getutid): Likewise.
23025 (__getutline): Likewise.
23026 (__pututline): Likewise.
23027 (__getutent_r): Likewise.
23028 (__getutid_r): Likewise.
23029 (__getutline_r): Likewise.
23030 (__utmpname): Add attribute_hidden.
23031 (__setutent): Likewise.
23032 (__endutent): Likewise.
23033 * login/getutent.c (__getutent): Add libc_hidden_def.
23034 * login/getutent_r.c (__getutent_r): Likewise.
23035 (__pututline): Likewise.
23036 * login/getutid.c (__getutid): Likewise.
23037 * login/getutid_r.c (__getutid_r): Likewise.
23038 * login/getutline.c (__getutline): Likewise.
23039 * login/getutline_r.c (__getutline_r): Likewise.
23040 * login/updwtmp.c (__updwtmp): Likewise.
23041
23042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23043
23044 [BZ #18822]
23045 * include/dirent.h (__opendir): Always add attribute_hidden.
23046 (__fdopendir): Likewise.
23047 (__closedir): Likewise.
23048 (__readdir): Likewise.
23049 (__readdir64): Add libc_hidden_proto.
23050 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
23051 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
23052 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
23053 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
23054 New alias.
23055
23056 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23057
23058 [BZ #18822]
23059 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
23060 * include/netdb.h (__gethostbyaddr_r): Likewise.
23061 (__gethostbyname_r): Likewise.
23062 (__gethostbyname2_r): Likewise.
23063 (__getnetbyaddr_r): Likewise.
23064 (__getnetbyname_r): Likewise.
23065 (__getservbyname_r): Likewise.
23066 (__getservbyport_r): Likewise.
23067 (__getprotobyname_r): Likewise.
23068 (__getprotobynumber_r): Likewise.
23069 (__getnetgrent_r): Likewise.
23070 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
23071 (__getrpcbynumber_r): Likewise.
23072 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
23073
23074 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23075
23076 [BZ #18822]
23077 * include/stdio.h (__fcloseall): Add attribute_hidden.
23078 (__getline): Likewise.
23079 (__path_search): Likewise.
23080 (__gen_tempname): Likewise.
23081 (__libc_message): Likewise.
23082 (__flockfile): Likewise.
23083 (__funlockfile): Likewise.
23084 (__fxprintf): Likewise.
23085 (__fxprintf_nocancel): Likewise.
23086
23087 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23088
23089 [BZ #18822]
23090 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
23091 (__sgetsgent_r): Likewise.
23092
23093 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23094
23095 [BZ #18822]
23096 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
23097 (__statfs64): Likewise.
23098 (__fstatfs64): Likewise.
23099 * include/sys/statvfs.h (__statvfs64): Likewise.
23100 (__fstatvfs64): Likewise.
23101 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
23102 (__statfs_filesize_max): Likewise.
23103 (__statfs_symlinks): Likewise.
23104 (__statfs_chown_restricted): Likewise.
23105
23106 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23107
23108 [BZ #18822]
23109 * include/time.h (__tzstring): Add attribute_hidden.
23110 (__tzfile_read): Likewise.
23111 (__tzfile_compute): Likewise.
23112 (__tzfile_default): Likewise.
23113 (__tzset_parse_tz): Likewise.
23114 (__offtime): Likewise.
23115 (__asctime_r): Likewise.
23116 (__tzset): Likewise.
23117 (__tz_convert): Likewise.
23118 (__getdate_r): Likewise.
23119 (__getclktck): Likewise.
23120
23121 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23122
23123 [BZ #18822]
23124 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
23125 (__nscd_unmap): Likewise.
23126 (__nscd_cache_search): Likewise.
23127 (__nscd_get_nl_timestamp): Likewise.
23128 (__nscd_getpwnam_r): Likewise.
23129 (__nscd_getpwuid_r): Likewise.
23130 (__nscd_getgrnam_r): Likewise.
23131 (__nscd_getgrgid_r): Likewise.
23132 (__nscd_gethostbyname_r): Likewise.
23133 (__nscd_gethostbyname2_r): Likewise.
23134 (__nscd_gethostbyaddr_r): Likewise.
23135 (__nscd_getai): Likewise.
23136 (__nscd_getgrouplist): Likewise.
23137 (__nscd_getservbyname_r): Likewise.
23138 (__nscd_getservbyport_r): Likewise.
23139 (__nscd_innetgr): Likewise.
23140 (__nscd_setnetgrent): Likewise.
23141
23142 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23143
23144 [BZ #18822]
23145 * include/gmp.h: Declare internal functions only if _ISOMAC is
23146 undefined.
23147 (__mpn_extract_double): Add attribute_hidden.
23148 (__mpn_extract_long_double): Likewise.
23149 (__mpn_extract_float128): Likewise.
23150 (__mpn_construct_float): Likewise.
23151 (__mpn_construct_double): Likewise.
23152 (__mpn_construct_long_double): Likewise.
23153 (__mpn_construct_float128): Likewise.
23154 (mpn_add_1): Likewise.
23155 (mpn_addmul_1): Likewise.
23156 (mpn_add_n): Likewise.
23157 (mpn_cmp): Likewise.
23158 (mpn_divrem): Likewise.
23159 (mpn_lshift): Likewise.
23160 (mpn_mul): Likewise.
23161 (mpn_mul_1): Likewise.
23162 (mpn_rshift): Likewise.
23163 (mpn_sub_1): Likewise.
23164 (mpn_submul_1): Likewise.
23165 (mpn_sub_n): Likewise.
23166
23167 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23168
23169 [BZ #18822]
23170 * include/wchar.h (__wcsnlen): Add attribute_hidden.
23171 (__wcscat): Likewise.
23172 (__btowc): Likewise.
23173 (__wcrtomb): Likewise.
23174 (__mbsrtowcs): Likewise.
23175 (__wcsrtombs): Likewise.
23176 (__mbsnrtowcs): Likewise.
23177 (__wcsnrtombs): Likewise.
23178 (__wcsncpy): Likewise.
23179 (__wcpncpy): Likewise.
23180 (__wmemcpy): Likewise.
23181 (__wmempcpy): Likewise.
23182 (__wmemmove): Likewise.
23183 (__wcschrnul): Likewise.
23184 (__vfwscanf): Likewise.
23185 (__vswprintf): Likewise.
23186 (__fwprintf): Likewise.
23187 (__vfwprintf): Likewise.
23188
23189 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23190
23191 [BZ #18822]
23192 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
23193 (__getgrgid_r): Likewise.
23194 (__getgrnam_r): Likewise.
23195 * include/pwd.h (__getpwuid_r): Likewise.
23196 (__getpwnam_r): Likewise.
23197 (__fgetpwent_r): Likewise.
23198 * include/shadow.h (__getspnam_r): Likewise.
23199 (__sgetspent_r): Likewise.
23200 (__fgetspent_r): Likewise.
23201
23202 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23203
23204 [BZ #18822]
23205 * include/unistd.h (__access): Add attribute_hidden.
23206 (__lseek64): Likewise.
23207 (__libc_pread64): Likewise.
23208 (__pipe2): Likewise.
23209 (__sleep): Likewise.
23210 (__chdir): Likewise.
23211 (__fchdir): Likewise.
23212 (__getcwd): Likewise.
23213 (__rmdir): Likewise.
23214 (__execvpe): Likewise.
23215 (__execve): Likewise.
23216 (__setsid): Likewise.
23217 (__getuid): Likewise.
23218 (__geteuid): Likewise.
23219 (__getgid): Likewise.
23220 (__getegid): Likewise.
23221 (__getgroups): Likewise.
23222 (__group_member): Likewise.
23223 (__ttyname_r): Likewise.
23224 (__isatty): Likewise.
23225 (__readlink): Likewise.
23226 (__unlink): Likewise.
23227 (__gethostname): Likewise.
23228 (__profil): Likewise.
23229 (__getdtablesize): Likewise.
23230 (__brk): Likewise.
23231 (__ftruncate): Likewise.
23232 (__ftruncate64): Likewise.
23233
23234 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23235
23236 [BZ #18822]
23237 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
23238 * argp/argp-fs-xinl.c: Likewise.
23239 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
23240 * argp/argp-parse.c: Include <argp.h>.
23241 * argp/argp-xinl.c: Likewise.
23242 * include/argp-fmtstream.h: New file.
23243 * include/argp.h (__argp_error): Add attribute_hidden.
23244 (__argp_failure): Likewise.
23245 (__argp_input): Likewise.
23246 (__argp_state_help): Likewise.
23247
23248 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23249
23250 [BZ #18822]
23251 * include/wchar.h (____wcstof_l_internal): New prototype.
23252 (____wcstod_l_internal): Likewise.
23253 (____wcstold_l_internal): Likewise.
23254 (____wcstol_l_internal): Likewise.
23255 (____wcstoul_l_internal): Likewise.
23256 (____wcstoll_l_internal): Likewise.
23257 (____wcstoull_l_internal): Likewise.
23258 (____wcstof128_l_internal): Likewise.
23259 * sysdeps/ieee754/float128/wcstof128.c
23260 (____wcstof128_l_internal): Removed.
23261 * sysdeps/ieee754/float128/wcstof128_l.c
23262 (____wcstof128_l_internal): Likewise.
23263 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
23264 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
23265 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
23266 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
23267 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
23268 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
23269 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
23270 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
23271 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
23272 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
23273
23274 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23275
23276 [BZ #18822]
23277 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
23278 instead of <sys/statvfs.h>.
23279 (__internal_statvfs): Removed.
23280 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
23281 instead of <sys/statvfs.h>.
23282 (__internal_statvfs64): Removed.
23283 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
23284 "internal_statvfs.h" instead of <sys/statvfs.h>.
23285 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
23286 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
23287 instead of <sys/statvfs.h>.
23288 (__internal_statvfs): Removed.
23289 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
23290 instead of <sys/statvfs.h>.
23291 (__internal_statvfs64): Removed.
23292
23293 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23294
23295 [BZ #18822]
23296 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
23297 (__gconv_close): Likewise.
23298 (__gconv): Likewise.
23299 (__gconv_find_transform): Likewise.
23300 (__gconv_lookup_cache): Likewise.
23301 (__gconv_compare_alias_cache): Likewise.
23302 (__gconv_load_cache): Likewise.
23303 (__gconv_get_path): Likewise.
23304 (__gconv_close_transform): Likewise.
23305 (__gconv_release_cache): Likewise.
23306 (__gconv_find_shlib): Likewise.
23307 (__gconv_release_shlib): Likewise.
23308 (__gconv_get_builtin_trans): Likewise.
23309 (__gconv_compare_alias): Likewise.
23310 * include/dlfcn.h (_dlerror_run): Likewise.
23311 * include/stdio.h (__fortify_fail_abort): Likewise.
23312 * include/time.h (__tz_compute): Likewise.
23313 (__strptime_internal): Likewise.
23314 * intl/gettextP.h (_nl_find_domain): Likewise.
23315 (_nl_load_domain): Likewise.
23316 (_nl_find_msg): Likewise.
23317 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
23318 (EXTRACT_PLURAL_EXPRESSION): Likewise.
23319 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
23320 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
23321 (__gai_find_request): Likewise.
23322 (__gai_remove_request): Likewise.
23323 (__gai_notify): Likewise.
23324 (__gai_notify_only): Likewise.
23325 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
23326 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
23327 (_dl_non_dynamic_init): Likewise.
23328 (_dl_aux_init): Likewise.
23329 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
23330 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
23331 Likewise.
23332 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
23333 (__wcsmbs_clone_conv): Likewise.
23334 (__wcsmbs_named_conv): Likewise.
23335
23336 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23337
23338 [BZ #18822]
23339 * include/stdlib.h (__random): Add attribute_hidden.
23340 (__random_r): Likewise.
23341 (__srandom_r): Likewise.
23342 (__initstate_r): Likewise.
23343 (__setstate_r): Likewise.
23344 (__erand48_r): Likewise.
23345 (__nrand48_r): Likewise.
23346 (__jrand48_r): Likewise.
23347 (__srand48_r): Likewise.
23348 (__seed48_r): Likewise.
23349 (__lcong48_r): Likewise.
23350 (__drand48_iterate): Likewise.
23351 (__setenv): Likewise.
23352 (__unsetenv): Likewise.
23353 (__clearenv): Likewise.
23354 (__ptsname_r): Likewise.
23355 (__posix_openpt): Likewise.
23356 (__add_to_environ): Likewise.
23357 (__realpath): Add libc_hidden_proto.
23358 (__ecvt_r): Likewise.
23359 (__fcvt_r): Likewise.
23360 (__qecvt_r): Likewise.
23361 (__qfcvt_r): Likewise.
23362 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
23363 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
23364
23365 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23366
23367 [BZ #18822]
23368 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
23369 * include/time.h (__mktime_internal): Likewise.
23370 * libio/iolibio.h (__fopen_internal): Likewise.
23371
23372 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
23373
23374 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
23375 pointer in frame.
23376 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
23377 Correct offset used to restore PIC register.
23378
23379 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
23380
23381 [BZ libc/22165]
23382 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
23383 code to load address of __getcontext_ret when generating PIC code.
23384
23385 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
23386
23387 * elf/Makefile (tests-static-internal): Add
23388 tst-tls1-static-non-pie.
23389 (LDFLAGS-tst-tls1-static-non-pie): New.
23390 * elf/tst-tls1-static-non-pie.c: New file.
23391
23392 2017-09-29 Joseph Myers <joseph@codesourcery.com>
23393
23394 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
23395 (asinh): Define using libm_alias_double.
23396 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
23397 (cbrt): Define using libm_alias_double.
23398 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
23399 <libm-alias-double.h>.
23400 (copysign): Define using libm_alias_double.
23401 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
23402 (erf): Define using libm_alias_double.
23403 (erfc): Likewise.
23404 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
23405 (expm1): Define using libm_alias_double.
23406 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
23407 (fabs): Define using libm_alias_double.
23408 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
23409 libm_alias_double.
23410 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
23411 <libm-alias-double.h>.
23412 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
23413 libm_alias_double.
23414 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
23415 <libm-alias-double.h>.
23416 (getpayload): Define using libm_alias_double.
23417 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
23418 <libm-alias-double.h>.
23419 (llrint): Define using libm_alias_double.
23420 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
23421 (lrint): Define using libm_alias_double.
23422 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
23423 <libm-alias-double.h>.
23424 (nextup): Define using libm_alias_double.
23425 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
23426 <libm-alias-double.h>.
23427 (roundeven): Define using libm_alias_double.
23428 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
23429 libm_alias_double.
23430 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
23431 <libm-alias-double.h>.
23432 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
23433 using libm_alias_double.
23434 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
23435 (cos): Define using libm_alias_double.
23436 (sin): Likewise.
23437 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
23438 <libm-alias-double.h>.
23439 (sincos): Define using libm_alias_double.
23440 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
23441 (tanh): Define using libm_alias_double.
23442 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
23443 <libm-alias-double.h>.
23444 (totalorder): Define using libm_alias_double.
23445 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
23446 <libm-alias-double.h>.
23447 (totalordermag): Define using libm_alias_double.
23448 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
23449 libm_alias_double.
23450 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
23451 libm_alias_double.
23452 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
23453 <libm-alias-double.h>.
23454 (getpayload): Define using libm_alias_double.
23455 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
23456 <libm-alias-double.h>.
23457 (roundeven): Define using libm_alias_double.
23458 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
23459 <libm-alias-double.h>.
23460 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
23461 <libm-alias-double.h>.
23462 (totalorder): Define using libm_alias_double.
23463 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
23464 <libm-alias-double.h>.
23465 (totalordermag): Define using libm_alias_double.
23466 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
23467 libc compat symbol here.
23468 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
23469 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
23470 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
23471 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
23472 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
23473 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
23474 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
23475 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
23476 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
23477 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
23478
23479 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23480
23481 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
23482 _dl_relocate_static_pie instead of _dl_start to compute load
23483 address in static PIE. Return 0 if _DYNAMIC is undefined for
23484 static executable.
23485
23486 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23487
23488 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
23489 _DYNAMIC is undefined for static executable.
23490
23491 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23492
23493 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
23494
23495 2017-09-29 Joseph Myers <joseph@codesourcery.com>
23496
23497 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23498
23499 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23500
23501 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
23502 (__ieee754_lgamma_r): Use fabs rather than __fabs.
23503 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
23504 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
23505 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
23506 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
23507 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
23508 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
23509 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
23510 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23511 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
23512 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
23513 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
23514 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23515 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
23516 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
23517 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
23518
23519 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23520
23521 * math/bits/cmathcalls.h (cimag): Remove inline.
23522 (creal): Remove inline.
23523 (conj): Remove inline.
23524
23525 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23526
23527 * math/Makefile (type-float-routines): Add e_powf_log2_data.
23528 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
23529 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
23530 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
23531 (issignalingf_inline): Likewise.
23532 (POWF_LOG2_TABLE_BITS): Likewise.
23533 (POWF_LOG2_POLY_ORDER): Likewise.
23534 (POWF_SCALE_BITS): Likewise.
23535 (POWF_SCALE): Likewise.
23536 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
23537 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
23538 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
23539
23540 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23541
23542 * math/Makefile (type-float-routines): Add e_log2f_data.
23543 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
23544 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
23545 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
23546 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
23547 * sysdeps/i386/fpu/e_log2f_data.c: New file.
23548 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
23549 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
23550
23551 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23552
23553 * math/Makefile (type-float-routines): Add e_logf_data.
23554 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
23555 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
23556 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
23557 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
23558 * sysdeps/i386/fpu/e_logf_data.c: New file.
23559 * sysdeps/ia64/fpu/e_logf_data.c: New file.
23560 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
23561
23562 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
23563
23564 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
23565 undefined _DYNAMIC in PIE libc.a.
23566 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
23567 Likewse.
23568
23569 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
23570
23571 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
23572 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
23573 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
23574 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
23575 (__signbit): Remove.
23576 (__signbitl): Remove.
23577 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
23578 (__signbit): Remove.
23579 (__signbitl): Remove.
23580 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
23581 (__signbit): Remove.
23582 (__signbitl): Remove.
23583 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
23584 (__signbit): Remove.
23585 (__signbitl): Remove.
23586 * sysdeps/tile/bits/mathinline.h: Delete file.
23587 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
23588 (__signbit): Remove.
23589 (__signbitl): Remove.
23590
23591 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
23592
23593 * math/math.h: Improve handling of C99 isgreater macros.
23594 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
23595 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
23596 * sysdeps/powerpc/bits/mathinline.h: Likewise.
23597 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
23598 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
23599
23600 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
23601
23602 * sysdeps/aarch64/libm-test-ulps: Update.
23603
23604 2017-09-28 Joseph Myers <joseph@codesourcery.com>
23605
23606 [BZ #22225]
23607 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
23608 math_opt_barrier on argument when doing arithmetic on it.
23609 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
23610 Likewise. Use math_force_eval not math_opt_barrier after
23611 arithmetic.
23612 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
23613 math_opt_barrier on argument when doing arithmetic on it.
23614 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
23615 Likewise.
23616
23617 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
23618
23619 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
23620 libc_hidden_def.
23621 (__freeifaddrs): Likewise.
23622
23623 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
23624
23625 * include/dirent.h (__dirfd): New declaration.
23626 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
23627 alias.
23628 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
23629 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
23630 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
23631 * include/unistd.h (__revoke): New declaration.
23632 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
23633 alias.
23634 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
23635 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
23636 revoke.
23637 * include/dirent.h (__seekdir): New declaration.
23638 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
23639 redefine as weak alias.
23640 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
23641 of seekdir.
23642 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
23643 and use libc_hidden_def on them.
23644 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
23645 them.
23646 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
23647 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
23648 instead of getifaddrs and freeifaddrs.
23649
23650 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
23651
23652 [BZ #18822]
23653 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
23654 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
23655 (__dso_handle): Remove declaration.
23656 * dlfcn/tstatexit.c (__dso_handle): Removed.
23657 (main): Don't check __dso_handle.
23658 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
23659 (main): Don't check __dso_handle.
23660 * include/dso_handle.h: New file.
23661 * malloc/mtrace.c: Include <dso_handle.h>.
23662 (mtrace): Pass __dso_handle directly.
23663 * nptl/pthread_atfork.c: Include <dso_handle.h>.
23664 (__dso_handle): Remove declaration.
23665 (__pthread_atfork): Pass __dso_handle directly.
23666 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
23667 (__dso_handle): Removed.
23668 * posix/wordexp-test.c: Include <dso_handle.h>.
23669 (__dso_handle): Remove declaration.
23670 (__app_register_atfork): Pass __dso_handle directly.
23671 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
23672 (__dso_handle): Remove declaration.
23673 (at_quick_exit): Pass __dso_handle directly.
23674 * stdlib/atexit.c: Include <dso_handle.h>.
23675 (__dso_handle): Remove declaration.
23676 (atexit): Pass __dso_handle directly.
23677 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
23678 (__dso_handle): Removed.
23679
23680 2017-09-26 Joseph Myers <joseph@codesourcery.com>
23681
23682 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
23683 using VDSO.
23684
23685 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
23686
23687 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
23688 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
23689 values to correct default value for given type.
23690
23691 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
23692
23693 [BZ #22101]
23694 * elf/Makefile (tests): Add tst-debug1.
23695 ($(objpfx)tst-debug1): New.
23696 ($(objpfx)tst-debug1.out): Likewise.
23697 ($(objpfx)tst-debug1mod1.so): Likewise.
23698 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
23699 with p_filesz == 0.
23700 * elf/tst-debug1.c: New file.
23701
23702 2017-09-26 Joseph Myers <joseph@codesourcery.com>
23703
23704 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
23705 Define using __ifunc.
23706
23707 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23708
23709 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
23710 exp2f() values.
23711
23712 2017-09-26 Joseph Myers <joseph@codesourcery.com>
23713
23714 [BZ #22156]
23715 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
23716
23717 2017-09-26 Florian Weimer <fweimer@redhat.com>
23718
23719 * resolv/Makefile (tests-internal): Fix typo in comment.
23720
23721 2017-09-26 Florian Weimer <fweimer@redhat.com>
23722
23723 * resolv/nss_dns/dns-host.c: Fix typo in comment.
23724
23725 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23726
23727 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
23728 Use an union instead of a max_align_t array for __space,
23729 so that __space is the same size on all platforms.
23730 * malloc/scratch_buffer_grow_preserve.c
23731 (__libc_scratch_buffer_grow_preserve): Likewise.
23732
23733 [BZ #22183]
23734 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
23735 version to 2.
23736 * posix/Makefile (routines): Add glob-lstat-compat and
23737 glob64-lstat-compat.
23738 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
23739 * posix/glob-lstat-compat.c: New file.
23740 * posix/glob64-lstat-compat.c: Likewise.
23741 * posix/tst-glob_lstat_compat.c: Likewise.
23742 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
23743 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
23744 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
23745 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
23746 Likewise.
23747 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
23748 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
23749 * posix/glob.c (glob_lstat): New function.
23750 (glob): Rename to __glob and add versioned symbol to 2.27.
23751 (glob_in_dir): Use glob_lstat.
23752 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
23753 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
23754 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
23755 2.27.
23756 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
23757 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
23758 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
23759 gl_lstat on glob call.
23760 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
23761 and glob64 symbols.
23762 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23763 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
23764 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23765 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23766 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
23767 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
23768 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
23769 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
23770 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
23771 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23772 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23773 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
23774 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
23775 Likewise.
23776 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
23777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
23778 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23779 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23780 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
23781 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23782 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23783 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
23784 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
23785 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23786 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23787 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23788
23789 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
23790
23791 * configure.ac (AS): Require binutils 2.25 or later.
23792 * configure: Regenerated.
23793
23794 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
23795
23796 [BZ #22207]
23797 * stdlib/test-atexit-race-common.c (do_test): Minimize required
23798 VM size.
23799
23800 2017-09-25 DJ Delorie <dj@redhat.com>
23801
23802 [BZ #22161]
23803 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
23804 resetting timeout.
23805
23806 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
23807
23808 * sysdeps/ieee754/dbl-64/sincos32.h
23809 [SINCCOS32_H]: Remove define.
23810 [SINCOS32_H]: Define.
23811
23812 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
23813
23814 * math/Versions (expf): New libm symbol at GLIBC_2.27.
23815 (exp2f): Likewise.
23816 * math/w_exp2f.c: New file.
23817 * math/w_expf.c: New file.
23818 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
23819 * math/w_expf_compat.c (__expf_compat): Likewise.
23820 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
23821 * sysdeps/ia64/fpu/e_expf.S: Likewise.
23822 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
23823 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23824 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
23825 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
23826 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23827 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23828 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
23829 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
23830 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
23831 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
23832 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23833 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
23834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
23835 Likewise.
23836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
23837 Likewise.
23838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23839 Likewise.
23840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
23841 Likewise.
23842 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23843 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23844 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
23845 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23846 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23847 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
23848 Likewise.
23849 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23850 Likewise.
23851 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23852 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23853 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23854
23855 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
23856
23857 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
23858 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
23859 (roundtoint, converttoint): Likewise.
23860 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
23861 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
23862 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
23863 * sysdeps/ieee754/flt-32/math_config.h: New file.
23864 * sysdeps/ieee754/flt-32/math_errf.c: New file.
23865 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
23866 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
23867 * sysdeps/i386/fpu/math_errf.c: New file.
23868 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
23869 * sysdeps/ia64/fpu/math_errf.c: New file.
23870 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
23871 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
23872
23873 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23874
23875 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
23876 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
23877 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
23878 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
23879 to make sure that these symbols are defined.
23880 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
23881 of <limits.h>
23882 (__need_NULL): Do not define.
23883 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
23884 alignment.
23885 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
23886 CMGROUP_MAX, cmsgcred): Do not define.
23887 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
23888 NULL.
23889 * bits/socket.h: Likewise.
23890 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
23891 __gettimeofday instead of gettimeofday.
23892 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
23893 instead of settimeofday.
23894
23895 2017-09-22 Joseph Myers <joseph@codesourcery.com>
23896
23897 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
23898 (asinhf): Define using libm_alias_float.
23899 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
23900 (atanf): Define using libm_alias_float.
23901 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
23902 (cbrtf): Define using libm_alias_float.
23903 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
23904 (ceilf): Define using libm_alias_float.
23905 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
23906 <libm-alias-float.h>.
23907 (copysignf): Define using libm_alias_float.
23908 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
23909 (cosf): Define using libm_alias_float.
23910 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
23911 (erff): Define using libm_alias_float.
23912 (erfcf): Likewise.
23913 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
23914 (expm1f): Define using libm_alias_float.
23915 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
23916 (fabsf): Define using libm_alias_float.
23917 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
23918 (floorf): Define using libm_alias_float.
23919 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
23920 (frexpf): Define using libm_alias_float.
23921 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
23922 libm_alias_float.
23923 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
23924 <libm-alias-float.h>.
23925 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
23926 libm_alias_float.
23927 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
23928 <libm-alias-float.h>.
23929 (getpayloadf): Define using libm_alias_float.
23930 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
23931 <libm-alias-float.h>.
23932 (llrintf): Define using libm_alias_float.
23933 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
23934 <libm-alias-float.h>.
23935 (llroundf): Define using libm_alias_float.
23936 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
23937 (logbf): Define using libm_alias_float.
23938 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
23939 (lrintf): Define using libm_alias_float.
23940 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
23941 (lroundf): Define using libm_alias_float.
23942 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
23943 (modff): Define using libm_alias_float.
23944 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
23945 <libm-alias-float.h>.
23946 (nearbyintf): Define using libm_alias_float.
23947 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
23948 <libm-alias-float.h>.
23949 (nextafterf): Define using libm_alias_float.
23950 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
23951 <libm-alias-float.h>.
23952 (nextupf): Define using libm_alias_float.
23953 * sysdeps/ieee754/flt-32/s_remquof.c: Include
23954 <libm-alias-float.h>.
23955 (remquof): Define using libm_alias_float.
23956 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
23957 (rintf): Define using libm_alias_float.
23958 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
23959 <libm-alias-float.h>.
23960 (roundevenf): Define using libm_alias_float.
23961 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
23962 (roundf): Define using libm_alias_float.
23963 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
23964 using libm_alias_float.
23965 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
23966 <libm-alias-float.h>.
23967 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
23968 Define using libm_alias_float.
23969 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
23970 <libm-alias-float.h>.
23971 (sincosf): Define using libm_alias_float.
23972 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
23973 (sinf): Define using libm_alias_float.
23974 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
23975 (tanf): Define using libm_alias_float.
23976 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
23977 (tanhf): Define using libm_alias_float.
23978 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
23979 <libm-alias-float.h>.
23980 (totalorderf): Define using libm_alias_float.
23981 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
23982 <libm-alias-float.h>.
23983 (totalordermagf): Define using libm_alias_float.
23984 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
23985 (truncf): Define using libm_alias_float.
23986 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
23987 libm_alias_float.
23988 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
23989 libm_alias_float.
23990
23991 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23992
23993 [BZ #22146]
23994 math/math.h: Let fpclassify use the builtin in C++ mode, even
23995 when optimazing for size.
23996
23997 2017-09-22 Joseph Myers <joseph@codesourcery.com>
23998
23999 * csu/Makefile (generated): Do not add version-info.h.
24000 (before-compile): Likewise.
24001 (all-Banner-files): Remove variable.
24002 ($(objpfx)version-info.h): Remove rule.
24003 * csu/version.c (banner): Do not include "version-info.h".
24004 * libidn/Banner: Remove.
24005 * manual/contrib.texi (Simon Josefsson): New entry.
24006
24007 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24008
24009 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
24010 Remove conditionals on LDBL_MANT_DIG.
24011 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
24012 (__ieee754_lgammal_r): Likewise.
24013
24014 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24015
24016 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
24017 _Float128 and L().
24018 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
24019 _Float128 and L(). Replace _Float128 with long double and L(x)
24020 with xL, throughout the file.
24021 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
24022 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
24023 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
24024 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
24025
24026 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24027
24028 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
24029 sysdeps/ieee754/ldbl-128ibm.
24030 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
24031 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
24032 of including it. Keep _Float128 and L() intact. These will be
24033 reviewed by a separate patch.
24034 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
24035 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
24036 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
24037 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
24038
24039 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24040
24041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
24042 (__finitef128): Define to __redirect___finitef128.
24043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
24044 (__isinff128): Define to __redirect___isinff128.
24045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
24046 (__isnanf128): Define to __redirect___isnanf128.
24047
24048 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24049
24050 * sysdeps/powerpc/powerpc64le/Makefile
24051 (CFLAGS-tst-strtod-nan-locale.c): New variable.
24052 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
24053
24054 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
24055 Carlos O'Donell <carlos@redhat.com>
24056
24057 [BZ #22180]
24058 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
24059 * stdlib/test-dlclose-exit-race.c: New file.
24060 * stdlib/test-dlclose-exit-race-helper.c: New file.
24061 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
24062
24063 2017-09-21 Joseph Myers <joseph@codesourcery.com>
24064
24065 * crypt/Banner: Remove file.
24066 * nptl/Banner: Likewise.
24067 * resolv/Banner: Likewise.
24068 * soft-fp/Banner: Likewise.
24069 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
24070 ($(objpfx)version.d): Remove dependency on banner.h.
24071 ($(objpfx)version.os): Likewise.
24072 * nptl/version.c (banner): Do not include banner.h.
24073 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
24074 Jelinek and BIND code.
24075
24076 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
24077 Carlos O'Donell <carlos@redhat.com>
24078
24079 * support/xdlfcn.h: New file.
24080 * support/xdlfcn.c: New file.
24081 * support/Makefile (libsupport-routines): Add xdlfcn.
24082 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
24083
24084 2017-09-20 Joseph Myers <joseph@codesourcery.com>
24085
24086 [BZ #20142]
24087 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24088 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
24089 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
24090 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
24091 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
24092 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
24093 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
24094 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
24095
24096 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
24097 Ricky Zhou <rickyz@google.com>
24098 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
24099
24100 [BZ #14333]
24101 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
24102 Remove atomics.
24103 (__new_exitfn): Fail registration when we finished at_exit processing.
24104 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
24105 * stdlib/on_exit.c (__on_exit): Likewise.
24106 * stdlib/exit.c (__exit_funcs_done): New variable.
24107 (__run_exit_handlers): Use __exit_funcs_lock.
24108 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
24109 declarations.
24110 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
24111 (test-cxa_atexit-race, test-on_exit-race): New tests.
24112 * stdlib/test-atexit-race-common.c: New file.
24113 * stdlib/test-atexit-race.c: New file.
24114 * stdlib/test-at_quick_exit-race.c: New file.
24115 * stdlib/test-cxa_atexit-race.c: New file.
24116 * stdlib/test-on_exit-race.c: New file.
24117
24118 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
24119
24120 * benchtests/Makefile: Add exp2f and log2f benchmarks.
24121 * benchtests/exp2f-inputs: Copy of expf-inputs.
24122 * benchtests/log2f-inputs: Copy of logf-inputs.
24123
24124 2017-09-19 Joseph Myers <joseph@codesourcery.com>
24125
24126 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
24127 Explicitly take address of first element of array arguments in
24128 call to INLINE_SYSCALL.
24129
24130 2017-09-19 Andreas Schwab <schwab@suse.de>
24131
24132 [BZ #22134]
24133 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
24134 execveat first.
24135 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
24136 unimplemented.
24137 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
24138 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
24139 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
24140 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
24141 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
24142 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
24143 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
24144 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
24145 * posix/Makefile (tests): Add tst-fexecve.
24146 * posix/tst-fexecve.c: New file.
24147
24148 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
24149
24150 * benchtests/Makefile: Add logf benchmark.
24151 * benchtests/logf-inputs: Add reduced trace from wrf_r.
24152
24153 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
24154
24155 * benchtests/Makefile: Add expf benchmark.
24156 * benchtests/expf-inputs: Add reduced trace from wrf_r.
24157
24158 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
24159
24160 * csu/Makefile: Add -funwind-tables to libc-start.c.
24161 * debug/Makefile: Add -funwind-tables to backtrace.c.
24162 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
24163 * sysdeps/arm/Makefile: Likewise.
24164 * sysdeps/i386/Makefile: Likewise.
24165 * sysdeps/m68k/Makefile: Likewise.
24166 * sysdeps/mips/Makefile: Likewise.
24167 * sysdeps/nios2/Makefile: Likewise.
24168 * sysdeps/sh/Makefile: Likewise.
24169 * sysdeps/sparc/Makefile: Likewise.
24170
24171 2017-09-19 Joseph Myers <joseph@codesourcery.com>
24172
24173 * benchtests/Makefile (bench-math): Add trunc and truncf.
24174 (CFLAGS-bench-trunc.c): New variable.
24175 (CFLAGS-bench-truncf.c): Likewise.
24176 * benchtests/trunc-inputs: New file.
24177 * benchtests/truncf-inputs: Likewise.
24178
24179 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24180
24181 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
24182
24183 2017-09-18 Joseph Myers <joseph@codesourcery.com>
24184
24185 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
24186 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
24187 redefine.
24188 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24189 (exp10l): Define as weak alias.
24190 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
24191 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
24192 and redefine.
24193 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
24194 (remainderl): Define as weak alias.
24195
24196 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
24197 (fmal): Define using libm_alias_ldouble.
24198 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
24199 (acoshl): Define using libm_alias_ldouble.
24200 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
24201 (acosl): Define using libm_alias_ldouble.
24202 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
24203 (asinl): Define using libm_alias_ldouble.
24204 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
24205 (atan2l): Define using libm_alias_ldouble.
24206 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
24207 (atanhl): Define using libm_alias_ldouble.
24208 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
24209 (coshl): Define using libm_alias_ldouble.
24210 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
24211 (exp10l): Define using libm_alias_ldouble.
24212 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
24213 (exp2l): Define using libm_alias_ldouble.
24214 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
24215 (expl): Define using libm_alias_ldouble.
24216 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
24217 (fmodl): Define using libm_alias_ldouble.
24218 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
24219 (hypotl): Define using libm_alias_ldouble.
24220 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
24221 (j0l): Define using libm_alias_ldouble.
24222 (y0l): Likewise.
24223 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
24224 (j1l): Define using libm_alias_ldouble.
24225 (y1l): Likewise.
24226 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
24227 (jnl): Define using libm_alias_ldouble.
24228 (ynl): Likewise.
24229 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
24230 (log10l): Define using libm_alias_ldouble.
24231 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
24232 (log2l): Define using libm_alias_ldouble.
24233 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
24234 (logl): Define using libm_alias_ldouble.
24235 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
24236 (powl): Define using libm_alias_ldouble.
24237 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
24238 (remainderl): Define using libm_alias_ldouble.
24239 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
24240 (sinhl): Define using libm_alias_ldouble.
24241 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
24242 (sqrtl): Define using libm_alias_ldouble.
24243 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
24244 (tgammal): Define using libm_alias_ldouble.
24245 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
24246 (exp10l): Do not use long_double_symbol here.
24247 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24248 [LIBM_SVID_COMPAT] (remainderl): Likewise.
24249 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
24250 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
24251 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
24252 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
24253 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
24254 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
24255 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
24256 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
24257 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
24258 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
24259 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
24260 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
24261 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
24262 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
24263 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
24264 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
24265 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
24266 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
24267 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
24268 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
24269
24270 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
24271
24272 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
24273 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
24274
24275 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
24276
24277 * io/read.c (read): Add libc_hidden_weak.
24278 * sysdeps/mach/hurd/read.c (read): Likewise.
24279 * io/write.c (write): Likewise.
24280 * sysdeps/mach/hurd/write.c (write): Likewise.
24281 * io/pread64.c (__pread64): Likewise.
24282 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
24283 * posix/pread64.c (__pread64): Add libc_hidden_def.
24284
24285 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24286
24287 * benchtests/scripts/compare_strings.py: New option -g.
24288 (draw_graph): Print a message that a graph is being generated.
24289 (process_results): Generate graph only if -g is passed.
24290 (main): Process option -g.
24291
24292 * benchtests/scripts/compare_strings.py (process_results):
24293 Better spacing for output.
24294
24295 * benchtests/scripts/compare_strings.py: Use argparse.
24296 * benchtests/README: Document existence of compare_strings.py.
24297
24298 2017-09-15 Joseph Myers <joseph@codesourcery.com>
24299
24300 * math/s_fma.c: Include <libm-alias-double.h>.
24301 (fma): Define using libm_alias_double.
24302 * math/s_nextafter.c: Include <libm-alias-double.h>.
24303 (nextafter): Define using libm_alias_double.
24304 * math/w_acos_compat.c: Include <libm-alias-double.h>.
24305 (acos): Define using libm_alias_double.
24306 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
24307 (aocsh): Define using libm_alias_double.
24308 * math/w_asin_compat.c: Include <libm-alias-double.h>.
24309 (asin): Define using libm_alias_double.
24310 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
24311 (atan2): Define using libm_alias_double.
24312 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
24313 (atanh): Define using libm_alias_double.
24314 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
24315 (cosh): Define using libm_alias_double.
24316 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
24317 (exp10): Define using libm_alias_double.
24318 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
24319 (exp2): Define using libm_alias_double.
24320 * math/w_exp_compat.c: Include <libm-alias-double.h>.
24321 (exp): Define using libm_alias_double.
24322 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
24323 (fmod): Define using libm_alias_double.
24324 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
24325 (hypot): Define using libm_alias_double.
24326 * math/w_j0_compat.c: Include <libm-alias-double.h>.
24327 (j0): Define using libm_alias_double.
24328 (y0): Likewise.
24329 * math/w_j1_compat.c: Include <libm-alias-double.h>.
24330 (j1): Define using libm_alias_double.
24331 (y1): Likewise.
24332 * math/w_jn_compat.c: Include <libm-alias-double.h>.
24333 (jn): Define using libm_alias_double.
24334 (yn): Likewise.
24335 * math/w_log10_compat.c: Include <libm-alias-double.h>.
24336 (log10): Define using libm_alias_double.
24337 * math/w_log2_compat.c: Include <libm-alias-double.h>.
24338 (log2): Define using libm_alias_double.
24339 * math/w_log_compat.c: Include <libm-alias-double.h>.
24340 (log): Define using libm_alias_double.
24341 * math/w_pow_compat.c: Include <libm-alias-double.h>.
24342 (pow): Define using libm_alias_double.
24343 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
24344 (remainder): Define using libm_alias_double.
24345 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
24346 (sinh): Define using libm_alias_double.
24347 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
24348 (sqrt): Define using libm_alias_double.
24349 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
24350 (tgamma): Define using libm_alias_double.
24351 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
24352 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
24353 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
24354 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
24355 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
24356 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
24357 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
24358 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
24359 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
24360 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
24361 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
24362 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
24363 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
24364 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
24365 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
24366 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
24367 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
24368 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
24369 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
24370 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
24371 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
24372 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
24373 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
24374 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
24375 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
24376
24377 * math/e_acoshl.c: Remove.
24378 * math/e_acosl.c: Likewise.
24379 * math/e_asinl.c: Likewise.
24380 * math/e_atan2l.c: Likewise.
24381 * math/e_atanhl.c: Likewise.
24382 * math/e_coshl.c: Likewise.
24383 * math/e_expl.c: Likewise.
24384 * math/e_fmodl.c: Likewise.
24385 * math/e_gammal_r.c: Likewise.
24386 * math/e_hypotl.c: Likewise.
24387 * math/e_j0l.c: Likewise.
24388 * math/e_j1l.c: Likewise.
24389 * math/e_jnl.c: Likewise.
24390 * math/e_lgammal_r.c: Likewise.
24391 * math/e_log10l.c: Likewise.
24392 * math/e_log2l.c: Likewise.
24393 * math/e_logl.c: Likewise.
24394 * math/e_powl.c: Likewise.
24395 * math/e_rem_pio2l.c: Likewise.
24396 * math/e_sinhl.c: Likewise.
24397 * math/e_sqrtf128.c: Likewise.
24398 * math/e_sqrtl.c: Likewise.
24399 * math/k_cosl.c: Likewise.
24400 * math/k_sinl.c: Likewise.
24401 * math/k_tanl.c: Likewise.
24402 * math/s_asinhl.c: Likewise.
24403 * math/s_atanl.c: Likewise.
24404 * math/s_cbrtl.c: Likewise.
24405 * math/s_erfl.c: Likewise.
24406 * math/s_expm1l.c: Likewise.
24407 * math/s_log1pl.c: Likewise.
24408 * math/s_tanhl.c: Likewise.
24409
24410 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24411
24412 [BZ #21745]
24413 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
24414 [$(subdir) = math] (sysdep_calls): New variable. Has the
24415 previous contents of sysdep_routines, but re-sorted..
24416 [$(subdir) = math] (sysdep_routines): Re-use the contents from
24417 sysdep_calls.
24418 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
24419 defined in sysdep_calls and replace by the respective m_* names.
24420 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
24421 (compat_symbol): Undefine to avoid duplicated compat symbols in
24422 libc.
24423
24424 2017-09-15 Joseph Myers <joseph@codesourcery.com>
24425
24426 * math/s_fmaf.c: Include <libm-alias-float.h>.
24427 (fmaf): Define using libm_alias_float.
24428 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
24429 (acosf): Define using libm_alias_float.
24430 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
24431 (acoshf): Define using libm_alias_float.
24432 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
24433 (asinf): Define using libm_alias_float.
24434 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
24435 (atan2f): Define using libm_alias_float.
24436 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
24437 (atanhf): Define using libm_alias_float.
24438 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
24439 (coshf): Define using libm_alias_float.
24440 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
24441 (exp10f): Define using libm_alias_float.
24442 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
24443 (fmodf): Define using libm_alias_float.
24444 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
24445 (hypotf): Define using libm_alias_float.
24446 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
24447 (j0f): Define using libm_alias_float.
24448 (y0f): Likewise.
24449 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
24450 (j1f): Define using libm_alias_float.
24451 (y1f): Likewise.
24452 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
24453 (jnf): Define using libm_alias_float.
24454 (ynf): Likewise.
24455 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
24456 (log10f): Define using libm_alias_float.
24457 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
24458 (log2f): Define using libm_alias_float.
24459 * math/w_logf_compat.c: Include <libm-alias-float.h>.
24460 (logf): Define using libm_alias_float.
24461 * math/w_powf_compat.c: Include <libm-alias-float.h>.
24462 (powf): Define using libm_alias_float.
24463 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
24464 (remainderf): Define using libm_alias_float.
24465 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
24466 (sinhf): Define using libm_alias_float.
24467 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
24468 (sqrtf): Define using libm_alias_float.
24469 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
24470 (tgammaf): Define using libm_alias_float.
24471
24472 2017-09-14 Joseph Myers <joseph@codesourcery.com>
24473
24474 * include/math.h (roundeven): Change hidden_proto call to
24475 __roundeven.
24476 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
24477 alias.
24478 [NO_LONG_DOUBLE] (__j0l): New strong alias.
24479 (y0): Rename to __y0 and define as weak alias.
24480 [NO_LONG_DOUBLE] (__y0l): New strong alias.
24481 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
24482 alias.
24483 (y0f): Rename to __y0f and define as weak alias.
24484 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
24485 alias.
24486 [NO_LONG_DOUBLE] (__j1l): New strong alias.
24487 (y1): Rename to __y1 and define as weak alias.
24488 [NO_LONG_DOUBLE] (__y1l): New strong alias.
24489 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
24490 alias.
24491 (y1f): Rename to __y1f and define as weak alias.
24492 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
24493 alias.
24494 [NO_LONG_DOUBLE] (__jnl): New strong alias.
24495 (yn): Rename to __yn and define as weak alias.
24496 [NO_LONG_DOUBLE] (__ynl): New strong alias.
24497 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
24498 alias.
24499 (ynf): Rename to __ynf and define as weak alias.
24500 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
24501 (fromfp): Define as weak alias.
24502 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
24503 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
24504 (fromfpx): Define as weak alias.
24505 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
24506 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
24507 __getpayload and define as weak alias.
24508 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
24509 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
24510 __roundeven and define as weak alias.
24511 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
24512 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
24513 __setpayload.
24514 (setpayload): Define as weak alias.
24515 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
24516 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
24517 __setpayloadsig.
24518 (setpayloadsig): Define as weak alias.
24519 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
24520 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
24521 __totalorder and define as weak alias.
24522 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
24523 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
24524 to __totalordermag and define as weak alias.
24525 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
24526 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
24527 (ufromfp): Define as weak alias.
24528 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
24529 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
24530 __ufromfpx.
24531 (ufromfpx): Define as weak alias.
24532 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
24533 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
24534 Rename to __getpayload and define as weak alias.
24535 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
24536 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
24537 Rename to __roundeven and define as weak alias.
24538 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
24539 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
24540 Rename to __totalorder and define as weak alias.
24541 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
24542 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
24543 (totalordermag): Rename to __totalordermag and define as weak
24544 alias.
24545 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
24546 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
24547 macro.
24548 (__roundevenl): Likewise.
24549 (__totalorderl): Likewise.
24550 (__totalordermagl): Likewise
24551 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
24552 __fromfpf128.
24553 (fromfpf128): Define as weak alias.
24554 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
24555 __fromfpxf128.
24556 (fromfpxf128): Define as weak alias.
24557 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
24558 __setpayloadf128.
24559 (setpayloadf128): Define as weak alias.
24560 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
24561 __setpayloadsigf128.
24562 (setpayloadsigf128): Define as weak alias.
24563 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
24564 __ufromfpf128.
24565 (ufromfpf128): Define as weak alias.
24566 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
24567 __ufromfpxf128.
24568 (ufromfpxf128): Define as weak alias.
24569 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
24570 (fromfpf): Define as weak alias.
24571 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
24572 __fromfpxf.
24573 (fromfpxf): Define as weak alias.
24574 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
24575 __getpayloadf and define as weak alias.
24576 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
24577 __roundevenf and define as weak alias.
24578 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
24579 __setpayloadf.
24580 (setpayloadf): Define as weak alias.
24581 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
24582 __setpayloadsigf.
24583 (setpayloadsigf): Define as weak alias.
24584 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
24585 __totalorderf and define as weak alias.
24586 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
24587 Rename to __totalordermagf and define as weak alias.
24588 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
24589 __ufromfpf.
24590 (ufromfpf): Define as weak alias.
24591 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
24592 __ufromfpxf.
24593 (ufromfpxf): Define as weak alias.
24594 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
24595 __fromfpl.
24596 (fromfpl): Define as weak alias.
24597 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
24598 __fromfpxl.
24599 (fromfpxl): Define as weak alias.
24600 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
24601 to __getpayloadl and define as weak alias.
24602 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
24603 __roundevenl and define as weak alias.
24604 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
24605 __setpayloadl.
24606 (setpayloadl): Define as weak alias.
24607 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
24608 __setpayloadsigl.
24609 (setpayloadsigl): Define as weak alias.
24610 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
24611 to __totalorderl and define as weak alias.
24612 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
24613 Rename to __totalordermagl and define as weak alias.
24614 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
24615 __ufromfpl.
24616 (ufromfpl): Define as weak alias.
24617 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
24618 __ufromfpxl.
24619 (ufromfpxl): Define as weak alias.
24620 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
24621 __fromfpl.
24622 (fromfpl): Define as weak alias.
24623 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
24624 __fromfpxl.
24625 (fromfpxl): Define as weak alias.
24626 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
24627 Rename to __getpayloadl and define as weak alias.
24628 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
24629 to __roundevenl and define as weak alias. Call __roundeven
24630 instead of roundeven.
24631 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
24632 __setpayloadl.
24633 (setpayloadl): Define as weak alias.
24634 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
24635 __setpayloadsigl.
24636 (setpayloadsigl): Define as weak alias.
24637 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
24638 Rename to __totalorderl and define as weak alias.
24639 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
24640 Rename to __totalordermagl and define as weak alias.
24641 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
24642 __ufromfpl.
24643 (ufromfpl): Define as weak alias.
24644 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
24645 __ufromfpxl.
24646 (ufromfpxl): Define as weak alias.
24647 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
24648 __fromfpl.
24649 (fromfpl): Define as weak alias.
24650 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
24651 __fromfpxl.
24652 (fromfpxl): Define as weak alias.
24653 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
24654 __getpayloadl and define as weak alias.
24655 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
24656 __roundevenl and define as weak alias.
24657 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
24658 __setpayloadl.
24659 (setpayloadl): Define as weak alias.
24660 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
24661 __setpayloadsigl.
24662 (setpayloadsigl): Define as weak alias.
24663 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
24664 __totalorderl and define as weak alias.
24665 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
24666 Rename to __totalordermagl and define as weak alias.
24667 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
24668 __ufromfpl.
24669 (ufromfpl): Define as weak alias.
24670 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
24671 __ufromfpxl.
24672 (ufromfpxl): Define as weak alias.
24673
24674 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24675
24676 * benchtests/bench-string.h (realloc_bufs): New function.
24677 (test_init): Call it.
24678 * benchtests/bench-memset-large.c (do_test): Likewise.
24679 * benchtests/bench-memset.c (do_test): Likewise.
24680
24681 * benchtests/bench-memset-large.c: Print output in JSON
24682 format.
24683 * benchtests/bench-memset.c: Likewise.
24684
24685 2017-09-14 Mike FABIAN <mfabian@redhat.com>
24686
24687 [BZ #21084]
24688 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
24689 * iconvdata/Makefile: Add IBM858.
24690 * iconvdata/gconv-modules: Likewise.
24691 * iconvdata/tst-tables.sh: Likewise.
24692 * iconvdata/ibm858.c: New file.
24693 * localedata/charmaps/IBM858: Likewise.
24694
24695 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
24696
24697 [BZ #22023]
24698 * locales/niu_NZ (LC_TIME): copy "niu_NU".
24699 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
24700
24701 2017-09-14 Mike FABIAN <mfabian@redhat.com>
24702
24703 [BZ #22112]
24704 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
24705 and add tel_int_fmt.
24706
24707 2017-09-14 Joseph Myers <joseph@codesourcery.com>
24708
24709 * sysdeps/generic/libm-alias-float128.h: New file.
24710 * sysdeps/generic/math-type-macros-float128.h: Include
24711 <libm-alias-float128.h>.
24712 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
24713
24714 2017-09-13 Joseph Myers <joseph@codesourcery.com>
24715
24716 * sysdeps/generic/libm-alias-ldouble.h: New file.
24717 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
24718 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
24719 * sysdeps/generic/math-type-macros-ldouble.h: Include
24720 <libm-alias-ldouble.h>.
24721 [!declare_mgen_alias] (declare_mgen_alias): Define to use
24722 libm_alias_ldouble.
24723
24724 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
24725
24726 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
24727 * math/w_exp_compat.c: ... here.
24728 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
24729 * math/w_expf_compat.c: ... here.
24730 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
24731 * math/w_expl_compat.c: ... here.
24732 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
24733 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
24734 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
24735 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
24736
24737 2017-09-13 Joseph Myers <joseph@codesourcery.com>
24738
24739 * math/w_scalbln_template.c (strong_alias): Do not undefine and
24740 redefine.
24741 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
24742 macro.
24743 (ldexpl): Only define as compat symbol for libc, not libm.
24744 (scalbnl): Define as compat symbol for libc here.
24745 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
24746 define for [IS_IN (libc)].
24747 (__ldexpl_2): Remove alias.
24748 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
24749 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
24750 name in long_double_symbol call.
24751 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
24752 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24753 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24754 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
24755 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
24756 Remove macro.
24757 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
24758 Define as compat symbol.
24759
24760 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24761
24762 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
24763 * sysdeps/unix/sysv/linux/alpha/Makefile
24764 [$(subdir) = csu] (sysdep_routines): Remove rule.
24765
24766 2017-09-13 Joseph Myers <joseph@codesourcery.com>
24767
24768 * sysdeps/generic/libm-alias-double.h: New file.
24769 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
24770 * sysdeps/generic/math-type-macros-double.h: Include
24771 <libm-alias-double.h>.
24772 [declare_mgen_alias] (declare_mgen_alias): Define to use
24773 libm_alias_double.
24774 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
24775 (M_LIBM_NEED_COMPAT): Remove macro.
24776 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
24777 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
24778 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
24779 code.
24780 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24781 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24782 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24783 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24784 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24785 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24786 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24787 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24788 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24789 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24790 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24791 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24792 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24793 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24794 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24795 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24796 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24797 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24798 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24799 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24800 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24801 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24802 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24803 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24804 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24805 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24806 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24807 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
24808 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
24809 macro.
24810 (declare_mgen_alias): New macro.
24811 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
24812 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
24813 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
24814 (M_LIBM_NEED_COMPAT): Remove macro.
24815 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
24816 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
24817 <first-versions.h>.
24818 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
24819 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
24820
24821 2017-09-12 Joseph Myers <joseph@codesourcery.com>
24822
24823 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
24824 (declare_mgen_alias_2): Remove.
24825 * sysdeps/generic/math-type-macros-double.h
24826 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
24827 Likewise.
24828 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
24829 alias.
24830 (ldexp): Define with declare_mgen_alias.
24831 (scalbn): Likewise.
24832
24833 2017-09-12 Steve Ellcey <sellcey@cavium.com>
24834
24835 * grp/initgroups.c: Include config.h.
24836 (DEFAULT_CONFIG): New macro.
24837 (internal_getgrouplist): Use DEFAULT_CONFIG.
24838 * nscd/initgrcache.c (addinitgroupsX): Likewise.
24839 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
24840 (DEFAULT_DEFCONFIG): New macro.
24841 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
24842 * nss/grp-lookup.c: Include config.h
24843 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
24844 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
24845 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
24846 * manual/nss.texi: Update default values section.
24847
24848 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
24849
24850 [BZ #21967]
24851 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
24852 New.
24853 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
24854 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24855 Handle MathVec_Prefer_No_AVX512.
24856 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
24857 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
24858 is set.
24859
24860 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
24861
24862 * posix/sched_primax.c (__sched_get_priority_max): Add
24863 libc_hidden_def.
24864 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
24865 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
24866 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
24867 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
24868 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
24869 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
24870 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
24871 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
24872 Add aliases.
24873
24874 2017-09-11 Joseph Myers <joseph@codesourcery.com>
24875
24876 * sysdeps/generic/libm-alias-float.h: New file.
24877 * sysdeps/generic/math-type-macros-float.h: Include
24878 <libm-alias-float.h>.
24879 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
24880
24881 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
24882
24883 [BZ #22093]
24884 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
24885 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
24886 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
24887 (HWCAP_IMPORTANT): Likewise.
24888 (HWCAP_X86_64): New enum.
24889 (HWCAP_X86_AVX512_1): Updated.
24890 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
24891 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
24892 (modules-names): Add x86_64/tst-x86_64mod-1.
24893 (LDFLAGS-tst-x86_64mod-1.so): New.
24894 ($(objpfx)tst-x86_64-1): Likewise.
24895 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
24896 (tst-x86_64-1-clean): Likewise.
24897 * sysdeps/x86_64/tst-x86_64-1.c: New file.
24898 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
24899
24900 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
24901
24902 * po/sv.po: Update translations.
24903 * po/fr.po: Likewise.
24904
24905 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
24906
24907 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
24908 seconds.
24909 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
24910 seconds.
24911 * elf/rtld-Rules: Fix $(error) use.
24912
24913 2017-09-09 Mike FABIAN <mfabian@redhat.com>
24914
24915 [BZ #14925]
24916 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
24917 * locale/iso-639.def: Change “Bengali” to “Bangla”.
24918 * localedata/locales/bn_BD: “Bengali” was still used in some
24919 comments. Change it to “Bangla”.
24920
24921 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
24922
24923 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
24924
24925 2017-09-08 Steve Ellcey <sellcey@cavium.com>
24926
24927 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
24928 thunderx2t99p1 to list of cpu names.
24929 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
24930 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
24931
24932 2017-09-08 Steve Ellcey <sellcey@cavium.com>
24933
24934 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
24935 Use strcmp instead of tunable_is_name.
24936
24937 2017-09-08 Joseph Myers <joseph@codesourcery.com>
24938
24939 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
24940 (F_GET_RW_HINT): New macro.
24941 [__USE_GNU] (F_SET_RW_HINT): Likewise.
24942 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
24943 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
24944 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
24945 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
24946 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
24947 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
24948 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
24949 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
24950
24951 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
24952 (F_ADD_SEALS): New macro.
24953 [__USE_GNU] (F_GET_SEALS): Likewise.
24954 [__USE_GNU] (F_SEAL_SEAL): Likewise.
24955 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
24956 [__USE_GNU] (F_SEAL_GROW): Likewise.
24957 [__USE_GNU] (F_SEAL_WRITE): Likewise.
24958
24959 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24960
24961 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
24962 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
24963 * posix/glob_internal.h (__glob_pattern_type):
24964 * posix/glob.c (glob):
24965 * posix/glob_pattern_p.c (__glob_pattern_p):
24966 Use them.
24967
24968 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
24969 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
24970 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
24971 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
24972 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
24973 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
24974 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
24975 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
24976 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
24977 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24978 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
24979 * sysdeps/wordsize-64/glob.c: Likewise.
24980 * sysdeps/wordsize-64/glob64.c: Likewise.
24981 * sysdeps/wordsize-64/globfree.c: Likewise.
24982 * sysdeps/wordsize-64/globfree64.c: Likewise.
24983 * sysdeps/unix/sysv/linux/glob.c: New file.
24984 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
24985 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
24986 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
24987 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
24988 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
24989 adds !GLOB_NO_OLD_VERSION as an extra condition.
24990 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
24991 using relative path instead of absolute one.
24992 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
24993 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
24994 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
24995 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
24996 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
24997 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
24998
24999 [BZ #1062]
25000 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
25001 (glob): Use the same scratch buffer for both getlogin_r and
25002 getpwnam_r. Don’t require preallocation of the login name. This
25003 simplifies storage allocation, and corrects the handling of
25004 long login names.
25005
25006 [BZ #1062]
25007 * posix/glob.c (glob): Port recent patches to platforms
25008 lacking getpwnam_r.
25009 (glob): Fix longstanding misuse of errno after getpwnam_r, which
25010 returns an error number rather than setting errno.
25011
25012 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
25013 instead of GCC extension.
25014 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
25015 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
25016 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
25017
25018 [BZ #866]
25019 [BZ #1062]
25020 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
25021 * posix/bug-glob1.c: Remove file.
25022 * posix/tst-glob_symlinks.c: New file.
25023 * posix/glob.c (__lstat64): New macro.
25024 (is_dir): New function.
25025 (glob, glob_in_dir): Match symlinks even if they are dangling.
25026 (link_stat, link_exists_p): Remove. All uses removed.
25027
25028 [BZ #1062]
25029 [BZ #19971]
25030 * posix/glob.c (struct readdir_result): Remove skip_entry member.
25031 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
25032 All uses removed.
25033
25034 [BZ #1062]
25035 CVE-2017-15671
25036 * posix/Makefile (routines): Add globfree, globfree64, and
25037 glob_pattern_p.
25038 * posix/flexmember.h: New file.
25039 * posix/glob_internal.h: Likewise.
25040 * posix/glob_pattern_p.c: Likewise.
25041 * posix/globfree.c: Likewise.
25042 * posix/globfree64.c: Likewise.
25043 * sysdeps/gnu/globfree64.c: Likewise.
25044 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
25045 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
25046 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
25047 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
25048 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
25049 * sysdeps/wordsize-64/globfree.c: Likewise.
25050 * sysdeps/wordsize-64/globfree64.c: Likewise.
25051 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
25052 [NDEBUG): Remove comments.
25053 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
25054 (dirent_type): New type. Use uint_fast8_t not
25055 uint8_t, as C99 does not require uint8_t.
25056 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
25057 (struct readdir_result): Use dirent_type. Do not define skip_entry
25058 unless it is needed; this saves a byte on platforms lacking d_ino.
25059 (readdir_result_type, readdir_result_skip_entry):
25060 New functions, replacing ...
25061 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
25062 these functions, which were removed. This makes the callers
25063 easier to read. All callers changed.
25064 (D_INO_TO_RESULT): Now empty if there is no d_ino.
25065 (size_add_wrapv, glob_use_alloca): New static functions.
25066 (glob, glob_in_dir): Check for size_t overflow in several places,
25067 and fix some size_t checks that were not quite right.
25068 Remove old code using SHELL since Bash no longer
25069 uses this.
25070 (glob, prefix_array): Separate MS code better.
25071 (glob_in_dir): Remove old Amiga and VMS code.
25072 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
25073 separate files.
25074 (glob_in_dir): Do not rely on undefined behavior in accessing
25075 struct members beyond their bounds. Use a flexible array member
25076 instead
25077 (link_stat): Rename from link_exists2_p and return -1/0 instead of
25078 0/1. Caller changed.
25079 (glob): Fix memory leaks.
25080 * posix/glob64 (globfree64): Move to separate file.
25081 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
25082 (globfree64): Remove hidden alias.
25083 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
25084 oldglob.
25085 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
25086 separate file.
25087 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
25088 define.
25089 Move compat code to separate file.
25090 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
25091 separate file.
25092
25093 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
25094
25095 * resolv/tst-resolv-qtypes.c (domain): Changed to
25096 "const char domain[] =".
25097
25098 2017-09-07 Joseph Myers <joseph@codesourcery.com>
25099
25100 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
25101 version to 3.1.6.
25102
25103 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
25104 (TCP_MD5SIG_EXT): Likewise.
25105 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
25106 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
25107 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
25108
25109 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
25110
25111 2017-09-07 Mike FABIAN <mfabian@redhat.com>
25112
25113 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
25114
25115 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
25116
25117 [BZ #22100]
25118 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
25119
25120 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
25121
25122 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
25123 before assuming that the file is empty. Avoid testing buffer content
25124 when nread == 0.
25125
25126 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25127
25128 [BZ #18858]
25129 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
25130 Remove define.
25131 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
25132 Likewise.
25133 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
25134 Likewise.
25135 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
25136 Likewise.
25137 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
25138 Likewise.
25139 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
25140 Likewise.
25141 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
25142 Likewise.
25143
25144 2017-09-06 Florian Weimer <fweimer@redhat.com>
25145
25146 * malloc/dynarray_emplace_enlarge.c
25147 (__libc_dynarray_emplace_enlarge): Add missing else.
25148
25149 2017-09-06 Florian Weimer <fweimer@redhat.com>
25150
25151 [BZ #22096]
25152 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
25153 case of failure to obtain the global conf object.
25154
25155 2017-09-06 Florian Weimer <fweimer@redhat.com>
25156
25157 [BZ #22095]
25158 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
25159 dynarray allocation failure.
25160
25161 2017-09-06 Florian Weimer <fweimer@redhat.com>
25162
25163 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
25164 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
25165 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
25166 New functions.
25167 (response): Call them. Add 'p', '6' flag processing.
25168 (test_reverse): New function.
25169 (test_get2_any): Call it.
25170 (test_no_inet6): Add 'p' test.
25171 (test_inet6): Likewise.
25172
25173 2017-09-06 Florian Weimer <fweimer@redhat.com>
25174
25175 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
25176 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
25177 the QNAME.
25178 (test_gai): Adjust query names. Add additional tests.
25179 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
25180 test_get2. Adjust query names. Add additional tests.
25181 (test_no_inet6): New function, extracted from threadfunc.
25182 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
25183 Add additional tests.
25184
25185 2017-09-06 Mike FABIAN <mfabian@redhat.com>
25186
25187 [BZ #22070]
25188 * localedata/unicode-gen/utf8_gen.py: Set the width for
25189 characters with Prepended_Concatenation_Mark property to 1
25190 * localedata/charmaps/UTF-8: Updated using the improved script.
25191
25192 2017-09-06 Mike FABIAN <mfabian@redhat.com>
25193
25194 [BZ #21750]
25195 * localedata/unicode-gen/utf8_gen.py: Improve the script to
25196 use the range notation for all ranges of neighbouring characters
25197 with the same width.
25198
25199 2017-09-05 Joseph Myers <joseph@codesourcery.com>
25200
25201 * sysdeps/generic/math-type-macros-double.h: Include
25202 <math-svid-compat.h>.
25203 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
25204 * sysdeps/generic/math-type-macros-float.h: Include
25205 <math-svid-compat.h>.
25206 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
25207 * sysdeps/generic/math-type-macros-ldouble.h: Include
25208 <math-svid-compat.h>.
25209 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
25210 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
25211 condition.
25212 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
25213 * math/w_acosf_compat.c: Likewise.
25214 * math/w_acosh_compat.c: Likewise.
25215 * math/w_acoshf_compat.c: Likewise.
25216 * math/w_acoshl_compat.c: Likewise.
25217 * math/w_acosl_compat.c: Likewise.
25218 * math/w_asin_compat.c: Likewise.
25219 * math/w_asinf_compat.c: Likewise.
25220 * math/w_asinl_compat.c: Likewise.
25221 * math/w_atan2_compat.c: Likewise.
25222 * math/w_atan2f_compat.c: Likewise.
25223 * math/w_atan2l_compat.c: Likewise.
25224 * math/w_atanh_compat.c: Likewise.
25225 * math/w_atanhf_compat.c: Likewise.
25226 * math/w_atanhl_compat.c: Likewise.
25227 * math/w_cosh_compat.c: Likewise.
25228 * math/w_coshf_compat.c: Likewise.
25229 * math/w_coshl_compat.c: Likewise.
25230 * math/w_exp10_compat.c: Likewise.
25231 * math/w_exp10f_compat.c: Likewise.
25232 * math/w_exp10l_compat.c: Likewise.
25233 * math/w_exp2_compat.c: Likewise.
25234 * math/w_exp2f_compat.c: Likewise.
25235 * math/w_exp2l_compat.c: Likewise.
25236 * math/w_fmod_compat.c: Likewise.
25237 * math/w_fmodf_compat.c: Likewise.
25238 * math/w_fmodl_compat.c: Likewise.
25239 * math/w_hypot_compat.c: Likewise.
25240 * math/w_hypotf_compat.c: Likewise.
25241 * math/w_hypotl_compat.c: Likewise.
25242 * math/w_j0_compat.c: Likewise.
25243 * math/w_j0f_compat.c: Likewise.
25244 * math/w_j0l_compat.c: Likewise.
25245 * math/w_j1_compat.c: Likewise.
25246 * math/w_j1f_compat.c: Likewise.
25247 * math/w_j1l_compat.c: Likewise.
25248 * math/w_jn_compat.c: Likewise.
25249 * math/w_jnf_compat.c: Likewise.
25250 * math/w_jnl_compat.c: Likewise.
25251 * math/w_lgamma_r_compat.c: Likewise.
25252 * math/w_lgammaf_r_compat.c: Likewise.
25253 * math/w_lgammal_r_compat.c: Likewise.
25254 * math/w_log10_compat.c: Likewise.
25255 * math/w_log10f_compat.c: Likewise.
25256 * math/w_log10l_compat.c: Likewise.
25257 * math/w_log2_compat.c: Likewise.
25258 * math/w_log2f_compat.c: Likewise.
25259 * math/w_log2l_compat.c: Likewise.
25260 * math/w_log_compat.c: Likewise.
25261 * math/w_logf_compat.c: Likewise.
25262 * math/w_logl_compat.c: Likewise.
25263 * math/w_pow_compat.c: Likewise.
25264 * math/w_powf_compat.c: Likewise.
25265 * math/w_powl_compat.c: Likewise.
25266 * math/w_remainder_compat.c: Likewise.
25267 * math/w_remainderf_compat.c: Likewise.
25268 * math/w_remainderl_compat.c: Likewise.
25269 * math/w_sinh_compat.c: Likewise.
25270 * math/w_sinhf_compat.c: Likewise.
25271 * math/w_sinhl_compat.c: Likewise.
25272 * math/w_sqrt_compat.c: Likewise.
25273 * math/w_sqrtf_compat.c: Likewise.
25274 * math/w_sqrtl_compat.c: Likewise.
25275 * math/w_tgamma_compat.c: Likewise.
25276 * math/w_tgammaf_compat.c: Likewise.
25277 * math/w_tgammal_compat.c: Likewise.
25278 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
25279 [LIBM_SVID_COMPAT].
25280 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
25281 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
25282 [LIBM_SVID_COMPAT].
25283 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
25284 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
25285 [LIBM_SVID_COMPAT].
25286 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
25287 * sysdeps/i386/fpu/w_sqrt.c: New file.
25288 * sysdeps/ia64/fpu/w_acos.c: Likewise.
25289 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
25290 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
25291 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
25292 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
25293 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
25294 * sysdeps/ia64/fpu/w_asin.c: Likewise.
25295 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
25296 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
25297 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
25298 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
25299 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
25300 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
25301 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
25302 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
25303 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
25304 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
25305 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
25306 * sysdeps/ia64/fpu/w_exp.c: Likewise.
25307 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
25308 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
25309 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
25310 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
25311 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
25312 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
25313 * sysdeps/ia64/fpu/w_expf.c: Likewise.
25314 * sysdeps/ia64/fpu/w_expl.c: Likewise.
25315 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
25316 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
25317 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
25318 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
25319 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
25320 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
25321 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
25322 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
25323 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
25324 * sysdeps/ia64/fpu/w_log.c: Likewise.
25325 * sysdeps/ia64/fpu/w_log10.c: Likewise.
25326 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
25327 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
25328 * sysdeps/ia64/fpu/w_log2.c: Likewise.
25329 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
25330 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
25331 * sysdeps/ia64/fpu/w_logf.c: Likewise.
25332 * sysdeps/ia64/fpu/w_logl.c: Likewise.
25333 * sysdeps/ia64/fpu/w_pow.c: Likewise.
25334 * sysdeps/ia64/fpu/w_powf.c: Likewise.
25335 * sysdeps/ia64/fpu/w_powl.c: Likewise.
25336 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
25337 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
25338 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
25339 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
25340 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
25341 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
25342 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
25343 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
25344 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
25345 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
25346 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
25347 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
25348 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
25349 [LIBM_SVID_COMPAT].
25350 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
25351 * sysdeps/ieee754/k_standard.c: Likewise.
25352 * sysdeps/ieee754/k_standardf.c: Likewise.
25353 * sysdeps/ieee754/k_standardl.c: Likewise.
25354 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
25355 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
25356 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
25357 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
25358 long_double_symbol call on [LIBM_SVID_COMPAT].
25359 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
25360 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
25361 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
25362 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
25363 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
25364 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
25365 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
25366 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
25367 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
25368 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
25369 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
25370 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25371 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
25372 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
25373 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
25374 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
25375 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
25376 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
25377 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
25378 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
25379 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
25380 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
25381
25382 2017-09-05 Steve Ellcey <sellcey@cavium.com>
25383
25384 * include/shlib-compat.h (TEST_COMPAT): New Macro.
25385 * malloc/tst-mallocstate.c: Convert from test-skeleton
25386 to test-driver. Ifdef code using TEST_COMPAT macro.
25387 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
25388 * math/test-matherr.c: Likewise.
25389
25390 2017-09-05 Joseph Myers <joseph@codesourcery.com>
25391
25392 [BZ #22086]
25393 * debug/pcprofiledump.c (main): Use byte-swapped mask when
25394 comparing word with byte-swapped constant.
25395
25396 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
25397
25398 [BZ #20498]
25399 * locale/iso-639.def: add Miskito.
25400 * localedata/SUPPORTED: Add miq_NI/UTF-8.
25401 * localedata/locales/miq_NI: New file.
25402
25403 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
25404
25405 [BZ #18822]
25406 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
25407 (__mkdir): Likewise.
25408 * io/chmod.c (__chmod): Add libc_hidden_def.
25409 * io/mkdir.c (__mkdir): Likewise.
25410 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
25411 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
25412 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
25413 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
25414
25415 2017-09-04 Joseph Myers <joseph@codesourcery.com>
25416
25417 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
25418 version to 4.13.
25419
25420 [BZ #22082]
25421 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
25422 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
25423
25424 2017-09-04 Florian Weimer <fweimer@redhat.com>
25425
25426 * math/math.h: Issue warning if log is defined.
25427
25428 2017-09-04 Joseph Myers <joseph@codesourcery.com>
25429
25430 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25431 kernel version to 4.13.
25432
25433 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25434
25435 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
25436 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
25437 parameter.
25438 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
25439 just <bits/types.h>.
25440 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
25441 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
25442 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
25443 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
25444 * misc/preadv2.c: Include <errno.h>.
25445 * misc/preadv64v2.c: Include <errno.h>.
25446 * misc/pwritev2.c: Include <errno.h>.
25447 * misc/pwritev64v2.c: Include <errno.h>.
25448 * sysdeps/posix/preadv2.c: Include <errno.h>.
25449 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
25450 Fix <unistd.h> inclusion.
25451 * sysdeps/posix/pwritev2.c: Include <errno.h>.
25452 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
25453 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
25454 __strtoul_internal): New functions.
25455 * sysdeps/posix/pause.c: Include <sigsetops.h>.
25456 * sysdeps/posix/system.c: Include <sigsetops.h>.
25457 * sysdeps/mach/hurd/i386/Makefile
25458 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
25459 [$(subdir) = csu] (sysdep-only-routines): Likewise.
25460 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
25461 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
25462 __feraiseexcept_renamed to feraiseexcept instead of
25463 __GI_feraiseexcept.
25464 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
25465 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
25466 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
25467 RWF_NOWAIT): Define to 0 if undefined already.
25468 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
25469 boils down to 0.
25470 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
25471 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
25472
25473 2017-09-01 Joseph Myers <joseph@codesourcery.com>
25474
25475 * manual/math.texi (pow10): Do not document.
25476 (pow10f): Likewise.
25477 (pow10l): Likewise.
25478 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
25479 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
25480 * math/libm-test-exp10.inc (pow10_test): Remove.
25481 (do_test): Do not call pow10.
25482 * math/w_exp10_compat.c (pow10): Make into compat symbol.
25483 [NO_LONG_DOUBLE] (pow10l): Likewise.
25484 * math/w_exp10f_compat.c (pow10f): Likewise.
25485 * math/w_exp10l_compat.c (pow10l): Likewise.
25486 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
25487 (pow10): Make into compat symbol.
25488 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
25489 (pow10f): Make into compat symbol.
25490 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
25491 (pow10l): Make into compat symbol.
25492 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
25493 pow10.
25494 (CFLAGS-nldbl-pow10.c): Remove variable..
25495 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
25496 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
25497 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
25498 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
25499 Undefine and redefine.
25500 (pow10l): Make into compat symbol.
25501 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
25502 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
25503 * sysdeps/arm/libm-test-ulps: Likewise.
25504 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
25505 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25506 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25507 * sysdeps/microblaze/libm-test-ulps: Likewise.
25508 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25509 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25510 * sysdeps/nios2/libm-test-ulps: Likewise.
25511 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25512 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
25513 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
25514 * sysdeps/sh/libm-test-ulps: Likewise.
25515 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
25516 * sysdeps/tile/libm-test-ulps: Likewise.
25517 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25518
25519 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
25520
25521 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
25522
25523 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25524
25525 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
25526 "../ChangeLog.old/ChangeLog.8".
25527 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
25528 "../ChangeLog.old/ChangeLog.14".
25529
25530 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25531
25532 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
25533 Threads Library.
25534
25535 2017-09-01 Joseph Myers <joseph@codesourcery.com>
25536
25537 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
25538
25539 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25540
25541 * csu/version.c (banner): Remove "by Roland McGrath et al.".
25542 * nptl/Banner: Remove "by Ulrich Drepper et al.".
25543
25544 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
25545
25546 * stdlib/tst-atexit-common.c (do_test): Test support for at least
25547 32 atexit handlers.
25548
25549 2017-09-01 Zack Weinberg <zackw@panix.com>
25550
25551 * math/math.h (HUGE_VAL): Improve commentary.
25552
25553 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25554 Andreas Schwab <schwab@suse.de>
25555
25556 [BZ #21530]
25557 * include/stdio.h (__gen_tempfd): New function.
25558 * stdio-common/Makefile (routines): Add gentempfd.
25559 * stdio-common/gentempfd.c: New file.
25560 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
25561 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
25562 unnamed file first.
25563
25564 2017-09-01 Florian Weimer <fweimer@redhat.com>
25565
25566 [BZ #21915]
25567 [BZ #21922]
25568 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
25569 result to determine success or failure, not the errno value.
25570 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
25571 (tst-nss-files-hosts-erange): Link with -ldl.
25572 * nss/tst-nss-files-hosts-erange.c: New file.
25573 * nss/tst-resolv-basic.c (response): Handle nodata.example.
25574 (do_test): Add NO_DATA tests.
25575 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
25576 (do_test): Call it.
25577
25578 2017-09-01 Florian Weimer <fweimer@redhat.com>
25579
25580 [BZ #21922]
25581 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
25582 coming from gethostbyname2_r.
25583
25584 2017-09-01 Florian Weimer <fweimer@redhat.com>
25585
25586 * support/namespace.h (struct support_chroot_configuration): Add
25587 hosts, host_conf.
25588 (struct support_chroot): Add path_hosts, path_host_conf.
25589 * support/support_chroot.c (write_file): New function.
25590 (support_chroot_create): Call it to process /etc/resolv.conf,
25591 /etc/hosts, /etc/host.conf.
25592 (support_chroot_free): Update.
25593
25594 2017-09-01 Florian Weimer <fweimer@redhat.com>
25595
25596 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
25597 status indicates it is set.
25598
25599 2017-09-01 Florian Weimer <fweimer@redhat.com>
25600
25601 [BZ #20532]
25602 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
25603 function lookup failures more reliable.
25604
25605 2017-09-01 Florian Weimer <fweimer@redhat.com>
25606
25607 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
25608 (getcanonname): Likewise.
25609 (gaih_inet): Likewise.
25610
25611 2017-09-01 Florian Weimer <fweimer@redhat.com>
25612
25613 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
25614 (getcanonname): Likewise.
25615 (gaih_inet): Likewise.
25616
25617 2017-08-31 Steve Ellcey <sellcey@cavium.com>
25618 Richard Henderson <rth@twiddle.net>
25619
25620 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
25621 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
25622 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
25623 (IREG_SIZE, OREG_SIZE): New macros.
25624 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
25625 (IREG_SIZE, OREG_SIZE): New macros.
25626 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
25627 (IREG_SIZE): New macro.
25628 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
25629 (IREG_SIZE): New macro.
25630 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
25631 New includes.
25632 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
25633 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
25634 (__CONCATX): Handle exceptions correctly on large values that may
25635 set FE_INVALID.
25636 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
25637 Initialize if not already set.
25638 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
25639
25640 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25641
25642 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
25643 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
25644 Likewise.
25645 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
25646 Likewise.
25647 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
25648 Likewise.
25649 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
25650 Likewise.
25651 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
25652 Likewise.
25653 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
25654 Likewise.
25655 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
25656 Likewise.
25657 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
25658 (NO_CANCELLATION): Likewise.
25659 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
25660 Likewise.
25661 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
25662 Likewise.
25663 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
25664 Likewise.
25665 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
25666 (NO_CANCELLATION): Likewise.
25667 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
25668 (NO_CANCELLATION): Likewise.
25669 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
25670 Likewise
25671 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
25672 Likewise.
25673 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
25674 Likewise.
25675 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
25676 Likewise.
25677 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
25678 hidden prototype.
25679 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
25680 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
25681
25682 2017-08-31 Steve Ellcey <sellcey@cavium.com>
25683
25684 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
25685 in resolver call.
25686
25687 2017-08-31 Florian Weimer <fweimer@redhat.com>
25688
25689 * include/libc-symbols.h (internal_function): Remove.
25690
25691 2017-08-31 Florian Weimer <fweimer@redhat.com>
25692
25693 * stdlib/fmtmsg.c (internal_addseverity): Remove
25694 internal_function.
25695
25696 2017-08-31 Florian Weimer <fweimer@redhat.com>
25697
25698 * stdio-common/printf_fp.c (group_number): Remove
25699 internal_function.
25700 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
25701
25702 2017-08-31 Florian Weimer <fweimer@redhat.com>
25703
25704 * posix/fnmatch.c (internal_function): Remove definition.
25705 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
25706 * posix/regcomp.c (peek_token, init_word_char)
25707 (duplicate_node_closure, fetch_token, peek_token)
25708 (peek_token_bracket, build_range_exp, build_collating_symbol):
25709 Likewise.
25710 * posix/regex_internal.c (re_string_construct_common)
25711 (create_ci_newstate, create_cd_newstate, re_string_allocate)
25712 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
25713 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
25714 (re_string_translate_buffer, re_string_reconstruct)
25715 (re_string_peek_byte_case, re_string_fetch_byte_case)
25716 (re_string_destruct, re_string_context_at, re_node_set_alloc)
25717 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
25718 (re_node_set_add_intersect, re_node_set_init_union)
25719 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
25720 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
25721 (re_dfa_add_node, calc_state_hash, re_acquire_state)
25722 (re_acquire_state_context): Likewise.
25723 * posix/regex_internal.h (internal_function): Remove definition.
25724 (re_string_realloc_buffers, build_wcs_buffer)
25725 (build_wcs_upper_buffer, build_upper_buffer)
25726 (re_string_translate_buffer, re_string_context_at)
25727 (re_string_char_size_at, re_string_wchar_at)
25728 (re_string_elem_size_at): Likewise.
25729 * posix/regexec.c (match_ctx_init, match_ctx_clean)
25730 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
25731 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
25732 (re_search_internal, re_search_2_stub, re_search_stub)
25733 (re_copy_regs, prune_impossible_nodes, check_matching)
25734 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
25735 (free_fail_stack_return, sift_states_iter_mb)
25736 (sift_states_backward, build_sifted_states)
25737 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
25738 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
25739 (check_subexp_limits, sift_states_bkref, merge_state_array)
25740 (find_recover_state, transit_state, merge_state_with_log)
25741 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
25742 (transit_state_mb, transit_state_bkref, get_subexp)
25743 (get_subexp_sub, find_subexp_node, check_arrival)
25744 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
25745 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
25746 (check_node_accept_bytes, find_collation_sequence_value)
25747 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
25748 (acquire_init_state_context, check_halt_node_context)
25749 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
25750 (sub_epsilon_src_nodes): Likewise.
25751 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
25752 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
25753 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
25754 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
25755 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
25756 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
25757 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
25758 * sysdeps/posix/ttyname.c (getttyname): Likewise.
25759 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
25760 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
25761 (PREADV): Likewise.
25762 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
25763 (PREADV): Likewise.
25764 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
25765 (PWRITEV): Likewise.
25766 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
25767 (PWRITEV): Likewise.
25768 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
25769 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
25770
25771 2017-08-31 Florian Weimer <fweimer@redhat.com>
25772
25773 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
25774 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
25775 Remove internal_function.
25776 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
25777 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
25778 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
25779 (__deallocate_stack, __libc_pthread_init)
25780 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
25781 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
25782 (__libc_disable_asynccancel, __librt_disable_asynccancel):
25783 Likewise.
25784 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
25785 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
25786 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
25787 Likewise.
25788 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
25789 (__pthread_mutex_unlock_usercnt): Likewise.
25790
25791 2017-08-31 Florian Weimer <fweimer@redhat.com>
25792
25793 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
25794 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
25795 (fts_safe_changedir): Remove internal_function.
25796 * io/ftw.c (internal_function): Remove definition.
25797 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
25798
25799 2017-08-31 Florian Weimer <fweimer@redhat.com>
25800
25801 * inet/deadline.c (__deadline_current_time)
25802 (__deadline_from_timeval, __deadline_to_ms): Remove
25803 internal_function.
25804 * inet/getnameinfo.c (nrl_domainname): Likewise.
25805 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
25806 * inet/inet6_option.c (add_pad): Likewise.
25807 * inet/net-internal.h (__deadline_current_time)
25808 (__deadline_from_timeval, __deadline_to_ms): Likewise.
25809 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
25810 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
25811 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
25812
25813 2017-08-31 Joseph Myers <joseph@codesourcery.com>
25814
25815 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
25816 include <bits/nan.h>.
25817 * math/Makefile (headers): Remove bits/nan.h.
25818 * bits/nan.h: Remove.
25819 * sysdeps/ieee754/bits/nan.h: Likewise.
25820 * sysdeps/mips/bits/nan.h: Likewise.
25821
25822 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
25823 not include <bits/inf.h>.
25824 * math/Makefile (headers): Remove bits/inf.h.
25825 * bits/inf.h: Remove.
25826 * sysdeps/ieee754/bits/inf.h: Likewise.
25827
25828 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
25829 bits/huge_vall.h or bits/huge_val_flt128.h.
25830 (HUGE_VAL): Define directly here.
25831 [__USE_ISOC99] (HUGE_VALF): Likewise.
25832 [__USE_ISOC99] (HUGE_VALL): Likewise.
25833 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25834 (HUGE_VAL_F128): Likewise.
25835 * math/Makefile (headers): Remove bits/huge_val.h,
25836 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
25837 * bits/huge_val.h: Remove.
25838 * bits/huge_val_flt128.h: Likewise.
25839 * bits/huge_valf.h: Likewise.
25840 * bits/huge_vall.h: Likewise.
25841 * sysdeps/ia64/bits/huge_vall.h: Likewise.
25842 * sysdeps/ieee754/bits/huge_val.h: Likewise.
25843 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
25844 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
25845 * sysdeps/sh/bits/huge_val.h: Likewise.
25846 * sysdeps/sparc/bits/huge_vall.h: Likewise.
25847 * sysdeps/x86/bits/huge_vall.h: Likewise.
25848
25849 2017-08-31 Florian Weimer <fweimer@redhat.com>
25850
25851 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
25852 internal_function.
25853 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
25854 Likewise.
25855 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
25856 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
25857 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
25858 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
25859 * elf/dl-fini.c (_dl_sort_fini): Likewise.
25860 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
25861 * elf/dl-libc.c (dlerror_run): Likewise.
25862 * elf/dl-load.c (add_name_to_object, decompose_rpath)
25863 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
25864 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
25865 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
25866 Likewise.
25867 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
25868 (_dl_higher_prime_number, _dl_strtoul): Likewise.
25869 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
25870 * elf/dl-profile.c (_dl_start_profile): Likewise.
25871 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
25872 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
25873 Likewise.
25874 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
25875 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
25876 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
25877 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
25878 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
25879 (_dl_allocate_tls_storage): Likewise.
25880 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
25881 (_dl_check_all_versions): Likewise.
25882 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
25883 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
25884 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
25885 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25886 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
25887 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
25888 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
25889 internal_function from __dl_start.
25890 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
25891 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
25892 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
25893 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
25894 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
25895 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
25896 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
25897 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
25898 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
25899 (_dl_next_ld_env_entry, _dl_important_hwcaps)
25900 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
25901 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
25902 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
25903 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
25904 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
25905 Likewise.
25906 (struct rtld_global_ro): Remove internal_function from the
25907 _dl_lookup_symbol_x member.
25908 (_dl_symbol_value): Remove. No longer defined anywhere.
25909 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
25910 internal_function.
25911 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25912 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
25913 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
25914 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
25915 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
25916 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
25917 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
25918 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
25919 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
25920 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
25921 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25922 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
25923
25924 2017-08-31 Florian Weimer <fweimer@redhat.com>
25925
25926 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
25927 Remove internal_function.
25928 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
25929 Likewise.
25930 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
25931 Likewise.
25932
25933 2017-08-31 Florian Weimer <fweimer@redhat.com>
25934
25935 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
25936 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
25937 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
25938
25939 2017-08-31 Florian Weimer <fweimer@redhat.com>
25940
25941 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
25942 (__gai_enqueue_request): Remove internal_function.
25943 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
25944 (__gai_remove_request, __gai_notify, __gai_notify_only)
25945 (__gai_sigqueue): Likewise.
25946 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
25947 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
25948 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
25949 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
25950 Likewise.
25951
25952 2017-08-31 Florian Weimer <fweimer@redhat.com>
25953
25954 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
25955 * include/dirent.h (__opendirat, __getdents, __getdents64)
25956 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
25957 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
25958 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
25959 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
25960 Likewise.
25961 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
25962
25963 2017-08-31 Florian Weimer <fweimer@redhat.com>
25964
25965 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
25966 internal_function.
25967 (GETCWD_RETURN_TYPE): Likewise.
25968
25969 2017-08-31 Florian Weimer <fweimer@redhat.com>
25970
25971 * include/time.h (__tz_compute, __strptime_internal): Remove
25972 internal_function.
25973 * time/strptime_l.c (__strptime_internal): Likewise.
25974 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
25975
25976 2017-08-31 Florian Weimer <fweimer@redhat.com>
25977
25978 * iconv/gconv.c (__gconv): Remove internal_function.
25979 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
25980 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
25981 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
25982 (__gconv_release_cache): Likewise.
25983 * iconv/gconv_close.c (__gconv_close): Likewise.
25984 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
25985 (read_conf_file, __gconv_get_path): Likewise.
25986 * iconv/gconv_db.c (derivation_lookup, add_derivation)
25987 (__gconv_release_step, gen_steps, increment_counter)
25988 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
25989 (__gconv_close_transform, free_modules_db): Likewise.
25990 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
25991 Likewise.
25992 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
25993 (__gconv_find_transform, __gconv_lookup_cache)
25994 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
25995 (__gconv_close_transform, __gconv_release_cache)
25996 (__gconv_loaded_object, __gconv_release_shlib)
25997 (__gconv_compare_alias): Likewise.
25998 * iconv/gconv_open.c (__gconv_open): Likewise.
25999 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
26000 * iconv/iconvconfig.c (add_module): Likewise.
26001 * intl/dcigettext.c (plural_lookup, guess_category_value)
26002 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
26003 * intl/eval-plural.h (plural_eval): Likewise.
26004 * intl/finddomain.c (_nl_find_domain): Likewise.
26005 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
26006 (_nl_load_domain, _nl_find_msg): Likewise.
26007 (internal_function): Remove definition.
26008 * intl/loadinfo.h (internal_function): Likewise.
26009 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
26010 internal_function.
26011 * intl/localealias.c (internal_function): Remove definition.
26012 (read_alias_file): Remove internal_function.
26013 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
26014 * intl/plural-exp.h (internal_function): Remove definition.
26015 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
26016 internal_function.
26017 * intl/plural.c: Regenerate.
26018 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
26019 * locale/coll-lookup.c (__collidx_table_lookup)
26020 (__collseq_table_lookup): Likewise.
26021 * locale/coll-lookup.h (__collidx_table_lookup)
26022 (__collseq_table_lookup): Likewise.
26023 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
26024 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
26025 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
26026 (_nl_unload_locale): Likewise.
26027 * locale/localeinfo.h (struct __locale_data): Remove
26028 internal_function from cleanup member.
26029 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
26030 (_nl_remove_locale, _nl_load_locale_from_archive)
26031 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
26032 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
26033 (_nl_cleanup_time): Remove internal_function.
26034 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
26035 (_nl_parse_alt_digit): Likewise.
26036 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
26037 (_nl_select_era_entry): Likewise.
26038 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
26039 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
26040 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
26041 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
26042 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
26043
26044 2017-08-31 Florian Weimer <fweimer@redhat.com>
26045
26046 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
26047 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26048 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
26049 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
26050 Likewise.
26051 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
26052 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
26053 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
26054 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
26055 Likewise.
26056 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
26057
26058 2017-08-31 Florian Weimer <fweimer@redhat.com>
26059
26060 * misc/getttyent.c (skip, value): Remove internal_function.
26061 * misc/syslog.c (openlog_internal): Likewise.
26062 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
26063
26064 2017-08-31 Florian Weimer <fweimer@redhat.com>
26065
26066 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
26067 (__nss_rewrite_field): Remove internal_function.
26068 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
26069 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
26070 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
26071 * nss/nsswitch.c (nss_parse_file, nss_getline)
26072 (nss_parse_service_list, nss_new_service): Likewise.
26073 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
26074 * nss/valid_field.c (__nss_valid_field): Likewise.
26075 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
26076
26077 2017-08-31 Florian Weimer <fweimer@redhat.com>
26078
26079 * malloc/arena.c (__malloc_fork_lock_parent)
26080 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
26081 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
26082 internal_function from defintions.
26083 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
26084 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
26085 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
26086 internal_function from declarations.
26087 * malloc/malloc.c (internal_function): Do not define.
26088 (mem2mem_check): Remove internal_function from declaration.
26089 (munmap_chunk, mremap_chunk): Remove internal_function.
26090 * malloc/mtrace.c (tr_where): Likewise.
26091
26092 2017-08-31 Florian Weimer <fweimer@redhat.com>
26093
26094 * include/rpc/pmap_clnt.h (__get_socket): Remove
26095 internal_function.
26096 * sunrpc/auth_des.c (synchronize): Likewise.
26097 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
26098 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
26099 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
26100 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
26101 (key_call): Likewise.
26102 * sunrpc/pm_getport.c (__get_socket): Likewise.
26103 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
26104 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
26105 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
26106 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
26107 (invalidate): Likewise.
26108 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
26109 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
26110 (set_input_fragment, get_input_bytes): Likewise.
26111
26112 2017-08-31 Florian Weimer <fweimer@redhat.com>
26113
26114 * malloc/malloc.c (_int_free): Remove locked variable and related
26115 asserts.
26116
26117 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
26118
26119 [BZ #22051]
26120 * Makerules (build-module-helper-objlist): Filter out
26121 $(elf-objpfx)sofini.os.
26122 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
26123 needed.
26124
26125 2017-08-31 Florian Weimer <fweimer@redhat.com>
26126
26127 * libio/fcloseall.c: Assume weak_alias is defined.
26128 * libio/feof.c: Likewise.
26129 * libio/fileno.c: Likewise.
26130 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
26131 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
26132 definitions.
26133 (_IO_file_open): Call __open directly.
26134 (_IO_new_file_sync): Assume ESPIPE is defined.
26135 (_IO_file_seekoff_maybe_mmap): Call __read directly.
26136 (_IO_new_file_write): Call __write directly.
26137 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
26138 * libio/ftello64.c (__ftello64): Assume EIO is defined.
26139 * libio/genops.c: Assume _LIBC is defined.
26140 (save_for_backup): Remove internal_function.
26141 * libio/getc.c: Assume weak_alias is defined.
26142 * libio/getwc.c: Likewise.
26143 * libio/iofclose.c: Assume _LIBC is defined.
26144 * libio/iofdopen.c: Likewise.
26145 (_IO_fcntl): Remove macro definition.
26146 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
26147 Call __fcntl directly.
26148 * libio/iofflush.c: Assume weak_alias is defined.
26149 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
26150 defined.
26151 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
26152 * libio/iofgets.c: Likewise.
26153 * libio/iofopen.c: Assume _LIBC is defined.
26154 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
26155 * libio/iofputs.c: Assume weak_alias is defined.
26156 * libio/iofread.c: Likewise.
26157 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
26158 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
26159 * libio/ioftell.c: Assume weak_alias is defined.
26160 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
26161 * libio/iofwide.c: Assume _LIBC is defined.
26162 (_IO_fwide): Drop SHARED conditional because it is implied by
26163 SHLIB_COMPAT.
26164 * libio/iofwrite.c: Assume weak_alias is defined.
26165 * libio/iogetdelim.c: Likewise.
26166 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
26167 * libio/iogetwline.c (wmemcpy): Remove macro definition.
26168 (_IO_getwline): Call __wmemcpy directly.
26169 * libio/iopopen.c: Assume _LIBC is defined.
26170 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
26171 (_IO_close): Remove macro definitions.
26172 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
26173 _exit directly.
26174 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
26175 directly.
26176 * libio/ioputs.c: Assume weak_alias is defined.
26177 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
26178 * libio/iosetbuffer.c: Assume weak_alias is defined.
26179 * libio/iosetvbuf.c: Likewise.
26180 * libio/ioungetc.c: Likewise.
26181 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
26182 libc_hidden_def, libc_hidden_weak, NULL are defined.
26183 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
26184 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
26185 defined.
26186 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
26187 definitions.
26188 (_IO_old_file_init_internal): Drop SHARED conditional because it
26189 is implied by SHLIB_COMPAT.
26190 (_IO_old_file_fopen): Call __open directly.
26191 (_IO_old_file_sync): Assume ESPIPE is defined.
26192 (_IO_old_file_write): Call __write directly.
26193 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
26194 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
26195 Call __fcntl directly.
26196 * libio/oldiofgetpos.c: Assume weak_alias is defined.
26197 (_IO_old_fgetpos): Assume EIO is defined.
26198 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
26199 (_IO_old_fgetpos64): Assume EIO is defined.
26200 * libio/oldiofsetpos.c: Assume weak_alias is defined.
26201 (_IO_old_fsetpos): Assume EIO is defined.
26202 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
26203 (_IO_old_fsetpos64): Assume EIO is defined.
26204 * libio/oldiopopen.c: Assume _LIBC is defined.
26205 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
26206 (_IO_close): Remove macro definitions.
26207 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
26208 directly.
26209 (_IO_old_proc_close): Call __close, __waitpid directly.
26210 * libio/put.c: Assume weak_alias is defined.
26211 * libio/stdfiles.c: Assume _LIBC is defined.
26212 * libio/stdio.c: Likewise.
26213 * libio/wfileops.c: Likewise.
26214 (_IO_wfile_sync): Assume ESPIPE is defined.
26215 * libio/wgenops.c: Assume _LIBC is defined.
26216 (save_for_wbackup): Remove internal_function.
26217
26218 2017-08-31 Florian Weimer <fweimer@redhat.com>
26219
26220 * malloc/malloc.c (top_check): Change return type to void. Remove
26221 internal_function.
26222 * malloc/hooks.c (top_check): Likewise.
26223 (malloc_check, realloc_check, memalign_check): Adjust.
26224
26225 2017-08-30 Joseph Myers <joseph@codesourcery.com>
26226
26227 [BZ #21457]
26228 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
26229 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
26230 sigcontext and namespace requirements.
26231 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
26232 * sysdeps/m68k/sys/ucontext.h: Likewise.
26233 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
26234 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
26235 <bits/sigcontext.h>.
26236 (__ctx): Define earlier.
26237 (mcontext_t): Define structure contents rather than using struct
26238 sigcontext.
26239 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
26240 __glibc_reserved1 instead of __reserved.
26241 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
26242 <bits/sigcontext.h>.
26243 (__ctx): Define earlier.
26244 (mcontext_t): Define structure contents rather than using struct
26245 sigcontext.
26246 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
26247 mcontext_t instead of struct sigcontext.
26248 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
26249 <bits/sigcontext.h>.
26250 (__ctx): Define earlier.
26251 (mcontext_t): Define structure contents rather than using struct
26252 sigcontext.
26253 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
26254 <bits/sigcontext.h>.
26255 (__ctx): Define earlier.
26256 (mcontext_t): Define structure contents rather than using struct
26257 sigcontext.
26258 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
26259 mcontext_t instead of struct sigcontext.
26260 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
26261 mcontext_t instead of struct sigcontext.
26262 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
26263 <bits/sigcontext.h>.
26264 (__ctx): New macro.
26265 (struct __ia64_fpreg_mcontext): New type.
26266 (mcontext_t): Define structure contents rather than using struct
26267 sigcontext.
26268 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
26269 (uc_sigmask): Define using __ctx.
26270 (uc_stack): Likewise.
26271 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
26272 <bits/sigcontext.h>.
26273 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26274 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
26275 <bits/sigcontext.h>.
26276 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
26277 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
26278 <bits/sigcontext.h>.
26279 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
26280 <bits/sigcontext.h>.
26281 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
26282 <bits/sigcontext.h>.
26283 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
26284 <bits/sigcontext.h>.
26285 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
26286 <bits/sigcontext.h>.
26287 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
26288 <bits/sigcontext.h>.
26289 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
26290 <bits/sigcontext.h>.
26291 (__ctx): Define earlier.
26292 (mcontext_t): Define structure contents rather than using struct
26293 sigcontext.
26294 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
26295 <bits/sigcontext.h>. Include <bits/types.h>.
26296 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
26297 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
26298 (test-xfail-XPG42/ucontext.h/conform): Likewise.
26299 (test-xfail-UNIX98/signal.h/conform): Likewise.
26300 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
26301 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
26302 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
26303 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
26304 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
26305 (test-xfail-POSIX2008/signal.h/conform): Likewise.
26306 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
26307 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
26308 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
26309
26310 2017-08-30 Florian Weimer <fweimer@redhat.com>
26311
26312 * malloc/dynarray_emplace_enlarge.c
26313 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
26314 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
26315 * malloc/tst-dynarray.c (test_long_overflow): New function.
26316 (do_test): Call it.
26317
26318 2017-08-30 Florian Weimer <fweimer@redhat.com>
26319
26320 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
26321 (set_arena_corrupt): Remove definitions.
26322 (mtrim): Do not check for corrupt arena.
26323 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
26324 Likewise.
26325
26326 2017-08-30 Florian Weimer <fweimer@redhat.com>
26327
26328 [BZ #21754]
26329 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
26330 check_action.
26331 (ptmalloc_init): Do not set or use check_action.
26332 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
26333 call to malloc_printerr. Remove return statement.
26334 (free_check): Likewise. Remove arena unlock.
26335 (top_check): Update comment. Adjust call to malloc_printerr.
26336 Remove heap repair code.
26337 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
26338 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
26339 (sysmalloc): Adjust call to malloc_printerr.
26340 (munmap_chunk, __libc_realloc): Likewise. Remove return
26341 statement.
26342 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
26343 Remove errout label and corresponding gotos.
26344 (_int_free): Likewise. Remove arena unlock.
26345 (do_set_mallopt_check): Do not set check_action.
26346 (malloc_printerr): Adjust parameter list. Do not mark arena as
26347 corrupt.
26348 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
26349 comment.
26350 * manual/probes.texi (Memory Allocation Probes): Remove
26351 memory_mallopt_check_action.
26352
26353 2017-08-30 Steve Ellcey <sellcey@cavium.com>
26354
26355 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
26356 Use pointer to uint64_t instead of long int for sp.
26357
26358 2017-08-30 Florian Weimer <fweimer@redhat.com>
26359
26360 [BZ #21754]
26361 * malloc/malloc.c (malloc_printerr): Always terminate the process,
26362 without printing a backtrace. Do not leak any information in the
26363 error message.
26364 * manual/memory.texi (Heap Consistency Checking): Update.
26365 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
26366
26367 2017-08-30 Florian Weimer <fweimer@redhat.com>
26368
26369 Do not scale NPTL tests with available number of CPUs.
26370 * nptl/tst-cond16.c (count): Set to constant value of 8.
26371 * nptl/tst-cond18.c (count): Likewise.
26372
26373 2017-08-29 Joseph Myers <joseph@codesourcery.com>
26374
26375 [BZ #22035]
26376 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
26377 Define to take a second argument that is a macro that
26378 concatentates a suffix, not the suffix itself.
26379 (__CONCAT_d): New macro.
26380 (__CONCAT_f): Likewise.
26381 (__CONCAT_l): Likewise.
26382
26383 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
26384
26385 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
26386 by child.
26387
26388 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26389 Aurelien Jarno <aurelien@aurel32.net>
26390 Maciej W. Rozycki <macro@imgtec.com>
26391
26392 [BZ #21956]
26393 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
26394 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
26395 `mips16-syscall6' and `mips16-syscall7'.
26396 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
26397 (CFLAGS-mips16-syscall7.c): Remove.
26398 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
26399 Remove `__mips16_syscall5', `__mips16_syscall6' and
26400 `__mips16_syscall7'.
26401 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
26402 (__mips16_syscall0): Rename `__mips16_syscall_return' to
26403 `__mips_syscall_return'.
26404 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
26405 (__mips16_syscall1): Likewise.
26406 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
26407 (__mips16_syscall2): Likewise.
26408 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
26409 (__mips16_syscall3): Likewise.
26410 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
26411 (__mips16_syscall4): Likewise.
26412 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
26413 Remove.
26414 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
26415 Remove.
26416 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
26417 Remove.
26418 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
26419 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
26420 `__mips16_syscall5'. Remove prototype.
26421 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
26422 `__mips16_syscall6'. Remove prototype.
26423 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
26424 `__mips16_syscall7'. Remove prototype.
26425 (__nomips16, __mips16_syscall_return): Move to...
26426 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
26427 (__nomips16, __mips_syscall_return): ... here.
26428 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
26429 `__mips16_syscall_return' to `__mips_syscall_return'.
26430 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
26431 `internal_syscall##nr'.
26432 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
26433 `internal_syscall##nr'.
26434 (FORCE_FRAME_POINTER): Remove.
26435 (__mips_syscall5): New prototype.
26436 (internal_syscall5): Rewrite to call `__mips_syscall5'.
26437 (__mips_syscall6): New prototype.
26438 (internal_syscall6): Rewrite to call `__mips_syscall6'.
26439 (__mips_syscall7): New prototype.
26440 (internal_syscall7): Rewrite to call `__mips_syscall7'.
26441 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
26442 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
26443 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
26444 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
26445 (sysdep_routines): Add libc-do-syscall.
26446 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
26447 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
26448
26449 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26450
26451 [BZ #21672]
26452 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
26453 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
26454 (advise_stack_range): New function.
26455 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
26456 stack non required to advise_stack_range at allocatestack.c
26457
26458 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26459
26460 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
26461
26462 2017-08-29 Florian Weimer <fweimer@redhat.com>
26463
26464 [BZ #22026]
26465 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
26466 __end_fct. Mangle __end_fct after setting it to NULL.
26467 * iconv/Makefile (tests): Add tst-gconv-init-failure.
26468 (modules-names, modules-names-tests): Add
26469 tst-gconv-init-failure-mod.
26470 (gconv-modules): New target.
26471 (tst-gconv-init-failure-mod.so): Link against libsupport.
26472 (tst-gconv-init-failure): Depend on gconv-modules,
26473 tst-gconv-init-failure-mod.so.
26474 * iconv/tst-gconv-init-failure-mod.c: New file.
26475 * iconv/tst-gconv-init-failure.c: Likewise.
26476 * iconv/test-gconv-modules: Likewise.
26477
26478 2017-08-29 Florian Weimer <fweimer@redhat.com>
26479
26480 [BZ #22025]
26481 * iconv/gconv_db.c (free_derivation): Remove redundant
26482 parentheses.
26483 (gen_steps): Unconditionally mangle __btowc_fct after
26484 initialization.
26485 (increment_counter): Likewise. Do not call init_fct for internal
26486 modules.
26487
26488 2017-08-29 Joseph Myers <joseph@codesourcery.com>
26489
26490 [BZ #22028]
26491 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26492 (_MSUF_): Remove macro.
26493 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
26494 Likewise.
26495 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26496 (__REDIRFROM_X): New macro.
26497 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
26498 Likewise.
26499 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
26500 (__REDIRTO_X): Likewise.
26501 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
26502 arguments.
26503 (__MATH_REDIRCALL_2): Likewise.
26504 (__MATH_REDIRCALL_INTERNAL): Likewise.
26505 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
26506 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
26507 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
26508 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
26509 * math/test-finite-macros.c: New file.
26510 * math/Makefile (tests): Add test-finite-macros.
26511 (CFLAGS-test-finite-macros.c): New variable.
26512
26513 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
26514 Jeff Law <law@redhat.com>
26515
26516 [BZ #22025]
26517 Mangle NULL pointers in iconv/gconv.
26518 * iconv/gconv_cache.c (find_module): Demangle init_fct before
26519 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
26520 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
26521 is non-NULL before demangling the end_fct. Check for NULL
26522 end_fct after demangling.
26523 (__gconv_release_step): Demangle the end_fct before checking
26524 it for NULL. Remove assert on __shlibc_handle != NULL.
26525 (gen_steps): Don't check btowc_fct for NULL before mangling.
26526 Demangle init_fct before checking for NULL.
26527 (increment_counter): Likewise.
26528 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
26529 end_fct for NULL before mangling.
26530 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
26531 for NULL.
26532
26533 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
26534
26535 [BZ #21971]
26536 * locale/iso-639.def: add Morisyen.
26537
26538 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26539
26540 [BZ #21930]
26541 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
26542 (iszero): New C++ implementation that does not use
26543 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
26544 signaling nans are enabled, since __builtin_types_compatible_p
26545 is a C-only feature.
26546 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
26547 defined, include ieee754_float128.h for access to the union and
26548 member ieee854_float128.ieee.
26549 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
26550 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
26551 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
26552 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
26553 options of test-math-zero on powerpc64le.
26554
26555 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
26556
26557 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26558 Change double to float.
26559
26560 2017-08-28 Joseph Myers <joseph@codesourcery.com>
26561
26562 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
26563 unconditional.
26564 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
26565 conditional code; define contents only for [LIBM_SVID_COMPAT].
26566
26567 2017-08-28 Florian Weimer <fweimer@redhat.com>
26568
26569 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
26570 (abi-lp64_be-options): Remove.
26571 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
26572 (abi-hard-options): Likewise.
26573 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
26574 (abi-o32_hard-options, abi-o32_soft_2008-options)
26575 (abi-o32_hard_2008-options, abi-n32_soft-options)
26576 (abi-n32_hard-options, abi-n32_soft_2008-options)
26577 (abi-n32_hard_2008-options, abi-n64_soft-options)
26578 (abi-n64_hard-options, abi-n64_soft_2008-options)
26579 (abi-n64_hard_2008-options): Likewise.
26580 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
26581 (abi-64-v1-options, abi-64-v2-options): Likewise.
26582 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
26583 (abi-64-options): Likewise.
26584 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
26585 (abi-64-options): Likewise.
26586 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
26587 (abi-64-options): Likewise.
26588 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
26589 (abi-64-options, abi-x32-options): Likewise.
26590
26591 2017-08-28 Florian Weimer <fweimer@redhat.com>
26592
26593 Store supported list of SYS_* system calls in the source tree.
26594 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
26595 (bits/syscall.h): Generate from list file.
26596 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
26597 [$(subdir) = misc] (tests): Add tst-syscall-list.
26598 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
26599 [$(subdir) = misc] (tst-syscall-list-macros.list)
26600 [$(subdir) = misc] (tst-syscall-list-nr.list)
26601 (tst-syscall-list-sys.list): Helper targets for new
26602 tst-syscall-list test.
26603 [$(subdir) = misc] (tst-syscall-list.out): Run test script
26604 tst-syscall-list.sh.
26605 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
26606 target. Do not include bits/syscall.d.
26607 [$(subdir) = misc] (generated): Do not update.
26608 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
26609 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
26610 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
26611 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
26612
26613 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
26614
26615 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
26616 (tst-cxa_atexit, tst-on_exit): Likewise.
26617 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
26618 tst-cxa_atexit, and tst-on_exit.
26619 * stdlib/tst-atexit-common.c: New file.
26620 * stdlib/tst-atexit.c: New file.
26621 * stdlib/tst-at_quick_exit.c: New file.
26622 * stdlib/tst-cxa_atexit.c: New file.
26623 * stdlib/tst-on_exit.c: New file.
26624
26625 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26626
26627 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
26628 * mach/stack_chk_fail_local.c: New file.
26629 * hurd/stack_chk_fail_local.c: New file.
26630 * mach/Machrules ($(interface-library)-routines): Add
26631 stack_chk_fail_local.
26632 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
26633 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
26634 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
26635 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
26636 * hurd/Makefile (CFLAGS-hurdstartup.o,
26637 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
26638
26639 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
26640
26641 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
26642 (index_cpu_*, index_arch_*): Removed.
26643
26644 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26645
26646 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
26647 Use uint64_t instead of unsigned long.
26648
26649 2017-08-25 Joseph Myers <joseph@codesourcery.com>
26650
26651 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
26652 [__HAVE_DISTINCT_FLOAT128].
26653
26654 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
26655 of <bits/math-finite.h>.
26656 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
26657 inclusion of <bits/math-finite.h>.
26658 * math/bits/math-finite.h (__REDIRTO_X): Do not define
26659 conditionally on [__MATH_DECLARING_LDOUBLE && defined
26660 __NO_LONG_DOUBLE_MATH].
26661 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
26662 (__MATH_REDIRCALL_2): Likewise.
26663 (__MATH_REDIRCALL_INTERNAL): Likewise.
26664 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
26665 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
26666 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
26667
26668 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
26669 Remove file.
26670 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
26671 Likewise.
26672 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
26673 Likewise.
26674 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
26675 Likewise.
26676 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
26677 Likewise.
26678 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
26679 Likewise.
26680 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
26681 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
26682 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
26683 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
26684 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
26685 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
26686 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
26687 w_sqrtf_compat-ppc32.
26688
26689 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26690
26691 * math/math.h [defined __cplusplus] (issignaling): In the long
26692 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
26693 is not defined. Call __issignaling, otherwise.
26694
26695 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26696
26697 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
26698 syscall definitions and replace __builtin_expect with __glibc_likely.
26699 * sysdeps/unix/syscall-template.S: Update comment about cancellable
26700 syscall.
26701 (SYSCALL_CANCELLABLE): Removedefinition
26702 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
26703 definition.
26704 (PSEUDO_END): Likewise.
26705 [IS_IN (libpthread)] (CENABLE): Likewise.
26706 [IS_IN (libpthread)] (CDISABLE): Likewise.
26707 [IS_IN (libc)] (CENABLE): Likewise.
26708 [IS_IN (libc)] (CENABLE): Likewise.
26709 [IS_IN (librt)] (CDISABLE): Likewise.
26710 [IS_IN (librt)] (CDISABLE): Likewise.
26711 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26712 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
26713 definition.
26714 (PSEUDO_END): Likewise.
26715 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
26716 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
26717 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
26718 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
26719 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
26720 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
26721 (CENABLE): Likewise.
26722 (CDISABLE): Likewise.
26723 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26724 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
26725 defintion.
26726 (PSEUDO_END): Likewise.
26727 [IS_IN (libpthread)] (CENABLE): Likewise.
26728 [IS_IN (libpthread)] (CDISABLE): Likewise.
26729 [IS_IN (libc)] (CENABLE): Likewise.
26730 [IS_IN (libc)] (CENABLE): Likewise.
26731 [IS_IN (librt)] (CDISABLE): Likewise.
26732 [IS_IN (librt)] (CDISABLE): Likewise.
26733 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26734 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
26735 definition.
26736 (PSEUDO_END): Likewise.
26737 [IS_IN (libpthread)] (CENABLE): Likewise.
26738 [IS_IN (libpthread)] (CDISABLE): Likewise.
26739 [IS_IN (libc)] (CENABLE): Likewise.
26740 [IS_IN (libc)] (CENABLE): Likewise.
26741 [IS_IN (librt)] (CDISABLE): Likewise.
26742 [IS_IN (librt)] (CDISABLE): Likewise.
26743 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26744 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
26745 definition.
26746 (PSEUDO_END): Likewise.
26747 [IS_IN (libpthread)] (CENABLE): Likewise.
26748 [IS_IN (libpthread)] (CDISABLE): Likewise.
26749 [IS_IN (libc)] (CENABLE): Likewise.
26750 [IS_IN (libc)] (CENABLE): Likewise.
26751 [IS_IN (librt)] (CDISABLE): Likewise.
26752 [IS_IN (librt)] (CDISABLE): Likewise.
26753 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26754 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
26755 definition.
26756 (PSEUDO_END): Likewise.
26757 [IS_IN (libpthread)] (CENABLE): Likewise.
26758 [IS_IN (libpthread)] (CDISABLE): Likewise.
26759 [IS_IN (libc)] (CENABLE): Likewise.
26760 [IS_IN (libc)] (CENABLE): Likewise.
26761 [IS_IN (librt)] (CDISABLE): Likewise.
26762 [IS_IN (librt)] (CDISABLE): Likewise.
26763 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26764 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
26765 definition.
26766 (PSEUDO_END): Likewise.
26767 [IS_IN (libpthread)] (CENABLE): Likewise.
26768 [IS_IN (libpthread)] (CDISABLE): Likewise.
26769 [IS_IN (libc)] (CENABLE): Likewise.
26770 [IS_IN (libc)] (CENABLE): Likewise.
26771 [IS_IN (librt)] (CDISABLE): Likewise.
26772 [IS_IN (librt)] (CDISABLE): Likewise.
26773 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26774 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
26775 definition.
26776 (PSEUDO_END): Likewise.
26777 [IS_IN (libpthread)] (CENABLE): Likewise.
26778 [IS_IN (libpthread)] (CDISABLE): Likewise.
26779 [IS_IN (libc)] (CENABLE): Likewise.
26780 [IS_IN (libc)] (CENABLE): Likewise.
26781 [IS_IN (librt)] (CDISABLE): Likewise.
26782 [IS_IN (librt)] (CDISABLE): Likewise.
26783 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26784 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
26785 Remove definition.
26786 (PSEUDO_END): Likewise.
26787 [IS_IN (libpthread)] (CENABLE): Likewise.
26788 [IS_IN (libpthread)] (CDISABLE): Likewise.
26789 [IS_IN (libc)] (CENABLE): Likewise.
26790 [IS_IN (libc)] (CENABLE): Likewise.
26791 [IS_IN (librt)] (CDISABLE): Likewise.
26792 [IS_IN (librt)] (CDISABLE): Likewise.
26793 (SINGLE_THREAD_P): Likewise.
26794 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
26795 definition.
26796 (PSEUDO_END): Likewise.
26797 [IS_IN (libpthread)] (CENABLE): Likewise.
26798 [IS_IN (libpthread)] (CDISABLE): Likewise.
26799 [IS_IN (libc)] (CENABLE): Likewise.
26800 [IS_IN (libc)] (CENABLE): Likewise.
26801 [IS_IN (librt)] (CDISABLE): Likewise.
26802 [IS_IN (librt)] (CDISABLE): Likewise.
26803 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26804 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
26805 definition.
26806 (PSEUDO_END): Likewise.
26807 [IS_IN (libpthread)] (CENABLE): Likewise.
26808 [IS_IN (libpthread)] (CDISABLE): Likewise.
26809 [IS_IN (libc)] (CENABLE): Likewise.
26810 [IS_IN (libc)] (CENABLE): Likewise.
26811 [IS_IN (librt)] (CDISABLE): Likewise.
26812 [IS_IN (librt)] (CDISABLE): Likewise.
26813 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26814 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
26815 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
26816 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
26817 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
26818 definition.
26819 (PSEUDO_END): Likewise.
26820 [IS_IN (libpthread)] (CENABLE): Likewise.
26821 [IS_IN (libpthread)] (CDISABLE): Likewise.
26822 [IS_IN (libc)] (CENABLE): Likewise.
26823 [IS_IN (libc)] (CENABLE): Likewise.
26824 [IS_IN (librt)] (CDISABLE): Likewise.
26825 [IS_IN (librt)] (CDISABLE): Likewise.
26826 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26827 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
26828 definition.
26829 (PSEUDO_END): Likewise.
26830 [IS_IN (libpthread)] (CENABLE): Likewise.
26831 [IS_IN (libpthread)] (CDISABLE): Likewise.
26832 [IS_IN (libc)] (CENABLE): Likewise.
26833 [IS_IN (libc)] (CENABLE): Likewise.
26834 [IS_IN (librt)] (CDISABLE): Likewise.
26835 [IS_IN (librt)] (CDISABLE): Likewise.
26836 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26837 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
26838 definition.
26839 (PSEUDO_END): Likewise.
26840 [IS_IN (libpthread)] (CENABLE): Likewise.
26841 [IS_IN (libpthread)] (CDISABLE): Likewise.
26842 [IS_IN (libc)] (CENABLE): Likewise.
26843 [IS_IN (libc)] (CENABLE): Likewise.
26844 [IS_IN (librt)] (CDISABLE): Likewise.
26845 [IS_IN (librt)] (CDISABLE): Likewise.
26846 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26847 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
26848 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
26849 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
26850 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
26851 definition.
26852 (PSEUDO_END): Likewise.
26853 [IS_IN (libpthread)] (CENABLE): Likewise.
26854 [IS_IN (libpthread)] (CDISABLE): Likewise.
26855 [IS_IN (libc)] (CENABLE): Likewise.
26856 [IS_IN (libc)] (CENABLE): Likewise.
26857 [IS_IN (librt)] (CDISABLE): Likewise.
26858 [IS_IN (librt)] (CDISABLE): Likewise.
26859 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26860 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
26861 definition.
26862 (PSEUDO_END): Likewise.
26863 [IS_IN (libpthread)] (CENABLE): Likewise.
26864 [IS_IN (libpthread)] (CDISABLE): Likewise.
26865 [IS_IN (libc)] (CENABLE): Likewise.
26866 [IS_IN (libc)] (CENABLE): Likewise.
26867 [IS_IN (librt)] (CDISABLE): Likewise.
26868 [IS_IN (librt)] (CDISABLE): Likewise.
26869 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26870
26871 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
26872
26873 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
26874
26875 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26876
26877 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
26878
26879 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26880
26881 [BZ #21982]
26882 * string/stratcliff.c (do_test): Declare size, nchars, inner,
26883 middle and outer with size_t instead of int. Repleace %d and
26884 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
26885 "MAX (outer, nchars - 64)" to support unsigned outer and
26886 nchars. Also exit loop when outer == 0.
26887
26888 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26889
26890 * include/fcntl.h (__fcntl_nocancel): Remove definition.
26891 * include/signal.h (__sigsuspend_nocancel): Likewise.
26892 * include/time.h (__nanosleep_nocancel): Likewise.
26893 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
26894 * login/utmp_file.c: Include non cancellable syscall header.
26895 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
26896 prototype.
26897
26898 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26899
26900 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
26901 .byte sequences with AVX512F instructions.
26902 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
26903 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
26904 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
26905 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
26906 Likewise.
26907 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26908 Likewise.
26909
26910 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26911 Steve Ellcey <sellcey@cavium.com>
26912
26913 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
26914 Use PTR_REG macro in cmp instruction.
26915
26916 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26917
26918 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
26919 Change the return type of the ifunc resolver to match the return
26920 type of the target function.
26921
26922 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26923
26924 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
26925 (preadv64): Likewise.
26926 (pwrite64(: Likewise.
26927 (pwritev64): Likewise.
26928
26929 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
26930 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
26931 (LOAD_ARGS_0): Likewise.
26932 (LOAD_ARGS_1): Likewise.
26933 (LOAD_ARGS_2): Likewise.
26934 (LOAD_ARGS_3): Likewise.
26935 (LOAD_ARGS_4): Likewise.
26936 (LOAD_ARGS_5): Likewise.
26937 (LOAD_ARGS_6): Likewise.
26938 (LOAD_REGS_0): Likewise.
26939 (LOAD_REGS_1): Likewise.
26940 (LOAD_REGS_2): Likewise.
26941 (LOAD_REGS_3): Likewise.
26942 (LOAD_REGS_4): Likewise.
26943 (LOAD_REGS_5): Likewise.
26944 (LOAD_REGS_6): Likewise.
26945 (ASM_ARGS_0): Likewise.
26946 (ASM_ARGS_1): Likewise.
26947 (ASM_ARGS_2): Likewise.
26948 (ASM_ARGS_3): Likewise.
26949 (ASM_ARGS_4): Likewise.
26950 (ASM_ARGS_5): Likewise.
26951 (ASM_ARGS_6): Likewise.
26952 (LOAD_ARGS_TYPES_1): Likewise.
26953 (LOAD_ARGS_TYPES_2): Likewise.
26954 (LOAD_ARGS_TYPES_3): Likewise.
26955 (LOAD_ARGS_TYPES_4): Likewise.
26956 (LOAD_ARGS_TYPES_5): Likewise.
26957 (LOAD_ARGS_TYPES_6): Likewise.
26958 (LOAD_REGS_TYPES_1): Likewise.
26959 (LOAD_REGS_TYPES_2): Likewise.
26960 (LOAD_REGS_TYPES_3): Likewise.
26961 (LOAD_REGS_TYPES_4): Likewise.
26962 (LOAD_REGS_TYPES_5): Likewise.
26963 (LOAD_REGS_TYPES_6): Likewise.
26964 (TYPEFY): New define.
26965 (ARGIFY): Likewise.
26966 (internal_syscall0): Likewise.
26967 (internal_syscall1): Likewise.
26968 (internal_syscall2): Likewise.
26969 (internal_syscall3): Likewise.
26970 (internal_syscall4): Likewise.
26971 (internal_syscall5): Likewise.
26972 (internal_syscall6): Likewise.
26973 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
26974 (INTERNAL_SYSCALL_NCS): Remove define.
26975 (internal_syscall1): Add define.
26976
26977 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26978
26979 * math/w_remainder_compat.c: Remove duplicate inclusion of
26980 math-svid-compat.h.
26981 * math/w_remainderf_compat.c: Likewise.
26982 * math/w_remainderl_compat.c: Likewise.
26983
26984 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26985
26986 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26987
26988 2017-08-22 Joseph Myers <joseph@codesourcery.com>
26989
26990 [BZ #21684]
26991 * math/tgmath.h (__floating_type): Simplify definitions.
26992 (__real_integer_type): New macro.
26993 (__complex_integer_type): Likewise.
26994 (__expr_is_real): Likewise.
26995 (__tgmath_real_type_sub): Update comment to describe handling of
26996 complex types.
26997 (__tgmath_complex_type_sub): New macro.
26998 (__tgmath_complex_type): Likewise.
26999 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27000 (__TGMATH_CF128): Use __expr_is_real.
27001 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
27002 __expr_is_real.
27003 (__TGMATH_BINARY_REAL_IMAG): Likewise.
27004 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
27005 * math/gen-tgmath-tests.py (Type.create_type): Create complex
27006 integer types.
27007
27008 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27009
27010 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
27011 macro.
27012 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
27013 alias.
27014 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
27015 Likewise.
27016
27017 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
27018 nanosleep_not_cancel with __nanosleep_nocancel.
27019 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
27020 (__nanosleep_nocancel): New macro.
27021 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
27022 function.
27023 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
27024 macro.
27025 (__nanosleep_nocancel): New prototype.
27026
27027 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
27028 pause_not_cancel with __pause_nocancel.
27029 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
27030 (__pause_nocancel): New macro.
27031 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
27032 macro.
27033 (__pause_nocancel): New prototype.
27034 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
27035
27036 2017-08-22 Martin Sebor <msebor@redhat.com>
27037
27038 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
27039 to return a pointer to the same type as the target function.
27040
27041 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
27042
27043 [BZ #18822]
27044 [BZ #21986]
27045 * include/printf.h (__printf_fphex): Add attribute_hidden.
27046 (__guess_grouping): New prototype.
27047 * stdio-common/printf_fp.c (__guess_grouping): Removed.
27048 * stdio-common/reg-printf.c (__register_printf_specifier): Add
27049 libc_hidden_proto and libc_hidden_def.
27050 * stdlib/strfmon_l.c (__guess_grouping): Removed.
27051 (__vstrfmon_l): Remove the third argument passed to
27052 __guess_grouping.
27053
27054 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27055
27056 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
27057 definition for issignaling that does not rely on __MATH_TG,
27058 since __MATH_TG uses __builtin_types_compatible_p, which is only
27059 available in C mode.
27060 (CFLAGS-test-math-issignaling.cc): New variable.
27061 * math/Makefile [CXX] (tests): Add test-math-issignaling.
27062 * math/test-math-issignaling.cc: New test for C++ implementation
27063 of type-generic issignaling.
27064 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
27065 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
27066 options of test-math-issignaling on powerpc64le.
27067
27068 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
27069
27070 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27071 building libc.a.
27072 (hidden_proto): Likewise.
27073 (hidden_tls_proto): Likewise.
27074 (__hidden_proto): Likewise.
27075
27076 2017-08-22 Florian Weimer <fweimer@redhat.com>
27077
27078 math: Statically link tests of internal functionality.
27079 * math/Makefile (tests): Remove atest-exp, atest-sincos,
27080 atest-exp2.
27081 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
27082 (gmp-objs): Remove assignment.
27083 (atest-exp, atest-sincos, atest-exp2): Remove targets.
27084
27085 2017-08-22 Joseph Myers <joseph@codesourcery.com>
27086
27087 [BZ #21987]
27088 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
27089 and copy to ...
27090 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
27091 ... here.
27092 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
27093 ... and here.
27094
27095 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
27096 variable definitions above inclusion of ../Rules.
27097
27098 2017-08-21 Joseph Myers <joseph@codesourcery.com>
27099
27100 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
27101 case calling __builtin_unreachable.
27102
27103 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27104
27105 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
27106 __waitpid_nocancel.
27107 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
27108 (__waitpid_nocancel): New macro.
27109 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
27110 macro.
27111 (__waitpid_nocancel): Replace macro with a function.
27112 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
27113 function.
27114
27115 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
27116 __fcntl_nocancel.
27117 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
27118 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
27119
27120 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
27121 __writev_nocancel_nostatus.
27122 (write_call_graph): Likewise.
27123 (write_bb_counts): Likewise.
27124 * resolv/herror.c (herror): Likewise.
27125 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
27126 macro.
27127 (__writev_nocancel_nostatus): New macro.
27128 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
27129 Remove macro.
27130 (__writev_nocancel_nostatus): New function.
27131
27132 2017-08-21 Joseph Myers <joseph@codesourcery.com>
27133
27134 Revert:
27135 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27136
27137 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27138 building libc.a.
27139 (hidden_proto): Likewise.
27140 (hidden_tls_proto): Likewise.
27141 (__hidden_proto): Likewise.
27142
27143 [BZ #21973]
27144 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
27145 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
27146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
27147 Likewise.
27148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
27149 Likewise.
27150 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
27151 Likewise.
27152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
27153 Likewise.
27154 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
27155 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
27156 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
27157 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
27158 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27159 GLIBC_2.0 sqrtl symbol.
27160
27161 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
27162 [__USE_MISC] (_LIB_VERSION): Likewise.
27163 [__USE_MISC] (struct exception): Likewise.
27164 [__USE_MISC] (matherr): Likewise.
27165 [__USE_MISC] (DOMAIN): Likewise.
27166 [__USE_MISC] (SING): Likewise.
27167 [__USE_MISC] (OVERFLOW): Likewise.
27168 [__USE_MISC] (UNDERFLOW): Likewise.
27169 [__USE_MISC] (TLOSS): Likewise.
27170 [__USE_MISC] (PLOSS): Likewise.
27171 [__USE_MISC] (HUGE): Likewise.
27172 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
27173 * math/math-svid-compat.h: New file.
27174 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
27175 and matherrl.
27176 * include/math.h [!_ISOMAC] (__matherr): Remove.
27177 * manual/arith.texi (FP Exceptions): Do not document matherr.
27178 * math/Makefile (tests): Change test-matherr to test-matherr-3.
27179 (tests-internal): New variable.
27180 (install-lib): Do not add libieee.a.
27181 (non-lib.a): Likewise.
27182 (extra-objs): Do not add libieee.a and ieee-math.o.
27183 (CPPFLAGS-s_lib_version.c): Remove variable.
27184 ($(objpfx)libieee.a): Remove rule.
27185 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
27186 * math/ieee-math.c: Remove.
27187 * math/libm-test-support.c (matherr): Remove.
27188 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
27189 and license notices. Include <math-svid-compat.h> and
27190 <shlib-compat.h>.
27191 (matherr): Undefine as macro. Use compat_symbol_reference.
27192 (_LIB_VERSION): Likewise.
27193 * math/test-matherr-2.c: New file.
27194 * math/test-matherr-3.c: Likewise.
27195 * sysdeps/generic/math_private.h (__kernel_standard): Remove
27196 declaration.
27197 (__kernel_standard_f): Likewise.
27198 (__kernel_standard_l): Likewise.
27199 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
27200 <math_private.h>. Include <math-svid-compat.h>.
27201 (_LIB_VERSION): Undefine as macro.
27202 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
27203 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
27204 [LIBM_SVID_COMPAT], use compat_symbol.
27205 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
27206 <math_private.h>. Include <math-svid-compat.h>.
27207 (matherr): Undefine as macro.
27208 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
27209 compat_symbol.
27210 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
27211 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
27212 compat_symbol_reference.
27213 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
27214 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
27215 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
27216 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
27217 (MATHERR_D): Remove declaration.
27218 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
27219 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
27220 [LIBM_BUILD] (pmatherrf): Likewise.
27221 [LIBM_BUILD] (pmatherr): Likewise.
27222 [LIBM_BUILD] (pmatherrl): Likewise.
27223 (DOMAIN): Likewise.
27224 (SING): Likewise.
27225 (OVERFLOW): Likewise.
27226 (UNDERFLOW): Likewise.
27227 (TLOSS): Likewise.
27228 (PLOSS): Likewise.
27229 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
27230 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
27231 compat_symbol.
27232 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
27233 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
27234 compat_symbol.
27235 * math/lgamma-compat.h: Include <math-svid-compat.h>.
27236 * math/w_acos_compat.c: Likewise.
27237 * math/w_acosf_compat.c: Likewise.
27238 * math/w_acosh_compat.c: Likewise.
27239 * math/w_acoshf_compat.c: Likewise.
27240 * math/w_acoshl_compat.c: Likewise.
27241 * math/w_acosl_compat.c: Likewise.
27242 * math/w_asin_compat.c: Likewise.
27243 * math/w_asinf_compat.c: Likewise.
27244 * math/w_asinl_compat.c: Likewise.
27245 * math/w_atan2_compat.c: Likewise.
27246 * math/w_atan2f_compat.c: Likewise.
27247 * math/w_atan2l_compat.c: Likewise.
27248 * math/w_atanh_compat.c: Likewise.
27249 * math/w_atanhf_compat.c: Likewise.
27250 * math/w_atanhl_compat.c: Likewise.
27251 * math/w_cosh_compat.c: Likewise.
27252 * math/w_coshf_compat.c: Likewise.
27253 * math/w_coshl_compat.c: Likewise.
27254 * math/w_exp10_compat.c: Likewise.
27255 * math/w_exp10f_compat.c: Likewise.
27256 * math/w_exp10l_compat.c: Likewise.
27257 * math/w_exp2_compat.c: Likewise.
27258 * math/w_exp2f_compat.c: Likewise.
27259 * math/w_exp2l_compat.c: Likewise.
27260 * math/w_fmod_compat.c: Likewise.
27261 * math/w_fmodf_compat.c: Likewise.
27262 * math/w_fmodl_compat.c: Likewise.
27263 * math/w_hypot_compat.c: Likewise.
27264 * math/w_hypotf_compat.c: Likewise.
27265 * math/w_hypotl_compat.c: Likewise.
27266 * math/w_j0_compat.c: Likewise.
27267 * math/w_j0f_compat.c: Likewise.
27268 * math/w_j0l_compat.c: Likewise.
27269 * math/w_j1_compat.c: Likewise.
27270 * math/w_j1f_compat.c: Likewise.
27271 * math/w_j1l_compat.c: Likewise.
27272 * math/w_jn_compat.c: Likewise.
27273 * math/w_jnf_compat.c: Likewise.
27274 * math/w_jnl_compat.c: Likewise.
27275 * math/w_lgamma_main.c: Likewise.
27276 * math/w_lgamma_r_compat.c: Likewise.
27277 * math/w_lgammaf_main.c: Likewise.
27278 * math/w_lgammaf_r_compat.c: Likewise.
27279 * math/w_lgammal_main.c: Likewise.
27280 * math/w_lgammal_r_compat.c: Likewise.
27281 * math/w_log10_compat.c: Likewise.
27282 * math/w_log10f_compat.c: Likewise.
27283 * math/w_log10l_compat.c: Likewise.
27284 * math/w_log2_compat.c: Likewise.
27285 * math/w_log2f_compat.c: Likewise.
27286 * math/w_log2l_compat.c: Likewise.
27287 * math/w_log_compat.c: Likewise.
27288 * math/w_logf_compat.c: Likewise.
27289 * math/w_logl_compat.c: Likewise.
27290 * math/w_pow_compat.c: Likewise.
27291 * math/w_powf_compat.c: Likewise.
27292 * math/w_powl_compat.c: Likewise.
27293 * math/w_remainder_compat.c: Likewise.
27294 * math/w_remainderf_compat.c: Likewise.
27295 * math/w_remainderl_compat.c: Likewise.
27296 * math/w_scalb_compat.c: Likewise.
27297 * math/w_scalbf_compat.c: Likewise.
27298 * math/w_scalbl_compat.c: Likewise.
27299 * math/w_sinh_compat.c: Likewise.
27300 * math/w_sinhf_compat.c: Likewise.
27301 * math/w_sinhl_compat.c: Likewise.
27302 * math/w_sqrt_compat.c: Likewise.
27303 * math/w_sqrtf_compat.c: Likewise.
27304 * math/w_sqrtl_compat.c: Likewise.
27305 * math/w_tgamma_compat.c: Likewise.
27306 * math/w_tgammaf_compat.c: Likewise.
27307 * math/w_tgammal_compat.c: Likewise.
27308 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
27309 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
27310 * sysdeps/ieee754/k_standard.c: Likewise.
27311 * sysdeps/ieee754/k_standardf.c: Likewise.
27312 * sysdeps/ieee754/k_standardl.c: Likewise.
27313 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
27314 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
27315 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
27316 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
27317 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
27318 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
27319 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
27320 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
27321 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
27322 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
27323 Likewise.
27324 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
27325 Likewise.
27326 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
27327 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
27328 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
27329 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
27330
27331 2017-08-21 Florian Weimer <fweimer@redhat.com>
27332
27333 [BZ #21864]
27334 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
27335 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
27336 Move before inclusion of ../Rules.
27337
27338 2017-08-21 Florian Weimer <fweimer@redhat.com>
27339
27340 [BZ #21972]
27341 * assert/assert.h (assert): Use static_cast (bool) for C++.
27342 Use the ternary operator in the warning branch for GNU C.
27343 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
27344 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
27345 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
27346 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
27347 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
27348
27349 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27350
27351 [BZ #18822]
27352 * sysdeps/unix/sysv/linux/x86_64/init-first.c
27353 (__syscall_clock_gettime): Add attribute_hidden.
27354 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
27355 (__start_context): Likewise.
27356
27357 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27358
27359 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27360 building libc.a.
27361 (hidden_proto): Likewise.
27362 (hidden_tls_proto): Likewise.
27363 (__hidden_proto): Likewise.
27364
27365 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27366
27367 * include/libc-symbols.h (attribute_hidden): Enable hidden
27368 visibility in libc.a compiled with PIE.
27369
27370 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27371
27372 [BZ #18822]
27373 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
27374 Add attribute_hidden.
27375
27376 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27377
27378 [BZ #21864]
27379 * Makerules (all-nonlib): Add $(others-extras).
27380 * catgets/Makefile (others-extras): New.
27381 * elf/Makefile (others-extras): Likewise.
27382 * nss/Makefile (others-extras): Likewise.
27383
27384 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27385
27386 [BZ #18822]
27387 * csu/libc-start.c (__libc_multiple_libcs): Removed.
27388 * elf/dl-open.c: Include <libc-internal.h>.
27389 (__libc_multiple_libcs): Removed.
27390 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
27391 <hp-timing.h>.
27392 * include/libc-internal.h (__libc_multiple_libcs): New.
27393 * misc/sbrk.c: Include <libc-internal.h>.
27394 (__libc_multiple_libcs): Removed.
27395
27396 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27397
27398 [BZ #18822]
27399 * grp/initgroups.c (__nss_group_database): Removed.
27400 (__nss_initgroups_database): Likewise.
27401 * nscd/gai.c (__nss_hosts_database): Likewise.
27402 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
27403 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
27404 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
27405 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
27406 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
27407 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
27408 attribute_hidden.
27409 * nss/nsswitch.c (__nss_database_custom): Define only if
27410 USE_NSCD is defined.
27411 (__nss_configure_lookup): Use __nss_database_custom only if
27412 USE_NSCD is defined.
27413 * nss/nsswitch.h (__nss_database_custom): Declare only if
27414 USE_NSCD is defined. Add attribute_hidden.
27415 (__nss_setent): Add attribute_hidden.
27416 (__nss_endent): Likewise.
27417 (__nss_getent_r): Likewise.
27418 (__nss_getent): Likewise.
27419 (DEFINE_DATABASE): Declare __nss_##arg##_database.
27420
27421 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27422
27423 [BZ #18822]
27424 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
27425 libc_hidden_proto and libc_hidden_def.
27426
27427 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27428
27429 [BZ #18822]
27430 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
27431 Add libc_hidden_proto.
27432 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
27433 Add libc_hidden_def.
27434
27435 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27436
27437 [BZ #21974]
27438 * gmon/Makefile (routines): Remove bb_init_func and
27439 bb_exit_func.
27440 (elide-routines.os): Removed.
27441 * gmon/bb_exit_func.c: Likewise.
27442 * gmon/bb_init_func.c: Likewise.
27443 * include/sys/gmon.h (__bb): Likewise.
27444 (__bb_init_func): Likewise.
27445 (__bb_exit_func): Likewise.
27446 * sysdeps/alpha/bb_init_func.S: Likewise.
27447
27448 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27449
27450 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
27451 * include/setjmp.h (____longjmp_chk): Here. Add
27452 attribute_hidden.
27453
27454 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
27455
27456 [BZ #18822]
27457 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
27458 attribute_hidden.
27459 (__strspn_sse2): Likewise.
27460
27461 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27462
27463 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
27464 (close_not_cancel_no_status): Likewise.
27465 (__close_nocancel): New macro.
27466 (__close_nocancel_nostatus): Likewise.
27467 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
27468 macro.
27469 (close_not_cancel): Likewise.
27470 (close_not_cancel_no_status): Likewise.
27471 (__close_nocancel): New prototype.
27472 (__close_nocancel_nostatus): New function.
27473 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
27474 * catgets/open_catalog.c (__open_catalog): Replace
27475 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
27476 * gmon/gmon.c (write_gmon): Likewise.
27477 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
27478 * intl/loadmsgcat.c (close): Likewise.
27479 * io/ftw.c (open_dir_stream): Likewise.
27480 (ftw_startup): Likewise.
27481 * libio/fileops.c (_IO_file_open): Likewise.
27482 (_IO_file_close_mmap): Likewise.
27483 (_IO_file_close): Likewise.
27484 * libio/iopopen.c (_IO_dup2): Likewise.
27485 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
27486 * locale/loadlocale.c (_nl_load_locale): Likewise.
27487 * login/utmp_file.c (pututline_file): Likewise.
27488 (endutent_file): Likewise.
27489 * misc/daemon.c (daemon): Likewise.
27490 * nscd/nscd_getai.c (__nscd_getai): Likewise.
27491 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
27492 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
27493 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
27494 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27495 * nscd/nscd_helper.c (open_socket): Likewise.
27496 (__nscd_open_socket): Likewise.
27497 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
27498 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
27499 (__nscd_innetgr): Likewise.
27500 * nss/nss_db/db-open.c (internal_setent): Likewise.
27501 * resolv/res-close.c (__res_iclose): Likewise.
27502 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
27503 * sysdeps/posix/closedir.c (__closedir): Likewise.
27504 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
27505 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27506 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
27507 (opendir_tail): Likewise.
27508 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27509 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
27510 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
27511 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
27512 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27513 (gethostid): Likewise.
27514 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27515 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27516 Likewise.
27517 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
27518 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
27519 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27520 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27521 Likewise.
27522 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
27523 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
27524 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27525 Likewise.
27526 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
27527 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27528 Likewise.
27529 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27530 Likewise.
27531 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
27532 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27533 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27534 __close_nocancel.
27535
27536 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
27537 (openat_not_cancel_3): Likewise.
27538 (openat64_not_cancel_3): Likewise).
27539 (openat_not_cancel_3): Likewise).
27540 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
27541 macro.
27542 (openat_not_cancel_3): Likewise.
27543 (openat64_not_cancel): Likewise.
27544 (openat64_not_cancel_3): Likewise.
27545 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
27546 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
27547 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
27548 __open{64}_nocancel.
27549 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
27550 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27551 * sysdeps/posix/opendir.c (__opendirat): Likewise.
27552
27553 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27554
27555 [BZ #18822]
27556 * include/argz.h (__argz_create_sep): New function prototype.
27557 (__argz_append): Likewise.
27558 (__argz_add): Likewise.
27559 (__argz_add_sep): Likewise.
27560 (__argz_delete): Likewise.
27561 (__argz_insert): Likewise.
27562 (__argz_replace): Likewise.
27563 * string/argz.h (__argz_create_sep): Removed.
27564 (__argz_append): Likewise.
27565 (__argz_add): Likewise.
27566 (__argz_add_sep): Likewise.
27567 (__argz_delete): Likewise.
27568 (__argz_insert): Likewise.
27569 (__argz_replace): Likewise.
27570
27571 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27572
27573 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
27574 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
27575 (GNU_PROPERTY_STACK_SIZE): Likewie.
27576 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
27577 (GNU_PROPERTY_LOPROC): Likewise.
27578 (GNU_PROPERTY_HIPROC): Likewise.
27579 (GNU_PROPERTY_LOUSER): Likewise.
27580 (GNU_PROPERTY_HIUSER): Likewise.
27581 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
27582 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
27583 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
27584 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
27585 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
27586 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
27587 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
27588 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
27589 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
27590 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
27591 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
27592 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
27593 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
27594 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
27595 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
27596 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
27597 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
27598 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
27599 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
27600 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
27601 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
27602 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
27603 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
27604
27605 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27606
27607 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
27608 in C++ mode.
27609
27610 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27611
27612 [BZ #21930]
27613 * math/math.h (isinf): Check if in C or C++ mode before using
27614 __builtin_types_compatible_p, since this is a C mode feature.
27615
27616 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27617
27618 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
27619 (__write_nocancel): New macro.
27620 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
27621 Rewrite as a function prototype.
27622 (write_not_cancel): Remove macro.
27623 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
27624 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
27625 (write_gmon): Likewise.
27626 * libio/fileops.c (_IO_new_file_write): Likewise.
27627 * login/utmp_file.c (pututline_file): Likewise.
27628 (updwtmp_file): Likewise.
27629 * stdio-common/psiginfo.c (psiginfo): Likewise.
27630 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27631 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27632 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27633 Likewise.
27634 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27635 Likewise.
27636
27637 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
27638 (__read_nocancel): New macro.
27639 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27640 __read_nocancel.
27641 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
27642 macro.
27643 (__read_nocancel): New prototype.
27644 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
27645 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
27646 with __read_nocancel.
27647 * intl/loadmsgcat.c (read): Likewise.
27648 * libio/fileops.c (_IO_file_read): Likewise.
27649 * locale/loadlocale.c (_nl_load_locale): Likewise.
27650 * login/utmp_file.c (getutent_r_file): Likewise.
27651 (internal_getut_r): Likewise.
27652 (getutline_r_file): Likewise.
27653 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
27654 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
27655 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27656 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27657 Likewise.
27658 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
27659 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27660 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27661 Likewise.
27662 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27663 Likewise.
27664 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27665 Likewise.
27666 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27667 Likewise.
27668 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27669
27670 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27671
27672 [BZ #21966]
27673 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
27674 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
27675 usable.
27676
27677 2017-08-17 DJ Delorie <dj@redhat.com>
27678
27679 * bug17079.c: Update to new test harness.
27680 * test-digits-dots.c: Likewise.
27681 * test-netdb.c: Likewise.
27682 * tst-field.c: Likewise.
27683 * tst-nss-getpwent.c: Likewise.
27684 * tst-nss-static.c: Likewise.
27685 * tst-nss-test1.c: Likewise.
27686 * tst-nss-test2.c: Likewise.
27687 * tst-nss-test3.c: Likewise.
27688 * tst-nss-test4.c: Likewise.
27689 * tst-nss-test5.c: Likewise.
27690
27691 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27692
27693 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
27694 (open_not_cancel_2): Likewise.
27695 (open_nocancel): New macro.
27696 (open64_nocancel): Likewise.
27697 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
27698 (open_not_cancel_2): Likewise.
27699 (__open_nocancel): New prototype.
27700 (__open64_nocancel): Likewise.
27701 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27702 __open_nocancel.
27703 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
27704 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
27705 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
27706 with __open_nocancel.
27707 * csu/check_fds.c (check_one_fd): Likewise.
27708 * gmon/gmon.c (write_gmon): Likewise.
27709 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
27710 * intl/loadmsgcat.c (open): Likewise.
27711 * libio/fileops.c (_IO_file_open): Likewise.
27712 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
27713 * locale/loadlocale.c (_nl_load_locale): Likewise.
27714 * login/utmp_file.c (setutent_file): Likewise.
27715 * misc/daemon.c (daemon): Likewise.
27716 * nss/nss_db/db-open.c (internal_setent): Likewise.
27717 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
27718 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
27719 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
27720 (__opendir): Likewise.
27721 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27722 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
27723 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27724 (gethostid): Likewise.
27725 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27726 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27727 Likewise.
27728 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
27729 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
27730 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27731 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27732 Likewise.
27733 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27734 Likewise.
27735 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27736 Likewise.
27737 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27738 Likewise.
27739 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27740 Likewise.
27741 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27742 Likewise.
27743 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
27744 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27745
27746 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
27747
27748 * benchtests/bench-skeleton.c (main): Add support for
27749 latency benchmarking.
27750 * benchtests/scripts/bench.py: Add support for latency benchmarking.
27751
27752 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
27753
27754 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
27755 the startup object.
27756
27757 2017-08-17 Florian Weimer <fweimer@redhat.com>
27758
27759 * include/sys/socket.h (__opensock): Remove internal_function.
27760 * socket/opensock.c (__opensock): Likewise.
27761 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
27762
27763 2017-08-16 Joseph Myers <joseph@codesourcery.com>
27764
27765 [BZ #21944]
27766 * signal/bits/types/__sigval_t.h: New file.
27767 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
27768 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
27769 and define sigval_t using __sigval_t.
27770 * include/bits/types/__sigval_t.h: New file.
27771 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
27772 instead of <bits/types/__sigval_t.h>.
27773 (struct sigevent): Use __sigval_t instead of sigval_t.
27774 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
27775 instead of <bits/types/__sigval_t.h>.
27776 (siginfo_t): Use __sigval_t instead of sigval_t.
27777 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
27778 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
27779 (struct sigevent): Use __sigval_t instead of sigval_t.
27780 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
27781 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
27782 (siginfo_t): Use __sigval_t instead of sigval_t.
27783 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
27784
27785 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27786
27787 * NEWS: Remove "[Add new features here]" for 2.27.
27788
27789 2017-08-16 Joseph Myers <joseph@codesourcery.com>
27790
27791 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
27792 libc.so.
27793
27794 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27795
27796 * NEWS: Mention x86-64 FMA optimization.
27797
27798 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27799
27800 [BZ #21912]
27801 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27802 Add e_expf-fma.
27803 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
27804 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
27805 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
27806
27807 2017-08-16 Andreas Schwab <schwab@suse.de>
27808
27809 [BZ #16750]
27810 CVE-2009-5064
27811 * elf/ldd.bash.in: Never run file directly.
27812
27813 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
27814
27815 [BZ #21955]
27816 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
27817 (L(SP_INF_0)): Likewise.
27818
27819 2017-08-15 Florian Weimer <fweimer@redhat.com>
27820
27821 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
27822 run-built-tests.
27823
27824 2017-08-15 Florian Weimer <fweimer@redhat.com>
27825
27826 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
27827 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
27828 BROKEN_THREAD_SIGNALS code.
27829 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
27830 request_list): Remove caller_pid member used for
27831 BROKEN_THREAD_SIGNALS.
27832 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
27833 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
27834 Remove BROKEN_THREAD_SIGNALS support.
27835 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
27836 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
27837
27838 2017-08-15 Florian Weimer <fweimer@redhat.com>
27839
27840 * gmon/Makefile (tests): Add tst-gmon.
27841 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
27842 Set.
27843 (tests-special): Add tst-gmon-prof.out.
27844 (tst-gmon.out): Depend on clean-tst-gmon-data.
27845 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
27846 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
27847 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
27848 startup object.
27849 * aclocal.m4 (GPROF): Set and substitute.
27850 * config.amke.in (GPROF): Set.
27851 * configure: Regenerate.
27852
27853 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
27854
27855 * elf/elf.h A (NT_PPC_TAR): New macro.
27856 (NT_PPC_PPR): Likewise.
27857 (NT_PPC_DSCR): Likewise.
27858 (NT_PPC_EBB): Likewise.
27859 (NT_PPC_PMU): Likewise.
27860 (NT_PPC_TM_CGPR): Likewise.
27861 (NT_PPC_TM_CFPR): Likewise.
27862 (NT_PPC_TM_CVMX): Likewise.
27863 (NT_PPC_TM_CVSX): Likewise.
27864 (NT_PPC_TM_SPR): Likewise.
27865 (NT_PPC_TM_CTAR): Likewise.
27866 (NT_PPC_TM_CPPR): Likewise.
27867 (NT_PPC_TM_CDSCR): Likewise.
27868
27869 2017-08-15 Florian Weimer <fweimer@redhat.com>
27870
27871 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
27872 regparm (2) instead of internal_function.
27873 (_MCOUNT_DECL): Adjust.
27874
27875 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
27876
27877 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
27878 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
27879
27880 2017-08-14 Joseph Myers <joseph@codesourcery.com>
27881
27882 * conform/data/sys/wait.h-data (si_value): Do not expect for
27883 XPG42.
27884
27885 2017-08-14 Florian Weimer <fweimer@redhat.com>
27886
27887 [BZ #21962]
27888 NSS: Create stubs for accidentally exported lookup functions.
27889 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
27890 Remove declaration.
27891 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
27892 (ether_hostton): Call __nss_ethers_lookup2 instead.
27893 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
27894 (ether_ntohost): Call __nss_ethers_lookup2 instead.
27895 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
27896 (setup): Call __nss_netgroup_lookup2 instead.
27897 * nss/Makefile (routines): Add compat-lookup.
27898 * nss/Versions (GLIBC_2.27): Add symbol version.
27899 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
27900 (DB_COMPAT_FCT): Remove.
27901 * nss/compat-lookup.c: New file.
27902 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
27903 from databases.def.
27904 * nss/service-lookup.c (NO_COMPAT): Remove definition.
27905 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
27906 (netname2user): Call __nss_publickey_lookup2 instead.
27907 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
27908 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
27909 instead.
27910
27911 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27912 Sergei Trofimovich <slyfox@inbox.ru>
27913
27914 [BZ #21908]
27915 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
27916 Rename to MMAP2_PAGE_UNIT.
27917 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
27918 __OFF_T_MATCHES_OFF64_T is not defined.
27919 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
27920 uint64_t.
27921 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
27922 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
27923
27924 2017-08-14 Florian Weimer <fweimer@redhat.com>
27925
27926 i386: Do not set internal_function.
27927 * config.h.in (USE_REGPARMS, internal_function): Remove.
27928 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
27929 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
27930
27931 2017-08-14 Florian Weimer <fweimer@redhat.com>
27932
27933 * elf/dl-init.c (_dl_init): Remove internal_function.
27934 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
27935 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
27936
27937 2017-08-14 Florian Weimer <fweimer@redhat.com>
27938
27939 * elf/rtld.c (_dl_start): Remove internal_function.
27940 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
27941 _dl_start.
27942
27943 2017-08-14 Florian Weimer <fweimer@redhat.com>
27944
27945 * elf/dl-fini.c (_dl_fini): Remove internal_function
27946 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27947
27948 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
27949
27950 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
27951 (bit_cpu_SHSTK): Likewise.
27952 (index_cpu_IBT): Likewise.
27953 (index_cpu_SHSTK): Likewise.
27954 (reg_IBT): Likewise.
27955 (reg_SHSTK): Likewise.
27956 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27957 Handle index_cpu_IBT and index_cpu_SHSTK.
27958
27959 2017-08-14 Mike FABIAN <mfabian@redhat.com>
27960
27961 [BZ #19982]
27962 * po/fr.po: Fix spelling mistake.
27963
27964 2017-08-13 Florian Weimer <fweimer@redhat.com>
27965
27966 * elf/dl-addr.c (_dl_addr): Remove internal_function.
27967 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
27968 (_dl_catch_error, _dl_receive_error): Likewise.
27969 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
27970 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
27971 (_dl_deallocate_tls): Likewise.
27972 * include/dlfcn.h (_dl_addr): Likewise.
27973 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
27974 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
27975 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
27976 Likewise.
27977
27978 2017-08-13 Florian Weimer <fweimer@redhat.com>
27979
27980 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
27981 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
27982 internal_function.
27983 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
27984
27985 2017-08-13 Florian Weimer <fweimer@redhat.com>
27986
27987 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
27988 internal_function.
27989 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
27990 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
27991 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
27992 internal_function from _dl_make_stack_executable_hook member.
27993 (_dl_make_stack_executable): Remove internal_function.
27994 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
27995 Likewise.
27996 * sysdeps/unix/sysv/linux/dl-execstack.c
27997 (_dl_make_stack_executable): Likewise.
27998
27999 2017-08-13 Florian Weimer <fweimer@redhat.com>
28000
28001 * sysdeps/unix/sysv/linux/netlinkaccess.h
28002 (__netlink_assert_response): Remove internal_function.
28003 * sysdeps/unix/sysv/linux/netlink_assert_response.c
28004 (__netlink_assert_response): Likewise.
28005
28006 2017-08-13 Florian Weimer <fweimer@redhat.com>
28007
28008 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
28009 internal_function.
28010 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
28011
28012 2017-08-13 Florian Weimer <fweimer@redhat.com>
28013
28014 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
28015 internal_function.
28016 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
28017 * inet/netgroup.h (__internal_setnetgrent)
28018 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
28019 * inet/getnetgrent_r.c (__internal_setnetgrent)
28020 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
28021 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
28022 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
28023 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
28024 * nss/nsswitch.h (db_lookup_function): Likewise.
28025
28026 2017-08-13 Florian Weimer <fweimer@redhat.com>
28027
28028 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
28029 Remove internal_function.
28030 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
28031 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
28032 message argument on the stack.
28033 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
28034 Likeweise.
28035
28036 2017-08-12 Mike FABIAN <mfabian@redhat.com>
28037
28038 Adapt test case data to the changes in the thousands
28039 separators.
28040
28041 [BZ #20756]
28042 * localedata/tst-langinfo.sh: Adapt test case data.
28043 * stdlib/tst-strfmon_l.c: Likewise.
28044 * stdlib/tst-strtod4.c: Likewise.
28045 * stdlib/tst-strtod5i.c: Likewise.
28046
28047 2017-08-11 Florian Weimer <fweimer@redhat.com>
28048
28049 [BZ #21242]
28050 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
28051 Suppress pedantic warning resulting from statement expression.
28052 (__ASSERT_FUNCTION): Add missing __extension__.
28053
28054 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28055
28056 * benchtests/bench-memmove-large.c: Print output in JSON
28057 format.
28058 * benchtests/bench-memmove.c: Likewise.
28059
28060 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
28061 * benchtests/bench-memchr.c (do_one_test): Likewise.
28062 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
28063 * benchtests/bench-memcpy.c (do_one_test): Likewise.
28064 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
28065 * benchtests/bench-memmove.c (do_one_test): Likewise.
28066 * benchtests/bench-memset-large.c (do_one_test): Likewise.
28067 * benchtests/bench-memset.c (do_one_test): Likewise.
28068 * benchtests/bench-string.h (test_init): Remove memsets.
28069
28070 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
28071
28072 * manual/lang.texi
28073 (Computing the Width of an Integer Data Type): Rename section to
28074 "Width of an Integer Type". Remove inaccurate statement regarding
28075 lack of C language facilities for determining width of integer
28076 types, and reorder content to improve flow and context of
28077 discussion.
28078
28079 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
28080
28081 * lang.texi (va_copy): Change standard from ISO to C99.
28082 (__va_copy): Add standard and header annotation.
28083 Update description for clarity of origins and current use.
28084
28085 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
28086
28087 [BZ #21941]
28088 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
28089 xssqrtqp requires operands to be in Vector Registers
28090 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
28091 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
28092 (__ieee754_sqrtf128): Likewise.
28093
28094 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
28095
28096 * sysdeps/aarch64/memcmp.S (memcmp):
28097 Rewrite of optimized memcmp.
28098
28099 2017-08-10 Florian Weimer <fweimer@redhat.com>
28100
28101 Introduce ld.so exceptions.
28102 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
28103 (_dl_exception_create, _dl_exception_create_format)
28104 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
28105 (_dl_catch_exception): Declare.
28106 (_dl_catch_error): Update comment.
28107 * elf/dl-error-skeleton.c (struct catch): Replace objname,
28108 errstring, malloced members with exception member.
28109 (_dl_out_of_memory): Remove.
28110 (fatal_error): New function, extracted from _dl_signal_error.
28111 (_dl_signal_exception, _dl_signal_cexception): New functions.
28112 (_dl_signal_error): Call _dl_exception_create to allocate an
28113 exception object.
28114 (_dl_catch_exception): New function, based on _dl_catch_error.
28115 (_dl_catch_error): Implement using _dl_catch_exception.
28116 * elf/dl-exception.c: New file.
28117 * elf/Makefile (dl-routines): Add dl-exception.
28118 (elide-routines.os): Likewise.
28119 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
28120 _dl_exception_create_format, _dl_exception_free.
28121 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
28122 _dl_signal_exception.
28123 * elf/dl-lookup.c (make_string): Remove.
28124 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
28125 _dl_signal_cexception, _dl_exception_free.
28126 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
28127 _dl_signal_exception.
28128 * elf/dl-sym.c (do_sym): Likewise.
28129 * elf/dl-version.c (make_string): Remove.
28130 (match_symbol): Use _dl_exception_create_format,
28131 _dl_signal_cexception, _dl_exception_free.
28132 (_dl_check_map_versions): Likewise.
28133 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
28134 _dl_catch_exception.
28135 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
28136 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
28137 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
28138 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
28139 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
28140 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
28141 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
28142 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
28143 Likewise.
28144 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
28145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
28146 (ld.so): Likewise.
28147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
28148 (ld.so): Likewise.
28149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
28150 Likewise.
28151 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
28152 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
28153 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
28154 Likewise.
28155 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
28156 Likewise.
28157 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
28158
28159 2017-08-10 Florian Weimer <fweimer@redhat.com>
28160
28161 * inet/net-internal.h (__inet6_scopeid_pton): Remove
28162 attribute_hidden, internal_function.
28163 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
28164 internal_function.
28165
28166 2017-08-10 Florian Weimer <fweimer@redhat.com>
28167
28168 * malloc/malloc.c (get_max_fast): Reimplement as an inline
28169 function which calls __builtin_unreachable.
28170
28171 2017-08-10 Mike FABIAN <mfabian@redhat.com>
28172
28173 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
28174 Indian monetary formatting
28175 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
28176 test cases.
28177
28178 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
28179
28180 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
28181 Fix typo in comment.
28182
28183 [BZ #21928]
28184 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
28185 PTRACE_SEIZE_DEVEL): Remove.
28186 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
28187 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
28188 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
28189 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
28190 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
28191
28192 2017-08-09 Joseph Myers <joseph@codesourcery.com>
28193
28194 * posix/bits/types.h (__qaddr_t): Remove.
28195
28196 [BZ #21457]
28197 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
28198 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28199 __glibc_reserved1.
28200 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
28201 (ucontext_t): Use __ctx with uc_flags.
28202 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
28203 (__ctxt): Likewise.
28204 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28205 __glibc_reserved1.
28206 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
28207 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28208 __glibc_reserved1.
28209 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
28210 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28211 __glibc_reserved1.
28212 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
28213 macro.
28214 (ucontext_t): Use __ctx with uc_flags.
28215 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
28216 (ucontext_t): Use __ctx with uc_flags.
28217 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
28218 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
28219 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
28220 (ucontext_t): Use __ctx with uc_flags.
28221 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
28222 undefine further down.
28223 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28224 __glibc_reserved1.
28225 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
28226 undefine further down.
28227 (ucontext_t): Use __ctx with uc_flags.
28228 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
28229 undefine further down.
28230 (ucontext_t): Use __ctx with uc_flags.
28231 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
28232 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
28233 Rename uc_pad to __glibc_reserved1.
28234 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
28235 undefine further down.
28236 (ucontext_t): Use __ctx with uc_flags.
28237 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
28238 further down.
28239 (ucontext_t): Use __ctx with uc_flags.
28240 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
28241 __ctx with uc_flags.
28242 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
28243 (ucontext_t): Use __ctx with uc_flags.
28244 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
28245 __ctx with uc_flags.
28246
28247 2017-08-09 Florian Weimer <fweimer@redhat.com>
28248
28249 [BZ #21932]
28250 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
28251 before early return.
28252
28253 2017-08-09 Andreas Schwab <schwab@suse.de>
28254
28255 [BZ #21041]
28256 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
28257 renamed alias.
28258
28259 [BZ #21041]
28260 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
28261 tst-compat-forwarder.
28262 (modules-names): Add tst-compat-forwarder-mod.
28263 ($(objpfx)tst-compat-forwarder): Depend on
28264 $(objpfx)tst-compat-forwarder-mod.so.
28265 * nptl/tst-compat-forwarder.c: New file.
28266 * nptl/tst-compat-forwarder-mod.c: New file.
28267
28268 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
28269
28270 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
28271 comments.
28272
28273 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
28274 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28275 memcpy_falkor.
28276 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
28277 Bump.
28278 (__libc_ifunc_impl_list): Add __memcpy_falkor.
28279 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
28280 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
28281 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28282 Add falkor.
28283 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
28284 New macro.
28285
28286 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28287
28288 [BZ #759]
28289 * manual/setjmp.texi (getcontex): Document uc_stack value
28290 compatibility differences.
28291
28292 2017-08-08 Joseph Myers <joseph@codesourcery.com>
28293
28294 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
28295 (old_malloc_hook): Likewise.
28296 (old_memalign_hook): Likewise.
28297 (old_realloc_hook): Likewise.
28298 (struct hdr): Likewise.
28299 (flood): Likewise.
28300 (freehook): Likewise.
28301 (mallochook): Likewise.
28302 (memalignhook): Likewise.
28303 (reallochook): Likewise.
28304 (mprobe): Likewise.
28305 * malloc/mtrace.c (mallwatch): Likewise.
28306 (tr_old_free_hook): Likewise.
28307 (tr_old_malloc_hook): Likewise.
28308 (tr_old_realloc_hook): Likewise.
28309 (tr_old_memalign_hook): Likewise.
28310 (tr_where): Likewise.
28311 (lock_and_info): Likewise.
28312 (tr_freehook): Likewise.
28313 (tr_mallochook): Likewise.
28314 (tr_reallochook): Likewise.
28315 (tr_memalignhook): Likewise.
28316 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
28317 * misc/mmap.c (__mmap): Likewise.
28318 * misc/mmap64.c (__mmap64): Likewise.
28319 * misc/mprotect.c (__mprotect): Likewise.
28320 * misc/msync.c (msync): Likewise.
28321 * misc/munmap.c (__munmap): Likewise.
28322 * posix/posix_madvise.c (posix_madvise): Likewise.
28323 * socket/send.c (__send): Likewise.
28324 * socket/sendto.c (__sendto): Likewise.
28325 * socket/setsockopt.c (__setsockopt): Likewise.
28326 * string/memcmp.c (__ptr_t): Remove macro.
28327 (MEMCMP): Use void * instead of ptr_t.
28328 * string/memrchr.c (__ptr_t): Remove macro.
28329 (__memrchr): Use void * instead of ptr_t.
28330 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
28331 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28332 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28333 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
28334 * sysdeps/mach/msync.c (msync): Likewise.
28335 * sysdeps/mach/munmap.c (__munmap): Likewise.
28336 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
28337 Likewise.
28338 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
28339 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
28340 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
28341 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
28342 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
28343 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
28344 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
28345 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
28346 Likewise.
28347 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
28348 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
28349 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
28350 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
28351 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
28352 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
28353 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
28354 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
28355 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
28356 Likewise.
28357 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
28358 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
28359 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
28360 (MEMCMP): Use void * instead of ptr_t.
28361 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
28362 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
28363
28364 2017-08-08 Florian Weimer <fweimer@redhat.com>
28365
28366 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
28367 return statement.
28368
28369 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
28370
28371 [BZ #21913]
28372 * csu/libc-tls.c: Include <startup.h> first.
28373 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
28374 * elf/dl-tunables.c: Include <startup.h> first.
28375 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
28376 * sysdeps/generic/startup.h: New file.
28377 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
28378 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
28379 (I386_USE_SYSENTER): New. Defined to 0.
28380
28381 2017-08-08 Andreas Schwab <schwab@suse.de>
28382
28383 [BZ #21041]
28384 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
28385 * nptl/pt-system.c (system): Likewise.
28386
28387 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28388
28389 [BZ #21780]
28390 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
28391 EOPNOTSUPP.
28392 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
28393 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
28394 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
28395 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
28396 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
28397 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
28398 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
28399
28400 2017-08-07 Joseph Myers <joseph@codesourcery.com>
28401
28402 [BZ #21899]
28403 * bits/sigaction.h (struct sigaction): Define sa_handler and
28404 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
28405 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28406 [__USE_XOPEN_EXTENDED].
28407 (SA_RESTART): Likewise.
28408 (SA_NODEFER): Likewise.
28409 (SA_RESETHAND): Likewise.
28410 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
28411 (struct sigaction): Define sa_handler and sa_sigaction using union
28412 also for [__USE_XOPEN_EXTENDED].
28413 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28414 [__USE_XOPEN_EXTENDED].
28415 (SA_RESTART): Likewise.
28416 (SA_NODEFER): Likewise.
28417 (SA_RESETHAND): Likewise.
28418 * sysdeps/unix/sysv/linux/bits/sigaction.h
28419 (struct sigaction): Define sa_handler and sa_sigaction using union
28420 also for [__USE_XOPEN_EXTENDED].
28421 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28422 [__USE_XOPEN_EXTENDED].
28423 (SA_RESTART): Likewise.
28424 (SA_NODEFER): Likewise.
28425 (SA_RESETHAND): Likewise.
28426 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
28427 (struct sigaction): Define sa_handler and sa_sigaction using union
28428 also for [__USE_XOPEN_EXTENDED].
28429 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28430 [__USE_XOPEN_EXTENDED].
28431 (SA_RESTART): Likewise.
28432 (SA_NODEFER): Likewise.
28433 (SA_RESETHAND): Likewise.
28434 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
28435 (struct sigaction): Define sa_handler and sa_sigaction using union
28436 also for [__USE_XOPEN_EXTENDED].
28437 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28438 [__USE_XOPEN_EXTENDED].
28439 (SA_RESTART): Likewise.
28440 (SA_NODEFER): Likewise.
28441 (SA_RESETHAND): Likewise.
28442 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28443 (struct sigaction): Define sa_handler and sa_sigaction using union
28444 also for [__USE_XOPEN_EXTENDED].
28445 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28446 [__USE_XOPEN_EXTENDED].
28447 (SA_RESTART): Likewise.
28448 (SA_NODEFER): Likewise.
28449 (SA_RESETHAND): Likewise.
28450 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
28451 (struct sigaction): Define sa_handler and sa_sigaction using union
28452 also for [__USE_XOPEN_EXTENDED].
28453 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28454 [__USE_XOPEN_EXTENDED].
28455 (SA_RESTART): Likewise.
28456 (SA_NODEFER): Likewise.
28457 (SA_RESETHAND): Likewise.
28458 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
28459 (struct sigaction): Define sa_handler and sa_sigaction using union
28460 also for [__USE_XOPEN_EXTENDED].
28461 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28462 [__USE_XOPEN_EXTENDED].
28463 (SA_RESTART): Likewise.
28464 (SA_NODEFER): Likewise. Define directly rather than as alias.
28465 (SA_RESETHAND): Likewise.
28466 (SA_INTERRUPT): Define only for [__USE_MISC].
28467 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
28468 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
28469 [__USE_MISC].
28470 (SA_STACK): Define only for [__USE_MISC].
28471 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
28472 (struct sigaction): Define sa_handler and sa_sigaction using union
28473 also for [__USE_XOPEN_EXTENDED].
28474 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28475 [__USE_XOPEN_EXTENDED].
28476 (SA_RESTART): Likewise.
28477 (SA_NODEFER): Likewise.
28478 (SA_RESETHAND): Likewise.
28479 (SA_NOPTRACE): Define only for [__USE_MISC].
28480
28481 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
28482 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
28483 (struct catalog_info): Likewise.
28484 * inet/htontest.c (lo): Likewise.
28485 (foo): Likewise.
28486 * inet/inet_lnaof.c (inet_lnaof): Likewise.
28487 * inet/inet_net.c (inet_network): Likewise.
28488 * inet/inet_netof.c (inet_netof): Likewise.
28489 * inet/rcmd.c (__ivaliduser): Likewise.
28490 (iruserok): Likewise.
28491 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
28492 * locale/programs/locale-spec.c (locale_special): Likewise.
28493 * nis/nis_findserv.c (struct findserv_req): Likewise.
28494 (__nis_findfastest_with_timeout): Likewise.
28495 * nss/test-netdb.c (test_network): Likewise.
28496 * resolv/inet_neta.c (inet_neta): Likewise.
28497 * resolv/ns_date.c (ns_datetosecs): Likewise.
28498 (SECS_PER_DAY): Likewise.
28499 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
28500 Likewise.
28501 * resolv/res_comp.c (__putlong): Likewise.
28502 (__putshort): Likewise.
28503 (_getlong): Likewise.
28504 (_getshort): Likewise.
28505 * resolv/res_debug.c (p_time): Likewise.
28506 (precsize_ntoa): Likewise.
28507 (precsize_aton): Likewise.
28508 (latlon2ul): Likewise.
28509 (loc_aton): Likewise.
28510 (loc_ntoa): Likewise.
28511 * resolv/res_hconf.c (struct netaddr): Likewise.
28512 (_res_hconf_reorder_addrs): Likewise.
28513 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
28514 (clnttcp_control): Likewise.
28515 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
28516 (clntudp_control): Likewise.
28517 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
28518 (clntunix_control): Likewise.
28519 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
28520 * sunrpc/rpc/auth.h (union des_block): Likewise.
28521 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
28522 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
28523 (xdrrec_create): Likewise.
28524 (xdrrec_endofrecord): Likewise.
28525 (flush_out): Likewise.
28526 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
28527 (xdrstdio_putlong): Likewise.
28528 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
28529 Likewise.
28530
28531 * misc/sys/cdefs.h (__long_double_t): Remove.
28532 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
28533 instead of __long_double_t,
28534 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
28535
28536 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
28537
28538 * benchtests/scripts/compare_strings.py: Avoid display error when
28539 running on a text terminal.
28540
28541 * benchtests/scripts/compare_strings.py (main): Add an
28542 optional -base option.
28543 (process_results): New argument base_func.
28544
28545 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
28546 hardcoding memcpy.
28547 * benchtests/bench-memcpy-large.c (test_name): Likewise.
28548 * benchtests/bench-memcpy-random.c (test_name): Likewise.
28549
28550 2017-08-07 Andreas Schwab <schwab@suse.de>
28551
28552 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
28553 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
28554 * intl/Makefile ($(objpfx)tst-gettext.out)
28555 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
28556 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
28557 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
28558 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
28559 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
28560 * posix/Makefile ($(objpfx)globtest.out)
28561 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
28562 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
28563 ($(objpfx)tst-printf.out): Likewise.
28564 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
28565 ($(objpfx)tst-setcontext3.out): Likewise.
28566
28567 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
28568
28569 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28570 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
28571 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
28572 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
28573 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
28574 and mptan-fma.
28575 (CFLAGS-doasin-fma.c): New.
28576 (CFLAGS-dosincos-fma.c): Likewise.
28577 (CFLAGS-e_asin-fma.c): Likewise.
28578 (CFLAGS-e_atan2-fma.c): Likewise.
28579 (CFLAGS-e_exp-fma.c): Likewise.
28580 (CFLAGS-e_log-fma.c): Likewise.
28581 (CFLAGS-e_pow-fma.c): Likewise.
28582 (CFLAGS-halfulp-fma.c): Likewise.
28583 (CFLAGS-mpa-fma.c): Likewise.
28584 (CFLAGS-mpatan-fma.c): Likewise.
28585 (CFLAGS-mpatan2-fma.c): Likewise.
28586 (CFLAGS-mpexp-fma.c): Likewise.
28587 (CFLAGS-mplog-fma.c): Likewise.
28588 (CFLAGS-mpsqrt-fma.c): Likewise.
28589 (CFLAGS-mptan-fma.c): Likewise.
28590 (CFLAGS-s_atan-fma.c): Likewise.
28591 (CFLAGS-sincos32-fma.c): Likewise.
28592 (CFLAGS-slowexp-fma.c): Likewise.
28593 (CFLAGS-slowpow-fma.c): Likewise.
28594 (CFLAGS-s_sin-fma.c): Likewise.
28595 (CFLAGS-s_tan-fma.c): Likewise.
28596 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
28597 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
28598 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
28599 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
28600 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
28601 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
28602 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
28603 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
28604 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
28605 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
28606 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
28607 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
28608 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
28609 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
28610 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
28611 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
28612 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
28613 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
28614 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
28615 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
28616 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
28617 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
28618 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
28619 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
28620 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28621 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28622 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28623 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
28624 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28625 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28626 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28627
28628 2017-08-04 Joseph Myers <joseph@codesourcery.com>
28629
28630 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
28631 (min_of_type_f): New macro.
28632 (min_of_type_): Likewise.
28633 (min_of_type_l): Likewise.
28634 (min_of_type_f128): Likewise.
28635 (min_of_type): Define using __MATH_TG and taking an expression
28636 argument.
28637 (math_check_force_underflow): Pass expression instead of type to
28638 min_of_type.
28639 (math_check_force_underflow_nonneg): Likewise.
28640
28641 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28642
28643 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
28644 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
28645 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
28646
28647 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28648
28649 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28650 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
28651 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
28652 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
28653 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
28654 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
28655 memcpy_chk-nonshared, mempcpy_chk-nonshared,
28656 memmove_chk-nonshared and memset_chk-nonshared
28657 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
28658 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
28659 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
28660 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
28661 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
28662 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
28663 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
28664 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
28665 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
28666 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
28667 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
28668 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
28669 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
28670 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
28671 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
28672 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
28673 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
28674 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
28675 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
28676 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
28677 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
28678 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
28679 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
28680 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
28681 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
28682 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
28683 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
28684 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
28685 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
28686 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
28687 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
28688 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
28689 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
28690 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
28691 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
28692 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
28693 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
28694 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
28695 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
28696 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
28697 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
28698 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
28699 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
28700 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
28701 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
28702 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
28703 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
28704 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
28705 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
28706 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
28707 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
28708 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
28709 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
28710 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
28711 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
28712 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
28713 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
28714 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
28715 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
28716 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
28717 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
28718 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
28719 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
28720 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
28721 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
28722 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
28723 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
28724 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
28725 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
28726 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
28727 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
28728 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
28729 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
28730 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
28731 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28732 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28733 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28734 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28735 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28736 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28737 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
28738 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
28739 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
28740 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
28741 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
28742 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
28743 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
28744 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
28745 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
28746 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
28747 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
28748 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
28749 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
28750 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
28751 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
28752 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
28753 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
28754 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
28755 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
28756 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
28757 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
28758 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
28759 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
28760 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
28761 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
28762 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
28763 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
28764 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
28765
28766 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28767
28768 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
28769 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
28770 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
28771 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
28772 svml_d_log2_core-sse2, svml_d_log4_core-sse,
28773 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
28774 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
28775 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
28776 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
28777 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
28778 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
28779 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
28780 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
28781 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
28782 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
28783 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
28784 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
28785 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
28786 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
28787 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
28788 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
28789 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
28790 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
28791 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
28792 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
28793 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
28794 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
28795 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
28796 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
28797 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
28798 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
28799 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
28800 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
28801 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
28802 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
28803 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
28804 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
28805 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
28806 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
28807 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
28808 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
28809 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
28810 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
28811 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
28812 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
28813 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
28814 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
28815 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
28816 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
28817 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
28818 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
28819 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
28820 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
28821 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
28822 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
28823 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
28824 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
28825 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
28826 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
28827 ...
28828 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
28829 Don't include <sysdep.h> nor <init-arch.h>.
28830 (_ZGVbN2v_cos): Removed.
28831 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
28832 ...
28833 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
28834 Don't include <sysdep.h> nor <init-arch.h>.
28835 (_ZGVdN4v_cos): Removed.
28836 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
28837 ...
28838 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
28839 Don't include <sysdep.h> nor <init-arch.h>.
28840 (_ZGVeN8v_cos): Removed.
28841 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
28842 ...
28843 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
28844 Don't include <sysdep.h> nor <init-arch.h>.
28845 (_ZGVbN2v_exp): Removed.
28846 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
28847 ...
28848 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
28849 Don't include <sysdep.h> nor <init-arch.h>.
28850 (_ZGVdN4v_exp): Removed.
28851 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
28852 ...
28853 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
28854 Don't include <sysdep.h> nor <init-arch.h>.
28855 (_ZGVeN8v_exp): Removed.
28856 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
28857 ...
28858 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
28859 Don't include <sysdep.h> nor <init-arch.h>.
28860 (_ZGVbN2v_log): Removed.
28861 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
28862 ...
28863 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
28864 Don't include <sysdep.h> nor <init-arch.h>.
28865 (_ZGVdN4v_log): Removed.
28866 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
28867 ...
28868 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
28869 Don't include <sysdep.h> nor <init-arch.h>.
28870 (_ZGVeN8v_log): Removed.
28871 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
28872 ...
28873 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
28874 Don't include <sysdep.h> nor <init-arch.h>.
28875 (_ZGVbN2vv_pow): Removed.
28876 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
28877 ...
28878 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
28879 Don't include <sysdep.h> nor <init-arch.h>.
28880 (_ZGVdN4vv_pow): Removed.
28881 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
28882 ...
28883 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
28884 Don't include <sysdep.h> nor <init-arch.h>.
28885 (_ZGVeN8vv_pow): Removed.
28886 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
28887 ...
28888 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
28889 Don't include <sysdep.h> nor <init-arch.h>.
28890 (_ZGVbN2v_sin): Removed.
28891 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
28892 ...
28893 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
28894 Don't include <sysdep.h> nor <init-arch.h>.
28895 (_ZGVbN4v_sin): Removed.
28896 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
28897 ...
28898 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
28899 Don't include <sysdep.h> nor <init-arch.h>.
28900 (_ZGVbN8v_sin): Removed.
28901 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
28902 ...
28903 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
28904 Don't include <sysdep.h> nor <init-arch.h>.
28905 (_ZGVbN2vvv_sincos): Removed.
28906 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
28907 ...
28908 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
28909 Don't include <sysdep.h> nor <init-arch.h>.
28910 (_ZGVdN4vvv_sincos): Removed.
28911 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
28912 ...
28913 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
28914 Don't include <sysdep.h> nor <init-arch.h>.
28915 (_ZGVeN8vvv_sincos): Removed.
28916 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
28917 ...
28918 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
28919 Don't include <sysdep.h> nor <init-arch.h>.
28920 (_ZGVeN16v_cosf): Removed.
28921 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
28922 ...
28923 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
28924 Don't include <sysdep.h> nor <init-arch.h>.
28925 (_ZGVbN4v_cosf): Removed.
28926 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
28927 ...
28928 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
28929 Don't include <sysdep.h> nor <init-arch.h>.
28930 (_ZGVdN8v_cosf): Removed.
28931 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
28932 ...
28933 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
28934 Don't include <sysdep.h> nor <init-arch.h>.
28935 (_ZGVeN16v_expf): Removed.
28936 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
28937 ...
28938 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
28939 Don't include <sysdep.h> nor <init-arch.h>.
28940 (_ZGVbN4v_expf): Removed.
28941 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
28942 ...
28943 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
28944 Don't include <sysdep.h> nor <init-arch.h>.
28945 (_ZGVdN8v_expf): Removed.
28946 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
28947 ...
28948 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
28949 Don't include <sysdep.h> nor <init-arch.h>.
28950 (_ZGVeN16v_logf): Removed.
28951 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
28952 ...
28953 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
28954 Don't include <sysdep.h> nor <init-arch.h>.
28955 (_ZGVbN4v_logf): Removed.
28956 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
28957 ...
28958 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
28959 Don't include <sysdep.h> nor <init-arch.h>.
28960 (_ZGVdN8v_logf): Removed.
28961 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
28962 ...
28963 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
28964 Don't include <sysdep.h> nor <init-arch.h>.
28965 (_ZGVeN16vv_powf): Removed.
28966 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
28967 ...
28968 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
28969 Don't include <sysdep.h> nor <init-arch.h>.
28970 (_ZGVbN4vv_powf): Removed.
28971 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
28972 ...
28973 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
28974 Don't include <sysdep.h> nor <init-arch.h>.
28975 (_ZGVdN8vv_powf): Removed.
28976 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
28977 ...
28978 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
28979 Don't include <sysdep.h> nor <init-arch.h>.
28980 (_ZGVeN16vvv_sincosf): Removed.
28981 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
28982 ...
28983 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
28984 Don't include <sysdep.h> nor <init-arch.h>.
28985 (_ZGVbN4vvv_sincosf): Removed.
28986 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
28987 ...
28988 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
28989 Don't include <sysdep.h> nor <init-arch.h>.
28990 (_ZGVdN8vvv_sincosf): Removed.
28991 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
28992 ...
28993 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
28994 Don't include <sysdep.h> nor <init-arch.h>.
28995 (_ZGVeN16v_sinf): Removed.
28996 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
28997 ...
28998 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
28999 Don't include <sysdep.h> nor <init-arch.h>.
29000 (_ZGVbN4v_sinf): Removed.
29001 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
29002 ...
29003 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
29004 Don't include <sysdep.h> nor <init-arch.h>.
29005 (_ZGVdN8v_sinf): Removed.
29006
29007 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29008
29009 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29010 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
29011 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
29012 s_rint-sse4_1 and s_rintf-sse4_1.
29013 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
29014 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
29015 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
29016 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
29017 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
29018 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
29019 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
29020 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
29021 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
29022 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
29023 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
29024 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29025 (__ceil): Removed.
29026 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
29027 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
29028 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29029 (__ceilf): Removed.
29030 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
29031 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
29032 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29033 (__floor): Removed.
29034 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
29035 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
29036 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29037 (__floorf): Removed.
29038 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
29039 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
29040 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29041 (__nearbyint): Removed.
29042 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
29043 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
29044 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29045 (__nearbyintf): Removed.
29046 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
29047 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
29048 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29049 (__rint): Removed.
29050 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
29051 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
29052 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29053 (__rintf): Removed.
29054
29055 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29056
29057 * sysdeps/i386/start.S (_start): Check Check PIC instead of
29058 SHARED. Avoid dynamic relocation against main in static PIE.
29059
29060 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29061
29062 [BZ #21815]
29063 * elf/Makefile (CFLAGS-tst-prelink.c): New.
29064 (LDFLAGS-tst-prelink): Likewise.
29065
29066 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29067
29068 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
29069 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
29070 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
29071 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
29072 (INTERNAL_SYSCALL_NCS): Likewise.
29073 (LOADARGS_1): Likewise.
29074 (LOADARGS_5): Likewise.
29075 (RESTOREARGS_1): Likewise.
29076 (RESTOREARGS_5): Likewise.
29077
29078 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29079
29080 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
29081 (MEMPCPY_SYMBOL): Likewise.
29082 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
29083 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
29084 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
29085 in libc.a.
29086 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
29087 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
29088 Likewise.
29089 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
29090 (__hidden_ver1): Don't use in libc.a.
29091 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
29092 (__mempcpy): Don't create a weak alias in libc.a.
29093 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
29094 libc.a.
29095 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
29096 (__hidden_ver1): Don't use in libc.a.
29097
29098 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29099
29100 * config.make.in (have-insert): New.
29101 * configure.ac (libc_cv_insert): New. Set to yes if linker
29102 supports INSERT in linker script.
29103 (AC_SUBST(libc_cv_insert): New.
29104 * configure: Regenerated.
29105 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
29106 if $(have-insert) == yes.
29107
29108 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29109
29110 * elf/Makefile (tests): Add vismain only if
29111 $(have-protected-data) == yes.
29112 (tests-pie): Likewise.
29113
29114 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29115
29116 [BZ #21871]
29117 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
29118 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
29119
29120 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29121
29122 [BZ #21790]
29123 * sysdeps/i386/i586/memset.S
29124 (__memset_zero_constant_len_parameter): Removed.
29125 * sysdeps/i386/i686/memset.S
29126 (__memset_zero_constant_len_parameter): Likewise.
29127 * sysdeps/i386/i686/multiarch/memset_chk.S
29128 (__memset_zero_constant_len_parameter): Likewise.
29129 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
29130 Likewise.
29131
29132 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
29133
29134 * stdlib/getentropy.c (getentropy): Change return type to int.
29135
29136 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
29137
29138 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
29139
29140 2017-08-03 Joseph Myers <joseph@codesourcery.com>
29141
29142 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
29143 u_intN_t.
29144 * math/s_nexttowardf.c (__nexttowardf): Likewise.
29145 * sysdeps/generic/math_private.h (ieee_double_shape_type):
29146 Likewise.
29147 (ieee_float_shape_type): Likewise.
29148 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
29149 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
29150 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
29151 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
29152 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
29153 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
29154 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
29155 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
29156 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
29157 Likewise.
29158 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
29159 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
29160 (__ieee754_yn): Likewise.
29161 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29162 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29163 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
29164 Likewise.
29165 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
29166 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
29167 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
29168 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
29169 (__erfc): Likewise.
29170 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
29171 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
29172 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
29173 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
29174 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
29175 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
29176 Likewise.
29177 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
29178 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
29179 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
29180 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
29181 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
29182 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
29183 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
29184 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
29185 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
29186 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
29187 (__issignaling): Likewise.
29188 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
29189 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
29190 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
29191 Likewise.
29192 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29193 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29194 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
29195 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
29196 Likewise.
29197 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
29198 Likewise.
29199 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
29200 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
29201 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
29202 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
29203 (__erfcf): Likewise.
29204 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
29205 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
29206 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
29207 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
29208 Likewise.
29209 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
29210 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
29211 Likewise.
29212 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
29213 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
29214 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
29215 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
29216 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
29217 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
29218 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
29219 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
29220 Likewise.
29221 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
29222 Likewise.
29223 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
29224 Likewise.
29225 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
29226 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
29227 Likewise.
29228 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
29229 Likewise.
29230 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29231 (__ieee754_ynl): Likewise.
29232 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
29233 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
29234 Likewise.
29235 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
29236 Likewise.
29237 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
29238 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
29239 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
29240 Likewise.
29241 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
29242 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
29243 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
29244 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
29245 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
29246 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
29247 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
29248 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
29249 Likewise.
29250 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
29251 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
29252 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
29253 Likewise.
29254 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
29255 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
29256 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
29257 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
29258 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
29259 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29260 Likewise.
29261 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
29262 Likewise.
29263 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
29264 Likewise.
29265 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
29266 Likewise.
29267 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
29268 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
29269 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
29270 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
29271 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
29272 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
29273 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
29274 Likewise.
29275 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
29276 Likewise.
29277 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
29278 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
29279 Likewise.
29280 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
29281 (__ieee754_remainderl): Likewise.
29282 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
29283 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
29284 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
29285 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
29286 Likewise.
29287 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
29288 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
29289 Likewise.
29290 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
29291 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
29292 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
29293 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
29294 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29295 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
29296 Likewise.
29297 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
29298 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
29299 (__ieee754_y0l): Likewise.
29300 (pzero): Likewise.
29301 (qzero): Likewise.
29302 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
29303 (__ieee754_y1l): Likewise.
29304 (pone): Likewise.
29305 (qone): Likewise.
29306 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29307 (__ieee754_ynl): Likewise.
29308 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
29309 (__ieee754_lgammal_r): Likewise.
29310 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
29311 Likewise.
29312 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
29313 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
29314 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
29315 (__erfcl): Likewise.
29316 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
29317 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
29318 Likewise.
29319 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
29320 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
29321 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
29322 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
29323 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
29324 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
29325 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
29326 Likewise.
29327 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
29328 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
29329 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
29330 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
29331 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
29332 Likewise.
29333 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
29334 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
29335 Likewise.
29336 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
29337 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
29338 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
29339 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
29340 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
29341
29342 2017-08-03 Florian Weimer <fweimer@redhat.com>
29343
29344 [BZ #21885]
29345 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
29346 on memory allocation failure.
29347
29348 2017-08-03 Alan Modra <amodra@gmail.com>
29349
29350 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
29351 tst-tlsopt-powerpc.c with function name change and no test harness.
29352 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
29353 Call tls_get_addr_opt_test.
29354 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
29355 (modules-names): Add mod-tlsopt-powerpc.
29356 (mod-tlsopt-powerpc.so-no-z-defs): Define.
29357 (tst-tlsopt-powerpc): Depend on .so.
29358 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
29359 define. Expand use in TLS_GD and TLS_LD.
29360
29361 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29362
29363 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
29364 function.
29365 * sysdeps/posix/shm_open.c: Include <pthread.h>.
29366
29367 2017-08-02 Joseph Myers <joseph@codesourcery.com>
29368
29369 [BZ #21686]
29370 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
29371 comparing size with that of double.
29372 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29373 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29374 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29375 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29376 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29377 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
29378 unsigned __int128 types.
29379
29380 2017-08-02 Steve Ellcey <sellcey@cavium.com>
29381
29382 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
29383 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
29384 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
29385 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
29386 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
29387
29388 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29389
29390 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
29391
29392 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29393
29394 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
29395 of SHARED.
29396 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
29397 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29398 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29399 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29400 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29401 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29402 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29403
29404 2017-08-02 Joseph Myers <joseph@codesourcery.com>
29405
29406 [BZ #21685]
29407 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
29408 bit-field expressions passed to sizeof or typeof.
29409 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29410 (__TGMATH_F128): Likewise.
29411 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29412 (__TGMATH_CF128): Likewise.
29413 (__TGMATH_UNARY_REAL_ONLY): Likewise.
29414 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
29415 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
29416 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
29417 (__TGMATH_BINARY_REAL_ONLY): Likewise.
29418 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29419 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29420 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29421 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29422 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
29423 (__TGMATH_UNARY_REAL_IMAG): Likewise.
29424 (__TGMATH_UNARY_IMAG): Likewise.
29425 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
29426 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29427 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
29428 type.
29429 (define_vars_for_type): Handle bit_field type specially.
29430 (Tests.__init__): Declare structure with bit-field element.
29431
29432 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29433
29434 [BZ #21791]
29435 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
29436 (MEMCPY_CHK): Define only if SHARED is defined.
29437 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
29438 Likewise.
29439 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
29440 Likewise.
29441
29442 See ChangeLog.18 for earlier changes.