]> git.ipfire.org Git - thirdparty/glibc.git/blame_incremental - ChangeLog
regex: fix storage-exhaustion error
[thirdparty/glibc.git] / ChangeLog
... / ...
CommitLineData
12018-12-15 Paul Eggert <eggert@cs.ucla.edu>
2
3 regex: fix storage-exhaustion error
4 [BZ #18040]
5 * posix/regexec.c (get_subexp):
6 Do not continue if storage is exhausted.
7
82018-12-15 Assaf Gordon <assafgordon@gmail.com>
9
10 regex: fix heap-use-after-free error
11 [BZ #18040]
12 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
13 https://debbugs.gnu.org/32592
14 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
15 call extend_buffers which reallocates the re_string_t internal buffer.
16 Local variable 'buf' was not updated in such case, resulting in
17 use-after-free.
18 * posix/regexec.c (get_subexp): Update 'buf' after call to
19 get_subexp_sub.
20
212018-12-15 Florian Weimer <fweimer@redhat.com>
22
23 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
24 (minimum_stride_size): Use it.
25 (support_blob_repeat_allocate): Likewise.
26
272018-12-14 Joseph Myers <joseph@codesourcery.com>
28
29 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
30 definition.
31 (acosh): Likewise.
32 (atanh): Likewise.
33
342018-12-14 Florian Weimer <fweimer@redhat.com>
35
36 * manual/process.texi (Process Creation Concepts): Remove
37 documentation of process (ID) lifetime. List more process
38 creation functions. Reference Process Identification section.
39 (Process Identification): Add information about process ID
40 lifetime. Describe Linux thread/task IDs.
41 * manual/signal.texi (Signaling Another Process): Mention that the
42 signal is always sent to the process.
43
442018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
45
46 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
47 and tst-ldbl-efgcvt.
48 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
49 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
50 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
51 (fcvt_tests, output_error, output_r_error, do_test): Use the
52 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
53 select the type of floating-point variables and arguments; to
54 produce extra tests for double and conversion specifiers for
55 printf; and to set the names of called functions.
56 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
57 in tst-efgcvt-template.c.
58 * misc/tst-ldbl-efgcvt.c: Likewise.
59
602018-12-14 Stefan Liebler <stli@linux.ibm.com>
61
62 * nss/Makefile (tst-nss-test3.out): New rule.
63
642018-12-13 Joseph Myers <joseph@codesourcery.com>
65
66 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
67 clobber sp.
68
692018-12-13 fanjinke <fanjinke@hygon.cn>
70
71 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
72 "HygonGenuine".
73
742018-12-13 Andreas Schwab <schwab@suse.de>
75
76 [BZ #23861]
77 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
78 (__pthread_rwlock_rdlock_full): Update expected value for
79 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
80 * nptl/tst-rwlock-pwn.c: New file.
81 * nptl/Makefile (tests): Add tst-rwlock-pwn.
82
832018-12-12 Joseph Myers <joseph@codesourcery.com>
84
85 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
86 definition.
87
882018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
89
90 * benchtests/scripts/compare_bench.py (do_compare): write to
91 stderr in casestat is not present.
92 * benchtests/scripts/compare_bench.py (plot_graphs): write to
93 stderr in case timings field is not present. Also string showing
94 the output filename goes into the stderr.
95
962018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
97
98 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
99 and ZeroDivisorError exceptions.
100 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
101 argument to loop through user provided statistics.
102 * benchtests/scripts/compare_bench.py (main): Include the --stats
103 argument.
104
1052018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
106
107 * benchtests/scripts/compare_bench.py (compare_runs): Continue
108 instead of return.
109
1102018-12-12 Florian Weimer <fweimer@redhat.com>
111
112 * sysdeps/posix/timespec_get.c: Add missing “any later version”
113 clause to copyright header.
114
1152018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
116
117 [BZ #23614]
118 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
119 registers saved in the stack frame.
120 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
121 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
122
1232018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
124
125 * include/bits/monetary-ldbl.h: New file.
126 * include/bits/printf-ldbl.h: Likewise.
127 * include/bits/stdio-ldbl.h: Likewise.
128 * include/bits/stdlib-ldbl.h: Likewise.
129 * include/bits/syslog-ldbl.h: Likewise.
130 * include/bits/wchar-ldbl.h: Likewise.
131
1322018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
133
134 * libio/libio.h: Remove redirection for _IO_vfprintf.
135
1362018-12-11 Andreas Schwab <schwab@suse.de>
137
138 * Makerules: Remove all references to abilist-pattern.
139 (update-all-abi): Simplify find expression.
140
1412018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
142
143 [BZ #23961]
144 * math/auto-libm-test-in: Add new test case.
145 * math/auto-libm-test-out-pow: Regenerated.
146 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
147
1482018-12-10 DJ Delorie <dj@redhat.com>
149
150 [BZ #23948]
151 * support/test-container.c: Move postclean step to before we
152 change namespaces.
153
1542018-12-10 Joseph Myers <joseph@codesourcery.com>
155
156 * scripts/gen-as-const.py (main): Handle --python option.
157 * scripts/gen-py-const.awk: Remove.
158 * Makerules (py-const-script): Use gen-as-const.py.
159 ($(py-const)): Likewise.
160 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
161 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
162 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
163 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
164 ~PTHREAD_MUTEX_NO_ELISION_NP.
165 * manual/README.pretty-printers: Update reference to
166 gen-py-const.awk.
167
168 * scripts/glibcextract.py: New file.
169 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
170 or tempfile. Import glibcexctract.
171 (compute_c_consts): Remove. Moved to glibcextract.py.
172 (gen_test): Update reference to compute_c_consts.
173 (main): Likewise.
174 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
175 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
176 * sysdeps/unix/sysv/linux/Makefile
177 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
178 Redirect stderr as well as stdout.
179
1802018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
181
182 [BZ #19767]
183 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
184 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
185 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
186 ALWAYS_USE_VSYSCALL.
187 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
188 ALWAYS_USE_VSYSCALL.
189 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
190 ALWAYS_USE_VSYSCALL.
191
1922018-12-10 Florian Weimer <fweimer@redhat.com>
193
194 [BZ #23972]
195 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
196 offset instead of count for clarity. Fix typo in comment.
197 (__old_getdents64): Keep track of previous offset. Use it to call
198 handle_overflow.
199 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
200 that d_off is never zero.
201
2022018-12-10 Andreas Schwab <schwab@suse.de>
203
204 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
205 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
207 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
208 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
209
2102018-12-10 Joseph Myers <joseph@codesourcery.com>
211
212 * timezone/private.h: Update from tzcode 2018g.
213 * timezone/tzfile.h: Likewise.
214 * timezone/tzselect.ksh: Likewise.
215 * timezone/zdump.c: Likewise.
216 * timezone/zic.c: Likewise.
217
2182018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
219
220 [BZ #23490]
221 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
222 (do_test): Adjust buffer size and fix format.
223
2242018-12-07 DJ Delorie <dj@redhat.com>
225
226 [BZ #23907]
227 * malloc/tst-tcfree3.c: New.
228 * malloc/Makefile: Add it.
229
2302018-12-07 H.J. Lu <hongjiu.lu@intel.com>
231
232 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
233
2342018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
235
236 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
237 used as a mask for the mode argument of __vfscanf_internal and
238 __vfwscanf_internal.
239 * stdio-common/vfscanf-internal.c
240 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
241 (__strtof128_internal): Define to __wcstof128_internal.
242 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
243 __strtof128_internal or __wcstof128_internal when the format of
244 long double is the same as _Float128.
245
2462018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
247
248 * include/unistd.h (__confstr): Add prototype and hidden prototype.
249 * posix/confstr.c (confstr): Rename to __confstr.
250 (__confstr): Add hidden def.
251 (confstr): Add weak alias for __confstr.
252 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
253 confstr.
254
2552018-12-07 H.J. Lu <hongjiu.lu@intel.com>
256
257 * NEWS: Mention getcpu.
258 * include/sched.h (__getcpu): New libc_hidden_proto.
259 * manual/resource.texi: Document getcpu.
260 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
261 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
262 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
263 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
264 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
265 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
266 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
267 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
268 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
269 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
270 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
271 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
272 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
273 Likewise.
274 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
275 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
276 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
278 Likewise.
279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
280 Likewise.
281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
282 Likewise.
283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
284 Likewise.
285 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
286 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
287 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
288 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
289 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
290 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
291 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
292 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
293 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
294 * sysdeps/unix/sysv/linux/getcpu.c: New file.
295 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
296 Also check getcpu.
297
2982018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
299
300 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
301 functions.
302 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
303
3042018-12-07 Florian Weimer <fweimer@redhat.com>
305
306 [BZ #17405]
307 * posix/Makefile (routines): Add spawn_faction_addfchdir.
308 * posix/Versions (GLIBC_2.29): Export
309 posix_spawn_file_actions_addfchdir_np.
310 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
311 * posix/spawn_faction_destroy.c
312 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
313 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
314 and the field action.fchdir_action.
315 * posix/tst-spawn-chdir.c (add_chdir): New function.
316 (do_test): Add do_fchdir loop. Call add_chdir.
317 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
318 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
319 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
320 posix_spawn_file_actions_addfchdir_np.
321 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
322 Likewise.
323 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
324 Likewise.
325 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
326 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
327 Likewise.
328 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
329 Likewise.
330 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
331 Likewise.
332 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
333 Likewise.
334 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
335 Likewise.
336 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
337 Likewise.
338 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
339 (GLIBC_2.29): Likewise.
340 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
341 (GLIBC_2.29): Likewise.
342 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
343 (GLIBC_2.29): Likewise.
344 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
345 (GLIBC_2.29): Likewise.
346 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
347 Likewise.
348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
349 (GLIBC_2.29): Likewise.
350 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
351 (GLIBC_2.29): Likewise.
352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
353 (GLIBC_2.29): Likewise.
354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
355 (GLIBC_2.29): Likewise.
356 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
357 Likewise.
358 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
359 Likewise.
360 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
361 Likewise.
362 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
363 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
364 Likewise.
365 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
366 Likewise.
367 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
368 Likewise.
369 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
370 Likewise.
371
3722018-12-06 Joseph Myers <joseph@codesourcery.com>
373
374 * manual/texinfo.tex: Update to version 2018-09-21.20 with
375 trailing whitespace removed.
376 * scripts/config.guess: Update to version 2018-11-28.
377 * scripts/config.sub: Update to version 2018-11-28.
378 * scripts/install-sh: Update to version 2018-03-11.20.
379 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
380 * scripts/move-if-change: Update to version 2018-03-07 03:47.
381
3822018-12-07 Florian Weimer <fweimer@redhat.com>
383
384 [BZ #23927]
385 CVE-2018-19591
386 * inet/tst-if_index-long.c: New file.
387 * inet/Makefile (tests): Add tst-if_index-long.
388
3892018-12-07 Florian Weimer <fweimer@redhat.com>
390
391 * support/check.h (support_record_failure_is_failed): Declare.
392 * support/descriptors.h: New file.
393 * support/support_descriptors.c: Likewise.
394 * support/tst-support_descriptors.c: Likewise.
395 * support/support_record_failure.c
396 (support_record_failure_is_failed): New function.
397 * support/Makefile (libsupport-routines): Add support_descriptors.
398 (tests): Add tst-support_descriptors.
399
4002018-12-05 Zack Weinberg <zackw@panix.com>
401 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
402
403 * stdio-common/vfprintf-internal.c
404 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
405 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
406 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
407 and __no_long_double.
408 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
409 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
410 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
411 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
412 and __nldbl_*syslog* functions.
413 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
414 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
415 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
416 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
417 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
418 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
419 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
420 (__nldbl_vwprintf, __nldbl_wprintf):
421 Directly call the appropriate __v*printf_internal routine, passing
422 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
423 variable names.
424 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
425 (__nldbl___printf_chk, __nldbl___snprintf_chk)
426 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
427 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
428 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
429 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
430 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
431 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
432 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
433 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
434 Likewise, and also pass PRINTF_FORTIFY when appropriate.
435 (__nldbl_syslog, __nldbl_vsyslog):
436 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
437 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
438 appropriate.
439 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
440 appropriate.
441
4422018-12-05 Zack Weinberg <zackw@panix.com>
443 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
444
445 [BZ #11319]
446 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
447 Moved here from debug/vsprintf_chk.c.
448 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
449 and completion logic for the strfile to match exactly what
450 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
451 _IO_str_init_static_internal instead of maxlen-1.
452 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
453 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
454 __vsprintf_internal.
455
456 * debug/vsprintf_chk.c (__vsprintf_chk)
457 * debug/sprintf_chk.c (__sprintf_chk):
458 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
459 'flags' argument is positive, and slen as maxlen. No need to lock
460 the FILE and/or construct a temporary FILE. Minimize and normalize
461 header inclusions and variable names. Do not libc_hidden_def anything.
462
463 * debug/asprintf_chk.c (__asprintf_chk)
464 * debug/dprintf_chk.c (__dprintf_chk)
465 * debug/fprintf_chk.c (__fprintf_chk)
466 * debug/fwprintf_chk.c (__fwprintf_chk)
467 * debug/printf_chk.c (__printf_chk)
468 * debug/snprintf_chk.c (__snprintf_chk)
469 * debug/swprintf_chk.c (__swprintf_chk)
470 * debug/vasprintf_chk.c (__vasprintf_chk)
471 * debug/vdprintf_chk.c (__vdprintf_chk)
472 * debug/vfprintf_chk.c (__vfprintf_chk)
473 * debug/vfwprintf_chk.c (__vfwprintf_chk)
474 * debug/vprintf_chk.c (__vprintf_chk)
475 * debug/vsnprintf_chk.c (__vsnprintf_chk)
476 * debug/vswprintf_chk.c (__vswprintf_chk)
477 * debug/vwprintf_chk.c (__vwprintf_chk)
478 * debug/wprintf_chk.c (__wprintf_chk):
479 Directly call the corresponding vxxprintf_internal function, passing
480 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
481 the FILE and/or construct a temporary FILE. Minimize and normalize
482 header inclusions and variable names. Do not libc_hidden_def anything.
483
484 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
485 __obstack_vprintf_internal.
486 (__obstack_vprintf_chk): Convert into a wrapper that calls
487 __obstack_vprintf_internal (these two functions already had the
488 same code) and move to new file...
489 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
490 file.
491 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
492 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
493 * debug/Makefile (routines): Add vobprintf_chk.
494
495 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
496 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
497 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
498 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
499 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
500 (__nldbl___obstack_vfprintf_chk):
501 Directly call the corresponding vxxprintf_internal function,
502 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
503 duplicate comparison of slen with 0 or maxlen from the corresponding
504 non-__nldbl function.
505
506 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
507 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
508 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
509 Remove libc_hidden_proto.
510
511 * stdio-common/vfprintf-internal.c
512 (__vfprintf_internal, __vfwprintf_internal):
513 Do not check _IO_FLAGS2_FORTIFY.
514 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
515 * libio/libioP.h: Update prototype of __vsprintf_internal and add
516 a comment explaining why it has the maxlen argument.
517 (_IO_acquire_lock_clear_flags2_fct): Remove.
518 (_IO_acquire_lock_clear_flags2): Remove.
519 (_IO_release_lock): Remove conditional statement which will
520 now never execute.
521 (_IO_acquire_lock): Remove variable which is now unused.
522 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
523 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
524
525 * stdio-common/Makefile (tests): Add tst-bz11319 and
526 tst-bz11319-fortify2.
527 (CFLAGS-tst-bz11319-fortify2.c): New macro.
528 * stdio-common/tst-bz11319-fortify2.c: New file.
529 * stdio-common/tst-bz11319.c: Likewise.
530
5312018-12-05 Zack Weinberg <zackw@panix.com>
532 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
533
534 * misc/syslog.c: Include libioP.h, not iolibio.h.
535 (__vsyslog_internal): New function with the former body of
536 __vsyslog_chk; takes mode_flags argument same as
537 __v*printf_internal. Call __vfprintf_internal directly.
538
539 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
540 Remove libc_hidden_def.
541 (__syslog, __syslog_chk): Use __vsyslog_internal.
542 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
543
544 * include/sys/syslog.h: Add multiple inclusion guard.
545 Add prototype for __vsyslog_internal.
546 Remove declaration and libc_hidden_proto for __vsyslog_chk.
547
548 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
549 Use __vsyslog_internal.
550
5512018-12-05 Zack Weinberg <zackw@panix.com>
552 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
553
554 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
555 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
556 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
557 New functions.
558 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
559 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
560
561 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
562 Include wctype.h here if COMPILE_WPRINTF is defined.
563 Define __vfprintf_internal or __vfwprintf_internal, depending
564 on COMPILE_WPRINTF.
565 Temporarily, on entry to this function, update mode_flags
566 according to the environmental settings corresponding to
567 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
568 Throughout, check mode_flags instead of __ldbl_is_dbl and
569 _IO_FLAGS2_FORTIFY on the destination FILE.
570 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
571 Include vfprintf-internal.c. Don't include wctype.h.
572 * stdio-common/vfprintf.c: New file. Just define __vfprintf
573 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
574 and vfprintf.
575 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
576 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
577 and vfwprintf.
578 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
579
580 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
581 and add mode_flags argument; use __vfprintf_internal.
582 (__vdprintf): New function. Alias vdprintf to this.
583 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
584 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
585 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
586 (__obstack_printf): Use __obstack_printf_internal.
587 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
588 public aliases __vsnprintf and vsnprintf.
589 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
590 called internally.
591 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
592 public aliases _IO_vsprintf and vsprintf.
593 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
594 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
595 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
596 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
597 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
598
599 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
600 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
601 * stdio-common/fprintf.c, stdio-common/fxprintf.c
602 * stdio-common/printf.c: Use __vfprintf_internal.
603
604 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
605 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
606 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
607
608 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
609 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
610 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
611 __vfwprintf_internal.
612
613 * libio/libio.h: Remove libc_hidden_proto and declaration for
614 _IO_vfprintf.
615 Remove declaration of _IO_vfwprintf.
616 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
617 _IO_vsprintf.
618 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
619 _IO_obstack_printf.
620 * include/stdio.h: Add prototype for __vasprintf.
621 (__vsnprintf): Remove declaration, because there are no more
622 internal calls.
623 * include/wchar.h (__vfwprintf, __vswprintf): Remove
624 declaration, because there are no more internal calls.
625
626 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
627 __vsnprintf_internal, instead of _IO_vsnprintf.
628 * argp/argp-help.c (__argp_error, __argp_failure): Use
629 __vasprintf_internal, instead of _IO_vasprintf.
630 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
631 redefine, because there are no more internal calls.
632
6332018-12-05 Zack Weinberg <zackw@panix.com>
634 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
635
636 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
637 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
638 Include libio/strfile.h instead of libioP.h.
639 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
640 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
641 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
642 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
643 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
644 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
645 necessary. Do not set __no_long_double. Normalize variable names.
646 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
647 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
648 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
649 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
650 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
651 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
652 Call __vfscanf_internal / __vfwscanf_internal directly, passing
653 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
654 Do not set __no_long_double. Normalize variable names.
655
6562018-12-05 Zack Weinberg <zackw@panix.com>
657 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
658
659 * stdio-common/isoc99_scanf.c
660 * stdio-common/isoc99_fscanf.c
661 * stdio-common/isoc99_sscanf.c
662 * stdio-common/isoc99_vscanf.c
663 * stdio-common/isoc99_vfscanf.c
664 * stdio-common/isoc99_vsscanf.c
665 * wcsmbs/isoc99_wscanf.c
666 * wcsmbs/isoc99_fwscanf.c
667 * wcsmbs/isoc99_swscanf.c
668 * wcsmbs/isoc99_vwscanf.c
669 * wcsmbs/isoc99_vfwscanf.c
670 * wcsmbs/isoc99_vswscanf.c:
671 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
672 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
673 No need to lock and unlock the FILE passed to that function.
674
675 * stdio-common/vfscanf-internal.c
676 (__vfscanf_internal, __vfwscanf_internal):
677 Don't look at _IO_FLAGS2_SCANF_STD.
678 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
679 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
680 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
681
6822018-12-05 Zack Weinberg <zackw@panix.com>
683 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
684
685 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
686 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
687 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
688 * libio/strfile.h: Add multiple inclusion guard.
689 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
690
691 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
692 consistency with the other version of this file.
693 (ldbl_compat_symbol): New macro.
694 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
695 New macro.
696
697 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
698 Define __vfscanf_internal or __vfwscanf_internal, depending on
699 COMPILE_WSCANF; don't define any other public symbols.
700 Remove errval and code to set errp.
701 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
702 as the mode_flags argument.
703 (encode_error, conv_error, input_error): Don't set errval.
704 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
705 Include vfscanf-internal.c.
706 * stdio-common/vfscanf.c: New file defining the public entry
707 point vfscanf, which calls __vfscanf_internal.
708 * stdio-common/vfwscanf.c: New file defining the public entry
709 point vfwscanf, which calls __vfwscanf_internal.
710
711 * stdio-common/iovfscanf.c: New file.
712 * stdio-common/iovfwscanf.c: Likewise.
713
714 * stdio-common/Makefile (routines): Add vfscanf-internal,
715 vfwscanf-internal, iovfscanf, iovfwscanf.
716 * stdio-common/Versions: Mention GLIBC_2.29, so that
717 it can be used in SHLIB_COMPAT expressions.
718 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
719 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
720 Call __vfscanf_internal, instead of _IO_vfscanf.
721 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
722 _IO_vfscanf.
723 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
724 _IO_vfwscanf.
725
726 * libio/iovsscanf.c: Clean up includes, when possible. Use
727 _IO_strfile_read or _IO_strfile_readw, when needed. Call
728 __vfscanf_internal or __vfwscanf_internal directly.
729 * libio/iovswscanf.c: Likewise.
730 * libio/swscanf.c: Likewise.
731 * libio/vscanf.c: Likewise.
732 * libio/vwscanf.c: Likewise.
733 * libio/wscanf.c: Likewise.
734 * stdio-common/isoc99_fscanf.c: Likewise.
735 * stdio-common/isoc99_scanf.c: Likewise.
736 * stdio-common/isoc99_sscanf.c: Likewise.
737 * stdio-common/isoc99_vfscanf.c: Likewise.
738 * stdio-common/isoc99_vscanf.c: Likewise.
739 * stdio-common/isoc99_vsscanf.c: Likewise.
740 * stdio-common/scanf.c: Likewise.
741 * stdio-common/sscanf.c: Likewise.
742 * wcsmbs/isoc99_fwscanf.c: Likewise.
743 * wcsmbs/isoc99_swscanf.c: Likewise.
744 * wcsmbs/isoc99_vfwscanf.c: Likewise.
745 * wcsmbs/isoc99_vswscanf.c: Likewise.
746 * wcsmbs/isoc99_vwscanf.c: Likewise.
747 * wcsmbs/isoc99_wscanf.c: Likewise.
748
7492018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
750
751 * include/time.h
752 (__tz_compute): Replace time_t with __time64_t.
753 (__tz_convert): Replace time_t* with __time64_t.
754 (__offtime): Replace time_t* with __time64_t.
755 * time/gmtime.c
756 (__gmtime_r): Adjust call to __tz_convert.
757 (gmtime): Likewise.
758 * time/localtime.c
759 (__localtime_r): Likewise.
760 (localtime): Likewise.
761 * time/offtime.c: Replace time_t with __time64_t.
762 * time/tzset.c: Likewise.
763
7642018-12-04 Joseph Myers <joseph@codesourcery.com>
765
766 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
767 dynamic linker unless [$(run-built-tests) = yes].
768
7692018-12-03 DJ Delorie <dj@delorie.com>
770
771 * support/test-container.c (check_for_unshare_hints): New.
772 (main): Call it if unshare fails. Add support for "su" scriptlet
773 command.
774
7752018-12-03 Joseph Myers <joseph@codesourcery.com>
776
777 * scripts/gen-as-const.py (compute_c_consts): Take an argument
778 'START' to indicate that start text should be output.
779 (gen_test): Likewise.
780 (main): Generate 'START' for first symbol or '--' line, or at end
781 of input if not previously generated.
782
7832018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
784
785 [BZ #19767]
786 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
787 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
788 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
789 ALWAYS_USE_VSYSCALL.
790
7912018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
792
793 [BZ #23913]
794 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
795 new_argv by one.
796
7972018-12-03 Carlos O'Donell <carlos@redhat.com>
798
799 [BZ #23923]
800 * locale/programs/localedef.c: Declare boolean hard_links default true.
801 (options): Add --no-hard-links option.
802 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
803 * locale/programs/localedef.h: Declare prototype for hard_links.
804 * locale/programs/locfile.c (write_locale_data): Don't use hard
805 links if hard_links is false.
806
8072018-12-03 H.J. Lu <hongjiu.lu@intel.com>
808
809 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
810 cpu_features_basic.
811 (__cache_sysconf): Likewise.
812 (init_cacheinfo): Likewise.
813 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
814 populate COMMON_CPUID_INDEX_80000007 and
815 COMMON_CPUID_INDEX_80000008.
816 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
817 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
818 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
819 (init_cpu_features): Use _Static_assert on
820 index_arch_Fast_Unaligned_Load.
821 __get_cpuid_registers and __get_arch_feature. Updated for
822 cpu_features_basic. Set stepping in cpu_features.
823 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
824 (FEATURE_INDEX_2): New.
825 (FEATURE_INDEX_MAX): Changed to enum.
826 (COMMON_CPUID_INDEX_D_ECX_1): New.
827 (COMMON_CPUID_INDEX_80000007): Likewise.
828 (COMMON_CPUID_INDEX_80000008): Likewise.
829 (cpuid_registers): Likewise.
830 (cpu_features_basic): Likewise.
831 (CPU_FEATURE_USABLE): Likewise.
832 (bit_arch_XXX_Usable): Likewise.
833 (cpu_features): Use cpuid_registers and cpu_features_basic.
834 (bit_arch_XXX): Reweritten.
835 (bit_cpu_XXX): Likewise.
836 (index_cpu_XXX): Likewise.
837 (reg_XXX): Likewise.
838 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
839 <support/check.h>.
840 (CHECK_CPU_FEATURE): New.
841 (CHECK_CPU_FEATURE_USABLE): Likewise.
842 (cpu_kinds): Likewise.
843 (do_test): Print vendor, family, model and stepping. Check
844 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
845 (TEST_FUNCTION): Removed.
846 Include <support/test-driver.c> instead of
847 "../../test-skeleton.c".
848 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
849 Check POPCNT instead of POPCOUNT.
850 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
851
8522018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
853
854 * scripts/gen-as-const.py (main): Avoid emitting empty line when
855 there is no element in `consts'.
856
8572018-12-01 Florian Weimer <fweimer@redhat.com>
858
859 * support/support_capture_subprocess.c
860 (support_capture_subprocess): Check that pipe descriptors have
861 expected values. Close original pipe descriptors in subprocess.
862
8632018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
864
865 [BZ #23032]
866 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
867 attr with __pthread_default_barrierattr.
868 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
869 attr with __pthread_default_condattr.
870 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
871 attr with __pthread_default_mutexattr.
872 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
873 attr with __pthread_default_rwlockattr.
874
8752018-12-01 Kemi Wang <kemi.wang@intel.com>
876
877 * manual/tunables.texi (POSIX Thread Tunables): New node.
878 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
879 * nptl/nptl-init.c: Include pthread_mutex_conf.h
880 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
881 __pthread_tunables_init.
882 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
883 (max_adaptive_count): Define.
884 * nptl/pthread_mutex_conf.c: New file.
885 * nptl/pthread_mutex_conf.h: New file.
886 * sysdeps/generic/adaptive_spin_count.h: New file.
887 * sysdeps/nptl/dl-tunables.list: New file.
888 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
889 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
890 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
891 Likewise.
892
8932018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
894
895 [BZ #20544]
896 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
897 * stdlib/on_exit.c (__on_exit): Likewise.
898 * stdlib/Makefile (tests): Add tst-bz20544.
899 * stdlib/tst-bz20544.c: New test.
900
9012018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
902
903 [BZ #19767]
904 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
905 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
906 New.
907
9082018-11-30 Florian Weimer <fweimer@redhat.com>
909
910 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
911 Extend error logging.
912 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
913 symbol.
914
9152018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
916
917 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
918 __sigismember instead of sigismember.
919 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
920 cancel_handler): New definitions.
921 (do_system): Use posix_spawn instead of fork and execl and remove
922 reentracy code.
923 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
924 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
925 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
926 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
927 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
928 * sysdeps/unix/sysv/linux/system.c: Likewise.
929
930 [BZ #22834]
931 [BZ #17490]
932 * NEWS: Add new semantic for atfork with popen and system.
933 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
934 fork and execl.
935
9362018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
937
938 [BZ #23690]
939 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
940 modification order when accessing reloc_result->addr.
941 * include/link.h (reloc_result): Add field init.
942 * nptl/Makefile (tests): Add tst-audit-threads.
943 (modules-names): Add tst-audit-threads-mod1 and
944 tst-audit-threads-mod2.
945 Add rules to build tst-audit-threads.
946 * nptl/tst-audit-threads-mod1.c: New file.
947 * nptl/tst-audit-threads-mod2.c: Likewise.
948 * nptl/tst-audit-threads.c: Likewise.
949 * nptl/tst-audit-threads.h: Likewise.
950
9512018-11-30 Joseph Myers <joseph@codesourcery.com>
952
953 * scripts/gen-as-const.py: New file.
954 * scripts/gen-as-const.awk: Remove.
955 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
956 gen-as-const.py.
957 ($(objpfx)test-as-const-%.c): Likewise.
958
9592018-11-29 H.J. Lu <hongjiu.lu@intel.com>
960
961 * elf/dl-exception.c: Include <_itoa.h>.
962
9632018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
964
965 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
966 returned by __f_setlk.
967
9682018-11-29 H.J. Lu <hongjiu.lu@intel.com>
969 Adhemerval Zanella <adhemerval.zanella@linaro.org>
970
971 * elf/Makefile (tests-internal): Add tst-create_format1.
972 * elf/dl-exception.c (_dl_exception_create_format): Support
973 %x, %lx and %zx.
974 * elf/tst-create_format1.c: New file.
975
9762018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
977
978 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
979 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
980 gnulib.)
981 * argp/argp-help.c (__argp_failure): Likewise.
982
9832018-11-29 Mao Han <han_mao@c-sky.com>
984
985 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
986 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
987 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
988 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
989 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
990 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
991 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
992 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
993 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
994 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
995 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
996 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
997 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
998 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
999 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
1000 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
1001 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
1002 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
1003 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
1004 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
1005 (R_CKCORE_TLS_TPOFF32): New defines.
1006
10072018-11-29 Florian Weimer <fweimer@redhat.com>
1008
1009 * posix/Makefile (before-compile): Remove testcases.h and
1010 ptestcases.h.
1011 (generated): Add testcases.h and ptestcases.h.
1012 (testcases.h, ptestcases.h): Move to $(objpfx).
1013 (runtests.o): Add dependency on testcases.h.
1014 (runptests.o): Add dependency on ptestcases.h.
1015 * posix/testcases.h, posix/ptestcases.h: Remove files.
1016 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
1017 not touch posix/testcases.h and posix/ptestcases.h.
1018
10192018-11-28 Florian Weimer <fweimer@redhat.com>
1020
1021 support: Add signal support to support_capture_subprocess_check.
1022 * support/capture_subprocess.h (support_capture_subprocess_check):
1023 Adjust comment and rename parameter.
1024 * support/support_capture_subprocess_check.c
1025 (print_actual_status): New function.
1026 (support_capture_subprocess_check): Support negative
1027 status_or_signal. Call print_actual_status.
1028 * support/tst-support_capture_subprocess.c (do_test): Call
1029 support_capture_subprocess_check.
1030 * libio/tst-vtables-common.c (termination_status)
1031 (init_termination_status): Remove.
1032 (check_for_termination): Adjust support_capture_subprocess_check
1033 call.
1034 (do_test): Remove call to init_termination_status.
1035
10362018-11-28 Joseph Myers <joseph@codesourcery.com>
1037
1038 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
1039 source directory instead of a copy.
1040 (CommandList.create_copy_dir): Remove.
1041
10422018-11-28 Stefan Liebler <stli@linux.ibm.com>
1043
1044 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1045
10462018-11-28 Florian Weimer <fweimer@redhat.com>
1047
1048 * support/support.h (support_quote_string): Do not use str
1049 parameter name.
1050
10512018-11-27 Joseph Myers <joseph@codesourcery.com>
1052
1053 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
1054 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
1055
10562018-11-27 Florian Weimer <fweimer@redhat.com>
1057
1058 * support/support.h (support_quote_string): Declare.
1059 * support/support_quote_string.c: New file.
1060 * support/tst-support_quote_string.c: Likewise.
1061 * support/Makefile (libsupport-routines): Add
1062 support_quote_string.
1063 (tests): Add tst-support_quote_string.
1064
10652018-11-27 Florian Weimer <fweimer@redhat.com>
1066
1067 [BZ #23927]
1068 CVE-2018-19591
1069 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
1070 descriptor leak in case of ENODEV error.
1071
10722018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
1073
1074 [BZ #19767]
1075 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
1076 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
1077 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
1078
10792018-11-26 Carlos O'Donell <carlos@redhat.com>
1080
1081 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
1082 Error for unknown lines.
1083
10842018-11-26 Joseph Myers <joseph@codesourcery.com>
1085
1086 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
1087 Touch additional files.
1088
10892018-11-26 Florian Weimer <fweimer@redhat.com>
1090
1091 [BZ #23907]
1092 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
1093 double-frees.
1094
10952018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
1096
1097 [BZ #19767]
1098 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
1099 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
1100 SHARED. Include sysdep.h.
1101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
1102 ALWAYS_USE_VSYSCALL.
1103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
1104 ALWAYS_USE_VSYSCALL.
1105
11062018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
1107
1108 [BZ #19767]
1109 * nptl/Makefile (tests-static): Add tst-cond11-static.
1110 (tests): Likewise.
1111 * nptl/tst-cond11-static.c: New File.
1112 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
1113 tst-affinity-static.
1114 (tests): Likewise.
1115 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
1116 instead of SHARED.
1117 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
1118 (USE_VSYSCALL): Likewise.
1119 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
1120 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
1121 instead of SHARED.
1122 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
1123 SHARED.
1124 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1125 New.
1126
11272018-11-23 Joseph Myers <joseph@codesourcery.com>
1128
1129 [BZ #23915]
1130 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1131 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
1132 Undefine.
1133
11342018-11-23 H.J. Lu <hongjiu.lu@intel.com>
1135
1136 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
1137 (tst-cet-legacy-1a-ARGS): New.
1138 ($(objpfx)tst-cet-legacy-1a): New target.
1139 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
1140
11412018-11-22 Joseph Myers <joseph@codesourcery.com>
1142
1143 * conform/conformtest.py (CompileSubTest.__init__): Set
1144 self.run_early to False.
1145 (ExecuteSubTest.__init__): Likewise.
1146 (HeaderTests.run): Try running all non-optional, non-XFAILed
1147 compilation tests in a single execution of the compiler.
1148
1149 * conform/conformtest.py (CompileSubTest): New class.
1150 (ExecuteSubTest): Likewise.
1151 (ElementTest.run): Rename to gen_subtests. Append tests to
1152 self.subtests instead of running them.
1153 (ConstantTest.run): Likewise.
1154 (SymbolTest.run): Likewise.
1155 (TypeTest.run): Likewise.
1156 (TagTest.run): Likewise.
1157 (FunctionTest.run): Likewise.
1158 (VariableTest.run): Likewise.
1159 (MacroFunctionTest.run): Likewise.
1160 (MacroStrTest.run): Likewise.
1161 (HeaderTests.handle_test_line): Generate subtests for tests.
1162 (HeaderTests.run): Run subtests for tests.
1163
11642018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1165
1166 * math/Versions (GLIBC_2.29): Add pow.
1167 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
1168 symbol.
1169 * math/w_pow.c: New file.
1170 * sysdeps/i386/fpu/w_pow.c: New file.
1171 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
1172 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
1173 and add necessary aliases.
1174 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
1175 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
1176 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1177 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1178 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1179 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1180 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1181 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1182 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1183 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1184 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1185 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1186 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1187 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1188 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1189 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1193 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1194 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1195 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1196 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1197 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1198 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1199 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1200 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
1201 __pow.
1202 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
1203 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
1204 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
1205
12062018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1207
1208 * math/Versions (GLIBC_2.29): Add log2.
1209 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
1210 symbol.
1211 * math/w_log2.c: New file.
1212 * sysdeps/i386/fpu/w_log2.c: New file.
1213 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
1214 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
1215 and add necessary aliases.
1216 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
1217 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
1218 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1219 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1220 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1221 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1222 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1223 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1224 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1225 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1226 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1227 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1228 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1229 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1230 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1235 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1236 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1237 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1238 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1239 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1240 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1241 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1242
12432018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1244
1245 * math/Versions (GLIBC_2.29): Add log.
1246 * math/w_log_compat.c (__log_compat): Change to versioned compat
1247 symbol.
1248 * math/w_log.c: New file.
1249 * sysdeps/i386/fpu/w_log.c: New file.
1250 * sysdeps/ia64/fpu/e_log.S: Update.
1251 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
1252 and add necessary aliases.
1253 * sysdeps/ieee754/dbl-64/w_log.c: New file.
1254 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
1255 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1256 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1257 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1258 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1259 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1260 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1261 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1262 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1263 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1264 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1265 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1266 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1267 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1272 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1273 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1274 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1275 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1276 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1277 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1278 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1279 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
1280 __log.
1281 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
1282 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
1283 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
1284 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
1285
12862018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1287
1288 * math/Versions (GLIBC_2.29): Add exp and exp2.
1289 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
1290 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
1291 * math/w_exp_compat.c (__exp_compat): Likewise.
1292 * math/w_exp.c: New file.
1293 * math/w_exp2.c: New file.
1294 * sysdeps/i386/fpu/w_exp.c: New file.
1295 * sysdeps/i386/fpu/w_exp2.c: New file.
1296 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
1297 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1298 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
1299 and add necessary aliases.
1300 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
1301 and add necessary aliases.
1302 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
1303 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
1304 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
1305 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
1306 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1307 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1308 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1309 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1310 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1311 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1312 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1313 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1314 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1315 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1316 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1317 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1318 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1323 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1324 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1325 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1326 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1327 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1328 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1329 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1330 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
1331 (__ieee754_exp): Rename to __exp.
1332 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
1333 (__ieee754_exp): Rename to __exp.
1334 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
1335 (__ieee754_exp): Rename to __exp.
1336 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
1337 __exp.
1338 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
1339
13402018-11-20 DJ Delorie <dj@redhat.com>
1341
1342 * malloc/malloc.c (tcache_entry): Add key field.
1343 (tcache_put): Set it.
1344 (tcache_get): Likewise.
1345 (_int_free): Check for double free in tcache.
1346 * malloc/tst-tcfree1.c: New.
1347 * malloc/tst-tcfree2.c: New.
1348 * malloc/Makefile: Run the new tests.
1349 * manual/probes.texi: Document memory_tcache_double_free probe.
1350
1351 * dlfcn/dlerror.c (check_free): Prevent double frees.
1352
13532018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1354
1355 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
1356
13572018-11-20 Joseph Myers <joseph@codesourcery.com>
1358
1359 * conform/conformtest.py (ElementTest.run): Use unique identifiers
1360 in tests. Use names for format arguments.
1361 (ConstantTest.run): Likewise.
1362 (SymbolTest.run): Likewise.
1363 (TypeTest.run): Likewise.
1364 (TagTest.run): Likewise.
1365 (FunctionTest.run): Likewise.
1366 (VariableTest.run): Likewise.
1367 (MacroFunctionTest.run): Likewise.
1368 (MacroStrTest.run): Likewise.
1369 (HeaderTests.__init__): Set self.num_tests.
1370 (HeaderTests.handle_test_line): Set test.num. Increment
1371 self.num_tests.
1372
13732018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
1374
1375 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
1376 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
1377 SEEK_SET.
1378
13792018-11-19 Mao Han <han_mao@c-sky.com>
1380
1381 * scripts/config.guess: Update to version 2018-08-29.
1382 * scripts/config.sub: Update to version 2018-08-29.
1383
13842018-11-19 Florian Weimer <fweimer@redhat.com>
1385
1386 support: Print timestamps in timeout handler.
1387 * support/support_test_main.c (print_timestamp): New function.
1388 (signal_handler): Use it to print the termination time and the
1389 time of the last write to standard output.
1390
13912018-11-16 Zack Weinberg <zackw@panix.com>
1392 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1393
1394 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
1395 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
1396 argument.
1397 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
1398 and add flags argument. Check flags instead of __ldbl_is_dbl when
1399 deciding whether to set is_long_double.
1400 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
1401 passing zero for flags argument.
1402 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
1403
1404 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1405 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
1406 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
1407 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
1408 variable names. Remove libc_hidden_def/libc_hidden_proto from
1409 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
1410 longer called from within the library.
1411 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
1412 for __nldbl___vstrfmon_l, declare it explicitly.
1413
1414 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
1415
14162018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
1417
1418 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
1419 macros
1420 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
1421 F_SETLK64, F_SETLKW64, respectively.
1422 * sysdeps/mach/hurd/f_setlk.c: New file.
1423 * sysdeps/mach/hurd/f_setlk.h: New file.
1424 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
1425 f_setlk.
1426 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
1427 (__libc_fcntl): Move non-flock operations to...
1428 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
1429 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
1430
14312018-11-15 Paul Eggert <eggert@cs.ucla.edu>
1432
1433 mktime: DEBUG_MKTIME cleanup
1434 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
1435 And it’s no longer needed now that glibc and Gnulib both have
1436 their own testing mechanisms for mktime.
1437 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
1438
1439 mktime: fix non-EOVERFLOW errno handling
1440 [BZ#23789]
1441 mktime was not properly reporting failures when the underlying
1442 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
1443 them like EOVERFLOW failures, and set errno to EOVERFLOW.
1444 The problem could happen on non-glibc platforms, with Gnulib.
1445 * time/mktime.c (guess_time_tm): Remove, replacing with ...
1446 (tm_diff): ... this simpler function, which does not change errno.
1447 All callers changed to deal with errno themselves.
1448 (ranged_convert, __mktime_internal): Return failure immediately if
1449 the underlying function reports any failure other than EOVERFLOW.
1450 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
1451 gap code fails.
1452
1453 mktime: fix bug with Y2038 DST transition
1454 [BZ#23789]
1455 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
1456 mishandle a DST transition that jumps over the Y2038 boundary.
1457 No such DST transitions are known so this is only a theoretical
1458 bug, but we might as well do things right.
1459
1460 mktime: make more room for overflow
1461 [BZ#23789]
1462 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
1463 This is so that we can add tm_diff results to a previous guess,
1464 which will be useful in a later patch.
1465
1466 mktime: simplify offset guess
1467 [BZ#23789]
1468 * time/mktime.c (__mktime_internal): Omit excess precision.
1469
1470 mktime: new test for mktime failure
1471 [BZ#23789]
1472 Based on a test suggested by Albert Aribaud in:
1473 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
1474 * time/Makefile (tests): Add bug-mktime4.
1475 * time/bug-mktime4.c: New file.
1476
1477 mktime: fix EOVERFLOW bug
1478 [BZ#23789]
1479 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
1480 Include libc-config.h, not config.h, for __set_errno.
1481 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
1482
14832018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1484
1485 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
1486 __attribute_copy__ to copy attributes from name. Drop static qualifier
1487 to avoid warnings about leaf attribute not having effect on static
1488 functions.
1489
14902018-11-13 Florian Weimer <fweimer@redhat.com>
1491
1492 * malloc/malloc.c (fastbin_push_entry): New function.
1493 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
1494 (REMOVE_FB): Remove macro.
1495 (_int_malloc): Use fastbin_pop_entry and reindent.
1496 (_int_free): Use fastbin_push_entry.
1497 (malloc_consolidate): Use atomic_exchange_acquire.
1498
14992018-11-13 Joseph Myers <joseph@codesourcery.com>
1500
1501 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
1502 alias attribute, not with strong_alias.
1503
1504 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
1505 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
1506 with additional parameter thread.
1507 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
1508 in terms of __hidden_ver2.
1509 (hidden_tls_def): New macro.
1510 (libc_hidden_tls_def): Likewise.
1511 (rtld_hidden_tls_def): Likewise.
1512 (libm_hidden_tls_def): Likewise.
1513 (libmvec_hidden_tls_def): Likewise.
1514 (libresolv_hidden_tls_def): Likewise.
1515 (librt_hidden_tls_def): Likewise.
1516 (libdl_hidden_tls_def): Likewise.
1517 (libnss_files_hidden_tls_def): Likewise.
1518 (libnsl_hidden_tls_def): Likewise.
1519 (libnss_nisplus_hidden_tls_def): Likewise.
1520 (libutil_hidden_tls_def): Likewise.
1521 (libutil_hidden_tls_def): Likweise.
1522 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
1523 libc_hidden_tls_def.
1524 (__sim_disabled_exceptions_thread): Likewise.
1525 (__sim_round_mode_thread): Likewise.
1526
1527 * sysdeps/sparc/sparc-ifunc.h [SHARED]
1528 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
1529 copy attributes from name.
1530
15312018-11-12 Joseph Myers <joseph@codesourcery.com>
1532
1533 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
1534 Use __attribute_copy__ to copy attributes from name.
1535
1536 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
1537 with __hidden_ver1 call.
1538 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
1539 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
1540 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
1541 (__cosf): Do not declare here.
1542 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
1543 (__sincosf): Do not declare here.
1544 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
1545 (__sinf): Do not declare here.
1546
1547 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
1548 (__BIG_ENDIAN): Likewise.
1549 (__BYTE_ORDER): Likewise.
1550 (strong_alias): Likewise.
1551 (_strong_alias): Likewise.
1552
15532018-11-12 Florian Weimer <fweimer@redhat.com>
1554
1555 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
1556 function. Move after the definition of in_smallbin_range. Do not
1557 use __builtin_expect for paths that lead to a noreturn function.
1558 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
1559 because it is unclear whether this is in fact an unlikely
1560 condition.
1561 (_int_malloc, _int_free): Adjust.
1562 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
1563 variables.
1564 * malloc/arena.c (heap_trim): Likewise.
1565
15662018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
1567
1568 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
1569 it, free it if needed.
1570 (reauthenticate): Test and use ccwdir.
1571 (child_init_port): In non-resetids case, test and use ccwdir.
1572 (child_chdir): New nested function to set ccwdir.
1573 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
1574 * hurd/hurd/port.h (_hurd_port_move): New function.
1575 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
1576 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
1577 * hurd/Versions (_hurd_port_move): Export function.
1578 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
1579 symbol.
1580 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
1581 of dtablesize for allocating dtable_cloexec.
1582
15832018-11-09 Martin Sebor <msebor@redhat.com>
1584
1585 * include/libc-symbols.h (__attribute_copy__): Define macro unless
1586 it's already defined.
1587 (_strong_alias): Use __attribute_copy__.
1588 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
1589 * misc/sys/cdefs.h (__attribute_copy__): New macro.
1590 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
1591 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
1592 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
1593 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
1594 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
1595 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
1596 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
1597 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
1598 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
1599 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
1600 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
1601 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
1602 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
1603 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
1604 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
1605 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
1606 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
1607
16082018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1609
1610 * misc/tst-efgcvt.c: Include support/check.h and
1611 support/test-driver.c. Do not include test-skeleton.c.
1612 (error_count): Remove.
1613 (output_error): Replace increments to error_count with calls to
1614 support_record_failure.
1615 (output_r_error): Likewise.
1616 (special): Likewise.
1617 (do_test): Unconditionally return zero.
1618 (TEST_FUNCTION): Remove.
1619
16202018-11-09 Joseph Myers <joseph@codesourcery.com>
1621
1622 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
1623 not $(@D)/scratch.
1624 ($(linknamespace-header-tests)): Likewise.
1625
1626 * conform/conformtest.py: New file.
1627 * conform/conformtest.pl: Remove.
1628 * conform/GlibcConform.pm: Likewise.
1629 * conform/glibcconform.py (KEYWORDS_C90): New constant.
1630 (KEYWORDS_C99): Likewise.
1631 (KEYWORDS): Likewise.
1632 * conform/Makefile ($(conformtest-header-tests)): Use
1633 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
1634 option. Use --header instead of --headers.
1635 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
1636 function entries.
1637 * conform/data/spawn.h-data: Likewise.
1638 * conform/data/fcntl.h-data (openat): Add space after function
1639 name.
1640 * conform/data/wchar.h-data (wcscasecmp): Likewise.
1641 (wcscasecmp_l): Likewise.
1642 * conform/data/termios.h-data (c_cc): Add space after element
1643 name.
1644
16452018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1646
1647 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
1648 instead of manually comparing and reporting mismatching strings.
1649 * misc/tst-ldbl-error.c (do_one_test): Likewise.
1650 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1651
16522018-11-08 Joseph Myers <joseph@codesourcery.com>
1653
1654 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
1655 __ASSUME_SOCKETCALL.
1656 * sysdeps/unix/sysv/linux/i386/kernel-features.h
1657 (__ASSUME_SOCKETCALL): Remove.
1658 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1659 (__ASSUME_SOCKETCALL): Likewise.
1660 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1661 (__ASSUME_SOCKETCALL): Likewise.
1662 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1663 (__ASSUME_SOCKETCALL): Likewise.
1664 * sysdeps/unix/sysv/linux/s390/kernel-features.h
1665 (__ASSUME_SOCKETCALL): Likewise.
1666 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1667 (__ASSUME_SOCKETCALL): Likewise.
1668 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1669 (__ASSUME_SOCKETCALL): Likewise.
1670
16712018-11-08 H.J. Lu <hongjiu.lu@intel.com>
1672
1673 [BZ #23509]
1674 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
1675 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
1676 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
1677 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
1678 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
1679 lc_unknown.
1680
16812018-11-08 Alexandra Hájková <ahajkova@redhat.com>
1682
1683 [BZ #17630]
1684 * resolv/tst-resolv-network.c: Add test for getnetbyname.
1685
16862018-11-07 Joseph Myers <joseph@codesourcery.com>
1687
1688 [BZ #23867]
1689 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1690 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
1691 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1692 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
1693
16942018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1695
1696 * support/support_test_compare_string.c
1697 (support_test_compare_string): Fix printf format.
1698
16992018-11-07 Florian Weimer <fweimer@redhat.com>
1700
1701 Implement TEST_COMPARE_STRING.
1702 * support/check.h (TEST_COMPARE_STRING): Define.
1703 (support_test_compare_string): Declare.
1704 * support/Makefile (libsupport-routines): Add
1705 support_test_compare_string.
1706 (tests): Add tst-test_compare_string.
1707 * support/support_test_compare_string.c: New file.
1708 * support/tst-test_compare_string.c: Likewise.
1709
17102018-11-07 Andreas Schwab <schwab@suse.de>
1711
1712 [BZ #23864]
1713 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
1714 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
1715 Undef.
1716
17172018-11-06 Joseph Myers <joseph@codesourcery.com>
1718
1719 [BZ #23862]
1720 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1721 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
1722 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
1723 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
1724 Likewise.
1725
17262018-11-06 Florian Weimer <fweimer@redhat.com>
1727
1728 [BZ #17405]
1729 * posix/Makefile (routines): Add spawn_faction_addchdir.
1730 (tests): Add tst-spawn-chdir.
1731 * posix/Versions (GLIBC_2.29): Add
1732 posix_spawn_file_actions_addchdir_np.
1733 * posix/spawn_faction_addchdir.c: New file.
1734 * posix/spawn_faction_destroy.c
1735 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
1736 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
1737 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
1738 chdir_action.
1739 * posix/tst-spawn-chdir.c: New file.
1740 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
1741 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1742 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
1743 posix_spawn_file_actions_addchdir_np.
1744 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
1745 Likewise.
1746 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
1747 Likewise.
1748 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
1749 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
1750 Likewise.
1751 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
1752 Likewise.
1753 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
1754 Likewise.
1755 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
1756 Likewise.
1757 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
1758 Likewise.
1759 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
1760 Likewise.
1761 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1762 (GLIBC_2.29): Likewise.
1763 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1764 (GLIBC_2.29): Likewise.
1765 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1766 (GLIBC_2.29): Likewise.
1767 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1768 (GLIBC_2.29): Likewise.
1769 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
1770 Likewise.
1771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1772 (GLIBC_2.29): Likewise.
1773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1774 (GLIBC_2.29): Likewise.
1775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
1776 (GLIBC_2.29): Likewise.
1777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
1778 (GLIBC_2.29): Likewise.
1779 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
1780 Likewise.
1781 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
1782 Likewise.
1783 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
1784 Likewise.
1785 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
1786 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
1787 Likewise.
1788 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
1789 Likewise.
1790 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
1791 Likewise.
1792 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
1793 Likewise.
1794
17952018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1796
1797 * misc/Makefile (tests): Add tst-ldbl-error.
1798 * misc/tst-ldbl-error.c: New file.
1799
18002018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1801
1802 * misc/Makefile (tests): Add tst-ldbl-warn.
1803 * misc/tst-ldbl-warn.c: New file.
1804
18052018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1806
1807 * argp/Makefile (tests): Add tst-ldbl-argp.
1808 * argp/tst-ldbl-argp.c: New file.
1809
18102018-11-05 Arjun Shankar <arjun@redhat.com>
1811
1812 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
1813 __gconv_path_elem and call __gconv_get_path unconditionally.
1814
18152018-11-05 Andreas Schwab <schwab@suse.de>
1816
1817 [BZ #22927]
1818 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
1819 creating the first helper thread failed.
1820
18212018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1822
1823 * sysdeps/mach/hurd/msync.c: New file.
1824
18252018-11-02 Florian Weimer <fweimer@redhat.com>
1826
1827 * support/shell-container.c (copy_func): Call
1828 support_copy_file_range instead of copy_file_range to support
1829 cross-device copies.
1830
18312018-11-02 Florian Weimer <fweimer@redhat.com>
1832
1833 * support/test-container.c: Include <libc-pointer-arith.h> for
1834 ALIGN_UP.
1835
18362018-11-01 Zong Li <zong@andestech.com>
1837
1838 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
1839 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
1840 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
1841 (__FP_FRAC_SET_8): Add implementation for RV32 use.
1842
1843 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
1844 variable to avoid overlap arguments.
1845
18462018-11-01 Joseph Myers <joseph@codesourcery.com>
1847
1848 * posix/bug-regex22.c (main): Use puts with distinct error
1849 messages for unexpected success of re_compile_pattern, not printf
1850 with NULL argument to %s.
1851
1852 * stdio-common/bug22.c: Include <libc-diag.h>.
1853 (do_test): Disable -Wformat-overflow= warnings around fprintf
1854 calls outputting more than INT_MAX characters.
1855 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
1856 around printf call with NULL %s argument.
1857
1858 [BZ #23848]
1859 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
1860 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
1861 Undefine.
1862 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1863 (__ASSUME_RECVMSG_SYSCALL): Likewise.
1864 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1865 (__ASSUME_SENDTO_SYSCALL): Likewise.
1866 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1867 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
1868 [!__arch64__].
1869 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1870 (__ASSUME_CONNECT_SYSCALL): Likewise.
1871 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1872 (__ASSUME_RECVFROM_SYSCALL): Likewise.
1873 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
1874 Define.
1875 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
1876 Likewise.
1877 [__LINUX_KERNEL_VERSION >= 0x040400]
1878 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
1879 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
1880 Remove.
1881 (listen): Likewise.
1882 (setsockopt): Likewise.
1883
18842018-11-01 Fredrik Noring <noring@nocrew.org>
1885
1886 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
1887 with the ISA override.
1888
18892018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
1890
1891 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
1892 #endif.
1893
18942018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
1895
1896 * manual/errno.texi (EIEIO): Document how translators should
1897 translate the error message.
1898 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
1899 printing trailing whitespaces refused by git.
1900 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
1901 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
1902 * hurd/Makefile (user-interfaces): Add pci.
1903
19042018-10-30 Joseph Myers <joseph@codesourcery.com>
1905
1906 * conform/linknamespace.py: New file.
1907 * conform/linknamespace.pl: Remove file.
1908 * conform/Makefile ($(linknamespace-header-tests)): Use
1909 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
1910 option.
1911
19122018-10-30 Florian Weimer <fweimer@redhat.com>
1913
1914 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
1915 memory leaks.
1916
19172018-10-30 Florian Weimer <fweimer@redhat.com>
1918
1919 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
1920
19212018-10-30 Florian Weimer <fweimer@redhat.com>
1922
1923 * stdlib/tst-strtod-overflow.c (do_test): Switch to
1924 support_blob_repeat.
1925
19262018-10-30 Florian Weimer <fweimer@redhat.com>
1927
1928 Avoid spurious test failures in stdlib/test-bz22786.
1929 * support/Makefile (libsupport-routines): Add blob_repeat.
1930 (tests): Add tst-support_blob_repeat.
1931 * support/blob_repeat.h: New file.
1932 * support/blob_repeat.c: Likewise.
1933 * support/tst-support_blob_repeat.c: Likewise.
1934 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
1935 support_blob_repeat_allocate.
1936
19372018-10-30 Andreas Schwab <schwab@suse.de>
1938
1939 [BZ #23125]
1940 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
1941 Don't use tail call.
1942 * elf/tst-unwind-main.c: New file.
1943 * elf/Makefile (tests): Add tst-unwind-main.
1944 (CFLAGS-tst-unwind-main.c): Define.
1945
19462018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
1947
1948 [BZ #23791]
1949 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
1950 n_cs_precedes to 0.
1951 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
1952
19532018-10-29 Joseph Myers <joseph@codesourcery.com>
1954
1955 * conform/glibcconform.py: Do not import shutil.
1956 (list_exported_functions): Use tempfile.TemporaryDirectory instead
1957 of mkdtemp.
1958
1959 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
1960 critic_missing for versions before 3.4.
1961 * configure: Regenerated.
1962 * manual/install.texi (Tools for Compilation): Document
1963 requirement for Python to build glibc.
1964 * INSTALL: Regenerated.
1965 * Rules [PYTHON]: Make code unconditional.
1966 * benchtests/Makefile [PYTHON]: Likewise.
1967 * conform/Makefile [PYTHON]: Likewise.
1968 * manual/Makefile [PYTHON]: Likewise.
1969 * math/Makefile [PYTHON]: Likewise.
1970
19712018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1972
1973 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
1974 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
1975 answer to interrupt_operation, return EIEIO instead of EINTR.
1976 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
1977 _hurd_intr_rpc_msg_about_to global point to start of controlled
1978 assembly snippet. Make it check canceled flag.
1979 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
1980 the _hurd_intr_rpc_msg_about_to point.
1981 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
1982 issue, remove cancel flag check.
1983
19842018-10-26 Joseph Myers <joseph@codesourcery.com>
1985
1986 * scripts/build-many-glibcs.py: Remove compatibility for missing
1987 os.cpu_count and re.fullmatch.
1988
19892018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
1990
1991 [BZ #23822]
1992 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
1993 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
1994 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
1995
19962018-10-25 Joseph Myers <joseph@codesourcery.com>
1997
1998 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
1999 macro.
2000
20012018-10-25 Florian Weimer <fweimer@redhat.com>
2002
2003 [BZ #23562]
2004 [BZ #23821]
2005 XFAIL siginfo_t si_band conform test on sparc64.
2006 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
2007 (__SI_BAND_TYPE): Only override long int default type on sparc64.
2008 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
2009 (conformtest-xfail-conds): Add sparc64-linux.
2010 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
2011 sparc64.
2012 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
2013
20142018-10-25 Joseph Myers <joseph@codesourcery.com>
2015
2016 * elf/elf.h (NT_MIPS_DSP): New macro.
2017 (NT_MIPS_FP_MODE): Likewise.
2018
20192018-10-25 Zong Li <zong@andestech.com>
2020
2021 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
2022 name by adding the file extension (.so).
2023
20242018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
2025
2026 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
2027 (test-xfail-ISO11/threads.h/linknamespace,
2028 test-xfail-ISO11/threads.h/conform): Add.
2029
20302018-10-24 Joseph Myers <joseph@codesourcery.com>
2031
2032 * math/gen-libm-test.py: Import os.
2033 (ALL_FLOATS_MANUAL): New constant.
2034 (ALL_FLOATS_SUFFIX): Likewise.
2035 (Ulps.all_functions): New function.
2036 (real_all_ulps): Likewise.
2037 (generate_err_table_sub): Likewise.
2038 (generate_err_table): Likewise.
2039 (main): Handle -s and -m options.
2040 * manual/libm-err-tab.pl: Remove.
2041 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
2042 instead of libm-err-tab.pl.
2043 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
2044 != no].
2045 * manual/install.texi (Tools for Compilation): Document
2046 requirement for Python to build manual.
2047 * INSTALL: Regenerated.
2048
20492018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
2050
2051 * bits/time64.h: New file.
2052 * include/time.h: Replace internal_time_t with __time64_t.
2053 * posix/bits/types (__time64_t): Add.
2054 * stdlib/Makefile: Add bits/time64.h to includes.
2055 * time/tzfile.c: Replace internal_time_t with __time64_t.
2056
20572018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2058
2059 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
2060 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
2061 __posix_spawn_file_actions_init, __posix_spawnattr_init,
2062 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
2063 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
2064 prototype.
2065 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
2066 * posix/spawn_faction_addclose.c
2067 (__posix_spawn_file_actions_addclose): Add hidden definition.
2068 * posix/spawn_faction_adddup2.c
2069 (__posix_spawn_file_actions_adddup2): Likewise.
2070 * posix/spawn_faction_destroy.c
2071 (__posix_spawn_file_actions_destroy): Likewise.
2072 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
2073 Likewise.
2074 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
2075 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
2076 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
2077 Likewise.
2078 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
2079 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
2080 Likewise.
2081
20822018-10-24 Andreas Schwab <schwab@suse.de>
2083
2084 [BZ #18093]
2085 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
2086 format cache.
2087 * elf/cache.c (print_cache): Likewise.
2088
20892018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
2090
2091 * bits/timesize.h: New file.
2092 * stdlib/Makefile (headers): Add bits/timesize.h.
2093 * sysdeps/unix/sysv/linux/bits/msq-pad.h
2094 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
2095 * sysdeps/unix/sysv/linux/bits/sem-pad.h
2096 (__SEM_PAD_AFTER_TIME): Likewise.
2097 * sysdeps/unix/sysv/linux/bits/shm-pad.h
2098 (__SHM_PAD_AFTER_TIME): Likewise.
2099 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
2100 (__MSQ_PAD_BEFORE_TIME): Likewise.
2101 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
2102 (__SEM_PAD_BEFORE_TIME): Likewise.
2103 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
2104 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
2105 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
2106 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
2107 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
2108 (__MSQ_PAD_BEFORE_TIME): Likewise.
2109 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
2110 (__SEM_PAD_BEFORE_TIME): Likewise.
2111 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
2112 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
2113 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
2114 (__MSQ_PAD_BEFORE_TIME): Likewise.
2115 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
2116 (__SEM_PAD_BEFORE_TIME): Likewise.
2117 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
2118 (__SHM_PAD_BEFORE_TIME): Likewise.
2119 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
2120 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2121 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
2122
21232018-10-24 H.J. Lu <hongjiu.lu@intel.com>
2124
2125 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
2126 USE_RDTSCP is defined.
2127 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
2128 USE_RDTSCP is defined.
2129
21302018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2131
2132 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
2133 defined.
2134
2135 [BZ #23709]
2136 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
2137 independently of other flags.
2138
21392018-10-23 Florian Weimer <fweimer@redhat.com>
2140
2141 * time/tst-mktime2.c (N_STRINGS): Remove.
2142 (set_timezone): New function.
2143 (spring_forward_gap): Call it. Use FAIL_EXIT1.
2144 (mktime_test1): Report localtime failure and check errno value.
2145 Use TEST_COMPARE.
2146 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
2147 (do_test): Remove alarm call. Use set_timezone and array_length.
2148
21492018-10-23 Andreas Schwab <schwab@suse.de>
2150
2151 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
2152 (__start_context): Use END instead of PSEUDO_END.
2153
21542018-10-22 Joseph Myers <joseph@codesourcery.com>
2155
2156 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2157 version to 4.19.
2158
2159 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2160 version to 4.19.
2161
2162 [BZ #23793]
2163 * wcsmbs/c32rtomb.c: New file.
2164 * wcsmbs/mbrtoc32.c: Likewise.
2165 * wcsmbs/tst-c32-state.c: Likewise.
2166 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
2167 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
2168 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
2169 (tests): Add tst-c32-state.
2170 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
2171 $(gen-locales).
2172
21732018-10-21 H.J. Lu <hongjiu.lu@intel.com>
2174
2175 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
2176 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
2177
21782018-10-19 Joseph Myers <joseph@codesourcery.com>
2179
2180 [BZ #23794]
2181 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
2182 pair and return 0 in that case, and use saved character to
2183 interpret following character.
2184 * wcsmbs/tst-c16-surrogate.c: New file.
2185 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
2186 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
2187 Depend on $(gen-locales)
2188
21892018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2190
2191 [BZ #23562]
2192 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
2193 (struct siginfo_t): Use correct type for si_band.
2194
21952018-10-19 Florian Weimer <fweimer@redhat.com>
2196
2197 [BZ #23689]
2198 * resource/bits/types/struct_rusage.h (struct rusage): Update
2199 comment on struct. Remove extraneous field comment.
2200
22012018-10-18 David S. Miller <davem@davemloft.net>
2202
2203 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
2204 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
2205 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
2206 sysdep_routines in subdir elf.
2207 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
2208 version for __vdso_clock_gettime.
2209 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
2210 Define.
2211 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
2212 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
2213
2214 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
2215
22162018-10-17 H.J. Lu <hongjiu.lu@intel.com>
2217
2218 * sysdeps/i386/init-arch.h: Removed.
2219 * sysdeps/i386/i586/init-arch.h: Likewise.
2220 * sysdeps/i386/i686/init-arch.h: Likewise.
2221 * sysdeps/i386/i686/hp-timing.h: Likewise.
2222 * sysdeps/x86_64/hp-timing.h: Likewise.
2223 * sysdeps/i386/isa.h: New file.
2224 * sysdeps/i386/i586/isa.h: Likewise.
2225 * sysdeps/i386/i686/isa.h: Likewise.
2226 * sysdeps/x86_64/isa.h: Likewise.
2227 * sysdeps/x86/hp-timing.h: New file.
2228 * sysdeps/x86/init-arch.h: Include <isa.h>.
2229
22302018-10-17 Joseph Myers <joseph@codesourcery.com>
2231
2232 * math/libm-test-pow.inc (pow_test_data): Do not allow
2233 divide-by-zero exception for pow(+/- 0, -Inf).
2234
22352018-10-17 Zack Weinberg <zackw@panix.com>
2236
2237 * manual/job.texi (Job Control is Optional): Remove node, as
2238 job control has not been optional in quite some time.
2239 (Job Control): Mention briefly that systems older than
2240 POSIX.1-2001 might not support job control.
2241 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
2242 defined on systems conforming to POSIX.1-2001.
2243
22442018-10-17 Arjun Shankar <arjun@redhat.com>
2245
2246 [BZ #22062]
2247 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
2248 indentation.
2249 * (__gconv_read_conf): Mark function static.
2250 * (once): New static variable.
2251 * (__gconv_load_conf): New function.
2252 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
2253 * iconv/gconv_db.c (once): Remove static variable.
2254 * (__gconv_compare_alias): Use __gconv_load_conf instead of
2255 __gconv_read_conf.
2256 * (__gconv_find_transform): Likewise.
2257 * iconv/tst-iconv-mt.c: New test.
2258 * iconv/Makefile: Add tst-iconv_mt.
2259
22602018-10-17 Joseph Myers <joseph@codesourcery.com>
2261
2262 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2263 bits/shm-pad.h.
2264 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
2265 (shmatt_t): Define as __syscall_ulong_t.
2266 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
2267 and [__SHM_PAD_AFTER_TIME].
2268 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
2269 Define shm_segsz and associated padding based on
2270 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
2271 Use __syscall_ulong_t instead of unsigned long int.
2272 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
2273 unsigned long int.
2274 [__USE_MISC] (struct shm_info): Likewise.
2275 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
2276 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
2277 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
2278 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
2279 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
2280 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2281 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
2282 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2283 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2284 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2285 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2286
2287 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2288 bits/shmlba.h.
2289 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
2290 (SHMLBA): Remove macro.
2291 (__getpagesize): Remove function declaration.
2292 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
2293 <bits/shmlba.h>.
2294 (SHMLBA): Remove macro.
2295 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
2296 <bits/shmlba.h>.
2297 (SHMLBA): Remove macro.
2298 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
2299 <bits/shmlba.h>.
2300 (SHMLBA): Remove macro.
2301 (__getpagesize): Remove function declaration.
2302 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
2303 <bits/shmlba.h>.
2304 (SHMLBA): Remove macro.
2305 (__getshmlba): Remove function declaration.
2306 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
2307 (SHMLBA): Remove macro.
2308 (__getpagesize): Remove function declaration.
2309 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
2310 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2311 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2312 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
2313 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
2314 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
2315 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
2316 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
2317 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
2318 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
2319
23202018-10-17 Stefan Liebler <stli@linux.ibm.com>
2321
2322 [BZ #23275]
2323 * nptl/tst-mutex10.c: New File.
2324 * nptl/Makefile (tests): Add tst-mutex10.
2325 (tst-mutex10-ENV): New variable.
2326 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
2327 Ensure that elision path is used if elision is available.
2328 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
2329 Likewise.
2330 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
2331 Likewise.
2332 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
2333 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
2334 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
2335 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
2336 Likewise.
2337 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
2338 (__pthread_mutex_cond_lock_adjust): Likewise.
2339 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
2340 Likewise.
2341 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
2342 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
2343 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
2344 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
2345 Add comments.
2346 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
2347 Use atomic_load_relaxed and atomic_store_relaxed.
2348 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
2349 Use atomic_store_relaxed.
2350
23512018-10-17 Andreas Schwab <schwab@suse.de>
2352
2353 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
2354 * crypt/badsalttest.c (TIMEOUT): Likewise.
2355 * crypt/sha256c-test.c (TIMEOUT): Likewise.
2356 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
2357 * io/test-lfs.c (TIMEOUT): Likewise.
2358 * libio/tst-atime.c (TIMEOUT): Likewise.
2359 * localedata/tst-leaks.c (TIMEOUT): Likewise.
2360 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
2361 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
2362 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
2363 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
2364 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
2365 * nptl/tst-cond11.c (TIMEOUT): Likewise.
2366 * nptl/tst-cond14.c (TIMEOUT): Likewise.
2367 * nptl/tst-cond15.c (TIMEOUT): Likewise.
2368 * nptl/tst-cond24.c (TIMEOUT): Likewise.
2369 * nptl/tst-cond25.c (TIMEOUT): Likewise.
2370 * nptl/tst-kill2.c (TIMEOUT): Likewise.
2371 * nptl/tst-kill3.c (TIMEOUT): Likewise.
2372 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
2373 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
2374 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
2375 * nptl/tst-once2.c (TIMEOUT): Likewise.
2376 * nptl/tst-once3.c (TIMEOUT): Likewise.
2377 * nptl/tst-once4.c (TIMEOUT): Likewise.
2378 * nptl/tst-robust8.c (TIMEOUT): Likewise.
2379 * nptl/tst-robust9.c (TIMEOUT): Likewise.
2380 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
2381 * nptl/tst-sem14.c (TIMEOUT): Likewise.
2382 * nptl/tst-sem6.c (TIMEOUT): Likewise.
2383 * nptl/tst-signal3.c (TIMEOUT): Likewise.
2384 * nptl/tst-spin4.c (TIMEOUT): Likewise.
2385 * nptl/tst-tls3.c (TIMEOUT): Likewise.
2386 * nptl/tst-tls4.c (TIMEOUT): Likewise.
2387 * posix/tst-chmod.c (TIMEOUT): Likewise.
2388 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
2389 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
2390 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
2391 * posix/tst-regex2.c (TIMEOUT): Likewise.
2392 * posix/tst-waitid.c (TIMEOUT): Likewise.
2393 * rt/tst-aio.c (TIMEOUT): Likewise.
2394 * rt/tst-aio10.c (TIMEOUT): Likewise.
2395 * rt/tst-aio4.c (TIMEOUT): Likewise.
2396 * rt/tst-aio5.c (TIMEOUT): Likewise.
2397 * rt/tst-aio6.c (TIMEOUT): Likewise.
2398 * rt/tst-aio64.c (TIMEOUT): Likewise.
2399 * rt/tst-aio7.c (TIMEOUT): Likewise.
2400 * rt/tst-aio9.c (TIMEOUT): Likewise.
2401 * rt/tst-clock.c (TIMEOUT): Likewise.
2402 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
2403 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
2404 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
2405 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
2406 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
2407 * rt/tst-timer4.c (TIMEOUT): Likewise.
2408 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
2409 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
2410 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
2411 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
2412 * time/tst-ftime.c (TIMEOUT): Likewise.
2413 * timezone/tst-tzset.c (TIMEOUT): Likewise.
2414
24152018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2416
2417 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
2418 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
2419 for thunderX2.
2420
24212018-10-15 Joseph Myers <joseph@codesourcery.com>
2422
2423 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2424 bits/sem-pad.h.
2425 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
2426 instead of <bits/wordsize.h>.
2427 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
2428 and [__SEM_PAD_AFTER_TIME].
2429 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
2430 __syscall_ulong_t instead of unsigned long int.
2431 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
2432 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
2433 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
2434 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
2435 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
2436 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
2437 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
2438 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
2439 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
2440 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
2441 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
2442
24432018-10-14 Paul Eggert <eggert@cs.ucla.edu>
2444
2445 regex: simplify by using intprops.h
2446 [BZ#23744]
2447 * posix/regex_internal.h [_LIBC]: Include intprops.h.
2448 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
2449 intprops.h defines them.
2450
2451 regex: __builtin_expect → __glibc_unlikely
2452 [BZ#23744]
2453 This refactoring was prompted by a problem when the regex code is
2454 used as part of Gnulib and when the builder’s compiler does not grok
2455 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
2456 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
2457 Although this refactoring does not fix the problem directly,
2458 we might as well have Gawk use the now-preferred glibc style for when
2459 __builtin_expect is unavailable.
2460 * posix/regex_internal.h (BE): Remove.
2461 All uses replaced by __glibc_unlikely or __glibc_likely.
2462
24632018-10-11 Joseph Myers <joseph@codesourcery.com>
2464
2465 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2466 bits/msq-pad.h.
2467 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
2468 instead of <bits/wordsize.h>.
2469 (msgqnum_t): Define as __syscall_ulong_t.
2470 (msglen_t): Likewise.
2471 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
2472 and [__MSQ_PAD_AFTER_TIME].
2473 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
2474 __syscall_ulong_t instead of unsigned long int.
2475 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
2476 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
2477 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
2478 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
2479 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
2480 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
2481 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
2482 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
2483 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
2484 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
2485 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
2486
24872018-10-10 Joseph Myers <joseph@codesourcery.com>
2488
2489 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
2490 (struct shmid_ds): Condition padding after time fields on
2491 [__WORDSIZE == 32].
2492 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
2493 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
2494 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2495
2496 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
2497 (struct semid_ds): Condition padding after time fields on
2498 [__WORDSIZE == 32].
2499 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
2500 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
2501 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
2502 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
2503
2504 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
2505 (struct msqid_ds): Condition padding after time fields on
2506 [__WORDSIZE == 32].
2507 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
2508 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
2509 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
2510 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
2511
25122018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
2513
2514 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
2515
25162018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
2517
2518 * libio/tst-readline.c (TIMEOUT): Define.
2519
25202018-10-08 Paul Eggert <eggert@cs.ucla.edu>
2521
2522 mktime fix for Gnulib + coreutils
2523 [BZ#23745]
2524 This fix affects only Gnulib. Problem discovered when
2525 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
2526 * time/mktime.c:
2527 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
2528 Do not define since it is not used. Defining an unused static
2529 function prompts a warning from GCC when Coreutils is configured
2530 with --enable-gcc-warnings.
2531
25322018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2533
2534 * benchtests/scripts/compare_bench.py (main): set float type on
2535 threshold argument.
2536
25372018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
2538
2539 [BZ #23740]
2540 * localedata/locales/kl_GL (mon): Update, the relative case.
2541 (alt_mon): Add, fill with month names in the nominative case.
2542 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
2543 (d_fmt): Set to "%b %d %Y".
2544
25452018-10-04 Joseph Myers <joseph@codesourcery.com>
2546
2547 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
2548 <bits/mman-linux.h>.
2549 (PROT_READ): Don't define here.
2550 (PROT_WRITE): Likewise.
2551 (PROT_EXEC): Likewise.
2552 (PROT_NONE): Likewise.
2553 (PROT_GROWSDOWN): Likewise.
2554 (PROT_GROWSUP): Likewise.
2555 (MAP_SHARED): Likewise.
2556 (MAP_PRIVATE): Likewise.
2557 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
2558 [__USE_MISC] (MAP_FILE): Likewise.
2559 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
2560 [__USE_MISC] (MAP_ANON): Likewise.
2561 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
2562 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
2563 (MCL_CURRENT): Likewise.
2564 (MCL_FUTURE): Likewise.
2565 (MCL_ONFAULT): Likewise.
2566 [__USE_MISC] (MADV_NORMAL): Likewise.
2567 [__USE_MISC] (MADV_RANDOM): Likewise.
2568 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
2569 [__USE_MISC] (MADV_WILLNEED): Likewise.
2570 [__USE_MISC] (MADV_DONTNEED): Likewise.
2571 [__USE_MISC] (MADV_FREE): Likewise.
2572 [__USE_MISC] (MADV_REMOVE): Likewise.
2573 [__USE_MISC] (MADV_DONTFORK): Likewise.
2574 [__USE_MISC] (MADV_DOFORK): Likewise.
2575 [__USE_MISC] (MADV_HWPOISON): Likewise.
2576 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
2577 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
2578 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
2579 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
2580 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
2581 (__MAP_ANONYMOUS): New macro.
2582 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
2583 <bits/mman-linux.h> inclusion.
2584 (MAP_FIXED): Likewise.
2585 (MS_SYNC): Likewise.
2586 (MS_ASYNC): Likewise.
2587 (MS_INVALIDATE): Likewise.
2588 [__USE_MISC] (MADV_MERGEABLE): Likewise.
2589 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
2590 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
2591 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
2592 [__USE_MISC] (MADV_DONTDUMP): Likewise.
2593 [__USE_MISC] (MADV_DODUMP): Likewise.
2594 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
2595 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
2596
2597 [BZ #23735]
2598 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
2599 Define.
2600 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
2601 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
2602 Add test-nldbl-redirect.
2603 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
2604 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
2605 $(objpfx)libnldbl_nonshared.a.
2606
26072018-10-04 Stefan Liebler <stli@linux.ibm.com>
2608
2609 * support/support.h (support_objdir_elf_ldso): New variable.
2610 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
2611 * support/Makefile (CFLAGS-support_paths.c): Add definition
2612 for OBJDIR_ELF_LDSO_PATH.
2613 * support/test-container.c (main): Search for the ld.so
2614 which is also used by the testsuite.
2615
26162018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
2617
2618 [BZ #20209]
2619 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
2620 should be "sap" rather than "sab".
2621 (day): Fix spelling of Sunday, should be "sapaat" rather than
2622 "sabaat".
2623
26242018-10-02 Joseph Myers <joseph@codesourcery.com>
2625
2626 * math/libm-test-fma.inc (fma_test_data): Add more tests.
2627
26282018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
2629
2630 [BZ #19444]
2631 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
2632 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
2633 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
2634
26352018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2636
2637 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
2638
26392018-10-02 H.J. Lu <hongjiu.lu@intel.com>
2640
2641 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
2642 Add -mrtm.
2643 (CFLAGS-elision-unlock.c): Likewise.
2644 (CFLAGS-elision-timed.c): Likewise.
2645 (CFLAGS-elision-trylock.c): Likewise.
2646 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
2647
26482018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2649
2650 [BZ #21037]
2651 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
2652 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
2653 new fd_to_filename interface.
2654 * libio/freopen64.c (freopen64): Likewise.
2655 * libio/tst-memstream.h: New file.
2656 * libio/tst-memstream4.c: Likewise.
2657 * libio/tst-wmemstream4.c: Likewise.
2658 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
2659 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
2660 and remove internal dynamic allocation.
2661
26622018-10-01 Joseph Myers <joseph@codesourcery.com>
2663
2664 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
2665 (MREMAP_MAYMOVE): Do not define here.
2666 [__USE_GNU] (MREMAP_FIXED): Likewise.
2667 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
2668 (MREMAP_MAYMOVE): Define here instead.
2669 [__USE_GNU] (MREMAP_FIXED): Likewise.
2670 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
2671 (MREMAP_MAYMOVE): Remove.
2672 [__USE_GNU] (MREMAP_FIXED): Likewise.
2673
26742018-09-28 Joseph Myers <joseph@codesourcery.com>
2675
2676 * math/fromfp.h: Do not include <math_private.h>.
2677 * math/s_cacosh_template.c: Likewise.
2678 * math/s_casin_template.c: Likewise.
2679 * math/s_casinh_template.c: Likewise.
2680 * math/s_ccos_template.c: Likewise.
2681 * math/s_cproj_template.c: Likewise.
2682 * math/s_fdim_template.c: Likewise.
2683 * math/s_fmaxmag_template.c: Likewise.
2684 * math/s_fminmag_template.c: Likewise.
2685 * math/s_iseqsig_template.c: Likewise.
2686 * math/s_ldexp_template.c: Likewise.
2687 * math/s_nextdown_template.c: Likewise.
2688 * math/w_log1p_template.c: Likewise.
2689 * math/w_scalbln_template.c: Likewise.
2690 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
2691 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
2692 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
2693 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
2694 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
2695 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
2696 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
2697 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
2698 * sysdeps/i386/fpu/s_atanl.c: Likewise.
2699 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
2700 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
2701 * sysdeps/i386/fpu/s_fdim.c: Likewise.
2702 * sysdeps/i386/fpu/s_logbl.c: Likewise.
2703 * sysdeps/i386/fpu/s_rintl.c: Likewise.
2704 * sysdeps/i386/fpu/s_significandl.c: Likewise.
2705 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
2706 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
2707 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2708 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2709 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
2710 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
2711 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2712 * sysdeps/ieee754/k_standardf.c: Likewise.
2713 * sysdeps/ieee754/k_standardl.c: Likewise.
2714 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2715 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
2716 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
2717 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
2718 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
2719 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
2720 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2721 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
2722 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
2723 * sysdeps/ieee754/s_signgam.c: Likewise.
2724 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
2725 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
2726 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
2727 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
2728 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
2729 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
2730 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2731 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
2732 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
2733 * sysdeps/riscv/rvd/s_finite.c: Likewise.
2734 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
2735 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
2736 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
2737 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
2738 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
2739 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
2740 * sysdeps/riscv/rvf/fegetround.c: Likewise.
2741 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
2742 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
2743 * sysdeps/riscv/rvf/fesetround.c: Likewise.
2744 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
2745 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
2746 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
2747 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
2748 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
2749 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
2750 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
2751 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
2752 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
2753 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
2754 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
2755 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
2756 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
2757 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
2758 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2759 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
2760 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
2761 <math_private.h>.
2762 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
2763
27642018-09-28 H.J. Lu <hongjiu.lu@intel.com>
2765
2766 [BZ #23716]
2767 * sysdeps/i386/dl-cet.c: Removed.
2768 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
2769 prototype.
2770 (_dl_runtime_profile_shstk): Likewise.
2771 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
2772 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
2773
27742018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2775
2776 [BZ #23579]
2777 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
2778 do_test_with_invalid_iov): New tests.
2779 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
2780 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
2781 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
2782 errno is ENOSYS.
2783 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2784 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2785 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
2786
27872018-09-27 Joseph Myers <joseph@codesourcery.com>
2788
2789 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2790 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
2791 (MATH_REDIRECT_BINARY_ARGS): New macro.
2792 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2793 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
2794 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
2795 header inclusion.
2796 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
2797 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2798 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
2799 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2800 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2801 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2802 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2803 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
2804 Likewise.
2805 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
2806 Likewise.
2807 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
2808 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
2809 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
2810 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
2811 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
2812 Likewise.
2813 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
2814 Likewise.
2815 * sysdeps/generic/math_private_calls.h
2816 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
2817 Do not declare and define as an inline function.
2818 * math/divtc3.c (__divtc3): Use copysign functions instead of
2819 __copysign variants.
2820 * math/multc3.c (__multc3): Likewise.
2821 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
2822 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
2823 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
2824 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
2825 Likewise.
2826 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
2827 (__ieee754_yn): Likewise.
2828 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
2829 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
2830 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
2831 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2832 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
2833 (__sin): Likewise.
2834 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
2835 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2836 Likewise.
2837 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2838 Likewise.
2839 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2840 Likewise.
2841 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
2842 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
2843 Likewise.
2844 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
2845 (__ieee754_ynf): Likewise.
2846 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
2847 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2848 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
2849 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
2850 Likewise.
2851 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2852 (__ieee754_ynl): Likewise.
2853 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2854 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2855 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
2856 Likewise.
2857 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2858 (__ieee754_ynl): Likewise.
2859 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
2860 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2861 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2862 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2863 Likewise.
2864 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2865 (__ieee754_ynl)
2866 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
2867 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2868 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
2869 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
2870 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
2871
2872 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2873 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
2874 using MATH_REDIRECT.
2875 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
2876 header inclusion.
2877 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
2878 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2879 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2880 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
2881 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2882 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2883 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2884 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
2885 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
2886 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
2887 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
2888 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2889 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2890 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
2891 (round): Redirect to __round.
2892 (__roundl): Call round instead of __round.
2893 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
2894 Remove macro.
2895 [_ARCH_PWR5X] (__roundf): Likewise.
2896 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
2897 functions instead of __round variants.
2898 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
2899 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
2900 Likewise.
2901 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
2902 Likewise.
2903 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
2904 Likewise.
2905 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
2906 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
2907 __lroundl.
2908 (__ieee754_expl): Call roundl instead of __roundl.
2909
29102018-09-27 Andreas Schwab <schwab@suse.de>
2911
2912 [BZ #23717]
2913 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
2914 (do_test): Make st1 static.
2915
29162018-09-26 Andreas Schwab <schwab@suse.de>
2917
2918 [BZ #23707]
2919 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
2920 * elf/Makefile (tests): Add tst-unwind-ctor.
2921 (modules-names): Add tst-unwind-ctor-lib.
2922 ($(objpfx)tst-unwind-ctor): Depend on
2923 $(objpfx)tst-unwind-ctor-lib.so.
2924
29252018-09-26 Joseph Myers <joseph@codesourcery.com>
2926
2927 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
2928 file. Most contents moved from ....
2929 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
2930 and include <bits/mman-map-flags-generic.h>.
2931 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2932 (sysdep_headers): Add bits/mman-map-flags-generic.h.
2933 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
2934 <bits/mman-map-flags-generic.h>.
2935 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
2936 macros defined in <bits/mman-map-flags-generic.h>.
2937 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
2938 <bits/mman-map-flags-generic.h>.
2939 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
2940 defined in <bits/mman-map-flags-generic.h>.
2941
29422018-09-26 Andreas Schwab <schwab@suse.de>
2943
2944 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
2945 output.
2946
29472018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
2948 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2949 Fangrui Song <maskray@google.com>
2950
2951 [BZ #20480]
2952 * config.make.in (have-textrel_ifunc): New define.
2953 * configure.ac: Add check if linker supports textrel relocation with
2954 ifunc.
2955 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
2956 tst-ifunc-textrel.
2957 (CFLAGS-tst-ifunc-textrel.c): New rule.
2958 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
2959 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
2960 * elf/tst-ifunc-textrel.c: New file.
2961
29622018-09-25 Joseph Myers <joseph@codesourcery.com>
2963
2964 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
2965 <bits/procfs-prregset.h>.
2966 (prgregset_t): Define using __prgregset_t.
2967 (prfpregset_t): Define using __prfpregset_t.
2968 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2969 (sysdep_headers): Add bits/procfs-prregset.h.
2970 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
2971 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
2972 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
2973 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
2974
2975 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
2976 <bits/procfs-id.h> and <bits/procfs-extra.h>.
2977 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
2978 pr_uid and pr_gid.
2979 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2980 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
2981 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
2982 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
2983 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
2984 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
2985 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
2986 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
2987 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
2988 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
2989 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
2990 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
2991 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
2992 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
2993 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
2994 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
2995 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
2996 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
2997 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
2998 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
2999 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
3000 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
3001 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3002 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
3003
3004 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
3005 AArch64 version. Include <bits/procfs.h>.
3006 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3007 (sysdep_headers): Add bits/procfs.h.
3008 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
3009 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
3010 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
3011 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
3012 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
3013 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
3014 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
3015 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
3016 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
3017 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
3018 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
3019 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
3020 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
3021 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
3022 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
3023 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3024 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
3025
30262018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3027
3028 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
3029 Use libsupport.
3030
30312018-09-25 Arjun Shankar <arjun@redhat.com>
3032
3033 * iconv/gconv_int.h (__gconv_path_elem): Remove.
3034 (__gconv_max_path_elem_len): Likewise.
3035 (__gconv_nmodules): Likewise.
3036 (__gconv_get_path): Likewise.
3037 (path_elem): Move to ...
3038 * iconv/gconv_conf.c: ... here.
3039 (__gconv_get_path): Mark function static.
3040 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
3041 * iconv/gconv_open.c: ... here.
3042
30432018-09-24 Andreas Schwab <schwab@suse.de>
3044
3045 * scripts/haveversions.awk: New file.
3046 * Makerules ($(common-objpfx)Versions.def)
3047 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
3048 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
3049 Move rules ...
3050 * Makeconfig ($(common-objpfx)Versions.def)
3051 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
3052 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
3053 ... here.
3054 ($(common-objpfx)Versions.mk): New rule. Include it.
3055 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
3056 Emit error if build-obsolete-nsl = yes.
3057 * manual/install.texi (Configuring and compiling): Describe
3058 --enable-obsolete-nsl as unavaiable after version 2.28.
3059 * INSTALL: Regenerate.
3060
30612018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3062
3063 * NEWS: Add note about new TLE support on powerpc64le.
3064 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
3065 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
3066 __ununsed1.
3067 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
3068 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
3069 * sysdeps/powerpc/powerpc32/sysdep.h,
3070 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
3071 ABORT_TRANSACTION): Remove macros.
3072 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
3073 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
3074 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
3075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
3076 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3077 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
3078 usage.
3079 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
3080
30812018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
3082
3083 [BZ #10425]
3084 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
3085 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
3086 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
3087 which is the same as in it_IT.
3088 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
3089 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
3090
30912018-09-20 Joseph Myers <joseph@codesourcery.com>
3092
3093 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3094 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
3095 using MATH_REDIRECT.
3096 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
3097 header inclusion.
3098 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
3099 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
3100 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
3101 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3102 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
3103 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
3105 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
3106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
3107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
3108 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3109 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3110 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
3111 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
3112 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
3113 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
3114 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
3115 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3116 (ceil): Redirect to __ceil.
3117 (floor): Redirect to __floor.
3118 (trunc): Redirect to __trunc.
3119 (__truncl): Call trunc instead of __trunc.
3120 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
3121 Remove macro.
3122 [_ARCH_PWR5X] (__truncf): Likewise.
3123 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
3124 trunc functions instead of __trunc variants.
3125 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3126 Likewise.
3127 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3128 Likewise.
3129 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3130 Likewise.
3131 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3132 Likewise.
3133
3134 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
3135 [__i586__ || __pentium__].
3136 [__i486__]: Handle explicitly.
3137 (HAS_CPUID): Define to 1 if above macros are undefined.
3138 (HAS_I586): Likewise.
3139 (HAS_I686): Likewise.
3140
31412018-09-20 Florian Weimer <fweimer@redhat.com>
3142
3143 * misc/tst-gethostid.c: New file.
3144 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
3145 (tst-gethostid): Link with -ldl.
3146
31472018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
3148
3149 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
3150 value from gethostbyname_r.
3151
31522018-09-19 Carlos O'Donell <carlos@redhat.com>
3153
3154 * stdlib/tst-setcontext9.c (f1): Rename to...
3155 (f1a): ... this.
3156 (f1b): New function implementing lower half of f1 in alternate stack.
3157
31582018-09-19 Paul Eggert <eggert@cs.ucla.edu>
3159
3160 Fix mktime localtime offset confusion
3161 [BZ #23603]
3162 * include/time.h (__mktime_internal): The localtime offset is now
3163 of type long int instead of time_t. This is the longstanding type
3164 in glibc, and it is more than enough to represent difference
3165 between localtime and gmtime even if it is 32 bits and time_t is
3166 64. Changing it now will let us avoid an unnecessary change when
3167 time_t is widened to 64 bits on 32-bit platforms.
3168 * time/mktime-internal.h (mktime_offset_t): Now long int.
3169
3170 Merge mktime, timegm from upstream Gnulib
3171 [BZ #23603][BZ #16346]
3172 This fixes some obscure problems with integer overflow.
3173 Although it looks scary, it is almost all a byte-for-byte copy
3174 from Gnulib, and the Gnulib code has been tested reasonably well.
3175 * include/intprops.h: New file, copied from Gnulib.
3176 * include/verify.h, time/mktime-internal.h:
3177 New tiny files, simplified from Gnulib.
3178 * time/mktime.c: Copy from Gnulib. This has the following changes:
3179 Do not include config.h if DEBUG_MKTIME is nonzero.
3180 Include stdbool.h, intprops.h, verify.h.
3181 Include string.h only if needed.
3182 Include stdlib.h on MS-Windows.
3183 Include mktime-internal.h.
3184 (DEBUG_MKTIME): Default to 0, and simplify later uses.
3185 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
3186 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
3187 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
3188 simplify later conditionals; default the others to zero. Use
3189 these conditionals to express only the code needed on the current
3190 platform. In uses of these conditionals, explicitly spell out how
3191 _LIBC affects things, so it’s easier to review from a glibc
3192 viewpoint.
3193 (WRAPV): Remove; no longer needed now that we have
3194 systematic overflow checking.
3195 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
3196 compartmentalize tzset issues. Move system-dependent tzsettish
3197 code here from mktime.
3198 (verify): Remove; now done by verify.h. All uses changed.
3199 (long_int): Use a more-conservative definition, to avoid
3200 integer overflow.
3201 (SHR): Remove, replacing with ...
3202 (shr): New function, which means we needn’t worry about side
3203 effects in args, and conversion analysis is simpler.
3204 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
3205 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
3206 (time_t_avg, time_t_add_ok): Remove.
3207 (mktime_min, mktime_max): New constants.
3208 (leapyear, isdst_differ): Use bool for booleans.
3209 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
3210 Use long_int, not time_t, for mktime differences.
3211 (long_int_avg): New function, replacing time_t_avg.
3212 INT_ADD_WRAPV replaces time_t_add_ok.
3213 (guess_time_tm): 6th arg is now long_int, not time_t const *.
3214 All uses changed.
3215 (convert_time): New function.
3216 (ranged_convert): Use it.
3217 (__mktime_internal): Last arg now points to mktime_offset_t, not
3218 time_t. All uses changed. This is a no-op on glibc, where
3219 mktime_offset_t is always time_t. Use int, not time_t, for UTC
3220 offset guess. Directly check for integer overflow instead of
3221 using a heuristic that works only 99.9...% of the time.
3222 Access *OFFSET only once, to avoid an unlikely race if the
3223 compiler delays a load and if this cascades into a signed integer
3224 overflow.
3225 (mktime): Move tzsettish code to my_tzset, and move
3226 localtime_offset to within mktime so that it doesn’t
3227 need a separate ifdef.
3228 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
3229 instead of localtime.
3230 * time/timegm.c: Copy from Gnulib. This has the following changes:
3231 Include mktime-internal.h.
3232 [!_LIBC]: Include config.h and time.h. Do not include
3233 timegm.h or time_r.h. Make __mktime_internal a macro,
3234 and include mktime-internal.h to get its declaration.
3235 (timegm): Temporary is now mktime_offset_t, not time_t.
3236 This affects only Gnulib.
3237
32382018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3239
3240 [BZ #23637]
3241 * string/test-strstr.c (pr23637): New function.
3242 (test_main): Add tests with longer needles.
3243 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
3244 * string/strstr.c (AVAILABLE): Likewise.
3245
32462018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3247
3248 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
3249
32502018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3251
3252 * NEWS: Mention pow improvements.
3253 * math/Makefile (type-double-routines): Add e_pow_log_data.
3254 * sysdeps/generic/math_private.h (__exp1): Remove.
3255 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
3256 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
3257 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
3258 contraction.
3259 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
3260 (exp_inline): Remove.
3261 (__ieee754_exp): Only single double input is handled.
3262 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
3263 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
3264 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
3265 (__pow_log_data): Define.
3266 * sysdeps/ieee754/dbl-64/upow.h: Remove.
3267 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
3268 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
3269 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
3270 contraction.
3271 (CFLAGS-e_pow-fma4.c): Likewise.
3272
32732018-09-18 Paul Eggert <eggert@cs.ucla.edu>
3274
3275 Simplify tzfile fstat failure code
3276 [BZ #21716]
3277 * time/tzfile.c (__tzfile_read): Simplify slightly.
3278
3279 Fix tzfile low-memory assertion failure
3280 [BZ #21716]
3281 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
3282 when registering time zone abbreviations.
3283
32842018-09-18 Joseph Myers <joseph@codesourcery.com>
3285
3286 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
3287 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
3288 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3289 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3290 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
3291 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
3292 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
3293 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3294 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3295
3296 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
3297 __ceil.
3298 (__ceill): Call ceil instead of __ceil.
3299 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
3300 __floor.
3301 (__floorl): Call floor instead of __floor.
3302
33032018-09-17 Joseph Myers <joseph@codesourcery.com>
3304
3305 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3306 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
3307 using MATH_REDIRECT.
3308 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
3309 header inclusion.
3310 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
3311 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3312 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3313 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
3314 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3315 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3316 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
3317 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
3318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
3319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
3320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
3321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
3322 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
3323 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3324 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
3325 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
3326 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
3327 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
3328 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
3329 Remove macro.
3330 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
3331 functions instead of __ceil variants.
3332 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
3333 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
3334 Likewise.
3335 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
3336 Likewise.
3337 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
3338 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
3339 Likewise.
3340 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3341 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3342
3343 [BZ #21286]
3344 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
3345 constant.
3346 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
3347 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
3348 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
3349 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
3350 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
3351 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
3352 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
3353 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
3354 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
3355 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
3356 (ILL_BADIADDR): Remove constant.
3357 (TRAP_BRANCH): Likewise.
3358 (TRAP_HWBKPT): Likewise.
3359
33602018-09-14 Joseph Myers <joseph@codesourcery.com>
3361
3362 [BZ #23656]
3363 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
3364 Remove [_MIPS_SIM = _ABIN32] conditional case.
3365 (struct elf_prpsinfo): Likewise.
3366
3367 [BZ #23649]
3368 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
3369 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
3370 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
3371 Likewise.
3372 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
3373 elf_prpsinfo): Likewise.
3374 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
3375 elf_prpsinfo): Likewise.
3376 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
3377 Likewise.
3378
3379 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3380 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
3381 using MATH_REDIRECT.
3382 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
3383 header inclusion.
3384 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
3385 * sysdeps/alpha/fpu/s_rint.c: Likewise.
3386 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
3387 * sysdeps/i386/fpu/s_rintl.c: Likewise.
3388 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3389 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3390 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
3391 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3392 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3393 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
3394 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
3395 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
3396 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
3397 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
3398 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
3399 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
3400 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3401 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
3402 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
3403 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
3404 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
3405 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
3406 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
3407 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
3408 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
3409 * sysdeps/x86_64/fpu/math_private.h: Remove file.
3410 * math/e_scalb.c (invalid_fn): Use rint functions instead of
3411 __rint variants.
3412 * math/e_scalbf.c (invalid_fn): Likewise.
3413 * math/e_scalbl.c (invalid_fn): Likewise.
3414 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
3415 Likewise.
3416 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3417 Likewise.
3418 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
3419 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
3420 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3421 Likewise.
3422 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3423 Likewise.
3424 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3425 Likewise.
3426 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
3427 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3428
3429 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3430 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
3431 New macro.
3432 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3433 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
3434 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3435 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
3436 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3437 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
3438 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3439 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
3440 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3441 && !NO_MATH_REDIRECT] (floor): Likewise.
3442 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
3443 header inclusion.
3444 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
3445 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3446 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3447 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
3448 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3449 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3450 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
3451 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
3452 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
3453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
3454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
3455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
3456 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3457 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3458 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
3459 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
3460 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
3461 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
3462 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
3463 Remove macro.
3464 [_ARCH_PWR5X] (__floorf): Likewise.
3465 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
3466 inline function.
3467 [__SSE4_1__] (__floorf): Likewise.
3468 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
3469 instead of __floor variants.
3470 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
3471 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
3472 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
3473 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
3474 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
3475 * math/w_tgamma_compat.c (__tgamma): Likewise.
3476 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
3477 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
3478 * math/w_tgammal_compat.c (__tgammal): Likewise.
3479 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
3480 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
3481 Likewise.
3482 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
3483 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
3484 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
3485 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3486 Likewise.
3487 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3488 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
3489 Likewise.
3490 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
3491 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
3492 Likewise.
3493 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3494 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
3495 Likewise.
3496 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
3497 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
3498 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
3499 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
3500 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3501 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3502
35032018-09-12 Joseph Myers <joseph@codesourcery.com>
3504
3505 * elf/Makefile (modules-names-tests): New variable.
3506
35072018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
3508
3509 * NEWS: Mention log2 improvements.
3510 * math/Makefile (type-double-routines): Add e_log2_data.
3511 * sysdeps/i386/fpu/e_log2_data.c: New file.
3512 * sysdeps/ia64/fpu/e_log2_data.c: New file.
3513 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
3514 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
3515 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
3516 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
3517 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
3518
35192018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
3520
3521 * NEWS: Mention log improvement.
3522 * math/Makefile (type-double-routines): Add e_log_data.
3523 * sysdeps/i386/fpu/e_log_data.c: New file.
3524 * sysdeps/ia64/fpu/e_log_data.c: New file.
3525 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
3526 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
3527 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
3528 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
3529 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
3530 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
3531
35322018-09-12 H.J. Lu <hongjiu.lu@intel.com>
3533 Xuepeng Guo <xuepeng.guo@intel.com>
3534
3535 [BZ #23606]
3536 * sysdeps/i386/start.S: Include <sysdep.h>
3537 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
3538 enabled. Add cfi_undefined (eip).
3539
35402018-09-11 Joseph Myers <joseph@codesourcery.com>
3541
3542 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
3543 (MOVQ): Likewise.
3544 (EXTRACT_WORDS64): Likewise.
3545 (INSERT_WORDS64): Likewise.
3546 (GET_FLOAT_WORD): Likewise.
3547 (SET_FLOAT_WORD): Likewise.
3548
3549 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
3550 argument.
3551 (Config.build_gcc): Use --disable-libsanitizer for first GCC
3552 build, but not for second build if --full-gcc. Use
3553 --enable-languages=all for second build if --full-gcc.
3554 (get_parser): Add --full-gcc option.
3555 (main): Update call to Context.
3556
35572018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
3558
3559 [BZ #10797]
3560 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
3561 Single Quotation Mark).
3562 (thousands_sep): Likewise.
3563 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
3564 * localedata/locales/it_IT (thousands_sep): Use ".".
3565 (grouping): Use "3;3".
3566
35672018-09-10 Joseph Myers <joseph@codesourcery.com>
3568
3569 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3570 x86_64 and i686 configs using --enable-obsolete-rpc
3571 --enable-obsolete-nsl.
3572
35732018-09-06 Stefan Liebler <stli@linux.ibm.com>
3574
3575 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3576
35772018-09-06 Stefan Liebler <stli@linux.ibm.com>
3578
3579 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
3580 Increment size of new_argv by one.
3581
35822018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
3583
3584 [BZ #17426]
3585 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
3586 * localedata/locales/ar_IN (d_fmt): Likewise.
3587 * localedata/locales/bhb_IN (d_fmt): Likewise.
3588 * localedata/locales/bho_IN (d_fmt): Likewise.
3589 * localedata/locales/bn_BD (d_fmt): Likewise.
3590 * localedata/locales/bn_IN (d_fmt): Likewise.
3591 * localedata/locales/doi_IN (d_fmt): Likewise.
3592 * localedata/locales/gu_IN (d_fmt): Likewise.
3593 * localedata/locales/hi_IN (d_fmt): Likewise.
3594 * localedata/locales/hne_IN (d_fmt): Likewise.
3595 * localedata/locales/kn_IN (d_fmt): Likewise.
3596 * localedata/locales/mag_IN (d_fmt): Likewise.
3597 * localedata/locales/mai_IN (d_fmt): Likewise.
3598 * localedata/locales/mjw_IN (d_fmt): Likewise.
3599 * localedata/locales/ml_IN (d_fmt): Likewise.
3600 * localedata/locales/mni_IN (d_fmt): Likewise.
3601 * localedata/locales/mr_IN (d_fmt): Likewise.
3602 * localedata/locales/pa_IN (d_fmt): Likewise.
3603 * localedata/locales/raj_IN (d_fmt): Likewise.
3604 * localedata/locales/sat_IN (d_fmt): Likewise.
3605 * localedata/locales/sd_IN (d_fmt): Likewise.
3606 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
3607 * localedata/locales/ta_IN (d_fmt): Likewise.
3608 * localedata/locales/ta_LK (d_fmt): Likewise.
3609 * localedata/locales/tcy_IN (d_fmt): Likewise.
3610 * localedata/locales/ur_IN (d_fmt): Likewise.
3611
3612 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
3613 * localedata/locales/ks_IN (d_fmt): Likewise.
3614 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
3615
3616 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
3617 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
3618 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
3619 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
3620
36212018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
3622
3623 * NEWS: Mention exp and exp2 improvements.
3624 * math/Makefile (libm-support): Remove t_exp.
3625 (type-double-routines): Add math_err and e_exp_data.
3626 * sysdeps/aarch64/libm-test-ulps: Update.
3627 * sysdeps/arm/libm-test-ulps: Update.
3628 * sysdeps/i386/fpu/e_exp_data.c: New file.
3629 * sysdeps/i386/fpu/math_err.c: New file.
3630 * sysdeps/i386/fpu/t_exp.c: Remove.
3631 * sysdeps/ia64/fpu/e_exp_data.c: New file.
3632 * sysdeps/ia64/fpu/math_err.c: New file.
3633 * sysdeps/ia64/fpu/t_exp.c: Remove.
3634 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
3635 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
3636 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
3637 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
3638 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
3639 * sysdeps/ieee754/dbl-64/math_config.h: New file.
3640 * sysdeps/ieee754/dbl-64/math_err.c: New file.
3641 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
3642 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
3643 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
3644 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
3645 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
3646 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
3647 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
3648 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3649 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3650
36512018-09-05 Joseph Myers <joseph@codesourcery.com>
3652
3653 * sysdeps/alpha/fpu/math_private.h: Remove.
3654
3655 * sysdeps/generic/math_private.h
3656 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
3657 Move this inline function ....
3658 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
3659 * include/math.h [!_ISOMAC]: To here....
3660
36612018-09-04 Joseph Myers <joseph@codesourcery.com>
3662
3663 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
3664 code ....
3665 [!FE_HAVE_ROUNDING_MODES]: And this code ....
3666 * include/fenv.h [!_ISOMAC]: ... to here.
3667 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
3668 (feraiseexcept): Likewise.
3669 * math/fromfp.h: Do not include <fenv_private.h>.
3670 * math/s_cexp_template.c: Likewise.
3671 * math/s_csin_template.c: Likewise.
3672 * math/s_csinh_template.c: Likewise.
3673 * math/s_ctan_template.c: Likewise.
3674 * math/s_ctanh_template.c: Likewise.
3675 * math/s_iseqsig_template.c: Likewise.
3676 * math/w_acos_compat.c: Likewise.
3677 * math/w_acosf_compat.c: Likewise.
3678 * math/w_acosl_compat.c: Likewise.
3679 * math/w_asin_compat.c: Likewise.
3680 * math/w_asinf_compat.c: Likewise.
3681 * math/w_asinl_compat.c: Likewise.
3682 * math/w_j0_compat.c: Likewise.
3683 * math/w_j0f_compat.c: Likewise.
3684 * math/w_j0l_compat.c: Likewise.
3685 * math/w_j1_compat.c: Likewise.
3686 * math/w_j1f_compat.c: Likewise.
3687 * math/w_j1l_compat.c: Likewise.
3688 * math/w_jn_compat.c: Likewise.
3689 * math/w_jnf_compat.c: Likewise.
3690 * math/w_log10_compat.c: Likewise.
3691 * math/w_log10f_compat.c: Likewise.
3692 * math/w_log10l_compat.c: Likewise.
3693 * math/w_log2_compat.c: Likewise.
3694 * math/w_log2f_compat.c: Likewise.
3695 * math/w_log2l_compat.c: Likewise.
3696 * math/w_log_compat.c: Likewise.
3697 * math/w_logf_compat.c: Likewise.
3698 * math/w_logl_compat.c: Likewise.
3699 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3700 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3701 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3702 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3703 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3704 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3705 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3706 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3707 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3708 * sysdeps/ieee754/k_standardl.c: Likewise.
3709 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3710 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3711 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3712 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3713 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3714 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3715 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3716 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
3717 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3718 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
3719 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
3720 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
3721 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
3722 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3723 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3724 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3725 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3726 * math/w_ilogb_template.c: Include <fenv.h> instead of
3727 <fenv_private.h>.
3728 * math/w_llogb_template.c: Likewise.
3729 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3730 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3731
37322018-09-03 Joseph Myers <joseph@codesourcery.com>
3733
3734 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
3735 * math/fromfp.h: Include <fenv_private.h>.
3736 * math/math-narrow.h: Likewise.
3737 * math/s_cexp_template.c: Likewise.
3738 * math/s_csin_template.c: Likewise.
3739 * math/s_csinh_template.c: Likewise.
3740 * math/s_ctan_template.c: Likewise.
3741 * math/s_ctanh_template.c: Likewise.
3742 * math/s_iseqsig_template.c: Likewise.
3743 * math/w_acos_compat.c: Likewise.
3744 * math/w_acosf_compat.c: Likewise.
3745 * math/w_acosl_compat.c: Likewise.
3746 * math/w_asin_compat.c: Likewise.
3747 * math/w_asinf_compat.c: Likewise.
3748 * math/w_asinl_compat.c: Likewise.
3749 * math/w_ilogb_template.c: Likewise.
3750 * math/w_j0_compat.c: Likewise.
3751 * math/w_j0f_compat.c: Likewise.
3752 * math/w_j0l_compat.c: Likewise.
3753 * math/w_j1_compat.c: Likewise.
3754 * math/w_j1f_compat.c: Likewise.
3755 * math/w_j1l_compat.c: Likewise.
3756 * math/w_jn_compat.c: Likewise.
3757 * math/w_jnf_compat.c: Likewise.
3758 * math/w_llogb_template.c: Likewise.
3759 * math/w_log10_compat.c: Likewise.
3760 * math/w_log10f_compat.c: Likewise.
3761 * math/w_log10l_compat.c: Likewise.
3762 * math/w_log2_compat.c: Likewise.
3763 * math/w_log2f_compat.c: Likewise.
3764 * math/w_log2l_compat.c: Likewise.
3765 * math/w_log_compat.c: Likewise.
3766 * math/w_logf_compat.c: Likewise.
3767 * math/w_logl_compat.c: Likewise.
3768 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
3769 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
3770 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
3771 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
3772 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3773 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3774 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3775 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3776 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3777 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3778 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3779 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3780 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
3781 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
3782 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3783 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
3784 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
3785 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3786 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3787 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3788 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3789 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3790 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3791 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3792 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3793 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3794 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
3795 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
3796 * sysdeps/ieee754/float128/float128_private.h: Likewise.
3797 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
3798 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3799 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3800 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
3801 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3802 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3803 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3804 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3805 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3806 * sysdeps/ieee754/k_standardl.c: Likewise.
3807 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3808 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
3809 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3810 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3811 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
3812 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
3813 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3814 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3815 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3816 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3817 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3818 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3819 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3820 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3821 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
3822 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
3823 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3824 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
3825 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
3826 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
3827 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3828 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
3829 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
3830 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
3831 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
3832 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
3833 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3834 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
3835 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
3836 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
3837 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
3838 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3839 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3840 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3841 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3842 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
3843 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3844 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3845 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
3846 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3847 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
3848 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3849 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
3850 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3851 * sysdeps/riscv/rvd/s_finite.c: Likewise.
3852 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
3853 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
3854 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
3855 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
3856 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
3857 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
3858 * sysdeps/riscv/rvf/fegetround.c: Likewise.
3859 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
3860 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
3861 * sysdeps/riscv/rvf/fesetround.c: Likewise.
3862 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
3863 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
3864 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
3865 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3866 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
3867 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3868 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
3869 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
3870 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
3871 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
3872 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
3873 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
3874 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
3875 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
3876 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3877 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3878
38792018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3880
3881 [BZ #20271]
3882 * include/stdio.h (__libc_fatal): Mention newline in comment.
3883 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
3884 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
3885 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3886 * nss/nsswitch.c (__nss_next2): Likewise.
3887 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
3888 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
3889 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
3890 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
3891 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
3892 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
3893 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
3894 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
3895 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
3896 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
3897 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
3898 * sysdeps/unix/sysv/linux/netlink_assert_response.c
3899 (__netlink_assert_response): Likewise.
3900
39012018-08-31 Joseph Myers <joseph@codesourcery.com>
3902
3903 * conform/glibcconform.py: New file.
3904 * conform/list-header-symbols.py: Likewise.
3905 * conform/list-header-symbols.pl: Remove.
3906 * conform/Makefile (tests-special): Only add linknamespace tests
3907 if [PYTHON].
3908 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
3909
39102018-08-31 H.J. Lu <hongjiu.lu@intel.com>
3911
3912 [BZ #23597]
3913 * support/Makefile (libsupport-routines): Add
3914 support_copy_file_range and xcopy_file_range.
3915 * support/support.h: Include <sys/types.h>.
3916 (support_copy_file_range): New prototype.
3917 * support/support_copy_file_range.c: New file. Copied and
3918 modified from io/copy_file_range-compat.c.
3919 * support/test-container.c (copy_one_file): Call xcopy_file_rang
3920 instead of copy_file_range.
3921 * support/xcopy_file_range.c: New file.
3922 * support/xunistd.h (xcopy_file_range): New prototype.
3923
39242018-08-30 Carlos O'Donell <carlos@redhat.com>
3925
3926 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
3927 xpthread_create and xpthread_join.
3928
39292018-08-30 Florian Weimer <fweimer@redhat.com>
3930
3931 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
3932
39332018-08-30 Stefan Liebler <stli@linux.ibm.com>
3934
3935 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
3936 if malloc fails.
3937
39382018-08-29 Joseph Myers <joseph@codesourcery.com>
3939
3940 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
3941 and minus_oflow as non-finite.
3942
39432018-08-28 Joseph Myers <joseph@codesourcery.com>
3944
3945 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
3946 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
3947 moved to fenv_private.h except for ...
3948 (TOINT_INTRINSICS): Kept in math_private.h.
3949 (roundtoint): Likewise.
3950 (converttoint): Likewise.
3951 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
3952 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
3953 * sysdeps/arm/math_private.h: Remove.
3954 * sysdeps/generic/fenv_private.h: New file. Contents moved from
3955 ....
3956 * sysdeps/generic/math_private.h: ... this file. Include
3957 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
3958 Include <fenv_private.h>. Remove functions and macros moved to
3959 fenv_private.h.
3960 * sysdeps/i386/fpu/math_private.h: Remove.
3961 * sysdeps/mips/math_private.h: Move to ....
3962 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
3963 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
3964 [__mips_hard_float] conditional. Include next <fenv_private.h>.
3965 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
3966 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
3967 * sysdeps/powerpc/fpu/math_private.h: Do not include
3968 <fenv_private.h>.
3969 * sysdeps/riscv/rvf/math_private.h: Move to ....
3970 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
3971 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
3972 <fenv_private.h>.
3973 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
3974 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
3975 * sysdeps/sparc/fpu/math_private.h: Remove.
3976 * sysdeps/i386/fpu/fenv_private.h: Move to ....
3977 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
3978 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
3979 <fenv_private.h>.
3980 * sysdeps/x86_64/fpu/math_private.h: Do not include
3981 <sysdeps/i386/fpu/fenv_private.h>.
3982
39832018-08-28 Florian Weimer <fweimer@redhat.com>
3984
3985 [BZ #23578]
3986 * posix/tst-regcomp-truncated.c: New file.
3987 * posix/Makefile (tests): Add it.
3988 (tst-regcomp-truncated.out): Depend on generated locales.
3989
39902018-08-28 Florian Weimer <fweimer@redhat.com>
3991
3992 * support/test-container.c (main): Treat unshare failure with
3993 EPERM as an unsupported test.
3994
39952018-08-28 Florian Weimer <fweimer@redhat.com>
3996
3997 [BZ #23520]
3998 nscd: Fix use-after-free in addgetnetgrentX and its callers.
3999 * nscd/netgroupcache.c
4000 (addgetnetgrentX): Add tofreep parameter. Do not free
4001 heap-allocated buffer.
4002 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
4003 (addgetnetgrentX_ignore): New function.
4004 (addgetnetgrent): Call it.
4005 (readdgetnetgrent): Likewise.
4006
40072018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4008
4009 * string/memmem.c: Use memcmp for first match.
4010
40112018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4012
4013 [BZ #17426]
4014 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
4015
40162018-08-27 DJ Delorie <dj@redhat.com>
4017
4018 * support/Makefile (others): Don't list programs explicitly as a
4019 dependency of "others".
4020
40212018-08-27 Joseph Myers <joseph@codesourcery.com>
4022
4023 * sysdeps/generic/math-tests-trap-force.h: New file.
4024 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
4025 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
4026 * sysdeps/powerpc/math-tests.h: Remove file.
4027 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
4028
40292018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
4030 Torvald Riegel <triegel@redhat.com>
4031
4032 [BZ #23538]
4033 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
4034 Update r to include the set wake-request flag if waiters are
4035 remaining after spinning.
4036
40372018-08-27 Joseph Myers <joseph@codesourcery.com>
4038
4039 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
4040
40412018-08-25 Paul Eggert <eggert@cs.ucla.edu>
4042
4043 [BZ #23578]
4044 regex: fix uninitialized memory access
4045 I introduced this bug into gnulib in commit
4046 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
4047 eventually it was merged into glibc. The bug was found by
4048 project-repo <bugs@feusi.co> and reported here:
4049 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
4050 Diagnosis and draft fix reported by Assaf Gordon here:
4051 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
4052 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
4053 * posix/regex_internal.c (build_wcs_upper_buffer):
4054 Fix bug when mbrtowc returns 0.
4055
40562018-08-24 Carlos O'Donell <carlos@redhat.com>
4057
4058 * po/be.po: Update translation.
4059
40602018-08-24 DJ Delorie <dj@delorie.com>
4061
4062 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
4063 $(libunwind).
4064
40652018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
4066
4067 [BZ #23400]
4068 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
4069 create temporary files in source tree.
4070
40712018-08-24 Joseph Myers <joseph@codesourcery.com>
4072
4073 * sysdeps/generic/math-tests-trap.h: New file.
4074 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
4075 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
4076 * sysdeps/aarch64/math-tests.h: Remove file.
4077 * sysdeps/arm/math-tests.h: Likewise.
4078 * sysdeps/riscv/math-tests.h: Likewise.
4079 * sysdeps/aarch64/math-tests-trap.h: New file.
4080 * sysdeps/arm/math-tests-trap.h: Likewise.
4081 * sysdeps/riscv/math-tests-trap.h: Likewise.
4082
40832018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
4084
4085 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
4086 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
4087 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
4088 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
4089 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
4090 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
4091 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4092 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
4093 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
4094 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4095 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4096 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4097 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4098 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
4099 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
4100 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
4101 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
4102 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
4103
41042018-08-23 Joseph Myers <joseph@codesourcery.com>
4105
4106 * sysdeps/generic/math-tests-exceptions.h: New file.
4107 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
4108 (EXCEPTION_TESTS_float): Do not define here.
4109 (EXCEPTION_TESTS_double): Likewise.
4110 (EXCEPTION_TESTS_long_double): Likewise.
4111 (EXCEPTION_TESTS_float128): Likewise.
4112 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
4113 Likewise.
4114 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
4115 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
4116 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
4117 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
4118 * sysdeps/mips/math-tests.h: Likewise.
4119 * sysdeps/nios2/math-tests.h: Likewise.
4120 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4121 (EXCEPTION_TESTS_float): Do not define here.
4122 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
4123 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
4124 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
4125
41262018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4127
4128 * NEWS: Move optimized sinf entry to 2.29.
4129
41302018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4131
4132 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
4133
41342018-08-22 DJ Delorie <dj@redhat.com>
4135
4136 * Makefile (testroot.pristine): New rules to initialize the
4137 test-in-container "testroot".
4138 * Makerules (all-testsuite): Add tests-container.
4139 * Rules (tests-expected): Add tests-container.
4140 (binaries-all-tests): Likewise.
4141 (tests-container): New, run these tests in the testroot container.
4142 * support/Makefile (others): Add *-container, support_paths.c,
4143 xmkdirp, and links-dso-program.
4144 * support/links-dso-program-c.c: New.
4145 * support/links-dso-program.cc: New.
4146 * support/test-container.c: New.
4147 * support/shell-container.c: New.
4148 * support/echo-container.c: New.
4149 * support/true-container.c: New.
4150 * support/xmkdirp.c: New.
4151 * support/xsymlink.c: New.
4152 * support/support_paths.c: New.
4153 * support/support.h: Add support paths prototypes.
4154 * support/xunistd.h: Add xmkdirp () and xsymlink ().
4155
4156 * nss/tst-nss-test3.c: Convert to test-in-container.
4157 * nss/tst-nss-test3.root/: New.
4158
41592018-08-22 Paul Eggert <eggert@cs.ucla.edu>
4160
4161 regex: port Gnulib code to z/OS POSIX environment
4162 Problem reported by Arnold Robbins in:
4163 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
4164 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
4165 Undef.
4166
41672018-08-22 Joseph Myers <joseph@codesourcery.com>
4168
4169 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
4170 (ROUNDING_TESTS_double): Remove.
4171 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
4172 (ROUNDING_TESTS_double): Remove.
4173 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
4174 (ROUNDING_TESTS_double): Remove.
4175 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
4176 (ROUNDING_TESTS_float): Remove.
4177 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
4178 (ROUNDING_TESTS_float): Remove.
4179 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
4180 (ROUNDING_TESTS_float): Remove.
4181 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
4182 !TEST_MATHVEC here.
4183 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4184 (IF_ROUND_INIT_FE_UPWARD): Likewise.
4185
4186 * sysdeps/generic/math-tests-rounding.h: New file.
4187 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
4188 (ROUNDING_TESTS_float): Do not define here.
4189 (ROUNDING_TESTS_double): Likewise.
4190 (ROUNDING_TESTS_long_double): Likewise.
4191 (ROUNDING_TESTS_float128): Likewise.
4192 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
4193 (ROUNDING_TESTS_double): Undefine before defining.
4194 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
4195 (ROUNDING_TESTS_double): Undefine before defining.
4196 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
4197 (ROUNDING_TESTS_double): Undefine before defining.
4198 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
4199 (ROUNDING_TESTS_float): Undefine before defining.
4200 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
4201 (ROUNDING_TESTS_float): Undefine before defining.
4202 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
4203 (ROUNDING_TESTS_float): Undefine before defining.
4204 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
4205 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
4206 not define here.
4207 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
4208 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
4209 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
4210 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4211 (ROUNDING_TESTS_float): Do not define here.
4212 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
4213 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
4214 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
4215 (ROUNDING_TESTS_float): Likewise.
4216 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
4217 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
4218 * sysdeps/mips/math-tests.h [__mips_soft_float]
4219 (ROUNDING_TESTS_float): Likewise.
4220 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
4221 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
4222 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
4223 (ROUNDING_TESTS_double): Likewise.
4224 (ROUNDING_TESTS_long_double): Likewise.
4225
42262018-08-21 Tobias Klauser <tklauser@distanz.ch>
4227
4228 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
4229 (PF_XDP): New macro.
4230 (AF_XDP): New macro.
4231 (SOL_XDP): New macro.
4232
42332018-08-21 Joseph Myers <joseph@codesourcery.com>
4234
4235 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
4236 (TCP_INQ): Likewise.
4237 (TCP_CM_INQ): Likewise.
4238 (TCP_REPAIR_ON): Likewise.
4239 (TCP_REPAIR_OFF): Likewise.
4240 (TCP_REPAIR_OFF_NO_WP): Likewise.
4241 (struct tcp_zerocopy_receive): New type.
4242
42432018-08-21 Florian Weimer <fweimer@redhat.com>
4244
4245 * support/support.h (support_descriptor_supports_holes): Declare.
4246 * support/Makefile (libsupport-routines): Add
4247 support_descriptor_supports_holes.
4248 * support/support_descriptor_supports_holes.c: New file.
4249 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
4250 and stop testing if holes are not supported.
4251 * io/test-lfs.c (do_prepare): Likewise.
4252 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
4253 Likewise.
4254 * timezone/tst-tzset.c (create_tz_file): Likewise.
4255 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
4256 variable.
4257 (do_prepare): Set it.
4258 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
4259
42602018-08-21 Florian Weimer <fweimer@redhat.com>
4261
4262 [BZ #17248]
4263 * Makeconfig (+cflags): Do not sort (and deduplicate).
4264
42652018-08-21 Florian Weimer <fweimer@redhat.com>
4266
4267 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
4268 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
4269
42702018-08-20 Florian Weimer <fweimer@redhat.com>
4271
4272 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
4273 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
4274
42752018-08-20 Joseph Myers <joseph@codesourcery.com>
4276
4277 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4278 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
4279 and ssi_arch members.
4280
4281 * elf/elf.c (NT_VMCOREDD): New macro.
4282 (AT_MINSIGSTKSZ): Likewise.
4283
42842018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4285
4286 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4287 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
4288 s_cosf-ppc64 and s_cosf-power8.
4289 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
4290 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
4291 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4292 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
4293 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
4294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
4295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
4296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
4297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
4298 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
4299 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
4300 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
4301
43022018-08-17 Florian Weimer <fweimer@redhat.com>
4303
4304 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4305
43062018-08-17 Istvan Kurucsai <pistukem@gmail.com>
4307
4308 * malloc/malloc.c (_int_malloc): Additional binning code checks.
4309
43102018-08-16 Florian Weimer <fweimer@redhat.com>
4311
4312 * configure.ac: Add --with-nonshared-cflags option.
4313 * config.make.in (extra-nonshared-cflags): Set variable.
4314 * Makeconfig (CFLAGS-.oS): Use it.
4315 * manual/install.texi (Configuring and compiling): Document
4316 --with-nonshared-cflags.
4317 * configure: Regenerate.
4318 * INSTALL: Likewise.
4319
43202018-08-16 Florian Weimer <fweimer@redhat.com>
4321
4322 * Makeconfig (ASFLAGS): Always append required assembler flags.
4323
43242018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
4325
4326 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
4327 (malloc_consolidate): Likewise.
4328
43292018-08-16 Pochang Chen <johnchen902@gmail.com>
4330
4331 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
4332
43332018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4334
4335 * benchtests/bench-strlen.c (do_test): Allocate buffers before
4336 every strlen call.
4337
4338 * benchtests/bench-strlen.c: Print performance numbers in json.
4339
43402018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4341
4342 * sysdeps/powerpc/powerpc64/multiarch/Makefile
4343 (sysdep_routines): Build strcmp-power9 and strncmp-power9
4344 only for little endian.
4345 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4346 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
4347 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
4348 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
4349 Add check for little endian.
4350 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
4351 (__strcmp_power9): Add check for little endian.
4352 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
4353 Add check for little endian.
4354 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
4355 (__strncmp_power9): Add check for little endian.
4356 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
4357 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
4358 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
4359 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
4360 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
4361
43622018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
4363
4364 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
4365 [!STRLEN](STRLEN): Set to __strlen.
4366 * sysdeps/aarch64/multiarch/strlen.c: New file.
4367 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
4368 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
4369 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4370 (__libc_ifunc_impl_list): Add strlen.
4371 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
4372 strlen_generic and strlen_asimd.
4373
43742018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
4375
4376 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
4377 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
4378 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
4379
43802018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
4381
4382 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
4383
43842018-08-14 Florian Weimer <fweimer@redhat.com>
4385
4386 [BZ #23519]
4387 * include/stdio.h (__vfxprintf): Declare.
4388 * stdio-common/fxprintf.c (__vfxprintf): New function.
4389 (__fxprintf): Call it.
4390 * misc/err.c (convert_and_print): Remove function.
4391 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
4392 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
4393 * misc/Makefile (tests): Add tst-warn-wide.
4394 * misc/tst-warn-wide.c: New file.
4395
43962018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
4397 Szabolcs Nagy <szabolcs.nagy@arm.com>
4398
4399 * NEWS: Mention sinf, cosf, sincosf.
4400 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
4401 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
4402 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
4403 constants rather than including generic sincosf.h.
4404 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
4405 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
4406 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
4407 (reduced_cos): Remove.
4408 (sinf_poly): New function.
4409 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
4410
44112018-08-14 Florian Weimer <fweimer@redhat.com>
4412
4413 [BZ #23521]
4414 [BZ #23522]
4415 * nss/nss_files/files-alias.c (get_next_alias): During :include:
4416 processing, bail out if no room, and close the stream before
4417 returning ERANGE.
4418 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
4419 (tst-nss-files-alias-leak): Link with libdl.
4420 (tst-nss-files-alias-leak.out): Depend on nss_files.
4421
4422 * nss/tst-nss-files-alias-leak.c: New file.
4423
44242018-08-14 Florian Weimer <fweimer@redhat.com>
4425
4426 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
4427 server_user, stat_user.
4428
44292018-08-13 Joseph Myers <joseph@codesourcery.com>
4430
4431 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4432 version to 4.18.
4433 (io_pgetevents): New syscall.
4434 (rseq): Likewise.
4435
4436 * manual/install.texi (Configuring and compiling): Do not list
4437 tools used for testing pretty printers here.
4438 (Tools for Compilation): List Python, PExpect and GDB here.
4439 Update descriptions of uses of Perl and Python.
4440 * INSTALL: Regenerate.
4441
4442 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4443 version to 4.18.
4444
44452018-08-13 Florian Weimer <fweimer@redhat.com>
4446
4447 * misc/error.c (error): Add missing va_end call.
4448 (error_at_line): Likewise.
4449
44502018-08-13 Florian Weimer <fweimer@redhat.com>
4451
4452 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
4453
44542018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
4455
4456 * benchtests/scripts/benchout.schema.json (properties): Add
4457 new properties.
4458
4459 * benchtests/bench-skeleton.c (main): Add duration and
4460 iterations attributes.
4461
44622018-08-10 Paul Eggert <eggert@cs.ucla.edu>
4463
4464 regex: Gnulib unibyte RRI uses bytes not chars
4465 Adjust the non-glibc code to agree with what Gawk needs for
4466 rational range interpretation (RRI) for regular expression ranges.
4467 In unibyte locales, Gawk wants ranges to use the underlying byte
4468 rather than the character code point. This change does not affect
4469 glibc proper.
4470 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
4471 In unibyte locales, use the byte value rather than
4472 running it through btowc.
4473
44742018-08-10 Joseph Myers <joseph@codesourcery.com>
4475
4476 * sysdeps/generic/math-tests-snan.h: New file.
4477 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
4478 (SNAN_TESTS_float): Do not define here.
4479 (SNAN_TESTS_double): Likewise.
4480 (SNAN_TESTS_long_double): Likewise.
4481 (SNAN_TESTS_float128): Likewise.
4482 * sysdeps/i386/fpu/math-tests-snan.h: New file.
4483 * sysdeps/i386/fpu/math-tests.h: Remove file.
4484 * sysdeps/ia64/math-tests-snan.h: New file.
4485 * sysdeps/ia64/math-tests.h: Remove file.
4486 * sysdeps/x86/math-tests.h: Likewise.
4487 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
4488
44892018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
4490 Szabolcs Nagy <szabolcs.nagy@arm.com>
4491
4492 * math/Makefile: Add s_sincosf_data.c.
4493 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
4494 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
4495 (sincosf_poly): Likewise.
4496 (reduce_small): Likewise.
4497 (reduce_large): Likewise.
4498 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
4499 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
4500 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
4501 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
4502
45032018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
4504 Szabolcs Nagy <szabolcs.nagy@arm.com>
4505
4506 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
4507 (converttoint): Use lround.
4508 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
4509 document the semantics when TOINT_INTRINSICS is set.
4510 (converttoint): Likewise.
4511 (TOINT_RINT): Remove.
4512 (TOINT_SHIFT): Remove.
4513 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
4514 path.
4515
45162018-08-10 Florian Weimer <fweimer@redhat.com>
4517
4518 [BZ #23497]
4519 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
4520 function.
4521 (__old_getdents64): Use getdents64. Convert entries without
4522 moving them.
4523 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
4524 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
4525 tst-readdir64-compat.
4526
45272018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4528
4529 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
4530 Fix unwind.
4531
45322018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4533
4534 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
4535 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
4536 code to s390x-mcount.h and #include it.
4537 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
4538 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
4539 (__fentry__): Add.
4540
45412018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4542
4543 * stdlib/Versions: Remove __fentry__.
4544 * sysdeps/i386/Versions: Add __fentry__.
4545 * sysdeps/x86_64/Versions: Add __fentry__.
4546
45472018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4548
4549 * sysdeps/s390/Makefile: Register the new tests.
4550 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
4551 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
4552 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
4553 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
4554 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
4555 * sysdeps/s390/tst-dl-runtime.c: New file.
4556
45572018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4558
4559 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4560 Do not clobber R0.
4561
45622018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4563
4564 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
4565 Do not clobber R0.
4566
45672018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4568
4569 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4570 Do not clobber R0.
4571
45722018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4573
4574 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4575 Do not clobber R0.
4576
45772018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4578
4579 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4580 Use symbolic offsets for stack variables.
4581
45822018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4583
4584 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
4585 Use symbolic offsets for stack variables.
4586
45872018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4588
4589 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4590 Use symbolic offsets for stack variables.
4591
45922018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4593
4594 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4595 Use symbolic offsets for stack variables.
4596
45972018-08-09 Joseph Myers <joseph@codesourcery.com>
4598
4599 * math/gen-libm-test.py: New file.
4600 * math/gen-libm-test.pl: Remove.
4601 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
4602 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
4603 gen-libm-test.pl.
4604 ($(libm-test-c-noauto-obj)): Likewise.
4605 ($(libm-test-c-auto-obj)): Likewise.
4606 ($(libm-test-c-narrow-obj)): Likewise.
4607 (regen-ulps): Likewise.
4608 * math/README.libm-test: Update references to gen-libm-test.pl.
4609 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
4610 referencing gen-libm-test.pl.
4611 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
4612 * math/libm-test-support.c: Likewise.
4613 * math/libm-test-support.h: Likewise.
4614 * sysdeps/generic/libm-test-ulps: Likewise.
4615
46162018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
4617
4618 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
4619 Fix value.
4620
46212018-08-08 Joseph Myers <joseph@codesourcery.com>
4622
4623 * math/libm-test-nextdown.inc (do_test): Move comment to ....
4624 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
4625
46262018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
4627
4628 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
4629 symbols.
4630 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
4631 __pthread_setspecific): Add hidden proto.
4632 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
4633 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
4634
46352018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
4636
4637 * benchtests/bench-string.h (buf1_size, buf2_size): New
4638 variables.
4639 (init_sizes): New function.
4640 (test_init): Use it.
4641 (alloc_buf, exit_error): New functions.
4642 (alloc_bufs): Use ALLOC_BUF.
4643 (realloc_bufs): Remove.
4644 * benchtests/bench-memcmp.c (do_test): Adjust.
4645 * benchtests/bench-memset-large.c (do_test): Likewise.
4646 * benchtests/bench-memset-walk.c (do_test): Likewise.
4647 * benchtests/bench-memset.c (do_test): Likewise.
4648 * benchtests/bench-strncmp.c (do_test): Likewise.
4649
46502018-08-06 Andreas Schwab <schwab@suse.de>
4651
4652 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
4653 of CONST_THREAD_AREA.
4654
46552018-08-06 H.J. Lu <hongjiu.lu@intel.com>
4656
4657 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
4658 (STATE_SAVE_MASK): Likewise.
4659 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
4660 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
4661 (STATE_SAVE_MASK): Likewise.
4662 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
4663 instead of <cpu-features.h>.
4664
46652018-08-03 DJ Delorie <dj@redhat.com>
4666
4667 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
4668 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
4669
4670 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4671
46722018-08-03 Joseph Myers <joseph@codesourcery.com>
4673
4674 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
4675 after TEST_* calls.
4676 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
4677 * math/libm-test-logb.inc (logb_test_data): Likewise.
4678
46792018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
4680
4681 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
4682 * string/strstr.c (AVAILABLE): Likewise.
4683
46842018-08-03 H.J. Lu <hongjiu.lu@intel.com>
4685
4686 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
4687 <init-arch.h>.
4688 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
4689 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
4690 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
4691
46922018-08-03 Carlos O'Donell <carlos@redhat.com>
4693
4694 * po/be.po: Update translation.
4695
4696 * po/be.po: Update translation.
4697
46982018-08-03 H.J. Lu <hongjiu.lu@intel.com>
4699
4700 * sysdeps/x86/cpu-features-offsets.sym
4701 (rtld_global_ro_offsetof): Removed.
4702 (CPU_FEATURES_SIZE): Likewise.
4703 (CPUID_OFFSET): Likewise.
4704 (CPUID_SIZE): Likewise.
4705 (CPUID_EAX_OFFSET): Likewise.
4706 (CPUID_EBX_OFFSET): Likewise.
4707 (CPUID_ECX_OFFSET): Likewise.
4708 (CPUID_EDX_OFFSET): Likewise.
4709 (FAMILY_OFFSET): Likewise.
4710 (MODEL_OFFSET): Likewise.
4711 (FEATURE_OFFSET): Likewise.
4712 (FEATURE_SIZ): Likewise.
4713 (COMMON_CPUID_INDEX_1): Likewise.
4714 (COMMON_CPUID_INDEX_7): Likewise.
4715 (FEATURE_INDEX_1): Likewise.
4716 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
4717
47182018-08-02 Carlos O'Donell <carlos@redhat.com>
4719
4720 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
4721 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
4722 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
4723 (install-locales): Depend on install-locale-archive.
4724 (install-locale-archive): Define.
4725 (install-locale-files): Define.
4726 (build-one-locale): Define macro.
4727 * manual/install.texi (Running make install): Document.
4728 * manual/INSTALL: Regenerate.
4729
47302018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
4731
4732 * benchtests/scripts/compare_strings.py: Import traceback.
4733 (parse_file): Pretty-print error.
4734
4735 * NEWS: Mention the change.
4736 * elf/dl-tunables.list: Rename tune namespace to cpu.
4737 * sysdeps/powerpc/dl-tunables.list: Likewise.
4738 * sysdeps/x86/dl-tunables.list: Likewise.
4739 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
4740 cpu.name.
4741 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
4742 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
4743 * manual/README.tunables: Likewise.
4744 * manual/tunables.texi: Likewise.
4745 * sysdeps/powerpc/cpu-features.c: Likewise.
4746 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
4747 (init_cpu_features): Likewise.
4748 * sysdeps/x86/cpu-features.c: Likewise.
4749 * sysdeps/x86/cpu-features.h: Likewise.
4750 * sysdeps/x86/cpu-tunables.c: Likewise.
4751 * sysdeps/x86_64/Makefile: Likewise.
4752 * sysdeps/x86/dl-cet.c: Likewise.
4753
47542018-08-02 Joseph Myers <joseph@codesourcery.com>
4755
4756 [BZ #23479]
4757 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
4758 [__mips_hard_float].
4759 (FE_UNDERFLOW): Likewise.
4760 (FE_OVERFLOW): Likewise.
4761 (FE_DIVBYZERO): Likewise.
4762 (FE_INVALID): Likewise.
4763 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
4764 (FE_TOWARDZERO): Define only if [__mips_hard_float].
4765 (FE_UPWARD): Likewise.
4766 (FE_DOWNWARD): Likewise.
4767 (__FE_UNDEFINED): Define if [!__mips_hard_float]
4768 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
4769 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
4770 [__mips_hard_float].
4771 (FP_ROUNDMODE): Likewise.
4772 (FP_RND_NEAREST): Likewise.
4773 (FP_RND_ZERO): Likewise.
4774 (FP_RND_PINF): Likewise.
4775 (FP_RND_MINF): Likewise.
4776 (FP_EX_INVALID): Likewise.
4777 (FP_EX_OVERFLOW): Likewise.
4778 (FP_EX_UNDERFLOW): Likewise.
4779 (FP_EX_DIVZERO): Likewise.
4780 (FP_EX_INEXACT): Likewise.
4781 (FP_INIT_ROUNDMODE): Likewise.
4782 * sysdeps/mips/nofpu/fesetenv.c: New file.
4783 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
4784
47852018-08-01 Joseph Myers <joseph@codesourcery.com>
4786
4787 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
4788 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
4789 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
4790 conditional on [FE_UPWARD].
4791
47922018-08-01 Paul Eggert <eggert@cs.ucla.edu>
4793
4794 regex: fix memory leak in Gnulib
4795 Problem and fix reported by Assaf Gordon in:
4796 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
4797 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
4798 range_ends members too, as they are defined in 'struct
4799 re_charset_t' even if not _LIBC. This affects only Gnulib.
4800
48012018-08-01 H.J. Lu <hongjiu.lu@intel.com>
4802
4803 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
4804 ...
4805 (get_common_indices): This.
4806 (init_cpu_features): Updated.
4807
48082018-08-01 Joseph Myers <joseph@codesourcery.com>
4809
4810 * sysdeps/generic/math-tests-snan-payload.h: New file.
4811 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
4812 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
4813 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
4814 * sysdeps/generic/math-tests.h: Include
4815 <math-tests-snan-payload.h>.
4816 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
4817 * sysdeps/hppa/math-tests.h: Remove file.
4818 * sysdeps/mips/math-tests.h [!__mips_nan2008]
4819 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
4820 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
4821 Likewise.
4822
4823 * sysdeps/generic/math-tests-snan-cast.h: New file.
4824 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
4825 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
4826 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
4827 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
4828
48292018-08-01 Carlos O'Donel <carlos@redhat.com>
4830
4831 * version.h (RELEASE): Set to "development".
4832 (VERSION): Set to "2.28.9000".
4833 * NEWS (2.29): New section.
4834
4835 * version.h (RELEASE): Set to "stable".
4836 (VERSION): Set to "2.28".
4837 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
4838 * NEWS: Add the list of bugs fixed in 2.28.
4839
4840 * po/ca.po: Update to latest version.
4841 * po/cs.po: Likewise
4842 * po/da.po: Likewise
4843 * po/el.po: Likewise
4844 * po/eo.po: Likewise
4845 * po/es.po: Likewise
4846 * po/fi.po: Likewise
4847 * po/fr.po: Likewise
4848 * po/gl.po: Likewise
4849 * po/hu.po: Likewise
4850 * po/ia.po: Likewise
4851 * po/id.po: Likewise
4852 * po/it.po: Likewise
4853 * po/ja.po: Likewise
4854 * po/ko.po: Likewise
4855 * po/lt.po: Likewise
4856 * po/nb.po: Likewise
4857 * po/nl.po: Likewise
4858 * po/pt_BR.po: Likewise
4859 * po/ru.po: Likewise
4860 * po/rw.po: Likewise
4861 * po/sk.po: Likewise
4862 * po/sl.po: Likewise
4863 * po/tr.po: Likewise
4864 * po/zh_CN.po: Likewise
4865 * po/zh_TW.po: Likewise
4866
48672018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4868
4869 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
4870 initialization...
4871 (init): ... before initializing libpthread.
4872
4873 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
4874 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
4875 (__mach_setup_tls): ... new function.
4876 (mach_setup_tls): New alias.
4877 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
4878 __mach_setup_thread.
4879 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
4880 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
4881 * mach/Versions [libc] (mach_setup_tls): Add symbol.
4882 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
4883
48842018-07-31 Carlos O'Donell <carlos@redhat.com>
4885
4886 * manual/install.texi: Update versions.
4887 * INSTALL: Regenerate.
4888
4889 * manual/contrib.texi (Contributors): Update contributions.
4890
48912018-07-31 Carlos O'Donell <carlos@redhat.com>
4892
4893 * po/be.po: Update translations.
4894
48952018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4896
4897 * sysdeps/sh/libm-test-ulps: Update.
4898
48992018-07-30 Carlos O'Donell <carlos@redhat.com>
4900
4901 * po/bg.po: Update translations.
4902 * po/de.po: Likewise.
4903 * po/hr.po: Likewise.
4904 * po/pt_BR.po: Likewise.
4905 * po/sv.po: Likewise.
4906 * po/vi.po: Likewise.
4907
49082018-07-30 H.J. Lu <hongjiu.lu@intel.com>
4909
4910 [BZ #23467]
4911 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
4912 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
4913 (CFLAGS-tst-cet-property-1.o): New.
4914 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
4915 ($(objpfx)tst-cet-property-2): Likewise.
4916 ($(objpfx)tst-cet-property-2.out): Likewise.
4917 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
4918 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
4919 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
4920 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
4921 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
4922
49232018-07-30 H.J. Lu <hongjiu.lu@intel.com>
4924
4925 [BZ #23458]
4926 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
4927
49282018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4929
4930 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
4931 __sbrk): Do not set attribute_hidden.
4932 * sysdeps/mach/hurd/not-errno.h: New file.
4933 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
4934 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
4935
49362018-07-27 Carlos O'Donell <carlos@redhat.com>
4937
4938 * po/uk.po: Update translations.
4939 * po/cs.po: Likewise.
4940 * po/pl.po: Likewise.
4941
49422018-07-27 H.J. Lu <hongjiu.lu@intel.com>
4943
4944 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
4945 parse beyond the note end.
4946
49472018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4948
4949 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
4950 kernel does not support OFD locks.
4951 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
4952
49532018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
4954
4955 * sysdeps/mach/hurd/Versions (libc): Make __access and
4956 __access_noerrno external so they can override the ld symbols.
4957 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
4958 __writev, __open64, __access_noerrno extern so they can be overrided.
4959 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
4960 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
4961
49622018-07-26 Carlos O'Donell <carlos@redhat.com>
4963
4964 * po/libc.pot: Regenerate.
4965
49662018-07-26 Joseph Myers <joseph@codesourcery.com>
4967
4968 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4969
49702018-07-26 H.J. Lu <hongjiu.lu@intel.com>
4971
4972 [BZ #23459]
4973 * sysdeps/x86/cpu-features.c (get_extended_indices): New
4974 function.
4975 (init_cpu_features): Call get_extended_indices for both Intel
4976 and AMD CPUs.
4977 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
4978 Remove "for AMD" comment.
4979
49802018-07-26 H.J. Lu <hongjiu.lu@intel.com>
4981
4982 [BZ # 23456]
4983 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
4984 COMMON_CPUID_INDEX_80000001.
4985
49862018-07-26 Stefan Liebler <stli@linux.ibm.com>
4987
4988 * string/tst-xbzero-opt.c (use_test_buffer): New function.
4989 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
4990
49912018-07-26 Florian Weimer <fweimer@redhat.com>
4992
4993 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
4994 aliases for symbols not in the implementation namespace.
4995
49962018-07-25 Carlos O'Donell <carlos@redhat.com>
4997
4998 [BZ #23393]
4999 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
5000 lowercase in LATIN script.
5001 * localedata/Makefile (test-input): Add en_US.UTF-8.
5002 * localedata/en_US.UTF-8.in: New file.
5003 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
5004 and restore old tests.
5005 * posix/tst-regexloc.c (do_test): Add back range expression test.
5006
50072018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5008
5009 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
5010
50112018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5012
5013 * nptl/threads.h: Move to ...
5014 * sysdeps/nptl/threads.h: ... here.
5015 * sysdeps/hurd/stdc-predef.h: New file.
5016
50172018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5018
5019 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
5020 tst-cet-setcontext-1 if CET is enabled.
5021 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
5022 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
5023
50242018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5025
5026 * include/threads.h: Move to ...
5027 * sysdeps/nptl/threads.h: ... here.
5028 * sysdeps/htl/threads.h: New file.
5029 * conform/Makefile (linknamespace-libs-ISO11): Use
5030 static-thread-library instead of linking libpthread.
5031 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
5032
50332018-07-25 Florian Weimer <fweimer@redhat.com>
5034
5035 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
5036 nanoseconds into seconds.
5037 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
5038 (do_test): Likewise.
5039 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
5040 (do_test): Likewise. Avoid nanosecond overflow and spurious
5041 timeouts due to system load.
5042 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
5043 (child_wait): Increment it.
5044 (do_test): Wait as long as necessary until all expected threads
5045 have arrived.
5046
50472018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
5048 H.J. Lu <hongjiu.lu@intel.com>
5049
5050 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
5051 __ssp.
5052 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
5053 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
5054 (__push___start_context): New.
5055 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
5056 <asm/prctl.h>.
5057 (__getcontext): Record the current shadow stack base. Save the
5058 caller's shadow stack pointer and base.
5059 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
5060 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
5061 (__push___start_context): New prototype.
5062 (__makecontext): Call __push___start_context to allocate a new
5063 shadow stack, push __start_context onto the new stack as well
5064 as the new shadow stack.
5065 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
5066 <asm/prctl.h>.
5067 (__setcontext): Restore the target shadow stack.
5068 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
5069 <asm/prctl.h>.
5070 (__swapcontext): Record the current shadow stack base. Save
5071 the caller's shadow stack pointer and base. Restore the target
5072 shadow stack.
5073 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5074 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
5075 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
5076
50772018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5078
5079 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
5080 tst-setcontext8 and tst-setcontext9.
5081 * stdlib/tst-setcontext6.c: New file.
5082 * stdlib/tst-setcontext7.c: Likewise.
5083 * stdlib/tst-setcontext8.c: Likewise.
5084 * stdlib/tst-setcontext9.c: Likewise.
5085
50862018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5087
5088 * stdlib/Makefile ((tests): Add tst-setcontext5.
5089 * stdlib/tst-setcontext5.c: New file.
5090
50912018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5092
5093 * stdlib/Makefile (tests): Add tst-setcontext4.
5094 * stdlib/tst-setcontext4.c: New file.
5095
50962018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5097
5098 * stdlib/Makefile (tests): Add tst-swapcontext1.
5099 * stdlib/tst-swapcontext1.c: New test.
5100
51012018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5102
5103 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
5104 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
5105 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
5106 and tst-cet-legacy-4c.
5107 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
5108 and tst-cet-legacy-mod-4.
5109 (CFLAGS-tst-cet-legacy-2.c): New.
5110 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
5111 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
5112 (CFLAGS-tst-cet-legacy-3.c): Likewise.
5113 (CFLAGS-tst-cet-legacy-4.c): Likewise.
5114 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
5115 ($(objpfx)tst-cet-legacy-1): Likewise.
5116 ($(objpfx)tst-cet-legacy-2): Likewise.
5117 ($(objpfx)tst-cet-legacy-2.out): Likewise.
5118 ($(objpfx)tst-cet-legacy-2a): Likewise.
5119 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
5120 ($(objpfx)tst-cet-legacy-4): Likewise.
5121 ($(objpfx)tst-cet-legacy-4.out): Likewise.
5122 ($(objpfx)tst-cet-legacy-4a): Likewise.
5123 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
5124 (tst-cet-legacy-4a-ENV): Likewise.
5125 ($(objpfx)tst-cet-legacy-4b): Likewise.
5126 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
5127 (tst-cet-legacy-4b-ENV): Likewise.
5128 ($(objpfx)tst-cet-legacy-4c): Likewise.
5129 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
5130 (tst-cet-legacy-4c-ENV): Likewise.
5131 * sysdeps/x86/tst-cet-legacy-1.c: New file.
5132 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
5133 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
5134 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
5135 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
5136 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
5137 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
5138 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
5139 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
5140 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
5141 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
5142
51432018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5144
5145 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5146 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5147 with ssp_base.
5148 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5149 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5150 with ssp_base.
5151
51522018-07-25 Andreas Schwab <schwab@suse.de>
5153
5154 [BZ #23442]
5155 * locale/weightwc.h (findidx): Handle the case where usrc is a
5156 prefix of cp but one character too short.
5157
51582018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5159
5160 * NEWS: Add ISO C threads addition.
5161
51622018-07-24 Florian Weimer <fweimer@redhat.com>
5163
5164 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5165 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
5166 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
5167 4.13.
5168
51692018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5170
5171 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
5172 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
5173 <sys/prctl.h> and <asm/prctl.h>.
5174 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
5175 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
5176 and <asm/prctl.h>.
5177 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
5178 ARCH_CET_LEGACY_BITMAP.
5179 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
5180 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
5181 * sysdeps/x86/libc-start.c: Include <startup.h>.
5182
51832018-07-24 Florian Weimer <fweimer@redhat.com>
5184
5185 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
5186 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
5187
51882018-07-24 Rical Jasan <rj@2c3t.io>
5189 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5190 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5191
5192 [BZ #14092]
5193 * manual/debug.texi: Update adjacent chapter name.
5194 * manual/probes.texi: Likewise.
5195 * manual/threads.texi (ISO C Threads): New section.
5196 (POSIX Threads): Convert to a section.
5197
51982018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5199 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5200
5201 [BZ# 14092]
5202 * nptl/Makefile (tests): Add new test files.
5203 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
5204 * nptl/tst-cnd-basic.c: Likewise.
5205 * nptl/tst-cnd-broadcast.c: Likewise.
5206 * nptl/tst-cnd-timedwait.c: Likewise.
5207 * nptl/tst-mtx-basic.c: Likewise.
5208 * nptl/tst-mtx-recursive.c: Likewise.
5209 * nptl/tst-mtx-timedlock.c: Likewise.
5210 * nptl/tst-mtx-trylock.c: Likewise.
5211 * nptl/tst-thrd-basic.c: Likewise.
5212 * nptl/tst-thrd-detach.c: Likewise.
5213 * nptl/tst-thrd-sleep.c: Likewise.
5214 * nptl/tst-tss-basic.c: Likewise.
5215
52162018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5217
5218 [BZ #14092]
5219 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
5220 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
5221 symbols.
5222 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5223 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5224 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5225 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5226 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5227 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5228 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5229 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5230 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5231 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5232 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5233 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5234 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5235 Likewise.
5236 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5237 Likewise.
5238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5239 Likewise.
5240 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5241 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5242 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5243 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5244 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5245 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5246 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5247 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5248 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5249 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
5250 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
5251 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
5252 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
5253 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
5254 Likewise.
5255 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
5256 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
5257 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
5258 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
5259 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
5260 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
5261 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
5262 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
5263 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
5264 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
5265 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
5266 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
5267 ikewise.
5268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
5269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
5270 Likewise.
5271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
5272 Likewise.
5273 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
5274 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
5275 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
5276 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
5277 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
5278 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
5279 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
5280 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
5281
5282 [BZ #14092]
5283 * conform/data/threads.h-data (thread_local): New macro.
5284 (TSS_DTOR_ITERATIONS): Likewise.
5285 (tss_t): New type.
5286 (tss_dtor_t): Likewise.
5287 (tss_create): New function.
5288 (tss_get): Likewise.
5289 (tss_set): Likewise.
5290 (tss_delete): Likewise.
5291 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
5292 tss_get, and tss_set objects.
5293 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
5294 * nptl/tss_create.c: New file.
5295 * nptl/tss_delete.c: Likewise.
5296 * nptl/tss_get.c: Likewise.
5297 * nptl/tss_set.c: Likewise.
5298 * sysdeps/nptl/threads.h (thread_local): New define.
5299 (TSS_DTOR_ITERATIONS): Likewise.
5300 (tss_t): New typedef.
5301 (tss_dtor_t): Likewise.
5302 (tss_create): New prototype.
5303 (tss_get): Likewise.
5304 (tss_set): Likewise.
5305 (tss_delete): Likewise.
5306
5307 [BZ #14092]
5308 * conform/data/threads.h-data (cnd_t): New type.
5309 (cnd_init): New function.
5310 (cnd_signal): Likewise.
5311 (cnd_broadcast): Likewise.
5312 (cnd_wait): Likewise.
5313 (cnd_timedwait): Likewise.
5314 (cnd_destroy): Likewise.
5315 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
5316 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
5317 object.
5318 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
5319 * nptl/cnd_broadcast.c: New file.
5320 * nptl/cnd_destroy.c: Likewise.
5321 * nptl/cnd_init.c: Likewise.
5322 * nptl/cnd_signal.c: Likewise.
5323 * nptl/cnd_timedwait.c: Likewise.
5324 * nptl/cnd_wait.c: Likewise.
5325 * sysdeps/nptl/threads.h (cnd_t): New type.
5326 (cnd_init): New prototype.
5327 (cnd_signa): Likewise.
5328 (cnd_broadcast): Likewise.
5329 (cnd_wait): Likewise.
5330 (cnd_timedwait): Likewise.
5331 (cnd_destroy): Likewise.
5332
5333 [BZ #14092]
5334 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
5335 (once_flag): New type.
5336 (call_once): New function.
5337 * nptl/Makefile (libpthread-routines): Add call_once object.
5338 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
5339 * nptl/call_once.c: New file.
5340 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
5341 (once_flag): New type.
5342 (call_once): New prototype.
5343
5344 [BZ #14092]
5345 * conform/data/threads.h-data (mtx_plain): New constant.
5346 (mtx_recursive): Likewise.
5347 (mtx_timed): Likewise.
5348 (mtx_t): New type.
5349 (mtx_init): New function.
5350 (mtx_lock): Likewise.
5351 (mtx_timedlock): Likewise.
5352 (mtx_trylock): Likewise.
5353 (mtx_unlock): Likewise.
5354 (mtx_destroy): Likewise.
5355 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
5356 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
5357 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
5358 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
5359 * nptl/mtx_destroy.c: New file.
5360 * nptl/mtx_init.c: Likewise.
5361 * nptl/mtx_lock.c: Likewise.
5362 * nptl/mtx_timedlock.c: Likewise.
5363 * nptl/mtx_trylock.c: Likewise.
5364 * nptl/mtx_unlock.c: Likewise.
5365 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
5366 (mtx_recursive): Likewise.
5367 (mtx_timed): Likewise.
5368 (mtx_t): New type.
5369 (mtx_init): New prototype.
5370 (mtx_lock): Likewise.
5371 (mtx_timedlock): Likewise.
5372 (mtx_trylock): Likewise.
5373 (mtx_unlock): Likewise.
5374 (mtx_destroy): Likewise.
5375
5376 [BZ #14092]
5377 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
5378 (linknamespace-libs-ISO11): Add libpthread.a.
5379 * conform/data/threads.h-data: New file: add C11 thrd_* types and
5380 functions.
5381 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
5382 * nptl/Makefile (headers): Add threads.h.
5383 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
5384 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
5385 thrd_yield.
5386 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
5387 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
5388 thrd_join, thrd_sleep, and thrd_yield symbols.
5389 * nptl/descr.h (struct pthread): Add c11 field.
5390 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
5391 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
5392 routine with expected function prototype.
5393 (__pthread_create_2_1): Add C11 threads check based on attribute
5394 value.
5395 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
5396 * nptl/thrd_create.c: New file.
5397 * nptl/thrd_current.c: Likewise.
5398 * nptl/thrd_detach.c: Likewise.
5399 * nptl/thrd_equal.c: Likewise.
5400 * nptl/thrd_exit.c: Likewise.
5401 * nptl/thrd_join.c: Likewise.
5402 * nptl/thrd_priv.h: Likewise.
5403 * nptl/thrd_sleep.c: Likewise.
5404 * nptl/thrd_yield.c: Likewise.
5405 * include/threads.h: Likewise.
5406
54072018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5408
5409 * bits/indirect-return.h: New file.
5410 * misc/sys/cdefs.h (__glibc_has_attribute): New.
5411 * sysdeps/x86/bits/indirect-return.h: Likewise.
5412 * stdlib/Makefile (headers): Add bits/indirect-return.h.
5413 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
5414 (swapcontext): Add __INDIRECT_RETURN.
5415 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
5416 (prepare_test_buffer): Use it.
5417
54182018-07-24 Andreas Schwab <schwab@suse.de>
5419
5420 [BZ #23448]
5421 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
5422 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
5423
54242018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5425
5426 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
5427 Redefine if shadow stack is enabled.
5428 (SYSCALL_ERROR_LABEL): Likewise.
5429 (__vfork): Pop shadow stack and jump back to to caller directly
5430 when shadow stack is in use.
5431 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
5432 Redefine if shadow stack is enabled.
5433 (SYSCALL_ERROR_LABEL): Likewise.
5434 (__vfork): Pop shadow stack and jump back to to caller directly
5435 when shadow stack is in use.
5436
54372018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5438
5439 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
5440 enabled.
5441 (foo): Likewise.
5442 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
5443 (foo): Likewise.
5444
54452018-07-20 Joseph Myers <joseph@codesourcery.com>
5446
5447 * scripts/build-many-glibcs.py (Context.checkout): Default
5448 binutils version to 2.31 branch.
5449
54502018-07-20 Zong Li <zong@andestech.com>
5451
5452 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
5453 URL of gcc's tarball.
5454
54552018-07-20 Florian Weimer <fweimer@redhat.com>
5456
5457 [BZ #23396]
5458 * posix/regcomp.c (build_equiv_class): When comparing weights, do
5459 not compare an extra byte after the end of the weights.
5460
54612018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5462
5463 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
5464 to 1.
5465 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
5466 hidden prototypes.
5467 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
5468 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
5469 * scripts/check-execstack.awk: Consider `xfail' variable containing a
5470 list of libraries whose stack executability is expected.
5471 * elf/Makefile ($(objpfx)check-execstack.out): Pass
5472 $(check-execstack-xfail) to check-execstack.awk through `xfail'
5473 variable.
5474 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
5475 libc.so libpthread.so.
5476
54772018-07-20 Thomas Schwinge <tschwinge@gnu.org>
5478
5479 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
5480 SOCK_NONBLOCK.
5481 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
5482 and SOCK_NONBLOCK.
5483 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
5484 implement __pipe2.
5485 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
5486
54872018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5488
5489 * benchtests/scripts/compare_bench.py (__main__): use the argparse
5490 library to improve command line parsing.
5491 (__main__): make schema file as optional parameter (--schema),
5492 defaulting to benchtests/scripts/benchout.schema.json.
5493 (main): move out of the parsing stuff to __main_  and leave it
5494 only as caller of main comparison functions.
5495
54962018-07-19 H.J. Lu <hongjiu.lu@intel.com>
5497
5498 * NEWS: Add a note for Intel CET status.
5499 * manual/install.texi: Likewise.
5500 * INSTALL: Regenerated.
5501
55022018-07-18 Quentin PAGÈS <provaires@quentino.fr>
5503
5504 [BZ #23140]
5505 * localedata/locales/oc_FR (mon): Rename to...
5506 (alt_mon): This, then update October (typo fix).
5507 (mon): New content (genitive case, month names preceded by
5508 "de" or "d’").
5509
5510 [BZ #23422]
5511 * localedata/locales/oc_FR (abday): Update all items.
5512 (day): Update Wednesday and Saturday (typo fixes).
5513 (abmon): Update all items, except May.
5514 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
5515 (LC_IDENTIFICATION): Bump the revision number and date.
5516 Keep the "category" entries in alphabetic order.
5517 (LC_ADDRESS): Remove no longer needed comment.
5518 (LC_COLLATE): Use “copy "ca_ES"”.
5519 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
5520 "name_mrs".
5521
55222018-07-18 Joseph Myers <joseph@codesourcery.com>
5523
5524 * grp/tst_fgetgrent.c: Include <unistd.h>.
5525 (main): Use mkstemp instead of tmpnam.
5526 * io/test-utime.c (main): Likewise.
5527 * posix/annexc.c (macrofile): Change to modifiable array.
5528 (main): Remove macrofile here.
5529 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
5530 macrofile here.
5531 (check_header): Do not remove macrofile here.
5532 * posix/bug-getopt1.c: Include <stdlib.h>.
5533 (do_test): Use mkstemp instead of tmpnam.
5534 * posix/bug-getopt2.c: Include <stdlib.h>.
5535 (do_test): Use mkstemp instead of tmpnam.
5536 * posix/bug-getopt3.c: Include <stdlib.h>.
5537 (do_test): Use mkstemp instead of tmpnam.
5538 * posix/bug-getopt4.c: Include <stdlib.h>.
5539 (do_test): Use mkstemp instead of tmpnam.
5540 * posix/bug-getopt5.c: Include <stdlib.h>.
5541 (do_test): Use mkstemp instead of tmpnam.
5542 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
5543 (main): Use mkstemp instead of tmpnam.
5544 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
5545 (main): Use mkstemp instead of tmpnam.
5546 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
5547 (main): use mkstemp instead of tmpnam.
5548 * stdlib/isomac.c (macrofile): Change to modifiable array.
5549 (main): Remove macrofile here.
5550 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
5551 macrofile here.
5552 (check_header): Do not remove macrofile here.
5553
55542018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5555
5556 * manual/tunables.texi: Document glibc.tune.x86_ibt and
5557 glibc.tune.x86_shstk.
5558
55592018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5560
5561 * NEWS: Mention --enable-cet.
5562 * manual/install.texi: Document --enable-cet.
5563 * INSTALL: Regenerated.
5564
55652018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5566
5567 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
5568 Add _CET_NOTRACK before indirect jump to jump table.
5569
55702018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5571
5572 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
5573 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5574 to jump table.
5575
55762018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5577
5578 * sysdeps/i386/i686/multiarch/strcat-sse2.S
5579 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5580 to jump table.
5581
55822018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5583
5584 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
5585 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5586 to jump table.
5587
55882018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5589
5590 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
5591 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5592 to jump table.
5593
55942018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5595
5596 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
5597 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5598 to jump table.
5599 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
5600
56012018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5602
5603 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
5604 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5605 to jump table.
5606
56072018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5608
5609 * sysdeps/i386/i686/multiarch/memset-sse2.S
5610 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5611 to jump table.
5612
56132018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5614
5615 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
5616 indirect jump to jump table.
5617
56182018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5619
5620 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
5621 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5622 to jump table.
5623 (MEMCPY): Likewise.
5624
56252018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5626
5627 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
5628 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5629 to jump table.
5630 (MEMCPY): Likewise.
5631
56322018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5633
5634 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
5635 _CET_NOTRACK before indirect jump to jump table.
5636
56372018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5638
5639 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
5640 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5641 to jump table.
5642
56432018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5644
5645 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
5646 indirect jump to jump table.
5647
56482018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
5649
5650 [BZ #22241]
5651 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
5652 (LOCALES): Likewise.
5653 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
5654 * localedata/locales/sah_RU: New file.
5655 * localedata/sah_RU.UTF-8.in: New file.
5656
56572018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5658
5659 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
5660 "sysdep.h".
5661 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
5662 _CET_ENDBR to indirect jump targets and adjust jump destination
5663 for _CET_ENDBR.
5664 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
5665 "sysdep.h".
5666 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
5667 _CET_ENDBR to indirect jump targets and adjust jump destination
5668 for _CET_ENDBR.
5669 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
5670 "sysdep.h".
5671 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
5672 _CET_ENDBR to indirect jump targets and adjust jump destination
5673 for _CET_ENDBR.
5674
56752018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
5678 _CET_ENDBR.
5679
56802018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5681
5682 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
5683 _CET_ENDBR.
5684 (_dl_tlsdesc_undefweak): Likewise.
5685 (_dl_tlsdesc_dynamic): Likewise.
5686 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
5687 (_dl_tlsdesc_resolve_rel): Likewise.
5688 (_dl_tlsdesc_resolve_rela): Likewise.
5689 (_dl_tlsdesc_resolve_hold): Likewise.
5690 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
5691 (_dl_tlsdesc_undefweak): Likewise.
5692 (_dl_tlsdesc_dynamic): Likewise.
5693 (_dl_tlsdesc_resolve_rela): Likewise.
5694 (_dl_tlsdesc_resolve_hold): Likewise.
5695
56962018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5697
5698 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
5699 (_fini): Likewise.
5700 * sysdeps/x86_64/crti.S (_init): Likewise.
5701 (_fini): Likewise.
5702
57032018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
5704
5705 [BZ #23140]
5706 * localedata/locales/os_RU (mon): Rename to...
5707 (alt_mon): This.
5708 (mon): Import from CLDR (genitive case).
5709
57102018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5711
5712 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
5713 cet-tunables.h> when CET is enabled.
5714
57152018-07-16 H.J. Lu <hongjiu.lu@intel.com>
5716
5717 [BZ #21598]
5718 * configure.ac: Add --enable-cet.
5719 * configure: Regenerated.
5720 * elf/Makefille (all-built-dso): Add a comment.
5721 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
5722 Include <dl-prop.h>.
5723 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
5724 segment.
5725 * elf/dl-open.c: Include <dl-prop.h>.
5726 (dl_open_worker): Call _dl_open_check.
5727 * elf/rtld.c: Include <dl-prop.h>.
5728 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
5729 _rtld_main_check.
5730 * sysdeps/generic/dl-prop.h: New file.
5731 * sysdeps/i386/dl-cet.c: Likewise.
5732 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
5733 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
5734 * sysdeps/x86/cet-tunables.h: Likewise.
5735 * sysdeps/x86/check-cet.awk: Likewise.
5736 * sysdeps/x86/configure: Likewise.
5737 * sysdeps/x86/configure.ac: Likewise.
5738 * sysdeps/x86/dl-cet.c: Likewise.
5739 * sysdeps/x86/dl-procruntime.c: Likewise.
5740 * sysdeps/x86/dl-prop.h: Likewise.
5741 * sysdeps/x86/libc-start.h: Likewise.
5742 * sysdeps/x86/link_map.h: Likewise.
5743 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
5744 _CET_ENDBR.
5745 (_dl_runtime_profile): Likewise.
5746 (_dl_runtime_resolve_shstk): New.
5747 (_dl_runtime_profile_shstk): Likewise.
5748 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
5749 if CET is enabled.
5750 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
5751 (CFLAGS-.os): Likewise.
5752 (CFLAGS-.op): Likewise.
5753 (CFLAGS-.oS): Likewise.
5754 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
5755 is enabled.
5756 (tests-special): Add $(objpfx)check-cet.out.
5757 (cet-built-dso): New.
5758 (+$(cet-built-dso:=.note)): Likewise.
5759 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
5760 ($(objpfx)check-cet.out): New.
5761 (generated): Add check-cet.out.
5762 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
5763 <cet-tunables.h>.
5764 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
5765 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5766 (init_cpu_features): Call get_cet_status to check CET status
5767 and update dl_x86_feature_1 with CET status. Call
5768 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
5769 (set_x86_shstk). Disable and lock CET in libc.a.
5770 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
5771 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
5772 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5773 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
5774 (_CET_ENDBR): Define if not defined.
5775 (ENTRY): Add _CET_ENDBR.
5776 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
5777 x86_shstk.
5778 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
5779 _CET_ENDBR.
5780 (_dl_runtime_profile): Likewise.
5781
57822018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
5783
5784 [BZ #21895]
5785 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
5786 restore r2 on longjmp.
5787 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
5788 test list.
5789 Added rules to build test tst-setjmp-bug21895-static.
5790 Added module setjmp-bug21895 and rules to build a shared object from it.
5791 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
5792 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
5793
57942018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
5795
5796 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
5797 * benchtests/bench-strstr.c: Likewise.
5798 * string/memmem.c (FASTSEARCH): Define.
5799 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
5800 Add support for FASTSEARCH.
5801 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
5802 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
5803 (FASTSEARCH): Define.
5804 * string/test-strcasestr.c: Rename __strnlen to strnlen.
5805 * string/test-strstr.c: Likewise.
5806
58072018-07-15 H.J. Lu <hongjiu.lu@intel.com>
5808
5809 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
5810 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
5811
58122018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5813 H.J. Lu <hongjiu.lu@intel.com>
5814
5815 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
5816 (__longjmp): Restore shadow stack pointer if shadow stack is
5817 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
5818 isn't defined for __longjmp_cancel.
5819 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
5820 (_setjmp): Save shadow stack pointer if shadow stack is enabled
5821 and SHADOW_STACK_POINTER_OFFSET is defined.
5822 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
5823 (setjmp): Save shadow stack pointer if shadow stack is enabled
5824 and SHADOW_STACK_POINTER_OFFSET is defined.
5825 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
5826 (__sigsetjmp): Save shadow stack pointer if shadow stack is
5827 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5828 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
5829 <jmp_buf-ssp.h>.
5830 (____longjmp_chk): Restore shadow stack pointer if shadow stack
5831 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5832 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
5833 Remove jmp_buf-ssp.sym.
5834 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5835 <jmp_buf-ssp.h>.
5836 (____longjmp_chk): Restore shadow stack pointer if shadow stack
5837 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5838 * sysdeps/x86/Makefile (gen-as-const-headers): Add
5839 jmp_buf-ssp.sym.
5840 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
5841 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
5842 (__longjmp): Restore shadow stack pointer if shadow stack is
5843 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
5844 isn't defined for __longjmp_cancel.
5845 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
5846 (__sigsetjmp): Save shadow stack pointer if shadow stack is
5847 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5848
58492018-07-14 H.J. Lu <hongjiu.lu@intel.com>
5850
5851 [BZ #22563]
5852 * nptl/pthread_create.c: Include <tls-setup.h>.
5853 (__pthread_create_2_1): Call tls_setup_tcbhead.
5854 * sysdeps/generic/tls-setup.h: New file.
5855 * sysdeps/x86/nptl/tls-setup.h: Likewise.
5856 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
5857 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
5858 Likewise.
5859 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
5860 to feature_1.
5861 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
5862 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
5863 (X86_FEATURE_1_SHSTK): Likewise.
5864 (CET_ENABLED): Likewise.
5865 (IBT_ENABLED): Likewise.
5866 (SHSTK_ENABLED): Likewise.
5867
58682018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
5869
5870 [BZ #23208]
5871 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
5872 (LOCALES): Likewise.
5873 * localedata/dsb_DE.UTF-8.in: New file.
5874 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
5875
58762018-07-12 Florian Weimer <fweimer@redhat.com>
5877
5878 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
5879 __mprotect, not mprotect.
5880
58812018-07-11 Florian Weimer <fweimer@redhat.com>
5882
5883 * io/Makefile (headers): Add bits/statx.h.
5884
58852018-07-10 Mike FABIAN <mfabian@redhat.com>
5886
5887 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
5888 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
5889 and headers.
5890 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
5891 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
5892 for utf8_gen.py
5893
58942018-07-10 Florian Weimer <fweimer@redhat.com>
5895
5896 * io/Makefile (routines): Add statx.
5897 (tests-internal): Add tst-statx.
5898 * io/Versions (GLIBC_2.28): Export statx.
5899 * io/bits/statx.h: New file.
5900 * io/sys/stat.h [__USE_GNU]: Include it.
5901 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
5902 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
5903 Define.
5904 * io/statx.c: New file.
5905 * io/statx_generic.: Likewise.
5906 * io/tst-statx.: Likewise.
5907 * include/bits/statx.h: Likewise.
5908 * sysdeps/unix/sysv/linux/kernel-features.h
5909 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
5910 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5911 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
5912 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
5913 Undefine.
5914 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5915 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
5916 * sysdeps/unix/sysv/linux/statx.c: New file.
5917 * manual/filesys.texi: Note that statx is undocumented.
5918 * sysdeps/**/libc*.abilist: Update.
5919
59202018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5921
5922 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
5923 a kernel issue which lead to test failure in some cases.
5924
59252018-07-10 Florian Weimer <fweimer@redhat.com>
5926
5927 [BZ #23036]
5928 * posix/regexec.c (check_node_accept_bytes): When comparing
5929 weights, do not compare an extra byte after the end of the
5930 weights.
5931
59322018-07-10 Florian Weimer <fweimer@redhat.com>
5933
5934 * libio/readline.c: Fix copyright year.
5935 * libio/tst-readline.c Likewise.
5936 * nss/tst-nss-files-hosts-getent.c: Likewise.
5937
59382018-07-06 Florian Weimer <fweimer@redhat.com>
5939
5940 [BZ #18991]
5941 * nss/nss_files/files-XXX.c (internal_getent): Use
5942 __libc_readline_unlocked. Seek back to the start of the line if
5943 parsing failes with ERANGE.
5944 (get_contents_ret, get_contents): Remove.
5945 * nss/tst-nss-files-hosts-getent.c: New file.
5946 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
5947 (tst-nss-files-hosts-getent): Link with -ldl.
5948
59492018-07-06 Florian Weimer <fweimer@redhat.com>
5950
5951 * include/stdio.h (__libc_readline_unlocked): Declare.
5952 (__ftello64, __fseeko64): Declare aliases.
5953 * libio/readline.c: New file.
5954 * libio/tst-readline.c: Likewise.
5955 (routines): Add readline.
5956 (tests-internal): Add tst-readlime.
5957 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
5958 __libc_readline_unlocked.
5959 * libio/fseeko.c (__fseeko): Rename from fseeko.
5960 (fseeko): Add alias.
5961 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
5962 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
5963 (fseeko64): Add alias.
5964 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
5965 * libio/ftello64.c (__ftello64): Rename from ftello64.
5966 (ftello64): Add alias.
5967
59682018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5969
5970 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
5971 HWCAP_ATOMICS.
5972
59732018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5974
5975 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
5976 Use dl_hwcap without masking.
5977 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
5978 Remove HWCAP_CPUID.
5979
59802018-07-06 Florian Weimer <fweimer@redhat.com>
5981
5982 * conform/conformtest.pl (checknamespace): Escape literal braces
5983 in regular expressions.
5984
59852018-07-06 Amit Pawar <amit.pawar@amd.com>
5986
5987 * sysdeps/x86/cpu-features.c (get_common_indeces):
5988 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
5989 * sysdeps/x86/cpu-features.c (init_cpu_features):
5990 AVX_Fast_Unaligned_Load is disabled for Excavator core.
5991
59922018-07-05 Florian Weimer <fweimer@redhat.com>
5993
5994 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
5995 protector.
5996 (CFLAGS-elf-init.oS): Likewise.
5997
59982018-07-05 Florian Weimer <fweimer@redhat.com>
5999 Carlos O'Donell <carlos@redhat.com>
6000
6001 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
6002 $(no-stack-protector). stack_chk_fail_local.c can be compiled
6003 with stack protector enabled because there is no risk of infinite
6004 recursion.
6005
60062018-07-05 Maciej W. Rozycki <macro@mips.com>
6007
6008 [BZ #19818]
6009 [BZ #23307]
6010 * libc-abis (ABSOLUTE): New ABI.
6011 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
6012 * NEWS: Mention the new ABI.
6013
60142018-07-05 Florian Weimer <fweimer@redhat.com>
6015
6016 [BZ # 17662]
6017 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
6018 (RENAME_WHITEOUT): Define.
6019 [__USE_GNU] (renameat2): Declare.
6020 * stdio-common/Makefile (routines): Add renameat2.
6021 (tests): Add tst-renameat2.
6022 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
6023 * stdio-common/renameat2.c: New file.
6024 * stdio-common/tst-renameat2.c: Likewise.
6025 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
6026 * manual/filesys.texi (Temporary Files): Note that renameat2 is
6027 undocumented.
6028 * sysdeps/unix/sysv/linux/kernel-features.h
6029 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
6030 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6031 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
6032 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6033 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
6034 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6035 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
6036 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6037 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
6038 * include/stdio.h (__renameat): Add alias for renameat.
6039 * stdio-common/renameat.c (__renameat): Rename from renameat.
6040 Add hidden definition and alias.
6041 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
6042 * sysdeps/mach/hurd/renameat.c: Likewise.
6043 * sysdeps/**/libc*.abilist: Add renameat2.
6044
60452018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6046
6047 * posix/bug-regex33.c: Fix build after regex sync.
6048
60492018-07-04 Carlos O'Donell <carlos@redhat.com>
6050
6051 [BZ #23164]
6052 * localedata/tst-langinfo-setlocale.c: New file.
6053 * localedata/tst-langinfo-setlocale-static.c: New file.
6054 * localedata/tst-langinfo-newlocale.c: New file.
6055 * localedata/tst-langinfo-newlocale-static.c: New file.
6056 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
6057 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
6058 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
6059 (tests-static): Remove tst-langinfo-static. Add
6060 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
6061 (tests-special): Remove $(objpfx)tst-langinfo.out,
6062 $(objpfx)tst-langinfo-static.out. Add
6063 $(objpfx)tst-langinfo-setlocale.out,
6064 $(objpfx)tst-langinfo-newlocale.out,
6065 $(objpfx)tst-langinfo-setlocale-static.out,
6066 $(objpfx)tst-langinfo-newlocale-static.out.
6067 ($(objpfx)tst-langinfo.out): Remove.
6068 ($(objpfx)tst-langinfo-static.out): Remove.
6069 ($(objpfx)tst-langinfo-newlocale.out): New target.
6070 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
6071 (test-xfail-tst-langinfo-newlocale-static): Add.
6072 ($(objpfx)tst-langinfo-setlocale.out): New target.
6073 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
6074 * localedata/tst-langinfo.c: Call test_locale.
6075 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
6076 data.
6077
60782018-07-04 Florian Weimer <fweimer@redhat.com>
6079
6080 testrun.sh: Implement --tool=strace, --tool=valgrind
6081 * Makefile (testrun-script): Define variable.
6082 (testrun.sh): Use variable.
6083 * manual/install.texi (Tools for Compilation): make 4.0 or later
6084 is required.
6085 * configure.ac: Check for make 4.0 or later.
6086 * INSTALL: Regenerate.
6087 * configure: Likewise.
6088
60892018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6090
6091 [BZ #23233]
6092 [BZ #21163]
6093 [BZ #18986]
6094 [BZ #13762]
6095 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
6096 * posix/PCRE.tests: Remove invalid test.
6097 * posix/bug-regex28.c: Fix expected values for used syntax.
6098 * posix/bug-regex37.c: New file.
6099 * posix/bug-regex38.c: Likewise.
6100 * posix/regcomp.c: Sync with gnulib.
6101 * posix/regex.c: Likewise.
6102 * posix/regex.h: Likewise.
6103 * posix/regex_internal.c: Likewise.
6104 * posix/regex_internal.h: Likewise.
6105 * posix/regexec.c: Likewise.
6106
61072018-06-26 Mike FABIAN <mfabian@redhat.com>
6108
6109 [BZ #23308]
6110 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
6111 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
6112 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
6113 * localedata/unicode-gen/PropList.txt: likewise.
6114 * localedata/unicode-gen/UnicodeData.txt: likewise.
6115 * localedata/charmaps/UTF-8: Regenerate.
6116 * localedata/locales/i18n_ctype: likewise.
6117 * localedata/locales/tr_TR: likewise.
6118 * localedata/locales/translit_circle: likewise.
6119 * localedata/locales/translit_cjk_compat: likewise.
6120 * localedata/locales/translit_combining: likewise.
6121 * localedata/locales/translit_compat: likewise.
6122 * localedata/locales/translit_font: likewise.
6123 * localedata/locales/translit_fraction: likewise.
6124
61252018-07-03 Florian Weimer <fweimer@redhat.com>
6126
6127 [BZ #23363]
6128 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
6129 * stdio-common/tst-printf.sh: Adjust expected output.
6130 * LICENSES: Update.
6131
61322018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6133
6134 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
6135 symbol.
6136
61372018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6138
6139 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
6140 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
6141 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
6142 * stdio-common/tst-printfsz-islongdouble.c: New file.
6143 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
6144 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
6145 [subdir == stdio-common] (routines): Add ieee128-printf_size.
6146 [subdir == stdio-common] (tests-internal): Add
6147 test-printf-size-ieee128, and test-printf-size-ibm128.
6148 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
6149 (CFLAGS-test-printf-size-ibm128.c): New variables.
6150 [subdir == stdio-common] (tests-special): Add
6151 $(objpfx)test-printf-size-ieee128.out and
6152 $(objpfx)test-printf-size-ibm128.out.
6153 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
6154 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
6155 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
6156 __printf_sizeieee128.
6157 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
6158 New file.
6159 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
6160 Likewise.
6161 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
6162 Likewise.
6163
61642018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
6165
6166 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
6167 (exp2f_inline): Likewise.
6168 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
6169 (__math_uflowf): Likewise.
6170 (__math_may_uflowf): Likewise.
6171 (__math_divzerof): Likewise.
6172 (__math_invalidf): Likewise.
6173 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
6174 (__math_oflowf): Likewise.
6175 (__math_uflowf): Likewise.
6176 (__math_may_uflowf): Likewise.
6177 (__math_divzerof): Likewise.
6178 (__math_invalidf): Likewise.
6179
61802018-06-29 DJ Delorie <dj@redhat.com>
6181 Carlos O'Donell <carlos@redhat.com>
6182
6183 [BZ #23329]
6184 * include/libc-symbols.h: Comment the freeres framework.
6185 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
6186 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
6187 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
6188 * dlfcn/dlerror.c: Include libc-symbols.h
6189 (__dlerror_main_freeres): New function.
6190 * dlfcn/dlfreeres.c: New file.
6191 * dlfcn/sdlfreeres.c: New file.
6192 * include/dlfcn.h: Declare __dlerror_main_freeres.
6193 * malloc/set-freeres.c: Declare __libdl_freeres, and
6194 __libpthread_freeres.
6195 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
6196 the releavant libraries are loaded.
6197 * malloc/thread-freeres.c: Add comments.
6198 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
6199 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
6200 * nptl/allocatestack.c (__nptl_free_stacks): New function.
6201 (__free_stacks): Rename to...
6202 (free_stacks): ...this. Mark static.
6203 (queue_stack): Call free_stacks.
6204 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
6205 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
6206 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
6207 ptr_freeres element from struct.
6208 (pthread_functions): Remove .ptr_freeres from struct initializer.
6209 [SHARED] (nptl_freeres): Remove.
6210 * nptl/nptlfreeres.c: New file.
6211 * nptl/pthreadP.h
6212 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
6213 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
6214 attribute_hidden.
6215 (__free_stacks): Rename to...
6216 (__nptl_stacks_freeres): ...this.
6217 (__shm_directory_freeres): Declare.
6218 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
6219 (__nptl_unwind_freeres): ...this.
6220 * resolv/res-close.c: Add comment.
6221 * resolv/resolv_conf.c: Include libc-symbols.h.
6222 * string/strerror_l.c: Include libc-symbols.h.
6223 * sunrpc/rpc_thread.c: Include libc-symbols.h.
6224 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
6225 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
6226 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
6227
62282018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6229
6230 * stdlib/tst-strfmon_l.c: Add tests for long double.
6231
62322018-06-29 Michael Wolf <milupo@sorbzilla.de>
6233
6234 [BZ #23208]
6235 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
6236 * localedata/locales/dsb_DE: New file.
6237
62382018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
6239
6240 [BZ #23140]
6241 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
6242 genitive case).
6243 (alt_mon): New entry, import from CLDR (nominative case).
6244
62452018-06-29 Sylvain Lesage <severo@rednegra.net>
6246
6247 [BZ #22996]
6248 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
6249
62502018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
6251
6252 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
6253 Use vector registers.
6254
6255 * sysdeps/aarch64/multiarch/memmove_falkor.S
6256 (__memcpy_falkor): Use vector registers.
6257
62582018-06-29 Martin Sebor <msebor@redhat.com>
6259
6260 * manual/stdio.texi (Customizing Printf): Mention interaction
6261 with GCC built-ins.
6262
62632018-06-29 Maciej W. Rozycki <macro@mips.com>
6264
6265 [BZ #23307]
6266 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
6267 `st_value' is 0 if `st_shndx' is SHN_ABS.
6268 * elf/tst-absolute-zero.c: New file.
6269 * elf/tst-absolute-zero-lib.c: New file.
6270 * elf/tst-absolute-zero-lib.lds: New file.
6271 * elf/Makefile (tests): Add `tst-absolute-zero'.
6272 (modules-names): Add `tst-absolute-zero-lib'.
6273 (LDLIBS-tst-absolute-zero-lib.so): New variable.
6274 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
6275 ($(objpfx)tst-absolute-zero: New dependency.
6276
62772018-06-29 Zack Weinberg <zackw@panix.com>
6278
6279 * configure.ac: New command-line option --disable-crypt.
6280 Force --disable-nss-crypt when --disable-crypt is given, with a
6281 warning if it was explicitly enabled.
6282 * configure: Regenerate.
6283 * config.make.in: New boolean substitution variable $(build-crypt).
6284 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
6285 when $(build-crypt).
6286 * manual/install.texi: Document --disable-crypt.
6287 * INSTALL: Regenerate.
6288
6289 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
6290 which is never set.
6291 * conform/Makefile: Only include libcrypt.a in
6292 linknamespace-libs-xsi and linknamespace-libs-XPG4
6293 when $(build-crypt).
6294 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
6295 USE_CRYPT to 1 when $(build-crypt).
6296 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
6297 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
6298 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
6299
63002018-06-29 Zack Weinberg <zackw@panix.com>
6301
6302 * crypt/crypt.h, posix/unistd.h: Update comments and
6303 prototypes for crypt and crypt_r.
6304
6305 * manual/crypt.texi (Cryptographic Functions): New initial
6306 exposition.
6307 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
6308 (Unpredictable Bytes): Improve initial exposition. Clarify error
6309 behavior of getentropy and getrandom.
6310 * manual/examples/genpass.c: Generate a salt using getentropy
6311 instead of the current time. Use hash $5$ (SHA-2-256).
6312 * manual/examples/testpass.c: Demonstrate validation against
6313 hashes generated with three different one-way functions.
6314
6315 * manual/intro.texi: crypt.texi does not need an overview
6316 anymore.
6317
6318 * manual/nss.texi, manual/memory.texi, manual/socket.texi
6319 * manual/terminal.texi: Consistently refer to "passphrases"
6320 * instead of "passwords", and to the "user database" instead
6321 * of the "password database".
6322 * manual/users.texi: Similarly. Add notes about how actual
6323 passphrase hashes are now stored in the shadow database.
6324 Remove 20-year-old junk todo note.
6325
63262018-06-29 Zack Weinberg <zackw@panix.com>
6327
6328 * manual/crypt.texi: Use a normal top-level @node declaration.
6329 Move most of the introductory text to the 'crypt' section.
6330 Move the example programs below the @deftypefun for 'crypt_r'.
6331 Move the 'getpass' section...
6332 * manual/terminal.texi: ...here.
6333
63342018-06-29 Zack Weinberg <zackw@panix.com>
6335 Florian Weimer <fweimer@redhat.com>
6336
6337 * posix/unistd.h: Do not declare encrypt.
6338 (_XOPEN_CRYPT): Remove macro definition.
6339 (crypt): Declare only for _USE_MISC.
6340 * stdlib/stdlib.h: Do not declare setkey.
6341 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
6342 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
6343
6344 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
6345 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
6346 into compat symbols. Don't define initial_perm if it's not
6347 going to be used.
6348 * crypt/cert.c: Link explicitly with the expected versions for
6349 setkey and encrypt. If they are not available at all, mark
6350 the test as unsupported.
6351
6352 * sunrpc/des_crypt.c: Unconditionally block linkage with
6353 cbc_crypt and ecb_crypt for new binaries.
6354 * sunrpc/des_soft.c: Unconditionally block linkage with
6355 des_setparity for new binaries.
6356
6357 * manual/crypt.texi: Remove the entire "DES Encryption"
6358 section. Also remove the paragraph talking about FIPS 140-2
6359 from the introduction.
6360 * manual/string.texi (strfry, memfrob): Revise. Recommend use
6361 of libgcrypt for "real" encryption, not DES.
6362 * manual/conf.texi (Constants for Sysconf): Mention that
6363 _XOPEN_CRYPT is no longer impelemented.
6364
6365 * conform/data/unistd.h-data: Remove crypt function declaration.
6366
63672018-06-29 Florian Weimer <fweimer@redhat.com>
6368
6369 [BZ #23351]
6370 * malloc/hooks.c: Update comments on restoring of dumped heaps.
6371 (disallow_malloc_check): Remove variable.
6372 (__malloc_check_init): Adjust.
6373 (malloc_set_state): Update comment.
6374 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
6375 declarations.
6376
63772018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
6378
6379 [BZ #23140]
6380 * localedata/locales/ast_ES (mon): Rename to...
6381 (alt_mon): This.
6382 (mon): Import from CLDR (genitive case).
6383
63842018-06-29 Daniel Alvarez <dalvarez@redhat.com>
6385 Jakub Sitnicki <jkbs@redhat.com>
6386
6387 [BZ #21812]
6388 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
6389 on NLM_F_DUMP_INTR.
6390
63912018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
6392
6393 * manual/llio.texi: Remove spurious space.
6394
63952018-06-28 Florian Weimer <fweimer@redhat.com>
6396
6397 [BZ #23349]
6398 * time/bits/types/struct_timespec.h: Change header inclusion guard to
6399 _STRUCT_TIMESPEC.
6400
64012018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6402
6403 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
6404 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
6405 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
6406 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
6407 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
6408 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
6409 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
6410
64112018-06-27 Maciej W. Rozycki <macro@mips.com>
6412
6413 [BZ #23266]
6414 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
6415 Copy and null-terminate entries that are not terminated, in
6416 addition to empty ones.
6417
64182018-06-27 Florian Weimer <fweimer@redhat.com>
6419
6420 [BZ #18023]
6421 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
6422 (extend_alloca_account): Remove.
6423 * manual/stdio.texi (Variable Arguments Output): Update comment.
6424
64252018-06-27 Joseph Myers <joseph@codesourcery.com>
6426
6427 * nptl/sockperf.c: Remove file.
6428
64292018-06-27 Florian Weimer <fweimer@redhat.com>
6430
6431 [BZ #18023]
6432 * elf/dl-deps.c (_dl_map_object_deps): Use struct
6433 scratch_buffer instead of extend_alloca.
6434
64352018-06-27 Florian Weimer <fweimer@redhat.com>
6436
6437 [BZ #18023]
6438 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
6439 scratch_buffer instead of extend_alloca. Update comments.
6440
64412018-06-27 Florian Weimer <fweimer@redhat.com>
6442
6443 [BZ #18023]
6444 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
6445 instead of extend_alloca.
6446
64472018-06-26 Joseph Myers <joseph@codesourcery.com>
6448
6449 [BZ #13888]
6450 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
6451 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
6452 /tmp.
6453 * scripts/test-installation.pl: Put temporary files in build
6454 directory, not /tmp.
6455 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
6456 (CFLAGS-bug4.c): Likewise.
6457 (CFLAGS-bug5.c): Likewise.
6458 (CFLAGS-test-fseek.c): Likewise.
6459 (CFLAGS-test-popen.c): Likewise.
6460 (CFLAGS-test_rdwr.c): Likewise.
6461 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
6462 /tmp.
6463 * stdio-common/bug4.c (main): Likewise.
6464 * stdio-common/bug5.c (main): Likewise.
6465 * stdio-common/test-fseek.c (TESTFILE): Likewise.
6466 * stdio-common/test-popen.c (do_test): Likewise.
6467 * stdio-common/test_rdwr.c (main): Likewise.
6468
64692018-06-26 Patsy Franklin <pfrankli@redhat.com>
6470
6471 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
6472 (sem_open): Set sem.newsem.pad to zero for valgrind.
6473
64742018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6475
6476 [BZ #20251]
6477 * NEWS: Mention fcntl64 addition.
6478 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
6479 * login/utmp_file.c: Likewise.
6480 * sysdeps/posix/fdopendir.c: Likewise.
6481 * sysdeps/posix/opendir.c: Likewise.
6482 * sysdeps/unix/pt-fcntl.c: Likewise.
6483 * include/fcntl.h (__libc_fcntl64, __fcntl64,
6484 __fcntl64_nocancel_adjusted): New prototype.
6485 (__fcntl_nocancel_adjusted): Remove prototype.
6486 * io/Makefile (routines): Add fcntl64.
6487 (CFLAGS-fcntl64.c): New rule.
6488 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
6489 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
6490 * io/fcntl.h (fcntl64): Add prototype and redirect if
6491 __USE_FILE_OFFSET64 is defined.
6492 * io/fcntl64.c: New file.
6493 * manual/llio.text: Add a note for which commands fcntl acts a
6494 cancellation point.
6495 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
6496 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
6497 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
6498 New symbols.
6499 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
6500 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
6501 non-LFS case.
6502 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
6503 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
6504 to __fcntl64_nocancel.
6505 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
6506 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
6507 to __fcntl64_nocancel.
6508 * sysdeps/generic/not-cancel.h: Likewise.
6509 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
6510 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
6511 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
6512 (fcntl64): New symbol.
6513 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6514 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6515 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6518 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6519 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6520 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6521 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6522 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6523 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
6524 fcntl64): Likewise.
6525 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6526 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
6527 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6528 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6529 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6530 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6531 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6532 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6533 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6534 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6535 Likewise.
6536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6537 Likewise.
6538 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6539 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6540 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6541
65422018-06-26 Florian Weimer <fweimer@redhat.com>
6543
6544 Run thread shutdown functions in an explicit order.
6545 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
6546 definition.
6547 (__libc_thread_freeres): Call thread shutdown functions
6548 explicitly.
6549 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
6550 * include/string.h (__strerror_thread_freeres): Declare.
6551 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
6552 arena_thread_freeres. No longer static. Remove thread shutdown
6553 hook registration.
6554 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
6555 Declare.
6556 * resolv/res-close.c (__res_thread_freeres): Renamed from
6557 res_thread_freeres. No longer static. Remove thread shutdown
6558 hook registration.
6559 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
6560 * resolv/resolv_conf.c (freeres): Remove incorrect section
6561 attribute and use libc_freeres_fn.
6562 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
6563 strerror_thread_freeres. No longer static. Remove thread
6564 shutdown hook registration.
6565 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
6566 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
6567 shutdown hook registration.
6568 * Makerules (shlib.lds): Do not provide section boundary symbols
6569 for __libc_thread_subfreeres.
6570 * manual/memory.texi (Basic Allocation): Update comment.
6571
65722018-06-26 Florian Weimer <fweimer@redhat.com>
6573
6574 Remove always-defined _RPC_THREAD_SAFE_ macro.
6575 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
6576 Do not define _RPC_THREAD_SAFE_.
6577 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
6578 conditional.
6579 * sunrpc/clnt_perr.c: Likewise.
6580 * sunrpc/clnt_raw.c: Likewise.
6581 * sunrpc/clnt_simp.c: Likewise.
6582 * sunrpc/key_call.c: Likewise.
6583 * sunrpc/rpc_common.c: Likewise.
6584 * sunrpc/rpc_main.c: Likewise.
6585 * sunrpc/rpc_thread.c: Likewise.
6586 * sunrpc/svc.c: Likewise.
6587 * sunrpc/svc_raw.c: Likewise.
6588 * sunrpc/svc_simple.c: Likewise.
6589 * sumrpc/svcauth_des.c: Likewise.
6590
65912018-06-26 Florian Weimer <fweimer@redhat.com>
6592
6593 * libio/Makefile (tests-internal): Add tst-vtables,
6594 tst-vtables-interposed.
6595 * libio/tst-vtables.c: New file.
6596 * libio/tst-vtables-common.c: Likewise.
6597 * libio/tst-vtables-interposed.c: Likewise.
6598
65992018-06-26 Florian Weimer <fweimer@redhat.com>
6600
6601 * support/support_test_main.c (support_test_main): Only call
6602 setvbuf if not disables.
6603 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
6604 * support/test-driver.h (struct test_config): Add no_setvbuf member.
6605
66062018-06-26 Florian Weimer <fweimer@redhat.com>
6607
6608 [BZ #23313]
6609 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
6610
66112018-06-25 Florian Weimer <fweimer@redhat.com>
6612
6613 [BZ #18023]
6614 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6615 Use struct scratch_buffer instead of extend_alloca.
6616
66172018-06-25 Florian Weimer <fweimer@redhat.com>
6618
6619 [BZ #18023]
6620 * nss/getent.c (initgroups_keys): Use dynarray instead of
6621 extend_alloca.
6622
66232018-06-25 Florian Weimer <fweimer@redhat.com>
6624
6625 [BZ #18023]
6626 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
6627 Use struct scratch_buffer instead of extend_alloca.
6628
66292018-06-25 Florian Weimer <fweimer@redhat.com>
6630
6631 [BZ #18023]
6632 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
6633 back to malloc directly, without stack allocations.
6634
66352018-06-25 Florian Weimer <fweimer@redhat.com>
6636
6637 [BZ #18023]
6638 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
6639 of extend_alloca.
6640
66412018-06-25 Florian Weimer <fweimer@redhat.com>
6642
6643 [BZ #18023]
6644 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
6645 of extend_alloca.
6646 * nscd/hstcache.c (addhstbyX): Likewise.
6647 * nscd/pwdcache.c (addpwbyX): Likewise.
6648 * nscd/servicescache.c (addservbyX): Likewise.
6649
66502018-06-25 Florian Weimer <fweimer@redhat.com>
6651
6652 [BZ #18023]
6653 * nscd/connections.c (read_cmdline): New function.
6654 (restart): Use it. Update comment.
6655
66562018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
6657
6658 [BZ #23140]
6659 * localedata/locales/csb_PL (mon): Rename to...
6660 (alt_mon): This.
6661 (abmon): Rename to...
6662 (ab_alt_mon): This.
6663 (mon): Add with proper genitive forms, copy from Wikipedia.
6664 (abmon): Likewise.
6665
66662018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
6667
6668 [BZ #19485]
6669 * localedata/locales/csb_PL (mon): Fix typos:
6670 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
6671 (yesstr): Add, value is "jo".
6672 (nostr): Add, value is "nié".
6673
66742018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6675
6676 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
6677 all log1p and significand functions on m680x0.
6678 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
6679 of s_significand.c..
6680 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
6681 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
6682 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
6683 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
6684 s_log1p.c and include it..
6685
66862018-06-21 Vincent Chen <vincentc@andestech.com>
6687
6688 * elf/elf.h (R_NDS32_NONE): New define.
6689 (R_NDS32_32_RELA): Likewise.
6690 (R_NDS32_COPY): Likewise.
6691 (R_NDS32_GLOB_DAT): Likewise.
6692 (R_NDS32_JUMP_SLOT): Likewise.
6693 (R_NDS32_RELATIVE): Likewise.
6694 (R_NDS32_TLS_TPOFF): Likewise.
6695 (R_NDS32_TLS_DESC): Likewise.
6696
66972018-06-21 Mark Wielaard <mark@klomp.org>
6698
6699 * elf/elf.h (R_BPF_MAP_FD): Removed.
6700 (R_BPF_64_64, R_BPF_64_32): New.
6701
67022018-06-21 Florian Weimer <fweimer@redhat.com>
6703
6704 [BZ #23253]
6705 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
6706 Renamed from libc_feholdsetround_ctx.
6707 (default_libc_feresetround_ctx): Renamed from
6708 libc_feresetround_ctx.
6709 (default_libc_feholdsetround_noex_ctx): Renamed from
6710 libc_feholdsetround_noex_ctx.
6711 (default_libc_feresetround_noex_ctx): Renamed from
6712 libc_feresetround_noex_ctx.
6713 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
6714 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
6715 forwardning to the old implementations under the new names.
6716 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
6717 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
6718 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
6719 (libc_feresetround_ctx): Forward to default implements for i386
6720 and MATH_SET_BOTH_ROUNDING_MODES.
6721 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
6722 Add -DMATH_SET_BOTH_ROUNDING_MODES.
6723
67242018-06-20 Joseph Myers <joseph@codesourcery.com>
6725
6726 * string/tst-cmp.c: Include <libc-diag.h>.
6727 (strncmp_max): Disable -Wstringop-overflow= around call to
6728 strncmp.
6729 (strncasecmp_max): Disable -Wstringop-overflow= around call to
6730 strncasecmp.
6731
6732 * string/bug-strpbrk1.c: Include <libc-diag.h>.
6733 (main): Disable -Wunused-value around call to strpbrk.
6734 * string/bug-strspn1.c: Include <libc-diag.h>.
6735 (main): Disable -Wunused-value around call to strspn.
6736
67372018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6738 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6739
6740 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
6741 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
6742
67432018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6744
6745 * math/Makefile (libm-calls): Move s_significandF to...
6746 (gen-libm-calls): ... here.
6747 * math/s_significand_template.c: New file.
6748 * math/s_significand.c: Removed.
6749 * math/s_significandf.c: Removed.
6750 * math/s_significandl.c: Removed.
6751 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
6752 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
6753
6754 * math/e_exp2_template.c (declare_mgen_finite_alias,
6755 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
6756 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
6757 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
6758
67592018-06-20 Florian Weimer <fweimer@redhat.com>
6760
6761 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
6762
67632018-06-19 Joseph Myers <joseph@codesourcery.com>
6764
6765 [BZ #23280]
6766 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
6767 floating-point number to strtod functions rather than possibly
6768 negating result of those functions.
6769 * stdio-common/tst-scanf-round.c: New file.
6770 * stdio-common/Makefile (tests): Add tst-scanf-round.
6771 ($(objpfx)tst-scanf-round): Depend on $(libm).
6772
67732018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
6774
6775 * sysdeps/mach/hurd/localplt.data: Move to...
6776 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
6777 R_386_GLOB_DAT like on Linux i386.
6778
67792018-06-18 Joseph Myers <joseph@codesourcery.com>
6780
6781 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
6782 (SHM_STAT_ANY): New macro.
6783 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
6784 (SHM_STAT_ANY): Likewise.
6785 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
6786 (SHM_STAT_ANY): Likewise.
6787 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
6788 (SHM_STAT_ANY): Likewise.
6789 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
6790 (SHM_STAT_ANY): Likewise.
6791 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
6792 (SHM_STAT_ANY): Likewise.
6793 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
6794 (SHM_STAT_ANY): Likewise.
6795 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
6796 (SHM_STAT_ANY): Likewise.
6797 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
6798 (SHM_STAT_ANY): Likewise.
6799 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
6800 (SHM_STAT_ANY): Likewise.
6801 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
6802 (SHM_STAT_ANY): Likewise.
6803 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
6804 (SHM_STAT_ANY): Likewise.
6805
6806 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
6807 (SEM_STAT_ANY): New macro.
6808 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
6809 (SEM_STAT_ANY): Likewise.
6810 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
6811 (SEM_STAT_ANY): Likewise.
6812 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
6813 (SEM_STAT_ANY): Likewise.
6814 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
6815 (SEM_STAT_ANY): Likewise.
6816 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
6817 (SEM_STAT_ANY): Likewise.
6818 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
6819 (SEM_STAT_ANY): Likewise.
6820 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
6821 (SEM_STAT_ANY): Likewise.
6822 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
6823 (SEM_STAT_ANY): Likewise.
6824 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
6825 (SEM_STAT_ANY): Likewise.
6826
6827 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
6828 (MSG_STAT_ANY): New macro.
6829 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
6830 (MSG_STAT_ANY): Likewise.
6831 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
6832 (MSG_STAT_ANY): Likewise.
6833 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
6834 (MSG_STAT_ANY): Likewise.
6835 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
6836 (MSG_STAT_ANY): Likewise.
6837 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
6838 (MSG_STAT_ANY): Likewise.
6839 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
6840 (MSG_STAT_ANY): Likewise.
6841 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
6842 (MSG_STAT_ANY): Likewise.
6843 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
6844 (MSG_STAT_ANY): Likewise.
6845 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
6846 (MSG_STAT_ANY): Likewise.
6847
6848 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
6849 (MAP_TYPE): Change value to 0x2b.
6850
68512018-06-18 Florian Weimer <fweimer@redhat.com>
6852
6853 [BZ #15722]
6854 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
6855 socket with SOCK_CLOEXEC.
6856
68572018-06-18 Joseph Myers <joseph@codesourcery.com>
6858
6859 [BZ #23303]
6860 * sysdeps/powerpc/powerpc64/le/Makefile
6861 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
6862 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
6863 (gnulib-tests): Also add $(f128-loader-link) for
6864 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
6865
68662018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6867
6868 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
6869 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
6870 of sendfile.
6871 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
6872 (sendfile64): New strong alias.
6873 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
6874 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
6875 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
6876 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
6877 attribute.
6878 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
6879 ___pthread_get_cleanup_stack.
6880 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
6881 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
6882 * mach/shortcut.awk: Make syscall stubs include
6883 <mach-shortcuts-hidden.h> and add hidden definition.
6884 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
6885 (__mach_msg): Add hidden prototype.
6886 * mach/msg.c: Include <mach.h>.
6887 (__mach_msg): Add hidden definition.
6888 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
6889 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
6890 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
6891 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
6892 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
6893 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
6894 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
6895 prototype and definition.
6896 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
6897 hidden target for _hurd_self_sigstate.
6898
68992018-06-15 Joseph Myers <joseph@codesourcery.com>
6900
6901 [BZ #23007]
6902 * stdlib/tst-strtod-nan-sign-main.c: New file.
6903 * stdlib/tst-strtod-nan-sign.c: Likewise.
6904 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
6905 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
6906 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
6907 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
6908 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
6909
69102018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
6911
6912 [BZ #23007]
6913 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
6914 appropriate sign.
6915
69162018-06-14 Florian Weimer <fweimer@redhat.com>
6917
6918 [BZ #23290]
6919 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
6920 that the result stays within the ISO-8859-1 range.
6921 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
6922 characters are defined in IBM273.
6923
69242018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6925
6926 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
6927 __mach_task_self): Remove attribute_hidden.
6928
69292018-06-14 Joseph Myers <joseph@codesourcery.com>
6930
6931 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
6932 ignore -Wrestrict for one test.
6933
69342018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
6935 Szabolcs Nagy <szabolcs.nagy@arm.com>
6936
6937 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
6938
69392018-06-14 Florian Weimer <fweimer@redhat.com>
6940
6941 * scripts/update-abilist.sh: Accept empty list of files to patch.
6942
69432018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
6944
6945 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
6946 test-xfail-check-abi-libmachuser): Add.
6947 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
6948 __libc_read and __libc_write to __read and __write.
6949 * sysdeps/hurd/include/hurd/port.h: New file.
6950 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
6951 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
6952 __thread_switch, __evc_wait): Move declarations to...
6953 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
6954 attribute_hidden.
6955 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
6956 use PLT to call _hurd_self_sigstate.
6957
69582018-06-13 Joseph Myers <joseph@codesourcery.com>
6959
6960 [BZ #23279]
6961 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
6962 MAX_EXP as overflowing.
6963 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
6964 overflow flag.
6965 (round_str): Output also whether result overflows in each rounding
6966 mode.
6967 * stdlib/tst-strtod-round-data: Add more tests.
6968 * stdlib/tst-strtod-round-data.h: Regenerated.
6969 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
6970 (TEST): Handle extra arguments for overflow flags.
6971 (struct test_overflow): New type.
6972 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
6973 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
6974 (test_in_one_mode): Take argument with overflow information.
6975 (do_test): Update calls to test_in_one_mode.
6976
69772018-06-12 Carlos O'Donell <carlos@redhat.com>
6978
6979 * elf/dl-load (_dl_dst_substitute): Correct comment.
6980 (_dl_dst_count): Likewise.
6981
6982 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
6983 lll_futex_timed_wait.
6984
69852018-06-12 Joseph Myers <joseph@codesourcery.com>
6986
6987 [BZ #23277]
6988 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
6989 attribute.
6990 * math/test-nan-const.c: New file.
6991 * math/Makefile (tests): Add test-nan-const.
6992 (CFLAGS-test-nan-const.c): New variable.
6993
69942018-06-12 H.J. Lu <hongjiu.lu@intel.com>
6995
6996 * benchtests/scripts/compare_strings.py (process_results): Add
6997 funcs argument. Compare only functions which are selected.
6998 (main): Check if base function is among selected functions.
6999 Pass selected functions to process_results.
7000 (__main__): Add -f/--functions argument.
7001
70022018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
7003 Hongbo Zhang <hongbo.zhang@linaro.org>
7004
7005 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
7006 __memcpy_falkor for phecda core.
7007 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
7008 __memmove_falkor for phecda core.
7009 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
7010 __memset_falkor for phecda core.
7011 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
7012 for phecda core.
7013 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
7014 macro to identify phecda core.
7015
70162018-06-12 Carlos O'Donell <carlos@redhat.com>
7017 Andreas Schwab <schwab@suse.de>
7018 Dmitry V. Levin <ldv@altlinux.org>
7019 Florian Weimer <fweimer@redhat.com>
7020
7021 [BZ #23102]
7022 [BZ #21942]
7023 [BZ #18018]
7024 [BZ #23259]
7025 CVE-2011-0536
7026 * elf/dl-dst.h: Remove DL_DST_COUNT.
7027 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
7028 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
7029 (is_dst): Comment. Support ELF gABI.
7030 (_dl_dst_count): Comment. Simplify and count DSTs.
7031 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
7032 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
7033 locals.
7034
70352018-06-12 Zack Weinberg <zackw@panix.com>
7036
7037 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
7038 * sysdeps/unix/sysv/linux/dl-sysdep.c
7039 Include not-cancel.h. Use __close_nocancel instead of __close,
7040 __open64_nocancel instead of __open, __read_nocancel instead of
7041 __libc_read, and __write_nocancel instead of __libc_write.
7042
7043 * csu/check_fds.c (check_one_fd)
7044 * sysdeps/posix/fdopendir.c (__fdopendir)
7045 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
7046 instead of __fcntl and/or __libc_fcntl.
7047
7048 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
7049 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
7050 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
7051 Use __open64_nocancel instead of __open_nocancel.
7052
7053 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
7054 hidden_proto declarations to the end and issue them if either
7055 IS_IN(libc) or IS_IN(rtld).
7056 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7057 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
7058 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
7059 read_nocancel, waitpid_nocancel, write_nocancel.
7060
7061 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
7062 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
7063 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
7064
7065 * nptl/pt-fcntl.c: New file.
7066 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
7067 (libpthread-routines): Add pt-fcntl.
7068 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
7069 (__libc_fcntl): Remove attribute_hidden.
7070 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
7071 __fcntl_nocancel_adjusted, not fcntl_common.
7072 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
7073 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
7074 to fcntl_nocancel.c.
7075 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
7076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
7077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
7078 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
7079
7080 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
7081 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
7082 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
7083 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
7084 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
7085 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
7086 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
7087 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
7088 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
7089 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
7090 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
7091 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
7092 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
7093 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
7094 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
7095 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
7096 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
7097 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
7098 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
7099 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
7100
7101 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
7102 libpthread-routines.
7103 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
7104 defines nothing.
7105
7106 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
7107 __libc_read, and __write instead of __libc_write. Define
7108 __open64 in addition to __open.
7109
71102018-06-12 H.J. Lu <hongjiu.lu@intel.com>
7111
7112 [BZ #23250]
7113 [BZ #10686]
7114 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
7115 to _private_tm[3] and add __glibc_reserved2.
7116 Add _Static_assert of offset of __private_ss == 0x30.
7117 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
7118 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
7119
71202018-06-12 Florian Weimer <fweimer@redhat.com>
7121
7122 x86: Make strncmp usable from rtld.
7123 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
7124 __strncmp_ia32 if in libc (and not in rtld).
7125 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
7126 strncmp if not in libc (and not to __strncmp_sse2).
7127
71282018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
7129
7130 [BZ #23140]
7131 * localedata/locales/gd_GB (mon): Rename to...
7132 (alt_mon): This.
7133 (mon): Import from CLDR (genitive case).
7134 * localedata/locales/hsb_DE (mon): Rename to...
7135 (alt_mon): This.
7136 (mon): Import from CLDR (genitive case).
7137 * localedata/locales/wa_BE (mon): Rename to...
7138 (alt_mon): This.
7139 (mon): Add, fill with the proper genitive forms, but CLDR data
7140 is incomplete; completed according to the comments in this file.
7141 (d_t_fmt): Do not use "di" before the month name, no longer needed.
7142
7143 * localedata/locales/wa_BE (country_name): Reword
7144 "Beljike" -> "Beldjike".
7145
71462018-06-11 Joseph Myers <joseph@codesourcery.com>
7147
7148 [BZ #23272]
7149 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
7150 cases of non-finite arguments.
7151 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7152
71532018-06-10 John David Anglin <danglin@gcc.gnu.org>
7154
7155 [BZ #23174]
7156 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
7157
71582018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7159
7160 [BZ #23264]
7161 * include/unistd.h (__execvpex): New prototype.
7162 * posix/Makefile (tests): Add tst-spawn4.
7163 (tests-internal): Add tst-spawn4-compat.
7164 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
7165 * posix/tst-spawn4-compat.c: New file.
7166 * posix/tst-spawn4.c: Likewise.
7167 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
7168 binaries as shell scripts.
7169 * sysdeps/posix/spawni.c (__spawni): Likewise.
7170
71712018-06-08 H.J. Lu <hongjiu.lu@intel.com>
7172
7173 [BZ #23145]
7174 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
7175 ($(all-built-dso:=.dynsym): New target.
7176 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
7177 ($(objpfx)check-initfini.out): New target.
7178 (generated): Add check-initfini.out.
7179 * scripts/check-initfini.awk: New file.
7180 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
7181 (_fini): Likewise.
7182 * sysdeps/alpha/crti.S (_init): Mark as hidden.
7183 (_fini): Likewise.
7184 * sysdeps/arm/crti.S (_init): Mark as hidden.
7185 (_fini): Likewise.
7186 * sysdeps/hppa/crti.S (_init): Mark as hidden.
7187 (_fini): Likewise.
7188 * sysdeps/i386/crti.S (_init): Mark as hidden.
7189 (_fini): Likewise.
7190 * sysdeps/ia64/crti.S (_init): Mark as hidden.
7191 (_fini): Likewise.
7192 * sysdeps/m68k/crti.S (_init): Mark as hidden.
7193 (_fini): Likewise.
7194 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
7195 (_fini): Likewise.
7196 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
7197 (_fini): Likewise.
7198 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
7199 (_fini): Likewise.
7200 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
7201 (_fini): Likewise.
7202 * sysdeps/nios2/crti.S (_init): Mark as hidden.
7203 (_fini): Likewise.
7204 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
7205 (_fini): Likewise.
7206 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
7207 (_fini): Likewise.
7208 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
7209 (_fini): Likewise.
7210 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
7211 (_fini): Likewise.
7212 * sysdeps/sh/crti.S (_init): Mark as hidden.
7213 (_fini): Likewise.
7214 * sysdeps/sparc/crti.S (_init): Mark as hidden.
7215 (_fini): Likewise.
7216 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
7217 (_fini): Likewise.
7218
72192018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7220
7221 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
7222 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
7223 and TF redirection to KFtype and KF only when the default
7224 long double type is not the IEEE 128-bit floating point type.
7225
72262018-06-05 Joseph Myers <joseph@codesourcery.com>
7227
7228 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
7229 macro.
7230 (HWCAP_USCAT): Likewise.
7231 (HWCAP_ILRCPC): Likewise.
7232 (HWCAP_FLAGM): Likewise.
7233 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7234 Increase to 28.
7235 (_dl_aarch64_cap_flags): Add new flag names.
7236
7237 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
7238 (MAP_FIXED_NOREPLACE): New macro.
7239 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
7240 (MAP_FIXED_NOREPLACE): Likewise.
7241 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
7242 (MAP_FIXED_NOREPLACE): Likewise.
7243 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7244 (MAP_FIXED_NOREPLACE): Likewise.
7245 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
7246 (MAP_FIXED_NOREPLACE): Likewise.
7247 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
7248 (MAP_FIXED_NOREPLACE): Likewise.
7249 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
7250 (MAP_FIXED_NOREPLACE): Likewise.
7251 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
7252 (MAP_FIXED_NOREPLACE): Likewise.
7253 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
7254 (MAP_FIXED_NOREPLACE): Likewise.
7255 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
7256 (MAP_FIXED_NOREPLACE): Likewise.
7257 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
7258 (MAP_FIXED_NOREPLACE): Likewise.
7259 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
7260 (MAP_FIXED_NOREPLACE): Likewise.
7261 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
7262 (MAP_FIXED_NOREPLACE): Likewise.
7263 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
7264 (MAP_FIXED_NOREPLACE): Likewise.
7265 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
7266 (MAP_FIXED_NOREPLACE): Likewise.
7267
7268 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7269 version to 4.17.
7270
72712018-06-04 Joseph Myers <joseph@codesourcery.com>
7272
7273 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7274 version to 4.17
7275
72762018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7277
7278 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
7279 int.
7280 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
7281
72822018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7283
7284 * benchtests/scripts/compare_string.py: (process_results) Catch
7285 exception in non-existent base_func and catch exception in
7286 non-existent attribute.
7287 (parse_file) Catch exception if input file does not exist.
7288
72892018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7290
7291 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
7292 options to avoid diff calculation and omit header, respectively.
7293 (main): process --no-diff and --no-header
7294
72952018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7296 H.J. Lu <hongjiu.lu@intel.com>
7297
7298 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7299 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
7300 wcsncmp-sse2.
7301 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7302 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
7303 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
7304 and __wcsncmp_sse2.
7305 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
7306 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7307 AVX unaligned load is fast and vzeroupper is preferred.
7308 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
7309 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
7310 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
7311 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
7312 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
7313 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
7314 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
7315 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
7316 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
7317 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
7318 is undefined.
7319
73202018-06-01 Florian Weimer <fweimer@redhat.com>
7321
7322 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
7323 configuring with --disable-multi-arch, building with
7324 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
7325 Haswell-era CPU.
7326
73272018-06-01 Florian Weimer <fweimer@redhat.com>
7328
7329 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
7330 results from building with “-march=x86-64 -mtune=generic
7331 -mfpmath=sse” and running on a Haswell-era CPU.
7332
73332018-06-01 Joseph Myers <joseph@codesourcery.com>
7334
7335 [BZ #18473]
7336 * soft-fp/sqrttf2.c: Remove file.
7337 * soft-fp/sqrtdf2.c: Move to ....
7338 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
7339 <shlib-compat.h>.
7340 (__sqrtdf2): Make conditional on
7341 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
7342 symbol.
7343 * soft-fp/sqrtsf2.c: Move to ....
7344 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
7345 <shlib-compat.h>.
7346 (__sqrtsf2): Make conditional on
7347 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
7348 symbol.
7349 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
7350 (gcc-double-routines): Remove sqrtdf2.
7351 (gcc-quad-routines): Remove sqrttf2.
7352 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
7353 Do not filter out sqrtsf2 and sqrtdf2.
7354 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
7355 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
7356
73572018-06-01 Florian Weimer <fweimer@redhat.com>
7358
7359 * sysdeps/generic/libcidn.abilist: Remove file.
7360
73612018-06-01 Florian Weimer <fweimer@redhat.com>
7362
7363 [BZ #23236]
7364 * libio/strfile.h (struct _IO_str_fields): Rename members to
7365 discourage their use and add comment.
7366 (_IO_STR_DYNAMIC): Remove unused macro.
7367 * libio/strops.c (_IO_str_init_static_internal): Do not use
7368 callback pointers. Call malloc and free.
7369 (_IO_str_overflow): Do not use callback pointers. Call malloc
7370 and free.
7371 (enlarge_userbuf): Likewise.
7372 (_IO_str_finish): Call free.
7373 * libio/wstrops.c (_IO_wstr_init_static): Initialize
7374 _allocate_buffer_unused.
7375 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
7376 and free.
7377 (enlarge_userbuf): Likewise.
7378 (_IO_wstr_finish): Call free.
7379 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
7380 _allocate_buffer_unused, _free_buffer_unused.
7381 * libio/memstream.c (__open_memstream): Likewise.
7382 * libio/vasprintf.c (_IO_vasprintf): Likewise.
7383 * libio/wmemstream.c (open_wmemstream): Likewise.
7384
73852018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
7386
7387 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
7388 AMD Ryzen 7 1800X.
7389
73902018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7391
7392 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
7393 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
7394 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
7395 New file.
7396 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
7397 Likewise.
7398 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
7399
74002018-05-29 Florian Weimer <fweimer@redhat.com>
7401
7402 * support/Makefile (libsupport-routines): Add
7403 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
7404 xpthread_barrierattr_setpshared.
7405 * support/xpthread_barrierattr_destroy.c: New file.
7406 * support/xpthread_barrierattr_init.c: Likewise.
7407 * support/xpthread_barrierattr_setpshared.c: Likewise.
7408
74092018-05-29 H.J. Lu <hongjiu.lu@intel.com>
7410
7411 [BZ #23206]
7412 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
7413 _r_debug and update DT_DEBUG for debugger.
7414
74152018-05-29 Florian Weimer <fweimer@redhat.com>
7416
7417 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
7418 (tst-strtod5i.out): Likewise.
7419
74202018-05-25 Joseph Myers <joseph@codesourcery.com>
7421
7422 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
7423 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
7424 (sparc64-quad-routines): New variable. Moved from ....
7425 [$(subdir) = soft-fp] (sysdep_routines): Add
7426 $(sparc64-quad-routines). Moved from ....
7427 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
7428 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
7429 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
7430 moved from ....
7431 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
7432 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
7433 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
7434 * sysdeps/sparc/sparc64/qp_add.c: ... here.
7435 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
7436 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
7437 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
7438 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
7439 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
7440 * sysdeps/sparc/sparc64/qp_div.c: ... here.
7441 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
7442 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
7443 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
7444 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
7445 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
7446 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
7447 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
7448 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
7449 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
7450 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
7451 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
7452 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
7453 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
7454 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
7455 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
7456 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
7457 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
7458 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
7459 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
7460 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
7461 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
7462 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
7463 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
7464 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
7465 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
7466 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
7467 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
7468 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
7469 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
7470 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
7471 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
7472 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
7473 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
7474 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
7475 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
7476 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
7477 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
7478 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
7479 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
7480 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
7481 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
7482 * sysdeps/sparc/sparc64/qp_util.c: ... here.
7483 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
7484 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
7485 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
7486 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
7487 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
7488 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
7489
7490 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
7491 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
7492 (sparc32-quad-routines): New variable. Moved from ....
7493 [$(subdir) = soft-fp] (sysdep_routines): Add
7494 $(sparc32-quad-routines). Moved from ....
7495 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
7496 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
7497 moved from ....
7498 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
7499 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
7500 * sysdeps/sparc/sparc32/q_add.c: ... here.
7501 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
7502 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
7503 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
7504 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
7505 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
7506 * sysdeps/sparc/sparc32/q_div.c: ... here.
7507 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
7508 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
7509 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
7510 * sysdeps/sparc/sparc32/q_feq.c: ... here.
7511 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
7512 * sysdeps/sparc/sparc32/q_fge.c: ... here.
7513 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
7514 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
7515 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
7516 * sysdeps/sparc/sparc32/q_fle.c: ... here.
7517 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
7518 * sysdeps/sparc/sparc32/q_flt.c: ... here.
7519 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
7520 * sysdeps/sparc/sparc32/q_fne.c: ... here.
7521 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
7522 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
7523 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
7524 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
7525 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
7526 * sysdeps/sparc/sparc32/q_mul.c: ... here.
7527 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
7528 * sysdeps/sparc/sparc32/q_neg.c: ... here.
7529 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
7530 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
7531 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
7532 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
7533 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
7534 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
7535 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
7536 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
7537 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
7538 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
7539 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
7540 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
7541 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
7542 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
7543 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
7544 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
7545 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
7546 * sysdeps/sparc/sparc32/q_sub.c: ... here.
7547 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
7548 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
7549 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
7550 * sysdeps/sparc/sparc32/q_util.c: ... here.
7551 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
7552 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
7553 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
7554 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
7555
75562018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7557 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7558
7559 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
7560 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
7561 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
7562 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
7563
75642018-05-24 Joseph Myers <joseph@codesourcery.com>
7565
7566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
7567 powerpc/soft-fp.
7568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
7569 Likewise.
7570 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
7571 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
7572
75732018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7574
7575 [BZ #23171]
7576 * math/math.h [C++] (iseqsig): Fix parameter type for the long
7577 double version.
7578
75792018-05-23 Joseph Myers <joseph@codesourcery.com>
7580
7581 * sysdeps/sh/Implies: Remove sh/soft-fp.
7582 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
7583 * sysdeps/sh/sfp-machine.h: ... here.
7584
75852018-05-23 H.J. Lu <hongjiu.lu@intel.com>
7586
7587 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7588 (__mempcpy_erms): Skip zero length.
7589 (__memmove_erms): Likewise.
7590 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7591 (__memset_erms): Likewise.
7592
75932018-05-23 Joseph Myers <joseph@codesourcery.com>
7594
7595 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
7596 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
7597 Add functions moved from ....
7598 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
7599 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
7600 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
7601 from ....
7602 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
7603 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
7604 * sysdeps/alpha/e_sqrtl.c: ... here.
7605 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
7606 * sysdeps/alpha/local-soft-fp.h: ... here.
7607 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
7608 * sysdeps/alpha/ots_add.c: ... here.
7609 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
7610 * sysdeps/alpha/ots_cmp.c: ... here.
7611 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
7612 * sysdeps/alpha/ots_cmpe.c: ... here.
7613 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
7614 * sysdeps/alpha/ots_cvtqux.c: ... here.
7615 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
7616 * sysdeps/alpha/ots_cvtqx.c: ... here.
7617 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
7618 * sysdeps/alpha/ots_cvttx.c: ... here.
7619 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
7620 * sysdeps/alpha/ots_cvtxq.c: ... here.
7621 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
7622 * sysdeps/alpha/ots_cvtxt.c: ... here.
7623 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
7624 * sysdeps/alpha/ots_div.c: ... here.
7625 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
7626 * sysdeps/alpha/ots_mul.c: ... here.
7627 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
7628 * sysdeps/alpha/ots_nintxq.c: ... here.
7629 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
7630 * sysdeps/alpha/ots_sub.c: ... here.
7631 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
7632 * sysdeps/alpha/sfp-machine.h: ... here.
7633
76342018-05-23 Florian Weimer <fweimer@redhat.com>
7635
7636 [BZ #19728]
7637 [BZ #19729]
7638 [BZ #22247]
7639 CVE-2016-6261
7640 CVE-2016-6263
7641 CVE-2017-14062
7642 Switch to extern IDNA implementation (libidn2).
7643 * libidn: Remove subdirectory.
7644 * LICENSES: Do not mention licensing conditions for the removed
7645 libidn code.
7646 * config.h.in (HAVE_LIBIDN): Remove.
7647 * include/dlfcn.h (__libc_dlopen): Update comment.
7648 * include/idna.h: Remove file.
7649 * inet/Makefile (routines): Add idna.
7650 (tests-static, tests-internal): Add tst-idna_name_classify.
7651 (LOCALES): Generate locales for tests.
7652 (tst-idna_name_classify.out): Depend on generated locales.
7653 * inet/idna_name_classify.c: New file.
7654 * inet/tst-idna_name_classify.c: Likewise.
7655 * inet/net-internal.h (__idna_to_dns_encoding)
7656 (__idna_from_dns_encoding): Declare.
7657 * inet/net-internal.h (enum idna_name_classification): Define.
7658 (__idna_name_classify): Declare.
7659 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
7660 __idna_from_dns_encoding.
7661 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
7662 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
7663 name as a fallback in case of encoding errors.
7664 (getnameinfo): Use DEPRECATED_NI_IDN.
7665 * inet/idna.c: New file.
7666 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
7667 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
7668 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
7669 (modules-names): Add tst-no-libidn2.
7670 (extra-test-objs): Add tst-no-libidn2.os.
7671 (LDFLAGS-tst-no-libidn2.so): Set soname.
7672 (LOCALES): Set, and generate locales.
7673 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
7674 (tst-resolv-ai_idn-latin1): Likewise.
7675 (tst-resolv-ai_idn-nolibidn2): Likewise.
7676 (tst-resolv-ai_idn.out): Depend on locales.
7677 (tst-resolv-ai_idn-latin1.out): Depend on locales.
7678 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
7679 tst-no-libidn2.so.
7680 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
7681 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
7682 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
7683 * resolv/tst-resolv-ai_idn.c: New file.
7684 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
7685 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
7686 * resolv/tst-no-libidn2.c: Likewise.
7687 * support/support_format_addrinfo.c (format_ai_flags): Do not
7688 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
7689 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
7690 (gaih_inet): Call __idna_to_dns_encoding and
7691 __idna_from_dns_encoding, and use the original (punycode) name if
7692 __idna_from_dns_encoding fails due to an encoding error.
7693 (getaddrinfo): Use DEPRECATED_AI_IDN.
7694 * sysdeps/unix/inet/Subdirs (libidn): Remove.
7695 * sysdeps/unix/inet/configure: Remove file.
7696 * sysdeps/unix/inet/configure.ac: Likewise.
7697
76982018-05-23 Florian Weimer <fweimer@redhat.com>
7699
7700 Implement allocate_once.
7701 * include/allocate_once.h: New file.
7702 * misc/allocate_once.c: Likewise.
7703 * misc/tst-allocate_once.c: Likewise.
7704 * misc/Makefile (routines): Add allocate_once.
7705 (tests-internal): Add tst-allocate_once.
7706 (generated): Add tst-allocate_once.mtrace,
7707 tst-allocate_once-mem.out.
7708 (tests-special): Add tst-allocate_once-mem.out.
7709 (tst-allocate_once-ENV): Set MALLOC_TRACE.
7710 (tst-allocate_once-mem.out): Call mtrace.
7711 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
7712
77132018-05-23 H.J. Lu <hongjiu.lu@intel.com>
7714
7715 [BZ #23196]
7716 * string/test-memcpy.c (do_test1): New function.
7717 (test_main): Call it.
7718
77192018-05-23 Andreas Schwab <schwab@suse.de>
7720
7721 [BZ #23196]
7722 CVE-2018-11237
7723 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
7724 (L(preloop_large)): Save initial destination pointer in %r11 and
7725 use it instead of %rax after the loop.
7726 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
7727
77282018-05-22 Joseph Myers <joseph@codesourcery.com>
7729
7730 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
7731 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
7732 -I../soft-fp. Moved from ....
7733 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
7734 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
7735 * sysdeps/aarch64/e_sqrtl.c: ... here.
7736 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
7737 * sysdeps/aarch64/sfp-machine.h: ... here.
7738
7739 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
7740 -Wmaybe-uninitialized around access to fq[0].
7741 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
7742 Likewise.
7743
7744 [BZ #18471]
7745 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
7746 aliases for non-libc case of versioned symbols.
7747 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
7748 (llseek): Define as compat symbol if
7749 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
7750 with link warning.
7751 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
7752 Make into a compat symbol, disabled for minimum symbol version
7753 GLIBC_2.28 and later.
7754 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
7755
77562018-05-22 Florian Weimer <fweimer@redhat.com>
7757
7758 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
7759 not add -mpreferred-stack-boundary=4.
7760 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
7761 (stack-align-test-flags): Likewise.
7762 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
7763 Likewise.
7764 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
7765 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
7766 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
7767 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
7768 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
7769 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
7770 (CFLAGS-tst-align2.c): Likewise.
7771
77722018-05-21 H.J. Lu <hongjiu.lu@intel.com>
7773
7774 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
7775 (index_arch_Prefer_FSRM): Likewise.
7776 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
7777 Also check Prefer_FSRM.
7778 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
7779 Also return OPTIMIZE (erms) for Prefer_FSRM.
7780
77812018-05-21 H.J. Lu <hongjiu.lu@intel.com>
7782
7783 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
7784 (index_cpu_FSRM): Likewise.
7785 (reg_FSRM): Likewise.
7786
77872018-05-18 Joseph Myers <joseph@codesourcery.com>
7788
7789 * math/gen-tgmath-tests.py: Import sys.
7790 (Tests.__init__): Initialize macros_seen.
7791 (Tests.add_tests): Add macro to macros_seen. Only generate tests
7792 if requested to do so for this macro.
7793 (Tests.add_all_tests): Take argument for macro for which to
7794 generate tests.
7795 (Tests.check_macro_list): New function.
7796 (main): Handle check-list argument and argument specifying macro
7797 for which to generate tests.
7798 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
7799 [PYTHON] (tgmath3-macro-tests): Likewise.
7800 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
7801 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
7802 not test-tgmath3.c.
7803 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
7804 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
7805 to CFLAGS.
7806 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
7807 [PYTHON] ($(foreach
7808 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
7809 rule.
7810 [PYTHON] (tests-special): Add
7811 $(objpfx)test-tgmath3-macro-list.out.
7812 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
7813
7814 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
7815 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
7816 later.
7817
7818 [BZ #22639]
7819 * time/tzset.c (SECSPERDAY): Cast to time_t.
7820 * time/tst-y2039.c: New file.
7821 * time/Makefile (tests): Add tst-y2039.
7822
78232018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7824
7825 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7826 (PREFETCH_ONE_SET): Remove duplicate line.
7827
78282018-05-17 Florian Weimer <fweimer@redhat.com>
7829
7830 * sysdeps/generic/math-type-macros-double.h: Include
7831 <math-nan-payload-double.h> after <libm-alias-double.h>.
7832 * sysdeps/generic/math-type-macros-float.h: Include
7833 <math-nan-payload-float.h> after <libm-alias-float.h>.
7834 * sysdeps/generic/math-type-macros-float128.h: Include
7835 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
7836 * sysdeps/generic/math-type-macros-ldouble.h: Include
7837 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
7838
78392018-05-17 Andreas Schwab <schwab@suse.de>
7840
7841 * resolv/res_send.c (__res_context_send): Don't set errno when
7842 returing error after malloc failure.
7843
78442018-05-17 H.J. Lu <hongjiu.lu@intel.com>
7845
7846 * nptl/allocatestack.c (allocate_stack): Remove the
7847 !__ASSUME_PRIVATE_FUTEX paths.
7848 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
7849 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
7850 Likewise.
7851 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
7852 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7853 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7854 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7855 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
7856 !__ASSUME_PRIVATE_FUTEX path.
7857 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
7858 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
7859 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
7860 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
7861 !__ASSUME_PRIVATE_FUTEX macros.
7862 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
7863 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
7864 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
7865 * sysdeps/unix/sysv/linux/kernel-features.h
7866 (__ASSUME_PRIVATE_FUTEX): Removed.
7867
78682018-05-17 Joseph Myers <joseph@codesourcery.com>
7869
7870 * math/Makefile (libm-narrow-fns): Add div.
7871 (libm-test-funcs-narrow): Likewise.
7872 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
7873 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
7874 * math/gen-auto-libm-tests.c (test_functions): Add div.
7875 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
7876 (NARROW_DIV_ROUND_TO_ODD): Likewise.
7877 (NARROW_DIV_TRIVIAL): Likewise.
7878 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
7879 macro.
7880 (__ddivl): Likewise.
7881 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
7882 ddiv.
7883 (CFLAGS-nldbl-ddiv.c): New variable.
7884 (CFLAGS-nldbl-fdiv.c): Likewise.
7885 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
7886 __nldbl_ddivl.
7887 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
7888 prototype.
7889 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
7890 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
7891 * math/auto-libm-test-in: Add tests of div.
7892 * math/auto-libm-test-out-narrow-div: New generated file.
7893 * math/libm-test-narrow-div.inc: New file.
7894 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
7895 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
7896 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
7897 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
7898 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
7899 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
7900 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
7901 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
7902 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
7903 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
7904 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
7905 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
7906 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
7907 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
7908 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
7909 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7910 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
7911 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7912 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7913 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
7914 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7915 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7916 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7917 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7918 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7919 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7920 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7921 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7922 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7923 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7924 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7925 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7926 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
7928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7930 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
7931 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7932 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7933 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7934 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7935 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7936 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7937 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7938
79392018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7940
7941 [BZ #23178]
7942 * nscd/nscd-client.h (sendfileall): Remove prototype.
7943 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
7944 (handle_request): Use writeall instead of sendfileall.
7945 * nscd/aicache.c (addhstaiX): Likewise.
7946 * nscd/grpcache.c (cache_addgr): Likewise.
7947 * nscd/hstcache.c (cache_addhst): Likewise.
7948 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7949 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
7950 * nscd/pwdcache.c (cache_addpw): Likewise.
7951 * nscd/servicescache.c (cache_addserv): Likewise.
7952 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
7953 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
7954 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
7955 Remove define.
7956
79572018-05-16 H.J. Lu <hongjiu.lu@intel.com>
7958
7959 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
7960 Include <string/strncat.c>.
7961 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
7962 alias.
7963 (__GI___strncat): New hidden alias.
7964
79652018-05-16 Joseph Myers <joseph@codesourcery.com>
7966
7967 * sysdeps/mips/mips32/libm-test-ulps: Update.
7968 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7969
79702018-05-16 Florian Weimer <fweimer@redhat.com>
7971
7972 * support/Makefile (libsupport-routines): Add support_quote_blob,
7973 support_test_compare_blob.
7974 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
7975 * support/check.h (TEST_COMPARE_BLOB): Define.
7976 (support_test_compare_blob): Declare.
7977 * support/support.h (support_quote_blob): Declare.
7978 * support/support_quote_blob.c: New file.
7979 * support/support_test_compare_blob.c: Likewise.
7980 * support/tst-support_quote_blob.c: Likewise.
7981 * support/tst-test_compare_blob.c: Likewise.
7982
79832018-05-16 Florian Weimer <fweimer@redhat.com>
7984
7985 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
7986 of <strtod_nan_double.h>.
7987 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
7988 instead of SET_MANTISSA.
7989 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
7990 of include <strtod_nan_float.h>.
7991 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
7992 instead of <strtod_nan_ldouble.h>.
7993 * stdlib/strtod_nan_double.h: Move to ...
7994 * sysdeps/generic/math-nan-payload-double.h: ... here.
7995 (FLOAT): Remove definition.
7996 (SET_MANTISSA): Rename to ...
7997 (SET_NAN_PAYLOAD): ... this.
7998 * stdlib/strtod_nan_float.h: Move to ...
7999 * sysdeps/generic/math-nan-payload-float.h: ... here.
8000 (FLOAT): Remove definition.
8001 (SET_MANTISSA): Rename to ...
8002 (SET_NAN_PAYLOAD): ... this.
8003 * sysdeps/generic/math-type-macros-double.h: Include
8004 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
8005 instead of <math-svid-compat.h>.
8006 * sysdeps/generic/math-type-macros-float.h: Include
8007 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
8008 instead of <math-svid-compat.h>.
8009 * sysdeps/generic/math-type-macros-float128.h: Include
8010 <math-nan-payload-float128.h>.
8011 * sysdeps/generic/math-type-macros-ldouble.h: Include
8012 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
8013 instead of <math-svid-compat.h>.
8014 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
8015 check for definition.
8016 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
8017 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
8018 Include <ieee754_float128.h>.
8019 (FLOAT): Remove definition.
8020 (SET_MANTISSA): Rename to ...
8021 (SET_NAN_PAYLOAD): ... this.
8022 * sysdeps/ieee754/float128/strtof128_nan.c: Include
8023 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
8024 Do not include <float128_private.h>.
8025 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
8026 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
8027 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
8028 (FLOAT): Remove definition.
8029 (SET_MANTISSA): Rename to ...
8030 (SET_NAN_PAYLOAD): ... this.
8031 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
8032 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
8033 (FLOAT): Remove definition.
8034 (SET_MANTISSA): Rename to ...
8035 (SET_NAN_PAYLOAD): ... this.
8036 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
8037 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
8038 (FLOAT): Remove definition.
8039 (SET_MANTISSA): Rename to ...
8040 (SET_NAN_PAYLOAD): ... this.
8041 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
8042 of "../stdlib/strtod_nan_double.h".
8043 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
8044 of "../stdlib/strtod_nan_float.h".
8045 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
8046 instead of "../stdlib/strtod_nan_ldouble.h".
8047 * manual/arith.texi (Parsing of Floats): Adjust comment.
8048
80492018-05-16 Joseph Myers <joseph@codesourcery.com>
8050
8051 * math/Makefile (libm-narrow-fns): Add mul.
8052 (libm-test-funcs-narrow): Likewise.
8053 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
8054 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
8055 * math/gen-auto-libm-tests.c (test_functions): Add mul.
8056 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
8057 (NARROW_MUL_ROUND_TO_ODD): Likewise.
8058 (NARROW_MUL_TRIVIAL): Likewise.
8059 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
8060 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
8061 macro.
8062 (__dmull): Likewise.
8063 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
8064 dmul.
8065 (CFLAGS-nldbl-dmul.c): New variable.
8066 (CFLAGS-nldbl-fmul.c): Likewise.
8067 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8068 __nldbl_dmull.
8069 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
8070 prototype.
8071 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
8072 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
8073 * math/auto-libm-test-in: Add tests of mul.
8074 * math/auto-libm-test-out-narrow-mul: New generated file.
8075 * math/libm-test-narrow-mul.inc: New file.
8076 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
8077 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
8078 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
8079 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
8080 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
8081 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
8082 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
8083 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
8084 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
8085 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
8086 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
8087 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
8088 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
8089 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
8090 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
8091 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
8092 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
8093 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
8094 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8095 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8096 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8097 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8098 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8099 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8100 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8101 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8102 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8103 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8104 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8105 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8106 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8107 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8112 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8113 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8114 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8115 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8116 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8117 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8118 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8119 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8120
81212018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8122
8123 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
8124 with *%eax in call.
8125
81262018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8127
8128 * sysdeps/i386/ldsodefs.h: Removed.
8129 * sysdeps/x86_64/ldsodefs.h: Moved to ...
8130 * sysdeps/x86/ldsodefs.h: This.
8131 (La_i86_regs): New.
8132 (La_i86_retval): Likewise.
8133 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
8134 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
8135
81362018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8137
8138 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
8139 unnecessary testl.
8140
81412018-05-13 Alan Modra <amodra@gmail.com>
8142
8143 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
8144 R_PARISC_TLS_DTPOFF32 reloc addend.
8145
81462018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8147
8148 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
8149 * math/math.h: Restrict the prototype definition for the functions
8150 issignaling(_Float128) and iszero(_Float128); and template
8151 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
8152 __HAVE_FLOAT128_UNLIKE_LDBL.
8153 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
8154 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
8155 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
8156 __f128() constants; define the type _Float128 as long double;
8157 and reuse long double in __CFLOAT128.
8158
81592018-05-11 Joseph Myers <joseph@codesourcery.com>
8160
8161 * sysdeps/generic/math_private.h: Do not include
8162 <math-barriers.h>.
8163 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
8164 <math_private.h>.
8165 * math/fromfp.h: Include <math-barriers.h>.
8166 * math/math-narrow.h: Likewise.
8167 * math/s_nextafter.c: Likewise.
8168 * math/s_nexttowardf.c: Likewise.
8169 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8170 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8171 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8172 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8173 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8174 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8175 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8176 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8177 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8178 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8179 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8180 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8181 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8182 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8183 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8184 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8185 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8186 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8187 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8188 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8189 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8190 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8191 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8192 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8193 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8194 * sysdeps/ieee754/k_standardl.c: Likewise.
8195 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8196 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8197 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8198 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8199 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8200 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8201 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8202 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8203 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8204 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8205 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8206 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8207 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8208 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8209 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8210 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8211 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8212 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8213 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8214 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8215 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
8216 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
8217
82182018-05-11 Florian Weimer <fweimer@redhat.com>
8219
8220 Use 64-bit epoch values in the time zone file parser.
8221 * include/time.h (internal_time_t): Define.
8222 (__tzfile_compute): Use it.
8223 * time/tzfile.c (struct leap): Use internal_time_t for epoch
8224 member.
8225 (transitions): Switch to internal_time_t.
8226 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
8227 types.
8228 (__tzfile_compute): Use internal_time_t for timer argument. Check
8229 for truncation before calling __offtime.
8230
82312018-05-11 Florian Weimer <fweimer@redhat.com>
8232
8233 [BZ #23166]
8234 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
8235 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
8236 Likewise.
8237 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
8238 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
8239 export without --enable-obsolete-rpc.
8240 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
8241 symbol. This should not have been exported, ever.
8242
82432018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
8244
8245 [BZ #23152]
8246 * localedata/locales/gd_GB (abmon): Fix typo in May:
8247 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
8248
82492018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8250
8251 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
8252 Use multiple registers to copy data in loop tail.
8253
8254 * sysdeps/aarch64/multiarch/memmove_falkor.S
8255 (__memmove_falkor): Use multiple registers to move data in
8256 loop tail.
8257
82582018-05-10 Joseph Myers <joseph@codesourcery.com>
8259
8260 * math/math-underflow.h: New file.
8261 * sysdeps/generic/math_private.h: Do not include <float.h>.
8262 (fabs_tg): Remove macro. Moved to math-underflow.h.
8263 (min_of_type_f): Likewise.
8264 (min_of_type_): Likewise.
8265 (min_of_type_l): Likewise.
8266 (min_of_type_f128): Likewise.
8267 (min_of_type): Likewise.
8268 (math_check_force_underflow): Likewise.
8269 (math_check_force_underflow_nonneg): Likewise.
8270 (math_check_force_underflow_complex): Likewise.
8271 * math/e_exp2_template.c: Include <math-underflow.h>.
8272 * math/k_casinh_template.c: Likewise.
8273 * math/s_catan_template.c: Likewise.
8274 * math/s_catanh_template.c: Likewise.
8275 * math/s_ccosh_template.c: Likewise.
8276 * math/s_cexp_template.c: Likewise.
8277 * math/s_clog10_template.c: Likewise.
8278 * math/s_clog_template.c: Likewise.
8279 * math/s_csin_template.c: Likewise.
8280 * math/s_csinh_template.c: Likewise.
8281 * math/s_csqrt_template.c: Likewise.
8282 * math/s_ctan_template.c: Likewise.
8283 * math/s_ctanh_template.c: Likewise.
8284 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8285 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8286 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8287 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8288 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8289 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8290 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8291 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8292 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8293 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8294 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8295 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8296 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8297 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8298 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8299 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8300 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8301 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8302 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8303 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8304 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8305 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8306 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8307 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8308 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8309 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8310 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8311 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8312 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8313 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8314 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8315 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8316 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8317 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8318 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8319 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8320 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8321 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8322 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8323 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8324 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8325 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8326 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8327 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8328 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8329 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8330 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8331 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8332 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8333 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8334 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8335 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8336 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8337 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8338 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8339 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8340 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8341 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8342 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8343 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8344 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8345 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8346 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8347 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8348 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8349 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8350 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8351 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8352 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8353 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8354 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8355 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8356 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8357 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
8358 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8359 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8360 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8361 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8362 * sysdeps/x86/fpu/powl_helper.c: Likewise.
8363 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
8364 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
8365 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
8366 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
8367 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
8368
83692018-05-09 Joseph Myers <joseph@codesourcery.com>
8370
8371 * sysdeps/generic/math-barriers.h: New file.
8372 * sysdeps/generic/math_private.h [!math_opt_barrier]
8373 (math_opt_barrier): Move to math-barriers.h.
8374 [!math_opt_barrier] (math_force_eval): Likewise.
8375 * sysdeps/aarch64/fpu/math-barriers.h: New file.
8376 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
8377 math-barriers.h.
8378 (math_force_eval): Likewise.
8379 * sysdeps/alpha/fpu/math-barriers.h: New file.
8380 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
8381 math-barriers.h.
8382 (math_force_eval): Likewise.
8383 * sysdeps/x86/fpu/math-barriers.h: New file.
8384 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
8385 math-barriers.h.
8386 (math_force_eval): Likewise.
8387 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
8388 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
8389 multiple-include guard for rename.
8390 * sysdeps/powerpc/fpu/math-barriers.h: New file.
8391 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
8392 math-barriers.h.
8393 (math_force_eval): Likewise.
8394
83952018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
8396
8397 [BZ #22786]
8398 CVE-2018-11236
8399 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
8400 computation.
8401 * stdlib/Makefile (test-bz22786): New test.
8402 * stdlib/test-bz22786.c: New test.
8403
84042018-05-09 Joseph Myers <joseph@codesourcery.com>
8405
8406 * include/math-narrow-eval.h: New file. Contents moved from ....
8407 * sysdeps/generic/math_private.h: ... here.
8408 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
8409 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
8410 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
8411 * stdlib/strtod_l.c: Likewise.
8412 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8413 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8414 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8415 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8416 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8417 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8418 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8419 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8420 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8421 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
8422 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8423 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
8424 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8425 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8426 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8427 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8428 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8429 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8430 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8431 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8432 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8433 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8434 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8435 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8436 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
8437 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8438 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8439 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8440 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
8441
84422018-05-08 Andreas Schwab <schwab@suse.de>
8443
8444 * sysdeps/nptl/internaltypes.h: Fix comment.
8445
84462018-05-07 H.J. Lu <hongjiu.lu@intel.com>
8447
8448 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
8449 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
8450 hidden.
8451
84522018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8453
8454 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
8455 of I into loop header.
8456 * benchtests/bench-memmove-walk.c
8457 (test_main): Likewise.
8458
84592018-05-07 Alexandre Oliva <oliva@gnu.org>
8460
8461 Revert:
8462 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
8463 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
8464
84652018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
8466
8467 [BZ #20419]
8468 * elf/dl-load.c (open_verify): Fix stack overflow.
8469 * elf/Makefile (tst-big-note): New test.
8470 * elf/tst-big-note-lib.S: New.
8471 * elf/tst-big-note.c: New.
8472
84732018-05-04 Joseph Myers <joseph@codesourcery.com>
8474
8475 * scripts/abilist.awk: Ignore absolute symbols.
8476 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
8477 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
8478 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
8479 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
8480 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
8481 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
8482 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8483 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
8484 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
8485 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
8486 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
8487 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
8488 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
8489 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
8490 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
8491 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
8492 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
8493 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
8494 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8495 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
8496 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8497 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
8498 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
8499 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
8500 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
8501 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
8502 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
8503 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
8504 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8505 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
8506 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
8507 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8508 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
8509 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8510 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
8511 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
8512 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
8513 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
8514 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
8515 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
8516 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
8517 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8518 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
8519 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
8520 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8521 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
8522 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8523 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
8524 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
8525 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
8526 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
8527 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
8528 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
8529 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
8530 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8531 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
8532 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
8533 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8534 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
8535 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8536 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
8537 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
8538 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
8539 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
8540 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
8541 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
8542 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
8543 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8544 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
8545 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
8546 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8547 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
8548 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8549 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
8550 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
8551 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
8552 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
8553 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
8554 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
8555 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
8556 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8557 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
8558 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
8559 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8560 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
8561 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8562 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
8563 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
8564 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
8565 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
8566 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
8567 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
8568 Likewise.
8569 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
8570 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8571 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
8572 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
8573 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8574 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
8575 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8576 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
8577 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
8578 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
8579 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
8580 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
8581 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
8582 Likewise.
8583 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
8584 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8585 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
8586 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
8587 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8588 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
8589 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8590 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
8591 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
8592 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
8593 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
8594 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
8595 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
8596 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
8597 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8598 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
8599 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
8600 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8601 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
8602 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8603 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
8604 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
8605 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
8606 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
8607 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8608 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
8609 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
8610 Likewise.
8611 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
8612 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
8613 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
8614 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
8615 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8616 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
8617 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
8618 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
8619 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
8620 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
8621 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
8622 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
8623 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
8624 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8625 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
8626 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
8627 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
8628 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
8629 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8630 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
8631 Likewise.
8632 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
8633 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
8634 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
8635 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8636 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
8637 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8638 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
8639 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
8640 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
8641 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
8642 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8643 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
8644 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
8645 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8646 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
8647 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
8648 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
8649 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
8650 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8651 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
8652 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
8653 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8654 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
8655 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8656 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
8657 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
8658 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
8659 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
8660 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
8661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
8663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
8664 Likewise.
8665 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
8666 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
8667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
8668 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
8669 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8670 Likewise.
8671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
8672 Likewise.
8673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
8674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
8675 Likewise.
8676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
8677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8678 Likewise.
8679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8680 Likewise.
8681 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
8682 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
8683 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
8684 Likewise.
8685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
8686 Likewise.
8687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
8688 Likewise.
8689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
8690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
8693 Likewise.
8694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
8695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
8696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
8697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
8700 Likewise.
8701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
8702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8703 Likewise.
8704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8705 Likewise.
8706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
8707 Likewise.
8708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
8709 Likewise.
8710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
8711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
8712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
8713 Likewise.
8714 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
8715 Likewise.
8716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
8717 Likewise.
8718 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
8719 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
8720 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
8721 Likewise.
8722 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
8723 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8724 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
8725 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
8726 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8727 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
8728 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8729 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
8730 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
8731 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
8732 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
8733 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
8734 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
8735 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
8736 Likewise.
8737 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8738 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
8739 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
8740 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8741 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
8742 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8743 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
8744 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
8745 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
8746 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
8747 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
8748 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
8749 Likewise.
8750 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8751 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
8752 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
8753 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8754 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
8755 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8756 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
8757 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
8758 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
8759 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
8760 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
8761 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
8762 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
8763 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8764 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
8765 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
8766 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8767 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
8768 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8769 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
8770 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
8771 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
8772 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
8773 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
8774 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
8775 Likewise.
8776 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
8777 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8778 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
8779 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
8780 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8781 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
8782 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8783 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
8784 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
8785 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
8786 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
8787 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
8788 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
8789 Likewise.
8790 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
8791 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8792 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
8793 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
8794 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8795 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
8796 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8797 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
8798 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
8799 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
8800 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
8801 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
8802 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
8803 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
8804 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8805 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
8806 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
8807 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8808 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
8809 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8810 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
8811 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
8812 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
8813 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
8814 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
8815 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
8816 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
8817 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
8818 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8819 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
8820 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
8821 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8822 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
8823 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8824 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
8825 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
8826 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
8827 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
8828
88292018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
8830
8831 [BZ #23137]
8832 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
8833 Use atomic_load_acquire to load __tid.
8834
88352018-05-02 H.J. Lu <hongjiu.lu@intel.com>
8836
8837 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
8838 Restore the pointer into %rdx, after syscall and use %rdx,
8839 instead of %rsi, to restore context.
8840
88412018-05-02 H.J. Lu <hongjiu.lu@intel.com>
8842
8843 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
8844 Pop the pointer into %rdx after syscall and use %rdx, instead
8845 of %rsi, to restore context.
8846
88472018-05-02 H.J. Lu <hongjiu.lu@intel.com>
8848
8849 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
8850 handlers after setjmp.
8851 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
8852 defined.
8853 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
8854 <libc-pointer-arith.h>.
8855 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
8856 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
8857 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
8858 _JUMP_BUF_SIGSET_BITS_PER_WORD.
8859 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
8860 * sysdeps/x86/__longjmp_cancel.S: New file.
8861 * sysdeps/x86/longjmp.c: Likewise.
8862 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
8863
88642018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8865
8866 * NEWS: Add ustat.h deprecation entry.
8867 * bits/ustat.h: Remove file.
8868 * misc/sys/ustat.h: Likewise.
8869 * misc/ustat.h: Likewise.
8870 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
8871 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
8872 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
8873 compatibility mode.
8874 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
8875 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
8876 generic Linux implementation.
8877
88782018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8879
8880 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
8881 * math/w_expl_compat.c: Likewise.
8882 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
8883
88842018-04-30 Raymond Nicholson <rain1@airmail.cc>
8885
8886 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
8887
88882018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8889
8890 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
8891 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
8892 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
8893 Remove.
8894 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
8895 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8896 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8897 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
8898 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
8899 and SYSCALL_LL64.
8900
89012018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8902
8903 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
8904
8905 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
8906 * math/w_asin_template.c: Likewise.
8907 * math/w_atanh_template.c: Likewise.
8908
89092018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8910
8911 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
8912 to powerpc/powerpc64/be for big-endian.
8913 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
8914 little-endian.
8915
8916 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
8917 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
8918 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
8919 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
8920 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
8921 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
8922 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
8923 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
8924 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
8925 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
8926 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
8927 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
8928 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
8929 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
8930 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
8931 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
8932 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
8933 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
8934 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
8935 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
8936 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
8937 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
8938 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
8939 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
8940 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
8941 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
8942 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
8943 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
8944 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
8945 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
8946 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
8947 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
8948
8949 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
8950 adjusted to imply powerpc64 and older processors on powerpc64/be.
8951 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
8952 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
8953 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
8954 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
8955 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
8956 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
8957 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
8958 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
8959 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
8960 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
8961 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
8962 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
8963 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
8964 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
8965 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
8966 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
8967 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
8968 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
8969 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
8970 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
8971 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
8972 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
8973 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
8974 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
8975 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
8976 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
8977 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
8978 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
8979 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
8980 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
8981 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
8982
8983 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
8984 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
8985 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
8986 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
8987
8988 * sysdeps/powerpc/powerpc64/be/Implies: New file.
8989 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
8990 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
8991 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
8992
8993 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
8994 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
8995 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
8996 * sysdeps/powerpc/powerpc64le/configure: Likewise.
8997 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
8998 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
8999 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
9000 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
9001 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
9002 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
9003 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
9004
9005 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
9006 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
9007 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
9008 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
9009 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
9010 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
9011 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
9012 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
9013 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
9014 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
9015 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
9016
9017 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
9018 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
9019 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
9020 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
9021 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
9022 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
9023 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
9024 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
9025 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
9026 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
9027 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
9028 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
9029
9030 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
9031 and adjusted to imply olders processors.
9032 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
9033 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
9034 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
9035 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
9036 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
9037 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
9038 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
9039 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
9040 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
9041 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
9042 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
9043
9044 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
9045 powerpc64/le.
9046 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
9047 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
9048
9049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
9050 powerpc64le.
9051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
9052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
9053
9054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
9055 powerpc64/be.
9056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
9057 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
9058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
9059
9060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
9061 powerpc64 and adjusted.
9062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
9063 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
9064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
9065 Likewise.
9066
90672018-04-27 Joseph Myers <joseph@codesourcery.com>
9068
9069 * sysdeps/tile: Remove.
9070 * sysdeps/unix/sysv/linux/tile: Likewise.
9071 * README (tilegx-*-linux-gnu): Remove from list of supported
9072 configurations.
9073 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
9074 contribution of support for generic Linux kernel syscall
9075 interface.
9076 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
9077 tilegx configurations.
9078 (Config.install_linux_headers): Do not handle tile.
9079 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
9080 in comment.
9081 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
9082 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
9083 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
9084 conditional undefine and redefine.
9085 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
9086 in comment.
9087 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
9088 conditional undefine and redefine.
9089
90902018-04-26 Aurelien Jarno <aurelien@aurel32.net>
9091
9092 * signal/tst-sigaction.c: New file to test BZ #23069.
9093 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
9094
90952018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9096
9097 [BZ #22766]
9098 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
9099 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
9100 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
9101 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
9102
91032018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9104
9105 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
9106 _DIRENT_MATCHES_DIRENT64 is not defined.
9107 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
9108 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
9109 is defined.
9110 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
9111 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
9112
91132018-04-25 Joseph Myers <joseph@codesourcery.com>
9114
9115 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
9116 version to GCC 8 branch.
9117
91182018-04-24 Joseph Myers <joseph@codesourcery.com>
9119
9120 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
9121 (check_no_hidden): Use type of original function when declaring
9122 alias.
9123
9124 * sysdeps/unix/sysv/linux/sys/ptrace.h
9125 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
9126 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
9127 (struct __ptrace_seccomp_metadata): New type.
9128 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
9129 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9130 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
9131 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9132 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
9133 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9134 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
9135 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9136 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
9137 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9138 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
9139 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9140 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
9141 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9142 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
9143 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9144
91452018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9146
9147 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
9148 defined.
9149 * dirent/versionsort.c (versionsort): Likewise.
9150 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
9151 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
9152 * dirent/versionsort64.c (versionsort64): Likewise.
9153 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
9154 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
9155 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
9156 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
9157 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
9158 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
9159 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
9160 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
9161 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
9162 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
9163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
9164 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
9165 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
9166 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
9167
91682018-04-23 Joseph Myers <joseph@codesourcery.com>
9169
9170 * elf/elf.h (NT_PPC_PKEY): New macro.
9171
91722018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
9173
9174 [BZ #23094]
9175 * localedata/locales/hr_HR: fix thousands_sep and
9176 mon_thousands_sep
9177
91782018-04-20 Joseph Myers <joseph@codesourcery.com>
9179
9180 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
9181 (XTABS): Define to TAB3.
9182
91832018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9184
9185 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9186
9187 * dirent/scandir-tail-common.c: New file.
9188 * dirent/scandir-tail.c: Use scandir-tail-common.c.
9189 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
9190 * dirent/scandir.c: Use scandir-tail-common.c.
9191 * dirent/scandirat.c: Likewise.
9192 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
9193 * dirent/scandir64.c (scandir64): Always build and alias to scandir
9194 if _DIRENT_MATCHES_DIRENT64 is defined.
9195 * dirent/scandirat64.c (scandirat64): Likewise.
9196 * include/dirent.h (__scandir_tail): Only define iff
9197 _DIRENT_MATCHES_DIRENT64 is not defined.
9198 (__scandir64_tail): Define regardless.
9199 (__scandirat, scandirat64): Remove libc_hidden_proto.
9200 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
9201 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
9202 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
9203 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
9204 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9205 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
9206 * sysdeps/unix/sysv/linux/scandir64.c: New file.
9207
92082018-04-20 Joseph Myers <joseph@codesourcery.com>
9209
9210 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
9211 New macro.
9212 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
9213 Increase to 24.
9214 (_dl_aarch64_cap_flags): Add asimdfhm.
9215
92162018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
9217
9218 * sysdeps/nios2/libm-test-ulps: Update.
9219
92202018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9221
9222 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
9223 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
9224
9225 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
9226 requirements.
9227 (_DIRENT_MATCHES_DIRENT64): Undef
9228 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
9229 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
9230 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
9231 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
9232 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
9233 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
9234 use getdents64 syscalls as base.
9235 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
9236 symbol if required.
9237 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
9238 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
9239 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
9240 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
9241 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
9242 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
9243 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
9244 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
9245 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9246 (__get_clockfreq_via_proc_openprom): Use __getdents64.
9247 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
9248
92492018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9250
9251 * scripts/test_printers_common.py (init_test): Disable lock elision.
9252
92532018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9254
9255 * math/test-tgmath.c (count_double, count_float,
9256 count_ldouble, count_cdouble, count_cfloat,
9257 count_cldouble): Use volatile int.
9258
92592018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9260
9261 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
9262 (conformtest-xfail-conds): Add i386-gnu.
9263 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
9264 i386-gnu.
9265 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
9266 ipc_perm.cuid, ipc_perm.cgid): Likewise.
9267 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
9268 msqid_ds.msg_lrpid): Likewise.
9269 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
9270 Likewise.
9271 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
9272 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9273 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
9274 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
9275 unsigned int.
9276 (struct statvfs64): Likewise.
9277 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
9278 Likewise.
9279 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
9280 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
9281 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
9282 instead of wait_queue.
9283 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
9284 instead of vm_area_struct.
9285 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
9286 struct sched_param definition to it.
9287 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9288 * bits/types/struct_sched_param.h: New file.
9289 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
9290 <bits/types/struct_sched_param.h> instead of <sched.h>.
9291 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
9292 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
9293 generic version but include <bits/pthreadtypes.h> to make struct
9294 sigevent's sigev_notify_attributes field a pthread_attr_t*.
9295 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
9296 non-compliant.
9297 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
9298 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
9299 [__USE_XOPEN] (OFDEL): New macro.
9300 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
9301 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
9302 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
9303 prototypes.
9304 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
9305 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
9306 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
9307 non-compliant.
9308 * sysdeps/i386/sys/ucontext.h: Likewise.
9309 * sysdeps/m68k/sys/ucontext.h: Likewise.
9310 * sysdeps/mips/sys/ucontext.h: Likewise.
9311 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
9312 * sysdeps/mach/hurd/i386/Makefile
9313 (test-xfail-POSIX/fcntl.h/conform): Add.
9314 (test-xfail-POSIX/signal.h/conform): Add.
9315 (test-xfail-POSIX/semaphore.h/conform): Add.
9316 (test-xfail-POSIX/regex.h/conform): Add.
9317 (test-xfail-POSIX/aio.h/conform): Add.
9318 (test-xfail-POSIX/mqueue.h/conform): Add.
9319 (test-xfail-POSIX/sys/types.h/conform): Add.
9320 (test-xfail-UNIX98/fcntl.h/conform): Add.
9321 (test-xfail-UNIX98/netdb.h/conform): Add.
9322 (test-xfail-UNIX98/signal.h/conform): Add.
9323 (test-xfail-UNIX98/semaphore.h/conform): Add.
9324 (test-xfail-UNIX98/regex.h/conform): Add.
9325 (test-xfail-UNIX98/aio.h/conform): Add.
9326 (test-xfail-UNIX98/ftw.h/conform): Add.
9327 (test-xfail-UNIX98/mqueue.h/conform): Add.
9328 (test-xfail-UNIX98/netinet/in.h/conform): Add.
9329 (test-xfail-UNIX98/sys/wait.h/conform): Add.
9330 (test-xfail-UNIX98/sys/sem.h/conform): Add.
9331 (test-xfail-UNIX98/sys/uio.h/conform): Add.
9332 (test-xfail-UNIX98/sys/socket.h/conform): Add.
9333 (test-xfail-UNIX98/sys/types.h/conform): Add.
9334 (test-xfail-UNIX98/stdlib.h/conform): Add.
9335 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
9336 (test-xfail-POSIX2008/fcntl.h/conform): Add.
9337 (test-xfail-POSIX2008/netdb.h/conform): Add.
9338 (test-xfail-POSIX2008/signal.h/conform): Add.
9339 (test-xfail-POSIX2008/semaphore.h/conform): Add.
9340 (test-xfail-POSIX2008/regex.h/conform): Add.
9341 (test-xfail-POSIX2008/aio.h/conform): Add.
9342 (test-xfail-POSIX2008/mqueue.h/conform): Add.
9343 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
9344 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
9345 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
9346 (test-xfail-POSIX2008/sys/types.h/conform): Add.
9347 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
9348 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
9349 (test-xfail-XOPEN2K/netdb.h/conform): Add.
9350 (test-xfail-XOPEN2K/signal.h/conform): Add.
9351 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
9352 (test-xfail-XOPEN2K/regex.h/conform): Add.
9353 (test-xfail-XOPEN2K/aio.h/conform): Add.
9354 (test-xfail-XOPEN2K/ftw.h/conform): Add.
9355 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
9356 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
9357 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
9358 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
9359 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
9360 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
9361 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
9362 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
9363 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
9364 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
9365 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
9366 (test-xfail-XOPEN2K8/signal.h/conform): Add.
9367 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
9368 (test-xfail-XOPEN2K8/regex.h/conform): Add.
9369 (test-xfail-XOPEN2K8/aio.h/conform): Add.
9370 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
9371 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
9372 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
9373 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
9374 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
9375 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
9376 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
9377 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
9378 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
9379 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
9380 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
9381 i386-gnu.
9382 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
9383 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
9384
93852018-04-18 Joseph Myers <joseph@codesourcery.com>
9386
9387 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
9388 --enable-obsolete for powerpc-linux-gnuspe.
9389
93902018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9391
9392 * conform/data/sys/un.h-data: Allow sun_ prefix.
9393 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
9394 prototypes.
9395 * sysdeps/mach/include/mach.h: Likewise.
9396 * sysdeps/mach/include/mach/mig_support.h: Likewise.
9397 * sysdeps/mach/include/mach_error.h: Likewise.
9398
93992018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9400
9401 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
9402 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
9403 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
9404 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
9405
94062018-04-16 Andreas Schwab <schwab@suse.de>
9407
9408 [BZ #19527]
9409 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
9410
94112018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
9412
9413 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
9414 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
9415
94162018-04-12 DJ Delorie <dj@redhat.com>
9417
9418 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9419 version to 4.16.
9420
94212018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
9422
9423 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
9424 (struct kernel_sigaction): Use the same definition on 31bit as is used
9425 on 64bit.
9426
94272018-04-09 Florian Weimer <fweimer@redhat.com>
9428
9429 [BZ #23037]
9430 * resolv/res_send.c (send_dg): Use designated initializers instead
9431 of assignment to zero-initialize other fields of struct mmsghdr.
9432
94332018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9434
9435 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
9436 __READDIR_ALIAS): Undefine after usage.
9437 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
9438 __READDIR_R_ALIAS): Likewise.
9439 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
9440 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
9441 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
9442 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
9443 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
9444 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
9445 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
9446 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
9447 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
9448 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
9449 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
9450 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
9451 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
9452 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
9453 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
9454 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
9455 * sysdeps/unix/sysv/linux/readdir.c: New file.
9456 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
9457 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
9458 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
9459
9460 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
9461
94622018-04-06 Andreas Schwab <schwab@linux-m68k.org>
9463
9464 * manual/charset.texi (Converting a Character): Fix typo.
9465
94662018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9467
9468 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9469
9470 * sysdeps/arm/libm-test-ulps: Update.
9471
9472 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
9473 as base implementation.
9474 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
9475 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9476 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9477 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9478 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9479 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
9480 remove unrequired definitions and update comments.
9481 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
9482 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
9483 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
9484 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
9485 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
9486 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
9487 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
9488 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
9489 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
9490 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
9491 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
9492 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
9493 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
9494 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
9495 and RESET_SA_RESTORER hooks.
9496
94972018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
9498
9499 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9500
95012018-04-05 Florian Weimer <fweimer@redhat.com>
9502
9503 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
9504 integer overflow, memory leak on error, and indeterminate errno
9505 value. Add a null wide character to terminate the result string.
9506 * manual/charset.texi (Converting a Character): Mention embedded
9507 null bytes in the mbrtowc input string. Explain what happens in
9508 the -2 result case. Do not claim that mbrtowc is simple or
9509 obvious to use. Adjust the description of the code example. Use
9510 @code, not @var, for concrete variables.
9511
95122018-04-05 Florian Weimer <fweimer@redhat.com>
9513
9514 * manual/examples/mbstouwcs.c: New file.
9515 * manual/charset.texi (Converting a Character): Include it.
9516
95172018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9518
9519 * include/dirent.h (dirfd): Add hidden proto.
9520 * dirent/dirfd.c (dirfd): Add hidden def.
9521 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
9522 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
9523
95242018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9525
9526 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
9527 sin, cos and sincos to 1 ULP.
9528
95292018-04-04 Maciej W. Rozycki <macro@mips.com>
9530
9531 [BZ #19818]
9532 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
9533 symbols.
9534 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
9535 * elf/tst-absolute-sym.c: New file.
9536 * elf/tst-absolute-sym-lib.c: New file.
9537 * elf/tst-absolute-sym-lib.lds: New file.
9538 * elf/Makefile (tests): Add `tst-absolute-sym'.
9539 (modules-names): Add `tst-absolute-sym-lib'.
9540 (LDLIBS-tst-absolute-sym-lib.so): New variable.
9541 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
9542 ($(objpfx)tst-absolute-sym): New dependency.
9543
9544 [BZ #19818]
9545 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
9546 parameter.
9547 (SYMBOL_ADDRESS): New macro.
9548 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
9549 SYMBOL_ADDRESS for symbol address calculation.
9550 * elf/dl-runtime.c (_dl_fixup): Likewise.
9551 (_dl_profile_fixup): Likewise.
9552 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
9553 * elf/rtld.c (dl_main): Likewise.
9554 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
9555 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
9556 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
9557 (elf_machine_rela): Likewise.
9558 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
9559 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
9560 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9561 (elf_machine_rela): Likewise.
9562 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
9563 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
9564 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
9565 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9566 Likewise.
9567 (elf_machine_reloc): Likewise.
9568 (elf_machine_got_rel): Likewise.
9569 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
9570 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
9571 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
9572 Likewise.
9573 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9574 Likewise.
9575 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
9576 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
9577 Likewise.
9578 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
9579 Likewise.
9580 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9581 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
9582 Likewise.
9583 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9584 Likewise.
9585 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
9586 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9587
95882018-04-04 Zack Weinberg <zackw@panix.com>
9589
9590 * sysdeps/generic/internal-signals.h: Include signal.h,
9591 sigsetops.h, and stdbool.h.
9592 (__libc_signal_block_all): Actually block all signals.
9593 (__libc_signal_block_app): Likewise.
9594 (__libc_signal_restore_set): Actually restore the signal mask.
9595
95962018-04-04 Florian Weimer <fweimer@redhat.com>
9597
9598 inet: Actually build and run tst-deadline.
9599 * inet/Makefile (tests-internal): Add tst-deadline and do not
9600 overwrite the variable.
9601 (tests-static-internal): Remove variable.
9602
96032018-04-03 H.J. Lu <hongjiu.lu@intel.com>
9604
9605 [BZ #22947]
9606 * bits/uio-ext.h (RWF_APPEND): New.
9607 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
9608 * manual/llio.texi: Document RWF_APPEND.
9609 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
9610 (RWF_SUPPORTED): Add RWF_APPEND.
9611
96122018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9613
9614 [BZ #22391]
9615 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
9616 check for internal nptl signals.
9617 * nptl/sigaction.c (__sigaction): Likewise.
9618 * signal/sigaddset.c (sigaddset): Likewise.
9619 * signal/sigdelset.c (sigdelset): Likewise.
9620 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9621 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
9622 value.
9623 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
9624 to filter out internal nptl signals.
9625 * signal/tst-sigset.c (do_test): Check ech signal indidually and
9626 also check realtime signals using standard macros.
9627 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
9628 __is_internal_signal, __libc_signal_block_all,
9629 __libc_signal_block_app, __libc_signal_restore_set): New functions.
9630 * sysdeps/nptl/sigfillset.c: Remove file.
9631 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
9632 Change return to bool.
9633 (__clear_internal_signals): Remove SIGTIMER clean since it is
9634 equal to SIGCANEL on Linux.
9635 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
9636 signal set was constructed using standard functions.
9637
96382018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9639
9640 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
9641 ifname is too long.
9642 * hurd/hurdsig.c (interrupted_reply_port_location): Use
9643 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
9644 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
9645 hidden def.
9646 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
9647 * signal/sigaddset.c: Include <sigsetopts.h>.
9648 * signal/sigdelset.c: Likewise.
9649
96502018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9651
9652 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
9653 (__cos): Likewise.
9654 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
9655 logic as sin and cos.
9656
96572018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9658
9659 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
9660 inputs. Return correct sign.
9661 (do_sincos): Remove small input check before do_sin, let do_sin set
9662 the sign.
9663 (__sin): Likewise.
9664 (__cos): Likewise.
9665
96662018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9667
9668 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
9669 (do_cos_slow): Likewise.
9670 (do_sin_slow): Likewise.
9671 (reduce_and_compute): Likewise.
9672 (slow): Likewise.
9673 (slow1): Likewise.
9674 (slow2): Likewise.
9675 (sloww): Likewise.
9676 (sloww1): Likewise.
9677 (sloww2): Likewise.
9678 (bslow): Likewise.
9679 (bslow1): Likewise.
9680 (bslow2): Likewise.
9681 (cslow2): Likewise.
9682
96832018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9684
9685 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
9686 (do_cos): Remove corp parameter and calculations.
9687 (do_sin): Likewise.
9688 (do_sincos): Remove cor variable.
9689 (__sin): Use do_sincos for huge inputs.
9690 (__cos): Likewise.
9691 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9692 (reduce_and_compute_sincos): Remove unused function.
9693
96942018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9695
9696 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
9697 reduce_sincos, improve accuracy to 136 bits.
9698 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
9699 (__sin): Use improved reduction and simplified do_sincos calculation.
9700 (__cos): Likewise.
9701 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9702
97032018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9704
9705 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
9706 (do_sincos_2): Likewise.
9707 (__sin): Remove middle range reduction case.
9708 (__cos): Likewise.
9709 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
9710 reduction case.
9711
97122018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9713
9714 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
9715 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
9716 inputs.
9717 (__cos): Likewise.
9718 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
9719
97202018-04-03 Joseph Myers <joseph@codesourcery.com>
9721
9722 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9723 version to 4.16
9724
97252018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9726
9727 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
9728 Remove definitions.
9729 (opendir_oflags): Use O_DIRECTORY regardless.
9730 (__opendir, __opendirat): Remove need_isdir_precheck usage.
9731 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
9732
97332018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9734
9735 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
9736 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
9737 macros.
9738 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
9739 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
9740 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
9741 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
9742 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
9743 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
9744
9745 * htl/Makefile: Bump licence to LGPL 2.1+.
9746 * htl/alloca_cutoff.c: Likewise.
9747 * htl/cthreads-compat.c: Likewise.
9748 * htl/lockfile.c: Likewise.
9749 * htl/pt-alloc.c: Likewise.
9750 * htl/pt-cancel.c: Likewise.
9751 * htl/pt-cleanup.c: Likewise.
9752 * htl/pt-create.c: Likewise.
9753 * htl/pt-dealloc.c: Likewise.
9754 * htl/pt-detach.c: Likewise.
9755 * htl/pt-exit.c: Likewise.
9756 * htl/pt-getattr.c: Likewise.
9757 * htl/pt-initialize.c: Likewise.
9758 * htl/pt-internal.h: Likewise.
9759 * htl/pt-join.c: Likewise.
9760 * htl/pt-self.c: Likewise.
9761 * htl/pt-setcancelstate.c: Likewise.
9762 * htl/pt-setcanceltype.c: Likewise.
9763 * htl/pt-sigmask.c: Likewise.
9764 * htl/pt-spin-inlines.c: Likewise.
9765 * htl/pt-testcancel.c: Likewise.
9766 * htl/pt-yield.c: Likewise.
9767 * htl/tests/test-1.c: Likewise.
9768 * htl/tests/test-10.c: Likewise.
9769 * htl/tests/test-11.c: Likewise.
9770 * htl/tests/test-12.c: Likewise.
9771 * htl/tests/test-13.c: Likewise.
9772 * htl/tests/test-14.c: Likewise.
9773 * htl/tests/test-15.c: Likewise.
9774 * htl/tests/test-16.c: Likewise.
9775 * htl/tests/test-17.c: Likewise.
9776 * htl/tests/test-2.c: Likewise.
9777 * htl/tests/test-3.c: Likewise.
9778 * htl/tests/test-4.c: Likewise.
9779 * htl/tests/test-5.c: Likewise.
9780 * htl/tests/test-6.c: Likewise.
9781 * htl/tests/test-7.c: Likewise.
9782 * htl/tests/test-8.c: Likewise.
9783 * htl/tests/test-9.c: Likewise.
9784 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
9785 * sysdeps/htl/bits/cancelation.h: Likewise.
9786 * sysdeps/htl/bits/pthread-np.h: Likewise.
9787 * sysdeps/htl/bits/pthread.h: Likewise.
9788 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
9789 * sysdeps/htl/bits/semaphore.h: Likewise.
9790 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
9791 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
9792 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
9793 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
9794 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
9795 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
9796 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
9797 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
9798 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
9799 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
9800 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
9801 * sysdeps/htl/old_pt-atfork.c: Likewise.
9802 * sysdeps/htl/pt-atfork.c: Likewise.
9803 * sysdeps/htl/pt-attr-destroy.c: Likewise.
9804 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
9805 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
9806 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
9807 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
9808 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
9809 * sysdeps/htl/pt-attr-getscope.c: Likewise.
9810 * sysdeps/htl/pt-attr-getstack.c: Likewise.
9811 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
9812 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
9813 * sysdeps/htl/pt-attr-init.c: Likewise.
9814 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
9815 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
9816 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
9817 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
9818 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
9819 * sysdeps/htl/pt-attr-setscope.c: Likewise.
9820 * sysdeps/htl/pt-attr-setstack.c: Likewise.
9821 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
9822 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
9823 * sysdeps/htl/pt-attr.c: Likewise.
9824 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
9825 * sysdeps/htl/pt-barrier-init.c: Likewise.
9826 * sysdeps/htl/pt-barrier-wait.c: Likewise.
9827 * sysdeps/htl/pt-barrier.c: Likewise.
9828 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
9829 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
9830 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
9831 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
9832 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
9833 * sysdeps/htl/pt-cond-destroy.c: Likewise.
9834 * sysdeps/htl/pt-cond-init.c: Likewise.
9835 * sysdeps/htl/pt-cond-signal.c: Likewise.
9836 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
9837 * sysdeps/htl/pt-cond-wait.c: Likewise.
9838 * sysdeps/htl/pt-cond.c: Likewise.
9839 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
9840 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
9841 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
9842 * sysdeps/htl/pt-condattr-init.c: Likewise.
9843 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
9844 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
9845 * sysdeps/htl/pt-destroy-specific.c: Likewise.
9846 * sysdeps/htl/pt-equal.c: Likewise.
9847 * sysdeps/htl/pt-getconcurrency.c: Likewise.
9848 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
9849 * sysdeps/htl/pt-getschedparam.c: Likewise.
9850 * sysdeps/htl/pt-getspecific.c: Likewise.
9851 * sysdeps/htl/pt-init-specific.c: Likewise.
9852 * sysdeps/htl/pt-key-create.c: Likewise.
9853 * sysdeps/htl/pt-key-delete.c: Likewise.
9854 * sysdeps/htl/pt-key.h: Likewise.
9855 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
9856 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
9857 * sysdeps/htl/pt-mutex-init.c: Likewise.
9858 * sysdeps/htl/pt-mutex-lock.c: Likewise.
9859 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
9860 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
9861 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
9862 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
9863 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
9864 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
9865 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
9866 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
9867 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
9868 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
9869 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
9870 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
9871 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
9872 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
9873 * sysdeps/htl/pt-mutexattr.c: Likewise.
9874 * sysdeps/htl/pt-once.c: Likewise.
9875 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
9876 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
9877 * sysdeps/htl/pt-rwlock-init.c: Likewise.
9878 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
9879 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
9880 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
9881 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
9882 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
9883 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
9884 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
9885 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
9886 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
9887 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
9888 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
9889 * sysdeps/htl/pt-setconcurrency.c: Likewise.
9890 * sysdeps/htl/pt-setschedparam.c: Likewise.
9891 * sysdeps/htl/pt-setschedprio.c: Likewise.
9892 * sysdeps/htl/pt-setspecific.c: Likewise.
9893 * sysdeps/htl/pt-spin.c: Likewise.
9894 * sysdeps/htl/pt-startup.c: Likewise.
9895 * sysdeps/htl/pthread.h: Likewise.
9896 * sysdeps/htl/sem-close.c: Likewise.
9897 * sysdeps/htl/sem-destroy.c: Likewise.
9898 * sysdeps/htl/sem-getvalue.c: Likewise.
9899 * sysdeps/htl/sem-init.c: Likewise.
9900 * sysdeps/htl/sem-open.c: Likewise.
9901 * sysdeps/htl/sem-post.c: Likewise.
9902 * sysdeps/htl/sem-timedwait.c: Likewise.
9903 * sysdeps/htl/sem-trywait.c: Likewise.
9904 * sysdeps/htl/sem-unlink.c: Likewise.
9905 * sysdeps/htl/sem-wait.c: Likewise.
9906 * sysdeps/hurd/htl/pt-kill.c: Likewise.
9907 * sysdeps/i386/htl/pt-machdep.h: Likewise.
9908 * sysdeps/mach/htl/pt-block.c: Likewise.
9909 * sysdeps/mach/htl/pt-spin.c: Likewise.
9910 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
9911 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
9912 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
9913 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
9914 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
9915 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
9916 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
9917 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
9918 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
9919 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
9920 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
9921 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
9922 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
9923 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
9924 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
9925 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
9926 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
9927 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
9928 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
9929 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
9930 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
9931 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
9932 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
9933 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
9934 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
9935 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
9936 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
9937 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
9938 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
9939 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
9940 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
9941 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
9942 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
9943 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
9944 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
9945 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
9946 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
9947 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
9948 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
9949 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
9950 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
9951 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
9952 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
9953
9954 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
9955 * README: Remove the mention of out-of-tree patches needed for
9956 GNU/Hurd.
9957
9958 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
9959 (UTIME_NOW, UTIME_OMIT): Define macros.
9960
9961 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
9962 instead of pthread_detach.
9963 (__cthread_fork): Call __pthread_create instead of pthread_create.
9964 (__cthread_keycreate): Call __pthread_key_create instead of
9965 pthread_key_create.
9966 (__cthread_getspecific): Call __pthread_getspecific instead of
9967 pthread_getspecific.
9968 (__cthread_setspecific): Call __pthread_setspecific instead of
9969 pthread_setspecific.
9970 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
9971 __pthread_mutex_unlock instead of pthread_mutex_lock and
9972 pthread_mutex_unlock.
9973 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
9974 ___pthread_get_cleanup_stack.
9975 (__pthread_get_cleanup_stack): New strong alias.
9976 * htl/pt-create.c: Include <pthreadP.h>.
9977 (entry_point): Call __pthread_exit instead of pthread_exit.
9978 (pthread_create): Rename to __pthread_create.
9979 (pthread_create): New strong alias.
9980 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
9981 (pthread_detach): New strong alias.
9982 (__pthread_detach): Call __pthread_cond_broadcast instead of
9983 pthread_cond_broadcast.
9984 * htl/pt-exit.c: Include <pthreadP.h>.
9985 (__pthread_exit): Call __pthread_setcancelstate and
9986 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
9987 __pthread_get_cleanup_stack.
9988 * htl/pt-testcancel.c: Include <pthreadP.h>.
9989 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
9990 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
9991 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
9992 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
9993 pthread_attr_getstacksize.
9994 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
9995 Rename to __pthread_attr_getstackaddr.
9996 (pthread_attr_getstackaddr): New strong alias.
9997 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
9998 Rename to __pthread_attr_getstacksize.
9999 (pthread_attr_getstacksize): New strong alias.
10000 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
10001 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
10002 (pthread_attr_setstack): New strong alias.
10003 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
10004 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
10005 pthread_attr_getstacksize, pthread_attr_setstacksize and
10006 pthread_attr_setstackaddr.
10007 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
10008 Rename to __pthread_attr_setstackaddr.
10009 (pthread_attr_setstackaddr): New strong alias.
10010 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
10011 Rename to __pthread_attr_setstacksize.
10012 (pthread_attr_setstacksize): New strong alias.
10013 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
10014 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
10015 pthread_exit.
10016 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
10017 (__pthread_key_create): New hidden def.
10018 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
10019 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
10020 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
10021 __pthread_exit, __pthread_key_create, __pthread_getspecific,
10022 __pthread_setspecific, __pthread_setcancelstate,
10023 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
10024 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
10025 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
10026 declarations.
10027 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
10028 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
10029 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
10030 (pthread_attr_setstackaddr): New strong alias.
10031 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
10032 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
10033 (pthread_attr_setstacksize): New strong alias.
10034 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
10035 (call_exit): Call __pthread_exit instead of pthread_exit.
10036 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
10037 (_pthread_mutex_init): New hidden definition.
10038 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
10039 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
10040 instead of pthread_attr_init and pthread_attr_setstack.
10041
10042 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
10043 __vm_deallocate instead of vm_allocate and vm_deallocate.
10044 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
10045 setenv.
10046 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
10047 of geteuid.
10048 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
10049 strdup.
10050 * hurd/siginfo.c: Include <libioP.h>.
10051 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
10052 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
10053 munmap.
10054 * mach/devstream.c: Include <libioP.h>.
10055 (dealloc_ref): Call __mach_port_deallocate instead of
10056 mach_port_deallocate.
10057 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
10058 Call __mach_port_deallocate instead of mach_port_deallocate.
10059 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
10060 pathconf.
10061 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
10062 munmap.
10063 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
10064 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
10065 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
10066 of munmap.
10067 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
10068 of close.
10069 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
10070 instead of sysconf.
10071 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
10072 __clock_gettime instead of clock_gettime.
10073 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
10074 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
10075 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
10076 * sysdeps/unix/bsd/stty.c (stty): Likewise.
10077 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
10078 tcgetattr.
10079 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
10080 __clock_gettime and __nanosleep instead of clock_gettime and
10081 nanosleep.
10082 * hurd/catch-signal.c (hurd_catch_signal): Rename to
10083 __hurd_catch_signal.
10084 (hurd_catch_signal): New strong alias.
10085 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
10086 __hurd_catch_signal instead of hurd_catch_signal.
10087 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
10088 * hurd/hurdexec.c (_hurd_init): Add hidden def.
10089 * hurd/hurdinit.c (_hurd_init): Add hidden def.
10090 * hurd/hurdsig.c: Include <mach/mig_support.h>.
10091 (_hurd_thread_sigstate): Add hidden def.
10092 (_hurd_internal_post_signal): Use __mutex_unlock instead of
10093 mutex_unlock.
10094 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
10095 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
10096 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
10097 __hurd_file_name_path_lookup.
10098 (hurd_file_name_path_lookup): New strong alias.
10099 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
10100 hurd_file_name_path_lookup.
10101 * mach/errstring.c (mach_error_type): Add hidden def.
10102 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
10103 * mach/mutex-init.c (__mutex_init): Add hidden def.
10104 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
10105 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
10106 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
10107 * sysdeps/mach/hurd/getcwd.c
10108 (_hurd_canonicalize_directory_name_internal): Rename to
10109 __hurd_canonicalize_directory_name_internal.
10110 (_hurd_canonicalize_directory_name_internal): New strong alias.
10111 (__canonicalize_directory_name_internal, __getcwd): Call
10112 __hurd_canonicalize_directory_name_internal instead of
10113 _hurd_canonicalize_directory_name_internal.
10114 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
10115 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
10116 hidden defs.
10117 * sysdeps/hurd/include/hurd.h: New file.
10118 * sysdeps/hurd/include/hurd/fd.h: New file.
10119 * sysdeps/hurd/include/hurd/signal.h: New file.
10120 * sysdeps/mach/include/lock-intern.h: New file.
10121 * sysdeps/mach/include/mach.h: New file.
10122 * sysdeps/mach/include/mach/mig_support.h: New file.
10123 * sysdeps/mach/include/mach_error.h: New file.
10124 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
10125 prototype.
10126 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
10127 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
10128 _HEADER_H_HIDDEN_DEF macro.
10129 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
10130 _hurd_fd_error_signal): Add hidden prototype.
10131 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
10132 hidden def.
10133 * libio/iolibio.h (_IO_puts): New hidden prototype.
10134 * libio/ioputs.c (_IO_puts): New hidden def.
10135 * sysdeps/mach/hurd/localplt.data: New file.
10136
101372018-04-02 Agustina Arzille <avarzille@riseup.net>
10138 Amos Jeffries <squid3@treenet.co.nz>
10139 David Michael <fedora.dm0@gmail.com>
10140 Marco Gerards <marco@gnu.org>
10141 Marcus Brinkmann <marcus@gnu.org>
10142 Neal H. Walfield <neal@gnu.org>
10143 Pino Toscano <toscano.pino@tiscali.it>
10144 Richard Braun <rbraun@sceen.net>
10145 Roland McGrath <roland@gnu.org>
10146 Samuel Thibault <samuel.thibault@ens-lyon.org>
10147 Thomas DiModica <ricinwich@yahoo.com>
10148 Thomas Schwinge <tschwinge@gnu.org>
10149
10150 * htl: New directory.
10151 * sysdeps/htl: New directory.
10152 * sysdeps/hurd/htl: New directory.
10153 * sysdeps/i386/htl: New directory.
10154 * sysdeps/mach/htl: New directory.
10155 * sysdeps/mach/hurd/htl: New directory.
10156 * sysdeps/mach/hurd/i386/htl: New directory.
10157 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
10158 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
10159 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
10160
101612018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10162
10163 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
10164 signals in thread created for runing timers.
10165
101662018-04-01 Florian Weimer <fweimer@redhat.com>
10167
10168 * support/support_format_addrinfo.c (support_format_addrinfo):
10169 Include unknown error number in formatted result.
10170
101712018-03-29 Florian Weimer <fweimer@redhat.com>
10172
10173 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
10174 capture SIGBUS.
10175
101762018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10177
10178 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
10179 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
10180 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10181 (__ASSUME_CLONE_BACKWARDS): Define.
10182
101832018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
10184
10185 [BZ #23024]
10186 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
10187 early when linux sentinel value is set.
10188
101892018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10190
10191 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
10192
101932018-03-27 Andreas Schwab <schwab@suse.de>
10194
10195 [BZ #23005]
10196 * resolv/res_send.c (__res_context_send): Return ENOMEM if
10197 allocation of private copy of nsaddr_list fails.
10198
101992018-03-26 Joseph Myers <joseph@codesourcery.com>
10200
10201 [BZ #16552]
10202 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
10203 * sysdeps/unix/sysv/linux/umount.c: ... here.
10204 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
10205 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
10206 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
10207 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
10208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
10209 * sysdeps/unix/sysv/linux/umount.S: Likewise.
10210 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
10211
102122018-03-26 Andreas Schwab <schwab@suse.de>
10213
10214 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
10215 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
10216 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
10217 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
10218 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
10219 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
10220 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
10221 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
10222 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
10223 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
10224 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
10225 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
10226 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
10227 (R_RISCV_NUM): Define.
10228
102292018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10230
10231 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
10232 TLS declaration of errno.
10233 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
10234 __libc_setup_tls.
10235 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
10236 (ARCH_SETUP_TLS): Likewise.
10237 * sysdeps/mach/hurd/libc-start.h: New file copied from
10238 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
10239 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
10240 instead of __libc_setup_tls.
10241 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
10242 __libc_setup_tls before initializing libpthread and running _hurd_init
10243 which starts the signal thread.
10244 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
10245 Declare function.
10246 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10247
102482018-03-24 H.J. Lu <hongjiu.lu@intel.com>
10249
10250 [BZ #22998]
10251 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
10252 after it is defined.
10253
102542018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
10255 Max Horn <max@quendi.de>
10256
10257 [BZ #22644]
10258 CVE-2017-18269
10259 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
10260 branch conditions.
10261 * string/test-memmove.c (do_test2): New testcase.
10262
102632018-03-22 Joseph Myers <joseph@codesourcery.com>
10264
10265 * sysdeps/generic/frame.h: Remove file.
10266 * sysdeps/arm/frame.h: Likewise.
10267 * sysdeps/hppa/frame.h: Likewise.
10268 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
10269 macro.
10270 (GET_FRAME): Likewise.
10271 (GET_STACK): Likewise.
10272 (CALL_SIGHANDLER): Likewise.
10273 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
10274 Likewise.
10275 (GET_FRAME): Likewise.
10276 (GET_STACK): Likewise.
10277 (CALL_SIGHANDLER): Likewise.
10278 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
10279 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10280 (GET_FRAME): Likewise.
10281 (GET_STACK): Likewise.
10282 (CALL_SIGHANDLER): Likewise.
10283 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
10284 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10285 (GET_FRAME): Likewise.
10286 (GET_STACK): Likewise.
10287 (ADVANCE_STACK_FRAME): Likewise.
10288 (CALL_SIGHANDLER): Likewise.
10289 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
10290 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10291 (GET_FRAME): Likewise.
10292 (GET_STACK): Likewise.
10293 (CALL_SIGHANDLER): Likewise.
10294 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
10295 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10296 (GET_FRAME): Likewise.
10297 (GET_STACK): Likewise.
10298 (CALL_SIGHANDLER): Likewise.
10299 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
10300 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10301 (GET_FRAME): Likewise.
10302 (GET_STACK): Likewise.
10303 (CALL_SIGHANDLER): Likewise.
10304 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
10305 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10306 (GET_FRAME): Likewise.
10307 (GET_STACK): Likewise.
10308 (CALL_SIGHANDLER): Likewise.
10309 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
10310 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10311 (GET_FRAME): Likewise.
10312 (GET_STACK): Likewise.
10313 (CALL_SIGHANDLER): Likewise.
10314 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
10315 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10316 (GET_FRAME): Likewise.
10317 (GET_STACK): Likewise.
10318 (CALL_SIGHANDLER): Likewise.
10319 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
10320 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10321 (GET_FRAME): Likewise.
10322 (GET_STACK): Likewise.
10323 (CALL_SIGHANDLER): Likewise.
10324 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
10325 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10326 (GET_FRAME): Likewise.
10327 (GET_STACK): Likewise.
10328 (CALL_SIGHANDLER): Likewise.
10329 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
10330 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10331 (GET_FRAME): Likewise.
10332 (GET_STACK): Likewise.
10333 (CALL_SIGHANDLER): Likewise.
10334 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
10335 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10336 (FIRST_FRAME_POINTER): Likewise.
10337 (ADVANCE_STACK_FRAME): Likewise.
10338 (GET_STACK): Likewise.
10339 (GET_FRAME): Likewise.
10340 (CALL_SIGHANDLER): Likewise.
10341 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
10342 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10343 (ADVANCE_STACK_FRAME): Likewise.
10344 (GET_STACK): Likewise.
10345 (GET_FRAME): Likewise.
10346 (CALL_SIGHANDLER): Likewise.
10347 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
10348 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10349 (GET_FRAME): Likewise.
10350 (GET_STACK): Likewise.
10351 (CALL_SIGHANDLER): Likewise.
10352 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
10353 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10354 (GET_FRAME): Likewise.
10355 (GET_STACK): Likewise.
10356 (CALL_SIGHANDLER): Likewise.
10357
103582018-03-21 Joseph Myers <joseph@codesourcery.com>
10359
10360 * sysdeps/x86_64/backtrace.c: Move to ....
10361 * debug/backtrace.c: ... here.
10362 * sysdeps/aarch64/backtrace.c: Remove file.
10363 * sysdeps/alpha/backtrace.c: Likewise.
10364 * sysdeps/hppa/backtrace.c: Likewise.
10365 * sysdeps/ia64/backtrace.c: Likewise.
10366 * sysdeps/mips/backtrace.c: Likewise.
10367 * sysdeps/nios2/backtrace.c: Likewise.
10368 * sysdeps/riscv/backtrace.c: Likewise.
10369 * sysdeps/sh/backtrace.c: Likewise.
10370 * sysdeps/tile/backtrace.c: Likewise.
10371
103722018-03-20 Joseph Myers <joseph@codesourcery.com>
10373
10374 [BZ #22987]
10375 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
10376 function.
10377 (fdimf): Likewise.
10378 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
10379
10380 [BZ #17343]
10381 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
10382 possibly overflowing computations.
10383
103842018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10385
10386 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
10387 values from Linux-specific section now that it is in the GNU section.
10388 * sysdeps/gnu/errlist.c: Regenerate.
10389
103902018-03-20 Joseph Myers <joseph@codesourcery.com>
10391
10392 * math/Makefile (libm-narrow-fns): Add sub.
10393 (libm-test-funcs-narrow): Likewise.
10394 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
10395 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
10396 * math/gen-auto-libm-tests.c (test_functions): Add sub.
10397 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
10398 (NARROW_SUB_ROUND_TO_ODD): Likewise.
10399 (NARROW_SUB_TRIVIAL): Likewise.
10400 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
10401 macro.
10402 (__dsubl): Likewise.
10403 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
10404 dsub.
10405 (CFLAGS-nldbl-dsub.c): New variable.
10406 (CFLAGS-nldbl-fsub.c): Likewise.
10407 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10408 __nldbl_dsubl.
10409 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
10410 prototype.
10411 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
10412 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
10413 * math/auto-libm-test-in: Add tests of sub.
10414 * math/auto-libm-test-out-narrow-sub: New generated file.
10415 * math/libm-test-narrow-sub.inc: New file.
10416 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
10417 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
10418 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
10419 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
10420 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
10421 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
10422 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
10423 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
10424 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
10425 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
10426 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
10427 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
10428 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
10429 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
10430 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
10431 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
10432 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
10433 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
10434 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10435 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10436 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10437 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10438 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10439 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10440 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10441 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10442 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10443 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10444 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10445 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10446 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10447 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10449 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10452 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10453 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10454 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10455 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10456 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10457 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10458 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
10459 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
10460 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10461 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10462
104632018-03-19 Joseph Myers <joseph@codesourcery.com>
10464
10465 [BZ #20079]
10466 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
10467
104682018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
10469
10470 * benchtests/bench-timing.h (attribute_hidden): Undefine.
10471
104722018-03-18 Richard Braun <rbraun@sceen.net>
10473
10474 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
10475 thread reference.
10476
104772018-03-18 Agustina Arzille <avarzille@riseup.net>
10478
10479 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
10480 (__libc_cleanup_fct): Define function.
10481 (__libc_cleanup_region_start, __libc_cleanup_region_end,
10482 __libc_cleanup_end): Rewrite implementation using
10483 __attribute__ ((__cleanup__)).
10484 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
10485 * hurd/Makefile (routines): Add hurdlock.
10486 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
10487 interface.
10488 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
10489 * hurd/hurdpid.c: Include <lowlevellock.h>
10490 (_S_msg_proc_newids): Use lll_wait to synchronize.
10491 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
10492 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
10493 * mach/Makefile (lock-headers): Remove machine-lock.h.
10494 * mach/lock-intern.h: Include <lowlevellock.h> instead of
10495 <machine-lock.h>.
10496 (__spin_lock_t): New type.
10497 (__SPIN_LOCK_INITIALIZER): New macro.
10498 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
10499 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
10500 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
10501 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
10502 (__mutex_init): Initialize with lll.
10503 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
10504 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
10505 needing lll.
10506 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10507 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
10508 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
10509 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
10510 (__setpgid): Use lll for synchronization.
10511 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
10512 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
10513 instead of <cthreads.h>.
10514 (_IO_lock_inexpensive): New macro
10515 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
10516 (__libc_lock_self0): New declaration.
10517 (__libc_lock_owner_self): New macro.
10518 (__libc_key_t): Remove type.
10519 (_LIBC_LOCK_INITIALIZER): New macro.
10520 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
10521 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
10522 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
10523 __libc_lock_define_initialized_recursive,
10524 __rtld_lock_define_initialized_recursive,
10525 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
10526 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
10527 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
10528 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
10529 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
10530 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
10531 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
10532 New macros.
10533 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
10534 * hurd/hurdlock.c: New file.
10535 * hurd/hurdlock.h: New file.
10536 * mach/lowlevellock.h: New file
10537
105382018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10539
10540 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
10541 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
10542 when opening a symlink with O_NOFOLLOW.
10543 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
10544 path when flags contains O_NOFOLLOW.
10545 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
10546 if flags contains O_DIRECTORY and the result is a directory.
10547 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
10548 oneself when the pointer given in D is nul (as set by ext2fs).
10549 * sysdeps/mach/hurd/mlockall.c: New file.
10550 * sysdeps/mach/hurd/munlockall.c: New file.
10551
105522018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
10553
10554 * hurd/hurdsig.c: Include <pthread.h>.
10555 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
10556 get the signal thread stack layout.
10557 * hurd/Makefile (headers): Remove threadvar.h.
10558 (inline-headers): Remove threadvar.h.
10559 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
10560 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
10561 __hurd_threadvar_max, __hurd_errno_location.
10562 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
10563 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
10564 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
10565 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
10566 unless TLS is not initialized yet, in which case we do not need a
10567 critical section yet anyway.
10568 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
10569 <machine-sp.h>.
10570 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
10571 declarations.
10572 (__hurd_threadvar_index): Remove enum.
10573 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
10574 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
10575 inlines.
10576 (__hurd_reply_port0): New variable declaration.
10577 (__hurd_local_reply_port): New macro.
10578 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
10579 (interrupted_reply_port_location): Add thread_t parameter. Use it
10580 with THREAD_TCB to access thread-local variables.
10581 (_hurdsig_abort_rpcs): Pass ss->thread to
10582 interrupted_reply_port_location.
10583 (_hurd_internal_post_signal): Likewise.
10584 (_hurdsig_init): Use presence of cthread_fork instead of
10585 __hurd_threadvar_stack_mask to start signal thread by hand.
10586 Remove signal thread threadvar initialization.
10587 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
10588 * hurd/sigunwind.c: Include <hurd/threadvar.h>
10589 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
10590 of threadvar.
10591 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
10592 __libc_lock_self0.
10593 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
10594 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
10595 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
10596 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
10597 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
10598 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
10599 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
10600 define variables.
10601 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
10602 <hurd/threadvar.h>.
10603 [IS_IN(rtld)] (rtld_errno): New variable.
10604 [IS_IN(rtld)] (__errno_location): New weak function.
10605 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
10606 * sysdeps/mach/hurd/errno.c: Remove file.
10607 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
10608 (__fork): Remove THREADVAR_SPACE macro and its use.
10609 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
10610 variable.
10611 (init): Do not initialize threadvar.
10612 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
10613 symbol.
10614 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
10615 __hurd_local_reply_port instead of threadvar.
10616 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
10617 _hurd_sigstate fields.
10618 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
10619 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
10620 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
10621 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
10622 instead of threadvar.
10623 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
10624 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
10625 (use_threadvar, global_reply_port): Remove variables.
10626 (__hurd_reply_port0): New variable.
10627 (__mig_get_reply_port): Use __hurd_local_reply_port and
10628 __hurd_reply_port0 instead of threadvar.
10629 (__mig_dealloc_reply_port): Likewise.
10630 (__mig_init): Do not initialize threadvar.
10631 * sysdeps/mach/hurd/profil.c: Fix comment.
10632 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
10633 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
10634 cthread_keycreate, cthread_getspecific, cthread_setspecific to
10635 __cthread_fork, __cthread_detach, __pthread_getattr_np,
10636 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
10637 __cthread_setspecific.
10638 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
10639 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
10640 __cthread_t instead of cthread_fork, cthread_detach,
10641 pthread_getattr_np, pthread_attr_getstack.
10642 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
10643 __cthread_keycreate.
10644 (cthread_getspecific): Rename to __cthread_getspecific.
10645 (cthread_setspecific): Rename to __cthread_setspecific.
10646 (__libc_getspecific): Use __cthread_getspecific instead of
10647 cthread_getspecific.
10648 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
10649 __cthread_keycreate instead of cthread_keycreate.
10650 (__libc_setspecific): Use __cthread_setspecific instead of
10651 cthread_setspecific.
10652 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
10653 Likewise.
10654 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
10655 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
10656 testing whether it is defined.
10657
106582018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
10659
10660 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
10661 Define macro.
10662 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
10663 * sysdeps/mach/i386/thread_state.h
10664 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
10665 i386_THREAD_STATE.
10666 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
10667 i386_THREAD_STATE.
10668 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
10669
10670 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
10671 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
10672
10673 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
10674 macros.
10675 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
10676 descriptor instead of creating a new one.
10677 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
10678
10679 * mach/setup-thread.c: Include <ldsodefs.h>.
10680 (__mach_setup_thread): Call _dl_allocate_tls, pass
10681 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
10682 MACHINE_THREAD_STATE_FLAVOR, before getting
10683 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
10684 MACHINE_THREAD_STATE_FLAVOR with the result.
10685 * hurd/hurdfault.c (_hurdsig_fault_init): Call
10686 MACHINE_THREAD_STATE_FIX_NEW.
10687 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
10688 too. Add original thread parameter.
10689
106902018-03-16 Joseph Myers <joseph@codesourcery.com>
10691
10692 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
10693 Remove inline function.
10694
10695 * sysdeps/i386/fpu/libm-test-ulps: Update.
10696 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10697
106982018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
10699
10700 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
10701 commit.
10702
107032018-03-15 Joseph Myers <joseph@codesourcery.com>
10704
10705 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
10706 (__sincos_code): Remove define and undefine.
10707 [__FAST_MATH__] (__sincos): Remove inline function.
10708 [__FAST_MATH__] (__sincosf): Remove inline function.
10709 [__FAST_MATH__] (__sincosl): Remove inline function.
10710 (__atan2l): Remove inline functions.
10711 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
10712 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
10713 function.
10714 (floor): Remove inline function.
10715 (ceil): Likewise.
10716 [__FAST_MATH__] (__ldexp_code): Remove macro.
10717 [__FAST_MATH__] (ldexp): Remove inline function.
10718 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
10719 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
10720 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
10721 [__USE_ISOC99] (__lrint_code): Remove macro.
10722 [__USE_ISOC99] (__llrint_code): Likewise.
10723 [__USE_ISOC99] (lrintf): Remove inline function.
10724 [__USE_ISOC99] (lrint): Likewise.
10725 [__USE_ISOC99] (lrintl): Likewise.
10726 [__USE_ISOC99] (llrint): Likewise.
10727 [__USE_ISOC99] (llrintf): Likewise.
10728 [__USE_ISOC99] (llrintl): Likewise.
10729
107302018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10731
10732 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
10733 (__ieee754_sqrtf): Remove.
10734 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
10735 (__ieee754_sqrtf): Remove.
10736 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
10737 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
10738 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
10739 (__ieee754_sqrtf): Remove.
10740 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
10741 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
10742 (sqrtf): Remove.
10743 (sqrtl): Remove.
10744 (__ieee754_sqrt): Remove.
10745 (__ieee754_sqrtf): Remove.
10746 (__ieee754_sqrtl): Remove.
10747 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
10748 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
10749 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
10750 (__ieee754_sqrtf): Remove.
10751 (__ieee754_sqrtl): Remove.
10752
107532018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10754
10755 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
10756 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
10757 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10758 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
10759 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
10760 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10761 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10762 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
10763 Likewise.
10764 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
10765 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
10766 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10767 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10768 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
10769 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
10770 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
10771 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10772 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10773 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
10774 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
10775 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10776 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
10777 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
10778 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
10779 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
10780 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10781 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10782 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
10783 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
10784 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
10785 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
10786 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
10787 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
10788 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
10789 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
10790 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
10791 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10792 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
10793 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
10794 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10795 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
10796 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10797 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10798 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10799 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10800 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
10801 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
10802 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10803 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
10804
108052018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10806
10807 * include/math.h (sqrt): Declare with asm redirect.
10808 (sqrtf): Likewise.
10809 (sqrtl): Likewise.
10810 (sqrtf128): Likewise.
10811 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
10812 nonlib and libnldbl with -fmath-errno.
10813 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
10814 * math/w_sqrt_template.c: Likewise.
10815 * math/w_sqrtf_compat.c: Likewise.
10816 * math/w_sqrtl_compat.c: Likewise.
10817 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
10818 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
10819 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
10820 complex.h.
10821
108222018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10823
10824 * benchtests/Makefile: Define _ISOMAC.
10825 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
10826 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
10827 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
10828 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
10829 * benchtests/bench-timing.h: Define attribute_hidden.
10830
108312018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10832
10833 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
10834 mov + lsr.
10835
108362018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
10837
10838 [BZ #22963]
10839 * localedata/locales/cs_CZ (mon): Rename to...
10840 (alt_mon): This.
10841 (mon): Import from CLDR (genitive case).
10842
108432018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
10844
10845 [BZ #22937]
10846 * localedata/locales/el_CY (abmon): Rename to...
10847 (ab_alt_mon): This.
10848 (abmon): Import from CLDR (abbreviated genitive case).
10849 * localedata/locales/el_GR (abmon): Rename to...
10850 (ab_alt_mon): This.
10851 (abmon): Import from CLDR (abbreviated genitive case).
10852
108532018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
10854
10855 [BZ #22932]
10856 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
10857
108582018-03-15 Robert Buj <robert.buj@gmail.com>
10859
10860 [BZ #22848]
10861 * localedata/locales/ca_ES (abmon): Rename to...
10862 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
10863 (mon): Rename to...
10864 (alt_mon): This.
10865 (abmon): Import from CLDR (genitive case, month names preceded by
10866 "de" or "d’").
10867 (mon): Likewise.
10868 (abday): Synchronize with CLDR.
10869 (d_t_fmt): Likewise.
10870 (d_fmt): Likewise.
10871 (am_pm): Likewise.
10872
10873 (LC_TIME): Improve indentation.
10874 (LC_TELEPHONE): Likewise.
10875 (LC_NAME): Likewise.
10876 (LC_ADDRESS): Likewise.
10877
108782018-03-14 Joseph Myers <joseph@codesourcery.com>
10879
10880 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
10881 (lrintf): Remove definitions used only with old GCC.
10882 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
10883 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
10884 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
10885 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
10886 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
10887 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
10888 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
10889 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
10890 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
10891 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
10892 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
10893 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
10894 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
10895 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
10896 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
10897 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
10898 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
10899 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
10900 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
10901 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
10902 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
10903 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
10904 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
10905 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
10906 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
10907 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
10908 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
10909 [__FAST_MATH__] (__M_SQRT2): Remove macro.
10910
109112018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
10912
10913 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
10914 instruction to unbreak builds with binutils 2.26 and older.
10915
109162018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
10917
10918 * sysdeps/aarch64/strncmp.S (count): New macro.
10919 (strncmp): Store misaligned length in SRC1 in COUNT.
10920 (mutual_align): Adjust.
10921 (misaligned8): Load dword at a time when it is safe.
10922
109232018-03-12 Zack Weinberg <zackw@panix.com>
10924
10925 [BZ #1190]
10926 [BZ #19476]
10927 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
10928 if the _IO_EOF_SEEN bit is already set; update commentary.
10929 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
10930 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
10931
10932 * support/support_openpty.c, support/tty.h: New files.
10933 * support/Makefile (libsupport-routines): Add support_openpty.
10934
10935 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
10936 New test cases.
10937 * libio/Makefile (tests): Add tst-fgetc-after-eof.
10938 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
10939
109402018-03-12 Dmitry V. Levin <ldv@altlinux.org>
10941
10942 * po/pt_BR.po: Update translations.
10943
109442018-03-12 David Michael <fedora.dm0@gmail.com>
10945
10946 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
10947 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
10948 get a port to the startup server.
10949
109502018-03-11 Zack Weinberg <zackw@panix.com>
10951
10952 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
10953 before nldbl-compat.h.
10954
109552018-03-10 Zack Weinberg <zackw@panix.com>
10956
10957 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
10958 math.h or math_private.h.
10959
10960 * sysdeps/alpha/fpu/s_isnan.c
10961 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
10962 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
10963 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
10964 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
10965 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
10966 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
10967 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
10968 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
10969 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
10970 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
10971 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
10972 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
10973 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
10974 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
10975 Include math_private.h.
10976
10977 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
10978 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
10979 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
10980 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
10981 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
10982 * sysdeps/powerpc/power7/fpu/s_logb.c:
10983 Include math.h and math_private.h.
10984
10985 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
10986 uses of $at in .set noat / .set at.
10987
109882018-03-10 H.J. Lu <hongjiu.lu@intel.com>
10989
10990 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
10991 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
10992 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
10993 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
10994 Likewise.
10995
109962018-03-09 Florian Weimer <fweimer@redhat.com>
10997
10998 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
10999 in comment.
11000
110012018-03-09 Aurelien Jarno <aurelien@aurel32.net>
11002
11003 [BZ #22919]
11004 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
11005 Add nop before __startcontext, add explaining comments.
11006
110072018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11008
11009 [BZ #22926]
11010 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
11011 empty for __SPE__.
11012 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
11013 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
11014 Do not build hardware transactional code for __SPE__.
11015 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
11016 (__lll_trylock_elision): Likewise.
11017 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
11018 (__lll_unlock_elision): Likewise.
11019
11020 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
11021 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
11022 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
11023 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
11024 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
11025 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
11026 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
11027 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
11028 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
11029 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
11030 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
11031 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
11032 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
11033 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
11034 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
11035 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
11036 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
11037 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
11038 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
11039 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
11040 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
11041 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11042 (__ASSUME_CLONE_BACKWARDS): Define.
11043 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
11044 __clone2 if __NR_clone2 is defined.
11045 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11046 (__ASSUME_CLONE_BACKWARDS): Likewise.
11047 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11048 (__ASSUME_CLONE_BACKWARDS): Likewise.
11049 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11050 (__ASSUME_CLONE2): Likewise.
11051 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11052 (__ASSUME_CLONE_BACKWARDS3): Likewise.
11053 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
11054 variants and the define architecture can use.
11055 (__ASSUME_CLONE_DEFAULT): Define as default.
11056 * sysdeps/unix/sysv/linux/mips/kernel-features.h
11057 (__ASSUME_CLONE_BACKWARDS): Likewise.
11058 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11059 (__ASSUME_CLONE_BACKWARDS): Likewise.
11060 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11061 (__ASSUME_CLONE_BACKWARDS2): Likewise.
11062
110632018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
11064
11065 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
11066
11067 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
11068 time.
11069
11070 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
11071 (do_test_limit): Likewise.
11072
11073 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
11074 for every implementation.
11075 (do_test): Likewise.
11076
11077 * benchtests/bench-strncmp.c: Convert output to json.
11078
110792018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
11080
11081 * io/futimens.c: Add missing start-of-file descriptive comment.
11082 * io/utime.c: Likewise.
11083 * misc/futimesat.c: Likewise.
11084 * misc/utimes.c: Likewise.
11085 * sysdeps/mach/hurd/futimesat.c: Likewise.
11086 * sysdeps/mach/hurd/utimes.c: Likewise.
11087 * sysdeps/posix/utime.c: Likewise.
11088 * sysdeps/posix/utimes.c: Likewise.
11089 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
11090 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
11091 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
11092 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
11093
110942018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11095
11096 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
11097 hurd_futimes.
11098 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
11099 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
11100 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
11101 (__futimens): Move implementation to...
11102 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
11103 utime_tvalue_from_tspec): ... new helper functions.
11104 (hurd_futimens): New function.
11105 * sysdeps/mach/hurd/futimesat.c: New file.
11106 * sysdeps/mach/hurd/utimensat.c: New file.
11107
111082018-03-05 Flávio Cruz <flaviocruz@gmail.com>
11109
11110 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
11111 UTIME_OMIT): New macros.
11112 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
11113 before reverting to converting time spec to time value and calling
11114 __file_utimes.
11115 * sysdeps/mach/hurd/utime-helper.c: New file.
11116 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
11117 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
11118 reverting to utime_tvalue_from_tval and __file_utimes.
11119 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
11120 (__lutimes): Just call hurd_futimens after lookup.
11121 * sysdeps/mach/hurd/utimes.c: Likewise.
11122
111232018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11124
11125 * bits/sigaction.h: Add include guard.
11126 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
11127 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
11128 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
11129 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
11130 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
11131 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
11132 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
11133 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
11134 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
11135
111362018-03-05 Joseph Myers <joseph@codesourcery.com>
11137
11138 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
11139 -Wmaybe-uninitialized for -Os.
11140 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
11141 this disabling.
11142
111432018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11144
11145 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
11146 __INO_T_MATCHES_INO64_T is defined.
11147 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
11148 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
11149 of definition.
11150 * dirent/alphasort64.c: Likewise.
11151 * dirent/scandir.c: Likewise.
11152 * dirent/scandir64-tail.c: Likewise.
11153 * dirent/scandir64.c: Likewise.
11154 * dirent/scandirat.c: Likewise.
11155 * dirent/scandirat64.c: Likewise.
11156 * dirent/versionsort.c: Likewise.
11157 * dirent/versionsort64.c: Likewise.
11158 * include/dirent.h: Likewise.
11159
11160 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
11161 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
11162 for socketpair endpoint.
11163 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
11164 WRITE_BUFFER_SIZE as buffer size for sending socket.
11165 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
11166 issue on system where send is implemented with sendto syscall.
11167 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
11168 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
11169 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
11170 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
11171
11172 [BZ #21269]
11173 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
11174 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
11175 sa_restorer for vDSO case.
11176 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
11177
111782018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11179
11180 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
11181 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
11182 * hurd/hurd/ioctl.h: Include <mach/port.h>
11183 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
11184 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
11185 <mach/mach_types.h> and <mach/message.h>.
11186 (headers): Move mach/param.h to bits/mach/param.h.
11187 * sysdeps/mach/i386/mach/param.h: Move file to ...
11188 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
11189 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
11190 of <mach/param.h>.
11191 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
11192 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
11193 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
11194 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
11195 trivial, for C++ conformity.
11196 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
11197 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
11198 Process mig output through $(migheadersed).
11199 * hurd/Makefile (migheadersed): Define variable.
11200 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
11201 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
11202 headers.
11203 * hurd/hurd.h: Include <bits/types/sigset_t.h>
11204 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
11205 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
11206 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
11207 <bits/types/sigset_t.h>.
11208 [!defined __USE_GNU]: Do not #error out.
11209 (struct hurd_sigstate): Use _NSIG instead of NSIG.
11210 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
11211 Include <stddef.h> and <bits/types/sigset_t.h>
11212 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
11213 instead of sighandler_t.
11214 * stdlib/errno.h (error_t): Move definition to...
11215 * bits/types/error_t.h: ... new header.
11216 * stdlib/Makefile (headers): Add bits/types/error_t.h.
11217 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
11218 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
11219 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
11220 * hurd/hurd.h: Include <bits/types/error_t.h>
11221 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
11222 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
11223 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
11224 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
11225 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
11226 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
11227 * sysdeps/mach/hurd/futimens.c: New file.
11228
112292018-03-03 Andreas Schwab <schwab@linux-m68k.org>
11230
11231 [BZ #22918]
11232 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
11233 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
11234 * nscd/gai.c (__nss_hosts_database): Readd definition.
11235 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
11236 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
11237 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
11238
112392018-03-02 Joseph Myers <joseph@codesourcery.com>
11240
11241 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
11242 (ifunc_one): Likewise.
11243
112442018-03-01 DJ Delorie <dj@delorie.com>
11245
11246 [BZ #22342]
11247 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
11248 key value.
11249
112502018-03-01 Maciej W. Rozycki <macro@mips.com>
11251
11252 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
11253 `match_pid' parameter.
11254 (td_ta_thr_iter): Update accordingly.
11255
112562018-03-01 Florian Weimer <fweimer@redhat.com>
11257
11258 * nptl/Makefile (install-lib-ldscripts): Remove.
11259 (install): Remove rule.
11260 ($(inst_libdir)/libpthread.so): Likewise.
11261
112622018-03-01 Mike FABIAN <mfabian@redhat.com>
11263
11264 [BZ #22896]
11265 * localedata/locales/an_ES: update month and day names,
11266 improve d_fmt, improve postal_fmt, add country_post,
11267 add country_isbn
11268
112692018-03-01 Mike FABIAN <mfabian@redhat.com>
11270
11271 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
11272 Ukrainian instead of Bulgarian.
11273
112742018-03-01 Florian Weimer <fweimer@redhat.com>
11275
11276 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
11277 reference.
11278
112792018-03-01 Florian Weimer <fweimer@redhat.com>
11280
11281 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
11282 * nptl/Makefile (routines): Add pthread_atfork.
11283 (static-only-routines): Set to pthread_atfork.
11284 (libpthread-routines): Remove pthread_atfork.
11285 (libpthread-static-only-routines): Remove.
11286 (install): Update comment.
11287 (libpthread.so): Do not install libpthread_nonshared.a.
11288 (tests): Do not link with libpthread_nonshared.a.
11289 (generated): Remove libpthread_nonshared.a.
11290 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
11291 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
11292 with libpthread_nonshared.a.
11293
112942018-02-28 Joseph Myers <joseph@codesourcery.com>
11295
11296 [BZ #22902]
11297 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
11298 (libc_feholdexcept_setroundf128): New macro.
11299 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
11300
11301 [BZ #15105]
11302 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
11303 libc_hidden_def.
11304 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
11305 * include/inttypes.h: New file.
11306
113072018-02-27 Joseph Myers <joseph@codesourcery.com>
11308
11309 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
11310 -Os in two more places.
11311
113122018-02-27 Mike FABIAN <mfabian@redhat.com>
11313
11314 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
11315 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
11316 be sorted correctly at the moment because of a bug.
11317
113182018-02-27 Mike FABIAN <mfabian@redhat.com>
11319
11320 [BZ #22550] - es_ES locale (and other es_* locales): collation should
11321 treat ñ as a primary different character, sync the collation
11322 for Spanish with CLDR.
11323 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
11324 * localedata/Makefile: Add new test files.
11325 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
11326 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
11327 collation order.
11328 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
11329 * localedata/am_ET.UTF-8.in: New test file.
11330 * localedata/az_AZ.UTF-8.in: Likewise.
11331 * localedata/be_BY.UTF-8.in: Likewise.
11332 * localedata/ber_DZ.UTF-8.in: Likewise.
11333 * localedata/ber_MA.UTF-8.in: Likewise.
11334 * localedata/bg_BG.UTF-8.in: Likewise.
11335 * localedata/br_FR.UTF-8.in: Likewise.
11336 * localedata/cmn_TW.UTF-8.in: Likewise.
11337 * localedata/crh_UA.UTF-8.in: Likewise.
11338 * localedata/csb_PL.UTF-8.in: Likewise.
11339 * localedata/cv_RU.UTF-8.in: Likewise.
11340 * localedata/cy_GB.UTF-8.in: Likewise.
11341 * localedata/dz_BT.UTF-8.in: Likewise.
11342 * localedata/eo.UTF-8.in: Likewise.
11343 * localedata/es_ES.UTF-8.in: Likewise.
11344 * localedata/fa_IR.UTF-8.in: Likewise.
11345 * localedata/fi_FI.UTF-8.in: Likewise.
11346 * localedata/fil_PH.UTF-8.in: Likewise.
11347 * localedata/fur_IT.UTF-8.in: Likewise.
11348 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
11349 * localedata/ha_NG.UTF-8.in: Likewise.
11350 * localedata/ig_NG.UTF-8.in: Likewise.
11351 * localedata/ik_CA.UTF-8.in: Likewise.
11352 * localedata/kk_KZ.UTF-8.in: Likewise.
11353 * localedata/ku_TR.UTF-8.in: Likewise.
11354 * localedata/ky_KG.UTF-8.in: Likewise.
11355 * localedata/ln_CD.UTF-8.in: Likewise.
11356 * localedata/mi_NZ.UTF-8.in: Likewise.
11357 * localedata/ml_IN.UTF-8.in: Likewise.
11358 * localedata/mn_MN.UTF-8.in: Likewise.
11359 * localedata/mr_IN.UTF-8.in: Likewise.
11360 * localedata/mt_MT.UTF-8.in: Likewise.
11361 * localedata/nb_NO.UTF-8.in: Likewise.
11362 * localedata/om_KE.UTF-8.in: Likewise.
11363 * localedata/os_RU.UTF-8.in: Likewise.
11364 * localedata/ps_AF.UTF-8.in: Likewise.
11365 * localedata/ro_RO.UTF-8.in: Likewise.
11366 * localedata/ru_RU.UTF-8.in: Likewise.
11367 * localedata/sc_IT.UTF-8.in: Likewise.
11368 * localedata/se_NO.UTF-8.in: Likewise.
11369 * localedata/sq_AL.UTF-8.in: Likewise.
11370 * localedata/sv_SE.UTF-8.in: Likewise.
11371 * localedata/szl_PL.UTF-8.in: Likewise.
11372 * localedata/tg_TJ.UTF-8.in: Likewise.
11373 * localedata/tk_TM.UTF-8.in: Likewise.
11374 * localedata/tt_RU.UTF-8.in: Likewise.
11375 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
11376 * localedata/ug_CN.UTF-8.in: Likewise.
11377 * localedata/uz_UZ.UTF-8.in: Likewise.
11378 * localedata/vi_VN.UTF-8.in: Likewise.
11379 * localedata/yi_US.UTF-8.in: Likewise.
11380 * localedata/yo_NG.UTF-8.in: Likewise.
11381 * localedata/zh_CN.UTF-8.in: Likewise.
11382 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
11383 file and fix bugs in the collation.
11384 * localedata/locales/az_AZ: Likewise.
11385 * localedata/locales/be_BY: Likewise.
11386 * localedata/locales/ber_DZ: Likewise.
11387 * localedata/locales/ber_MA: Likewise.
11388 * localedata/locales/bg_BG: Likewise.
11389 * localedata/locales/br_FR: Likewise.
11390 * localedata/locales/br_FR@euro: Likewise.
11391 * localedata/locales/ca_ES: Likewise.
11392 * localedata/locales/cns11643_stroke: Likewise.
11393 * localedata/locales/crh_UA: Likewise.
11394 * localedata/locales/cs_CZ: Likewise.
11395 * localedata/locales/csb_PL: Likewise.
11396 * localedata/locales/cv_RU: Likewise.
11397 * localedata/locales/cy_GB: Likewise.
11398 * localedata/locales/da_DK: Likewise.
11399 * localedata/locales/dz_BT: Likewise.
11400 * localedata/locales/en_CA: Likewise.
11401 * localedata/locales/eo: Likewise.
11402 * localedata/locales/es_CU: Likewise.
11403 * localedata/locales/es_EC: Likewise.
11404 * localedata/locales/es_ES: Likewise.
11405 * localedata/locales/es_US: Likewise.
11406 * localedata/locales/et_EE: Likewise.
11407 * localedata/locales/fa_IR: Likewise.
11408 * localedata/locales/fi_FI: Likewise.
11409 * localedata/locales/fil_PH: Likewise.
11410 * localedata/locales/fur_IT: Likewise.
11411 * localedata/locales/gez_ER@abegede: Likewise.
11412 * localedata/locales/ha_NG: Likewise.
11413 * localedata/locales/hr_HR: Likewise.
11414 * localedata/locales/hsb_DE: Likewise.
11415 * localedata/locales/hu_HU: Likewise.
11416 * localedata/locales/ig_NG: Likewise.
11417 * localedata/locales/ik_CA: Likewise.
11418 * localedata/locales/is_IS: Likewise.
11419 * localedata/locales/iso14651_t1_pinyin: Likewise.
11420 * localedata/locales/kk_KZ: Likewise.
11421 * localedata/locales/ku_TR: Likewise.
11422 * localedata/locales/ky_KG: Likewise.
11423 * localedata/locales/ln_CD: Likewise.
11424 * localedata/locales/lt_LT: Likewise.
11425 * localedata/locales/lv_LV: Likewise.
11426 * localedata/locales/mi_NZ: Likewise.
11427 * localedata/locales/ml_IN: Likewise.
11428 * localedata/locales/mn_MN: Likewise.
11429 * localedata/locales/mr_IN: Likewise.
11430 * localedata/locales/mt_MT: Likewise.
11431 * localedata/locales/nb_NO: Likewise.
11432 * localedata/locales/om_KE: Likewise.
11433 * localedata/locales/os_RU: Likewise.
11434 * localedata/locales/pl_PL: Likewise.
11435 * localedata/locales/ps_AF: Likewise.
11436 * localedata/locales/ro_RO: Likewise.
11437 * localedata/locales/ru_RU: Likewise.
11438 * localedata/locales/ru_UA: Likewise.
11439 * localedata/locales/sc_IT: Likewise.
11440 * localedata/locales/se_NO: Likewise.
11441 * localedata/locales/si_LK: Likewise.
11442 * localedata/locales/sq_AL: Likewise.
11443 * localedata/locales/sv_FI: Likewise.
11444 * localedata/locales/sv_FI@euro: Likewise.
11445 * localedata/locales/sv_SE: Likewise.
11446 * localedata/locales/szl_PL: Likewise.
11447 * localedata/locales/tg_TJ: Likewise.
11448 * localedata/locales/ti_ER: Likewise.
11449 * localedata/locales/tk_TM: Likewise.
11450 * localedata/locales/tl_PH: Likewise.
11451 * localedata/locales/tr_TR: Likewise.
11452 * localedata/locales/tt_RU: Likewise.
11453 * localedata/locales/tt_RU@iqtelif: Likewise.
11454 * localedata/locales/ug_CN: Likewise.
11455 * localedata/locales/uk_UA: Likewise.
11456 * localedata/locales/uz_UZ: Likewise.
11457 * localedata/locales/uz_UZ@cyrillic: Likewise.
11458 * localedata/locales/vi_VN: Likewise.
11459 * localedata/locales/yi_US: Likewise.
11460 * localedata/locales/yo_NG: Likewise.
11461
114622018-02-27 Mike FABIAN <mfabian@redhat.com>
11463
11464 * gen-locales.mk: Make test files which contain @ modifiers in their
11465 name work.
11466 * localedata/gen-locale.sh: Likewise.
11467
114682018-02-27 Mike FABIAN <mfabian@redhat.com>
11469
11470 * posix/tst-fnmatch.input: Fix results for range expressions
11471 for non C locales.
11472 * posix/tst-regexloc.c: Do not use a range expression for
11473 de_DE.ISO-8859-1 locale.
11474
114752018-02-27 Mike FABIAN <mfabian@redhat.com>
11476
11477 * posix/bug-regex5.c: Fix test case because with the new
11478 iso14651_t1_common file, the da_DK locale now has 6 collating elements
11479 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
11480 file.
11481
114822018-02-27 Mike FABIAN <mfabian@redhat.com>
11483
11484 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
11485 downloaded from ISO, the collation order of @-. and space has changed.
11486 Therefore, this test file needed to be adapted.
11487 * localedata/fr_CA.UTF-8.in: Likewise.
11488 * localedata/fr_FR.UTF-8.in: Likewise.
11489 * localedata/uk_UA.UTF-8.in: Likewise.
11490
114912018-02-27 Mike FABIAN <mfabian@redhat.com>
11492
11493 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
11494 order of ȥ in the new iso14651_t1_common file.
11495 * localedata/pl_PL.UTF-8.in: Likewise.
11496
114972018-02-27 Mike FABIAN <mfabian@redhat.com>
11498
11499 * localedata/locales/iso14651_t1_common: Add sections for various
11500 scripts to the iso14651_t1_common file.
11501
115022018-02-27 Mike FABIAN <mfabian@redhat.com>
11503
11504 * localedata/locales/iso14651_t1_common: Use the code point of a
11505 character in the fourth collation level instead of IGNORE for all
11506 entries which have IGNORE on all 4 levels.
11507
115082018-02-27 Mike FABIAN <mfabian@redhat.com>
11509
11510 * localedata/locales/iso14651_t1_common: Add some convenient collation
11511 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
11512 rules similar to those in CLDR.
11513
115142018-02-27 Mike FABIAN <mfabian@redhat.com>
11515
11516 * localedata/locales/iso14651_t1_common: The new version of this
11517 file downloaded from ISO contained several syntax errors which
11518 are fixed by this patch.
11519
115202018-02-27 Mike FABIAN <mfabian@redhat.com>
11521
11522 * localedata/locales/iso14651_t1_common: replace all <U.....>
11523 with <U000.....> because glibc understands only 4 digit or 8 digit
11524
115252018-02-27 Mike FABIAN <mfabian@redhat.com>
11526
11527 * localedata/locales/iso14651_t1_common: Necessary changes
11528 to make the file downloaded from ISO usable by glibc.
11529
115302018-02-27 Mike FABIAN <mfabian@redhat.com>
11531
11532 [BZ #14095]
11533 * localedata/locales/iso14651_t1_common: Update file to
11534 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
11535
115362018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11537
11538 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
11539 of <nptl/pthreadP.h>
11540 (thread_attr_compare): Move function to...
11541 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
11542 * sysdeps/nptl/timer_routines.h: ... new header.
11543 * sysdeps/mach/hurd/gai_misc.h: New file.
11544
115452018-02-26 Joseph Myers <joseph@codesourcery.com>
11546
11547 * string/strcoll_l.c: Include <libc-diag.h>.
11548 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
11549 declarations of seq1 and seq2.
11550
11551 [BZ #15105]
11552 * stdlib/atoi.c (atoi): Use libc_hidden_def.
11553 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
11554
115552018-02-26 Dmitry V. Levin <ldv@altlinux.org>
11556
11557 [BZ #22433]
11558 [BZ #22807]
11559 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
11560 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
11561 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
11562 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
11563 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
11564 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
11565
115662018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11567
11568 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
11569 macros used in __ptrace_request.
11570
115712018-02-23 H.J. Lu <hongjiu.lu@intel.com>
11572
11573 [BZ #22792]
11574 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
11575 to $(CC).
11576 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
11577 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
11578 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
11579 <tcb-offsets.h>.
11580
115812018-02-23 Joseph Myers <joseph@codesourcery.com>
11582
11583 [BZ #15105]
11584 * ctype/ctype.c (tolower): Use libc_hidden_def.
11585 (toupper): Likewise.
11586 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
11587 [!_ISOMAC] (toupper): Likewise.
11588
115892018-02-23 Mike FABIAN <mfabian@redhat.com>
11590
11591 * localedata/Makefile: Remove --quiet argument when
11592 installing locales
11593
115942018-02-23 Mike FABIAN <mfabian@redhat.com>
11595
11596 [BZ #17438]
11597 * localedata/locales/pt_BR (LC_TIME): use / instead of -
11598 in d_fmt.
11599 * localedata/locales/pt_PT (LC_TIME): likewise
11600
116012018-02-23 Mike FABIAN <mfabian@redhat.com>
11602
11603 [BZ #22646]
11604 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
11605 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
11606 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
11607
116082018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11609
11610 * sysdeps/sparc/fpu/libm-test-ulps: Update.
11611
11612 * nptl/Makefile (routines): Remove unregister-atfork.
11613 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
11614 (fork_handler_alloc): Remove function.
11615 (fork_handlers, fork_handler_init): New variables.
11616 (__fork_lock): Rename to atfork_lock.
11617 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
11618 to use a dynamic array to add/remove atfork handlers.
11619 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
11620 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
11621 Remove declaration.
11622 (fork_handler): Remove next, refcntr, and need_signal member.
11623 (__run_fork_handler_type): New enum.
11624 (__run_fork_handlers): New prototype.
11625 * nptl/register-atfork.c: Remove file.
11626 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
11627
11628 * sysdeps/nptl/nptl-signals.h: Move to ...
11629 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
11630 comments.
11631 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
11632 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
11633 unnecessary check for SIGTIMER.
11634 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
11635 remove unnecessary removal of SIGTIMER.
11636 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
11637 include-signals.h rename.
11638 * nptl/pthreadP.h: Likewise.
11639 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
11640 __is_internal_signal instead of __nptl_is_internal_signal.
11641
116422018-02-22 Andrew Waterman <andrew@sifive.com>
11643
11644 [BZ # 22884]
11645 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
11646 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
11647 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
11648 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
11649
116502018-02-22 DJ Delorie <dj@delorie.com>
11651
11652 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
11653
116542018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
11655
11656 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
11657 do_misaligned, not misaligned8.
11658
116592018-02-22 Steve Ellcey <sellcey@cavium.com>
11660
11661 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
11662 Add memcpy_thunderx2.
11663 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
11664 Increment to 4.
11665 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
11666 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
11667 and IS_THUNDERX2PA checks.
11668 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
11669 Use macro to set name appropriately.
11670 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
11671 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
11672 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
11673 New macro.
11674 (IS_THUNDERX2): New macro.
11675
116762018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
11677
11678 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11679
116802018-02-21 Zack Weinberg <zackw@panix.com>
11681
11682 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
11683 Define here, unconditionally.
11684 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
11685 * libio/libioP.h: Remove #if 0 blocks.
11686 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
11687 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
11688 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
11689
11690 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
11691 Assume weak_alias is always defined.
11692
11693 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
11694 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
11695 Remove #if 0 and #ifdef TODO blocks.
11696 Assume text_set_element is always defined.
11697
11698 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
11699 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
11700 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
11701
11702 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
11703 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
11704 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
11705 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
11706 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
11707 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
11708 Reformat bit flags for _flags field to make occupancy clearer.
11709 Update commentary.
11710 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
11711 Keep definitions consistent with those in libio/libio.h.
11712
11713 * libio/libio.h (_IO_file_flags): Remove macro.
11714 All uses changed to _flags.
11715
11716 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
11717 (__HAVE_COLUMN, _IO_BE): Don't define.
11718 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
11719 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
11720 * libio/libioP.h (EOF): Don't define.
11721 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
11722 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
11723 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
11724 testing _IO_UNIFIED_JUMPTABLES.
11725
11726 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
11727 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
11728 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
11729 (_IO_size_t): Delete; all uses changed to size_t.
11730 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
11731 (_IO_off_t): Delete; all uses changed to off_t.
11732 (_IO_off64_t): Delete; all uses changed to off64_t.
11733 (_IO_pid_t): Delete; all uses changed to pid_t.
11734 (_IO_uid_t): Delete; all uses changed to uid_t.
11735 (_IO_wint_t): Delete; all uses changed to wint_t.
11736 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
11737 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
11738 (_IO_cookie_io_functions_t): Delete; all uses changed to
11739 cookie_io_functions_t.
11740 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
11741 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
11742 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
11743 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
11744
11745 * libio/iofopncook.c: Remove unnecessary forward declarations.
11746 * libio/iolibio.h: Correct outdated commentary.
11747 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
11748 * stdio-common/fxprintf.c (__fxprintf_nocancel):
11749 Remove unnecessary casts.
11750 * stdio-common/getline.c: Use _IO_getdelim directly.
11751 Don't redefine ssize_t.
11752 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
11753 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
11754 Remove outdated comments.
11755 * stdio-common/vfscanf.c: Don't redefine va_list.
11756
11757 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
11758 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
11759 Remove preprocessor conditionals on _LIBC and __USE_GNU,
11760 which are always true, and __cplusplus, which is always false.
11761
117622018-02-21 Joseph Myers <joseph@codesourcery.com>
11763
11764 [BZ #15105]
11765 [BZ #19463]
11766 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
11767 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
11768 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
11769 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
11770 libc_hidden_proto.
11771 [!_ISOMAC] (putc_unlocked): Likewise.
11772 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
11773 define inline if [__USE_EXTERN_INLINES].
11774 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
11775 putc_unlocked.
11776
11777 [BZ #15105]
11778 [BZ #19463]
11779 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
11780 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
11781 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
11782 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
11783 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
11784 getc_unlocked.
11785 * time/tzfile.c (__tzfile_read): Likewise.
11786
117872018-02-21 Mike FABIAN <mfabian@redhat.com>
11788
11789 [BZ #22517]
11790 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
11791
117922018-02-21 Rical Jasan <ricaljasan@pacific.net>
11793
11794 * io/fcntl.h: Fix a typo in a comment.
11795
117962018-02-21 Rical Jasan <ricaljasan@pacific.net>
11797
11798 [BZ #22862]
11799 * include/features.h: Add _ISOC11_SOURCE to test for whether to
11800 define _DEFAULT_SOURCE.
11801 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
11802
118032018-02-21 Florian Weimer <fweimer@redhat.com>
11804
11805 [BZ #20890]
11806 * elf/cache.c (save_cache): Call fsync on temporary file before
11807 renaming it.
11808 (save_aux_cache): Call fdatasync on temporary file before renaming
11809 it.
11810
118112018-02-21 Florian Weimer <fweimer@redhat.com>
11812
11813 [BZ #22787]
11814 * include/caller.h: Remove file.
11815 * elf/dl-caller.c: Likewise.
11816 * elf/Makefile (dl-routines): Remove dl-caller.
11817 (shared-only-routines): Do not add dl-caller.
11818 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
11819 __check_caller.
11820 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
11821 member.
11822 (dl_open_worker): Do not call __check_caller.
11823 (_dl_open): Do not set caller_dl_open member.
11824 * elf/rtld.c (_rtld_global_ro): Do not initialize
11825 _dl_check_caller member.
11826 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
11827 _dl_check_caller member.
11828 (_dl_check_caller): Remove declaration.
11829 * sysdeps/unix/sysv/linux/dl-execstack.c
11830 (_dl_make_stack_executable): Do not call __check_caller.
11831
118322018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11833
11834 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
11835 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
11836
118372018-02-20 Rical Jasan <ricaljasan@pacific.net>
11838
11839 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
11840 description.
11841
118422018-02-20 Rical Jasan <ricaljasan@pacific.net>
11843
11844 [BZ #16335]
11845 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
11846 of 199606L, 200112L, and 200809L.
11847 (_XOPEN_SOURCE): Document special values of 600 and 700.
11848 (_ISOC11_SOURCE): Document macro.
11849 (_ATFILE_SOURCE): Likewise.
11850 (_FORTIFY_SOURCE): Likewise.
11851
118522018-02-19 Joseph Myers <joseph@codesourcery.com>
11853
11854 [BZ #15105]
11855 [BZ #19463]
11856 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
11857 and define as weak alias of __ferror_unlocked. Use
11858 libc_hidden_weak.
11859 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
11860 libc_hidden_proto.
11861 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
11862 function if [__USE_EXTERN_INLINES].
11863 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
11864 ferror_unlocked.
11865
118662018-02-19 Rical Jasan <ricaljasan@pacific.net>
11867
11868 [BZ #6889]
11869 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
11870
118712018-02-18 Aurelien Jarno <aurelien@aurel32.net>
11872
11873 [BZ #22818]
11874 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
11875 the GLIBC_2.1 version.
11876
118772018-02-18 Aurelien Jarno <aurelien@aurel32.net>
11878
11879 [BZ #21508]
11880 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
11881 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
11882 intl/tst-gettext-de.po from po/de.po by removing the
11883 POT-Creation-Date line.
11884 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
11885 ../po/de.po.
11886 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
11887 ../po/de.po.
11888
118892018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
11890
11891 * mach/Makefile (headers): Add mach/param.h.
11892 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
11893 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
11894 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
11895 (__ptsname_r): Move implementation to...
11896 (__ptsname_internal): ... new function. Add filling the STP
11897 structure.
11898
118992018-02-17 John David Anglin <danglin@gcc.gnu.org>
11900
11901 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
11902 idouble to 1 ULP.
11903
119042018-02-16 Rical Jasan <ricaljasan@pacific.net>
11905
11906 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
11907 syntax.
11908
119092018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
11910
11911 * nptl/Makefile (tst-mutex8-ENV): Delete.
11912 * nptl/tst-mutex8.c (check_type):
11913 Add runtime check if mutex will be elided.
11914
119152018-02-15 Joseph Myers <joseph@codesourcery.com>
11916
11917 [BZ #20980]
11918 [BZ #21234]
11919 * manual/install.texi (Configuring and compiling): Describe
11920 passing CC and CFLAGS on configure command line, not as
11921 environment variables. Use @code markup on those variables.
11922 Specify what options go in CC and what go in CFLAGS. Note the
11923 requirement to compile with optimization.
11924 * INSTALL: Regenerated.
11925
11926 [BZ #18124]
11927 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
11928 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
11929 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
11930 __sigprocmask instead of sigprocmask.
11931 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
11932 Likewise.
11933 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
11934 __sigsetjmp and sigprocmask.
11935
11936 [BZ #15105]
11937 * include/argz.h (argz_next): Use libc_hidden_proto.
11938 (__argz_next): Likewise.
11939 * string-argz-next.c (__argz_next): Use libc_hidden_def.
11940 (argz_next): Use libc_hidden_weak.
11941
11942 [BZ #15105]
11943 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
11944 libc_hidden_proto.
11945 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
11946 libc_hidden_def.
11947
11948 [BZ #15105]
11949 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
11950 libc_hidden_proto.
11951 * libio/iofputs.c (fputs): Use libc_hidden_weak.
11952
11953 [BZ #15105]
11954 [BZ #19463]
11955 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
11956 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
11957 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
11958 (__feof_unlocked): New declaration, and inline function if
11959 [__USE_EXTERN_INLINES].
11960 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
11961 instead of feof_unlocked.
11962 * intl/localealias.c [_LIBC] (FEOF): Likewise.
11963 * nss/nsswitch.c (nss_parse_file): Likewise.
11964 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
11965 Likewise.
11966 * time/getdate.c (__getdate_r): Likewise.
11967 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
11968 Define as macro to call __feof_unlocked.
11969
119702018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
11971
11972 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
11973
119742018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
11975
11976 * math/Makefile: Remove mpexp.c and mplog.c
11977 * sysdeps/i386/fpu/mpexp.c: Delete file.
11978 * sysdeps/i386/fpu/mplog.c: Likewise.
11979 * sysdeps/ia64/fpu/mpexp.c: Likewise.
11980 * sysdeps/ia64/fpu/mplog.c: Likewise.
11981 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
11982 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
11983 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
11984 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
11985 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
11986 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
11987 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
11988 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
11989 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
11990 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
11991 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
11992 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
11993 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
11994 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
11995 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
11996 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
11997
119982018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
11999
12000 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12001
120022018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12003
12004 * sysdeps/sh/libm-test-ulps: Update.
12005
120062018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
12007
12008 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
12009 idouble to 1 ULP.
12010
120112018-02-12 Zack Weinberg <zackw@panix.com>
12012
12013 [BZ #19239]
12014 * posix/sys/types.h: Don't include sys/sysmacros.h.
12015 * misc/sys/sysmacros.h: Remove the conditional deprecation
12016 warnings for the macros defined by this header.
12017
120182018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12019
12020 * manual/probes.texi: Remove slowexp probes.
12021 * math/Makefile: Remove slowexp.
12022 * sysdeps/generic/math_private.h (__slowexp): Remove.
12023 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
12024 document error bounds.
12025 * sysdeps/i386/fpu/slowexp.c: Remove.
12026 * sysdeps/ia64/fpu/slowexp.c: Remove.
12027 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
12028 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
12029 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
12030 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
12031 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
12032 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
12033 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
12034 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
12035 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
12036 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
12037 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
12038
120392018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
12040
12041 [BZ #13932]
12042 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
12043 * benchtests/pow-inputs: Update comment for slow path cases.
12044 * manual/probes.texi (slowpow_p10): Delete removed probe.
12045 (slowpow_p10): Likewise.
12046 * math/Makefile: Remove halfulp.c and slowpow.c.
12047 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
12048 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
12049 (__halfulp): Remove.
12050 (__slowpow): Remove.
12051 * sysdeps/i386/fpu/halfulp.c: Delete file.
12052 * sysdeps/i386/fpu/slowpow.c: Likewise.
12053 * sysdeps/ia64/fpu/halfulp.c: Likewise.
12054 * sysdeps/ia64/fpu/slowpow.c: Likewise.
12055 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
12056 improve comments and add error analysis.
12057 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
12058 (power1): Remove function:
12059 (log1): Remove error argument, add error analysis.
12060 (my_log2): Remove function.
12061 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
12062 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12063 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
12064 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
12065 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
12066 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
12067 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
12068 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
12069 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
12070 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
12071 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
12072 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12073 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
12074 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12075
120762018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
12077
12078 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
12079 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
12080
120812018-02-10 Dmitry V. Levin <ldv@altlinux.org>
12082
12083 [BZ #22433]
12084 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
12085 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
12086 and PTRACE_SETHBPREGS.
12087
120882018-02-10 Zack Weinberg <zackw@panix.com>
12089
12090 [BZ #22830]
12091 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
12092 correctly.
12093 * malloc/tst-malloc-stats-cancellation.c: New test case.
12094 * malloc/Makefile: Add new test case.
12095
120962018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12097
12098 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
12099
121002018-02-10 Joseph Myers <joseph@codesourcery.com>
12101
12102 * math/Makefile (libm-narrow-fns): Add add.
12103 (libm-test-funcs-narrow): Likewise.
12104 * math/Versions (GLIBC_2.28): Add narrowing add functions.
12105 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
12106 * math/gen-auto-libm-tests.c (test_functions): Add add.
12107 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
12108 (NARROW_ADD_ROUND_TO_ODD): Likewise.
12109 (NARROW_ADD_TRIVIAL): Likewise.
12110 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
12111 macro.
12112 (__daddl): Likewise.
12113 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
12114 dadd.
12115 (CFLAGS-nldbl-dadd.c): New variable.
12116 (CFLAGS-nldbl-fadd.c): Likewise.
12117 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12118 __nldbl_daddl.
12119 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
12120 prototype.
12121 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
12122 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
12123 * math/auto-libm-test-in: Add tests of add.
12124 * math/auto-libm-test-out-narrow-add: New generated file.
12125 * math/libm-test-narrow-add.inc: New file.
12126 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12127 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
12128 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
12129 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
12130 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
12131 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
12132 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
12133 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
12134 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
12135 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
12136 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
12137 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
12138 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
12139 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
12140 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
12141 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
12142 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
12143 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
12144 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12145 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12146 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12147 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12148 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12149 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12150 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12151 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12152 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12153 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12154 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12155 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12156 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12157 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12164 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12172
12173 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
12174 (f128-pairs): New variable.
12175 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
12176 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
12177 to CFLAGS.
12178 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
12179 Also make tests add $(f128-loader-link) to gnulib-tests.
12180
121812018-02-09 DJ Delorie <dj@redhat.com>
12182
12183 [BZ #22827]
12184 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
12185 64-bit ELF type for 64-bit ELF objects.
12186
121872018-02-09 Joseph Myers <joseph@codesourcery.com>
12188
12189 * math/libm-test-driver.c (snan_tests_arg): New variable.
12190 * math/libm-test-support.h (snan_tests_arg): New declaration.
12191 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
12192
12193 * math/Makefile (test-type-pairs): New variable.
12194 (test-type-pairs-f64xf128-yes): Likewise.
12195 (tests): Add test-narrow-macros.
12196 (libm-test-funcs-narrow): New variable.
12197 (libm-test-c-narrow): Likewise.
12198 (generated): Add $(libm-test-c-narrow).
12199 (libm-tests-base-narrow): New variable.
12200 (libm-tests-narrow): Likewise.
12201 (libm-tests): Add $(libm-tests-narrow).
12202 (libm-tests-for-type): Handle $(libm-tests-narrow).
12203 (libm-test-c-narrow-obj): New variable.
12204 ($(libm-test-c-narrow-obj)): New rule.
12205 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
12206 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
12207 $(o-iterator) to set dependencies and CFLAGS.
12208 * math/gen-auto-libm-tests.c: Document use for narrowing
12209 functions.
12210 (output_for_one_input_case): Take argument NARROW.
12211 (generate_output): Likewise. Update call to
12212 output_for_one_input_case.
12213 (main): Take --narrow option. Update call to generate_output.
12214 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
12215 (apply_lit): Update call to _apply_lit.
12216 (apply_arglit): New function.
12217 (parse_args): Handle "a" arguments.
12218 (parse_auto_input): Handle format names using ":".
12219 * math/README.libm-test: Document "a" parameter type.
12220 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
12221 (ARG_TYPE_TRUE_MIN): Likewise.
12222 (ARG_TYPE_MAX): Likwise.
12223 (ARG_MIN_EXP): Likewise.
12224 (ARG_MAX_EXP): Likewise.
12225 (ARG_MANT_DIG): Likewise.
12226 (TEST_COND_arg_ibm128): Likewise.
12227 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
12228 (TEST_COND_arg_fmt): New macro.
12229 (init_max_error): Update prototype.
12230 * math/libm-test-support.c (test_ibm128): New variable.
12231 (init_max_error): Take argument testing_ibm128 and set test_ibm128
12232 instead of using [TEST_COND_ibm128] conditional.
12233 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
12234 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
12235 [TEST_NARROW] (TEST_MSG): New definition.
12236 (arg_plus_zero): New macro.
12237 (arg_minus_zero): Likewise.
12238 (arg_plus_infty): Likewise.
12239 (arg_minus_infty): Likewise.
12240 (arg_qnan_value_pl): Likewise.
12241 (arg_qnan_value): Likewise.
12242 (arg_snan_value_pl): Likewise.
12243 (arg_snan_value): Likewise.
12244 (arg_max_value): Likewise.
12245 (arg_min_value): Likewise.
12246 (arg_min_subnorm_value): Likewise.
12247 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
12248 (RUN_TEST_LOOP_aa_f): New macro.
12249 (TEST_SUFF): New macro.
12250 (TEST_SUFF_STR): Likewise.
12251 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
12252 (TEST_COND_any_ibm128): New macro.
12253 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
12254 this_func. Update call to init_max_error.
12255 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
12256 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
12257 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
12258 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
12259 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
12260 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
12261 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
12262 * math/test-math-scalar.h (TEST_NARROW): Likewise.
12263 * math/test-math-vector.h (TEST_NARROW): Likewise.
12264 * math/test-arg-double.h: New file.
12265 * math/test-arg-float128.h: Likewise.
12266 * math/test-arg-float32x.h: Likewise.
12267 * math/test-arg-float64.h: Likewise.
12268 * math/test-arg-float64x.h: Likewise.
12269 * math/test-arg-ldouble.h: Likewise.
12270 * math/test-math-narrow.h: Likewise.
12271 * math/test-narrow-macros.c: Likewise.
12272 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
12273 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
12274 test-narrow-macros-ldbl-64.
12275 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
12276
12277 * math/bits/mathcalls-narrow.h: New file.
12278 * include/bits/mathcalls-narrow.h: Likewise.
12279 * math/math-narrow.h: Likewise.
12280 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
12281 (__MATHCALL_NARROW_ARGS_2): Likewise.
12282 (__MATHCALL_NARROW_ARGS_3): Likewise.
12283 (__MATHCALL_NARROW_NORMAL): Likewise.
12284 (__MATHCALL_NARROW_REDIR): Likewise.
12285 (__MATHCALL_NARROW): Likewise.
12286 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
12287 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
12288 defined.
12289 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12290 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
12291 (libm-narrow-fns): New variable.
12292 (libm-narrow-types-basic): Likewise.
12293 (libm-narrow-types-ldouble-yes): Likewise.
12294 (libm-narrow-types-float128-yes): Likewise.
12295 (libm-narrow-types-float128-alias-yes): Likewise.
12296 (libm-narrow-types): Likewise.
12297 (libm-routines): Add narrowing functions.
12298 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
12299 (libc_feholdexcept_setroundf128): New macro.
12300 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
12301 * sysdeps/ieee754/float128/float128_private.h: Include
12302 <math/math-narrow.h>.
12303 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
12304 Undefine and redefine.
12305 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
12306 (libm_alias_float_ldouble): Undefine and redefine.
12307 (libm_alias_double_ldouble): Likewise.
12308
12309 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
12310
123112018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
12312
12313 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
12314 FPCR/FPSR.
12315
123162018-02-09 Rical Jasan <ricaljasan@pacific.net>
12317
12318 * manual/creature.texi: Convert references to gcc.info to gcc.
12319 * manual/stdio.texi: Likewise.
12320 * manual/string.texi: Likewise.
12321
123222018-02-07 Joseph Myers <joseph@codesourcery.com>
12323
12324 [BZ #17979]
12325 * posix/bits/types.h (__int_least8_t): New typedef.
12326 (__uint_least8_t): Likewise.
12327 (__int_least16_t): Likewise.
12328 (__uint_least16_t): Likewise.
12329 (__int_least32_t): Likewise.
12330 (__uint_least32_t): Likewise.
12331 (__int_least64_t): Likewise.
12332 (__uint_least64_t): Likewise.
12333 * sysdeps/generic/stdint.h (int_least8_t): Define using
12334 __int_least8_t.
12335 (int_least16_t): Define using __int_least16_t.
12336 (int_least32_t): Define using __int_least32_t.
12337 (int_least64_t): Define using __int_least64_t.
12338 (uint_least8_t): Define using __uint_least8_t.
12339 (uint_least16_t): Define using __uint_least16_t.
12340 (uint_least32_t): Define using __uint_least32_t.
12341 (uint_least64_t): Define using __uint_least64_t.
12342 * wcsmbs/uchar.h: Include <bits/types.h>.
12343 (char16_t): Define using __uint_least16_t conditional only on
12344 [!__USE_ISOCXX11].
12345 (char32_t): Define using __uint_least32_t conditional only on
12346 [!__USE_ISOCXX11].
12347 * wcsmbs/test-char-types.c: New file.
12348 * wcsmbs/Makefile (tests): Add test-char-types.
12349
12350 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
12351 version to 4.0.1.
12352
123532018-02-07 Zack Weinberg <zackw@panix.com>
12354
12355 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
12356 Delete all contents except for definitions of _G_HAVE_MMAP and
12357 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
12358 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
12359 sysdeps/unix/sysv/linux/_G_config.h. Make same content
12360 change as above.
12361
12362 * libio/libio.h: Don't include bits/_G_config.h here.
12363 Include stddef.h with __need_wchar_t defined. Include
12364 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
12365 Define _IO_iconv_t here, directly.
12366 Don't define _IO_HAVE_ST_BLKSIZE.
12367 * libio/libioP.h: Include _G_config.h here. Move include of
12368 shlib-compat.h up with rest of includes. Simplify conditionals
12369 controlling definition of _IO_JUMPS_OFFSET.
12370
12371 * csu/init.c: Remove always-true #if around entire file.
12372 Don't include stdio.h. Set _IO_stdin_used to hardwired
12373 constant 0x20001, and update commentary.
12374 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
12375 Replace all uses of _G_va_list with __gnuc_va_list.
12376 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
12377 instead of #if _IO_HAVE_ST_BLKSIZE.
12378 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
12379 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
12380 not #ifdef.
12381
12382 * libio/bits/libio.h: Move back to libio/libio.h and adjust
12383 multiple-include guard to match.
12384 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
12385 into this file.
12386 Remove preprocessor conditionals that are always true and/or
12387 redundant to other preprocessor conditionals in the same nest.
12388 Include shlib-compat.h unconditionally.
12389 Error out if _LIBC is not defined, or if _ISOMAC is defined,
12390 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
12391 defined after including stdio.h.
12392 Use __BEGIN_DECLS/__END_DECLS.
12393
12394 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
12395 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
12396 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
12397
123982018-02-07 Zack Weinberg <zackw@panix.com>
12399
12400 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
12401 New single-type headers split from _G_config.h.
12402 * libio/bits/types/cookie_io_functions_t.h
12403 * libio/bits/types/struct_FILE.h
12404 New single-type headers split from libio.h.
12405
12406 * libio/Makefile: Install the above new headers. Don't install
12407 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
12408 bits/libio-ldbl.h.
12409 * libio/_G_config.h, libio/libio.h: Delete file.
12410
12411 * libio/bits/libio.h: Remove improper-inclusion guard.
12412 Include stdio.h and don't repeat anything that it does.
12413 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
12414 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
12415 __io_read_fn as cookie_read_function_t,
12416 __io_write_fn as cookie_write_function_t,
12417 __io_seek_fn as cookie_seek_function_t,
12418 __io_close_fn as cookie_close_function_t,
12419 and _IO_cookie_io_functions_t as cookie_io_functions_t.
12420 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
12421 here, in the "compatibility defines" section. Remove an #if 0
12422 block. Use the "body" macros from bits/types/struct_FILE.h to
12423 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
12424 and _IO_ferror_unlocked.
12425 Move prototypes of __uflow and __overflow...
12426
12427 * libio/stdio.h: ...here. Don't include bits/libio.h.
12428 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
12429 directly from stdarg.h. Include bits/types/__fpos_t.h,
12430 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
12431 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
12432 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
12433 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
12434 cookie_io_functions_t, not _IO_cookie_io_functions_t;
12435 __ssize_t, not _IO_ssize_t. Unconditionally define
12436 BUFSIZ as 8192 and EOF as (-1).
12437
12438 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
12439 macros from bits/types/struct_FILE.h instead of _IO_* macros
12440 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
12441 instead of _IO_ssize_t.
12442 * libio/bits/stdio2.h: Similarly.
12443
12444 * libio/iolibio.h: Add multiple-include guard.
12445 Include bits/libio.h after stdio.h.
12446 * libio/libioP.h: Add multiple-include guard.
12447 Include stdio.h and bits/libio.h before iolibio.h.
12448
12449 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
12450 * include/bits/types/cookie_io_functions_t.h
12451 * include/bits/types/struct_FILE.h: New wrappers.
12452
12453 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
12454 Get definitions of _G_fpos_t and _G_fpos64_t from
12455 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
12456 respectively. Remove improper-inclusion guards.
12457
12458 * conform/data/stdio.h-data: Update expectations of va_list.
12459 * scripts/check-installed-headers.sh: Remove special case for
12460 libio.h and _G_config.h.
12461
124622018-02-07 Joseph Myers <joseph@codesourcery.com>
12463
12464 [BZ #15105]
12465 [BZ #19463]
12466 * include/sys/sysmacros.h [!_ISOMAC]
12467 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
12468 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
12469 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
12470 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
12471 libc_hidden_proto.
12472 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
12473 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
12474 Likewise.
12475 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
12476 Undefine and redefine to add use __gnu_dev_ prefix.
12477 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
12478 Likewise.
12479 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
12480 and define as hidden inline function.
12481 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
12482 Likewise.
12483 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
12484 Likewise.
12485 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
12486 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
12487 (gnu_dev_minor): Likewise.
12488 (gnu_dev_makedev): Likewise.
12489 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
12490 makedev.
12491 * posix/wordexp.c (exec_comm_child): Likewise.
12492 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
12493 instead of minor and __gnu_dev_major instead of major.
12494 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
12495 __gnu_dev_major instead of major.
12496 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
12497 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
12498 instead of gnu_dev_minor.
12499 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
12500 (SLAVE_P): Likewise.
12501 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
12502 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
12503 instead of major.
12504
12505 [BZ #21313]
12506 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
12507 in another place.
12508 * locale/weightwc.h (findidx): Likewise.
12509
125102018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
12511
12512 * manual/probes.texi (slowlog): Delete documentation of removed probe.
12513 (slowlog_inexact): Likewise
12514 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
12515 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
12516
125172018-02-07 Igor Gnatenko <ignatenko@redhat.com>
12518
12519 [BZ #22797]
12520 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
12521 missing second underscore to parameter name.
12522
125232018-02-06 Joseph Myers <joseph@codesourcery.com>
12524
12525 [BZ #14508]
12526 [BZ #15512]
12527 [BZ #17082]
12528 [BZ #20530]
12529 * bits/byteswap.h: Update file comment. Do not include
12530 <bits/byteswap-16.h>.
12531 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
12532 constant.
12533 (__bswap_16): Define as inline function.
12534 (__bswap_constant_32): Reformat definition.
12535 (__bswap_32): Always define as inline function, not macro, using
12536 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
12537 otherwise __bswap_constant_32.
12538 (__bswap_constant_64): Reformat definition. Do not use
12539 __extension__ here.
12540 (__bswap_64): Always define as inline function, not macro. Use
12541 __extension__ on function definition. Use __builtin_bswap64 if
12542 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
12543 * string/test-endian-file-scope.c: New file.
12544 * string/test-endian-sign-conversion.c: Likewise.
12545 * string/Makefile (headers): Remove bits/byteswap-16.h.
12546 (tests): Add test-endian-file-scope and
12547 test-endian-sign-conversion.
12548 (CFLAGS-test-endian-sign-conversion.c): New variable.
12549 * bits/byteswap-16.h: Remove file.
12550 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
12551 * sysdeps/ia64/bits/byteswap.h: Likewise.
12552 * sysdeps/m68k/bits/byteswap.h: Likewise.
12553 * sysdeps/s390/bits/byteswap-16.h: Likewise.
12554 * sysdeps/s390/bits/byteswap.h: Likewise.
12555 * sysdeps/tile/bits/byteswap.h: Likewise.
12556 * sysdeps/x86/bits/byteswap-16.h: Likewise.
12557 * sysdeps/x86/bits/byteswap.h: Likewise.
12558
12559 [BZ #17721]
12560 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
12561 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
12562 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
12563 199901L] (__restrict): Define to restrict.
12564
12565 [BZ #19667]
12566 * string/testcopy.c: Include <support/support.h>. Do not include
12567 <malloc.h>. Use <support/test-driver.c>.
12568 (main): Rename to do_test. Make static. Use xmalloc instead of
12569 malloc.
12570
12571 [BZ #13575]
12572 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
12573 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
12574 (SSIZE_MAX): Define to INT_MAX.
12575 * posix/test-ssize-max.c: New file.
12576 * posix/Makefile (tests): Add test-ssize-max.
12577
12578 [BZ #19668]
12579 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
12580 <support/support.h>. Do not include <malloc.h>.
12581 (query_auxv): Use xmalloc instead of malloc.
12582
12583 [BZ #14553]
12584 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
12585 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
12586 instead of loff_t.
12587
125882018-02-06 Florian Weimer <fweimer@redhat.com>
12589
12590 [BZ #18023]
12591 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12592 Use scratch_buffer instead of extend_alloca.
12593
125942018-02-06 Zack Weinberg <zackw@panix.com>
12595
12596 * libio/stdio.h: Don't define getc or putc as macros.
12597 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
12598 not _IO_getc and _IO_putc.
12599
12600 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
12601 * stdio-common/tstgetln.c: Don't redefine ssize_t.
12602
126032018-02-06 Joseph Myers <joseph@codesourcery.com>
12604
12605 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
12606 (TCP_FASTOPEN_NO_COOKIE): Likewise.
12607
12608 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
12609
12610 [BZ #14890]
12611 * elf/elf.h (NT_PRFPREG): New macro.
12612 (NT_S390_VXRS_LOW): Likewise.
12613 (NT_S390_VXRS_HIGH): Likewise.
12614 (NT_S390_GS_CB): Likewise.
12615 (NT_S390_GS_BC): Likewise.
12616 (NT_S390_RI_CB): Likewise.
12617
12618 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12619 (MAP_SYNC): New macro.
12620 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
12621 Likewise.
12622 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12623 (MAP_SYNC): Likewise.
12624 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12625 (MAP_SYNC): Likewise.
12626 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12627 (MAP_SYNC): Likewise.
12628 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12629 (MAP_SYNC): Likewise.
12630 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12631 (MAP_SYNC): Likewise.
12632 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12633 (MAP_SYNC): Likewise.
12634 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
12635 Likewise.
12636 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
12637 Likewise.
12638
12639 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
12640 (MAP_SHARED_VALIDATE): New macro.
12641 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12642 (MAP_SHARED_VALIDATE): Likewise.
12643
126442018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12645
12646 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
12647 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
12648 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
12649
126502018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12651
12652 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
12653 (DT_NUM): Updated to 35.
12654
126552018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12656
12657 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
12658 __builtin_expect with __glibc_likely and __glibc_unlikely.
12659 (elf_machine_rela): Likewise.
12660 (elf_machine_lazy_rel): Likewise.
12661
126622018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12663
12664 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
12665 __builtin_expect with __glibc_likely and __glibc_unlikely.
12666 (elf_machine_lazy_rel): Likewise.
12667
126682018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12669
12670 [BZ #22638]
12671 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
12672 SHARED.
12673 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
12674
126752018-02-05 Andreas Schwab <schwab@suse.de>
12676
12677 [BZ #22761]
12678 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
12679 string.
12680
126812018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
12682
12683 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
12684 not check against PTHREAD_STACK_MIN.
12685
126862018-02-02 Sean McKean <smckean83@gmail.com>
12687
12688 [BZ #22735]
12689 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
12690
126912018-02-02 Florian Weimer <fweimer@redhat.com>
12692
12693 [BZ #22753]
12694 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
12695 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
12696 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
12697 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
12698 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
12699 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12700 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12701 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
12702 * manual/llio.texi (Scatter-Gather): Mention offset -1.
12703 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
12704 * misc/tst-preadvwritev2.c (do_test): Call it.
12705 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
12706
127072018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
12708
12709 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
12710
12711 * benchtests/bench-memcmp.c: Print json instead of plain text.
12712
12713 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
12714 every test run.
12715
127162018-02-01 Joseph Myers <joseph@codesourcery.com>
12717
12718 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12719 version to 4.15.
12720 (s390_sthyi): New syscall.
12721
12722 * sysdeps/generic/ldbl-classify-compat.h: New file.
12723 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
12724 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
12725 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
12726 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
12727 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
12728 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
12729 * sysdeps/ieee754/dbl-64/s_finite.c: Include
12730 <ldbl-classify-compat.h>.
12731 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12732 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
12733 <ldbl-classify-compat.h>.
12734 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12735 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
12736 <ldbl-classify-compat.h>.
12737 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12738 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
12739 <ldbl-classify-compat.h>.
12740 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12741 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
12742 <ldbl-classify-compat.h>.
12743 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12744 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
12745 <ldbl-classify-compat.h>.
12746 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12747 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
12748 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12749 * sysdeps/m68k/coldfire/math_private.h: Remove file.
12750 * sysdeps/microblaze/math_private.h: Likewise.
12751 * sysdeps/nios2/math_private.h: Likewise.
12752 * sysdeps/sh/math_private.h: Likewise.
12753
12754 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
12755 * sysdeps/m68k/coldfire/math_private.h: ... here.
12756 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
12757 * sysdeps/tile/math_private.h: Likewise.
12758 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
12759 Remove macro.
12760 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
12761 Likewise.
12762
12763 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
12764 Remove macro.
12765 (libc_fetestexcept): Likewise.
12766 (libc_feupdateenv_test): Likewise.
12767 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
12768 (libc_fetestexcept): Likewise.
12769 (libc_feupdateenv_test): Likewise.
12770 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
12771 (libc_fetestexcept): Likewise.
12772 (libc_feupdateenv_test): Likewise.
12773 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
12774 (libc_fetestexcept): Likewise.
12775 (libc_feupdateenv_test): Likewise.
12776
12777 * sysdeps/generic/math_private.h
12778 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
12779 New inline function.
12780 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
12781 Likewise.
12782
12783 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
12784 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
12785 * sysdeps/generic/math_private.h
12786 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
12787 inline function.
12788 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
12789 Likewise.
12790 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
12791 Likewise.
12792 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
12793 Likewise.
12794 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
12795 Likewise.
12796 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
12797 Likewise.
12798 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
12799 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
12800 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
12801 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
12802 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
12803 (__fegetenv): Likewise.
12804 (fesetenv): Likewise.
12805 (__fesetenv): Likewise.
12806 (feupdateenv): Likewise.
12807 (__feupdateenv): Likewise.
12808 (fegetround): Likewise.
12809 (__fegetround): Likewise.
12810 (fesetround): Likewise.
12811 (__fesetround): Likewise.
12812
12813 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
12814 (feraiseexcept): New macro.
12815 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
12816 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
12817 Remove macro.
12818 (__feraiseexcept): Likewise.
12819 (feclearexcept): Likewise.
12820 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
12821 (__feraiseexcept): Likewise.
12822 (feclearexcept): Likewise.
12823 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
12824 (__feraiseexcept): Likewise.
12825 (feclearexcept): Likewise.
12826 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
12827 (__feraiseexcept): Likewise.
12828 (feclearexcept): Likewise.
12829 (fetestexcept): Likewise.
12830
12831 * sysdeps/m68k/coldfire/math-tests.h: New file.
12832
12833 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
12834 * sysdeps/m68k/bits/fenv.h: ... here.
12835 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
12836 not define.
12837 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
12838 Likewise.
12839 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
12840 Likewise.
12841 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
12842 Likewise.
12843 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
12844 Likewise.
12845 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
12846 Define to 0.
12847 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
12848 (__FE_UNDEFINED): New enum constant.
12849 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
12850 Do not define.
12851 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
12852 Likewise.
12853 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
12854 Likewise.
12855 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
12856 to match generic bits/fenv.h.
12857 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
12858 Do not define.
12859
12860 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
12861 packed on bits.
12862 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
12863 * soft-fp/half.h (union _FP_UNION_H): Likewise.
12864 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
12865 * soft-fp/single.h (union _FP_UNION_S): Likewise.
12866
128672018-02-01 Carlos O'Donell <carlos@redhat.com>
12868 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
12869 Joseph Myers <joseph@codesourcery.com>
12870
12871 [BZ #21314]
12872 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
12873 (__log1p): Disable -Wmaybe-uninitialized for -Os around
12874 computation using c.
12875 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
12876 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
12877 computation using c.
12878
128792018-02-01 Dmitry V. Levin <ldv@altlinux.org>
12880
12881 * version.h (RELEASE): Set to "development".
12882 (VERSION): Set to "2.27.9000".
12883 * NEWS (2.28): New section.
12884
12885 * version.h (RELEASE): Set to "stable".
12886 (VERSION): Set to "2.27".
12887 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
12888
12889 * NEWS: Add the list of bugs fixed in 2.27.
12890
128912018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12892
12893 * stdlib/test-atexit-race-common.c (do_test): Check stack size
12894 against PTHREAD_STACK_MIN.
12895
128962018-02-01 Dmitry V. Levin <ldv@altlinux.org>
12897
12898 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
12899 New entries.
12900 (Rafal Luzynski, Andreas Schwab): Update.
12901
129022018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
12903
12904 [BZ #10871]
12905 * NEWS: List the languages which actually use the alternative
12906 months feature in this release. Also explain that "alt_mon" and
12907 "ab_alt_mon" are optional.
12908
129092018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
12910
12911 [BZ #22765]
12912 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
12913
129142018-01-31 Dmitry V. Levin <ldv@altlinux.org>
12915
12916 * manual/install.texi (Tools for Compilation): Update the newest
12917 versions of gcc, binutils, texinfo, gawk, bison, and sed.
12918 * INSTALL: Regenerated.
12919
129202018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
12921
12922 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
12923 instead of __builtin_expect.
12924
129252018-01-30 Florian Weimer <fweimer@redhat.com>
12926
12927 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
12928 data.
12929 * nss/tst-nss-getpwent.c (do_test): Likewise.
12930
129312018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
12932
12933 [BZ #10871]
12934 * localedata/locales/hr_HR (mon): Rename to...
12935 (alt_mon): This.
12936 (mon): Import from CLDR (genitive case).
12937 (d_t_fmt): Update the comment.
12938
129392018-01-29 Andreas Schwab <schwab@linux-m68k.org>
12940
12941 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
12942 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
12943 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
12944
129452018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
12946
12947 * mach/Versions: Fix version when __mach_host_self_ was added.
12948 * hurd/Versions: Fix version when _hurd_exec_paths was added.
12949 * sysdeps/mach/hurd/i386/ld.abilist: New file.
12950 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
12951 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
12952 * sysdeps/mach/hurd/i386/libc.abilist: New file.
12953 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
12954 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
12955 * sysdeps/mach/hurd/i386/libm.abilist: New file.
12956 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
12957 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
12958 * sysdeps/mach/hurd/i386/librt.abilist: New file.
12959 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
12960 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
12961 || to respect codestyle.
12962 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
12963 (do_test_bz20181): Rename accordingly.
12964 * malloc/malloc.c: Include <assert.h>.
12965 (assert): Do not define.
12966 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
12967 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
12968 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
12969 * sysdeps/mach/hurd/hp-timing.h: New file.
12970 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
12971
129722018-01-29 Darius Rad <darius@bluespec.com>
12973
12974 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
12975
129762018-01-29 Palmer Dabbelt <palmer@sifive.com>
12977
12978 * sysdeps/init_array/crti.S (.section .init_array): Add
12979 PREINIT_FUNCTION when defined.
12980 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
12981 * config.h.in: Regenerate.
12982 * manual/platform.texi: Add RISC-V documenation for
12983 __riscv_flush_icache.
12984 * sysdeps/riscv/__longjmp.S: New file.
12985 * sysdeps/riscv/backtrace.c: Likewise.
12986 * sysdeps/riscv/bits/endian.h: Likewise.
12987 * sysdeps/riscv/bits/setjmp.h: Likewise.
12988 * sysdeps/riscv/bits/wordsize.h: Likewise.
12989 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
12990 * sysdeps/riscv/bsd-setjmp.c: Likewise.
12991 * sysdeps/riscv/dl-trampoline.S: Likewise.
12992 * sysdeps/riscv/gccframe.h: Likewise.
12993 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
12994 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
12995 * sysdeps/riscv/machine-gmon.h: Likewise.
12996 * sysdeps/riscv/memusage.h: Likewise.
12997 * sysdeps/riscv/setjmp.S: Likewise.
12998 * sysdeps/riscv/sys/asm.h: Likewise.
12999 * sysdeps/riscv/tls-macros.h: Likewise.
13000 * sysdeps/riscv/dl-tls.h: New file.
13001 * sysdeps/riscv/libc-tls.c: Likewise.
13002 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
13003 * sysdeps/riscv/nptl/tls.h: Likewise.
13004 * sysdeps/riscv/stackinfo.h: Likewise.
13005 * sysdeps/riscv/bits/fenv.h: New file.
13006 * sysdeps/riscv/e_sqrtl.c: Likewise.
13007 * sysdeps/riscv/fpu_control.h: Likewise.
13008 * sysdeps/riscv/math-tests.h: Likewise.
13009 * sysdeps/riscv/nofpu/Implies: Likewise.
13010 * sysdeps/riscv/sfp-machine.h: Likewise.
13011 * sysdeps/riscv/tininess.h: Likewise.
13012 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
13013 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13014 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
13015 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
13016 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
13017 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
13018 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13019 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
13020 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13021 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13022 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13023 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
13024 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
13025 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
13026 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
13027 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
13028 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
13029 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13030 * sysdeps/riscv/rvd/s_fma.c: Likewise.
13031 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13032 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13033 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13034 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13035 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13036 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13037 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
13038 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
13039 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
13040 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
13041 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13042 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13043 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13044 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
13045 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
13046 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13047 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13048 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13049 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
13050 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
13051 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13052 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
13053 * sysdeps/riscv/rvf/math_private.h: Likewise.
13054 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13055 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
13056 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13057 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13058 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
13059 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13060 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13061 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13062 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13063 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13064 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13065 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13066 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
13067 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13068 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13069 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13070 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
13071 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
13072 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
13073 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
13074 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
13075 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
13076 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
13077 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
13078 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
13079 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
13080 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
13081 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
13082 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
13083 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
13084 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
13085 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
13086 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
13087 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
13088 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
13089 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
13090 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
13091 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
13092 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
13093 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
13094 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
13095 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
13096 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
13097 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
13098 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
13099 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
13100 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
13101 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
13102 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
13103 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
13104 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
13105 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
13106 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
13107 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
13108 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
13109 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
13110 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
13111 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
13112 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
13113 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
13114 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
13115 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
13116 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13117 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
13118 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13119 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
13120 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
13121 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
13122 * sysdeps/riscv/Implies: New file.
13123 * sysdeps/riscv/Makefile: Likewise.
13124 * sysdeps/riscv/configure: Likewise.
13125 * sysdeps/riscv/configure.ac: Likewise.
13126 * sysdeps/riscv/nptl/Makefile: Likewise.
13127 * sysdeps/riscv/preconfigure: Likewise.
13128 * sysdeps/riscv/rv64/Implies-after: Likewise.
13129 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
13130 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
13131 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
13132 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
13133 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
13134 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
13135 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
13136 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
13137 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
13138 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
13139 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
13140 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
13141 (Config): Likewise.
13142
131432018-01-29 Florian Weimer <fweimer@redhat.com>
13144
13145 [BZ #22701]
13146 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
13147 libnsl_hidden_proto.
13148 * include/rpcsvc/yp.h (yp_xdrall): Declare with
13149 libnsl_hidden_proto.
13150 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
13151 * nis/Makefile (libnsl-routines): Add nss-default only for
13152 build-obsolete-nsl.
13153 * nis/nis_defaults.c (__nis_default_ttl): Add
13154 libnsl_hidden_nolink_def.
13155 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
13156 declaration.
13157 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
13158 * nis/ypclnt.c (yp_maplist): Likewise.
13159
131602018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
13161
13162 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13163 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
13164
131652018-01-29 Joseph Myers <joseph@codesourcery.com>
13166
13167 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
13168 clean -dxfq for git updates when replacing sources.
13169
13170 * scripts/build-many-glibcs.py (Config.build_gcc): Use
13171 --disable-libcilkrts unconditionally, not just for the final GCC
13172 build for Hurd.
13173
13174 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13175 version to 4.15.
13176
131772018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13178
13179 [BZ #10871]
13180 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
13181 case).
13182
131832018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13184
13185 [BZ #10871]
13186 * localedata/locales/be_BY (mon): Rename to...
13187 (alt_mon): This, then synchronize with CLDR (nominative case).
13188 (abmon): Rename to...
13189 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13190 (mon): Import from CLDR (genitive case).
13191 (abmon): Likewise.
13192 * localedata/locales/be_BY@latin (mon): Rename to...
13193 (alt_mon): This.
13194 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
13195
13196 * localedata/locales/be_BY@latin (lang_name): Reworded to
13197 "biełaruskaja mova".
13198
131992018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13200
13201 [BZ #10871]
13202 * localedata/locales/el_CY (mon): Renamed to...
13203 (alt_mon): This.
13204 (mon): Import from CLDR (genitive case).
13205 * localedata/locales/el_GR: Likewise.
13206
132072018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13208
13209 [BZ #10871]
13210 * localedata/locales/ru_RU (mon): Rename to...
13211 (alt_mon): This.
13212 (abmon): Rename to...
13213 (ab_alt_mon): This.
13214 (mon): Import from CLDR (genitive case).
13215 (abmon): Copy from the old content except the 5th month which is
13216 now in the genitive case, even when abbreviated.
13217 * localedata/locales/ru_UA: Likewise.
13218 * time/tst-strptime.c (day_tests): Add an actual example of
13219 a difference between %b and %Ob in Russian.
13220
132212018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13222
13223 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
13224 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
13225 a `c' variable.
13226 * resolv/res-close.c: Include <stdlib.h>.
13227 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
13228 <sys/wait.h>, <time.h>, <sys/uio.h>.
13229 (NOT_CANCEL_H): Add inclusion guard.
13230 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
13231 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
13232 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
13233 return 0.
13234 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
13235 vm_address_t * to ElfW(Addr) * for dl_main parameter.
13236 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
13237 instead of void *.
13238 * sysdeps/pthread/timer_create.c (timer_create): Do not use
13239 timer_ptr2id to cast struct timer_node * to void *.
13240 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
13241 --disable-libcilkrts to gcc configure.
13242 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
13243 and make them the default for now.
13244 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
13245 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
13246 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
13247 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
13248 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
13249 MACH_IPC_COMPAT.
13250 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
13251 __task_terminate would ever return successfully.
13252 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
13253 to global scope.
13254 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
13255 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
13256 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
13257 critical section to make code simpler and avoid warning.
13258 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
13259 critical section to make code simpler and avoid warning.
13260 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
13261 const char * instead of char *.
13262 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
13263 __hurd_file_name_split, hurd_file_name_split,
13264 __hurd_directory_name_split, hurd_directory_name_split,
13265 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
13266 hurd_file_name_path_lookup): Make lookup function parameter take a
13267 const char *name instead of char *name.
13268 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
13269 __hurd_directory_name_split): Likewise.
13270 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
13271 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
13272 * sysdeps/mach/hurd/check_native.c: New file.
13273 * sysdeps/mach/hurd/check_pf.c: New file.
13274 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
13275 (__freeifaddrs): Define macro to freeifaddrs.
13276 * sysdeps/mach/hurd/libhurduser.abilist: New file.
13277 * sysdeps/mach/libmachuser.abilist: New file.
13278 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
13279 (do_test_bz20181): Rename accordingly.
13280 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
13281 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
13282 <sys/mount.h>.
13283 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
13284 version only if __USE_EXTERN_INLINES is defined.
13285 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
13286 __hurd_sockfail): Likewise.
13287 (_hurd_fd_get): Always declare functions, and provide inline versions
13288 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
13289 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
13290 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
13291 _hurd_port_set): Always declare functions, and provide inline versions
13292 only if __USE_EXTERN_INLINES and _LIBC are defined and
13293 IS_IN(libc).
13294 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
13295 _hurd_critical_section_unlock): Likewise.
13296 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
13297 * __hurd_threadvar_location): Likewise.
13298 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
13299 _hurd_userlink_clear): Likewise.
13300 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
13301 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
13302 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
13303 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
13304 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
13305 __spin_lock_locked): Likewise.
13306 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
13307 __spin_lock_locked): Likewise.
13308 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
13309 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
13310 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
13311 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
13312 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
13313 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
13314 _POSIX_NO_TRUNC): Define to 0.
13315 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
13316 check size against PTHREAD_STACK_MIN.
13317 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
13318 IS_IN(libpthread)]: Include <sigsetops.h>.
13319 * mach/Makefile (user-interfaces): Add mach/gnumach.
13320 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
13321 * sysdeps/mach/configure (mach_interface_list): Regenerate.
13322 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
13323 instead of invalid -1.
13324 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
13325 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
13326 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
13327 <net/ppp_defs.h>.
13328
133292018-01-27 Thomas Schwinge <tschwinge@gnu.org>
13330
13331 * hurd/fcntl-internal.h: New file.
13332
133332018-01-27 James Clarke <jrtc27@jrtc27.com>
13334
13335 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13336
13337 * sysdeps/alpha/fpu/libm-test-ulps: Update.
13338
133392018-01-26 Andreas Schwab <schwab@linux-m68k.org>
13340
13341 [BZ #22701]
13342 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
13343 Build only shared objects.
13344
133452018-01-26 Carlos O'Donell <carlos@redhat.com>
13346
13347 * README: Update for hppa.
13348
133492018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13350
13351 * sysdeps/sparc/fpu/libm-test-ulps: Update
13352 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
13353
133542018-01-26 Carlos O'Donell <carlos@redhat.com>
13355
13356 Revert:
13357
13358 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
13359
13360 [BZ #22563]
13361 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13362 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
13363 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13364 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
13365 to feature_1.
13366
13367 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
13368
13369 [BZ #22563]
13370 * bits/types/__cancel_jmp_buf_tag.h: New file.
13371 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
13372 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
13373 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
13374 * nptl/Makefile (headers): Add
13375 bits/types/__cancel_jmp_buf_tag.h.
13376 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
13377 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
13378 * sysdeps/nptl/pthread.h: Include
13379 <bits/types/__cancel_jmp_buf_tag.h>.
13380 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
13381 __cancel_jmp_buf.
13382 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
13383
133842018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13385
13386 [BZ #10871]
13387 * localedata/locales/uk_UA (mon): Renamed to...
13388 (alt_mon): This.
13389 (alt_digits): "0" removed and then renamed to...
13390 (mon): This.
13391 (date_fmt): Definition changed not to use the alternative
13392 digits hack.
13393
133942018-01-25 Palmer Dabbelt <palmer@sifive.com>
13395
13396 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
13397 FLAG_RISCV_FLOAT_ABI_DOUBLE.
13398 * elf/elf.h (EF_RISCV_RVC): New define.
13399 (EF_RISCV_FLOAT_ABI): Likewise.
13400 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
13401 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
13402 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
13403 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
13404 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
13405 define.
13406 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
13407
134082018-01-25 Andreas Schwab <schwab@suse.de>
13409
13410 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
13411 single quotes.
13412 * sysdeps/gnu/configure: Regenerate.
13413 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
13414 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
13415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
13416 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
13417 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
13418 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
13419 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
13420 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
13421
134222018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13423
13424 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
13425 URL, and run autoconf, make it the default for now.
13426
134272018-01-24 Joseph Myers <joseph@codesourcery.com>
13428
13429 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13430 soft-float ColdFire configuration.
13431
13432 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
13433 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
13434 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
13435
13436 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
13437 MicroBlaze file.
13438
13439 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
13440 ....
13441 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
13442 ... here.
13443 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
13444 New file.
13445
13446 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
13447 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
13448 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
13449 file.
13450
134512018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13452
13453 [BZ #22742]
13454 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
13455 Rename to __reserved and add comment.
13456 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
13457 Rename to __reserved.
13458
134592018-01-24 Joseph Myers <joseph@codesourcery.com>
13460
13461 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13462 i686-gnu configurations.
13463 (Context.run_builds): Include mig, gnumach and hurd in components
13464 considered.
13465 (Context.checkout): Add mig, gnumach and hurd to components.
13466 (Context.checkout_tar): Add URL mappings for mig, gnumach and
13467 hurd.
13468 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
13469 (Config.build): Install gnumach headers, build mig and install
13470 hurd headers for 'gnu' OS.
13471 (Config.install_gnumach_headers): New function.
13472 (Config.install_hurd_headers): Likewise.
13473 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
13474 when building for 'gnu' OS.
13475
134762018-01-23 Tobias Klauser <tklauser@distanz.ch>
13477
13478 * manual/tunables.texi (Hardware Capability Tunables): Fix
13479 spelling.
13480
134812018-01-22 Rical Jasan <ricaljasan@pacific.net>
13482
13483 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
13484 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
13485 (ALTMON_11, ALTMON_12): Improve documentation.
13486 * manual/time.texi (strftime): Likewise.
13487
134882018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13489
13490 [BZ #10871]
13491 * localedata/locales/pl_PL: Alternative month names added,
13492 primary month names are genitive now.
13493 * time/tst-strptime.c (day_tests): Actually use a genitive case
13494 of a month name in Polish language.
13495
134962018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13497
13498 [BZ #10871]
13499 * manual/locale.texi: Document ALTMON_1..12 constants for
13500 nl_langinfo. Specify when to use ALTMON instead of MON.
13501 * manual/time.texi (strftime, strptime): Document GNU extension
13502 permitting O modifier with %B and %b. Specify when to use
13503 %OB instead of %B.
13504
135052018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13506
13507 [BZ #10871]
13508 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
13509 names, define them as the same as abbreviated month names explicitly.
13510 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
13511 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
13512 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
13513 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
13514 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
13515 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
13516 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
13517 _NL_WABALTMON_12): New enum constants.
13518 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
13519 wab_alt_mon, and ab_alt_mon_defined members.
13520 (time_output): Output ab_alt_mon and wab_alt_mon members.
13521 (time_read): Read them, initialize them as copies of abmon and wabmon
13522 respectively if they are missing, initialize ab_alt_mon_defined.
13523 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
13524 * locale/programs/locfile-kw.h: Regenerate.
13525 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
13526 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
13527 and ru_RU.UTF-8.
13528 * time/strftime_l.c (a_altmonth, aam_len): New macros.
13529 [!COMPILE_WIDE] (ABALTMON_1): New macro.
13530 (__strftime_internal): Handle %Ob and %Oh formats.
13531 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
13532 (__strptime_internal): Handle %Ob and %Oh formats.
13533 * time/tst-strptime.c (day_tests): Add more tests to parse different
13534 forms of month names including the new %Ob format specifier.
13535
135362018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13537
13538 [BZ #10871]
13539 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
13540 define them as the same as primary full month names explicitly.
13541 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
13542 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
13543 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
13544 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
13545 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
13546 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
13547 _NL_WALTMON_12): New enum constants.
13548 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
13549 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
13550 macros.
13551 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
13552 walt_mon, and alt_mon_defined members.
13553 (time_output): Output alt_mon and walt_mon members.
13554 (time_read): Read them, initialize them as copies of mon and wmon
13555 respectively if they are missing, initialize alt_mon_defined.
13556 * locale/programs/locfile-kw.gperf (alt_mon): Define.
13557 * locale/programs/locfile-kw.h: Regenerate.
13558 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
13559 * localedata/tst-langinfo.c (map): Add tests for the new constants
13560 ALTMON_1 .. ALTMON_12.
13561 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
13562 and pl_PL.UTF-8.
13563 * time/strftime_l.c (f_altmonth): New macro.
13564 (__strftime_internal): Handle %OB format.
13565 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
13566 (__strptime_internal): Handle %OB format.
13567 * time/tst-strptime.c (day_tests): Add tests to parse different forms
13568 of month names including the new %OB format specifier.
13569
135702018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13571
13572 [BZ #22685]
13573 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
13574 from ABORT_TRANSACTION.
13575 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
13576 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
13577 ABORT_TRANSACTION_IMPL): Likewise.
13578 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
13579 Linux code, but remove the code that aborts transactions.
13580
135812018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13582
13583 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
13584
135852018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
13586
13587 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
13588 in date: "2004-14-09" should be "2004-09-14".
13589 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
13590 "2003-15-09" should be "2003-09-15".
13591
135922018-01-18 Arjun Shankar <arjun@redhat.com>
13593
13594 [BZ #22343]
13595 [BZ #22774]
13596 CVE-2018-6485
13597 CVE-2018-6551
13598 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
13599 after padding.
13600 (_int_memalign): check for integer overflow before calling
13601 _int_malloc.
13602 * malloc/tst-malloc-too-large.c: New test.
13603 * malloc/Makefile: Add tst-malloc-too-large.
13604
136052018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
13606
13607 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
13608 in date: "2017-24-07" should be "2017-07-24".
13609 * localedata/locales/mai_IN: Likewise.
13610 * localedata/locales/mai_NP: Likewise.
13611
136122018-01-17 Dmitry V. Levin <ldv@altlinux.org>
13613
13614 * po/ru.po: Update translations.
13615
136162018-01-17 Joseph Myers <joseph@codesourcery.com>
13617
13618 [BZ #22719]
13619 * sysdeps/hppa/backtrace.c: New file.
13620
136212018-01-17 H.J. Lu <hongjiu.lu@intel.com>
13622
13623 [BZ #22715]
13624 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
13625 align La_x86_64_retval to VEC_SIZE.
13626
136272018-01-16 Joseph Myers <joseph@codesourcery.com>
13628
13629 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
13630 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
13631
136322018-01-16 Florian Weimer <fweimer@redhat.com>
13633
13634 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
13635 Move tst-thread-exit-clobber ...
13636 [$(CXX)] (tests-unsupported): ... to here.
13637
136382018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
13639
13640 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
13641 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
13642 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
13643 (_dl_aarch64_cap_flags): Update.
13644 (_DL_HWCAP_COUNT): Update.
13645
136462018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
13647
13648 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
13649 (_DL_HWCAP_LAST): Remove.
13650 (_DL_HWCAP_COUNT): Move to ...
13651 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
13652 (_DL_HWCAP_COUNT): ... here.
13653
136542018-01-16 Florian Weimer <fweimer@redhat.com>
13655
13656 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
13657 mode with GNU extensions.
13658
136592018-01-15 Alan Hayward <alan.hayward@arm.com>
13660
13661 * elf/elf.h (NT_ARM_SVE): Define.
13662
136632018-01-15 Florian Weimer <fweimer@redhat.com>
13664
13665 [BZ #22636]
13666 * nptl/tst-minstack-throw.cc: New file.
13667 * nptl/Makefile (tests): Add tst-minstack-throw.
13668 (LDLIBS-tst-minstack-throw): Link with libstdc++.
13669 [!CXX] (tests-unsupported): Add tst-minstack-throw.
13670
136712018-01-15 Joseph Myers <joseph@codesourcery.com>
13672
13673 * scripts/build-many-glibcs.py (Context.checkout): Default
13674 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
13675 version to 1.1.0.
13676
136772018-01-13 Carlos O'Donell <carlos@redhat.com>
13678
13679 [BZ #22707]
13680 * elf/elf.h (DF_1_STUB): Define.
13681 (DF_1_PIE): Define.
13682
136832018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13684
13685 [BZ #22697]
13686 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
13687 Do not add 0.5 to integer or out-of-range arguments.
13688
136892018-01-12 Dmitry V. Levin <ldv@altlinux.org>
13690
13691 * po/bg.po: Update translations.
13692 * po/cs.po: Likewise.
13693 * po/de.po: Likewise.
13694 * po/ko.po: Likewise.
13695 * po/pl.po: Likewise.
13696 * po/sv.po: Likewise.
13697 * po/uk.po: Likewise.
13698 * po/vi.po: Likewise.
13699
137002018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13701
13702 * aarch64/start.S (_start): Use __wrap_main.
13703 (__wrap_main): New local symbol.
13704
137052018-01-12 Dmitry V. Levin <ldv@altlinux.org>
13706
13707 [BZ #22679]
13708 CVE-2018-1000001
13709 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
13710 generic_getcwd if the path returned by getcwd syscall is not absolute.
13711 * io/tst-getcwd-abspath.c: New test.
13712 * io/Makefile (tests): Add tst-getcwd-abspath.
13713
137142018-01-12 Istvan Kurucsai <pistukem@gmail.com>
13715
13716 * malloc/malloc.c (malloc_consolidate): Add size check.
13717
137182018-01-12 Florian Weimer <fweimer@redhat.com>
13719
13720 * support/write_message.c (write_message): Preserve errno.
13721 * support/check.c (print_failure): Likewise.
13722 * support/support_test_verify_impl.c (support_test_verify_impl):
13723 Likewise.
13724 * support/support_test_compare_failure.c
13725 (support_test_compare_failure): Likewise.
13726
137272018-01-12 Florian Weimer <fweimer@redhat.com>
13728
13729 [BZ #22701]
13730 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
13731 Prevent installation of libnsl.so.
13732 (libnsl-inhibit-o): Do not build (or install) static libraries.
13733
137342018-01-12 Egmont Koblinger <egmont@gmail.com>
13735
13736 [BZ #22657]
13737 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
13738 before the day number which may produce a double space.
13739 (date_fmt): Likewise.
13740
137412018-01-12 Joseph Myers <joseph@codesourcery.com>
13742
13743 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
13744 instead of fegetenv.
13745
137462018-01-11 Joseph Myers <joseph@codesourcery.com>
13747
13748 [BZ #22702]
13749 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
13750 comment to say exceptions are discarded.
13751 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
13752 __fegetenv.
13753 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
13754 be enabled.
13755
137562018-01-11 Florian Weimer <fweimer@redhat.com>
13757
13758 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
13759 and error message.
13760
137612018-01-11 Florian Weimer <fweimer@redhat.com>
13762
13763 [BZ #22636]
13764 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
13765 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
13766
137672018-01-10 Joseph Myers <joseph@codesourcery.com>
13768
13769 [BZ #22693]
13770 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
13771 negative arguments in test for NaN or infinity argument.
13772
137732018-01-10 Dmitry V. Levin <ldv@altlinux.org>
13774
13775 * po/libc.pot: Regenerate.
13776
137772018-01-10 Florian Weimer <fweimer@redhat.com>
13778
13779 [BZ #22636]
13780 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
13781 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
13782
137832018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
13784
13785 * hurd/hurd/fd.h: Include <fcntl.h>
13786 (__hurd_at_flags): New function.
13787 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
13788 with call to __hurd_at_flags.
13789 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
13790 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
13791 __faccessat
13792 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
13793 (__access_noerrno): Use __faccessat_common instead of access_common.
13794 (__access): Likewise.
13795 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
13796 with a call to __faccessat.
13797 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
13798 (__faccessat_common): ... this. Move implementation of __access into it when
13799 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
13800 reauthenticate_cwdir_at helper to implement AT mechanism.
13801 (__faccessat_noerrno): New function, just calls __faccessat_common.
13802 (__faccessat): New function, just calls __faccessat_common.
13803 (faccessat): Define weak alias.
13804
138052018-01-10 Joseph Myers <joseph@codesourcery.com>
13806
13807 [BZ #22691]
13808 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13809 (CFLAGS-s_fmaxmagl.c): New variable.
13810 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
13811
13812 [BZ #22690]
13813 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
13814 long int for arguments of possibly overflowing addition or
13815 subtraction.
13816 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
13817
138182018-01-09 Joseph Myers <joseph@codesourcery.com>
13819
13820 [BZ #22688]
13821 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13822 (CFLAGS-e_remainderl.c): New variable.
13823
13824 [BZ #22687]
13825 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
13826 variable.
13827 (CFLAGS-s_cacoshl.c): Likewise.
13828 (CFLAGS-s_casinhl.c): Likewise.
13829 (CFLAGS-s_catanl.c): Likewise.
13830 (CFLAGS-s_catanhl.c): Likewise.
13831 (CFLAGS-s_cexpl.c): Likewise.
13832 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
13833 (CFLAGS-s_csinhl.c): Likewise.
13834 (CFLAGS-s_clogl.c): Likewise.
13835 (CFLAGS-s_clog10l.c): Likewise.
13836 (CFLAGS-s_csinl.c): Likewise.
13837 (CFLAGS-s_csqrtl.c): Likewise.
13838
138392017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
138402017-01-09 Svante Signell <svante.signell@gmail.com>
13841
13842 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
13843 (_hurd_exec_paths): New function.
13844 * hurd/hurd.h (_hurd_exec): Deprecate function.
13845 (_hurd_exec_paths): Declare function.
13846 * hurd/Versions: Export _hurd_exec_paths.
13847 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
13848 (__execve): Use __getcwd to build absolute path, and use
13849 _hurd_exec_paths instead of _hurd_exec.
13850 * sysdeps/mach/hurd/spawni.c: Likewise.
13851 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
13852 _hurd_exec.
13853
138542018-01-08 Dmitry V. Levin <ldv@altlinux.org>
13855
13856 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
13857 test instead of failing in case of ENOENT returned by posix_openpt.
13858
138592018-01-08 Florian Weimer <fweimer@redhat.com>
13860
13861 resolv: Support binary labels in test framework.
13862 * support/resolv_test.c (struct to_be_freed): Remove.
13863 (struct compressed_name): New.
13864 (allocate_compressed_name, ascii_tolower)
13865 (compare_compressed_name): New functions.
13866 (struct resolv_response_builder): Update type of
13867 compression_offsets for use with tsearch. Rempve to_be_freed.
13868 (response_push_pointer_to_free): Remove function.
13869 (resolv_response_add_name): Rewrite using struct compressed_name
13870 and tsearch instead of hsearch_r.
13871 (response_builder_allocate): Remove initialization of
13872 compression_offsets.
13873 (response_builder_free): Update for removal of to_be_freed. Use
13874 tdestroy instead of hdestroy_r.
13875 * resolv/Makefile (tests): Add tst-resolv-binary.
13876 (tst-resolv-binary): Link with -lresolv -lpthread.
13877
138782018-01-08 Florian Weimer <fweimer@redhat.com>
13879
13880 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
13881 time. Pass positive flag instead of negative flag to
13882 support_test_compare_failure.
13883 (support_test_compare_failure): Change negative parameter to
13884 positive.
13885 * support/support_test_compare_failure.c (report)
13886 (support_test_compare_failure): Likewise.
13887 * support/tst-test_compare.c (return_ssize_t, return_int): New.
13888 (do_test): Check int/size_t, ssize_t/size_t comparisons.
13889
138902018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
13891
13892 [BZ #22637]
13893 * nptl/descr.h (stackblock, stackblock_size): Update comments.
13894 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
13895 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
13896 stacksize.
13897 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
13898
138992018-01-08 H.J. Lu <hongjiu.lu@intel.com>
13900
13901 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13902 Add s_sincosf-sse2 and s_sincosf-fma.
13903 (CFLAGS-s_sincosf-fma.c): New.
13904 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
13905 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
13906 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
13907 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
13908 __sincosf is defined.
13909
139102018-01-08 Florian Weimer <fweimer@redhat.com>
13911
13912 * nptl/tst-thread-exit-clobber.cc: New file.
13913 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
13914 C++11 mode.
13915 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
13916 (tests): Add tst-thread-exit-clobber.
13917 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
13918
139192018-01-08 Florian Weimer <fweimer@redhat.com>
13920
13921 * support/check.h (support_static_assert): Define.
13922 (TEST_COMPARE): Use it.
13923
139242018-01-07 Aurelien Jarno <aurelien@aurel32.net>
13925
13926 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
13927 [!__RLIM_T_MATCHES_RLIM64_T]
13928 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
13929 __getrlimit64. Add libc_hidden_weak.
13930
139312018-01-06 Palmer Dabbelt <palmer@sifive.com>
13932
13933 * elf/elf.h (R_RISCV_NONE): New define.
13934 (R_RISCV_32): Likewise.
13935 (R_RISCV_64): Likewise.
13936 (R_RISCV_RELATIVE): Likewise.
13937 (R_RISCV_COPY): Likewise.
13938 (R_RISCV_JUMP_SLOT): Likewise.
13939 (R_RISCV_TLS_DTPMOD32): Likewise.
13940 (R_RISCV_TLS_DTPMOD64): Likewise.
13941 (R_RISCV_TLS_DTPREL32): Likewise.
13942 (R_RISCV_TLS_DTPREL64): Likewise.
13943 (R_RISCV_TLS_TPREL32): Likewise.
13944 (R_RISCV_TLS_TPREL64): Likewise.
13945 * Makerules (make-link-multidir): Make directories before linking into
13946 them.
13947 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
13948 define.
13949 (VDSO_HASH_LINUX_4_15): Likewise.
13950 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
13951 in subdirectories of lib.
13952 * nptl/Makefile (/librt.so): Always depend on
13953 "$(shared-thread-library)".
13954
139552018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
13956
13957 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
13958 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
13959 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
13960 (___tls_get_addr).
13961 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
13962 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
13963 "-O2 -march=i686".
13964 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
13965 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
13966 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
13967 * sysdeps/gnu/glob-lstat-compat.c: New file.
13968 * sysdeps/gnu/glob64-lstat-compat.c: New file.
13969 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
13970
139712018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13972
13973 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
13974 Reserve 16 chars to reloc_addr before calling _itoa_word.
13975
139762018-01-05 Aurelien Jarno <aurelien@aurel32.net>
13977
13978 [BZ #22678]
13979 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
13980 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
13981
13982 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
13983 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
13984
13985 * resource/tst-getrlimit.c: Add copyright header.
13986
139872018-01-05 Aurelien Jarno <aurelien@aurel32.net>
13988 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13989
13990 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
13991 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
13992 Define __GI_getrlimit64 as weak alias of __getrlimit64.
13993 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
13994 instead.
13995 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
13996 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
13997 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
13998 RLIM64_INFINITY): Fix values to match the kernel ones.
13999 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
14000 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
14001 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
14002 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
14003 getrlimit64@@GLIBC_2_27.
14004 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
14005 and setrlimit64.
14006 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
14007 getrlimit, setrlimit, getrlimit64 and setrlimit64.
14008 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
14009 setrlimit, getrlimit64 and setrlimit64.
14010
140112018-01-05 Aurelien Jarno <aurelien@aurel32.net>
14012
14013 [BZ #22648]
14014 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
14015 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
14016
140172018-01-04 Joseph Myers <joseph@codesourcery.com>
14018
14019 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
14020 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
14021 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
14022
140232018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14024
14025 [BZ #15479]
14026 [BZ #22666]
14027 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
14028 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
14029
14030 [BZ #15479]
14031 [BZ #22665]
14032 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
14033 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
14034 * sysdeps/alpha/fpu/s_floor.c: Likewise.
14035 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
14036
140372018-01-04 Florian Weimer <fweimer@redhat.com>
14038
14039 [BZ #22667]
14040 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
14041 Align the stack before calling exit.
14042 * stdlib/tst-makecontext-align.c: New file.
14043 * stdlib/Makefile (tests): Add tst-makecontext-align.
14044
140452018-01-04 Florian Weimer <fweimer@redhat.com>
14046
14047 Add support for calling dlvsym from libc.so.
14048 * include/dlfcn.h (__libc_dlvsym): Declare.
14049 * elf/Makefile (tests-static-internal): Add
14050 tst-libc_dlvsym-static.
14051 (tests-internal): Add tst-libc_dlvsym.
14052 (modules-names): Add tst-libc_dlvsym-dso.
14053 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
14054 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
14055 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
14056 object tst-libc_dlvsym-dso.so needs to be built before running
14057 these tests.
14058 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
14059 * elf/Versions: Export __libc_dlvsym.
14060 * elf/dl-libc.c (struct do_dlvsym_args): New.
14061 (do_dlvsym, __libc_dlvsym): New functions.
14062 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
14063 (_dl_open_hook2): New variable.
14064 (__libc_register_dl_open_hook): Set it.
14065 * elf/tst-libc_dlvsym-dso.c: New file.
14066 * elf/tst-libc_dlvsym-static.c: Likewise.
14067 * elf/tst-libc_dlvsym.c: Likewise.
14068 * elf/tst-libc_dlvsym.h: Likewise.
14069
140702018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14071
14072 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
14073 include <sys/mount.h>.
14074
140752018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
14076
14077 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
14078 Add __NO_MATH_ERRNO__ check.
14079
140802018-01-02 Joseph Myers <joseph@codesourcery.com>
14081
14082 * sysdeps/mips/mips32/libm-test-ulps: Update.
14083 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14084
140852018-01-02 Florian Weimer <fweimer@redhat.com>
14086
14087 * misc/tst-pselect.c: Add copyright header.
14088
140892018-01-02 Aurelien Jarno <aurelien@aurel32.net>
14090
14091 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
14092 comment.
14093 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
14094 comment.
14095 (settrlimit): Rename into setrlimit.
14096 (__sttrlimit): Rename into __setrlimit.
14097
14098 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
14099 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
14100 never defined in that case.
14101
141022018-01-02 Joseph Myers <joseph@codesourcery.com>
14103
14104 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14105
14106 * sysdeps/arm/libm-test-ulps: Update.
14107
14108 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
14109 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
14110
141112018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14112
14113 * NEWS: Add cosf and sincosf to list of optimized functions.
14114
141152018-01-02 Aurelien Jarno <aurelien@aurel32.net>
14116
14117 [BZ #22660]
14118 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
14119 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
14120 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
14121 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
14122
141232018-01-01 Dmitry V. Levin <ldv@altlinux.org>
14124
14125 [BZ #22433]
14126 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
14127
14128 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
14129 making a copy of it.
14130
141312018-01-01 Joseph Myers <joseph@codesourcery.com>
14132
14133 * manual/texinfo.tex: Update to version 2017-12-26.21 with
14134 trailing whitespace removed.
14135 * scripts/config.guess: Update to version 2018-01-01.
14136 * scripts/config.sub: Update to version 2018-01-01.
14137 * scripts/move-if-change: Update from gnulib.
14138
14139 * NEWS: Update copyright dates.
14140 * catgets/gencat.c (print_version): Likewise.
14141 * csu/version.c (banner): Likewise.
14142 * debug/catchsegv.sh: Likewise.
14143 * debug/pcprofiledump.c (print_version): Likewise.
14144 * debug/xtrace.sh (do_version): Likewise.
14145 * elf/ldconfig.c (print_version): Likewise.
14146 * elf/ldd.bash.in: Likewise.
14147 * elf/pldd.c (print_version): Likewise.
14148 * elf/sotruss.sh: Likewise.
14149 * elf/sprof.c (print_version): Likewise.
14150 * iconv/iconv_prog.c (print_version): Likewise.
14151 * iconv/iconvconfig.c (print_version): Likewise.
14152 * locale/programs/locale.c (print_version): Likewise.
14153 * locale/programs/localedef.c (print_version): Likewise.
14154 * login/programs/pt_chown.c (print_version): Likewise.
14155 * malloc/memusage.sh (do_version): Likewise.
14156 * malloc/memusagestat.c (print_version): Likewise.
14157 * malloc/mtrace.pl: Likewise.
14158 * manual/libc.texinfo: Likewise.
14159 * nptl/version.c (banner): Likewise.
14160 * nscd/nscd.c (print_version): Likewise.
14161 * nss/getent.c (print_version): Likewise.
14162 * nss/makedb.c (print_version): Likewise.
14163 * posix/getconf.c (main): Likewise.
14164 * scripts/test-installation.pl: Likewise.
14165 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
14166
14167 * All files with FSF copyright notices: Update copyright dates
14168 using scripts/update-copyrights.
14169 * locale/programs/charmap-kw.h: Regenerated.
14170 * locale/programs/locfile-kw.h: Likewise.
14171
141722017-12-31 Zack Weinberg <zackw@panix.com>
14173
14174 * libio/bits/libio-ldbl.h: Correct check for improper
14175 inclusion. Add own multiple include guard.
14176
141772017-12-30 Aurelien Jarno <aurelien@aurel32.net>
14178 Dmitry V. Levin <ldv@altlinux.org>
14179
14180 [BZ #22625]
14181 CVE-2017-16997
14182 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
14183 string token expansion. Check for NULL pointer or empty string possibly
14184 returned by expand_dynamic_string_token.
14185 (decompose_rpath): Check for empty path after dynamic string
14186 token expansion.
14187
141882017-12-29 Dmitry V. Levin <ldv@altlinux.org>
14189
14190 [BZ #22433]
14191 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
14192
14193 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
14194 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
14195 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
14196 and PTRACE_SYSCALL.
14197 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
14198 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14199 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14200 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14201 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14202 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14203
14204 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
14205 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14206 __ptrace_peeksiginfo_flags, ptrace): Move to ...
14207 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
14208 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14209 bits/ptrace-shared.h.
14210 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
14211 <bits/ptrace-shared.h>.
14212 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14213 __ptrace_peeksiginfo_flags, ptrace): Remove.
14214 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14215 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14216 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14217 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14218 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14219
142202017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14221
14222 [BZ #17804]
14223 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
14224 end of the loop. Improve comments.
14225
142262017-12-29 Zack Weinberg <zackw@panix.com>
14227
14228 [BZ #22615]
14229 * manual/errno.texi (Checking for Errors): Explicitly say that errno
14230 might be set on success.
14231
142322017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14233
14234 [BZ #22611]
14235 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
14236 is unchanged on success.
14237
142382017-12-27 Dmitry V. Levin <ldv@altlinux.org>
14239
14240 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
14241 updated.
14242 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
14243 expand_dynamic_string_token): Likewise.
14244 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
14245 is_path argument.
14246
14247 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
14248 contains ':'.
14249
14250 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
14251 is set and name contains ':', and all code depending on these checks.
14252
142532017-12-24 Zack Weinberg <zackw@panix.com>
14254
14255 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
14256 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
14257 respectively.
14258 * libio/libio.h: Rename the original version of this file to
14259 libio/bits/libio.h. Error out if not included by stdio.h or the
14260 stub libio.h.
14261 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
14262 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
14263 if not included by bits/libio.h or the stub _G_config.h.
14264 * sysdeps/unix/sysv/linux/_G_config.h: Move to
14265 sysdeps/unix/sysv/linux/bits. Error out if not included by
14266 bits/libio.h or the stub _G_config.h.
14267 * libio/stdio.h: Include bits/libio.h, not libio.h.
14268 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
14269 well as libio.h and _G_config.h.
14270
14271 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
14272 * libio/strfile.h, stdio-common/vfscanf.c
14273 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
14274 Include stdio.h, not _G_config.h nor libio.h.
14275 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
14276 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
14277
14278 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
14279
142802017-12-23 Dmitry V. Levin <ldv@altlinux.org>
14281
14282 [BZ #22347]
14283 * stdlib/getrandom.c (getrandom): Fix comment.
14284 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
14285
142862017-12-23 Aurelien Jarno <aurelien@aurel32.net>
14287
14288 [BZ #21161]
14289 * manual/arith.texi (strtoul): Fix a typo.
14290
14291 [BZ #22596]
14292 * manual/arith.texi (finite): Fix the description of the return
14293 value.
14294
142952017-12-22 Eric Blake <ebb9@byu.net>
14296
14297 Avoid gcc warnings on cygwin
14298 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14299 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14300 Avoid unused variable.
14301
143022017-12-22 Florian Weimer <fweimer@redhat.com>
14303
14304 * io/Makefile (routines): Add copy_file_range.
14305 (tests): Add tst-copy_file_range.
14306 (tests-static, tests-internal): Add tst-copy_file_range-compat.
14307 * io/Versions (GLIBC_2.27): Export copy_file_range.
14308 * io/copy_file_range-compat.c: New file.
14309 * io/copy_file_range.c: Likewise.
14310 * io/tst-copy_file_range-compat.c: Likewise.
14311 * io/tst-copy_file_range.c: Likewise.
14312 * manual/llio.texi (Copying File Data): New section.
14313 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
14314 * support/Makefile (libsupport-routines): Add support-xfstat,
14315 xftruncate, xlseek.
14316 * support/support-xfstat.c: New file.
14317 * support/xftruncate.c: Likewise.
14318 * support/xlseek.c: Likewise.
14319 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
14320 * sysdeps/unix/sysv/linux/**.abilist: Update.
14321 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
14322
143232017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
14324
14325 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14326 disable-multi-arch variant to aarch64-linux-gnu.
14327
143282017-12-20 Joseph Myers <joseph@codesourcery.com>
14329
14330 * manual/texinfo.tex: Update to version 2017-12-18.20 with
14331 trailing whitespace removed.
14332 * scripts/config.guess: Update to version 2017-12-17.
14333 * scripts/config.sub: Update to version 2017-11-23.
14334 * scripts/install-sh: Update to version 2017-09-23.17.
14335 * scripts/move-if-change: Update to version 2017-09-13 06:45.
14336
143372017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14338
14339 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
14340 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
14341 * sysdeps/tile/_mcount.S (__mcount): Likewise.
14342 * sysdeps/tile/crti.S (_init, _fini): Likewise.
14343 * sysdeps/tile/crtn.S: Likewise.
14344 * sysdeps/tile/dl-start.S (_start): Likewise.
14345 * sysdeps/tile/dl-trampoline.S: Likewise.
14346 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
14347 * sysdeps/tile/start.S (_start): Likewise.
14348 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
14349 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
14350 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
14351 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
14352 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
14353 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
14354 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
14355
14356 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
14357 comment.
14358 * sysdeps/tile/preconfigure: Remove tilegx folder.
14359 * sysdeps/tile/tilegx/Implies: Move definitions to ...
14360 * sysdeps/tile/Implies: ... here.
14361 * sysdeps/tile/tilegx/Makefile: Move rules to ...
14362 * sysdeps/tile/Makefile: ... here.
14363 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
14364 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
14365 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
14366 * sysdeps/tile/bits/wordsize.h: ... here.
14367 * sysdeps/tile/tilegx/*: Move to ...
14368 * sysdeps/tile/*: ... here.
14369 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
14370 * sysdeps/tile/tilegx32/Implies: ... here.
14371 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
14372 * sysdeps/tile/tilegx64/Implies: ... here.
14373 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
14374 to ...
14375 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
14376 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
14377 * sysdeps/unix/sysv/linux/tile/*: ... here.
14378 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
14379 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
14380 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
14381 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
14382
14383 * README: Remove tilepro-*-linux-gnu from supported architecture.
14384 * scripts/build-many-glibcs.py: Likewise.
14385 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
14386 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
14387 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
14388 elf_machine_matches_host, elf_machine_dynamic,
14389 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
14390 howto, elf_machine_rela): Likewise.
14391 * sysdeps/tile/dl-start.S (_start): Likewise.
14392 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
14393 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
14394 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
14395 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
14396 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
14397 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
14398 Likewise.
14399 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
14400 * sysdeps/tile/preconfigure: Likewise.
14401 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
14402 POINTER_CHK_GUARD): Likewise.
14403 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
14404 * sysdeps/tile/start.S (_start): Likewise.
14405 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
14406 Likewise.
14407 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
14408 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
14409 CMOVNEZ): Remove.
14410 * sysdeps/unix/sysv/linux/tile/bits/environments.h
14411 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
14412 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
14413 Likewise.
14414 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
14415 * sysdeps/tile/tilepro/Implies: Remove file.
14416 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
14417 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
14418 * sysdeps/tile/tilepro/memchr.c: Likewise.
14419 * sysdeps/tile/tilepro/memcpy.S: Likewise.
14420 * sysdeps/tile/tilepro/memset.c: Likewise.
14421 * sysdeps/tile/tilepro/memusage.h: Likewise.
14422 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
14423 * sysdeps/tile/tilepro/strchr.c: Likewise.
14424 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
14425 * sysdeps/tile/tilepro/strlen.c: Likewise.
14426 * sysdeps/tile/tilepro/strrchr.c: Likewise.
14427 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
14428 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
14429 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
14430 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
14432 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
14433 Likewise.
14434 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
14438 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
14446 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
14447 tilepro mention in comment.
14448
14449 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
14450 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
14451 * nptl/pthread_join_common.c: New file: common function used on
14452 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
14453 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
14454 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
14455 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
14456 (cleanup): Move definition to pthread_join_common.c.
14457 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
14458 Remove superflous checks.
14459 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
14460 Likewise.
14461
144622017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
14463
14464 * sysdeps/aarch64/libm-test-ulps: Update.
14465
144662017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14467
14468 * sysdeps/aarch64/memset.S (MEMSET): Define.
14469
144702017-12-20 Florian Weimer <fweimer@redhat.com>
14471
14472 [BZ #22635]
14473 nptl: Provide full implementation of pthread_self in libc.so.
14474 * nptl/Makefile (routines): Add pthread_self.
14475 (libpthread-routines): Replace pthread_self with
14476 compat-pthread_self.
14477 * nptl/forward.c (pthread_self): Remove.
14478 * nptl/nptl-init.c (pthread_functions): Do not initialize
14479 ptr_pthread_self.
14480 * nptl/pthread_self.c (pthread_self): Remove weak alias.
14481 * nptl/compat-pthread_self.c: New file.
14482 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
14483 Remove ptr_pthread_self.
14484
144852017-12-19 Arnold D. Robbins <arnold@skeeve.com>
14486
14487 * posix/regcomp.c: Fix spelling in comments.
14488 * posix/regex.h: Likewise.
14489 * posix/regex_internal.c: Likewise.
14490 * posix/regexec.c: Likewise.
14491
144922017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14493
14494 [BZ #22377]
14495 * math/Makefile [C++] (tests): Add test for iseqsig.
14496 * math/math.h [C++] (iseqsig): New implementation, which does
14497 not rely on __MATH_TG/__builtin_types_compatible_p.
14498 * math/test-math-iseqsig.cc: New file.
14499 * sysdeps/powerpc/powerpc64le/Makefile
14500 (CFLAGS-test-math-iseqsig.cc): New variable.
14501
145022017-12-19 Dmitry V. Levin <ldv@altlinux.org>
14503
14504 * elf/dl-load.c (is_trusted_path): Remove.
14505 (fillin_rpath): Remove check_trusted argument and its use,
14506 all callers changed.
14507
145082017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14509
14510 [BZ #22630]
14511 * Makeconfig (link-pie-before-libc): Replace -pie with
14512 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
14513 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
14514 (tst-dlopen-aout-no-pie): New.
14515 (LDFLAGS-tst-prelink): Removed.
14516 (tst-prelink-no-pie): New.
14517 (LDFLAGS-tst-main1): Removed.
14518 (tst-main1-no-pie): New.
14519 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
14520 (tst-gmon-no-pie): New.
14521
145222017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14523
14524 * manual/install.texi: Document that --enable-static-pie
14525 implies PIE.
14526 * INSTALL: Regenerated.
14527
145282017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
14529
14530 [BZ #21309]
14531 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
14532 unsigned.
14533
145342017-12-19 Joseph Myers <joseph@codesourcery.com>
14535
14536 Revert:
14537
14538 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14539
14540 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14541
14542 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14543
14544 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
14545 <errno.h>. Include "eexp.tbl".
14546 (half): New constant.
14547 (one): Likewise.
14548 (__ieee754_exp): Rewrite.
14549 (__slowexp): Remove prototype.
14550 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
14551 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
14552 * sysdeps/i386/fpu/slowexp.c: Likewise.
14553 * sysdeps/ia64/fpu/slowexp.c: Likewise.
14554 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
14555 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
14556 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
14557 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14558 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
14559 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
14560 comment.
14561 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
14562 (CPPFLAGS-slowexp.c): Remove variable.
14563 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14564 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
14565 (CFLAGS-slowexp-fma.c): Remove variable.
14566 (CFLAGS-slowexp-fma4.c): Likewise.
14567 (CFLAGS-slowexp-avx.c): Likewise.
14568 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
14569 define as macro.
14570 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
14571 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
14572 * math/Makefile (type-double-routines): Remove slowexp.
14573 * manual/probes.texi (slowexp_p6): Remove.
14574 (slowexp_p32): Likewise.
14575
145762017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14577
14578 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
14579 arithmetic.
14580
14581 * lib/glob.c (glob): Do not pass NULL to mempcpy.
14582
145832017-12-19 Joseph Myers <joseph@codesourcery.com>
14584
14585 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14586
145872017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14588
14589 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
14590 <errno.h>. Include "eexp.tbl".
14591 (half): New constant.
14592 (one): Likewise.
14593 (__ieee754_exp): Rewrite.
14594 (__slowexp): Remove prototype.
14595 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
14596 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
14597 * sysdeps/i386/fpu/slowexp.c: Likewise.
14598 * sysdeps/ia64/fpu/slowexp.c: Likewise.
14599 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
14600 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
14601 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
14602 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14603 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
14604 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
14605 comment.
14606 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
14607 (CPPFLAGS-slowexp.c): Remove variable.
14608 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14609 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
14610 (CFLAGS-slowexp-fma.c): Remove variable.
14611 (CFLAGS-slowexp-fma4.c): Likewise.
14612 (CFLAGS-slowexp-avx.c): Likewise.
14613 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
14614 define as macro.
14615 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
14616 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
14617 * math/Makefile (type-double-routines): Remove slowexp.
14618 * manual/probes.texi (slowexp_p6): Remove.
14619 (slowexp_p32): Likewise.
14620
146212017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14622 James Clarke <jrtc27@jrtc27.com>
14623
14624 [BZ #22603]
14625 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
14626 addition.
14627
146282017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14629
14630 [BZ #22605]
14631 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
14632 code.
14633
146342017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14635
14636 [BZ #22563]
14637 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14638 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
14639 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14640 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
14641 to feature_1.
14642
146432017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14644
14645 [BZ #22563]
14646 * bits/types/__cancel_jmp_buf_tag.h: New file.
14647 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
14648 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
14649 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
14650 * nptl/Makefile (headers): Add
14651 bits/types/__cancel_jmp_buf_tag.h.
14652 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
14653 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
14654 * sysdeps/nptl/pthread.h: Include
14655 <bits/types/__cancel_jmp_buf_tag.h>.
14656 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
14657 __cancel_jmp_buf.
14658 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
14659
146602017-12-18 H.J. Lu <hongjiu.lu@intel.com>
14661
14662 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14663 --enable-static-pie variants to x86_64, x32 and i686.
14664
146652017-12-19 Joseph Myers <joseph@codesourcery.com>
14666
14667 [BZ #22631]
14668 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
14669 argument for attrubutes. All callers changed.
14670 (__inline_mathop1): Likewise. All callers changed.
14671 (__inline_mathop): Likewise. All callers changed.
14672 [__USE_MISC] (scalbn): Use __inline_forward instead of
14673 __inline_forward_c.
14674 [__USE_ISOC99] (scalbln): Likewise.
14675 [__USE_ISOC99] (nearbyint): Likewise.
14676 [__USE_ISOC99] (lrint): Likewise.
14677 [__USE_MISC] (scalbnf): Likewise.
14678 [__USE_ISOC99] (scalblnf): Likewise.
14679 [__USE_ISOC99] (nearbyintf): Likewise.
14680 [__USE_ISOC99] (lrintf): Likewise.
14681 [__USE_MISC] (scalbnl): Likewise.
14682 [__USE_ISOC99] (scalblnl): Likewise.
14683 [__USE_ISOC99] (nearbyintl): Likewise.
14684 [__USE_ISOC99] (lrintl): Likewise.
14685 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
14686 __inline_mathop and __m81_defun changed.
14687
14688 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
14689 CPU or FPU for ARM hard-float configurations.
14690
146912017-12-18 Joseph Myers <joseph@codesourcery.com>
14692
14693 * nptl/tst-attr3.c: Include <libc-diag.h>.
14694 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
14695
14696 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
14697
14698 * string/tester.c (test_strncat): Also disable -Warray-bounds
14699 warnings for two tests.
14700
147012017-12-18 H.J. Lu <hongjiu.lu@intel.com>
14702
14703 [BZ #22614]
14704 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
14705 $(cc-pie-default) == yes.
14706 * config.make.in (cc-pie-default): New.
14707 * configure.ac (libc_cv_pie_default): Renamed to ...
14708 (libc_cv_cc_pie_default): This.
14709 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
14710 * configure: Regenerated.
14711
147122017-12-18 Florian Weimer <fweimer@redhat.com>
14713
14714 [BZ #20204]
14715 ld.so: Harden dl-libc/libdl hooks.
14716 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
14717 (rtld_active): New function.
14718 * dlfcn/dladdr.c (__dladdr): Call it.
14719 * dlfcn/dladdr1.c (__dladdr1): Likewise.
14720 * dlfcn/dlclose.c (__dlcose): Likewise.
14721 * dlfcn/dlerror.c (__dlerror): Likewise.
14722 * dlfcn/dlinfo.c (__dlinfo): Likewise.
14723 * dlfcn/dlmopen.c (__dlmopen): Likewise.
14724 * dlfcn/dlopen.c (__dlopen): Likewise.
14725 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
14726 * dlfcn/dlsym.c (__dlsym): Likewise.
14727 * dlfcn/dlvsym.c (__dlvsym): Likewise.
14728 * libio/vtables.c (_IO_vtable_check): Likewise.
14729 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
14730 (__libc_dlclose): Likewise.
14731 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
14732 assignment.
14733
147342017-12-18 Joseph Myers <joseph@codesourcery.com>
14735
14736 [BZ #22446]
14737 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
14738 buffers for readlink input and output.
14739
147402017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
14741
14742 [BZ #22624]
14743 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
14744 inhibit_stack_protector.
14745
14746 [BZ #22624]
14747 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
14748 inhibit_stack_protector.
14749
147502017-12-18 Dmitry V. Levin <ldv@altlinux.org>
14751
14752 [BZ #22627]
14753 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
14754 code and invocation.
14755
147562017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
14757
14758 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
14759
147602017-12-16 Aurelien Jarno <aurelien@aurel32.net>
14761
14762 [BZ #22505]
14763 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
14764
147652017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14766
14767 * sysdeps/s390/fpu/libm-test-ulps: Update.
14768
147692017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14770
14771 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14772
147732017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14774
14775 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
14776 constants to s_sincosf.h file.
14777 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14778 * sysdeps/ieee754/flt-32/s_sincosf.c: New
14779 implementation.
14780 * sysdeps/ieee754/flt-32/s_sincosf.h:
14781 New file.
14782
147832017-12-12 Carlos O'Donell <carlos@redhat.com>
14784
14785 [BZ #14681]
14786 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
14787 before mtrace.
14788
147892017-12-15 H.J. Lu <hongjiu.lu@intel.com>
14790
14791 [BZ #19574]
14792 * INSTALL: Regenerated.
14793 * Makeconfig (real-static-start-installed-name): New.
14794 (pic-default): Updated for --enable-static-pie.
14795 (pie-default): New for --enable-static-pie.
14796 (default-pie-ldflag): Likewise.
14797 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
14798 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
14799 Replace $(static-start-installed-name) with
14800 $(real-static-start-installed-name).
14801 (+prectorT): Updated for --enable-static-pie.
14802 (+postctorT): Likewise.
14803 (CFLAGS-.o): Add $(pie-default).
14804 (CFLAGS-.op): Likewise.
14805 * NEWS: Mention --enable-static-pie.
14806 * config.h.in (ENABLE_STATIC_PIE): New.
14807 * configure.ac (--enable-static-pie): New configure option.
14808 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
14809 (have-static-pie): Likewise.
14810 Enable static PIE if linker supports --no-dynamic-linker.
14811 (ENABLE_STATIC_PIE): New AC_DEFINE.
14812 (enable-static-pie): New LIBC_CONFIG_VAR.
14813 * configure: Regenerated.
14814 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
14815 gr$(start-installed-name) for --enable-static-pie.
14816 (extra-objs): Likewise.
14817 (install-lib): Likewise.
14818 (extra-objs): Add static-reloc.o and static-reloc.os
14819 ($(objpfx)$(start-installed-name)): Also depend on
14820 $(objpfx)static-reloc.o.
14821 ($(objpfx)r$(start-installed-name)): New.
14822 ($(objpfx)g$(start-installed-name)): Also depend on
14823 $(objpfx)static-reloc.os.
14824 ($(objpfx)gr$(start-installed-name)): New.
14825 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
14826 in libc.a.
14827 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
14828 initimage.
14829 * csu/static-reloc.c: New file.
14830 * elf/Makefile (routines): Add dl-reloc-static-pie.
14831 (elide-routines.os): Likewise.
14832 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
14833 (tst-tls1-static-non-pie-no-pie): New.
14834 * elf/dl-reloc-static-pie.c: New file.
14835 * elf/dl-support.c (_dl_get_dl_main_map): New function.
14836 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
14837 STATIC_PIE_BOOTSTRAP.
14838 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
14839 * gmon/Makefile (tests): Add tst-gmon-static-pie.
14840 (tests-static): Likewise.
14841 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
14842 (tst-gmon-static-no-pie): New.
14843 (CFLAGS-tst-gmon-static-pie.c): Likewise.
14844 (CRT-tst-gmon-static-pie): Likewise.
14845 (tst-gmon-static-pie-ENV): Likewise.
14846 (tests-special): Likewise.
14847 ($(objpfx)tst-gmon-static-pie.out): Likewise.
14848 (clean-tst-gmon-static-pie-data): Likewise.
14849 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
14850 * gmon/tst-gmon-static-pie.c: New file.
14851 * manual/install.texi: Document --enable-static-pie.
14852 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
14853 (_dl_get_dl_main_map): Likewise.
14854 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
14855 * sysdeps/x86_64/configure.ac: Likewise.
14856 * sysdeps/i386/configure: Regenerated.
14857 * sysdeps/x86_64/configure: Likewise.
14858 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
14859 (ASFLAGS-.op): Likewise.
14860
148612017-12-15 Joseph Myers <joseph@codesourcery.com>
14862
14863 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
14864 * posix/tst-mmap-offset.c (fname): Use /tmp.
14865 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
14866
148672017-12-15 Steve Ellcey <sellcey@cavium.com>
14868
14869 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
14870
148712017-12-15 Thomas Schwinge <thomas@codesourcery.com>
14872
14873 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
14874 errno.
14875
148762017-12-15 Joseph Myers <joseph@codesourcery.com>
14877
14878 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14879 --with-float=hard for arm-linux-gnueabihf configurations.
14880
14881 [BZ #14121]
14882 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
14883 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
14884 ($(mo-installed)): Use $(objpfx)%.mo.
14885 (realclean): Remove rule.
14886
14887 * po/Makefile (linguas): Remove rule and dependencies.
14888 (linguas.mo): Likewise.
14889 (.PHONY): Do not depend on linguas and linguas.mo.
14890 (podir): Remove variable.
14891 (pofiles): Likewise.
14892 [$(pofiles)] (%.po): Remove rule.
14893
14894 * sysdeps/sparc/sparc32/Makefile
14895 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
14896 start-of-line whitespace in argument of echo.
14897 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
14898 with whitespace. Generate __wrap_.udiv alias.
14899 * sysdeps/sparc/sparc32/rem.S: Regenerated.
14900 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
14901 * sysdeps/sparc/sparc32/udiv.S: Likewise.
14902 * sysdeps/sparc/sparc32/urem.S: Likewise.
14903
149042017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14905
14906 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
14907 for aligned inputs.
14908
149092017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14910
14911 * benchtests/bench-strcmp.c: Print output in JSON format.
14912
14913 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
14914
149152017-12-14 Florian Weimer <fweimer@redhat.com>
14916
14917 [BZ #22607]
14918 CVE-2017-1000409
14919 * elf/dl-load.c (_dl_init_paths): Compute number of components in
14920 the expanded path string.
14921
149222017-12-14 Florian Weimer <fweimer@redhat.com>
14923
14924 [BZ #22606]
14925 CVE-2017-1000408
14926 * elf/dl-load.c (system_dirs): Update comment.
14927 (nsystem_dirs_len): Use array_length.
14928 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
14929
149302017-12-14 Florian Weimer <fweimer@redhat.com>
14931
14932 Simplify compiling most of support/ outside of glibc.
14933 * support/check_addrinfo.c: Include <string.h>.
14934 * support/check_dns_packet.c: Likewise.
14935 * support/check_hostent.c: Likewise.
14936 * support/support_can_chroot.c: Include <support/xunistd.h>.
14937 * support/support_format_addrinfo.c: Include <stdlib.h>
14938 * support/support_format_dns_packet.c: Include <stdbool.h>.
14939 * support/support_format_hostent.c: Include <stdlib.h>.
14940 * support/support_format_netent.c: Likewise.
14941 * support/support_write_string.c: Include <support/xunistd.h>.
14942 * support/xdlfcn.c: Include <stddef.h>.
14943
149442017-12-14 H.J. Lu <hongjiu.lu@intel.com>
14945
14946 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
14947
149482017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14949 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14950
14951 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14952 (sysdeps_routines): Add memset-niagara7.
14953 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
14954 Likewise.
14955 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
14956 file.
14957 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
14958 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
14959 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
14960 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
14961 Add niagara7 option.
14962 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
14963 memset.
14964
14965 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14966 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
14967 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
14968 Likewise.
14969 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
14970 New file.
14971 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
14972 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
14973 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
14974 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
14975 and __memmove_niagara7.
14976 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
14977 Add niagara7 option.
14978 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
14979 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
14980 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
14981 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
14982 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
14983
149842017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14985
14986 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
14987 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
14988 * sysdeps/sparc/sparc64/memmove.S: Likewise.
14989 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
14990
14991 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
14992 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
14993 _dl_sparc_cap_flags array.
14994 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
14995
149962017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14997
14998 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
14999 time whenever possible.
15000
150012017-12-12 Carlos O'Donell <carlos@redhat.com>
15002
15003 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
15004 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
15005
150062017-12-12 Joseph Myers <joseph@codesourcery.com>
15007
15008 * soft-fp/fmadf4.c: Move to ....
15009 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
15010 * soft-fp/fmasf4.c: Move to ....
15011 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
15012 * soft-fp/fmatf4.c: Move to ....
15013 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
15014 * sysdeps/ieee754/soft-fp/Makefile: New file.
15015 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
15016 * sysdeps/arm/preconfigure: Regenerated.
15017 * sysdeps/arm/nofpu/Implies: New file.
15018 * sysdeps/arm/s_fma.c: Remove file.
15019 * sysdeps/arm/s_fmaf.c: Likewise.
15020 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
15021 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
15022 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
15023 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
15024 * sysdeps/microblaze/s_fma.c: Remove file.
15025 * sysdeps/microblaze/s_fmaf.c: Likewise.
15026 * sysdeps/mips/mips32/nofpu/Implies: New file.
15027 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
15028 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
15029 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
15030 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
15031 * sysdeps/mips/ieee754/s_fma.c: Remove file.
15032 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
15033 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
15034 implementation.
15035 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
15036 * sysdeps/nios2/s_fma.c: Remove file.
15037 * sysdeps/nios2/s_fmaf.c: Likewise.
15038 * sysdeps/sh/nofpu/Implies: New file.
15039 * sysdeps/sh/s_fma.c: Remove file.
15040 * sysdeps/sh/s_fmaf.c: Likewise.
15041 * sysdeps/tile/Implies: Add ieee754/soft-fp.
15042 * sysdeps/tile/s_fma.c: Remove file.
15043 * sysdeps/tile/s_fmaf.c: Likewise.
15044
150452017-12-12 H.J. Lu <hongjiu.lu@intel.com>
15046
15047 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15048 Add s_cosf-sse2 and s_cosf-fma.
15049 (CFLAGS-s_cosf-fma.c): New.
15050 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
15051 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
15052 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
15053
150542017-12-12 Steve Ellcey <sellcey@cavium.com>
15055
15056 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
15057
150582017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15059
15060 * libio/Makefile (tests): Add tst-bz22415.
15061 (tst-bz22415-ENV): New rule.
15062 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
15063 (tests-special): Add tst-bz22415-mem.out.
15064 ($(objpfx)tst-bz22415-mem.out): New rule.
15065 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
15066 in case of a successful seek operation.
15067 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
15068 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
15069 buffer is required.
15070 * libio/tst-bz22415.c: New test.
15071
15072 * sysdeps/ia64/fpu/libm-test-ulps: Update.
15073
150742017-12-12 James Clarke <jrtc27@jrtc27.com>
15075
15076 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
15077 __IPC_64 to 0 to avoid IPC_64 being set.
15078
150792017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15080
15081 [BZ #22593]
15082 * math/bits/mathcalls.h (nextafter): Remove const.
15083 (nexttoward): Likewise.
15084
150852017-12-12 Joseph Myers <joseph@codesourcery.com>
15086
15087 * configure.ac (--with-fp): Remove configure option.
15088 (with_fp_cond): New variable.
15089 (libc_cv_with_fp): New configure test. Use this variable instead
15090 of with_fp.
15091 * configure: Regenerated.
15092 * config.make.in (with-fp): Use @libc_cv_with_fp@.
15093 * manual/install.texi (Configuring and compiling): Remove
15094 --without-fp.
15095 * INSTALL: Regenerated.
15096 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
15097 * sysdeps/mips/preconfigure (with_fp_cond): Define.
15098 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
15099 * sysdeps/sh/preconfigure (with_fp_cond): Define.
15100 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
15101 use --without-fp to configure glibc.
15102
151032017-12-12 Rical Jasan <ricaljasan@pacific.net>
15104
15105 * manual/locale.texi (nl_langinfo): Fix a typo.
15106
151072017-12-12 Aurelien Jarno <aurelien@aurel32.net>
15108
15109 [BZ #22588]
15110 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
15111
151122017-12-11 H.J. Lu <hongjiu.lu@intel.com>
15113
15114 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
15115 (CFLAGS-argp-parse.c): Likewise.
15116 (CFLAGS-argp-fmtstream.c): Likewise.
15117 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
15118 (CPPFLAGS-sha512-crypt.c): Likewise.
15119 (CPPFLAGS-md5-crypt.c): Likewise.
15120 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
15121 (CFLAGS-stack_chk_fail_local.c): Likewise.
15122 (CFLAGS-backtrace.c): Likewise.
15123 (CFLAGS-sprintf_chk.c): Likewise.
15124 (CFLAGS-snprintf_chk.c): Likewise.
15125 (CFLAGS-vsprintf_chk.c): Likewise.
15126 (CFLAGS-vsnprintf_chk.c): Likewise.
15127 (CFLAGS-asprintf_chk.c): Likewise.
15128 (CFLAGS-vasprintf_chk.c): Likewise.
15129 (CFLAGS-obprintf_chk.c): Likewise.
15130 (CFLAGS-dprintf_chk.c): Likewise.
15131 (CFLAGS-vdprintf_chk.c): Likewise.
15132 (CFLAGS-printf_chk.c): Likewise.
15133 (CFLAGS-fprintf_chk.c): Likewise.
15134 (CFLAGS-vprintf_chk.c): Likewise.
15135 (CFLAGS-vfprintf_chk.c): Likewise.
15136 (CFLAGS-gets_chk.c): Likewise.
15137 (CFLAGS-fgets_chk.c): Likewise.
15138 (CFLAGS-fgets_u_chk.c): Likewise.
15139 (CFLAGS-fread_chk.c): Likewise.
15140 (CFLAGS-fread_u_chk.c): Likewise.
15141 (CFLAGS-swprintf_chk.c): Likewise.
15142 (CFLAGS-vswprintf_chk.c): Likewise.
15143 (CFLAGS-wprintf_chk.c): Likewise.
15144 (CFLAGS-fwprintf_chk.c): Likewise.
15145 (CFLAGS-vwprintf_chk.c): Likewise.
15146 (CFLAGS-vfwprintf_chk.c): Likewise.
15147 (CFLAGS-fgetws_chk.c): Likewise.
15148 (CFLAGS-fgetws_u_chk.c): Likewise.
15149 (CFLAGS-read_chk.c): Likewise.
15150 (CFLAGS-pread_chk.c): Likewise.
15151 (CFLAGS-pread64_chk.c): Likewise.
15152 (CFLAGS-recv_chk.c): Likewise.
15153 (CFLAGS-recvfrom_chk.c): Likewise.
15154 (CFLAGS-tst-longjmp_chk.c): Likewise.
15155 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
15156 (CFLAGS-tst-longjmp_chk2.c): Likewise.
15157 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
15158 (CFLAGS-tst-longjmp_chk3.c): Likewise.
15159 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
15160 (CFLAGS-tst-chk1.c): Likewise.
15161 (CFLAGS-tst-chk2.c): Likewise.
15162 (CFLAGS-tst-chk3.c): Likewise.
15163 (CFLAGS-tst-chk4.cc): Likewise.
15164 (CFLAGS-tst-chk5.cc): Likewise.
15165 (CFLAGS-tst-chk6.cc): Likewise.
15166 (CFLAGS-tst-lfschk1.c): Likewise.
15167 (CFLAGS-tst-lfschk2.c): Likewise.
15168 (CFLAGS-tst-lfschk3.c): Likewise.
15169 (CFLAGS-tst-lfschk4.cc): Likewise.
15170 (CFLAGS-tst-lfschk5.cc): Likewise.
15171 (CFLAGS-tst-lfschk6.cc): Likewise.
15172 (CFLAGS-tst-ssp-1.c): Likewise.
15173 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
15174 (CFLAGS-scandir64.c): Likewise.
15175 (CFLAGS-scandir-tail.c): Likewise.
15176 (CFLAGS-scandir64-tail.c): Likewise.
15177 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
15178 (CFLAGS-dl-tunables.c): Likewise.
15179 (CFLAGS-dl-runtime.c): Likewise.
15180 (CFLAGS-dl-lookup.c): Likewise.
15181 (CFLAGS-dl-iterate-phdr.c): Likewise.
15182 (CFLAGS-vismain.c): Likewise.
15183 (CFLAGS-tst-linkall-static.c): Likewise.
15184 (CFLAGS-tst-linkall-static.c): Likewise.
15185 (CPPFLAGS-dl-load.c): Likewise.
15186 (CFLAGS-ldconfig.c): Likewise.
15187 (CFLAGS-dl-cache.c): Likewise.
15188 (CFLAGS-cache.c): Likewise.
15189 (CFLAGS-rtld.c): Likewise.
15190 (CFLAGS-multiload.c): Likewise.
15191 (CFLAGS-filtmod1.c): Likewise.
15192 (CFLAGS-tst-align.c): Likewise.
15193 (CFLAGS-tst-align2.c): Likewise.
15194 (CFLAGS-tst-alignmod.c): Likewise.
15195 (CFLAGS-tst-alignmod2.c): Likewise.
15196 (CPPFLAGS-tst-execstack.c): Likewise.
15197 (CFLAGS-tst-ptrguard1-static.c): Likewise.
15198 (CFLAGS-tst-latepthreadmod.c): Likewise.
15199 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
15200 (CFLAGS-getgrnam_r.c): Likewise.
15201 (CFLAGS-getgrent_r.c): Likewise.
15202 (CFLAGS-getgrent.c): Likewise.
15203 (CFLAGS-fgetgrent.c): Likewise.
15204 (CFLAGS-fgetgrent_r.c): Likewise.
15205 (CFLAGS-putgrent.c): Likewise.
15206 (CFLAGS-initgroups.c): Likewise.
15207 (CFLAGS-getgrgid.c): Likewise.
15208 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
15209 (CFLAGS-getsgent.c): Likewise.
15210 (CFLAGS-fgetsgent.c): Likewise.
15211 (CFLAGS-fgetsgent_r.c): Likewise.
15212 (CFLAGS-putsgent.c): Likewise.
15213 (CFLAGS-getsgnam.c): Likewise.
15214 (CFLAGS-getsgnam_r.c): Likewise.
15215 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
15216 (CFLAGS-iconv_charmap.c): Likewise.
15217 (CFLAGS-dummy-repertoire.c): Likewise.
15218 (CFLAGS-charmap.c): Likewise.
15219 (CFLAGS-linereader.c): Likewise.
15220 (CFLAGS-simple-hash.c): Likewise.
15221 (CFLAGS-gconv_conf.c): Likewise.
15222 (CFLAGS-iconvconfig.c): Likewise.
15223 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15224 (CFLAGS-gethstbyad.c): Likewise.
15225 (CFLAGS-gethstbynm_r.c): Likewise.
15226 (CFLAGS-gethstbynm.c): Likewise.
15227 (CFLAGS-gethstbynm2_r.c): Likewise.
15228 (CFLAGS-gethstbynm2.c): Likewise.
15229 (CFLAGS-gethstent_r.c): Likewise.
15230 (CFLAGS-gethstent.c): Likewise.
15231 (CFLAGS-rcmd.c): Likewise.
15232 (CFLAGS-getnetbynm_r.c): Likewise.
15233 (CFLAGS-getnetbynm.c): Likewise.
15234 (CFLAGS-getnetbyad_r.c): Likewise.
15235 (CFLAGS-getnetbyad.c): Likewise.
15236 (CFLAGS-getnetent_r.c): Likewise.
15237 (CFLAGS-getnetent.c): Likewise.
15238 (CFLAGS-getaliasent_r.c): Likewise.
15239 (CFLAGS-getaliasent.c): Likewise.
15240 (CFLAGS-getrpcent_r.c): Likewise.
15241 (CFLAGS-getrpcent.c): Likewise.
15242 (CFLAGS-getservent_r.c): Likewise.
15243 (CFLAGS-getservent.c): Likewise.
15244 (CFLAGS-getprtent_r.c): Likewise.
15245 (CFLAGS-getprtent.c): Likewise.
15246 (CFLAGS-either_ntoh.c): Likewise.
15247 (CFLAGS-either_hton.c): Likewise.
15248 (CFLAGS-getnetgrent.c): Likewise.
15249 (CFLAGS-getnetgrent_r.c): Likewise.
15250 (CFLAGS-tst-checks-posix.c): Likewise.
15251 (CFLAGS-tst-sockaddr.c): Likewise.
15252 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
15253 (CFLAGS-tst-translit.c): Likewise.
15254 (CFLAGS-tst-gettext2.c): Likewise.
15255 (CFLAGS-tst-codeset.c): Likewise.
15256 (CFLAGS-tst-gettext3.c): Likewise.
15257 (CFLAGS-tst-gettext4.c): Likewise.
15258 (CFLAGS-tst-gettext5.c): Likewise.
15259 (CFLAGS-tst-gettext6.c): Likewise.
15260 * io/Makefile (CFLAGS-open.c): Likewise.
15261 (CFLAGS-open64.c): Likewise.
15262 (CFLAGS-creat.c): Likewise.
15263 (CFLAGS-creat64.c): Likewise.
15264 (CFLAGS-fcntl.c): Likewise.
15265 (CFLAGS-poll.c): Likewise.
15266 (CFLAGS-ppoll.c): Likewise.
15267 (CFLAGS-lockf.c): Likewise.
15268 (CFLAGS-statfs.c): Likewise.
15269 (CFLAGS-fstatfs.c): Likewise.
15270 (CFLAGS-statvfs.c): Likewise.
15271 (CFLAGS-fstatvfs.c): Likewise.
15272 (CFLAGS-fts.c): Likewise.
15273 (CFLAGS-fts64.c): Likewise.
15274 (CFLAGS-ftw.c): Likewise.
15275 (CFLAGS-ftw64.c): Likewise.
15276 (CFLAGS-lockf.c): Likewise.
15277 (CFLAGS-posix_fallocate.c): Likewise.
15278 (CFLAGS-posix_fallocate64.c): Likewise.
15279 (CFLAGS-fallocate.c): Likewise.
15280 (CFLAGS-fallocate64.c): Likewise.
15281 (CFLAGS-read.c): Likewise.
15282 (CFLAGS-write.c): Likewise.
15283 (CFLAGS-test-stat.c): Likewise.
15284 (CFLAGS-test-lfs.c): Likewise.
15285 * libio/Makefile (CFLAGS-fileops.c): Likewise.
15286 (CFLAGS-fputc.c): Likewise.
15287 (CFLAGS-fputwc.c): Likewise.
15288 (CFLAGS-freopen64.c): Likewise.
15289 (CFLAGS-freopen.c): Likewise.
15290 (CFLAGS-fseek.c): Likewise.
15291 (CFLAGS-fseeko64.c): Likewise.
15292 (CFLAGS-fseeko.c): Likewise.
15293 (CFLAGS-ftello64.c): Likewise.
15294 (CFLAGS-ftello.c): Likewise.
15295 (CFLAGS-fwide.c): Likewise.
15296 (CFLAGS-genops.c): Likewise.
15297 (CFLAGS-getc.c): Likewise.
15298 (CFLAGS-getchar.c): Likewise.
15299 (CFLAGS-getwc.c): Likewise.
15300 (CFLAGS-getwchar.c): Likewise.
15301 (CFLAGS-iofclose.c): Likewise.
15302 (CFLAGS-iofflush.c): Likewise.
15303 (CFLAGS-iofgetpos64.c): Likewise.
15304 (CFLAGS-iofgetpos.c): Likewise.
15305 (CFLAGS-iofgets.c): Likewise.
15306 (CFLAGS-iofgetws.c): Likewise.
15307 (CFLAGS-iofputs.c): Likewise.
15308 (CFLAGS-iofputws.c): Likewise.
15309 (CFLAGS-iofread.c): Likewise.
15310 (CFLAGS-iofsetpos64.c): Likewise.
15311 (CFLAGS-iofsetpos.c): Likewise.
15312 (CFLAGS-ioftell.c): Likewise.
15313 (CFLAGS-iofwrite.c): Likewise.
15314 (CFLAGS-iogetdelim.c): Likewise.
15315 (CFLAGS-iogetline.c): Likewise.
15316 (CFLAGS-iogets.c): Likewise.
15317 (CFLAGS-iogetwline.c): Likewise.
15318 (CFLAGS-ioputs.c): Likewise.
15319 (CFLAGS-ioseekoff.c): Likewise.
15320 (CFLAGS-ioseekpos.c): Likewise.
15321 (CFLAGS-iosetbuffer.c): Likewise.
15322 (CFLAGS-iosetvbuf.c): Likewise.
15323 (CFLAGS-ioungetc.c): Likewise.
15324 (CFLAGS-ioungetwc.c): Likewise.
15325 (CFLAGS-oldfileops.c): Likewise.
15326 (CFLAGS-oldiofclose.c): Likewise.
15327 (CFLAGS-oldiofgetpos64.c): Likewise.
15328 (CFLAGS-oldiofgetpos.c): Likewise.
15329 (CFLAGS-oldiofsetpos64.c): Likewise.
15330 (CFLAGS-oldiofsetpos.c): Likewise.
15331 (CFLAGS-peekc.c): Likewise.
15332 (CFLAGS-putc.c): Likewise.
15333 (CFLAGS-putchar.c): Likewise.
15334 (CFLAGS-putwc.c): Likewise.
15335 (CFLAGS-putwchar.c): Likewise.
15336 (CFLAGS-rewind.c): Likewise.
15337 (CFLAGS-wfileops.c): Likewise.
15338 (CFLAGS-wgenops.c): Likewise.
15339 (CFLAGS-oldiofopen.c): Likewise.
15340 (CFLAGS-iofopen.c): Likewise.
15341 (CFLAGS-iofopen64.c): Likewise.
15342 (CFLAGS-oldtmpfile.c): Likewise.
15343 (CFLAGS-tst_putwc.c): Likewise.
15344 * locale/Makefile (CFLAGS-md5.c): Likewise.
15345 (CFLAGS-charmap.c): Likewise.
15346 (CFLAGS-locfile.c): Likewise.
15347 (CFLAGS-charmap-dir.c): Likewise.
15348 * login/Makefile (CFLAGS-grantpt.c): Likewise.
15349 (CFLAGS-getpt.c): Likewise.
15350 (CFLAGS-pt_chown.c): Likewise.
15351 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
15352 (CFLAGS-obstack.c): Likewise.
15353 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
15354 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
15355 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
15356 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
15357 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
15358 (CFLAGS-test-tgmath.c): Likewise.
15359 (CFLAGS-test-tgmath2.c): Likewise.
15360 (CFLAGS-test-tgmath-ret.c): Likewise.
15361 (CFLAGS-test-powl.c): Likewise.
15362 (CFLAGS-test-snan.c): Likewise.
15363 (CFLAGS-test-signgam-finite.c): Likewise.
15364 (CFLAGS-test-signgam-finite-c99.c): Likewise.
15365 (CFLAGS-test-signgam-finite-c11.c): Likewise.
15366 (CFLAGS-test-signgam-uchar.c): Likewise.
15367 (CFLAGS-test-signgam-uchar-init.c): Likewise.
15368 (CFLAGS-test-signgam-uchar-static.c): Likewise.
15369 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
15370 (CFLAGS-test-signgam-uint.c): Likewise.
15371 (CFLAGS-test-signgam-uint-init.c): Likewise.
15372 (CFLAGS-test-signgam-uint-static.c): Likewise.
15373 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
15374 (CFLAGS-test-signgam-ullong.c): Likewise.
15375 (CFLAGS-test-signgam-ullong-init.c): Likewise.
15376 (CFLAGS-test-signgam-ullong-static.c): Likewise.
15377 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
15378 (CFLAGS-test-math-cxx11.cc): Likewise.
15379 (CFLAGS-test-math-isinff.cc): Likewise.
15380 (CFLAGS-test-math-iszero.cc): Likewise.
15381 (CFLAGS-test-math-issignaling.cc): Likewise.
15382 (CFLAGS-test-math-iscanonical.cc): Likewise.
15383 (CFLAGS-test-iszero-excess-precision.c): Likewise.
15384 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
15385 (CFLAGS-test-flt-eval-method.c): Likewise.
15386 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
15387 (CFLAGS-test-finite-macros.c): Likewise.
15388 * misc/Makefile (CFLAGS-select.c): Likewise.
15389 (CFLAGS-tsearch.c): Likewise.
15390 (CFLAGS-lsearch.c): Likewise.
15391 (CFLAGS-pselect.c): Likewise.
15392 (CFLAGS-readv.c): Likewise.
15393 (CFLAGS-writev.c): Likewise.
15394 (CFLAGS-preadv.c): Likewise.
15395 (CFLAGS-preadv64.c): Likewise.
15396 (CFLAGS-pwritev.c): Likewise.
15397 (CFLAGS-pwritev64.c): Likewise.
15398 (CFLAGS-preadv2.c): Likewise.
15399 (CFLAGS-preadv64v2.c): Likewise.
15400 (CFLAGS-pwritev2.c): Likewise.
15401 (CFLAGS-pwritev64v2.c): Likewise.
15402 (CFLAGS-usleep.c): Likewise.
15403 (CFLAGS-syslog.c): Likewise.
15404 (CFLAGS-error.c): Likewise.
15405 (CFLAGS-getpass.c): Likewise.
15406 (CFLAGS-mkstemp.c): Likewise.
15407 (CFLAGS-mkstemp64.c): Likewise.
15408 (CFLAGS-getsysstats.c): Likewise.
15409 (CFLAGS-getusershell.c): Likewise.
15410 (CFLAGS-err.c): Likewise.
15411 (CFLAGS-tst-tsearch.c): Likewise.
15412 (CFLAGS-msync.c): Likewise.
15413 (CFLAGS-fdatasync.c): Likewise.
15414 (CFLAGS-fsync.c): Likewise.
15415 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
15416 (CFLAGS-unwind.c): Likewise.
15417 (CFLAGS-unwind-forcedunwind.c): Likewise.
15418 (CFLAGS-pthread_cancel.c): Likewise.
15419 (CFLAGS-pthread_setcancelstate.c): Likewise.
15420 (CFLAGS-pthread_setcanceltype.c): Likewise.
15421 (CFLAGS-cancellation.c): Likewise.
15422 (CFLAGS-libc-cancellation.c): Likewise.
15423 (CFLAGS-pthread_exit.c): Likewise.
15424 (CFLAGS-forward.c): Likewise.
15425 (CFLAGS-pthread_testcancel.c): Likewise.
15426 (CFLAGS-pthread_join.c): Likewise.
15427 (CFLAGS-pthread_timedjoin.c): Likewise.
15428 (CFLAGS-pthread_once.c): Likewise.
15429 (CFLAGS-pthread_cond_wait.c): Likewise.
15430 (CFLAGS-sem_wait.c): Likewise.
15431 (CFLAGS-sem_timedwait.c): Likewise.
15432 (CFLAGS-fcntl.c): Likewise.
15433 (CFLAGS-lockf.c): Likewise.
15434 (CFLAGS-pread.c): Likewise.
15435 (CFLAGS-pread64.c): Likewise.
15436 (CFLAGS-pwrite.c): Likewise.
15437 (CFLAGS-pwrite64.c): Likewise.
15438 (CFLAGS-wait.c): Likewise.
15439 (CFLAGS-waitpid.c): Likewise.
15440 (CFLAGS-sigwait.c): Likewise.
15441 (CFLAGS-msgrcv.c): Likewise.
15442 (CFLAGS-msgsnd.c): Likewise.
15443 (CFLAGS-tcdrain.c): Likewise.
15444 (CFLAGS-open.c): Likewise.
15445 (CFLAGS-open64.c): Likewise.
15446 (CFLAGS-pause.c): Likewise.
15447 (CFLAGS-recv.c): Likewise.
15448 (CFLAGS-send.c): Likewise.
15449 (CFLAGS-accept.c): Likewise.
15450 (CFLAGS-sendto.c): Likewise.
15451 (CFLAGS-connect.c): Likewise.
15452 (CFLAGS-recvfrom.c): Likewise.
15453 (CFLAGS-recvmsg.c): Likewise.
15454 (CFLAGS-sendmsg.c): Likewise.
15455 (CFLAGS-close.c): Likewise.
15456 (CFLAGS-read.c): Likewise.
15457 (CFLAGS-write.c): Likewise.
15458 (CFLAGS-nanosleep.c): Likewise.
15459 (CFLAGS-sigsuspend.c): Likewise.
15460 (CFLAGS-msync.c): Likewise.
15461 (CFLAGS-fdatasync.c): Likewise.
15462 (CFLAGS-fsync.c): Likewise.
15463 (CFLAGS-pt-system.c): Likewise.
15464 (CFLAGS-tst-cleanup2.c): Likewise.
15465 (CFLAGS-tst-cleanupx2.c): Likewise.
15466 (CFLAGS-flockfile.c): Likewise.
15467 (CFLAGS-ftrylockfile.c): Likewise.
15468 (CFLAGS-funlockfile.c): Likewise.
15469 (CFLAGS-tst-initializers1.c): Likewise.
15470 (CFLAGS-tst-initializers1-c89.c): Likewise.
15471 (CFLAGS-tst-initializers1-c99.c): Likewise.
15472 (CFLAGS-tst-initializers1-c11.c): Likewise.
15473 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
15474 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
15475 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
15476 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
15477 (CFLAGS-nscd_getgr_r.c): Likewise.
15478 (CFLAGS-nscd_gethst_r.c): Likewise.
15479 (CFLAGS-nscd_getai.c): Likewise.
15480 (CFLAGS-nscd_initgroups.c): Likewise.
15481 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
15482 (CFLAGS-pause.c): Likewise.
15483 (CFLAGS-pread.c): Likewise.
15484 (CFLAGS-pread64.c): Likewise.
15485 (CFLAGS-pwrite.c): Likewise.
15486 (CFLAGS-pwrite64.c): Likewise.
15487 (CFLAGS-sleep.c): Likewise.
15488 (CFLAGS-wait.c): Likewise.
15489 (CFLAGS-waitid.c): Likewise.
15490 (CFLAGS-waitpid.c): Likewise.
15491 (CFLAGS-getopt.c): Likewise.
15492 (CFLAGS-wordexp.c): Likewise.
15493 (CFLAGS-sysconf.c): Likewise.
15494 (CFLAGS-pathconf.c): Likewise.
15495 (CFLAGS-fpathconf.c): Likewise.
15496 (CFLAGS-spawn.c): Likewise.
15497 (CFLAGS-spawnp.c): Likewise.
15498 (CFLAGS-spawni.c): Likewise.
15499 (CFLAGS-glob.c): Likewise.
15500 (CFLAGS-glob64.c): Likewise.
15501 (CFLAGS-getconf.c): Likewise.
15502 (CFLAGS-nanosleep.c): Likewise.
15503 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
15504 (CFLAGS-getpwent.c): Likewise.
15505 (CFLAGS-getpw.c): Likewise.
15506 (CFLAGS-fgetpwent_r.c): Likewise.
15507 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
15508 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
15509 (CFLAGS-mq_timedreceive.c): Likewise.
15510 (CFLAGS-mq_timedsend.c): Likewise.
15511 (CFLAGS-clock_nanosleep.c): Likewise.
15512 (CFLAGS-librt-cancellation.c): Likewise.
15513 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
15514 (CFLAGS-getspent.c): Likewise.
15515 (CFLAGS-fgetspent.c): Likewise.
15516 (CFLAGS-fgetspent_r.c): Likewise.
15517 (CFLAGS-putspent.c): Likewise.
15518 (CFLAGS-getspnam.c): Likewise.
15519 (CFLAGS-getspnam_r.c): Likewise.
15520 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
15521 (CFLAGS-sigsuspend.c): Likewise.
15522 (CFLAGS-sigtimedwait.c): Likewise.
15523 (CFLAGS-sigwait.c): Likewise.
15524 (CFLAGS-sigwaitinfo.c): Likewise.
15525 (CFLAGS-sigreturn.c): Likewise.
15526 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
15527 (CFLAGS-vfwprintf.c): Likewise.
15528 (CFLAGS-tmpfile.c): Likewise.
15529 (CFLAGS-tmpfile64.c): Likewise.
15530 (CFLAGS-tempname.c): Likewise.
15531 (CFLAGS-psignal.c): Likewise.
15532 (CFLAGS-vprintf.c): Likewise.
15533 (CFLAGS-cuserid.c): Likewise.
15534 (CFLAGS-errlist.c): Likewise.
15535 (CFLAGS-siglist.c): Likewise.
15536 (CFLAGS-scanf15.c): Likewise.
15537 (CFLAGS-scanf17.c): Likewise.
15538 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
15539 (CFLAGS-msort.c): Likewise.
15540 (CFLAGS-qsort.c): Likewise.
15541 (CFLAGS-system.c): Likewise.
15542 (CFLAGS-fmtmsg.c): Likewise.
15543 (CFLAGS-strfmon.c): Likewise.
15544 (CFLAGS-strfmon_l.c): Likewise.
15545 (CFLAGS-strfromd.c): Likewise.
15546 (CFLAGS-strfromf.c): Likewise.
15547 (CFLAGS-strfroml.c): Likewise.
15548 (CFLAGS-tst-bsearch.c): Likewise.
15549 (CFLAGS-tst-qsort.c): Likewise.
15550 (CFLAGS-tst-makecontext2.c): Likewise.
15551 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
15552 (CFLAGS-xnlm_prot.c): Likewise.
15553 (CFLAGS-xrstat.c): Likewise.
15554 (CFLAGS-xyppasswd.c): Likewise.
15555 (CFLAGS-xklm_prot.c): Likewise.
15556 (CFLAGS-xrex.c): Likewise.
15557 (CFLAGS-xsm_inter.c): Likewise.
15558 (CFLAGS-xmount.c): Likewise.
15559 (CFLAGS-xrusers.c): Likewise.
15560 (CFLAGS-xspray.c): Likewise.
15561 (CFLAGS-xnfs_prot.c): Likewise.
15562 (CFLAGS-xrquota.c): Likewise.
15563 (CFLAGS-xkey_prot.c): Likewise.
15564 (CFLAGS-auth_unix.c): Likewise.
15565 (CFLAGS-key_call.c): Likewise.
15566 (CFLAGS-pmap_rmt.c): Likewise.
15567 (CFLAGS-clnt_perr.c): Likewise.
15568 (CFLAGS-openchild.c): Likewise.
15569 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
15570 (CFLAGS-msgsnd.c): Likewise.
15571 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
15572 * time/Makefile (CFLAGS-tzfile.c): Likewise.
15573 (CFLAGS-tzset.c): Likewise.
15574 (CFLAGS-getdate.c): Likewise.
15575 (CFLAGS-test_time.c): Likewise.
15576 (CPPFLAGS-tst-tzname.c): Likewise.
15577 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
15578 (CFLAGS-zic.c): Likewise.
15579 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
15580 (CFLAGS-wcswidth.c): Likewise.
15581 (CFLAGS-wcstol.c): Likewise.
15582 (CFLAGS-wcstoul.c): Likewise.
15583 (CFLAGS-wcstoll.c): Likewise.
15584 (CFLAGS-wcstoull.c): Likewise.
15585 (CFLAGS-wcstod.c): Likewise.
15586 (CFLAGS-wcstold.c): Likewise.
15587 (CFLAGS-wcstof128.c): Likewise.
15588 (CFLAGS-wcstof.c): Likewise.
15589 (CFLAGS-wcstol_l.c): Likewise.
15590 (CFLAGS-wcstoul_l.c): Likewise.
15591 (CFLAGS-wcstoll_l.c): Likewise.
15592 (CFLAGS-wcstoull_l.c): Likewise.
15593 (CFLAGS-wcstod_l.c): Likewise.
15594 (CFLAGS-wcstold_l.c): Likewise.
15595 (CFLAGS-wcstof128_l.c): Likewise.
15596 (CFLAGS-wcstof_l.c): Likewise.
15597 (CPPFLAGS-tst-wchar-h.c): Likewise.
15598 (CPPFLAGS-wcstold_l.c): Likewise.
15599---
156002017-12-11 Paul A. Clarke <pc@us.ibm.com>
15601
15602 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
15603
156042017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
15605 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15606
15607 * manual/tunables.texi (Hardware Capability Tunables): Document
15608 glibc.tune.cached_memopt.
15609 * sysdeps/powerpc/cpu-features.c: New file.
15610 * sysdeps/powerpc/cpu-features.h: New file.
15611 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
15612 _dl_powerpc_cpu_features.
15613 * sysdeps/powerpc/dl-tunables.list: New file.
15614 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
15615 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
15616 (INIT_ARCH): Initialize use_aligned_memopt.
15617 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
15618 IS_IN(rtld))]: Restrict dl_platform_init availability and
15619 initialize CPU features used by tunables.
15620 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
15621 Add memcpy-power8-cached.
15622 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
15623 __memcpy_power8_cached.
15624 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
15625 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
15626 New file.
15627
156282017-12-11 H.J. Lu <hongjiu.lu@intel.com>
15629
15630 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
15631 (CFLAGS-noinl-tester.c): Likewise.
15632 (CFLAGS-tst-strlen.c): Likewise.
15633 (CFLAGS-stratcliff.c): Likewise.
15634 (CFLAGS-test-ffs.c): Likewise.
15635 (CFLAGS-tst-inlcall.c): Likewise.
15636 (CFLAGS-tst-xbzero-opt.c): Likewise.
15637 (CFLAGS-memcpy.c): Likewise.
15638 (CFLAGS-wordcopy.c): Likewise.
15639
156402017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
15641
15642 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
15643 Store r15 on stack and add cfi rule.
15644 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
15645 Likewise.
15646
156472017-12-10 Aurelien Jarno <aurelien@aurel32.net>
15648
15649 [BZ #22577]
15650 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
15651 call.
15652
156532017-12-07 H.J. Lu <hongjiu.lu@intel.com>
15654
15655 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15656 Add s_sinf-sse2 and s_sinf-fma.
15657 (CFLAGS-s_sinf-fma.c): New.
15658 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
15659 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
15660 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
15661
156622017-12-07 H.J. Lu <hongjiu.lu@intel.com>
15663
15664 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
15665
156662017-12-07 Joseph Myers <joseph@codesourcery.com>
15667
15668 [BZ #22568]
15669 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
15670 part of result to imaginary part of argument if it is zero and the
15671 real part of the argument is not finite.
15672 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
15673 of result to real part of argument if it is zero and the imaginary
15674 part of the argument is not finite.
15675
156762017-12-07 Mike FABIAN <mfabian@redhat.com>
15677
15678 [BZ #22524]
15679 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
15680 and to the list of locales to be built for testing.
15681 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
15682 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
15683 and build the collation rules upon that.
15684
156852017-12-07 Joseph Myers <joseph@codesourcery.com>
15686
15687 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
15688 * manual/math.texi (Mathematics): Document support for _Float32.
15689 * math/Makefile (test-types): Add float32.
15690 * math/Versions (GLIBC_2.27): Add _Float32 functions.
15691 * stdlib/Versions (GLIBC_2.27): Likewise.
15692 * wcsmbs/Versions (GLIBC_2.27): Likewise.
15693 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
15694 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15695 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15696 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15697 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15698 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15699 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15700 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15701 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15702 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15703 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15704 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15705 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15706 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15707 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15708 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15709 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15710 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15711 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15712 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15713 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
15714 Likewise.
15715 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15716 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15717 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15718 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15719 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15721 Likewise.
15722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15723 Likewise.
15724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15725 Likewise.
15726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15727 Likewise.
15728
15729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15730 Likewise.
15731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
15732 Likewise.
15733 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15734 Likewise.
15735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15736 Likewise.
15737 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15738 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15739 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15740 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15741 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15742 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15743 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15744 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15745 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15746 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15747 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
15748 Likewise.
15749 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15750 Likewise.
15751 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15752 Likewise.
15753 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15754 Likewise.
15755 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15756 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15757 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15758 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15759 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15760 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15761 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15762 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15763
157642017-12-06 Joseph Myers <joseph@codesourcery.com>
15765
15766 * stdlib/strtof.c: Include <bits/floatn.h>
15767 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
15768 and later undefine as macro. Define as weak alias if
15769 [!USE_WIDE_CHAR].
15770 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
15771 and later undefine as macro. Define as weak alias if
15772 [USE_WIDE_CHAR].
15773 * stdlib/strtof_l.c: Include <bits/floatn.h>
15774 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
15775 and later undefine as macro. Define as weak alias if
15776 [!USE_WIDE_CHAR].
15777 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
15778 and later undefine as macro. Define as weak alias if
15779 [USE_WIDE_CHAR].
15780
15781 * stdlib/strfromf.c: Include <bits/floatn.h>.
15782 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
15783 and later undefine as macro and define as weak alias.
15784
15785 * math/test-float32.h: New file.
15786
15787 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
15788 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
15789 (libm_alias_float_other_r): Create f32 alias.
15790 (libm_alias_float_r): Use semicolon before call to
15791 libm_alias_float_other_r.
15792
15793 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
15794 second argument to libm_alias_float_other.
15795 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
15796 second argument to libm_alias_float_other.
15797 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
15798 argument to libm_alias_float_other.
15799
15800 [BZ #22561]
15801 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
15802 real part of result for argument 0 + i * NaN.
15803 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
15804 results for tests of 0 + i * NaN.
15805
158062017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15807
15808 * sysdeps/alpha/fpu/libm-test-ulps: Update.
15809
158102017-12-06 David S. Miller <davem@davemloft.net>
15811
15812 * sysdeps/sparc/fpu/libm-test-ulps: Update
15813 exp_{downward,towardzero,upward} ulps.
15814
158152017-12-06 Joseph Myers <joseph@codesourcery.com>
15816
15817 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
15818 variables static.
15819
15820 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
15821 (Y0_2D): Likewise.
15822 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
15823 (Y0_2D): Likewise.
15824 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
15825 (Y0_2D): Likewise.
15826 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
15827 (Y0_2D): Likewise.
15828
158292017-12-06 Mike FABIAN <mfabian@redhat.com>
15830
15831 [BZ #22515]
15832 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
15833 and to the list of locales to be built for testing.
15834 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
15835 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
15836 and build the collation rules upon that.
15837
158382017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15839
15840 * NEWS: Add sinf to list of optimized functions.
15841
158422017-12-06 Joseph Myers <joseph@codesourcery.com>
15843
15844 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
15845 (__HAVE_FLOAT32X): Likewise.
15846 * manual/math.texi (Mathematics): Document support for _Float64
15847 and _Float32x.
15848 * math/Makefile (test-types): Add float64 and float32x.
15849 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
15850 functions.
15851 * stdlib/Versions (GLIBC_2.27): Likewise.
15852 * wcsmbs/Versions (GLIBC_2.27): Likewise.
15853 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
15854 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15855 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15856 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15857 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15858 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15859 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15860 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15861 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15862 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15863 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15864 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15865 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15866 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15867 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15868 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15869 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15870 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15871 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15872 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15873 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
15874 Likewise.
15875 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15876 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15877 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15878 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15879 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15881 Likewise.
15882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15883 Likewise.
15884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15885 Likewise.
15886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15887 Likewise.
15888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15889 Likewise.
15890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
15891 Likewise.
15892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15893 Likewise.
15894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15895 Likewise.
15896 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15897 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15898 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15899 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15900 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15901 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15902 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15903 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15904 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15905 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15906 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
15907 Likewise.
15908 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15909 Likewise.
15910 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15911 Likewise.
15912 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15913 Likewise.
15914 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15915 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15916 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15917 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15918 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15919 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15920 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15921 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15922
159232017-12-05 Joseph Myers <joseph@codesourcery.com>
15924
15925 * bits/floatn-common.h: Include <bits/long-double.h>.
15926 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15927 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
15928 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15929 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
15930 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15931 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
15932 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15933 (__builtin_huge_valf64): Use __builtin_huge_vall.
15934 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15935 (__builtin_inff64): Use __builtin_infl.
15936 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15937 (__builtin_nanf64): Use __builtin_nanl.
15938 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15939 (__builtin_nansf64): Use __builtin_nansl.
15940
159412017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15942 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
15943 Carlos O'Donnell <carlos@redhat.com>
15944
15945 * elf/dl-tunables.list: Add elision parameters.
15946 * manual/tunables.texi: Add entries about elision tunable.
15947 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
15948 Add callback functions to dynamically enable/disable elision.
15949 Add multiple callbacks functions to set elision parameters.
15950 Deleted __libc_enable_secure check.
15951 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
15952 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
15953 * configure: Regenerated.
15954 * configure.ac: Option enable_lock_elision was deleted.
15955 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
15956 * config.make.in: Remove references to enable_lock_elision.
15957 * manual/install.texi: Elision configure option was removed.
15958 * INSTALL: Regenerated to remove enable_lock_elision.
15959 * nptl/Makefile:
15960 Disable elision so it can verify error case for destroying a mutex.
15961 * sysdeps/powerpc/nptl/elide.h:
15962 Cleanup ENABLE_LOCK_ELISION check.
15963 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
15964 * sysdeps/s390/configure: Regenerated.
15965 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
15966 * nptl/tst-mutex8.c:
15967 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
15968 * sysdeps/powerpc/powerpc32/sysdep.h:
15969 Deleted all ENABLE_LOCK_ELISION checks.
15970 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
15971 * sysdeps/powerpc/sysdep.h: Likewise.
15972 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
15973 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
15974 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
15975 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
15976 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
15977 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
15978 enable-lock-elision.
15979
159802017-12-05 Joseph Myers <joseph@codesourcery.com>
15981
15982 * stdlib/strtod.c: Include <bits/floatn.h>.
15983 (BUILD_DOUBLE): New macro.
15984 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15985 (strtof64): Define and later undefine as macro. Define as weak
15986 alias if [!USE_WIDE_CHAR].
15987 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15988 (wcstof64): Define and later undefine as macro. Define as weak
15989 alias if [USE_WIDE_CHAR].
15990 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15991 (strtof32x): Define and later undefine as macro. Define as weak
15992 alias if [!USE_WIDE_CHAR].
15993 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15994 (wcstof32x): Define and later undefine as macro. Define as weak
15995 alias if [USE_WIDE_CHAR].
15996 * stdlib/strtod_l.c: Include <bits/floatn.h>.
15997 (BUILD_DOUBLE): New macro.
15998 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15999 (strtof64_l): Define and later undefine as macro. Define as weak
16000 alias if [!USE_WIDE_CHAR].
16001 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16002 (wcstof64_l): Define and later undefine as macro. Define as weak
16003 alias if [USE_WIDE_CHAR].
16004 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16005 (strtof32x_l): Define and later undefine as macro. Define as weak
16006 alias if [!USE_WIDE_CHAR].
16007 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16008 (wcstof32x_l): Define and later undefine as macro. Define as weak
16009 alias if [USE_WIDE_CHAR].
16010
160112017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16012
16013 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
16014 (reduced): Use ones as double instead of integer.
16015
160162017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
16017
16018 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
16019
160202017-12-05 Joseph Myers <joseph@codesourcery.com>
16021
16022 * stdlib/strfromd.c: Include <bits/floatn.h>.
16023 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
16024 and later undefine as macro and define as weak alias.
16025 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
16026 Likewise.
16027
16028 * math/test-float32x.h: New file.
16029 * math/test-float64.h: Likewise.
16030
16031 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
16032 (libm_alias_double_other_r_f64): New macro.
16033 (libm_alias_double_other_r_f32x): Likewise.
16034 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
16035 libm_alias_double_other_r_f32x.
16036 (libm_alias_double_r): Use semicolon before call to
16037 libm_alias_double_other_r.
16038 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
16039 <bits/floatn.h>.
16040 (libm_alias_double_other_r_f64): New macro.
16041 (libm_alias_double_other_r_f32x): Likewise.
16042 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
16043 libm_alias_double_other_r_f32x.
16044
160452017-12-05 H.J. Lu <hongjiu.lu@intel.com>
16046
16047 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
16048 int.
16049 (SINF_FUNC): Likewise. Replace floor with simple casts.
16050
160512017-12-05 Mike FABIAN <mfabian@redhat.com>
16052
16053 [BZ #22517]
16054 * localedata/Makefile: Add et_EE.UTF-8 to test-input
16055 and to the list of locales to be built for testing.
16056 * localedata/et_EE.UTF-8.in: New file for testing the collation.
16057 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
16058 and build the collation rules upon that.
16059
160602017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
16061
16062 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
16063 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
16064 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
16065 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
16066 instead of __insn__xxx.
16067 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
16068 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
16069 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
16070 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
16071 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
16072 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
16073
160742017-12-05 Florian Weimer <fweimer@redhat.com>
16075
16076 Linux: Implement interfaces for memory protection keys
16077 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
16078 xsignal, xsysconf.
16079 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
16080 * support/xunistd.h (xsysconf): Declare.
16081 * support/xraise.c: New file.
16082 * support/xsigaction.c: Likewise.
16083 * support/xsignal.c: Likewise.
16084 * support/xsysconf.c: Likewise.
16085 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
16086 pkey_set, pkey_get, pkey_mprotect.
16087 [misc] (tests): Add tst-pkey.
16088 (tst-pkey): Link with -lpthread.
16089 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
16090 pkey_free, pkey_set, pkey_get, pkey_mprotect.
16091 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
16092 (PKEY_DISABLE_WRITE): Define.
16093 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
16094 Declare.
16095 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
16096 (SEGV_PKUERR): Add.
16097 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
16098 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
16099 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
16100 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
16101 Add.
16102 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
16103 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
16104 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
16105 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
16106 * sysdeps/unix/sysv/linux/**.abilist: Update.
16107
161082017-12-05 Florian Weimer <fweimer@redhat.com>
16109
16110 * support/tst-test_compare.c (subprocess): Use long long instead
16111 of long argument for consistent type width across 32-bit and
16112 64-bit architectures.
16113 (do_test): Adjust expected output.
16114
161152017-12-05 Joseph Myers <joseph@codesourcery.com>
16116
16117 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
16118 (cosf): Define using libm_alias_float.
16119 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
16120 (fabsf): Define using libm_alias_float.
16121 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
16122 (fmaf): Define using libm_alias_float.
16123 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
16124 (rintf): Define using libm_alias_float.
16125 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
16126 (sinf): Define using libm_alias_float.
16127 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
16128 <libm-alias-float.h>.
16129 (modff): Define using libm_alias_float.
16130 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
16131 <libm-alias-float.h>.
16132 (logbf): Define using libm_alias_float.
16133 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
16134 <libm-alias-float.h>.
16135 (ceilf): Define using libm_alias_float.
16136 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
16137 <libm-alias-float.h>.
16138 (copysignf): Define using libm_alias_float.
16139 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
16140 <libm-alias-float.h>.
16141 (floorf): Define using libm_alias_float.
16142 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16143 <libm-alias-float.h>.
16144 (llrintf): Define using libm_alias_float.
16145 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16146 <libm-alias-float.h>.
16147 (llroundf): Define using libm_alias_float.
16148 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
16149 <libm-alias-float.h>.
16150 (lrintf): Define using libm_alias_float.
16151 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
16152 <libm-alias-float.h>.
16153 (lroundf): Define using libm_alias_float.
16154 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
16155 <libm-alias-float.h>.
16156 (nearbyintf): Define using libm_alias_float.
16157 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
16158 <libm-alias-float.h>.
16159 (rintf): Define using libm_alias_float.
16160 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
16161 <libm-alias-float.h>.
16162 (roundf): Define using libm_alias_float.
16163 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
16164 <libm-alias-float.h>.
16165 (truncf): Define using libm_alias_float.
16166 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
16167 Include <libm-alias-float.h>.
16168 (ceilf): Define using libm_alias_float.
16169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
16170 Include <libm-alias-float.h>.
16171 (copysignf): Define using libm_alias_float.
16172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
16173 Include <libm-alias-float.h>.
16174 (floorf): Define using libm_alias_float.
16175 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
16176 Include <libm-alias-float.h>.
16177 (llrintf): Define using libm_alias_float.
16178 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
16179 Include <libm-alias-float.h>.
16180 (llroundf): Define using libm_alias_float.
16181 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
16182 Include <libm-alias-float.h>.
16183 (logbf): Define using libm_alias_float.
16184 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
16185 Include <libm-alias-float.h>.
16186 (lrintf): Define using libm_alias_float.
16187 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
16188 Include <libm-alias-float.h>.
16189 (lroundf): Define using libm_alias_float.
16190 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
16191 Include <libm-alias-float.h>.
16192 (modff): Define using libm_alias_float.
16193 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
16194 Include <libm-alias-float.h>.
16195 (roundf): Define using libm_alias_float.
16196 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
16197 Include <libm-alias-float.h>.
16198 (truncf): Define using libm_alias_float.
16199 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
16200 <libm-alias-float.h>.
16201 (llrintf): Define using libm_alias_float.
16202 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
16203 <libm-alias-float.h>.
16204 (llroundf): Define using libm_alias_float.
16205 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
16206 <libm-alias-float.h>.
16207 (ceilf): Define using libm_alias_float.
16208 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
16209 <libm-alias-float.h>.
16210 (floorf): Define using libm_alias_float.
16211 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
16212 <libm-alias-float.h>.
16213 (llroundf): Define using libm_alias_float.
16214 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
16215 <libm-alias-float.h>.
16216 (lroundf): Define using libm_alias_float.
16217 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
16218 <libm-alias-float.h>.
16219 (roundf): Define using libm_alias_float.
16220 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
16221 <libm-alias-float.h>.
16222 (truncf): Define using libm_alias_float.
16223 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
16224 <libm-alias-float.h>.
16225 (copysignf): Define using libm_alias_float.
16226 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
16227 <libm-alias-float.h>.
16228 (llrintf): Define using libm_alias_float.
16229 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
16230 <libm-alias-float.h>.
16231 (llroundf): Define using libm_alias_float.
16232 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
16233 <libm-alias-float.h>.
16234 (lrintf): Define using libm_alias_float.
16235 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
16236 <libm-alias-float.h>.
16237 (lroundf): Define using libm_alias_float.
16238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
16239 <libm-alias-float.h>.
16240 (ceilf): Define using libm_alias_float.
16241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
16242 <libm-alias-float.h>.
16243 (copysignf): Define using libm_alias_float.
16244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
16245 <libm-alias-float.h>.
16246 (cosf): Define using libm_alias_float.
16247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
16248 <libm-alias-float.h>.
16249 (floorf): Define using libm_alias_float.
16250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
16251 <libm-alias-float.h>.
16252 (llrintf): Define using libm_alias_float.
16253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
16254 <libm-alias-float.h>.
16255 (llroundf): Define using libm_alias_float.
16256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
16257 <libm-alias-float.h>.
16258 (logbf): Define using libm_alias_float.
16259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
16260 <libm-alias-float.h>.
16261 (modff): Define using libm_alias_float.
16262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
16263 <libm-alias-float.h>.
16264 (roundf): Define using libm_alias_float.
16265 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
16266 <libm-alias-float.h>.
16267 (sinf): Define using libm_alias_float.
16268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
16269 <libm-alias-float.h>.
16270 (truncf): Define using libm_alias_float.
16271 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
16272 <libm-alias-float.h>.
16273 (ceilf): Define using libm_alias_float.
16274 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
16275 <libm-alias-float.h>.
16276 (copysignf): Define using libm_alias_float.
16277 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
16278 <libm-alias-float.h>.
16279 (floorf): Define using libm_alias_float.
16280 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
16281 <libm-alias-float.h>.
16282 (llrintf): Define using libm_alias_float.
16283 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
16284 <libm-alias-float.h>.
16285 (llroundf): Define using libm_alias_float.
16286 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
16287 <libm-alias-float.h>.
16288 (nearbyintf): Define using libm_alias_float.
16289 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
16290 <libm-alias-float.h>.
16291 (rintf): Define using libm_alias_float.
16292 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
16293 <libm-alias-float.h>.
16294 (roundf): Define using libm_alias_float.
16295 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
16296 <libm-alias-float.h>.
16297 (truncf): Define using libm_alias_float.
16298 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
16299 <libm-alias-float.h>.
16300 (ceilf): Define using libm_alias_float.
16301 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
16302 <libm-alias-float.h>.
16303 (floorf): Define using libm_alias_float.
16304 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
16305 <libm-alias-float.h>.
16306 (llroundf): Define using libm_alias_float.
16307 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
16308 <libm-alias-float.h>.
16309 (roundf): Define using libm_alias_float.
16310 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
16311 <libm-alias-float.h>.
16312 (truncf): Define using libm_alias_float.
16313 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
16314 <libm-alias-float.h>.
16315 (copysignf): Define using libm_alias_float.
16316 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
16317 <libm-alias-float.h>.
16318 (llrintf): Define using libm_alias_float.
16319 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
16320 <libm-alias-float.h>.
16321 (llroundf): Define using libm_alias_float.
16322 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
16323 <libm-alias-float.h>.
16324 (cosf): Define using libm_alias_float.
16325 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
16326 <libm-alias-float.h>.
16327 (llrintf): Define using libm_alias_float.
16328 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
16329 <libm-alias-float.h>.
16330 (llroundf): Define using libm_alias_float.
16331 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
16332 <libm-alias-float.h>.
16333 (sinf): Define using libm_alias_float.
16334
163352017-12-04 Florian Weimer <fweimer@redhat.com>
16336
16337 * support/check.h (TEST_COMPARE): Define.
16338 (support_test_compare_failure): Declare.
16339 * support/Makefile (libsupport-routines): Add
16340 support_test_compare_failure.
16341 (tests): Add tst-test_compare.
16342 * support /support_test_compare_failure.c: New file.
16343 * support/tst-test_compare.c: Likewise.
16344
163452017-12-04 Mike FABIAN <mfabian@redhat.com>
16346
16347 [BZ #22527]
16348 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
16349 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
16350 available, this rewrite of the collation rules does reproduce
16351 the test file in the same order.
16352
163532017-12-04 Mike FABIAN <mfabian@redhat.com>
16354
16355 [BZ #10580]
16356 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
16357 digraphs in the month and day names. Using single code points for
16358 digraphs is deprecated. While there are dedicated Unicode
16359 codepoints, for the digraphs, these are included for backwards
16360 compatibility and modern texts use a sequence of Basic Latin
16361 characters. See: https://www.unicode.org/faq/ligature_digraph.html
16362 This makes the month and day names agree exactly with CLDR now,
16363 CLDR does not use the single code points for the digraphs either.
16364
163652017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
16366
16367 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
16368
163692017-12-04 Joseph Myers <joseph@codesourcery.com>
16370
16371 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
16372 of floor.
16373
163742017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
16375
16376 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
16377 Define only for libc.so.
16378
163792017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
16380
16381 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16382 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
16383 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
16384 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
16385 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16386
163872017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16388
16389 [BZ #5997]
16390 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
16391
163922017-12-02 John David Anglin <danglin@gcc.gnu.org>
16393
16394 [BZ libc/19170]
16395 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
16396 PREINIT_FUNCTION_WEAK is nonzero.
16397 (gmon_initializer): New function. Put procedure label for it in
16398 .init_array section.
16399 (_init): Don't call PREINIT_FUNCTION.
16400 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
16401 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
16402 value when map argument is null.
16403
16404 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
16405 depi instruction from PIC pc-relative sequence.
16406 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
16407 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
16408 (elf_machine_load_address): Likewise.
16409 (elf_machine_runtime_setup): Likewise.
16410
164112017-12-02 Joseph Myers <joseph@codesourcery.com>
16412
16413 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
16414 <libm-alias-double.h>.
16415 (logb): Define using libm_alias_double.
16416 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
16417 <libm-alias-double.h>.
16418 (copysign): Define using libm_alias_double.
16419 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
16420 <libm-alias-double.h>.
16421 (llrint): Define using libm_alias_double.
16422 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
16423 <libm-alias-double.h>.
16424 (llround): Define using libm_alias_double.
16425 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
16426 <libm-alias-double.h>.
16427 (lrint): Define using libm_alias_double.
16428 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
16429 <libm-alias-double.h>.
16430 (lround): Define using libm_alias_double.
16431 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
16432 Include <libm-alias-double.h>.
16433 (copysign): Define using libm_alias_double.
16434 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
16435 Include <libm-alias-double.h>.
16436 (llrint): Define using libm_alias_double.
16437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
16438 Include <libm-alias-double.h>.
16439 (llround): Define using libm_alias_double.
16440 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
16441 <libm-alias-double.h>.
16442 (logb): Define using libm_alias_double.
16443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
16444 Include <libm-alias-double.h>.
16445 (lrint): Define using libm_alias_double.
16446 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
16447 Include <libm-alias-double.h>.
16448 (lround): Define using libm_alias_double.
16449 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
16450 <libm-alias-double.h>.
16451 (llrint): Define using libm_alias_double.
16452 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
16453 <libm-alias-double.h>.
16454 (llround): Define using libm_alias_double.
16455 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
16456 <libm-alias-double.h>.
16457 (llround): Define using libm_alias_double.
16458 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
16459 <libm-alias-double.h>.
16460 (lround): Define using libm_alias_double.
16461 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
16462 <libm-alias-double.h>.
16463 (copysign): Define using libm_alias_double.
16464 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
16465 <libm-alias-double.h>.
16466 (llrint): Define using libm_alias_double.
16467 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
16468 <libm-alias-double.h>.
16469 (llround): Define using libm_alias_double.
16470 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
16471 <libm-alias-double.h>.
16472 (lrint): Define using libm_alias_double.
16473 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
16474 <libm-alias-double.h>.
16475 (lround): Define using libm_alias_double.
16476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
16477 <libm-alias-double.h>.
16478 (copysign): Define using libm_alias_double.
16479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
16480 <libm-alias-double.h>.
16481 (llrint): Define using libm_alias_double.
16482 (lrint): Likewise.
16483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
16484 <libm-alias-double.h>.
16485 (llround): Define using libm_alias_double.
16486 (lround): Likewise.
16487 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
16488 <libm-alias-double.h>.
16489 (logb): Define using libm_alias_double.
16490 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
16491 <libm-alias-double.h>.
16492 (copysign): Define using libm_alias_double.
16493 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
16494 <libm-alias-double.h>.
16495 (llrint): Define using libm_alias_double.
16496 (lrint): Likewise.
16497 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
16498 <libm-alias-double.h>.
16499 (llround): Define using libm_alias_double.
16500 (lround): Likewise.
16501 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
16502 <libm-alias-double.h>.
16503 (llround): Define using libm_alias_double.
16504 (lround): Likewise.
16505 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
16506 <libm-alias-double.h>.
16507 (copysign): Define using libm_alias_double.
16508 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
16509 <libm-alias-double.h>.
16510 (llrint): Define using libm_alias_double.
16511 (lrint): Likewise.
16512 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
16513 <libm-alias-double.h>.
16514 (llround): Define using libm_alias_double.
16515 (lround): Likewise.
16516 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
16517 <libm-alias-double.h>.
16518 (llrint): Define using libm_alias_double.
16519 (lrint): Likewise.
16520 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
16521 <libm-alias-double.h>.
16522 (llround): Define using libm_alias_double.
16523 (lround): Likewise.
16524
165252017-12-01 Joseph Myers <joseph@codesourcery.com>
16526
16527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
16528 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
16529 compat symbol based on llround.
16530
16531 * sysdeps/powerpc/power7/fpu/s_logb.c
16532 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
16533 symbol based on __logb, not on logb.
16534 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
16535 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
16536 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
16537 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
16538
16539 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
16540 (rint): Define using libm_alias_double.
16541 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
16542 <libm-alias-double.h>.
16543 (modf): Define using libm_alias_double.
16544 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
16545 <libm-alias-double.h>.
16546 (ceil): Define using libm_alias_double.
16547 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
16548 <libm-alias-double.h>.
16549 (floor): Define using libm_alias_double.
16550 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
16551 <libm-alias-double.h>.
16552 (nearbyint): Define using libm_alias_double.
16553 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
16554 <libm-alias-double.h>.
16555 (rint): Define using libm_alias_double.
16556 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
16557 <libm-alias-double.h>.
16558 (round): Define using libm_alias_double.
16559 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
16560 <libm-alias-double.h>.
16561 (trunc): Define using libm_alias_double.
16562 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
16563 <libm-alias-double.h>.
16564 (ceil): Define using libm_alias_double.
16565 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
16566 Include <libm-alias-double.h>.
16567 (floor): Define using libm_alias_double.
16568 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
16569 <libm-alias-double.h>.
16570 (modf): Define using libm_alias_double.
16571 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
16572 Include <libm-alias-double.h>.
16573 (round): Define using libm_alias_double.
16574 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
16575 Include <libm-alias-double.h>.
16576 (trunc): Define using libm_alias_double.
16577 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
16578 <libm-alias-double.h>.
16579 (ceil): Define using libm_alias_double.
16580 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
16581 <libm-alias-double.h>.
16582 (floor): Define using libm_alias_double.
16583 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
16584 <libm-alias-double.h>.
16585 (round): Define using libm_alias_double.
16586 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
16587 <libm-alias-double.h>.
16588 (trunc): Define using libm_alias_double.
16589 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
16590 <libm-alias-double.h>.
16591 (ceil): Define using libm_alias_double.
16592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
16593 <libm-alias-double.h>.
16594 (floor): Define using libm_alias_double.
16595 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
16596 <libm-alias-double.h>.
16597 (modf): Define using libm_alias_double.
16598 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
16599 <libm-alias-double.h>.
16600 (round): Define using libm_alias_double.
16601 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
16602 <libm-alias-double.h>.
16603 (trunc): Define using libm_alias_double.
16604 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
16605 <libm-alias-double.h>.
16606 (ceil): Define using libm_alias_double.
16607 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
16608 <libm-alias-double.h>.
16609 (floor): Define using libm_alias_double.
16610 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
16611 <libm-alias-double.h>.
16612 (nearbyint): Define using libm_alias_double.
16613 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
16614 <libm-alias-double.h>.
16615 (rint): Define using libm_alias_double.
16616 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
16617 <libm-alias-double.h>.
16618 (round): Define using libm_alias_double.
16619 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
16620 <libm-alias-double.h>.
16621 (trunc): Define using libm_alias_double.
16622 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
16623 <libm-alias-double.h>.
16624 (ceil): Define using libm_alias_double.
16625 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
16626 <libm-alias-double.h>.
16627 (floor): Define using libm_alias_double.
16628 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
16629 <libm-alias-double.h>.
16630 (round): Define using libm_alias_double.
16631 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
16632 <libm-alias-double.h>.
16633 (trunc): Define using libm_alias_double.
16634
16635 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
16636 (fabs): Define using libm_alias_double.
16637 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
16638 (fma): Define using libm_alias_double.
16639 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
16640 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
16641 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
16642 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
16643
166442017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16645
16646 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
16647
16648 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
16649 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
16650 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
16651
16652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
16653 due redirect macro.
16654
166552017-12-01 Andreas Schwab <schwab@linux-m68k.org>
16656
16657 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
16658
166592017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16660
16661 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
16662 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
16663 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
16664 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
16665
16666 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16667 (libm-sysdep_routines): Add s_nearbyintf-generic and
16668 s_nearbyint-generic.
16669 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
16670 New file.
16671 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
16672 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
16673 Likewise.
16674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
16675 Likewise.
16676 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
16677 file.
16678 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
16679 Likewise.
16680
16681 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16682 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
16683 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
16684 file.
16685 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
16686 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
16687 Likewise.
16688 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
16689 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
16690 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
16691
16692 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16693 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
16694 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
16695 file.
16696 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
16697 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
16698 Likewise.
16699 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
16700 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
16701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
16702
16703 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16704 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
16705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
16706 file.
16707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
16708 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
16709 Likewise.
16710 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
16711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
16712 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
16713
16714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16715 (sysdep_calls): New rule.
16716 (sysdep_routines): Use sysdep_calls as base.
16717 (libm-sysdep_routines): Add generic rule for symbols shared with
16718 libc. Add s_copysign-generic and s_copysign-generic objects.
16719 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
16720 New file.
16721 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
16722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
16723 Likewise.
16724 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
16725 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
16726 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
16727
167282017-12-01 Mike FABIAN <mfabian@redhat.com>
16729
16730 [BZ #22519]
16731 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
16732 the list of locales to be built for testing.
16733 * localedata/is_IS.UTF-8.in: New file.
16734 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
16735 on iso14651_t1.
16736
167372017-12-01 Joseph Myers <joseph@codesourcery.com>
16738
16739 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
16740 <libm-alias-float.h>.
16741 (fabsf): Define using libm_alias_float.
16742
167432017-11-30 H.J. Lu <hongjiu.lu@intel.com>
16744
16745 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
16746
167472017-11-30 Joseph Myers <joseph@codesourcery.com>
16748
16749 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
16750 <libm-alias-float.h>.
16751 (fabsf): Define using libm_alias_float.
16752 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
16753 <libm-alias-float.h>.
16754 (lrintf): Define using libm_alias_float.
16755 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
16756 <libm-alias-float.h>.
16757 (rintf): Define using libm_alias_float.
16758
16759 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
16760 <libm-alias-double.h>.
16761 (fabs): Define using libm_alias_double.
16762 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
16763 <libm-alias-double.h>.
16764 (lrint): Define using libm_alias_double.
16765 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
16766 <libm-alias-double.h>.
16767 (rint): Define using libm_alias_double.
16768
16769 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
16770 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
16771 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
16772 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
16773 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
16774 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
16775 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
16776 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
16777 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
16778 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
16779 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
16780 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
16781 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
16782 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
16783 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
16784 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
16785 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
16786 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
16787 s_atan_template.c.
16788 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
16789 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
16790 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
16791 s_ceil_template.c.
16792 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
16793 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
16794 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
16795 s_cos_template.c.
16796 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
16797 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
16798 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
16799 s_expm1_template.c.
16800 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
16801 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
16802 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
16803 s_fabs_template.c.
16804 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
16805 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
16806 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
16807 s_floor_template.c.
16808 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
16809 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
16810 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
16811 s_frexp_template.c.
16812 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
16813 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
16814 s_lrint_template.c.
16815 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
16816 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
16817 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
16818 s_modf_template.c.
16819 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
16820 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
16821 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
16822 s_nearbyint_template.c.
16823 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
16824 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
16825 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
16826 s_remquo_template.c.
16827 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
16828 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
16829 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
16830 s_rint_template.c.
16831 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
16832 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
16833 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
16834 s_sin_template.c.
16835 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
16836 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
16837 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
16838 s_sincos_template.c.
16839 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
16840 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
16841 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
16842 s_tan_template.c.
16843 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
16844 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
16845 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
16846 s_tanh_template.c.
16847 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
16848 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
16849 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
16850 s_trunc_template.c.
16851 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
16852 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
16853 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
16854 s_atan.c instead of including s_atan.c.
16855 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
16856 s_atanf.c instead of including s_atanf.c.
16857 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
16858 s_atanl.c instead of including s_atanl.c.
16859 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
16860 instead of s_atan.c.
16861 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
16862 instead of s_atanf.c.
16863 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
16864 instead of s_atanl.c.
16865
16866 * scripts/update-copyrights: Do not handle intl/plural.c
16867 specially.
16868
168692017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
16870
16871 [BZ #22432]
16872 * configure.ac (BISON): Require to be present.
16873 * configure: Regenerated.
16874 * intl/Makefile (generated): Add plural.c.
16875 [$(BISON) != no]: Make code unconditional.
16876 (plural.c): Change rule to $(objpfx)plural.c.
16877 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
16878 * intl/plural.c: Remove.
16879 * manual/install.texi (Tools for Compilation): Document bison as
16880 required.
16881 * INSTALL: Regenerated.
16882
168832017-11-30 Joseph Myers <joseph@codesourcery.com>
16884
16885 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
16886 <libm-alias-double.h>.
16887 (llrint): Define using libm_alias_double.
16888 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
16889 <libm-alias-float.h>.
16890 (llrintf): Define using libm_alias_float.
16891 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
16892 <libm-alias-ldouble.h>.
16893 (llrintl): Define using libm_alias_ldouble.
16894
16895 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
16896 declare_mgen_alias instead of weak_alias.
16897 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
16898 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
16899 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
16900
169012017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16902
16903 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16904 Add add_n-generic.
16905 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
16906 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
16907 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
16908
16909 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16910 Add submul_1-generic.
16911 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
16912 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
16913 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
16914
16915 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16916 Add addmul_1-generic.
16917 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
16918 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
16919 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
16920
16921 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16922 Add sub_n-generic.
16923 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
16924 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
16925 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
16926
16927 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16928 Add mul_1-generic.
16929 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
16930 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
16931 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
16932
169332017-11-30 Mike FABIAN <mfabian@redhat.com>
16934
16935 According to CLDR, collation rules for Serbian and Bosnian
16936 should be the same as for Croatian.
16937
16938 [BZ #22534]
16939 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
16940 and to the list of locales to be built for testing.
16941 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
16942 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
16943 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
16944 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
16945
169462017-11-30 Mike FABIAN <mfabian@redhat.com>
16947
16948 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
16949 to make test case pass.
16950 * localedata/hr_HR.UTF-8.in: Add more test strings.
16951
169522017-11-30 Mike FABIAN <mfabian@redhat.com>
16953
16954 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
16955
169562017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
16957
16958 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
16959 the list of locales to built for testing.
16960 * localedata/hr_HR.UTF-8.in: New file.
16961
169622017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
16963
16964 [BZ #10580]
16965 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
16966 iso14651_t1.
16967 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
16968 CLDR (except use ligatures for the digraphs, CLDR does not use
16969 the ligatures), add first_workday, some fixes in the date and time
16970 formats.
16971 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
16972 for Đ and đ.
16973 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
16974 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
16975 Add int_p_cs_precedes and int_n_cs_precedes.
16976 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
16977 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
16978 LC_MONETARY now).
16979 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
16980 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
16981 name_miss.
16982 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
16983 and lang_lib. Change postal_fmt.
16984
169852017-11-30 H.J. Lu <hongjiu.lu@intel.com>
16986
16987 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
16988 <setjmp.h>.
16989 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
16990 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
16991 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
16992 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
16993 * sysdeps/generic/setjmpP.h: New file.
16994 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
16995 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
16996 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
16997 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
16998 Add jmp_buf-ssp.sym.
16999 (tests): Add tst-saved_mask-1.
17000
170012017-11-30 Arjun Shankar <arjun@redhat.com>
17002
17003 [BZ #22375]
17004 CVE-2017-17426
17005 * malloc/malloc.c (__libc_malloc): Use checked_request2size
17006 instead of request2size.
17007
170082017-11-30 Joseph Myers <joseph@codesourcery.com>
17009
17010 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
17011 (__lllrint): Remove alias.
17012 (lllrint): Likewise.
17013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
17014 (__lllrintf): Likewise.
17015 (lllrintf): Likewise.
17016
17017 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
17018 <libm-alias-float.h>.
17019 (copysignf): Define using libm_alias_float.
17020 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
17021 <libm-alias-float.h>.
17022 (fabsf): Define using libm_alias_float.
17023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
17024 Include <libm-alias-float.h>.
17025 (copysignf): Define using libm_alias_float.
17026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
17027 <libm-alias-float.h>.
17028 (fabsf): Define using libm_alias_float.
17029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
17030 <libm-alias-float.h>.
17031 (fdimf): Define using libm_alias_float.
17032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
17033 <libm-alias-float.h>.
17034 (fmaf): Define using libm_alias_float.
17035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
17036 <libm-alias-float.h>.
17037 (llrintf): Define using libm_alias_float.
17038 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
17039 Include <libm-alias-float.h>.
17040 (nearbyintf): Define using libm_alias_float.
17041 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
17042 <libm-alias-float.h>.
17043 (rintf): Define using libm_alias_float.
17044 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
17045 <libm-alias-float.h>.
17046 (llrintf): Define using libm_alias_float.
17047 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
17048 <libm-alias-float.h>.
17049 (lrintf): Define using libm_alias_float.
17050 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
17051 <libm-alias-float.h>.
17052 (nearbyintf): Define using libm_alias_float.
17053 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
17054 <libm-alias-float.h>.
17055 (rintf): Define using libm_alias_float.
17056 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
17057 <libm-alias-float.h>.
17058 (ceilf): Define using libm_alias_float.
17059 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
17060 <libm-alias-float.h>.
17061 (floorf): Define using libm_alias_float.
17062 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
17063 <libm-alias-float.h>.
17064 (fmaf): Define using libm_alias_float.
17065 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
17066 <libm-alias-float.h>.
17067 (lrintf): Define using libm_alias_float.
17068 (llrintf): Likewise.
17069 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
17070 <libm-alias-float.h>.
17071 (nearbyintf): Define using libm_alias_float.
17072 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
17073 <libm-alias-float.h>.
17074 (rintf): Define using libm_alias_float.
17075 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
17076 <libm-alias-float.h>.
17077 (truncf): Define using libm_alias_float.
17078 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
17079 <libm-alias-float.h>.
17080 (copysignf): Define using libm_alias_float.
17081 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
17082 <libm-alias-float.h>.
17083 (fabsf): Define using libm_alias_float.
17084 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
17085 <libm-alias-float.h>.
17086 (lrintf): Define using libm_alias_float.
17087 (llrintf): Likewise.
17088 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
17089 <libm-alias-float.h>.
17090 (nearbyintf): Define using libm_alias_float.
17091 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
17092 <libm-alias-float.h>.
17093 (rintf): Define using libm_alias_float.
17094
170952017-11-29 Joseph Myers <joseph@codesourcery.com>
17096
17097 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
17098 <libm-alias-double.h>.
17099 (copysign): Define using libm_alias_double.
17100 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
17101 <libm-alias-double.h>.
17102 (fabs): Define using libm_alias_double.
17103 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
17104 Include <libm-alias-double.h>.
17105 (copysign): Define using libm_alias_double.
17106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
17107 <libm-alias-double.h>.
17108 (fabs): Define using libm_alias_double.
17109 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
17110 <libm-alias-double.h>.
17111 (fdim): Define using libm_alias_double.
17112 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
17113 <libm-alias-double.h>.
17114 (fma): Define using libm_alias_double.
17115 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
17116 <libm-alias-double.h>.
17117 (llrint): Define using libm_alias_double.
17118 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
17119 Include <libm-alias-double.h>.
17120 (nearbyint): Define using libm_alias_double.
17121 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
17122 <libm-alias-double.h>.
17123 (rint): Define using libm_alias_double.
17124 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17125 <libm-alias-double.h>.
17126 (fabs): Define using libm_alias_double.
17127 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
17128 <libm-alias-double.h>.
17129 (llrint): Define using libm_alias_double.
17130 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
17131 <libm-alias-double.h>.
17132 (nearbyint): Define using libm_alias_double.
17133 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
17134 <libm-alias-double.h>.
17135 (rint): Define using libm_alias_double.
17136 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
17137 <libm-alias-double.h>.
17138 (ceil): Define using libm_alias_double.
17139 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
17140 <libm-alias-double.h>.
17141 (floor): Define using libm_alias_double.
17142 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
17143 <libm-alias-double.h>.
17144 (fma): Define using libm_alias_double.
17145 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
17146 <libm-alias-double.h>.
17147 (lrint): Define using libm_alias_double.
17148 (llrint): Likewise.
17149 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
17150 <libm-alias-double.h>.
17151 (nearbyint): Define using libm_alias_double.
17152 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
17153 <libm-alias-double.h>.
17154 (rint): Define using libm_alias_double.
17155 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
17156 <libm-alias-double.h>.
17157 (trunc): Define using libm_alias_double.
17158 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
17159 <libm-alias-double.h>.
17160 (copysign): Define using libm_alias_double.
17161 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
17162 <libm-alias-double.h>.
17163 (fabs): Define using libm_alias_double.
17164 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
17165 <libm-alias-double.h>.
17166 (lrint): Define using libm_alias_double.
17167 (llrint): Likewise.
17168 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
17169 <libm-alias-double.h>.
17170 (nearbyint): Define using libm_alias_double.
17171 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
17172 <libm-alias-double.h>.
17173 (rint): Define using libm_alias_double.
17174
17175 [BZ #22229]
17176 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17177 <math_ldbl_opt.h>.
17178 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
17179
17180 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17181 SPARC --disable-multi-arch glibc variants.
17182
17183 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
17184 <libm-alias-float.h>.
17185 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17186 if [SHARED].
17187 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
17188 <libm-alias-float.h>.
17189 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17190 if [SHARED].
17191 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
17192 <libm-alias-float.h>.
17193 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17194 if [SHARED].
17195 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
17196 <libm-alias-float.h>.
17197 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17198 if [SHARED].
17199 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
17200 <libm-alias-float.h>.
17201 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17202 if [SHARED].
17203 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
17204 <libm-alias-float.h>.
17205 (ceilf): Define using libm_alias_float.
17206 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
17207 <libm-alias-float.h>.
17208 (floorf): Define using libm_alias_float.
17209 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
17210 <libm-alias-float.h>.
17211 (fmaf): Define using libm_alias_float.
17212 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
17213 <libm-alias-float.h>.
17214 (nearbyintf): Define using libm_alias_float.
17215 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
17216 <libm-alias-float.h>.
17217 (rintf): Define using libm_alias_float.
17218 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
17219 <libm-alias-float.h>.
17220 (truncf): Define using libm_alias_float.
17221 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
17222 (copysignf): Define using libm_alias_float.
17223 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
17224 (cosf): Define using libm_alias_float.
17225 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
17226 (fabsf): Define using libm_alias_float.
17227 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17228 (fmaxf): Define using libm_alias_float.
17229 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
17230 (fminf): Define using libm_alias_float.
17231 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
17232 (llrintf): Define using libm_alias_float.
17233 [!__ILP32__] (lrintf): Likewise.
17234 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
17235 (sincosf): Define using libm_alias_float.
17236 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
17237 (sinf): Define using libm_alias_float.
17238 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
17239 (lrintf): Define using libm_alias_float.
17240
17241 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
17242 <libm-alias-double.h>.
17243 (atan): Define using libm_alias_double.
17244 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
17245 <libm-alias-double.h>.
17246 (ceil): Define using libm_alias_double.
17247 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
17248 <libm-alias-double.h>.
17249 (floor): Define using libm_alias_double.
17250 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
17251 <libm-alias-double.h>.
17252 (fma): Define using libm_alias_double.
17253 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
17254 <libm-alias-double.h>.
17255 (nearbyint): Define using libm_alias_double.
17256 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
17257 <libm-alias-double.h>.
17258 (rint): Define using libm_alias_double.
17259 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
17260 <libm-alias-double.h>.
17261 (sin): Define using libm_alias_double.
17262 (cos): Likewise.
17263 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
17264 <libm-alias-double.h>.
17265 (tan): Define using libm_alias_double.
17266 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
17267 <libm-alias-double.h>.
17268 (trunc): Define using libm_alias_double.
17269 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
17270 (copysign): Define using libm_alias_double.
17271 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
17272 (fabs): Define using libm_alias_double.
17273 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
17274 (fmax): Define using libm_alias_double.
17275 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
17276 (fmin): Define using libm_alias_double.
17277 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
17278 (llrint): Define using libm_alias_double.
17279 [!__ILP32__] (lrint): Likewise.
17280 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
17281 (lrint): Define using libm_alias_double.
17282
172832017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17284
17285 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17286 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
17287 objects.
17288 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
17289 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
17290 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
17291 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
17292 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
17293 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
17294
17295 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17296 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
17297 objects.
17298 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
17299 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
17300 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
17301 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
17302 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
17303 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
17304
17305 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17306 (libm-sysdep_routines): Add s_nearbyint-generic and
17307 s_nearbyintf-generic objects.
17308 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
17309 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
17310 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
17311 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
17312 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
17313 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
17314
17315 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17316 Add s_finitef-generic and s_finite-generic objects.
17317 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
17318 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
17319 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
17320 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
17321 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
17322 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
17323
17324 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17325 Add s_isinff-generic and s_isinf-generic objects.
17326 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
17327 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
17328 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
17329 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
17330 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
17331 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
17332
17333 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17334 Add s_isnanf-generic and s_isnan-generic objects.
17335 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
17336 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
17337 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
17338 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
17339 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
17340 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
17341
17342 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
17343 macro.
17344 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
17345 rule.
17346 (sysdep_routines): Use sysdep_calls as base.
17347 (libm-sysdep_routines): Add generic rule for symbols shared with
17348 libc. Add s_signbit-generic and s_signbitf-generic objects.
17349 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
17350 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
17351 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
17352 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
17353 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
17354 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
17355
173562017-11-29 Joseph Myers <joseph@codesourcery.com>
17357
17358 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
17359 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
17360 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
17361 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
17362 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
17363 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
17364 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
17365 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
17366 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
17367 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
17368 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
17369 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
17370 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
17371 libm_alias_float_r.
17372 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
17373 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
17374 (logf): Likewise.
17375 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
17376 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
17377 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
17378 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
17379 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
17380 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
17381 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
17382 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
17383 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
17384 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
17385 libm_alias_float.
17386 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
17387 (cosf): Likewise.
17388 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
17389 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
17390 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
17391 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
17392 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
17393 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
17394 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
17395 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
17396 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
17397 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
17398 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
17399 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
17400 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
17401 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
17402 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
17403 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
17404 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
17405 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
17406 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
17407 libm_alias_float.
17408 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
17409 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
17410 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
17411 * sysdeps/ia64/fpu/w_lgammaf_main.c
17412 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
17413 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
17414
174152017-11-28 Mike FABIAN <mfabian@redhat.com>
17416 Alexandre Oliva <aoliva@redhat.com>
17417
17418 [BZ #17750]
17419 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
17420 * localedata/fr_CA.UTF-8.in: New file with test data for backward
17421 accents sorting.
17422 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
17423 sorting.
17424 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
17425 * localedata/locales/de_DE (LC_COLLATE): Likewise.
17426 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
17427 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
17428 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
17429 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
17430 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
17431 instead of “ifdef DIACRIT_BACKWARD”.
17432
174332017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17434
17435 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
17436 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
17437 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
17438 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
17439 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
17440 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
17441 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
17442 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
17443 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
17444 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
17445 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
17446 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
17447 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
17448 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
17449 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
17450 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
17451 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
17452 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
17453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17454 ($(have-as-vis3) == yes): Remove conditional.
17455 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
17456 Likewise.
17457 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
17458 file.
17459 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
17460 file.
17461 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
17462 file.
17463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
17464 file.
17465 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
17466 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
17467 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
17468 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
17469 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
17470 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
17471 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
17472 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
17473
174742017-11-29 Joseph Myers <joseph@codesourcery.com>
17475
17476 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
17477 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
17478 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
17479 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
17480 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
17481 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
17482 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
17483 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
17484 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
17485 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
17486 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
17487 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
17488 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
17489 libm_alias_double_r.
17490 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
17491 (log): Likewise.
17492 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
17493 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
17494 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
17495 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
17496 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
17497 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
17498 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
17499 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
17500 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
17501 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
17502 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
17503 libm_alias_double.
17504 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
17505 (cos): Likewise.
17506 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
17507 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
17508 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
17509 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
17510 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
17511 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
17512 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
17513 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
17514 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
17515 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
17516 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
17517 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
17518 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
17519 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
17520 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
17521 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
17522 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
17523 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
17524 libm_alias_double.
17525 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
17526 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
17527 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
17528 * sysdeps/ia64/fpu/w_lgamma_main.c
17529 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
17530 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
17531
175322017-11-28 John David Anglin <danglin@gcc.gnu.org>
17533
17534 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
17535 address of $global$ into %dp register earlier. Use pc-relative
17536 instruction sequence for PIC case.
17537
175382017-11-28 Joseph Myers <joseph@codesourcery.com>
17539
17540 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
17541 (asinhf): Define using libm_alias_float.
17542 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
17543 (atanf): Define using libm_alias_float.
17544 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
17545 (cbrtf): Define using libm_alias_float.
17546 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
17547 (ceilf): Define using libm_alias_float.
17548 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
17549 (copysignf): Define using libm_alias_float.
17550 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
17551 (expm1f): Define using libm_alias_float.
17552 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
17553 (fabsf): Define using libm_alias_float.
17554 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
17555 (floorf): Define using libm_alias_float.
17556 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17557 (fmaxf): Define using libm_alias_float.
17558 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
17559 (fminf): Define using libm_alias_float.
17560 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
17561 (frexpf): Define using libm_alias_float.
17562 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
17563 (llrintf): Define using libm_alias_float.
17564 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
17565 (logbf): Define using libm_alias_float.
17566 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
17567 (lrintf): Define using libm_alias_float.
17568 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
17569 (nearbyintf): Define using libm_alias_float.
17570 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
17571 (remquof): Define using libm_alias_float.
17572 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
17573 (rintf): Define using libm_alias_float.
17574 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
17575 (truncf): Define using libm_alias_float.
17576 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
17577 <libm-alias-float.h>.
17578 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17579 if [SHARED].
17580 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
17581 <libm-alias-float.h>.
17582 (expf): Define using libm_alias_float, or libm_alias_float_other
17583 if [SHARED].
17584 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
17585 <libm-alias-float.h>.
17586 (log2f): Define using libm_alias_float, or libm_alias_float_other
17587 if [SHARED].
17588 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
17589 <libm-alias-float.h>.
17590 (logf): Define using libm_alias_float, or libm_alias_float_other
17591 if [SHARED].
17592 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
17593 <libm-alias-float.h>.
17594 (powf): Define using libm_alias_float, or libm_alias_float_other
17595 if [SHARED].
17596 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
17597 <libm-alias-float.h>.
17598 (cosf): Define using libm_alias_float.
17599 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
17600 <libm-alias-float.h>.
17601 (sincosf): Define using libm_alias_float.
17602 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
17603 <libm-alias-float.h>.
17604 (sinf): Define using libm_alias_float.
17605 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17606 (fmaxf): Define using libm_alias_float.
17607 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
17608 (fminf): Define using libm_alias_float.
17609 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17610 <libm-alias-float.h>.
17611 (fmaf): Define using libm_alias_float.
17612
17613 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
17614 (asinh): Define using libm_alias_double.
17615 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
17616 (atan): Define using libm_alias_double.
17617 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
17618 (cbrt): Define using libm_alias_double.
17619 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
17620 (ceil): Define using libm_alias_double.
17621 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
17622 (copysign): Define using libm_alias_double.
17623 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
17624 (expm1): Define using libm_alias_double.
17625 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
17626 (fabs): Define using libm_alias_double.
17627 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
17628 (fdim): Define using libm_alias_double.
17629 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
17630 (floor): Define using libm_alias_double.
17631 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
17632 (fmax): Define using libm_alias_double.
17633 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
17634 (fmin): Define using libm_alias_double.
17635 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
17636 (frexp): Define using libm_alias_double.
17637 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
17638 (llrint): Define using libm_alias_double.
17639 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
17640 (logb): Define using libm_alias_double.
17641 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
17642 (lrint): Define using libm_alias_double.
17643 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
17644 (nearbyint): Define using libm_alias_double.
17645 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
17646 (remquo): Define using libm_alias_double.
17647 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
17648 (rint): Define using libm_alias_double.
17649 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
17650 (trunc): Define using libm_alias_double.
17651 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
17652 (fmax): Define using libm_alias_double.
17653 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
17654 (fmin): Define using libm_alias_double.
17655 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
17656 (fma): Define using libm_alias_double.
17657
176582017-11-28 H.J. Lu <hongjiu.lu@intel.com>
17659
17660 [BZ #22370]
17661 * elf/dl-hwcaps.c (ROUND): Removed.
17662 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
17663 and ELF_NOTE_NEXT_OFFSET.
17664 * elf/dl-load.c (ROUND): Removed.
17665 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
17666 * elf/readelflib.c (ROUND): Removed.
17667 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
17668 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
17669 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
17670 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
17671
176722017-11-28 Joseph Myers <joseph@codesourcery.com>
17673
17674 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
17675 [!__fmaf] (fmaf): Define using libm_alias_float.
17676
17677 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
17678 [!__fma] (fma): Define using libm_alias_double.
17679 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
17680
176812017-11-28 Mike FABIAN <mfabian@redhat.com>
17682
17683 [BZ #22336]
17684 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
17685 and implement the collation rules for cs from CLDR on top of that.
17686 * Makefile: Add cs_CZ.UTF-8 to test-input.
17687 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
17688
176892017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
17690
17691 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
17692
176932017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
17694 Icarus Sparry <icarus.w.sparry@intel.com>
17695
17696 * benchtests/Makefile:Add BENCHSET to allow subsets of
17697 benchmarks to be run.
17698 * benchtests/README: Add documentation for: Running subsets of
17699 benchmarks.
17700
177012017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
17702
17703 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
17704 range of tests names.
17705
17706 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
17707 result from property and remove "max", min" and "mean" from
17708 required properties based on benchtests/bench-skeleton.c.
17709
177102017-11-28 Florian Weimer <fweimer@redhat.com>
17711
17712 [BZ #20826]
17713 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
17714 due to Internet requirement.
17715 * posix/Makefile (tests): Remove tst-getaddrinfo4,
17716 tst-getaddrinfo5.
17717 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
17718
177192017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17720
17721 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17722 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
17723 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
17724 (sysdep_routines): Add memset-ultra1.
17725 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
17726 file.
17727 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
17728 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
17729 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
17730 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
17731 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
17732 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
17733 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
17734 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17735
17736 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
17737 file.
17738 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
17739 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
17740 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
17741 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
17742 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
17743 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
17744 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
17745 macro.
17746 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17747 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
17748 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
17749 (sysdep_routines): Add memcpy-ultra1.
17750 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
17751 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
17752
177532017-11-28 Joseph Myers <joseph@codesourcery.com>
17754
17755 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
17756 (cfloat_versions): Take function argument without trailing 'f'.
17757 Call libm_alias_float_other.
17758 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
17759 * sysdeps/alpha/fpu/cargf.c: Likewise.
17760 * sysdeps/alpha/fpu/cimagf.c: Likewise.
17761 * sysdeps/alpha/fpu/conjf.c: Likewise.
17762 * sysdeps/alpha/fpu/crealf.c: Likewise.
17763 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
17764 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
17765 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
17766 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
17767 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
17768 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
17769 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
17770 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
17771 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
17772 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
17773 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
17774 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
17775 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
17776 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
17777 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
17778 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
17779 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
17780 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
17781 (clog10f): Use libm_alias_float_other.
17782 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
17783 (ceilf): Define using libm_alias_float.
17784 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
17785 (copysignf): Define using libm_alias_float.
17786 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
17787 (fabsf): Define using libm_alias_float.
17788 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
17789 (floorf): Define using libm_alias_float.
17790 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
17791 (fmaxf): Define using libm_alias_float.
17792 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
17793 (fminf): Define using libm_alias_float.
17794 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
17795 (lrintf): Define using libm_alias_float.
17796 (llrintf): Likewise.
17797 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
17798 (lroundf): Define using libm_alias_float.
17799 (llroundf): Likewise.
17800 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
17801 (rintf): Define using libm_alias_float.
17802 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
17803 (truncf): Define using libm_alias_float.
17804
17805 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
17806 (ceilf): Define using libm_alias_float.
17807 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
17808 (floorf): Define using libm_alias_float.
17809 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
17810 (fmaf): Define using libm_alias_float.
17811 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
17812 (fmaxf): Define using libm_alias_float.
17813 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
17814 (fminf): Define using libm_alias_float.
17815 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
17816 (llrintf): Define using libm_alias_float.
17817 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
17818 (llroundf): Define using libm_alias_float.
17819 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
17820 (lrintf): Define using libm_alias_float.
17821 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
17822 (lroundf): Define using libm_alias_float.
17823 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
17824 <libm-alias-float.h>.
17825 (nearbyintf): Define using libm_alias_float.
17826 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
17827 (rintf): Define using libm_alias_float.
17828 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
17829 (roundf): Define using libm_alias_float.
17830 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
17831 (truncf): Define using libm_alias_float.
17832
17833 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
17834 (ceil): Define using libm_alias_double.
17835 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
17836 (copysign): Define using libm_alias_double.
17837 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
17838 (fabs): Define using libm_alias_double.
17839 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
17840 (floor): Define using libm_alias_double.
17841 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
17842 (fmax): Define using libm_alias_double.
17843 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
17844 (fmin): Define using libm_alias_double.
17845 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
17846 (lrint): Define using libm_alias_double.
17847 (llrint): Likewise.
17848 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
17849 (lround): Define using libm_alias_double.
17850 (llround): Likewise.
17851 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
17852 (rint): Define using libm_alias_double.
17853 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
17854 (trunc): Define using libm_alias_double.
17855
17856 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
17857 (libm_alias_double_r): Add semicolon after weak_alias call.
17858
178592017-11-27 Joseph Myers <joseph@codesourcery.com>
17860
17861 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
17862 (ceil): Define using libm_alias_double.
17863 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
17864 (floor): Define using libm_alias_double.
17865 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
17866 (fma): Define using libm_alias_double.
17867 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
17868 (fmax): Define using libm_alias_double.
17869 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
17870 (fmin): Define using libm_alias_double.
17871 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
17872 (llrint): Define using libm_alias_double.
17873 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
17874 (llround): Define using libm_alias_double.
17875 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
17876 (lrint): Define using libm_alias_double.
17877 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
17878 (lround): Define using libm_alias_double.
17879 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
17880 (nearbyint): Define using libm_alias_double.
17881 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
17882 (rint): Define using libm_alias_double.
17883 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
17884 (round): Define using libm_alias_double.
17885 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
17886 (trunc): Define using libm_alias_double.
17887
178882017-11-27 Florian Weimer <fweimer@redhat.com>
17889
17890 * sysdeps/unix/sysv/linux/mlock2.c: New file.
17891 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
17892 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
17893 (tests): Add tst-mlock2.
17894 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
17895 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
17896 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
17897 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
17898 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
17899 for mlock. Document mlock2.
17900
179012017-11-27 Joseph Myers <joseph@codesourcery.com>
17902
17903 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
17904 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
17905 Likewise.
17906 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
17907 Likewise.
17908 * sysdeps/x86/Makeconfig: New file.
17909 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
17910 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17911 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
17912 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17913 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17914 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17915 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
17916 Likewise.
17917 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17918 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17919 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17920 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17921 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17922 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17923 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17924 * manual/math.texi (Mathematics): Document support for _Float64x.
17925 * math/Versions (GLIBC_2.27): Add _Float64x functions.
17926 * stdlib/Versions (GLIBC_2.27): Likewise.
17927 * wcsmbs/Versions (GLIBC_2.27): Likewise.
17928 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
17929 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17933 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
17940 Likewise.
17941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
17942 Likewise.
17943 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17955 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
17956 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17957
179582017-11-27 Andreas Schwab <schwab@suse.de>
17959
17960 * elf/Makefile (dl-routines): Add dl-sort-maps.
17961 * elf/dl-sort-maps.c: New file.
17962 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
17963 (_dl_sort_maps): Declare.
17964 * elf/dl-fini.c (_dl_sort_fini): Remove.
17965 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
17966 * elf/dl-close.c (_dl_close_worker): Likewise.
17967 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
17968 open-coding it.
17969 * elf/dl-open.c (dl_open_worker): Likewise.
17970
179712017-11-24 Joseph Myers <joseph@codesourcery.com>
17972
17973 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
17974 using libm_alias_float128.
17975 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
17976 Likewise.
17977 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
17978 Likewise.
17979 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
17980 (setpayloadsigf128): Likewise.
17981 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
17982 Likewise.
17983 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
17984 Likewise.
17985
17986 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
17987 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
17988 -mfloat128 to CFLAGS.
17989 ($(foreach
17990 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
17991 Likewise.
17992 (CFLAGS-libm-test-support-float64x.c): New variable.
17993 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
17994 $(f128-loader-link) to gnulib-tests.
17995
17996 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
17997 (libm_alias_float128_other_r): If
17998 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
17999 alias.
18000 (libm_alias_float128_r): Add semicolon after weak_alias call.
18001 * sysdeps/generic/libm-alias-ldouble.h
18002 (libm_alias_ldouble_other_r_f128): New macro.
18003 (libm_alias_ldouble_other_r_f64x): Likewise.
18004 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
18005 and libm_alias_ldouble_other_r_f64x.
18006 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
18007 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
18008 (libm_alias_ldouble_other_r_f128): New macro.
18009 (libm_alias_ldouble_other_r_f64x): Likewise.
18010 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
18011 and libm_alias_ldouble_other_r_f64x.
18012
18013 * stdlib/strfroml.c: Always include <stdlib.h>.
18014 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
18015 undefine as macro and define as weak alias.
18016 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
18017 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
18018 <stdlib.h>.
18019 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
18020 Define and later undefine as macro and define as weak alias.
18021
18022 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
18023 Define and later undefine as macro. Define as weak alias if
18024 [!USE_WIDE_CHAR].
18025 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
18026 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18027 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
18028 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
18029 Define and later undefine as macro. Define as weak alias if
18030 [!USE_WIDE_CHAR].
18031 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
18032 Define and later undefine as macro. Define as weak alias if
18033 [USE_WIDE_CHAR].
18034 * sysdeps/ieee754/float128/strtof128_l.c
18035 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
18036 Define and later undefine as macro. Define as weak alias if
18037 [!USE_WIDE_CHAR].
18038 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
18039 Define and later undefine as macro. Define as weak alias if
18040 [USE_WIDE_CHAR].
18041 * sysdeps/ieee754/ldbl-128/strtold_l.c
18042 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18043 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18044 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18045 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18046 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
18047 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18048 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18049 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18050 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18051 * sysdeps/ieee754/ldbl-96/strtold_l.c
18052 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18053 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18054 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18055 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18056
18057 * math/test-float64x.h: New file.
18058 * math/Makefile (type-float64x-yes): New variable.
18059 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
18060
18061 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
18062 function-like macro.
18063 (min_of_type_): Likewise.
18064 (min_of_type_l): Likewise.
18065 (min_of_type_f128): Likewise.
18066 (min_of_type): Pass () as last argument of __MATH_TG.
18067
18068 * stdlib/tst-strtod-round-skeleton.c
18069 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
18070 headers.
18071
18072 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
18073 for combinations of long double with _Float64 and _Float64x.
18074
18075 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
18076 (__DECL_SIMD_cosf32): Likewise.
18077 (__DECL_SIMD_cosf64): Likewise.
18078 (__DECL_SIMD_cosf32x): Likewise.
18079 (__DECL_SIMD_cosf64x): Likewise.
18080 (__DECL_SIMD_cosf128x): Likewise.
18081 (__DECL_SIMD_sinf16): Likewise.
18082 (__DECL_SIMD_sinf32): Likewise.
18083 (__DECL_SIMD_sinf64): Likewise.
18084 (__DECL_SIMD_sinf32x): Likewise.
18085 (__DECL_SIMD_sinf64x): Likewise.
18086 (__DECL_SIMD_sinf128x): Likewise.
18087 (__DECL_SIMD_sincosf16): Likewise.
18088 (__DECL_SIMD_sincosf32): Likewise.
18089 (__DECL_SIMD_sincosf64): Likewise.
18090 (__DECL_SIMD_sincosf32x): Likewise.
18091 (__DECL_SIMD_sincosf64x): Likewise.
18092 (__DECL_SIMD_sincosf128x): Likewise.
18093 (__DECL_SIMD_logf16): Likewise.
18094 (__DECL_SIMD_logf32): Likewise.
18095 (__DECL_SIMD_logf64): Likewise.
18096 (__DECL_SIMD_logf32x): Likewise.
18097 (__DECL_SIMD_logf64x): Likewise.
18098 (__DECL_SIMD_logf128x): Likewise.
18099 (__DECL_SIMD_expf16): Likewise.
18100 (__DECL_SIMD_expf32): Likewise.
18101 (__DECL_SIMD_expf64): Likewise.
18102 (__DECL_SIMD_expf32x): Likewise.
18103 (__DECL_SIMD_expf64x): Likewise.
18104 (__DECL_SIMD_expf128x): Likewise.
18105 (__DECL_SIMD_powf16): Likewise.
18106 (__DECL_SIMD_powf32): Likewise.
18107 (__DECL_SIMD_powf64): Likewise.
18108 (__DECL_SIMD_powf32x): Likewise.
18109 (__DECL_SIMD_powf64x): Likewise.
18110 (__DECL_SIMD_powf128x): Likewise.
18111
18112 * stdlib/Versions (libc): Move entries for wcstof128 and
18113 wcstof128_l to ....
18114 * wcsmbs/Versions (libc): ... here.
18115 Include <float128-abi.h>.
18116
181172017-11-24 Florian Weimer <fweimer@redhat.com>
18118
18119 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18120 bits/mman-shared.h.
18121 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
18122 <bits/mman-shared.h>.
18123 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
18124 to ...
18125 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
18126 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
18127 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
18128 <bits/mman-shared.h>.
18129
181302017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18131
18132 [BZ #22457]
18133 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
18134 posix_memalign/free.
18135 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
18136
181372017-11-22 Mike FABIAN <mfabian@redhat.com>
18138
18139 [BZ #22469]
18140 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
18141 and implement the collation rules for pl from CLDR on top of that.
18142 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
18143 of locales to be built for testing.
18144 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
18145
181462017-11-23 Joseph Myers <joseph@codesourcery.com>
18147
18148 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
18149 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
18150 libm_alias_ldouble_other.
18151 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
18152 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
18153 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
18154 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
18155 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
18156 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
18157 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
18158 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
18159 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
18160 libm_alias_ldouble_r.
18161 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
18162 libm_alias_ldouble_other.
18163 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
18164 (log10l): Likewise.
18165 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
18166 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
18167 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
18168 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
18169 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
18170 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
18171 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
18172 (atan2l): Likewise.
18173 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
18174 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
18175 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
18176 libm_alias_ldouble.
18177 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
18178 (cosl): Likewise.
18179 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
18180 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
18181 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
18182 (expl): Likewise.
18183 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
18184 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
18185 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
18186 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
18187 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
18188 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
18189 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
18190 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
18191 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
18192 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
18193 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
18194 libm_alias_ldouble.
18195 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
18196 libm_alias_ldouble_other.
18197 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
18198 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
18199 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
18200 libm_alias_ldouble.
18201 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
18202 libm_alias_ldouble_other.
18203 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
18204 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
18205 * sysdeps/ia64/fpu/w_lgammal_main.c
18206 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
18207 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
18208
182092017-11-23 Florian Weimer <fweimer@redhat.com>
18210
18211 * malloc/malloc.c (tcache_thread_shutdown): Rename from
18212 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
18213 alike. Remove freeres marker.
18214 * malloc/arena.c (arena_thread_freeres): Call
18215 tcache_thread_shutdown.
18216
182172017-11-23 Florian Weimer <fweimer@redhat.com>
18218
18219 [BZ #22459]
18220 Export nscd hash function as __nss_hash.
18221 * include/nss.h (__nss_hash): Declare.
18222 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
18223 symbol.
18224 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
18225 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
18226 of __nscd_hash.
18227 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
18228 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
18229 * nss/Makefiles (routines): Add nss_hash.
18230 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
18231 * nss/nss_hash.c: Rename from nis/nis_hash.c.
18232 (__nss_hash): Rename from __nis_hash. Define hidden alias.
18233 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
18234
182352017-11-23 Florian Weimer <fweimer@redhat.com>
18236
18237 [BZ #22478]
18238 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
18239 Return error code, not -1.
18240 * signal/tst-sigwait-eintr.c: New file.
18241 * signal/Makefile (tests): Add tst-sigwait-eintr.
18242
182432017-11-23 Florian Weimer <fweimer@redhat.com>
18244
18245 Linux: Add memfd_create system call wrapper
18246 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
18247 tst-memfd_create.
18248 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
18249 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
18250 [__USE_GNU] (memfd_create): Declare.
18251 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
18252 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
18253 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
18254 * sysdeps/unix/sysv/linux/**.abilist: Update.
18255 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
18256
182572017-11-22 Joseph Myers <joseph@codesourcery.com>
18258
18259 * localedata/gen-locale.sh: Fix typo in variable name.
18260
18261 * resolv/res_debug.c (p_secstodate): Condition definition on
18262 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
18263 directly as __p_secstodate, and as a compat symbol. Do not use
18264 libresolv_hidden_def.
18265 * resolv/resolv.h (p_secstodate): Remove macro and function
18266 declaration.
18267 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
18268 using p_secstodate.
18269 * include/resolv.h (__p_secstodate): Do not use
18270 libresolv_hidden_proto.
18271 * resolv/Makefile (tests): Move tst-p_secstodate to ....
18272 (tests-internal): ... here.
18273 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
18274 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
18275 and declare and use __p_secstodate and use compat_symbol_reference
18276 in that case.
18277 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
18278 implementation returning 77.
18279
18280 [BZ #22463]
18281 * resolv/res_debug.c: Include <libc-diag.h>.
18282 (p_secstodate): Assert time_t at least as wide as u_long. On
18283 overflow, use integer seconds since the epoch as output, or use
18284 "<overflow>" as output and set errno to EOVERFLOW if integer
18285 seconds since the epoch would be 14 or more characters.
18286 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
18287 for sprintf call.
18288 * resolv/tst-p_secstodate.c: New file.
18289 * resolv/Makefile (tests): Add tst-p_secstodate.
18290 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
18291
18292 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
18293 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
18294 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
18295
182962017-11-22 Paul Eggert <eggert@cs.ucla.edu>
18297
18298 * posix/regcomp.c (init_word_char): Add comments.
18299
183002017-11-22 Joseph Myers <joseph@codesourcery.com>
18301
18302 [BZ #22447]
18303 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
18304 strlen to compute length of ut_user and set trailing NUL byte of
18305 result explicitly.
18306
183072017-11-21 Mike FABIAN <mfabian@redhat.com>
18308
18309 [BZ #15537]
18310 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
18311 using “copy "iso14651_t1"” and then implementing the
18312 collation rules for lv from CLDR on top of that.
18313 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
18314 of locales to be built for testing.
18315 * lv_LV.UTF-8.in: New file with test data to test the Latvian
18316 sorting.
18317
183182017-11-21 Joseph Myers <joseph@codesourcery.com>
18319
18320 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
18321 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
18322 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
18323 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
18324 [__USE_MISC] (MADV_HWPOISON): New macro.
18325 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
18326
183272017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18328
18329 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
18330 -Wmissing-braces on GCC 4.9.
18331
183322017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
18333
18334 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
18335 * sysdeps/s390/s390-32/start.S (_start): Likewise
18336 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
18337 (thread_start): Likewise.
18338 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
18339 (thread_start): Likewise.
18340 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
18341 (__makecontext_ret): Likewise.
18342 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
18343 (__makecontext_ret): Likewise.
18344
183452017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
18346
18347 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
18348 __wcschrnul): Remove attribute_hidden.
18349
183502017-11-20 Paul Eggert <eggert@cs.ucla.edu>
18351
18352 regex: don't assume uint64_t or uint32_t
18353 This avoids -Werror=overflow errors for 32-bit systems in
18354 the 64-bit case. Problem reported by Joseph Myers in:
18355 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
18356 Also, when this code is used in Gnulib it ports to platforms
18357 that lack uint64_t and uint32_t. The C standard doesn't guarantee
18358 them, and on some 32-bit compilers there is no uint64_t.
18359 Problem reported by Gianluigi Tiesi in:
18360 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
18361 * posix/regcomp.c (init_word_char): Don't assume that the types
18362 uint64_t and uint32_t exist. Adapted from Gnulib patch
18363 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
18364 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
18365
183662017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
18367
18368 * sysdeps/aarch64/memset-reg.h: New file.
18369 * sysdeps/aarch64/memset.S: Use it.
18370 (__memset): Rename to MEMSET macro.
18371 [ZVA_MACRO]: Use zva_macro.
18372 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18373 Add memset_generic and memset_falkor.
18374 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
18375 (__libc_ifunc_impl_list): Add memset ifuncs.
18376 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
18377 local variable zva_size.
18378 * sysdeps/aarch64/multiarch/memset.c: New file.
18379 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
18380 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
18381 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
18382 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
18383 (DCZID_DZP_MASK): New macro.
18384 (DCZID_BS_MASK): Likewise.
18385 (init_cpu_features): Read and set zva_size.
18386 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
18387 (struct cpu_features): New member zva_size.
18388
18389 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
18390 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
18391 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
18392
18393 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
18394 backwards. Fix timing computation.
18395 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
18396 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
18397 on memset by N at a time. Fix timing computation.
18398
183992017-11-20 Florian Weimer <fweimer@redhat.com>
18400
18401 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
18402 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
18403
184042017-11-19 Florian Weimer <fweimer@redhat.com>
18405
18406 manual: Document mprotect
18407 * manual/memory.texi (Memory Protection): New section.
18408 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
18409 documentation of PROT_* flags and reference the Memory Protection
18410 section instead.
18411
184122017-11-19 Florian Weimer <fweimer@redhat.com>
18413
18414 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
18415 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
18416 (Scatter-Gather): ... to here. Remove misleading comment.
18417
184182017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
18419
18420 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
18421 style.
18422
18423 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
18424 when /proc/<pid>/setgroups does not exist.
18425
184262017-11-18 Florian Weimer <fweimer@redhat.com>
18427
18428 * sysdeps/unix/sysv/linux/tst-ttyname.c
18429 (become_root_in_mount_ns): Remove.
18430 (do_in_chroot_1): Call support_enter_mount_namespace.
18431 (do_in_chroot_2): Likewise.
18432 (do_test): Call support_become_root early.
18433
184342017-11-18 Florian Weimer <fweimer@redhat.com>
18435
18436 * support/namespace.h (support_enter_mount_namespace): Declare.
18437 * support/support_enter_mount_namespace.c: New file.
18438 * support/Makefile (libsupport-routines): Add
18439 support_enter_mount_namespace.
18440
184412017-11-18 Florian Weimer <fweimer@redhat.com>
18442
18443 * support/temp_file.c (support_create_temp_directory): Use
18444 test_dir and do not rely on the presence of the XXXXXX suffix.
18445 * support/temp_file.h (support_create_temp_directory): Update
18446 comment.
18447 * support/tst-xreadlink.c (do_test): Adjust.
18448 * support/support_chroot.c (support_chroot_create): Likewise.
18449
184502017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18451
18452 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
18453 macro.
18454 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
18455 htm-no-suspend.
18456
184572017-11-17 Joseph Myers <joseph@codesourcery.com>
18458
18459 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
18460 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
18461 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
18462 (ceill): Define using libm_alias_ldouble.
18463 * sysdeps/x86_64/fpu/s_copysignl.S: Include
18464 <libm-alias-ldouble.h>.
18465 (copysignl): Define using libm_alias_ldouble.
18466 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
18467 (fabsl): Define using libm_alias_ldouble.
18468 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
18469 (floorl): Define using libm_alias_ldouble.
18470 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18471 (fmaxl): Define using libm_alias_ldouble.
18472 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18473 (fminl): Define using libm_alias_ldouble.
18474 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
18475 (llrintl): Define using libm_alias_ldouble.
18476 (lrintl): Likewise.
18477 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
18478 <libm-alias-ldouble.h>.
18479 (nearbyintl): Define using libm_alias_ldouble.
18480 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
18481 (truncl): Define using libm_alias_ldouble.
18482 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
18483 <libm-alias-ldouble.h>.
18484 (lrintl): Define using libm_alias_ldouble.
18485
18486 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
18487 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
18488 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
18489 (asinhl): Define using libm_alias_ldouble.
18490 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
18491 (atanl): Define using libm_alias_ldouble.
18492 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
18493 (cbrtl): Define using libm_alias_ldouble.
18494 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
18495 (ceill): Define using libm_alias_ldouble.
18496 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
18497 (copysignl): Define using libm_alias_ldouble.
18498 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
18499 (fabsl): Define using libm_alias_ldouble.
18500 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
18501 (floorl): Define using libm_alias_ldouble.
18502 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18503 (fmaxl): Define using libm_alias_ldouble.
18504 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18505 (fminl): Define using libm_alias_ldouble.
18506 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
18507 (frexpl): Define using libm_alias_ldouble.
18508 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
18509 (llrintl): Define using libm_alias_ldouble.
18510 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
18511 (logbl): Define using libm_alias_ldouble.
18512 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
18513 (lrintl): Define using libm_alias_ldouble.
18514 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
18515 (nearbyintl): Define using libm_alias_ldouble.
18516 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
18517 (nextafterl): Define using libm_alias_ldouble.
18518 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
18519 (remquol): Define using libm_alias_ldouble.
18520 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
18521 (rintl): Define using libm_alias_ldouble.
18522 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
18523 (truncl): Define using libm_alias_ldouble.
18524 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18525 (fmaxl): Define using libm_alias_ldouble.
18526 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18527 (fminl): Define using libm_alias_ldouble.
18528
18529 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
18530 to C syntax instead of availability and properties of types.
18531 * bits/floatn.h [!__ASSEMBLER]: Likewise.
18532 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
18533 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
18534 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
18535 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
18536 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
18537
185382017-11-17 Florian Weimer <fweimer@redhat.com>
18539
18540 support_become_root: Enable file creation in namespaces.
18541 * support/support_become_root.c (setup_mapping): New function.
18542 (support_become_root): Call it.
18543
185442017-11-17 Joseph Myers <joseph@codesourcery.com>
18545
18546 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
18547 macro.
18548
185492017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18550
18551 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
18552 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
18553
185542017-11-16 Joseph Myers <joseph@codesourcery.com>
18555
18556 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
18557
18558 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18559 version to 4.14.
18560
185612017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
18562
18563 * INSTALL: Fix botched up regeneration.
18564
18565 * NEWS: Update sourceare link to https.
18566 * configure.ac: Likewise.
18567 * crypt/md5test-giant.c: Likewise.
18568 * dlfcn/bug-atexit1.c: Likewise.
18569 * dlfcn/bug-atexit2.c: Likewise.
18570 * localedata/README: Likewise.
18571 * malloc/tst-mallocfork.c: Likewise.
18572 * manual/install.texi: Likewise.
18573 * nptl/tst-pthread-getattr.c: Likewise.
18574 * stdio-common/tst-fgets.c: Likewise.
18575 * stdio-common/tst-fwrite.c: Likewise.
18576 * sunrpc/Makefile: Likewise.
18577 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
18578 * wcsmbs/tst-mbrtowc2.c: Likewise.
18579 * configure: Regenerate.
18580 * INSTALL: Regenerate.
18581
185822017-11-15 Martin Sebor <msebor@redhat.com>
18583
18584 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
18585 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
18586 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
18587
185882017-11-15 Luke Shumaker <lukeshu@parabola.nu>
18589
18590 [BZ #22145]
18591 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
18592 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
18593
18594 [BZ #22145]
18595 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
18596 Defer is_pty check until end of the function.
18597 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18598
18599 [BZ #22145]
18600 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
18601 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
18602 (ttyname): Likewise.
18603 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
18604 (__ttyname_r): Likewise.
18605
18606 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
18607 int to bool.
18608
18609 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
18610
18611 * manual/terminal.texi (Is It a Terminal):
18612 Mention ENODEV for ttyname and ttyname_r.
18613
186142017-11-15 Joseph Myers <joseph@codesourcery.com>
18615
18616 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
18617 constant and macro.
18618
18619 * sysdeps/unix/sysv/linux/bits/mman-linux.h
18620 [__USE_MISC] (MADV_WIPEONFORK): New macro.
18621 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
18622 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
18623 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
18624 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
18625
186262017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18627
18628 * signal/sigrelse.c (sigrelse): Optimize implementation.
18629
18630 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
18631 (__sigpause): Rely on __sigsuspend to implement single thread
18632 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
18633
186342017-11-15 Joseph Myers <joseph@codesourcery.com>
18635
18636 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18637 kernel version to 4.14.
18638
186392017-11-15 Steve Ellcey <sellcey@cavium.com>
18640
18641 [BZ #22442]
18642 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
18643 Check if ifname is too long.
18644
186452017-11-15 Luke Shumaker <lukeshu@parabola.nu>
18646
18647 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
18648
186492017-11-15 Mike FABIAN <mfabian@redhat.com>
18650
18651 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
18652 was accidentally lost.
18653
186542017-11-15 Mike FABIAN <mfabian@redhat.com>
18655
18656 * localedata/locales/az_IR: Add standard copyright header.
18657
186582017-11-15 Florian Weimer <fweimer@redhat.com>
18659
18660 [BZ #22439]
18661 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
18662 not just the top one. Output a new "subheaps" statistic.
18663
186642017-11-15 Florian Weimer <fweimer@redhat.com>
18665
18666 [BZ #22408]
18667 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
18668 under the per-arena lock.
18669 * malloc/Makefile (tests): Add tst-malloc_info.
18670 (tst-malloc_info): Link with libpthread.
18671 * malloc/tst-malloc_info.c: New file.
18672
186732017-11-15 Joseph Myers <joseph@codesourcery.com>
18674
18675 [BZ #21660]
18676 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
18677 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
18678 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
18679 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
18680 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
18681 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
18682 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
18683 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
18684 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
18685 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
18686 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
18687 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
18688 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
18689 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
18690 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
18691 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
18692 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
18693 (__floating_type): Likewise.
18694 (__real_integer_type): Likewise.
18695 (__complex_integer_type): Likewise.
18696 (__expr_is_real): Likewise.
18697 (__tgmath_real_type_sub): Likewise.
18698 (__tgmath_real_type): Likewise.
18699 (__tgmath_complex_type_sub): Likewise.
18700 (__tgmath_complex_type): Likewise.
18701 (__TGMATH_F128): Likewise.
18702 (__TGMATH_CF128): Likewise.
18703 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
18704 new macros.
18705 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
18706 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
18707 Likewise.
18708 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
18709 Likewise.
18710 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
18711 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
18712 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
18713 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
18714 Likewise.
18715 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
18716 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
18717 Likewise.
18718 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
18719 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
18720 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
18721 Likewise.
18722 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
18723 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
18724 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
18725 (cimag): Likewise.
18726 (creal): Likewise.
18727
187282017-11-14 Joseph Myers <joseph@codesourcery.com>
18729
18730 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
18731 for stpncpy calls for GCC 8.
18732 (test_strncat): Disable -Wstringop-truncation warning for strncat
18733 calls for GCC 8. Disable -Wstringop-overflow= warning for one
18734 strncat call for GCC 7.
18735 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
18736 calls for GCC 8.
18737 (test_memcmp): Use memcpy instead of strncpy for calls not copying
18738 trailing NUL.
18739
18740 * string/bug-strncat1.c: Include <libc-diag.h>.
18741 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
18742
187432017-11-13 Claude Paroz <claude@2xlibre.net>
18744
18745 [BZ #22387]
18746 * localedata/locales/aa_DJ: Improved readibility by replacing
18747 <Uxxxx> sequences in the ASCII printable range by their ASCII
18748 character equivalents.
18749 * localedata/locales/aa_ER: Likewise.
18750 * localedata/locales/aa_ER@saaho: Likewise.
18751 * localedata/locales/aa_ET: Likewise.
18752 * localedata/locales/af_ZA: Likewise.
18753 * localedata/locales/agr_PE: Likewise.
18754 * localedata/locales/ak_GH: Likewise.
18755 * localedata/locales/am_ET: Likewise.
18756 * localedata/locales/anp_IN: Likewise.
18757 * localedata/locales/ar_AE: Likewise.
18758 * localedata/locales/ar_BH: Likewise.
18759 * localedata/locales/ar_DZ: Likewise.
18760 * localedata/locales/ar_EG: Likewise.
18761 * localedata/locales/ar_IN: Likewise.
18762 * localedata/locales/ar_IQ: Likewise.
18763 * localedata/locales/ar_JO: Likewise.
18764 * localedata/locales/ar_KW: Likewise.
18765 * localedata/locales/ar_LB: Likewise.
18766 * localedata/locales/ar_LY: Likewise.
18767 * localedata/locales/ar_MA: Likewise.
18768 * localedata/locales/ar_OM: Likewise.
18769 * localedata/locales/ar_QA: Likewise.
18770 * localedata/locales/ar_SA: Likewise.
18771 * localedata/locales/ar_SD: Likewise.
18772 * localedata/locales/ar_SS: Likewise.
18773 * localedata/locales/ar_SY: Likewise.
18774 * localedata/locales/ar_TN: Likewise.
18775 * localedata/locales/ar_YE: Likewise.
18776 * localedata/locales/as_IN: Likewise.
18777 * localedata/locales/ast_ES: Likewise.
18778 * localedata/locales/ayc_PE: Likewise.
18779 * localedata/locales/az_AZ: Likewise.
18780 * localedata/locales/az_IR: Likewise.
18781 * localedata/locales/be_BY: Likewise.
18782 * localedata/locales/be_BY@latin: Likewise.
18783 * localedata/locales/bem_ZM: Likewise.
18784 * localedata/locales/ber_DZ: Likewise.
18785 * localedata/locales/ber_MA: Likewise.
18786 * localedata/locales/bg_BG: Likewise.
18787 * localedata/locales/bhb_IN: Likewise.
18788 * localedata/locales/bho_IN: Likewise.
18789 * localedata/locales/bi_VU: Likewise.
18790 * localedata/locales/bn_BD: Likewise.
18791 * localedata/locales/bn_IN: Likewise.
18792 * localedata/locales/bo_CN: Likewise.
18793 * localedata/locales/bo_IN: Likewise.
18794 * localedata/locales/br_FR: Likewise.
18795 * localedata/locales/brx_IN: Likewise.
18796 * localedata/locales/bs_BA: Likewise.
18797 * localedata/locales/byn_ER: Likewise.
18798 * localedata/locales/ca_AD: Likewise.
18799 * localedata/locales/ca_ES: Likewise.
18800 * localedata/locales/ca_FR: Likewise.
18801 * localedata/locales/ca_IT: Likewise.
18802 * localedata/locales/ce_RU: Likewise.
18803 * localedata/locales/chr_US: Likewise.
18804 * localedata/locales/cmn_TW: Likewise.
18805 * localedata/locales/crh_UA: Likewise.
18806 * localedata/locales/cs_CZ: Likewise.
18807 * localedata/locales/csb_PL: Likewise.
18808 * localedata/locales/cv_RU: Likewise.
18809 * localedata/locales/cy_GB: Likewise.
18810 * localedata/locales/da_DK: Likewise.
18811 * localedata/locales/de_AT: Likewise.
18812 * localedata/locales/de_BE: Likewise.
18813 * localedata/locales/de_CH: Likewise.
18814 * localedata/locales/de_DE: Likewise.
18815 * localedata/locales/de_IT: Likewise.
18816 * localedata/locales/de_LI: Likewise.
18817 * localedata/locales/de_LU: Likewise.
18818 * localedata/locales/doi_IN: Likewise.
18819 * localedata/locales/dv_MV: Likewise.
18820 * localedata/locales/dz_BT: Likewise.
18821 * localedata/locales/el_CY: Likewise.
18822 * localedata/locales/el_GR: Likewise.
18823 * localedata/locales/en_AG: Likewise.
18824 * localedata/locales/en_AU: Likewise.
18825 * localedata/locales/en_BW: Likewise.
18826 * localedata/locales/en_CA: Likewise.
18827 * localedata/locales/en_DK: Likewise.
18828 * localedata/locales/en_GB: Likewise.
18829 * localedata/locales/en_HK: Likewise.
18830 * localedata/locales/en_IE: Likewise.
18831 * localedata/locales/en_IL: Likewise.
18832 * localedata/locales/en_IN: Likewise.
18833 * localedata/locales/en_NG: Likewise.
18834 * localedata/locales/en_NZ: Likewise.
18835 * localedata/locales/en_PH: Likewise.
18836 * localedata/locales/en_SG: Likewise.
18837 * localedata/locales/en_US: Likewise.
18838 * localedata/locales/en_ZA: Likewise.
18839 * localedata/locales/en_ZM: Likewise.
18840 * localedata/locales/en_ZW: Likewise.
18841 * localedata/locales/eo: Likewise.
18842 * localedata/locales/es_AR: Likewise.
18843 * localedata/locales/es_BO: Likewise.
18844 * localedata/locales/es_CL: Likewise.
18845 * localedata/locales/es_CO: Likewise.
18846 * localedata/locales/es_CR: Likewise.
18847 * localedata/locales/es_CU: Likewise.
18848 * localedata/locales/es_DO: Likewise.
18849 * localedata/locales/es_EC: Likewise.
18850 * localedata/locales/es_ES: Likewise.
18851 * localedata/locales/es_GT: Likewise.
18852 * localedata/locales/es_HN: Likewise.
18853 * localedata/locales/es_MX: Likewise.
18854 * localedata/locales/es_NI: Likewise.
18855 * localedata/locales/es_PA: Likewise.
18856 * localedata/locales/es_PE: Likewise.
18857 * localedata/locales/es_PR: Likewise.
18858 * localedata/locales/es_PY: Likewise.
18859 * localedata/locales/es_SV: Likewise.
18860 * localedata/locales/es_US: Likewise.
18861 * localedata/locales/es_UY: Likewise.
18862 * localedata/locales/es_VE: Likewise.
18863 * localedata/locales/et_EE: Likewise.
18864 * localedata/locales/eu_ES: Likewise.
18865 * localedata/locales/eu_ES@euro: Likewise.
18866 * localedata/locales/fa_IR: Likewise.
18867 * localedata/locales/ff_SN: Likewise.
18868 * localedata/locales/fi_FI: Likewise.
18869 * localedata/locales/fil_PH: Likewise.
18870 * localedata/locales/fo_FO: Likewise.
18871 * localedata/locales/fr_BE: Likewise.
18872 * localedata/locales/fr_CA: Likewise.
18873 * localedata/locales/fr_CH: Likewise.
18874 * localedata/locales/fr_FR: Likewise.
18875 * localedata/locales/fr_LU: Likewise.
18876 * localedata/locales/fur_IT: Likewise.
18877 * localedata/locales/fy_DE: Likewise.
18878 * localedata/locales/fy_NL: Likewise.
18879 * localedata/locales/ga_IE: Likewise.
18880 * localedata/locales/gd_GB: Likewise.
18881 * localedata/locales/gez_ER: Likewise.
18882 * localedata/locales/gez_ET: Likewise.
18883 * localedata/locales/gl_ES: Likewise.
18884 * localedata/locales/gu_IN: Likewise.
18885 * localedata/locales/gv_GB: Likewise.
18886 * localedata/locales/ha_NG: Likewise.
18887 * localedata/locales/hak_TW: Likewise.
18888 * localedata/locales/he_IL: Likewise.
18889 * localedata/locales/hi_IN: Likewise.
18890 * localedata/locales/hif_FJ: Likewise.
18891 * localedata/locales/hne_IN: Likewise.
18892 * localedata/locales/hr_HR: Likewise.
18893 * localedata/locales/hsb_DE: Likewise.
18894 * localedata/locales/ht_HT: Likewise.
18895 * localedata/locales/hu_HU: Likewise.
18896 * localedata/locales/hy_AM: Likewise.
18897 * localedata/locales/i18n: Likewise.
18898 * localedata/locales/ia_FR: Likewise.
18899 * localedata/locales/id_ID: Likewise.
18900 * localedata/locales/ig_NG: Likewise.
18901 * localedata/locales/ik_CA: Likewise.
18902 * localedata/locales/is_IS: Likewise.
18903 * localedata/locales/it_CH: Likewise.
18904 * localedata/locales/it_IT: Likewise.
18905 * localedata/locales/iu_CA: Likewise.
18906 * localedata/locales/ja_JP: Likewise.
18907 * localedata/locales/ka_GE: Likewise.
18908 * localedata/locales/kk_KZ: Likewise.
18909 * localedata/locales/kl_GL: Likewise.
18910 * localedata/locales/kn_IN: Likewise.
18911 * localedata/locales/ko_KR: Likewise.
18912 * localedata/locales/kok_IN: Likewise.
18913 * localedata/locales/ks_IN: Likewise.
18914 * localedata/locales/ks_IN@devanagari: Likewise.
18915 * localedata/locales/ku_TR: Likewise.
18916 * localedata/locales/kw_GB: Likewise.
18917 * localedata/locales/ky_KG: Likewise.
18918 * localedata/locales/lb_LU: Likewise.
18919 * localedata/locales/lg_UG: Likewise.
18920 * localedata/locales/li_BE: Likewise.
18921 * localedata/locales/li_NL: Likewise.
18922 * localedata/locales/lij_IT: Likewise.
18923 * localedata/locales/ln_CD: Likewise.
18924 * localedata/locales/lo_LA: Likewise.
18925 * localedata/locales/lt_LT: Likewise.
18926 * localedata/locales/lv_LV: Likewise.
18927 * localedata/locales/lzh_TW: Likewise.
18928 * localedata/locales/mag_IN: Likewise.
18929 * localedata/locales/mai_IN: Likewise.
18930 * localedata/locales/mg_MG: Likewise.
18931 * localedata/locales/mhr_RU: Likewise.
18932 * localedata/locales/mi_NZ: Likewise.
18933 * localedata/locales/mk_MK: Likewise.
18934 * localedata/locales/ml_IN: Likewise.
18935 * localedata/locales/mn_MN: Likewise.
18936 * localedata/locales/mni_IN: Likewise.
18937 * localedata/locales/mr_IN: Likewise.
18938 * localedata/locales/ms_MY: Likewise.
18939 * localedata/locales/mt_MT: Likewise.
18940 * localedata/locales/my_MM: Likewise.
18941 * localedata/locales/nan_TW: Likewise.
18942 * localedata/locales/nan_TW@latin: Likewise.
18943 * localedata/locales/nb_NO: Likewise.
18944 * localedata/locales/nds_DE: Likewise.
18945 * localedata/locales/nds_NL: Likewise.
18946 * localedata/locales/ne_NP: Likewise.
18947 * localedata/locales/nhn_MX: Likewise.
18948 * localedata/locales/niu_NU: Likewise.
18949 * localedata/locales/niu_NZ: Likewise.
18950 * localedata/locales/nl_AW: Likewise.
18951 * localedata/locales/nl_BE: Likewise.
18952 * localedata/locales/nl_NL: Likewise.
18953 * localedata/locales/nn_NO: Likewise.
18954 * localedata/locales/nr_ZA: Likewise.
18955 * localedata/locales/nso_ZA: Likewise.
18956 * localedata/locales/oc_FR: Likewise.
18957 * localedata/locales/om_ET: Likewise.
18958 * localedata/locales/om_KE: Likewise.
18959 * localedata/locales/or_IN: Likewise.
18960 * localedata/locales/os_RU: Likewise.
18961 * localedata/locales/pa_IN: Likewise.
18962 * localedata/locales/pa_PK: Likewise.
18963 * localedata/locales/pap_AW: Likewise.
18964 * localedata/locales/pap_CW: Likewise.
18965 * localedata/locales/pl_PL: Likewise.
18966 * localedata/locales/ps_AF: Likewise.
18967 * localedata/locales/pt_BR: Likewise.
18968 * localedata/locales/pt_PT: Likewise.
18969 * localedata/locales/quz_PE: Likewise.
18970 * localedata/locales/raj_IN: Likewise.
18971 * localedata/locales/ro_RO: Likewise.
18972 * localedata/locales/ru_RU: Likewise.
18973 * localedata/locales/ru_UA: Likewise.
18974 * localedata/locales/rw_RW: Likewise.
18975 * localedata/locales/sa_IN: Likewise.
18976 * localedata/locales/sat_IN: Likewise.
18977 * localedata/locales/sc_IT: Likewise.
18978 * localedata/locales/sd_IN: Likewise.
18979 * localedata/locales/sd_IN@devanagari: Likewise.
18980 * localedata/locales/se_NO: Likewise.
18981 * localedata/locales/sgs_LT: Likewise.
18982 * localedata/locales/shs_CA: Likewise.
18983 * localedata/locales/si_LK: Likewise.
18984 * localedata/locales/sid_ET: Likewise.
18985 * localedata/locales/sk_SK: Likewise.
18986 * localedata/locales/sl_SI: Likewise.
18987 * localedata/locales/sm_WS: Likewise.
18988 * localedata/locales/so_DJ: Likewise.
18989 * localedata/locales/so_ET: Likewise.
18990 * localedata/locales/so_KE: Likewise.
18991 * localedata/locales/so_SO: Likewise.
18992 * localedata/locales/sq_AL: Likewise.
18993 * localedata/locales/sq_MK: Likewise.
18994 * localedata/locales/sr_ME: Likewise.
18995 * localedata/locales/sr_RS: Likewise.
18996 * localedata/locales/sr_RS@latin: Likewise.
18997 * localedata/locales/ss_ZA: Likewise.
18998 * localedata/locales/st_ZA: Likewise.
18999 * localedata/locales/sv_FI: Likewise.
19000 * localedata/locales/sv_SE: Likewise.
19001 * localedata/locales/sw_KE: Likewise.
19002 * localedata/locales/sw_TZ: Likewise.
19003 * localedata/locales/szl_PL: Likewise.
19004 * localedata/locales/ta_IN: Likewise.
19005 * localedata/locales/ta_LK: Likewise.
19006 * localedata/locales/tcy_IN: Likewise.
19007 * localedata/locales/te_IN: Likewise.
19008 * localedata/locales/tg_TJ: Likewise.
19009 * localedata/locales/th_TH: Likewise.
19010 * localedata/locales/the_NP: Likewise.
19011 * localedata/locales/ti_ER: Likewise.
19012 * localedata/locales/ti_ET: Likewise.
19013 * localedata/locales/tig_ER: Likewise.
19014 * localedata/locales/tk_TM: Likewise.
19015 * localedata/locales/tl_PH: Likewise.
19016 * localedata/locales/tn_ZA: Likewise.
19017 * localedata/locales/to_TO: Likewise.
19018 * localedata/locales/tpi_PG: Likewise.
19019 * localedata/locales/tr_CY: Likewise.
19020 * localedata/locales/tr_TR: Likewise.
19021 * localedata/locales/ts_ZA: Likewise.
19022 * localedata/locales/tt_RU: Likewise.
19023 * localedata/locales/tt_RU@iqtelif: Likewise.
19024 * localedata/locales/ug_CN: Likewise.
19025 * localedata/locales/uk_UA: Likewise.
19026 * localedata/locales/unm_US: Likewise.
19027 * localedata/locales/ur_IN: Likewise.
19028 * localedata/locales/ur_PK: Likewise.
19029 * localedata/locales/uz_UZ: Likewise.
19030 * localedata/locales/uz_UZ@cyrillic: Likewise.
19031 * localedata/locales/ve_ZA: Likewise.
19032 * localedata/locales/vi_VN: Likewise.
19033 * localedata/locales/wa_BE: Likewise.
19034 * localedata/locales/wae_CH: Likewise.
19035 * localedata/locales/wal_ET: Likewise.
19036 * localedata/locales/wo_SN: Likewise.
19037 * localedata/locales/xh_ZA: Likewise.
19038 * localedata/locales/yi_US: Likewise.
19039 * localedata/locales/yo_NG: Likewise.
19040 * localedata/locales/yue_HK: Likewise.
19041 * localedata/locales/yuw_PG: Likewise.
19042 * localedata/locales/zh_CN: Likewise.
19043 * localedata/locales/zh_HK: Likewise.
19044 * localedata/locales/zh_SG: Likewise.
19045 * localedata/locales/zh_TW: Likewise.
19046 * localedata/locales/zu_ZA: Likewise.
19047
190482017-11-13 Florian Weimer <fweimer@redhat.com>
19049
19050 * support/next_to_fault.h, support/next_to_fault.c: New files.
19051 * support/Makefile (libsupport-routines): Add next_to_fault.
19052 * resolv/tst-inet_pton.c (struct next_to_fault)
19053 (next_to_fault_allocate, next_to_fault_free): Remove.
19054 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
19055
190562017-11-13 H.J. Lu <hongjiu.lu@intel.com>
19057
19058 * elf/dl-support.c: Include <dl-procruntime.c>.
19059 * include/link.h: Include <link_map.h>.
19060 * sysdeps/generic/dl-procruntime.c: New file.
19061 * sysdeps/generic/link_map.h: Likewise.
19062 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
19063 the writable ld.so namespace.
19064
190652017-11-12 Paul Eggert <eggert@cs.ucla.edu>
19066
19067 timezone: pacify GCC -Wstringop-truncation
19068 Problem reported by Martin Sebor in:
19069 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
19070 * timezone/zic.c (writezone): Use memcpy, not strncpy.
19071
190722017-11-12 Florian Weimer <fweimer@redhat.com>
19073
19074 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
19075 tst-xreadlink.
19076 (tests): Add tst-xreadlink.
19077 * support/support.h (xstrndup): Declare.
19078 * support/xunistd.h (xunlink, xreadlink): Declare.
19079 * support/temp_file.h (support_create_temp_directory): Declare.
19080 * support/temp_file.c (support_create_temp_directory): New function.
19081 * support/support_chroot.c (support_chroot_create): Use it.
19082 * support/xreadlink.c: New file.
19083 * support/xstrndup.c: Likewise.
19084 * support/xunlink.c: Likewise.
19085 * support/tst-xreadlink.c: Likewise.
19086
190872017-11-11 John David Anglin <danglin@gcc.gnu.org>
19088
19089 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
19090
190912017-11-11 Florian Weimer <fweimer@redhat.com>
19092
19093 [BZ #22409]
19094 [BZ #22412]
19095 * resolv/res_comp.c (printable_string, binary_hnok)
19096 (binary_leading_dash): New functions.
19097 (res_hnok): Reimplement using these functions and ns_name_pton.
19098 (res_ownok): Likewise.
19099 (res_mailok): Reimplement using printable_string, ns_name_pton and
19100 binary_hnok.
19101 (res_dnok): Reimplement using printable_string and ns_name_pton.
19102 * resolv/tst-res_hnok.c (tests): Add additional tests.
19103 (LETTERDIGITS, PRINTABLE): Define.
19104 (do_test): Adjust one_char results.
19105
191062017-11-11 Florian Weimer <fweimer@redhat.com>
19107
19108 [BZ #22413]
19109 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
19110 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
19111
191122017-11-11 Florian Weimer <fweimer@redhat.com>
19113
19114 * resolv/tst-ns_name_pton.c: New file.
19115 * resolv/Makefile (tests): Add tst-ns_name_pton.
19116 (tst-ns_name_pton): Link against libresolv.
19117
191182017-11-11 Florian Weimer <fweimer@redhat.com>
19119
19120 * resolv/tst-res_hnok.c: New file.
19121 * resolv/Makefile (tests): Add tst-res_hnok.
19122 (tst-res_hnok): Link against libresolv.
19123
191242017-11-11 Florian Weimer <fweimer@redhat.com>
19125
19126 * resolv/tst-resolv-network.c: Use test framework instead explicit
19127 main function.
19128
191292017-11-09 H.J. Lu <hongjiu.lu@intel.com>
19130
19131 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
19132 <jmp_buf-macros.h>.
19133 [!_ISOMAC] (STR_HELPER): New.
19134 [!_ISOMAC] (STR): Likewise.
19135 [!_ISOMAC] (TEST_SIZE): Likewise.
19136 [!_ISOMAC] (TEST_ALIGN): Likewise.
19137 [!_ISOMAC] (TEST_OFFSET): Likewise.
19138 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
19139 field offsets of jmp_buf as well as sigjmp_buf.
19140 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
19141 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
19142 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
19143 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
19144 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
19145 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
19146 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
19147 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
19148 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
19149 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
19150 Likewise.
19151 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
19152 Likewise.
19153 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
19154 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
19155 Likewise.
19156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
19157 Likewise.
19158 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
19159 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
19160 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
19161 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
19162 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
19163 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
19164 Likewise.
19165 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
19166 Likewise.
19167 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19168 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
19169 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
19170
191712017-11-07 Joseph Myers <joseph@codesourcery.com>
19172
19173 * include/float.h
19174 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19175 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
19176 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19177 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
19178 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19179 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
19180 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19181 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
19182 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19183 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
19184 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19185 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
19186 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19187 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
19188 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19189 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
19190 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19191 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
19192 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19193 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
19194 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19195 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
19196 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19197 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
19198 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19199 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
19200 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19201 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
19202 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19203 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
19204 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19205 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
19206 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19207 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
19208 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19209 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
19210 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19211 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
19212 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19213 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
19214 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19215 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
19216 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19217 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
19218 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19219 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
19220 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19221 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
19222 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19223 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
19224 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19225 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
19226 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19227 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
19228 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19229 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
19230 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19231 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
19232 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19233 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
19234 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19235 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
19236 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19237 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
19238 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19239 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
19240 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19241 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
19242 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19243 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
19244 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19245 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
19246 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19247 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
19248 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19249 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
19250 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19251 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
19252 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19253 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
19254 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19255 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
19256 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19257 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
19258 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19259 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
19260 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19261 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
19262
19263 * stdlib/tst-strtod.h (F16): New macro.
19264 (F32): Likewise.
19265 (F64): Likewise.
19266 (F32X): Likewise.
19267 (F64X): Likewise.
19268 (F128X): Likewise.
19269 (IF_FLOAT16): Likewise.
19270 (IF_FLOAT32): Likewise.
19271 (IF_FLOAT64): Likewise.
19272 (IF_FLOAT32X): Likewise.
19273 (IF_FLOAT64X): Likewise.
19274 (IF_FLOAT128X): Likewise.
19275 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
19276 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
19277 (STRTOD_TEST_FOREACH): Likewise.
19278 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
19279 (CHOOSE_f64): Likewise.
19280 (CHOOSE_f32x): Likewise.
19281 (CHOOSE_f64x): Likewise.
19282
192832017-11-07 Andreas Schwab <schwab@suse.de>
19284
19285 * nptl/Makefile (tests-internal): Remove tst-typesizes.
19286
192872017-11-07 Mike FABIAN <mfabian@redhat.com>
19288
19289 [BZ #22403]
19290 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
19291 to be escaped.
19292 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
19293 to be escaped.
19294
192952017-11-07 Claude Paroz <claude@2xlibre.net>
19296
19297 [BZ #22403]
19298 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
19299 to be escaped.
19300 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
19301 to be escaped.
19302 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
19303 to be escaped.
19304
193052017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19306
19307 [BZ #22298]
19308 * nptl/allocatestack.c (allocate_stack): Check if
19309 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
19310 __PTHREAD_MUTEX_HAVE_PREV is defined.
19311 * nptl/descr.h (pthread): Likewise.
19312 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
19313 Likewise.
19314 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
19315 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
19316 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
19317 * sysdeps/nptl/bits/thread-shared-types.h
19318 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
19319 defines.
19320 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
19321 of __WORDSIZE for internal layout.
19322 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
19323 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
19324 instead of __WORDSIZE whether to use an union for __spins and __list
19325 fields.
19326 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
19327 case.
19328 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
19329 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
19330 defines.
19331 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
19332 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19333 Likewise.
19334 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
19335 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19336 Likewise.
19337 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
19338 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19339 Likewise.
19340 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
19341 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19342 Likewise.
19343 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
19344 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19345 Likewise.
19346 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
19347 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19348 Likewise.
19349 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
19350 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19351 Likewise.
19352 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
19353 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19354 Likewise.
19355 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
19356 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19357 Likewise.
19358 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
19359 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19360 Likewise.
19361 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
19362 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19363 Likewise.
19364 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
19365 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19366 Likewise.
19367 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
19368 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19369 Likewise.
19370 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
19371 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19372 Likewise.
19373
19374 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
19375 New macros.
19376 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
19377 checks for expected input type size.
19378 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
19379 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
19380 Likewise.
19381 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
19382 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
19383 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
19384 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
19385 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
19386 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
19387 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
19388 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
19389 superflous runtime assert check.
19390 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
19391 Likewise.
19392 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
19393 Likewise.
19394 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
19395 Likewise.
19396 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
19397 Likewise.
19398 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
19399 Likewise.
19400 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
19401 Likewise.
19402 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
19403 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
19404 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
19405 Likewise.
19406 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
19407 Likewise.
19408 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
19409 Likewise.
19410 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
19411 Likewise.
19412 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
19413 Likewise.
19414 * nptl/pthread_attr_setinheritsched.c
19415 (__pthread_attr_setinheritsched): Likewise.
19416 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
19417 Likewise.
19418 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
19419 Likewise.
19420 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
19421 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
19422 __old_pthread_attr_setstack): Likewise.
19423 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
19424 Likewise.
19425 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
19426 Likewise.
19427 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
19428 Likewise.
19429 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
19430 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
19431 Likewise.
19432 * nptl/tst-typesizes.c: Remove file.
19433
19434 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
19435 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
19436 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
19437 checks for internal pthread_mutex_t offsets.
19438 * sysdeps/aarch64/nptl/pthread-offsets.h
19439 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
19440 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
19441 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
19442 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
19443 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
19444 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
19445 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
19446 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
19447 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
19448 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
19449 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
19450 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
19451 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
19452 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
19453 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
19454 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
19455 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
19456 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
19457
194582017-11-07 Florian Weimer <fweimer@redhat.com>
19459
19460 * bits/mman-linux.h: Move ...
19461 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
19462 comment.
19463 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
19464 outdated comment.
19465
194662017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19467
19468 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
19469 Redefine STRNLEN as __strnlen_power8.
19470
194712017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19472
19473 * signal/sighold.c (sighold): Optimize implementation.
19474
19475 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
19476 __NR_rt_sigqueueinfo.
19477
19478 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
19479 __sigtimedwait.
19480 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
19481 assume __NR_rt_sigtimedwait.
19482 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
19483 and add LIBC_CANCEL_HANDLED for cancellation marking.
19484 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
19485
19486 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
19487 (sysdeps_routines): Add memchr_noneon.
19488 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
19489 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
19490 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
19491 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
19492 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
19493 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
19494 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
19495
19496 * sysdeps/arm/arm-ifunc.h: New file.
19497 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
19498 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
19499 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
19500 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
19501 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
19502 (__memcpy_neon): Avoid create hidden alias.
19503 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
19504 (__memcpy_vfp): Likewise.
19505 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
19506 (sysdep_routines): Add memcpy_arm.
19507 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
19508
195092017-11-06 H.J. Lu <hongjiu.lu@intel.com>
19510
19511 [BZ #22362]
19512 * Makerules (make-link-multidir): New.
19513 * config.make.in (multidir): New.
19514 * configure.ac (libc_cv_multidir): New. AC_SUBST.
19515 * configure: Regenerated.
19516 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
19517 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
19518 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
19519 New target.
19520
195212017-11-06 Joseph Myers <joseph@codesourcery.com>
19522
19523 [BZ #22402]
19524 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
19525 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
19526
195272017-11-04 Mike FABIAN <mfabian@redhat.com>
19528
19529 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
19530 to be escaped.
19531
195322017-11-04 Florian Weimer <fweimer@redhat.com>
19533
19534 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
19535
195362017-11-03 Joseph Myers <joseph@codesourcery.com>
19537
19538 * math/math.h [__HAVE_DISTINCT_FLOAT16
19539 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
19540 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
19541 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
19542 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
19543 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
19544 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
19545 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19546 (__MATH_TG_F32): New macro.
19547 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19548 (__MATH_TG_F64X): Likewise.
19549 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19550 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
19551
195522017-11-03 Dmitry V. Levin <ldv@altlinux.org>
19553
19554 * po/de.po: Update translations.
19555 * po/ru.po: Likewise.
19556
195572017-11-03 Florian Weimer <fweimer@redhat.com>
19558
19559 * manual/filesys.texi (Hard Links): Document linkat.
19560
195612017-11-03 Joseph Myers <joseph@codesourcery.com>
19562
19563 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
19564 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
19565 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
19566 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
19567 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
19568 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
19569 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
19570 the same as _Float128.
19571 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
19572 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
19573 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
19574
19575 * stdlib/stdlib.h
19576 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
19577 Declare.
19578 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
19579 Likewise.
19580 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
19581 Likewise.
19582 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19583 (strtof32x): Likewise.
19584 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19585 (strtof64x): Likewise.
19586 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19587 (strtof128x): Likewise.
19588 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19589 (strfromf16): Likewise.
19590 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19591 (strfromf32): Likewise.
19592 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19593 (strfromf64): Likewise.
19594 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19595 (strfromf32x): Likewise.
19596 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19597 (strfromf64x): Likewise.
19598 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19599 (strfromf128x): Likewise.
19600 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
19601 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
19602 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
19603 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
19604 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
19605 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
19606
196072017-11-03 Richard Henderson <rth@twiddle.net>
19608
19609 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
19610
196112017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19612
19613 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
19614
196152017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19616
19617 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
19618 DT_TLSDESC_GOT initialization.
19619 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
19620 (_dl_tlsdesc_resolve_hold): Likewise.
19621 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
19622 (_dl_tlsdesc_resolve_hold): Likewise.
19623 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
19624 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
19625
196262017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19627
19628 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
19629
196302017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19631
19632 [BZ #18572]
19633 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
19634 non-lazily for R_ARM_TLS_DESC.
19635
196362017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19637
19638 [BZ #17078]
19639 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
19640 R_ARM_TLS_DESC case.
19641 (elf_machine_lazy_rel): Remove the prelink check.
19642
196432017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19644
19645 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
19646 DT_TLSDESC_GOT initialization.
19647 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
19648 (_dl_tlsdesc_resolve_rela): Likewise.
19649 (_dl_tlsdesc_resolve_hold): Likewise.
19650 (_dl_tlsdesc_undefweak): Remove ldar.
19651 (_dl_tlsdesc_dynamic): Likewise.
19652 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
19653 (_dl_tlsdesc_resolve_rela): Likewise.
19654 (_dl_tlsdesc_resolve_hold): Likewise.
19655 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
19656 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
19657 (_dl_tlsdesc_resolve_rela): Likewise.
19658 (_dl_tlsdesc_resolve_hold): Likewise.
19659
196602017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19661
19662 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
19663 binding and initialization non-lazily for R_AARCH64_TLSDESC.
19664
196652017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19666
19667 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
19668 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
19669
196702017-11-02 Joseph Myers <joseph@codesourcery.com>
19671
19672 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
19673 Declare.
19674 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
19675 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
19676 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
19677 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
19678 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
19679 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
19680 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
19681 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
19682 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
19683 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
19684 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
19685
196862017-11-02 Mike FABIAN <mfabian@redhat.com>
19687
19688 [BZ #22382]
19689 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
19690 * localedata/locales/tpi_PG: Add standard header.
19691
196922017-11-02 Florian Weimer <fweimer@redhat.com>
19693
19694 test-errno-linux: quotactl can fail with EPERM in containers.
19695 * sysdeps/unix/sysv/linux/test-errno-linux.c
19696 (LIST, LIST_FORWARD): New macros.
19697 (check_error_in_list): New function.
19698 (test_wrp_rv): Accept list of permitted error codes.
19699 (test_wrp_rv2): Remove.
19700 (test_wrp): Call test_wrp_rv with list of error codes.
19701 (test_wrp2): Accept list of error codes.
19702 (do_test): Adjust. Allow EPERM for quotactl.
19703
197042017-11-02 Florian Weimer <fweimer@redhat.com>
19705
19706 * stdio-common/bug16.c (do_test): Use array_length.
19707 * stdio-common/errlist.c (_sys_nerr): Likewise.
19708 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
19709 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
19710 * stdio-common/psiginfo.c (psiginfo): Use array_length.
19711 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
19712 (do_test): Use array_length.
19713 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
19714 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
19715 * stdio-common/tst-printf-round.c (do_test): Likewise.
19716 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
19717 (CHECK): Use array_length.
19718 * stdio-common/tstdiomisc.c (t3, F): Likewise.
19719 * stdio-common/tstscanf.c (main): Likewise.
19720 * stdio-common/vfprintf.c (process_string_arg): Likewise.
19721
197222017-11-02 Florian Weimer <fweimer@redhat.com>
19723
19724 Add array_length and array_end macros.
19725 * include/array_length.h: New file.
19726
197272017-11-02 Florian Weimer <fweimer@redhat.com>
19728
19729 [BZ #22332]
19730 * posix/tst-glob-tilde.c (do_noescape): New variable.
19731 (one_test): Process it.
19732 (do_test): Set do_noescape. Add unescaping test case.
19733
197342017-11-01 Joseph Myers <joseph@codesourcery.com>
19735
19736 * math/complex.h
19737 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
19738 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
19739 with appropriate macros defined and undefined.
19740 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
19741 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19742 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
19743 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19744 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
19745 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19746 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
19747 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19748 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
19749 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19750
19751 * math/complex.h
19752 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
19753 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
19754 that for long double. Do not condition define and undefine of
19755 _Mdouble_complex_ on [__CFLOAT128].
19756
197572017-11-01 H.J. Lu <hongjiu.lu@intel.com>
19758
19759 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
19760 of <sysdeps/generic/sysdep.h>.
19761 (ALIGNARG): Removed.
19762 (ASM_SIZE_DIRECTIVE): Likewise.
19763 (ENTRY): Likewise.
19764 (END): Likewise.
19765 (ENTRY_CHK): Likewise.
19766 (END_CHK): Likewise.
19767 (syscall_error): Likewise.
19768 (mcount): Likewise.
19769 (PSEUDO_END): Likewise.
19770 (L): Likewise.
19771 (atom_text_section): Likewise.
19772 * sysdeps/x86/sysdep.h: New file.
19773 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
19774 of <sysdeps/generic/sysdep.h>.
19775 (ALIGNARG): Removed.
19776 (ASM_SIZE_DIRECTIVE): Likewise.
19777 (ENTRY): Likewise.
19778 (END): Likewise.
19779 (ENTRY_CHK): Likewise.
19780 (END_CHK): Likewise.
19781 (syscall_error): Likewise.
19782 (mcount): Likewise.
19783 (PSEUDO_END): Likewise.
19784 (L): Likewise.
19785 (atom_text_section): Likewise.
19786
197872017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
19788
19789 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
19790 category of LC_CTYPE set to "i18n:2012".
19791 * localedata/locales/i18n_ctype: Regenerate.
19792
197932017-10-31 Yury Norov <ynorov@caviumnetworks.com>
19794
19795 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
19796 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
19797 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
19798 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
19799
19800 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
19801 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
19802 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
19803 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
19804
198052017-10-31 Joseph Myers <joseph@codesourcery.com>
19806
19807 * math/complex.h
19808 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
19809 New macro.
19810 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
19811 Likewise.
19812 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
19813 Likewise.
19814 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19815 (CMPLXF32X): Likewise.
19816 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19817 (CMPLXF64X): Likewise.
19818 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19819 (CMPLXF128X): Likewise.
19820
19821 * math/math.h
19822 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
19823 (__MATH_EVAL_FMT2): Define to add 0.0f.
19824
198252017-10-31 Alan Modra <amodra@gmail.com>
19826
19827 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
19828 include sysdep.h.
19829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
19830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
19831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
19832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
19833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
19834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
19835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
19836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
19837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
19838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
19839 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
19840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
19841 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
19842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
19843 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
19844 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
19845 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
19846 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
19847 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
19848 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
19849 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
19850 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
19851 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
19852 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
19853 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
19854 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
19855 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
19856 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
19857 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
19858 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
19859 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
19860 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
19861 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
19862 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
19863 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
19864 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
19865 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
19866 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
19867 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
19868 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
19869 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
19870 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
19871 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
19872 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
19873 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
19874 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
19875 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
19876 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
19877 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
19878 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
19879 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
19880 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
19881 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
19882 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
19883 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
19884 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
19885 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
19886 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
19887 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
19888 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
19889 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
19890 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
19891 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
19892 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
19893 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
19894 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
19895 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
19896 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
19897 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
19898
19899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
19900 include sysdep.h and math_ldbl_opt.h.
19901
19902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
19903 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
19904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
19905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
19906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
19907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
19908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
19909 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
19910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
19911 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
19912 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
19913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
19914 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
19915 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
19916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
19917 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
19918 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
19919 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
19920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
19921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
19922 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
19923 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
19924 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
19925 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
19926 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
19927 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
19928
199292017-10-31 Alan Modra <amodra@gmail.com>
19930
19931 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
19932 string/strncase_l.c, not string/strncase.c.
19933 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
19934 (libc_hidden_def): Redefine.
19935
199362017-10-31 Alan Modra <amodra@gmail.com>
19937
19938 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
19939 (__STRCMP, STRCMP, __strcasecmp_l): Define.
19940 (__strcasecmp): Don't define.
19941
199422017-10-31 Alan Modra <amodra@gmail.com>
19943
19944 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
19945 IS_IN (libc).
19946 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
19947 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
19948 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
19949
199502017-10-31 Alan Modra <amodra@gmail.com>
19951
19952 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
19953 USE_AS_STPNCPY.
19954
199552017-10-31 Alan Modra <amodra@gmail.com>
19956
19957 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
19958 Redefine only when SHARED.
19959
199602017-10-30 Joseph Myers <joseph@codesourcery.com>
19961
19962 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
19963 Include <bits/math-finite.h> with appropriate macros defined and
19964 undefined.
19965 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
19966 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
19967 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
19968 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
19969 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
19970
19971 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
19972 [!_Mlong_double_] (_Mlong_double_): Likewise.
19973 [!_Mfloat16_] (_Mfloat16_): Likewise.
19974 [!_Mfloat32_] (_Mfloat32_): Likewise.
19975 [!_Mfloat64_] (_Mfloat64_): Likewise.
19976 [!_Mfloat128_] (_Mfloat128_): Likewise.
19977 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
19978 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
19979 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
19980 (_Mdouble_): Define without indirection through those macros.
19981 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
19982 [!_Mfloat128_] (_Mfloat128_): Likewise.
19983 [_Mlong_double_] (_Mlong_double_): Likewise.
19984 (_Mdouble_): Define without indirection through those macros.
19985 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
19986 not add -D_Mlong_double_=double.
19987 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
19988 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
19989
199902017-10-30 H.J. Lu <hongjiu.lu@intel.com>
19991
19992 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
19993
199942017-10-30 H.J. Lu <hongjiu.lu@intel.com>
19995
19996 * sysdeps/x86/libc-start.c: Reformat.
19997
199982017-10-30 H.J. Lu <hongjiu.lu@intel.com>
19999
20000 [BZ #22353]
20001 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
20002 (1): Renamed to ...
20003 (L(Src0)): This.
20004 (L(Src1)): New.
20005 (L(Src2)): Likewise.
20006 (L(1)): Renamed to ...
20007 (L(Src3)): This.
20008
200092017-10-30 Joseph Myers <joseph@codesourcery.com>
20010
20011 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
20012 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
20013 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
20014 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
20015 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
20016 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
20017 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
20018 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
20019 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
20020 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
20021 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
20022 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
20023 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
20024 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
20025 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
20026 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
20027 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
20028 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
20029 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
20030 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
20031 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
20032 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
20033 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
20034 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
20035 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
20036 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
20037 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
20038 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
20039 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
20040 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
20041 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
20042 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
20043 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
20044 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
20045 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
20046 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
20047 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
20048 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
20049 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
20050 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
20051 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
20052 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
20053 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
20054 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
20055 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
20056 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
20057 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
20058 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
20059 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
20060 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
20061 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
20062 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
20063 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
20064 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
20065 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
20066 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
20067 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
20068 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
20069 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
20070 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
20071 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
20072 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
20073 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
20074 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
20075 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
20076 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
20077
200782017-10-30 Florian Weimer <fweimer@redhat.com>
20079
20080 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
20081 always defined.
20082 * io/tst-mkdirat.c (do_test): Likewise.
20083 * io/tst-mkfifoat.c (do_test): Likewise.
20084 * io/tst-mknodat.c (do_test): Likewise.
20085 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
20086 * locale/programs/locale.c (select_dirs): Likewise.
20087 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
20088 * posix/bug-glob2.c (my_readdir): Likewise.
20089 * posix/tst-dir.c (main): Likewise.
20090 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
20091 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
20092
200932017-10-30 Florian Weimer <fweimer@redhat.com>
20094
20095 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
20096 just __USE_GNU.
20097
200982017-10-30 Florian Weimer <fweimer@redhat.com>
20099
20100 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
20101 Convert to support/test-driver.c.
20102 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
20103 New macro parameters.
20104 (PRINTF): Remove macro. Use test_verbose conditionals instead.
20105 * posix/tst-gnuglob.c: New file.
20106 * posix/tst-gnuglob64.c: Likewise.
20107 * posix/Makefile (tests): Add tst-gnuglob64.
20108
201092017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
20110
20111 [BZ #19485]
20112 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
20113 and use a better translation for March in “mon”.
20114 * localedata/locales/csb_PL: Use more ASCII to improve the
20115 readability of the source.
20116
201172017-10-30 Mike FABIAN <mfabian@redhat.com>
20118
20119 [BZ #13953]
20120 * localedata/locales/km_KH: Use ASCII as much
20121 as possible for better readability of the source and
20122 remove useless comments.
20123 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
20124 was commented out and apparently wrong anyway because it was
20125 using Lao characters. If Buddhist era should be used
20126 for km_KH, a native speaker should write the correct formaat
20127 for Khmer.
20128 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
20129 (According to CLDR, the first weekday for Cambodia is Sunday).
20130 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
20131 (These were using Lao characters which must be wrong. If we get
20132 the correct data from a native speaker, we could add it back, until
20133 then it is better not to have name_mr and name_mrs at all than
20134 having it wrong).
20135
201362017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
20137
20138 * locale/loadlocale.c: Correct size of
20139 _nl_value_type_LC_<category> arrays.
20140
201412017-10-27 Joseph Myers <joseph@codesourcery.com>
20142
20143 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
20144 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
20145 with appropriate macros defined and undefined.
20146 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
20147 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
20148 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
20149 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
20150 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
20151
201522017-10-27 H.J. Lu <hongjiu.lu@intel.com>
20153
20154 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20155 "-O2 -march=i586".
20156
201572017-10-27 Mike FABIAN <mfabian@redhat.com>
20158
20159 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
20160 with lowercase letters to make it agree with CLDR.
20161
201622017-10-27 Mike FABIAN <mfabian@redhat.com>
20163
20164 [BZ #15260]
20165 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
20166 first letters of yesstr and nostr in yesexpr and noexpr,
20167 not for the full words.
20168 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
20169 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
20170 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
20171 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
20172 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
20173 first letters of yesstr and nostr in yesexpr and noexpr,
20174 until now only English was matched in yesexpr and noexpr.
20175 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
20176 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
20177 fil but not for tl. As tl and fil are very similar, using fil
20178 is probably better than using English.
20179
201802017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
20181
20182 [BZ #21706]
20183 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
20184 in yesstr and nostr.
20185
201862017-10-26 Joseph Myers <joseph@codesourcery.com>
20187
20188 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20189 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
20190 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
20191 Likewise.
20192 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
20193 Likewise.
20194 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
20195 Likewise.
20196 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
20197 Likewise.
20198 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20199 (SNANF128X): Likewise.
20200
20201 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20202 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
20203 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20204 (HUGE_VAL_F32): Likewise.
20205 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20206 (HUGE_VAL_F64): Likewise.
20207 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20208 (HUGE_VAL_F32X): Likewise.
20209 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20210 (HUGE_VAL_F64X): Likewise.
20211 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20212 (HUGE_VAL_F128X): Likewise.
20213
202142017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20215
20216 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
20217 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
20218 for the br_FR locale.
20219
202202017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20221
20222 [BZ #21706]
20223 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
20224
202252017-10-25 Carlos O'Donell <carlos@redhat.com>
20226
20227 * locale/programs/record-status.h: Define globals, and function
20228 prototypes. Move function bodies...
20229 * locale/programs/record-status.c: ... to here. New file.
20230 * iconv/Makefile (iconv_prog-modules): Add record-status.
20231 * locale/Makefile (lib-modules): Likewise.
20232 * iconv/iconv_prog.c: Remove verbose.
20233 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
20234 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
20235 record a warning about ASCII compatibility.
20236 * locale/programs/ld-monetary.c (monetary_finish): If
20237 warn_int_curr_symbol is true then record a warning about the symbol
20238 not being in our ISO 4217 list.
20239 * locale/programs/locale.c: Include record-status.h. Remove verbose.
20240 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
20241 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
20242 (OPT_NO_WARN): Define.
20243 (OPT_WARN): Define.
20244 (options): Add entry for --no-warnings, and --warnings.
20245 (set_warnings): New function to enable/disable warnings.
20246 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
20247 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
20248 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
20249 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
20250 Pass flags to generate_locale.
20251 (generate_locale): Accept new flag argument and pass it to localedef
20252 invocation.
20253 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
20254 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
20255
20256 * localedata/Makefile (test-input-data): Use full file name.
20257 * localedata/da_DK.in: Rename to...
20258 * localedata/da_DK.ISO-8859-1.in: ...this.
20259 * localedata/de_DE.in: Rename to...
20260 * localedata/de_DE.ISO-8859-1.in: ...this.
20261 * localedata/en_US.in: Rename to...
20262 * localedata/en_US.ISO-8859-1.in: ...this.
20263 * localedata/fr_FR.in: Rename to...
20264 * localedata/fr_FR.UTF-8.in: ... this.
20265 * localedata/hr_HR.in: Rename to...
20266 * localedata/hr_HR.ISO-8859-2.in: ...this.
20267 * localedata/hu_HU.in: Rename to...
20268 * localedata/hu_HU.UTF-8.in: ...this.
20269 * localedata/si_LK.in: Rename to...
20270 * localedata/si_LK.UTF-8.in: ...this.
20271 * localedata/sv_SE.in: Rename to...
20272 * localedata/sv_SE.ISO-8859-1.in: ...this.
20273 * localedata/tr_TR.in: Rename to...
20274 * localedata/tr_TR.UTF-8.in: ...this.
20275 * localedata/uk_UA.in: Rename to...
20276 * localedata/uk_UA.UTF-8.in: ...this.
20277 * localedata/sort-test.sh: Test file is locale name with the
20278 suffix.
20279
20280 * localedata/unicode-gen/Makefile (check_i18n): Rename to
20281 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
20282 file.
20283 * localedata/locales/i18n_ctype: Regenerate.
20284 * localedata/locales/tr_TR: Likewise.
20285 * localedata/locales/translit_circle: Likewise.
20286 * localedata/locales/translit_cjk_compat: Likewise.
20287 * localedata/locales/translit_combining: Likewise.
20288 * localedata/locales/translit_compat: Likewise.
20289 * localedata/locales/translit_font: Likewise.
20290 * localedata/locales/translit_fraction: Likewise.
20291
202922017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20293
20294 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
20295 lxvd2x/stxvd2x with lvx/stvx.
20296 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
20297
202982017-10-25 H.J. Lu <hongjiu.lu@intel.com>
20299
20300 * include/alloc_buffer.h: Replace "if if " with "if " in
20301 comments.
20302 * sysdeps/mips/memcpy.S: Likkewise.
20303 * sysdeps/mips/memset.S: Likewise.
20304 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
20305 Likewise.
20306 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
20307 Likewise.
20308 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
20309 Likewise.
20310
203112017-10-25 Mike FABIAN <mfabian@redhat.com>
20312
20313 [BZ #15261]
20314 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
20315 yesexpr and noexpr.
20316 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
20317 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
20318 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
20319 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
20320 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
20321 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
20322 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
20323
203242017-10-25 Mike FABIAN <mfabian@redhat.com>
20325
20326 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
20327 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
20328 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
20329 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
20330 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
20331 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
20332 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
20333 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
20334 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
20335 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
20336 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
20337 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
20338
203392017-10-25 Mike FABIAN <mfabian@redhat.com>
20340
20341 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
20342 as possible for better readability of the source.
20343 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
20344 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
20345 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
20346 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
20347 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
20348 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
20349 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
20350 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
20351 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
20352 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
20353 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
20354 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
20355 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
20356 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
20357 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
20358 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
20359 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
20360 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
20361 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
20362 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
20363 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
20364 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
20365 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
20366 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
20367 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
20368 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
20369 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
20370 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
20371 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
20372 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
20373 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
20374 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
20375 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
20376 * localedata/locales/en_US (LC_MESSAGES): Likewise.
20377 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
20378 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
20379 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
20380 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
20381 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
20382 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
20383 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
20384 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
20385 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
20386 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
20387 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
20388 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
20389 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
20390 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
20391 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
20392 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
20393 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
20394 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
20395 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
20396 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
20397 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
20398 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
20399 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
20400 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
20401 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
20402 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
20403 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
20404 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
20405 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
20406 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
20407 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
20408 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
20409 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
20410 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
20411 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
20412 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
20413 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
20414 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
20415 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
20416 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
20417 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
20418 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
20419 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
20420 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
20421 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
20422 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
20423 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
20424 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
20425 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
20426 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
20427 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
20428 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
20429 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
20430 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
20431 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
20432 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
20433 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
20434 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
20435 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
20436 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
20437 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
20438 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
20439 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
20440 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
20441 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
20442 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
20443 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
20444 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
20445 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
20446 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
20447 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
20448 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
20449 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
20450 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
20451 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
20452 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
20453 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
20454 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
20455 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
20456 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
20457 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
20458 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
20459 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
20460 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
20461 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
20462 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
20463 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
20464 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
20465 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
20466 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
20467 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
20468 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
20469 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
20470 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
20471 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
20472 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
20473 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
20474 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
20475 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
20476 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
20477 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
20478 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
20479 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
20480 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
20481 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
20482 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
20483 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
20484 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
20485 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
20486 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
20487 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
20488 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
20489 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
20490 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
20491 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
20492 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
20493 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
20494 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
20495 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
20496 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
20497 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
20498 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
20499 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
20500 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
20501 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
20502 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
20503 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
20504 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
20505 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
20506 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
20507 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
20508 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
20509 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
20510 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
20511 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
20512 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
20513 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
20514 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
20515 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
20516 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
20517
205182017-10-25 Mike FABIAN <mfabian@redhat.com>
20519
20520 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
20521 (Use first letters of yesstr and nostr correctly instead of using
20522 full words).
20523
205242017-10-25 Mike FABIAN <mfabian@redhat.com>
20525
20526 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
20527 (Use first letters of yesstr and nostr correctly).
20528
205292017-10-25 Mike FABIAN <mfabian@redhat.com>
20530
20531 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
20532 also check for the first characters of yesstr and nostr.
20533 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
20534 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
20535
205362017-10-25 Mike FABIAN <mfabian@redhat.com>
20537
20538 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
20539 also check for Chinese characters.
20540
205412017-10-25 Mike FABIAN <mfabian@redhat.com>
20542
20543 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
20544 match also for the contents of yesstr and nostr. As the first letter
20545 of yesstr and nostr is equal, checking only for the first letter
20546 is not enough.
20547
205482017-10-25 Mike FABIAN <mfabian@redhat.com>
20549
20550 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
20551 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
20552
205532017-10-25 Mike FABIAN <mfabian@redhat.com>
20554
20555 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
20556 of main contributor.
20557
205582017-10-25 Mike FABIAN <mfabian@redhat.com>
20559
20560 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
20561 instead of using English.
20562
205632017-10-25 Mike FABIAN <mfabian@redhat.com>
20564
20565 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
20566 by including the first letters of nostr and yesexpr in the regexp.
20567 Also make it more readable by using ASCII where possible.
20568
205692017-10-25 Mike FABIAN <mfabian@redhat.com>
20570
20571 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
20572 the first letter of nostr in the regexp. It agrees with CLDR now.
20573 Also make it more readable by using ASCII where possible.
20574
205752017-10-24 Mike FABIAN <mfabian@redhat.com>
20576
20577 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
20578 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
20579 these strings contain a U+17D6 (which somewhat looks like a colon)
20580 instead of a real colon to separate the full words for “yes”
20581 and “no” from the single letter responses.
20582
205832017-10-24 Mike FABIAN <mfabian@redhat.com>
20584
20585 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
20586 it agree with CLDR (include the first letter of yesstr).
20587 Also make it more readable by using ASCII where possible.
20588
205892017-10-24 Mike FABIAN <mfabian@redhat.com>
20590
20591 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
20592 and improve yesexpr and noexpr. The yesstr and nostr apparently
20593 came from CLDR. And CLDR has a bug there: these strings contain
20594 a U+0903 (which looks like a colon) instead of a real colon
20595 to separate the full words for “yes” and “no” from the single
20596 letter responses.
20597
205982017-10-24 Mike FABIAN <mfabian@redhat.com>
20599
20600 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
20601 letters of the full yesstr and nostr in yesexpr and noexpr.
20602
206032017-10-24 Mike FABIAN <mfabian@redhat.com>
20604
20605 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
20606 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
20607 * localedata/locales/an_ES: Make source more readable by using ASCII
20608 where possible.
20609
206102017-10-24 Mike FABIAN <mfabian@redhat.com>
20611
20612 [BZ #20952]
20613 * localedata/locales/yuw_PG: New file.
20614 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
20615 * locale/iso-639.def: Add Yau (Uruwa).
20616
206172017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
20618
20619 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
20620
206212017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
20622
20623 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
20624 (__libc_realloc): Likewise.
20625 (_mid_memalign): Likewise.
20626 (__libc_calloc): Likewise.
20627
206282017-10-23 Mike FABIAN <mfabian@redhat.com>
20629
20630 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
20631 by adding the generic +1 and -0 as in all other locales.
20632 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
20633 day names and make it more readable by using ASCII where possible.
20634
206352017-10-24 Joseph Myers <joseph@codesourcery.com>
20636
20637 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
20638 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
20639
206402017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20641
20642 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
20643 WNOHANG in waitpid call.
20644
206452017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
20646
20647 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
20648 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
20649
20650 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
20651 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
20652 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
20653 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
20654 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
20655 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
20656 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
20657 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
20658 variables.
20659
206602017-10-23 Michael Collison <michael.collison@arm.com>
20661
20662 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
20663 with __builtin_sqrt.
20664 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
20665 with __builtin_sqrtf.
20666 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
20667 with __builtin_ceil.
20668 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
20669 with __builtin_ceilf.
20670 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
20671 with __builtin_floor.
20672 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
20673 with __builtin_floorf.
20674 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
20675 with __builtin_fma.
20676 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
20677 with __builtin_fmaf.
20678 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
20679 with __builtin_fmax.
20680 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
20681 with __builtin_fmaxf.
20682 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
20683 with __builtin_fmin.
20684 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
20685 with __builtin_fminf.
20686 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
20687 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
20688 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
20689 with builtin_rint and conversion to int.
20690 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
20691 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
20692 with builtin_llround.
20693 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
20694 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
20695 with builtin_rint and conversion to long int.
20696 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
20697 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
20698 with builtin_lround.
20699 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
20700 with builtin_lroundf.
20701 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
20702 statements with __builtin_nearbyint.
20703 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
20704 statements with __builtin_nearbyintf.
20705 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
20706 with __builtin_rint.
20707 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
20708 with __builtin_rintf.
20709 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
20710 with __builtin_round.
20711 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
20712 with __builtin_roundf.
20713 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
20714 with __builtin_trunc.
20715 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
20716 with __builtin_truncf.
20717 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
20718 and s_l[l]round[f].c too.
20719
207202017-10-23 Alan Modra <amodra@gmail.com>
20721
20722 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
20723 Adjust stack after restoring regs. Add missing LR cfi_restore.
20724
207252017-10-23 Alan Modra <amodra@gmail.com>
20726
20727 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
20728 Move LR save and frame setup/teardown and LR restore to
20729 immediately around memset call. Provide cfi.
20730
207312017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20732
20733 * sysdeps/i386/fpu/e_powf.S: Removed.
20734 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
20735 * sysdeps/i386/fpu/w_powf.c: Likewise.
20736 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
20737 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20738 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20739 Add e_powf-sse2.
20740 (CFLAGS-e_powf-sse2.c): New.
20741 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
20742 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
20743
207442017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20745
20746 * sysdeps/i386/fpu/e_log2f.S: Removed.
20747 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
20748 * sysdeps/i386/fpu/w_log2f.c: Likewise.
20749 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
20750 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20751 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20752 Add e_log2f-sse2.
20753 (CFLAGS-e_log2f-sse2.c): New.
20754 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
20755 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
20756
207572017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20758
20759 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20760 Add e_powf-fma.
20761 (CFLAGS-e_powf-fma.c): New.
20762 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
20763 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
20764
207652017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20766
20767 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20768 Add e_log2f-fma.
20769 (CFLAGS-e_log2f-fma.c): New.
20770 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
20771 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
20772
207732017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20774
20775 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20776 Add e_logf-fma.
20777 (CFLAGS-e_logf-fma.c): New.
20778 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
20779 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
20780
207812017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20782
20783 * sysdeps/i386/fpu/e_logf.S: Removed.
20784 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
20785 * sysdeps/i386/fpu/w_logf.c: Likewise.
20786 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
20787 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
20788 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20789 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20790 Add e_logf-sse2.
20791 (CFLAGS-e_logf-sse2.c): New.
20792 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
20793 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
20794
207952017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20796
20797 * sysdeps/i386/fpu/e_exp2f.S: Removed.
20798 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
20799 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
20800 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20801 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20802 Add e_exp2f-sse2.
20803 (CFLAGS-e_exp2f-sse2.c): New.
20804 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
20805 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
20806
208072017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20808
20809 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20810 Add e_exp2f-fma.
20811 (CFLAGS-e_exp2f-fma.c): New.
20812 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
20813 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
20814
208152017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20816
20817 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
20818 * sysdeps/i386/fpu/e_expf.S: Likewise.
20819 * sysdeps/i386/fpu/math_errf.c: Likewise.
20820 * sysdeps/i386/fpu/w_expf.c: Likewise.
20821 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
20822 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20823 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
20824 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
20825 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20826 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20827 Remove e_expf-ia32.
20828 (CFLAGS-e_expf-sse2.c): New.
20829 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
20830 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
20831
208322017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20833
20834 * sysdeps/x86_64/fpu/e_expf.S: Removed.
20835 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
20836 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
20837 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
20838 e_expf.c.
20839 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
20840 New.
20841 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
20842 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
20843 Renamed to ...
20844 (__redirect_expf): This.
20845 (SYMBOL_NAME): Changed to expf.
20846 (__ieee754_expf): Renamed to ...
20847 (__expf): This.
20848 (__GI___expf): This.
20849 (__ieee754_expf): Add strong_alias.
20850 (__expf_finite): Likewise.
20851 (__expf): New.
20852 Include <sysdeps/ieee754/flt-32/e_expf.c>.
20853
208542017-10-22 Paul Eggert <eggert@cs.ucla.edu>
20855
20856 [BZ #22332]
20857 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
20858 unescaping.
20859
208602017-10-21 Florian Weimer <fweimer@redhat.com>
20861
20862 * posix/Makefile (tests): Add tst-glob-tilde.
20863 (tests-special): Add tst-glob-tilde-mem.out
20864 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
20865 (tst-glob-tilde-mem.out): Add mtrace check.
20866 * posix/tst-glob-tilde.c: New file.
20867
208682017-10-20 Joseph Myers <joseph@codesourcery.com>
20869
20870 * bits/floatn-common.h: New file.
20871 * math/Makefile (headers): Add bits/floatn-common.h.
20872 * bits/floatn.h: Include <bits/floatn-common.h>.
20873 * sysdeps/ia64/bits/floatn.h: Likewise.
20874 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
20875 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
20876 * sysdeps/powerpc/bits/floatn.h: Likewise.
20877 * sysdeps/x86/bits/floatn.h: Likewise.
20878
208792017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20880
20881 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
20882 indicates whether compiler emits an warning for alias for
20883 functions with incompatible types.
20884
20885 [BZ #22273]
20886 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
20887 the auxiliary process is terminated by a signal before calling _exit
20888 or execve.
20889
208902017-10-20 H.J. Lu <hongjiu.lu@intel.com>
20891
20892 [BZ #21265]
20893 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
20894 New.
20895 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
20896 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
20897 and bit_arch_XSAVEC_Usable if needed.
20898 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
20899 and bit_arch_Use_dl_runtime_resolve_opt.
20900 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
20901 Removed.
20902 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
20903 (bit_arch_Prefer_No_AVX512): Updated.
20904 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
20905 (bit_arch_XSAVEC_Usable): New.
20906 (STATE_SAVE_OFFSET): Likewise.
20907 (STATE_SAVE_MASK): Likewise.
20908 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
20909 (cpu_features): Add xsave_state_size and xsave_state_full_size.
20910 (index_arch_Use_dl_runtime_resolve_opt): Removed.
20911 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
20912 (index_arch_XSAVEC_Usable): New.
20913 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
20914 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
20915 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
20916 is enabled.
20917 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
20918 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
20919 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
20920 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
20921 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
20922 _dl_runtime_resolve_xsavec.
20923 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
20924 Removed.
20925 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
20926 instead of VEC_SIZE.
20927 (REGISTER_SAVE_BND0): Removed.
20928 (REGISTER_SAVE_BND1): Likewise.
20929 (REGISTER_SAVE_BND3): Likewise.
20930 (REGISTER_SAVE_RAX): Always defined to 0.
20931 (VMOV): Removed.
20932 (_dl_runtime_resolve_avx): Likewise.
20933 (_dl_runtime_resolve_avx_slow): Likewise.
20934 (_dl_runtime_resolve_avx_opt): Likewise.
20935 (_dl_runtime_resolve_avx512): Likewise.
20936 (_dl_runtime_resolve_avx512_opt): Likewise.
20937 (_dl_runtime_resolve_sse): Likewise.
20938 (_dl_runtime_resolve_sse_vex): Likewise.
20939 (USE_FXSAVE): New.
20940 (_dl_runtime_resolve_fxsave): Likewise.
20941 (USE_XSAVE): Likewise.
20942 (_dl_runtime_resolve_xsave): Likewise.
20943 (USE_XSAVEC): Likewise.
20944 (_dl_runtime_resolve_xsavec): Likewise.
20945 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
20946 Removed.
20947 (_dl_runtime_resolve_avx512_opt): Likewise.
20948 (_dl_runtime_resolve_avx): Likewise.
20949 (_dl_runtime_resolve_avx_opt): Likewise.
20950 (_dl_runtime_resolve_sse): Likewise.
20951 (_dl_runtime_resolve_sse_vex): Likewise.
20952 (_dl_runtime_resolve_fxsave): New.
20953 (_dl_runtime_resolve_xsave): Likewise.
20954 (_dl_runtime_resolve_xsavec): Likewise.
20955
209562017-10-20 Paul Eggert <eggert@cs.ucla.edu>
20957
20958 [BZ #22320]
20959 CVE-2017-15670
20960 * posix/glob.c (__glob): Fix one-byte overflow.
20961
209622017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
20963
20964 * malloc/malloc.c (sysdep-cancel.h): Add include.
20965
209662017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
20967
20968 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
20969
209702017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
20971
20972 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
20973 (tests): Remove $(objpfx)ga_test depdendency.
20974 * resolv/ga_test.c: Remove file.
20975
209762017-10-20 Mike FABIAN <mfabian@redhat.com>
20977
20978 [BZ #18812]
20979 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
20980 * localedata/locales/kab_DZ: New file.
20981
209822017-10-20 H.J. Lu <hongjiu.lu@intel.com>
20983
20984 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
20985 _dl_relocate_static_pie instead of _dl_start to compute load
20986 address in static PIE.
20987
209882017-10-20 H.J. Lu <hongjiu.lu@intel.com>
20989
20990 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
20991
209922017-10-20 Mike FABIAN <mfabian@redhat.com>
20993
20994 [BZ #13605]
20995 * localedata/SUPPORTED: Add shn_MM/UTF-8.
20996 * localedata/locales/shn_MM: New file.
20997
209982017-10-20 Florian Weimer <fweimer@redhat.com>
20999
21000 [BZ #22321]
21001 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
21002 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
21003 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
21004 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
21005 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
21006 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
21007
210082017-10-19 H.J. Lu <hongjiu.lu@intel.com>
21009
21010 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
21011
210122017-10-19 Joseph Myers <joseph@codesourcery.com>
21013
21014 * sysdeps/mips/ieee754/bits/floatn.h: New file.
21015
21016 [BZ #22322]
21017 * sysdeps/mips/bits/long-double.h: Move to ....
21018 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
21019
210202017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
21021
21022 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
21023
210242017-10-19 Valery Reznic <valery_reznic@yahoo.com>
21025 H.J. Lu <hongjiu.lu@intel.com>
21026
21027 [BZ #22299]
21028 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
21029 GLRO(dl_platform) to NULL.
21030 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
21031 (modules-names): Add tst-platformmod-1 and
21032 x86_64/tst-platformmod-2.
21033 (CFLAGS-tst-platform-1.c): New.
21034 (CFLAGS-tst-platformmod-1.c): Likewise.
21035 (CFLAGS-tst-platformmod-2.c): Likewise.
21036 (LDFLAGS-tst-platformmod-2.so): Likewise.
21037 ($(objpfx)tst-platform-1): Likewise.
21038 ($(objpfx)tst-platform-1.out): Likewise.
21039 (tst-platform-1-ENV): Likewise.
21040 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
21041 * sysdeps/x86_64/tst-platform-1.c: New file.
21042 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
21043 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
21044
210452017-10-19 Mike FABIAN <mfabian@redhat.com>
21046
21047 [BZ #13994]
21048 * locale/iso-639.def: Add Karbi.
21049 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
21050 * localedata/locales/mjw_IN: New file.
21051
210522017-10-18 Joseph Myers <joseph@codesourcery.com>
21053
21054 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
21055 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
21056 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
21057 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
21058 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
21059 (libm_alias_ldouble_other_r): Also create _Float128 alias.
21060 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
21061 <bits/floatn.h>.
21062 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
21063 (libm_alias_ldouble_other_r): Also create _Float128 alias.
21064 * manual/math.texi (Mathematics): Document additional architecture
21065 support for _Float128.
21066 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21067 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21068 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21069 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21070 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21071 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21072 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21073 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21074 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21075 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21076 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21077 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21078 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21079 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21080 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21081
210822017-10-18 Renlin Li <renlin.li@arm.com>
21083
21084 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
21085 _DYNAMIC symbol to calculate load address.
21086
210872017-10-18 Paul A. Clarke <pc@us.ibm.com>
21088
21089 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
21090 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
21091 summary bits.
21092 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
21093 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
21094
210952017-10-18 Mike FABIAN <mfabian@redhat.com>
21096
21097 [BZ #16777]
21098 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
21099 and improve readability by using more ASCII.
21100 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
21101 and improve readability by using more ASCII.
21102
211032017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
21104
21105 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
21106 not all targets support atomics on bool.
21107
211082017-10-17 Joseph Myers <joseph@codesourcery.com>
21109
21110 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
21111 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
21112 __f128.
21113 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21114 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
21115 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21116 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
21117 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21118 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
21119
211202017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21121
21122 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
21123 defines.
21124
211252017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21126
21127 [BZ #22159]
21128 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
21129 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
21130 (do_check_remalloced_chunk): Fix build bug.
21131 (do_check_malloc_state): Add assert that checks arena->top.
21132 (malloc_consolidate): Remove initialization.
21133 (int_mallinfo): Remove call to malloc_consolidate.
21134 (__libc_mallopt): Clarify why malloc_consolidate is needed.
21135
211362017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21137
21138 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
21139 (have_fastchunks): Remove.
21140 (clear_fastchunks): Remove.
21141 (set_fastchunks): Remove.
21142 (malloc_state): Add have_fastchunks.
21143 (malloc_init_state): Use have_fastchunks.
21144 (do_check_malloc_state): Remove incorrect invariant checks.
21145 (_int_malloc): Use have_fastchunks.
21146 (_int_free): Likewise.
21147 (malloc_consolidate): Likewise.
21148
211492017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21150
21151 * malloc/malloc.c (tcache_put): Inline.
21152 (tcache_get): Inline.
21153
211542017-10-17 Jordi Mallach <jordi@gnu.org>
21155
21156 Aurelien Jarno <aurelien@aurel32.net>
21157 [BZ #2522]
21158 * localedata/locales/ca_ES@valencia: New file.
21159 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
21160
211612017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
21162
21163 [BZ #22296]
21164 * math/math.h: Let signbit use the builtin in C++ mode with gcc
21165 < 6.x
21166
211672017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21168
21169 * scripts/build-many-glibcs.py (Context.add_all_configs):
21170 Add arm-linux-gnueabihf multiarch extra_glibcs.
21171
21172 * sysdeps/generic/ifunc-init.h: New file.
21173 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
21174
211752017-10-17 Mike FABIAN <mfabian@redhat.com>
21176
21177 [BZ #22019]
21178 * localedata/locales/el_GR: Set n_cs_precedes to 0.
21179 * localedata/locales/el_CY: copy "el_GR" because it is identical.
21180 * stdlib/tst-strfmon_l.c: adapt test case.
21181
211822017-10-16 Joseph Myers <joseph@codesourcery.com>
21183
21184 * sysdeps/generic/float128-abi.h: New file.
21185 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
21186 non-__prefixed symbols to ....
21187 * math/Versions: ... here. Include <float128-abi.h>.
21188 * stdlib/Versions ... and here. Include <float128-abi.h>
21189
211902017-10-16 Florian Weimer <fweimer@redhat.com>
21191
21192 * version.h (VERSION): Switch to ".9000" as the development
21193 version suffix.
21194
211952017-10-16 Florian Weimer <fweimer@redhat.com>
21196
21197 [BZ #22050]
21198 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
21199 compat_symbol_reference to access non-default version.
21200
212012017-10-16 Florian Weimer <fweimer@redhat.com>
21202
21203 * malloc/Makefile (others-extras): Set to mcheck-init.o.
21204
212052017-10-16 Carlos O'Donell <carlos@redhat.com>
21206
21207 * include/shlib-compat.h (compat_symbol_reference): Update
21208 comment.
21209
212102017-10-16 Joseph Myers <joseph@codesourcery.com>
21211
21212 * math/Makefile (test-types): Add
21213 $(type-float128-$(float128-alias-fcts)).
21214 * math/test-float128.h (TYPE_STR): Define conditional on
21215 [FLT128_MANT_DIG == LDBL_MANT_DIG].
21216 (ULP_IDX): Likewise.
21217 (ULP_I_IDX): Likewise.
21218
21219 * stdlib/strtold.c: Include <bits/floatn.h>
21220 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
21221 and later undefine as macro. Define as weak alias if
21222 [!USE_WIDE_CHAR].
21223 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
21224 and later undefine as macro. Define as weak alias if
21225 [USE_WIDE_CHAR].
21226 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
21227 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
21228 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21229 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21230 Define and later undefine as macro. Define as weak alias if
21231 [USE_WIDE_CHAR].
21232 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
21233 <bits/floatn.h>.
21234 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
21235 Define and later undefine as macro. Define as weak alias if
21236 [!USE_WIDE_CHAR].
21237 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21238 Define and later undefine as macro. Define as weak alias if
21239 [USE_WIDE_CHAR].
21240
212412017-10-15 Carlos O'Donell <carlos@redhat.com>
21242
21243 * localedata/collate-test.c (allocate_arrays): Don't use \n in
21244 record_verbose messages.
21245
212462017-10-15 H.J. Lu <hongjiu.lu@intel.com>
21247
21248 [BZ #22052]
21249 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
21250 to silence -O3 -Wall warning with GCC 7.
21251
212522017-10-14 H.J. Lu <hongjiu.lu@intel.com>
21253
21254 * Makeconfig (+link-static-before-libc): Use the first of
21255 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
21256 * gmon/Makefile (tests): Add tst-gmon-static.
21257 (tests-static): Likewise.
21258 (CFLAGS-tst-gmon-static.c): New.
21259 (CRT-tst-gmon-static): Likewise.
21260 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
21261 (tst-gmon-static-ENV): Likewise.
21262 (tests-special): Likewise.
21263 ($(objpfx)tst-gmon-static.out): Likewise.
21264 (clean-tst-gmon-static-data): Likewise.
21265 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
21266 * gmon/tst-gmon-static-gprof.sh: New file.
21267 * gmon/tst-gmon-static.c: Likewise.
21268
212692017-10-13 Carlos O'Donell <carlos@redhat.com>
21270
21271 [BZ #22295]
21272 * locale/programs/linereader.c (get_string): Don't warn on
21273 non-symbolic character.
21274
21275 [BZ #22294]
21276 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
21277 int_curr_symbol.
21278
21279 [BZ #22292]
21280 * locale/programs/record-status.h: New file
21281 * locale/programs/locale.c: Add comment.
21282 * locale/programs/charmap-dir.c: Don't include error.h.
21283 (charmap_opendir): Use record_error.
21284 * locale/programs/charmap.c: Don't include error.h.
21285 (charmap_read): Use record_error, and record_warning.
21286 (parse_charmap): Likewise.
21287 * locale/programs/ld-address.c: Don't include error.h.
21288 (address_finish): Use record_error, and record_warning.
21289 * locale/programs/ld-collate.c: Don't include error.h.
21290 (collate_finish): Use record_error, and record_error_at_line.
21291 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
21292 (ctype_class_new): Likewise.
21293 (ctype_map_new): Likewise.
21294 (set_one_default): Likewise.
21295 (set_class_defaults): Likewise.
21296 (translit_flatten): Likewise.
21297 (allocate_arrays): Use record_error, and record_verbose.
21298 * locale/programs/ld-identification.c: Don't include error.h.
21299 (indentation_finish): Use record_error and record_warning.
21300 * locale/programs/ld-measurement.c: Don't include error.h.
21301 (measurement_finish): Use record_error.
21302 * locale/programs/ld-messages.c
21303 (message_finish): Likewise.
21304 * locale/programs/ld-monetary.c
21305 (monetary_finish): Likewise.
21306 * locale/programs/ld-name.c (name_finish): Use record_error
21307 and record_warning.
21308 * locale/programs/ld-numeric.c
21309 (numeric_finish): Use record_error.
21310 * locale/programs/ld-paper.c: Don't include error.h.
21311 (paper_finish): Use record_error.
21312 * locale/programs/ld-telephone.c: Don't include error.h.
21313 (telephone_finish): Use record_error.
21314 * locale/programs/ld-time.c (time_finish): Likewise.
21315 * locale/programs/linereader.h (lr_error): Make inline func.
21316 * locale/programs/localedef.c: Define recorded_warning_count,
21317 and recorded_error_count.
21318 (main): Use record_error. Use recorded_error_count and
21319 recorded_warning_count to issue correct error returns.
21320 (add_to_readlist): Use record_error.
21321 (find_locale): Likewise.
21322 (load_locale): Likewise.
21323 * locale/programs/localedef.h: Remove be_quiet
21324 and WITH_CUR_LOCALE.
21325 * locale/programs/locarchive.c (compare_from_file): Use
21326 record_error.
21327 * locale/programs/locfile.c (write_locale_data): Use
21328 record_error.
21329 * locale/programs/repertoire.c: Dont include error.h.
21330 (repertoire_complain): Use record_error.
21331 * localedata/tst-fmon.sh: Expect failures from localedef.
21332 * localedata/tst-locale.sh: Likewise.
21333 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
21334
21335 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
21336 (REPORTS): Likewise.
21337 (check): Likewise.
21338 (i18n): Rename to...
21339 (i18n_ctype): ...this.
21340 (i18n-report): Rename to...
21341 (i18n_ctype-report): ...this.
21342 * localedata/locales/i18n_ctype: Regenerate.
21343 * localedata/locales/i18n: copy i18n_ctype.
21344
213452017-10-13 Joseph Myers <joseph@codesourcery.com>
21346
21347 * stdlib/strfroml.c: Include <bits/floatn.h>.
21348 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
21349 Define before include of <stdlib.h> and undefine afterwards, then
21350 define as weak alias.
21351
21352 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
21353 Undefine and restore default definition. Use
21354 libm_alias_ldouble_other.
21355
213562017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
21357
21358 [BZ #22153]
21359 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
21360 in coredumps.
21361
213622017-10-13 James Clarke <jrtc27@jrtc27.com>
21363
21364 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
21365 Assign sym_map to be map for local symbols, as TLS relocations
21366 use sym_map to determine whether the symbol is defined and to
21367 extract the TLS information.
21368 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
21369 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
21370
213712017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21372
21373 [BZ #22189]
21374 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
21375 (math_force_eval): Add powerpc version.
21376
21377 [BZ #22142]
21378 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
21379 -DBL_MAX.
21380 (do_test): Likewise.
21381 * stdio-common/tst-printf.sh: Likewise.
21382 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
21383 ifdef clause in order to set the carry bit right. Replace r0 by
21384 0 without changing the behavior.
21385
213862017-10-13 Joseph Myers <joseph@codesourcery.com>
21387
21388 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
21389 <libm-alias-ldouble.h>.
21390 (fabsl): Define using libm_alias_ldouble.
21391 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
21392 <libm-alias-ldouble.h>.
21393 (fabsl): Define using libm_alias_ldouble.
21394
21395 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
21396 Remove conditional code.
21397
21398 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
21399 Rename to __clog10_internal_l.
21400 (__clog10_internal_l): Define aliases using
21401 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
21402 with __clog10.
21403
214042017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21405
21406 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
21407 * benchtests/sincosf-inputs: New file.
21408 * benchtests/cosf-inputs: New file.
21409 * benchtests/sinf-inputs: New file.
21410
214112017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21412
21413 * posix/tst-spawn.c (do_test): Wait for both children.
21414
214152017-10-12 H.J. Lu <hongjiu.lu@intel.com>
21416
21417 [BZ #22284]
21418 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
21419 tests-pie): Add tst-gmon-pie.
21420 (CFLAGS-tst-gmon-pie.c): New.
21421 (CRT-tst-gmon-pie): Likewise.
21422 (tst-gmon-pie-ENV): Likewise.
21423 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
21424 ($(objpfx)tst-gmon-pie.out): Likewise.
21425 (clean-tst-gmon-pie-data): Likewise.
21426 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
21427 * gmon/gmon.c [PIC]: Include <link.h>.
21428 [PIC] (callback): New function.
21429 (write_hist): Add an argument for load address. Subtract load
21430 address from PCs.
21431 (write_call_graph): Likewise.
21432 (write_gmon): Call __dl_iterate_phdr to get load address, pass
21433 it to write_hist and write_call_graph.
21434 * gmon/tst-gmon-pie.c: New file.
21435
214362017-10-11 Joseph Myers <joseph@codesourcery.com>
21437
21438 * math/Makefile (test-types-basic): New variable.
21439 (test-types): Likewise.
21440 (libm-test-support): Use $(test-types) instead of $(types).
21441 (libm-tests-base-normal): Likewise.
21442 (libm-tests-base-finite): Likewise.
21443 (libm-tests-base-inline): Likewise.
21444 (generated): Likewise.
21445 ($(objpfx)libm-test-support-$(t).c): Likewise.
21446 (libm-tests-for-type iterator): Likewise.
21447 (libm-test-support iterator): Likewise.
21448 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
21449 (ulp_idx): Use ULP_IDX.
21450 * math/test-ldouble.h: Include <float.h>.
21451 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
21452 (ULP_IDX): New macro.
21453 (ULP_I_IDX): Likewise.
21454 * math/test-double.h (ULP_IDX): Likewise.
21455 (ULP_I_IDX): Likewise.
21456 * math/test-float.h (ULP_IDX): Likewise.
21457 (ULP_I_IDX): Likewise.
21458 * math/test-float128.h (ULP_IDX): Likewise.
21459 (ULP_I_IDX): Likewise.
21460
214612017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21462
21463 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
21464 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
21465 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
21466 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
21467 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
21468 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
21469 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
21470 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
21471 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
21472 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
21473 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
21474 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
21475 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
21476 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21477 (SINGLE_THREAD_BY_GLOBAL): Define.
21478 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21479 Likewise.
21480 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21481 Likewise.
21482 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21483 Likewise.
21484 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21485 Likewise.
21486 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
21487 (SINGLE_THREAD_BY_GLOBAL): Likewise.
21488 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21489 Likewise.
21490
214912017-10-11 Andreas Schwab <schwab@suse.de>
21492
21493 * nis/Makefile (aux): Remove.
21494 * nscd/Makefile (aux): Add nscd_hash.
21495 (nscd-modules): Likewise.
21496 ($(objpfx)nscd): Don't depend on libnsl.
21497 * nscd/nscd_hash.c: New file.
21498 * nscd/nscd_hash.h: Likewise.
21499 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
21500 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
21501 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
21502 instead of <nis/rpcsvc/nis.h>.
21503 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
21504
215052017-10-11 Florian Weimer <fweimer@redhat.com>
21506
21507 [BZ #22078]
21508 Avoid large NSS buffers with many addresses, aliases.
21509 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
21510 using dynarrays and struct alloc_buffer.
21511 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
21512 (tst-nss-files-hosts-multi): Link with -ldl.
21513 * nss/tst-nss-files-hosts-multi.c: New file.
21514
215152017-10-11 Florian Weimer <fweimer@redhat.com>
21516
21517 [BZ #18023]
21518 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
21519 scratch_buffer. Eliminate gotos.
21520
215212017-10-11 Joseph Myers <joseph@codesourcery.com>
21522
21523 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
21524 libm_alias_ldouble_other.
21525 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
21526 undefine and redefine.
21527 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
21528 (exp10l): Do not define here.
21529 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
21530 (weak_alias): Undefine and redefine.
21531 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
21532 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
21533 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
21534 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
21535
21536 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
21537 [!__fma] (fma): Define using libm_alias_double.
21538 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
21539 [!__fmaf] (fmaf): Define using libm_alias_float.
21540 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
21541 (fmal): Define using libm_alias_ldouble.
21542
215432017-10-10 Joseph Myers <joseph@codesourcery.com>
21544
21545 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
21546 New macro.
21547 (libm_alias_double_other): Likewise.
21548 (libm_alias_double_r): Use libm_alias_double_other_r.
21549 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
21550 New macro.
21551 (libm_alias_float_other): Likewise.
21552 (libm_alias_float_r): Use libm_alias_float_other_r.
21553 * sysdeps/generic/libm-alias-float128.h
21554 (libm_alias_float128_other_r): New macro.
21555 (libm_alias_float128_other): Likewise.
21556 (libm_alias_float128_r): Use libm_alias_float128_other_r.
21557 * sysdeps/generic/libm-alias-ldouble.h
21558 (libm_alias_ldouble_other_r): New macro.
21559 (libm_alias_ldouble_other): Likewise.
21560 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
21561 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21562 (libm_alias_double_other_r): New macro.
21563 (libm_alias_double_other): Likewise.
21564 (libm_alias_double_r): Use libm_alias_double_other_r.
21565 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21566 (libm_alias_ldouble_other_r): New macro.
21567 (libm_alias_ldouble_other): Likewise.
21568 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
21569 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
21570 [!USE_AS_COMPAT]: Use libm_alias_double_other.
21571 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
21572 [!USE_AS_COMPAT]: Use libm_alias_float_other.
21573 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
21574 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
21575 * math/w_exp2f.c: Use libm_alias_float_other.
21576 * math/w_expf.c: Likewise.
21577 * math/w_log2f.c: Likewise.
21578 * math/w_logf.c: Likewise.
21579 * math/w_powf.c: Likewise.
21580 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
21581 [!__exp2f]: Use libm_alias_float_other.
21582 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
21583 [!__expf]: Use libm_alias_float_other.
21584 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
21585 [!__log2f]: Use libm_alias_float_other.
21586 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
21587 [!__logf]: Use libm_alias_float_other.
21588 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
21589 [!__powf]: Use libm_alias_float_other.
21590
215912017-10-10 Florian Weimer <fweimer@redhat.com>
21592
21593 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
21594 function.
21595 (_nss_files_gethostbyname3_r): Call it.
21596
215972017-10-09 Joseph Myers <joseph@codesourcery.com>
21598
21599 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
21600 error. Remove default definition of declare_mgen_alias.
21601 [!declare_mgen_alias_r]: Likewise.
21602 * sysdeps/generic/math-type-macros-double.h
21603 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
21604 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
21605 (declare_mgen_alias_r): Likewise.
21606 * sysdeps/generic/math-type-macros-float128.h
21607 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
21608 * sysdeps/generic/math-type-macros-ldouble.h
21609 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
21610 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
21611 macro.
21612 (declare_mgen_alias_r_s): Likewise.
21613 (declare_mgen_alias_r): Likewise.
21614 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
21615 (lgamma_r): Define using libm_alias_double_r.
21616 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
21617 (lgammaf_r): Define using libm_alias_float_r.
21618 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
21619 (lgammal_r): Define using libm_alias_ldouble_r.
21620 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
21621 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
21622
216232017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21624
21625 * lib/glob.c (__glob_pattern_type): Remove now-spurious
21626 extern declaration.
21627
216282017-10-09 Joseph Myers <joseph@codesourcery.com>
21629
21630 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
21631
216322017-10-09 Jonathan Wakely <jwakely@redhat.com>
21633
21634 [BZ #21326]
21635 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
21636 [__cplusplus >= 201103] (__USE_ISOC99): Define.
21637 * math/Makefile (test-math-cxx11): New test.
21638 * math/test-math-cxx11.cc: New file.
21639
216402017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
21641
21642 * login/openpty.c (openpty): Close slave pty file descriptor on error.
21643
21644 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
21645 call to allocate the slave pty file descriptor.
21646
216472017-10-06 Joseph Myers <joseph@codesourcery.com>
21648
21649 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
21650 [!__fma] (fma): Define using libm_alias_double.
21651 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
21652 [!__fma] (fma): Define using libm_alias_double.
21653
21654 * sysdeps/ieee754/float128/float128_private.h: Include
21655 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
21656 (libm_alias_ldouble_r): Undefine and redefine.
21657 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
21658 <libm-alias-ldouble.h>.
21659 (asinhl): Define using libm_alias_ldouble.
21660 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
21661 <libm-alias-ldouble.h>.
21662 (atanl): Define using libm_alias_ldouble.
21663 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
21664 <libm-alias-ldouble.h>.
21665 (cbrtl): Define using libm_alias_ldouble.
21666 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
21667 <libm-alias-ldouble.h>.
21668 (ceill): Define using libm_alias_ldouble.
21669 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
21670 <libm-alias-ldouble.h>.
21671 (copysignl): Define using libm_alias_ldouble.
21672 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
21673 <libm-alias-ldouble.h>.
21674 (cosl): Define using libm_alias_ldouble.
21675 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
21676 <libm-alias-ldouble.h>.
21677 (erfl): Define using libm_alias_ldouble.
21678 (erfcl): Likewise.
21679 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
21680 <libm-alias-ldouble.h>.
21681 (expm1l): Define using libm_alias_ldouble.
21682 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
21683 <libm-alias-ldouble.h>.
21684 (fabsl): Define using libm_alias_ldouble.
21685 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
21686 <libm-alias-ldouble.h>.
21687 (floorl): Define using libm_alias_ldouble.
21688 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
21689 <libm-alias-ldouble.h>.
21690 (fmal): Define using libm_alias_ldouble.
21691 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
21692 <libm-alias-ldouble.h>.
21693 (frexpl): Define using libm_alias_ldouble.
21694 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
21695 libm_alias_ldouble.
21696 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
21697 <libm-alias-ldouble.h>.
21698 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
21699 libm_alias_ldouble.
21700 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
21701 <libm-alias-ldouble.h>.
21702 (getpayloadl): Define using libm_alias_ldouble.
21703 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
21704 <libm-alias-ldouble.h>.
21705 (llrintl): Define using libm_alias_ldouble.
21706 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
21707 <libm-alias-ldouble.h>.
21708 (llroundl): Define using libm_alias_ldouble.
21709 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
21710 <libm-alias-ldouble.h>.
21711 (logbl): Define using libm_alias_ldouble.
21712 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
21713 <libm-alias-ldouble.h>.
21714 (lrintl): Define using libm_alias_ldouble.
21715 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
21716 <libm-alias-ldouble.h>.
21717 (lroundl): Define using libm_alias_ldouble.
21718 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
21719 <libm-alias-ldouble.h>.
21720 (modfl): Define using libm_alias_ldouble.
21721 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
21722 <libm-alias-ldouble.h>.
21723 (nearbyintl): Define using libm_alias_ldouble.
21724 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
21725 <libm-alias-ldouble.h>.
21726 (nextafterl): Define using libm_alias_ldouble.
21727 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
21728 <libm-alias-ldouble.h>.
21729 (nextupl): Define using libm_alias_ldouble.
21730 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
21731 <libm-alias-ldouble.h>.
21732 (remquol): Define using libm_alias_ldouble.
21733 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
21734 <libm-alias-ldouble.h>.
21735 (rintl): Define using libm_alias_ldouble.
21736 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
21737 <libm-alias-ldouble.h>.
21738 (roundevenl): Define using libm_alias_ldouble.
21739 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
21740 <libm-alias-ldouble.h>.
21741 (roundl): Define using libm_alias_ldouble.
21742 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
21743 using libm_alias_ldouble.
21744 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
21745 <libm-alias-ldouble.h>.
21746 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
21747 Define using libm_alias_ldouble.
21748 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
21749 <libm-alias-ldouble.h>.
21750 (sincosl): Define using libm_alias_ldouble.
21751 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
21752 <libm-alias-ldouble.h>.
21753 (sinl): Define using libm_alias_ldouble.
21754 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
21755 <libm-alias-ldouble.h>.
21756 (tanhl): Define using libm_alias_ldouble.
21757 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
21758 <libm-alias-ldouble.h>.
21759 (tanl): Define using libm_alias_ldouble.
21760 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
21761 <libm-alias-ldouble.h>.
21762 (totalorderl): Define using libm_alias_ldouble.
21763 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
21764 <libm-alias-ldouble.h>.
21765 (totalordermagl): Define using libm_alias_ldouble.
21766 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
21767 <libm-alias-ldouble.h>.
21768 (truncl): Define using libm_alias_ldouble.
21769 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
21770 libm_alias_ldouble.
21771 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
21772 libm_alias_ldouble.
21773 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
21774 <libm-alias-ldouble.h>.
21775 (weak_alias): Do not undefine and redefine.
21776 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21777 (copysignl): Define with long_double_symbol only if [IS_IN
21778 (libc)].
21779 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
21780 <libm-alias-ldouble.h>.
21781 (weak_alias): Do not undefine and redefine.
21782 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21783 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
21784 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
21785 <libm-alias-ldouble.h>.
21786 (weak_alias): Do not undefine and redefine.
21787 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21788 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
21789 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
21790 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
21791 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
21792 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
21793 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
21794 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
21795 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
21796 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
21797 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
21798 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
21799 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
21800 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
21801 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
21802 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
21803 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
21804 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
21805 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
21806 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
21807 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
21808 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
21809 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
21810 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
21811 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
21812 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
21813
218142017-10-06 Carlos O'Donell <carlos@redhat.com>
21815
21816 [BZ #22111]
21817 * malloc/malloc.c (tcache_shutting_down): Use bool type.
21818 (tcache_thread_freeres): Set tcache_shutting_down before
21819 freeing the tcache.
21820 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
21821 * malloc/tst-malloc-tcache-leak.c: New file.
21822
218232017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21824
21825 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
21826 back to powerpc32 file.
21827 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
21828 (memrchr): Add __memrchr_power8 to ifunc list.
21829 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
21830 extra bytes for unaligned inputs.
21831
218322017-10-06 Joseph Myers <joseph@codesourcery.com>
21833
21834 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
21835 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
21836 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
21837 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
21838 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
21839
218402017-10-05 Joseph Myers <joseph@codesourcery.com>
21841
21842 * sysdeps/arm/libm-test-ulps: Update.
21843
21844 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
21845 <libm-alias-ldouble.h>.
21846 (asinhl): Define using libm_alias_ldouble.
21847 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
21848 <libm-alias-ldouble.h>.
21849 (cbrtl): Define using libm_alias_ldouble.
21850 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
21851 <libm-alias-ldouble.h>.
21852 (copysignl): Define using libm_alias_ldouble.
21853 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
21854 <libm-alias-ldouble.h>.
21855 (cosl): Define using libm_alias_ldouble.
21856 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
21857 <libm-alias-ldouble.h>.
21858 (erfl): Define using libm_alias_ldouble.
21859 (erfcl): Likewise.
21860 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
21861 <libm-alias-ldouble.h>.
21862 (fmal): Define using libm_alias_ldouble.
21863 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
21864 <libm-alias-ldouble.h>.
21865 (frexpl): Define using libm_alias_ldouble.
21866 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
21867 libm_alias_ldouble.
21868 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
21869 <libm-alias-ldouble.h>.
21870 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
21871 libm_alias_ldouble.
21872 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
21873 <libm-alias-ldouble.h>.
21874 (getpayloadl): Define using libm_alias_ldouble.
21875 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
21876 <libm-alias-ldouble.h>.
21877 (llrintl): Define using libm_alias_ldouble.
21878 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
21879 <libm-alias-ldouble.h>.
21880 (llroundl): Define using libm_alias_ldouble.
21881 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
21882 <libm-alias-ldouble.h>.
21883 (lrintl): Define using libm_alias_ldouble.
21884 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
21885 <libm-alias-ldouble.h>.
21886 (lroundl): Define using libm_alias_ldouble.
21887 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
21888 <libm-alias-ldouble.h>.
21889 (modfl): Define using libm_alias_ldouble.
21890 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
21891 <libm-alias-ldouble.h>.
21892 (nextupl): Define using libm_alias_ldouble.
21893 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
21894 <libm-alias-ldouble.h>.
21895 (remquol): Define using libm_alias_ldouble.
21896 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
21897 <libm-alias-ldouble.h>.
21898 (roundevenl): Define using libm_alias_ldouble.
21899 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
21900 <libm-alias-ldouble.h>.
21901 (roundl): Define using libm_alias_ldouble.
21902 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
21903 using libm_alias_ldouble.
21904 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
21905 <libm-alias-ldouble.h>.
21906 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
21907 <libm-alias-ldouble.h>.
21908 (setpayloadsigl): Define using libm_alias_ldouble.
21909 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
21910 <libm-alias-ldouble.h>.
21911 (sincosl): Define using libm_alias_ldouble.
21912 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
21913 <libm-alias-ldouble.h>.
21914 (sinl): Define using libm_alias_ldouble.
21915 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
21916 <libm-alias-ldouble.h>.
21917 (tanhl): Define using libm_alias_ldouble.
21918 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
21919 <libm-alias-ldouble.h>.
21920 (tanl): Define using libm_alias_ldouble.
21921 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
21922 <libm-alias-ldouble.h>.
21923 (totalorderl): Define using libm_alias_ldouble.
21924 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
21925 <libm-alias-ldouble.h>.
21926 (totalordermagl): Define using libm_alias_ldouble.
21927 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
21928 libm_alias_ldouble.
21929 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
21930 libm_alias_ldouble.
21931
219322017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
21933
21934 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
21935 memmove_falkor.
21936 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21937 (__libc_ifunc_impl_list): Likewise.
21938 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
21939 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
21940
21941 * benchtests/bench-memmove-walk.c: New file.
21942 * benchtests/Makefile (string-benchset): Add it.
21943
21944 * benchtests/bench-memset-walk.c: New file.
21945 * benchtests/Makefile (string-benchset): Add it.
21946
21947 * benchtests/bench-memcpy-walk.c: New file.
21948 * benchtests/Makefile (string-benchset): Add it.
21949
219502017-10-05 Florian Weimer <fweimer@redhat.com>
21951
21952 nscd: Eliminate compilation time dependency in the build output.
21953 * nscd/nscd_stat.c (STATDATA_VERSION)
21954 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
21955 (STATDATA_VERSION_FULL): New macro definitions.
21956 (compilation): Remove.
21957 (struct statdata): Adjust version member.
21958 (send_stats): Set version from STATDATA_VERSION_FULL.
21959 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
21960
219612017-10-05 Joseph Myers <joseph@codesourcery.com>
21962
21963 * configure.ac (--enable-add-ons): Remove option.
21964 (machine): Do not mention add-ons in comment.
21965 (LIBC_PRECONFIGURE): Likewise.
21966 (add_ons): Remove variable and sanity checks and logic to locate
21967 add-ons.
21968 (add_ons_automatic): Remove variable.
21969 (configured_add_ons): Likewise.
21970 (add_ons_sfx): Likewise.
21971 (add_ons_pfx): Likewise.
21972 (add_on_subdirs): Likewise.
21973 (sysnames_add_ons): Likewise. Remove loop over add-ons and
21974 consideration of add-ons in Implies handling.
21975 (sysdeps_add_ons): Likewise.
21976 * configure: Regenerated.
21977 * libidn/configure.ac: Remove.
21978 * libidn/configure: Likewise.
21979 * sysdeps/unix/inet/configure.ac: New file.
21980 * sysdeps/unix/inet/configure: New generated file.
21981 * sysdeps/unix/inet/Subdirs: Add libidn.
21982 * Makeconfig (sysdeps-srcdirs): Remove variable.
21983 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
21984 ($(common-objpfx)config.status): Do not depend on add-on files.
21985 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
21986 comment.
21987 (all-subdirs): Do not include $(add-on-subdirs).
21988 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
21989 * config.make.in (add-ons): Remove variable.
21990 (add-on-subdirs): Likewise.
21991 (sysdeps-add-ons): Likewise.
21992 * manual/Makefile (add-chapters): Remove.
21993 ($(objpfx)texis): Do not depend on $(add-chapters).
21994 (nonexamples): Do not handle $(add-chapters).
21995 (examples): Do not handle $(add-ons).
21996 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
21997 libc-texinfo.sh.
21998 * manual/install.texi (Installation): Do not mention add-ons.
21999 (--enable-add-ons): Do not document configure option.
22000 * INSTALL: Regenerated.
22001 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
22002 * manual/maint.texi (Hierarchy Conventions): Do not mention
22003 add-ons.
22004 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
22005 --enable-add-ons.
22006 * scripts/gen-sorted.awk: Do not handle Subdirs files from
22007 add-ons.
22008 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
22009 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
22010
220112017-10-05 Andreas Schwab <schwab@suse.de>
22012
22013 [BZ #15142]
22014 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
22015 (_IO_flush_all_lockp): Always lock list_all_lock.
22016 (_IO_flush_all_linebuffered): Likewise.
22017 (_IO_unbuffer_all): Likewise.
22018
220192017-10-05 Florian Weimer <fweimer@redhat.com>
22020
22021 [BZ #15436]
22022 Do not flush stdio streams on abort.
22023 * stdlib/abort.c (fflush): Remove macro definition.
22024 (abort): Remove stages related to stdio flushing.
22025
220262017-10-05 Florian Weimer <fweimer@redhat.com>
22027
22028 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
22029
220302017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
22031
22032 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22033
220342017-10-05 Florian Weimer <fweimer@redhat.com>
22035
22036 * support/support_format_hostent.c (support_format_hostent): Add
22037 more error information for NETDB_INTERNAL.
22038
220392017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22040
22041 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
22042 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
22043 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
22044 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
22045 AC_DEFINE if multi-arch is enabled.
22046 * sysdeps/i386/configure: Regenerated.
22047
220482017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22049
22050 * Makeconfig (+link-static-before-libc): Use
22051 $(DEFAULT-LDFLAGS-$(@F)).
22052 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
22053 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
22054 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
22055
220562017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22057
22058 * elf/Makefile (tests): Add tst-main1.
22059 (modules-names): Add tst-main1mod.
22060 ($(objpfx)tst-main1): New.
22061 (CRT-tst-main1): Likewise.
22062 (LDFLAGS-tst-main1): Likewise.
22063 (LDLIBS-tst-main1): Likewise.
22064 (tst-main1mod.so-no-z-defs): Likewise.
22065 * elf/tst-main1.c: New file.
22066 * elf/tst-main1mod.c: Likewise.
22067
220682017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22069
22070 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
22071
220722017-10-04 Joseph Myers <joseph@codesourcery.com>
22073
22074 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
22075 (fma): Define using libm_alias_double.
22076 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
22077 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
22078 <math_ldbl_opt.h>.
22079 (fmal): Do not define as compat symbol here.
22080 * sysdeps/alpha/fpu/s_fma.c: New file.
22081
220822017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22083
22084 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
22085
220862017-10-04 Joseph Myers <joseph@codesourcery.com>
22087
22088 [BZ #22229]
22089 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22090 <math_ldbl_opt.h>
22091 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
22092 and libc.
22093 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
22094 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22095 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
22096 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
22097 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22098 Include <math_ldbl_opt.h>
22099 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
22100 and libc.
22101 (compat_symbol): Undefine and redefine.
22102 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22103 <math_ldbl_opt.h>
22104 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22105 (compat_symbol): Undefine and redefine.
22106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
22107 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
22108 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
22109 GLIBC_2_1 for libm.
22110 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
22111 GLIBC_2.0 copysignl symbol.
22112 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
22113 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
22114
22115 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
22116
221172017-10-04 Florian Weimer <fweimer@redhat.com>
22118
22119 * scripts/check-local-headers.sh: Ignore nspr4 header file
22120 directory in addition to nspr.
22121
221222017-10-04 Guido Trentalancia <guido@trentalancia.net>
22123
22124 [BZ #17956]
22125 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
22126 * configure: Regenerate.
22127 * crypt/Makefile (nss-cpp-flags): New variable.
22128 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
22129 (CPPFLAGS-md5-crypt.c): Use it.
22130 * scripts/check-local-headers.sh: Ignore nspr header file
22131 directory.
22132
221332017-10-04 Andreas Schwab <schwab@suse.de>
22134
22135 * nis/Makefile (services): Remove compat.
22136 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
22137 ($(objpfx)libnss_compat.so): Remove rule.
22138 * nis/Versions (libnss_compat): Remove.
22139 * nss/Makefile (services): Add compat.
22140 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
22141 * nss/Versions (libnss_compat): Define.
22142 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
22143 Don't include <rpc/types.h>. Replace bool_t by bool.
22144 * nss/nss_compat/compat-initgroups.c: Likewise.
22145 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
22146 instead of <rpcsrv/ypclnt.h>.
22147 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
22148 yp_get_default_domain.
22149 * nss/nss_compat/compat-pwd.c: Likewise.
22150 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
22151 yp_get_default_domain.
22152 * nss/nss_compat/nisdomain.c: New file.
22153 * nss/nss_compat/nisdomain.h: Likewise.
22154
221552017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22156
22157 [BZ #22244]
22158 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
22159 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
22160
221612017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22162
22163 [BZ #22243]
22164 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
22165 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
22166
221672017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22168
22169 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
22170 "movl main@GOTOFF(%ebx), %eax".
22171
221722017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22173
22174 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
22175 allow undefined _DYNAMIC in PIE libc.a.
22176 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
22177 Likewse.
22178
221792017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22180
22181 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
22182 check _DYNAMIC.
22183
221842017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22185
22186 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
22187 check _DYNAMIC.
22188
221892017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22190
22191 * math/test-math-iscanonical.cc (error): Replace bool with int.
22192
221932017-10-03 Joseph Myers <joseph@codesourcery.com>
22194
22195 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
22196 (modf): Define using libm_alias_double, only if [!__modf].
22197 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
22198 <libm-alias-double.h>.
22199 (modf): Define using libm_alias_double, only if [!__modf].
22200 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
22201 compat symbol here.
22202 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
22203 (weak_alias): Do not undefine and redefine.
22204 (strong_alias): Likewise.
22205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
22206 (weak_alias): Likewise.
22207 (strong_alias): Likewise.
22208
22209 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
22210 (logb): Define using libm_alias_double, only if [!__logb].
22211 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
22212 <libm-alias-double.h>.
22213 (logb): Define using libm_alias_double, only if [!__logb].
22214 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
22215 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
22216 (weak_alias): Do not undefine and redefine.
22217 (strong_alias): Likewise.
22218 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
22219 (weak_alias): Likewise.
22220 (strong_alias): Likewise.
22221
222222017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22223
22224 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
22225 Check SHARED instead PIC.
22226
222272017-10-03 Joseph Myers <joseph@codesourcery.com>
22228
22229 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
22230 [!__fmaf] (fmaf): Define using libm_alias_float.
22231
22232 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
22233 (frexp): Define using libm_alias_double.
22234 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
22235 <libm-alias-double.h>.
22236 (frexp): Define using libm_alias_double.
22237 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
22238 compat symbol here.
22239
222402017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
22241
22242 [BZ #22235]
22243 * math/math.h: Trivial fix for unbalanced parentheses in comment.
22244 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
22245 (CFLAGS-test-math-iscanonical.cc): New variable.
22246 * math/test-math-iscanonical.cc: New file.
22247 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
22248 Provide a C++ implementation based on function overloading,
22249 rather than using __MATH_TG, which uses C-only builtins.
22250 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
22251 Likewise.
22252 * sysdeps/powerpc/powerpc64le/Makefile
22253 (CFLAGS-test-math-iscanonical.cc): New variable.
22254
222552017-10-03 Joseph Myers <joseph@codesourcery.com>
22256
22257 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
22258 (ceil): Define using libm_alias_double.
22259 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
22260 (floor): Define using libm_alias_double.
22261 * sysdeps/ieee754/dbl-64/s_llround.c: Include
22262 <libm-alias-double.h>.
22263 (llround): Define using libm_alias_double.
22264 * sysdeps/ieee754/dbl-64/s_lround.c: Include
22265 <libm-alias-double.h>.
22266 (lround): Define using libm_alias_double.
22267 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
22268 <libm-alias-double.h>.
22269 (nearbyint): Define using libm_alias_double.
22270 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
22271 <libm-alias-double.h>.
22272 (remquo): Define using libm_alias_double.
22273 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
22274 (rint): Define using libm_alias_double.
22275 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
22276 (round): Define using libm_alias_double.
22277 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
22278 (trunc): Define using libm_alias_double.
22279 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
22280 <libm-alias-double.h>.
22281 (ceil): Define using libm_alias_double.
22282 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
22283 <libm-alias-double.h>.
22284 (floor): Define using libm_alias_double.
22285 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
22286 <libm-alias-double.h>.
22287 (llround): Define using libm_alias_double.
22288 [_LP64] (lround): Likewise.
22289 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
22290 <libm-alias-double.h>.
22291 [!_LP64] (lround): Define using libm_alias_double.
22292 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
22293 <libm-alias-double.h>.
22294 (nearbyint): Define using libm_alias_double.
22295 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
22296 <libm-alias-double.h>.
22297 (remquo): Define using libm_alias_double.
22298 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
22299 <libm-alias-double.h>.
22300 (rint): Define using libm_alias_double.
22301 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
22302 <libm-alias-double.h>.
22303 (round): Define using libm_alias_double.
22304 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
22305 <libm-alias-double.h>.
22306 (trunc): Define using libm_alias_double.
22307 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
22308 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
22309 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
22310 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
22311 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
22312 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
22313 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
22314 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
22315 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
22316
223172017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22318
22319 * math/w_remainder.c: New file.
22320 * math/w_remainderf.c: New file.
22321 * math/w_remainderl.c: New file.
22322
223232017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22324
22325 * elf/rtld.c (BOOTSTRAP_MAP): New.
22326 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
22327 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22328 Likewise.
22329 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22330 Likewise.
22331 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22332 Likewise.
22333
223342017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22335
22336 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
22337 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
22338 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
22339 rtld_hidden_data_ver): Define to empty.
22340 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
22341 __assert_perror_fail): Likewise.
22342 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22343 (__rewinddir): Likewise.
22344 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22345 (__profile_frequency): Likewise.
22346 * include/setjmp.h (__sigsetjmp): Likewise.
22347 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
22348 __libc_sigaction): Likewise.
22349 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
22350 not set hidden attribute.
22351 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
22352 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
22353 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
22354 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
22355 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
22356 __fxstatat64): Likewise.
22357 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22358 (__uname): Likewise.
22359 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22360 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
22361 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
22362 (NO_RTLD_HIDDEN): Set.
22363 * sysdeps/mach/hurd/configure: Refresh.
22364 * config.h.in: Refresh.
22365
223662017-10-02 Joseph Myers <joseph@codesourcery.com>
22367
22368 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
22369 (atan): Define using libm_alias_double.
22370 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
22371 (tan): Define using libm_alias_double.
22372 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
22373 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
22374
22375 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
22376 define as weak alias of __atan. Do not define any aliases if
22377 [__atan].
22378 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
22379 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
22380 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
22381 as weak alias of __tan. Do not define any aliases if [__tan].
22382 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
22383 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
22384 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
22385 __atan.
22386 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
22387 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
22388 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
22389 and define as weak alias of __atan.
22390 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
22391 __atan.
22392 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
22393 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
22394 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
22395 define as weak alias of __tan.
22396
223972017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22398
22399 * math/w_lgamma.c: New file.
22400 * math/w_lgammaf.c: New file.
22401 * math/w_lgammal.c: New file.
22402
224032017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22404
22405 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
22406 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
22407 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
22408 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
22409 * sysdeps/ieee754/flt-32/w_logf.c: New file.
22410 * sysdeps/ieee754/flt-32/w_powf.c: New file.
22411 * sysdeps/i386/fpu/w_log2f.c: New file.
22412 * sysdeps/i386/fpu/w_logf.c: New file.
22413 * sysdeps/i386/fpu/w_powf.c: New file.
22414 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
22415 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
22416 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
22417
224182017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22419 H.J. Lu <hongjiu.lu@intel.com>
22420
22421 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
22422 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
22423 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
22424 * sysdeps/ieee754/flt-32/w_expf.c: New file.
22425 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
22426 the new expf code.
22427 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
22428 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
22429 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
22430 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
22431 * sysdeps/i386/fpu/w_exp2f.c: New file.
22432 * sysdeps/i386/fpu/w_expf.c: New file.
22433 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
22434 * sysdeps/x86_64/fpu/w_expf.c: New file.
22435
224362017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22437
22438 * math/Versions (logf): New libm symbol at GLIBC_2.27.
22439 (log2f): Likewise.
22440 (powf): Likewise.
22441 * math/w_log2f.c: New file.
22442 * math/w_logf.c: New file.
22443 * math/w_powf.c: New file.
22444 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
22445 * math/w_logf_compat.c (__logf_compat): Likewise.
22446 * math/w_powf_compat.c (__powf_compat): Likewise.
22447 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
22448 * sysdeps/ia64/fpu/e_logf.S: Likewise.
22449 * sysdeps/ia64/fpu/e_powf.S: Likewise.
22450 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
22451 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22452 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22453 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22454 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22455 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22456 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22457 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22458 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22459 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22460 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22461 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22462 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22463 Likewise.
22464 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22465 Likewise.
22466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22467 Likewise.
22468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22469 Likewise.
22470 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22471 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22472 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22473 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22474 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22475 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22476 Likewise.
22477 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22478 Likewise.
22479 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22480 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22481 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22482
224832017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22484
22485 * sysdeps/powerpc/powerpc64/multiarch/Makefile
22486 (sysdep_routines): Add memrchr_power8.
22487 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
22488 (memrchr): Add __memrchr_power8 to list of memrchr functions.
22489 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
22490 New file.
22491 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
22492 (memrchr): Add __memrchr_power8 to ifunc list.
22493 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
22494
224952017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22496
22497 [BZ #18822]
22498 * sysdeps/unix/sysv/linux/posix_fadvise64.c
22499 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
22500 libc_hidden_def.
22501 * sysdeps/unix/sysv/linux/posix_fallocate64.c
22502 (__posix_fallocate64_l64): Likewise.
22503
225042017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22505
22506 [BZ #18822]
22507 * sysdeps/unix/sysv/linux/sched_setaffinity.c
22508 (__sched_setaffinity_new): Add libc_hidden_proto and
22509 libc_hidden_def.
22510
225112017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22512
22513 [BZ #18822]
22514 * include/glob.h (__glob64): Add libc_hidden_proto.
22515 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
22516 libc_hidden_def.
22517
225182017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22519
22520 [BZ #18822]
22521 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
22522 attribute_hidden.
22523
225242017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22525
22526 [BZ #18822]
22527 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
22528
225292017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22530
22531 [BZ #18822]
22532 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
22533 libc_hidden_def.
22534
225352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22536
22537 [BZ #18822]
22538 * csu/version.c (__libc_print_version): Add attribute_hidden.
22539
225402017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22541
22542 [BZ #18822]
22543 * include/libc-internal.h (__init_misc): Add attribute_hidden.
22544
225452017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22546
22547 [BZ #18822]
22548 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
22549
225502017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22551
22552 [BZ #18822]
22553 * nscd/nscd_helper.c (__nis_hash): New prototype.
22554
225552017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22556
22557 [BZ #18822]
22558 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
22559 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
22560 libc_hidden_def.
22561 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22562 * termios/tcgetattr.c (__tcgetattr): Likewise.
22563
225642017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22565
22566 [BZ #18822]
22567 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
22568 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
22569 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
22570 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
22571 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
22572
225732017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22574
22575 [BZ #18822]
22576 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
22577
225782017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22579
22580 [BZ #18822]
22581 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
22582 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
22583
225842017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22585
22586 [BZ #18822]
22587 * intl/hash-string.h (__hash_string): Add attribute_hidden.
22588
225892017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22590
22591 [BZ #18822]
22592 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
22593 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
22594
225952017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22596
22597 [BZ #18822]
22598 * include/ifreq.h: New file.
22599 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
22600 (__ifreq): Likewise.
22601 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
22602 (__ifreq): Likewise.
22603
226042017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22605
22606 [BZ #18822]
22607 * include/idna.h: New file.
22608 * inet/getnameinfo.c: Include <idna.h> instead of
22609 <libidn/idna.h>.
22610 (__idna_to_unicode_lzlz): Removed.
22611 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
22612 <libidn/idna.h>.
22613 (__idna_to_ascii_lz): Removed.
22614 (__idna_to_unicode_lzlz): Likewise.
22615
226162017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22617
22618 [BZ #18822]
22619 * include/plural-exp.h: New file.
22620 * intl/plural-exp.c: Include <plural-exp.h> instead of
22621 "plural-exp.h".
22622
226232017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22624
22625 [BZ #18822]
22626 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
22627 "getsourcefilter.h".
22628 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
22629 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
22630 "getsourcefilter.h".
22631 (__get_sol): Removed.
22632
226332017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22634
22635 [BZ #18822]
22636 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
22637 to ...
22638 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
22639
226402017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22641
22642 [BZ #18822]
22643 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
22644 attribute_hidden.
22645
226462017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22647
22648 [BZ #18822]
22649 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
22650
226512017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22652
22653 [BZ #18822]
22654 * include/search.h (__tdestroy): Add libc_hidden_proto.
22655 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
22656
226572017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22658
22659 [BZ #18822]
22660 * include/assert.h (__assert_fail_base): Add attribute_hidden.
22661
226622017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22663
22664 [BZ #18822]
22665 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
22666 attribute_hidden.
22667
226682017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22669
22670 [BZ #18822]
22671 * include/signal.h (__kill): Add libc_hidden_proto.
22672 (__sigblock): Likewise.
22673 (__sigprocmask): Likewise.
22674 (__sigaltstack): Likewise.
22675 * signal/kill.c (__kill): Add libc_hidden_def.
22676 * signal/sigblock.c (__sigblock): Likewise.
22677 * signal/sigprocmask.c (__sigprocmask): Likewise.
22678 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
22679 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22680 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22681 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22682 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
22683 Likewise.
22684 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22685 Likewise.
22686 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22687 (__sigprocmask): Likewise.
22688 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
22689 Likewise.
22690 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22691 (__sigprocmask): Likewise.
22692 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22693 Likewise.
22694
226952017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22696
22697 [BZ #18822]
22698 * include/string.h (__strsep): Add libc_hidden_proto.
22699 * string/strsep.c (__strsep): Add libc_hidden_def.
22700
227012017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22702
22703 [BZ #18822]
22704 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
22705 attribute_hidden.
22706 (__spawni): Likewise.
22707
227082017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22709
22710 [BZ #18822]
22711 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
22712 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
22713 libc_hidden_def.
22714
227152017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22716
22717 [BZ #18822]
22718 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
22719
227202017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22721
22722 [BZ #18822]
22723 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
22724 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
22725 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
22726 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
22727 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
22728 Likewise.
22729 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
22730 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
22731
227322017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22733
22734 [BZ #18822]
22735 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
22736 (__dcigettext): Likewise.
22737
227382017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22739
22740 [BZ #18822]
22741 * include/sys/sysinfo.h (__get_nprocs_conf): Add
22742 libc_hidden_proto.
22743 (__get_nprocs): Likewise.
22744 (__get_phys_pages): Likewise.
22745 (__get_avphys_pages): Likewise.
22746 (__get_child_max): Add attribute_hidden.
22747 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
22748 (__get_nprocs): Likewise.
22749 (__get_phys_pages): Likewise.
22750 (__get_avphys_pages): Likewise.
22751 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
22752 libc_hidden_def.
22753 (__get_nprocs): Likewise.
22754 (__get_phys_pages): Likewise.
22755 (__get_avphys_pages): Likewise.
22756 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
22757 libc_hidden_def.
22758 (__get_nprocs_conf): Likewise.
22759 (__get_phys_pages): Likewise.
22760 (__get_avphys_pages): Likewise.
22761
227622017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22763
22764 [BZ #18822]
22765 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
22766 attribute_hidden.
22767 (__netlink_close): Likewise.
22768 (__netlink_free_handle): Likewise.
22769 (__netlink_request): Likewise.
22770
227712017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22772
22773 [BZ #18822]
22774 * include/rpc/rpc.h (__rpc_thread_variables): Add
22775 attribute_hidden.
22776 (__rpc_thread_svc_cleanup): Likewise.
22777 (__rpc_thread_clnt_cleanup): Likewise.
22778 (__rpc_thread_key_cleanup): Likewise.
22779
227802017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22781
22782 [BZ #18822]
22783 * include/sys/uio.h (__readv): Add libc_hidden_proto.
22784 (__writev): Likewise.
22785 * misc/readv.c (__readv): Add libc_hidden_def.
22786 * misc/writev.c (__writev): Likewise.
22787 * sysdeps/posix/readv.c (__readv): Likewise.
22788 * sysdeps/posix/writev.c (__writev): Likewise.
22789 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
22790 (__readv): Likewise.
22791 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
22792 (__writev): Likewise.
22793
227942017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22795
22796 [BZ #18822]
22797 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
22798 (__regcomp): Add libc_hidden_proto.
22799 (__regexec): Likewise.
22800 (__regfree): Likewise.
22801 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
22802 (__regfree): Likewise.
22803 * posix/regexec.c (__regexec): Likewise.
22804
228052017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22806
22807 [BZ #18822]
22808 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
22809 (__getutent): Likewise.
22810 (__getutid): Likewise.
22811 (__getutline): Likewise.
22812 (__pututline): Likewise.
22813 (__getutent_r): Likewise.
22814 (__getutid_r): Likewise.
22815 (__getutline_r): Likewise.
22816 (__utmpname): Add attribute_hidden.
22817 (__setutent): Likewise.
22818 (__endutent): Likewise.
22819 * login/getutent.c (__getutent): Add libc_hidden_def.
22820 * login/getutent_r.c (__getutent_r): Likewise.
22821 (__pututline): Likewise.
22822 * login/getutid.c (__getutid): Likewise.
22823 * login/getutid_r.c (__getutid_r): Likewise.
22824 * login/getutline.c (__getutline): Likewise.
22825 * login/getutline_r.c (__getutline_r): Likewise.
22826 * login/updwtmp.c (__updwtmp): Likewise.
22827
228282017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22829
22830 [BZ #18822]
22831 * include/dirent.h (__opendir): Always add attribute_hidden.
22832 (__fdopendir): Likewise.
22833 (__closedir): Likewise.
22834 (__readdir): Likewise.
22835 (__readdir64): Add libc_hidden_proto.
22836 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
22837 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
22838 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
22839 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
22840 New alias.
22841
228422017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22843
22844 [BZ #18822]
22845 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
22846 * include/netdb.h (__gethostbyaddr_r): Likewise.
22847 (__gethostbyname_r): Likewise.
22848 (__gethostbyname2_r): Likewise.
22849 (__getnetbyaddr_r): Likewise.
22850 (__getnetbyname_r): Likewise.
22851 (__getservbyname_r): Likewise.
22852 (__getservbyport_r): Likewise.
22853 (__getprotobyname_r): Likewise.
22854 (__getprotobynumber_r): Likewise.
22855 (__getnetgrent_r): Likewise.
22856 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
22857 (__getrpcbynumber_r): Likewise.
22858 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
22859
228602017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22861
22862 [BZ #18822]
22863 * include/stdio.h (__fcloseall): Add attribute_hidden.
22864 (__getline): Likewise.
22865 (__path_search): Likewise.
22866 (__gen_tempname): Likewise.
22867 (__libc_message): Likewise.
22868 (__flockfile): Likewise.
22869 (__funlockfile): Likewise.
22870 (__fxprintf): Likewise.
22871 (__fxprintf_nocancel): Likewise.
22872
228732017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22874
22875 [BZ #18822]
22876 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
22877 (__sgetsgent_r): Likewise.
22878
228792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22880
22881 [BZ #18822]
22882 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
22883 (__statfs64): Likewise.
22884 (__fstatfs64): Likewise.
22885 * include/sys/statvfs.h (__statvfs64): Likewise.
22886 (__fstatvfs64): Likewise.
22887 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
22888 (__statfs_filesize_max): Likewise.
22889 (__statfs_symlinks): Likewise.
22890 (__statfs_chown_restricted): Likewise.
22891
228922017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22893
22894 [BZ #18822]
22895 * include/time.h (__tzstring): Add attribute_hidden.
22896 (__tzfile_read): Likewise.
22897 (__tzfile_compute): Likewise.
22898 (__tzfile_default): Likewise.
22899 (__tzset_parse_tz): Likewise.
22900 (__offtime): Likewise.
22901 (__asctime_r): Likewise.
22902 (__tzset): Likewise.
22903 (__tz_convert): Likewise.
22904 (__getdate_r): Likewise.
22905 (__getclktck): Likewise.
22906
229072017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22908
22909 [BZ #18822]
22910 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
22911 (__nscd_unmap): Likewise.
22912 (__nscd_cache_search): Likewise.
22913 (__nscd_get_nl_timestamp): Likewise.
22914 (__nscd_getpwnam_r): Likewise.
22915 (__nscd_getpwuid_r): Likewise.
22916 (__nscd_getgrnam_r): Likewise.
22917 (__nscd_getgrgid_r): Likewise.
22918 (__nscd_gethostbyname_r): Likewise.
22919 (__nscd_gethostbyname2_r): Likewise.
22920 (__nscd_gethostbyaddr_r): Likewise.
22921 (__nscd_getai): Likewise.
22922 (__nscd_getgrouplist): Likewise.
22923 (__nscd_getservbyname_r): Likewise.
22924 (__nscd_getservbyport_r): Likewise.
22925 (__nscd_innetgr): Likewise.
22926 (__nscd_setnetgrent): Likewise.
22927
229282017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22929
22930 [BZ #18822]
22931 * include/gmp.h: Declare internal functions only if _ISOMAC is
22932 undefined.
22933 (__mpn_extract_double): Add attribute_hidden.
22934 (__mpn_extract_long_double): Likewise.
22935 (__mpn_extract_float128): Likewise.
22936 (__mpn_construct_float): Likewise.
22937 (__mpn_construct_double): Likewise.
22938 (__mpn_construct_long_double): Likewise.
22939 (__mpn_construct_float128): Likewise.
22940 (mpn_add_1): Likewise.
22941 (mpn_addmul_1): Likewise.
22942 (mpn_add_n): Likewise.
22943 (mpn_cmp): Likewise.
22944 (mpn_divrem): Likewise.
22945 (mpn_lshift): Likewise.
22946 (mpn_mul): Likewise.
22947 (mpn_mul_1): Likewise.
22948 (mpn_rshift): Likewise.
22949 (mpn_sub_1): Likewise.
22950 (mpn_submul_1): Likewise.
22951 (mpn_sub_n): Likewise.
22952
229532017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22954
22955 [BZ #18822]
22956 * include/wchar.h (__wcsnlen): Add attribute_hidden.
22957 (__wcscat): Likewise.
22958 (__btowc): Likewise.
22959 (__wcrtomb): Likewise.
22960 (__mbsrtowcs): Likewise.
22961 (__wcsrtombs): Likewise.
22962 (__mbsnrtowcs): Likewise.
22963 (__wcsnrtombs): Likewise.
22964 (__wcsncpy): Likewise.
22965 (__wcpncpy): Likewise.
22966 (__wmemcpy): Likewise.
22967 (__wmempcpy): Likewise.
22968 (__wmemmove): Likewise.
22969 (__wcschrnul): Likewise.
22970 (__vfwscanf): Likewise.
22971 (__vswprintf): Likewise.
22972 (__fwprintf): Likewise.
22973 (__vfwprintf): Likewise.
22974
229752017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22976
22977 [BZ #18822]
22978 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
22979 (__getgrgid_r): Likewise.
22980 (__getgrnam_r): Likewise.
22981 * include/pwd.h (__getpwuid_r): Likewise.
22982 (__getpwnam_r): Likewise.
22983 (__fgetpwent_r): Likewise.
22984 * include/shadow.h (__getspnam_r): Likewise.
22985 (__sgetspent_r): Likewise.
22986 (__fgetspent_r): Likewise.
22987
229882017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22989
22990 [BZ #18822]
22991 * include/unistd.h (__access): Add attribute_hidden.
22992 (__lseek64): Likewise.
22993 (__libc_pread64): Likewise.
22994 (__pipe2): Likewise.
22995 (__sleep): Likewise.
22996 (__chdir): Likewise.
22997 (__fchdir): Likewise.
22998 (__getcwd): Likewise.
22999 (__rmdir): Likewise.
23000 (__execvpe): Likewise.
23001 (__execve): Likewise.
23002 (__setsid): Likewise.
23003 (__getuid): Likewise.
23004 (__geteuid): Likewise.
23005 (__getgid): Likewise.
23006 (__getegid): Likewise.
23007 (__getgroups): Likewise.
23008 (__group_member): Likewise.
23009 (__ttyname_r): Likewise.
23010 (__isatty): Likewise.
23011 (__readlink): Likewise.
23012 (__unlink): Likewise.
23013 (__gethostname): Likewise.
23014 (__profil): Likewise.
23015 (__getdtablesize): Likewise.
23016 (__brk): Likewise.
23017 (__ftruncate): Likewise.
23018 (__ftruncate64): Likewise.
23019
230202017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23021
23022 [BZ #18822]
23023 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
23024 * argp/argp-fs-xinl.c: Likewise.
23025 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
23026 * argp/argp-parse.c: Include <argp.h>.
23027 * argp/argp-xinl.c: Likewise.
23028 * include/argp-fmtstream.h: New file.
23029 * include/argp.h (__argp_error): Add attribute_hidden.
23030 (__argp_failure): Likewise.
23031 (__argp_input): Likewise.
23032 (__argp_state_help): Likewise.
23033
230342017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23035
23036 [BZ #18822]
23037 * include/wchar.h (____wcstof_l_internal): New prototype.
23038 (____wcstod_l_internal): Likewise.
23039 (____wcstold_l_internal): Likewise.
23040 (____wcstol_l_internal): Likewise.
23041 (____wcstoul_l_internal): Likewise.
23042 (____wcstoll_l_internal): Likewise.
23043 (____wcstoull_l_internal): Likewise.
23044 (____wcstof128_l_internal): Likewise.
23045 * sysdeps/ieee754/float128/wcstof128.c
23046 (____wcstof128_l_internal): Removed.
23047 * sysdeps/ieee754/float128/wcstof128_l.c
23048 (____wcstof128_l_internal): Likewise.
23049 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
23050 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
23051 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
23052 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
23053 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
23054 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
23055 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
23056 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
23057 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
23058 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
23059
230602017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23061
23062 [BZ #18822]
23063 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
23064 instead of <sys/statvfs.h>.
23065 (__internal_statvfs): Removed.
23066 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
23067 instead of <sys/statvfs.h>.
23068 (__internal_statvfs64): Removed.
23069 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
23070 "internal_statvfs.h" instead of <sys/statvfs.h>.
23071 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
23072 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
23073 instead of <sys/statvfs.h>.
23074 (__internal_statvfs): Removed.
23075 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
23076 instead of <sys/statvfs.h>.
23077 (__internal_statvfs64): Removed.
23078
230792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23080
23081 [BZ #18822]
23082 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
23083 (__gconv_close): Likewise.
23084 (__gconv): Likewise.
23085 (__gconv_find_transform): Likewise.
23086 (__gconv_lookup_cache): Likewise.
23087 (__gconv_compare_alias_cache): Likewise.
23088 (__gconv_load_cache): Likewise.
23089 (__gconv_get_path): Likewise.
23090 (__gconv_close_transform): Likewise.
23091 (__gconv_release_cache): Likewise.
23092 (__gconv_find_shlib): Likewise.
23093 (__gconv_release_shlib): Likewise.
23094 (__gconv_get_builtin_trans): Likewise.
23095 (__gconv_compare_alias): Likewise.
23096 * include/dlfcn.h (_dlerror_run): Likewise.
23097 * include/stdio.h (__fortify_fail_abort): Likewise.
23098 * include/time.h (__tz_compute): Likewise.
23099 (__strptime_internal): Likewise.
23100 * intl/gettextP.h (_nl_find_domain): Likewise.
23101 (_nl_load_domain): Likewise.
23102 (_nl_find_msg): Likewise.
23103 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
23104 (EXTRACT_PLURAL_EXPRESSION): Likewise.
23105 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
23106 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
23107 (__gai_find_request): Likewise.
23108 (__gai_remove_request): Likewise.
23109 (__gai_notify): Likewise.
23110 (__gai_notify_only): Likewise.
23111 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
23112 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
23113 (_dl_non_dynamic_init): Likewise.
23114 (_dl_aux_init): Likewise.
23115 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
23116 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
23117 Likewise.
23118 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
23119 (__wcsmbs_clone_conv): Likewise.
23120 (__wcsmbs_named_conv): Likewise.
23121
231222017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23123
23124 [BZ #18822]
23125 * include/stdlib.h (__random): Add attribute_hidden.
23126 (__random_r): Likewise.
23127 (__srandom_r): Likewise.
23128 (__initstate_r): Likewise.
23129 (__setstate_r): Likewise.
23130 (__erand48_r): Likewise.
23131 (__nrand48_r): Likewise.
23132 (__jrand48_r): Likewise.
23133 (__srand48_r): Likewise.
23134 (__seed48_r): Likewise.
23135 (__lcong48_r): Likewise.
23136 (__drand48_iterate): Likewise.
23137 (__setenv): Likewise.
23138 (__unsetenv): Likewise.
23139 (__clearenv): Likewise.
23140 (__ptsname_r): Likewise.
23141 (__posix_openpt): Likewise.
23142 (__add_to_environ): Likewise.
23143 (__realpath): Add libc_hidden_proto.
23144 (__ecvt_r): Likewise.
23145 (__fcvt_r): Likewise.
23146 (__qecvt_r): Likewise.
23147 (__qfcvt_r): Likewise.
23148 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
23149 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
23150
231512017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23152
23153 [BZ #18822]
23154 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
23155 * include/time.h (__mktime_internal): Likewise.
23156 * libio/iolibio.h (__fopen_internal): Likewise.
23157
231582017-10-01 John David Anglin <danglin@gcc.gnu.org>
23159
23160 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
23161 pointer in frame.
23162 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
23163 Correct offset used to restore PIC register.
23164
231652017-09-30 John David Anglin <danglin@gcc.gnu.org>
23166
23167 [BZ libc/22165]
23168 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
23169 code to load address of __getcontext_ret when generating PIC code.
23170
231712017-09-30 H.J. Lu <hongjiu.lu@intel.com>
23172
23173 * elf/Makefile (tests-static-internal): Add
23174 tst-tls1-static-non-pie.
23175 (LDFLAGS-tst-tls1-static-non-pie): New.
23176 * elf/tst-tls1-static-non-pie.c: New file.
23177
231782017-09-29 Joseph Myers <joseph@codesourcery.com>
23179
23180 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
23181 (asinh): Define using libm_alias_double.
23182 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
23183 (cbrt): Define using libm_alias_double.
23184 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
23185 <libm-alias-double.h>.
23186 (copysign): Define using libm_alias_double.
23187 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
23188 (erf): Define using libm_alias_double.
23189 (erfc): Likewise.
23190 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
23191 (expm1): Define using libm_alias_double.
23192 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
23193 (fabs): Define using libm_alias_double.
23194 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
23195 libm_alias_double.
23196 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
23197 <libm-alias-double.h>.
23198 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
23199 libm_alias_double.
23200 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
23201 <libm-alias-double.h>.
23202 (getpayload): Define using libm_alias_double.
23203 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
23204 <libm-alias-double.h>.
23205 (llrint): Define using libm_alias_double.
23206 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
23207 (lrint): Define using libm_alias_double.
23208 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
23209 <libm-alias-double.h>.
23210 (nextup): Define using libm_alias_double.
23211 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
23212 <libm-alias-double.h>.
23213 (roundeven): Define using libm_alias_double.
23214 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
23215 libm_alias_double.
23216 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
23217 <libm-alias-double.h>.
23218 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
23219 using libm_alias_double.
23220 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
23221 (cos): Define using libm_alias_double.
23222 (sin): Likewise.
23223 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
23224 <libm-alias-double.h>.
23225 (sincos): Define using libm_alias_double.
23226 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
23227 (tanh): Define using libm_alias_double.
23228 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
23229 <libm-alias-double.h>.
23230 (totalorder): Define using libm_alias_double.
23231 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
23232 <libm-alias-double.h>.
23233 (totalordermag): Define using libm_alias_double.
23234 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
23235 libm_alias_double.
23236 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
23237 libm_alias_double.
23238 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
23239 <libm-alias-double.h>.
23240 (getpayload): Define using libm_alias_double.
23241 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
23242 <libm-alias-double.h>.
23243 (roundeven): Define using libm_alias_double.
23244 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
23245 <libm-alias-double.h>.
23246 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
23247 <libm-alias-double.h>.
23248 (totalorder): Define using libm_alias_double.
23249 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
23250 <libm-alias-double.h>.
23251 (totalordermag): Define using libm_alias_double.
23252 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
23253 libc compat symbol here.
23254 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
23255 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
23256 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
23257 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
23258 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
23259 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
23260 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
23261 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
23262 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
23263 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
23264
232652017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23266
23267 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
23268 _dl_relocate_static_pie instead of _dl_start to compute load
23269 address in static PIE. Return 0 if _DYNAMIC is undefined for
23270 static executable.
23271
232722017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23273
23274 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
23275 _DYNAMIC is undefined for static executable.
23276
232772017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23278
23279 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
23280
232812017-09-29 Joseph Myers <joseph@codesourcery.com>
23282
23283 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23284
232852017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23286
23287 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
23288 (__ieee754_lgamma_r): Use fabs rather than __fabs.
23289 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
23290 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
23291 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
23292 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
23293 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
23294 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
23295 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
23296 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23297 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
23298 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
23299 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
23300 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23301 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
23302 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
23303 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
23304
233052017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23306
23307 * math/bits/cmathcalls.h (cimag): Remove inline.
23308 (creal): Remove inline.
23309 (conj): Remove inline.
23310
233112017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23312
23313 * math/Makefile (type-float-routines): Add e_powf_log2_data.
23314 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
23315 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
23316 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
23317 (issignalingf_inline): Likewise.
23318 (POWF_LOG2_TABLE_BITS): Likewise.
23319 (POWF_LOG2_POLY_ORDER): Likewise.
23320 (POWF_SCALE_BITS): Likewise.
23321 (POWF_SCALE): Likewise.
23322 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
23323 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
23324 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
23325
233262017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23327
23328 * math/Makefile (type-float-routines): Add e_log2f_data.
23329 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
23330 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
23331 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
23332 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
23333 * sysdeps/i386/fpu/e_log2f_data.c: New file.
23334 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
23335 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
23336
233372017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23338
23339 * math/Makefile (type-float-routines): Add e_logf_data.
23340 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
23341 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
23342 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
23343 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
23344 * sysdeps/i386/fpu/e_logf_data.c: New file.
23345 * sysdeps/ia64/fpu/e_logf_data.c: New file.
23346 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
23347
233482017-09-28 H.J. Lu <hongjiu.lu@intel.com>
23349
23350 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
23351 undefined _DYNAMIC in PIE libc.a.
23352 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
23353 Likewse.
23354
233552017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
23356
23357 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
23358 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
23359 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
23360 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
23361 (__signbit): Remove.
23362 (__signbitl): Remove.
23363 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
23364 (__signbit): Remove.
23365 (__signbitl): Remove.
23366 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
23367 (__signbit): Remove.
23368 (__signbitl): Remove.
23369 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
23370 (__signbit): Remove.
23371 (__signbitl): Remove.
23372 * sysdeps/tile/bits/mathinline.h: Delete file.
23373 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
23374 (__signbit): Remove.
23375 (__signbitl): Remove.
23376
233772017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
23378
23379 * math/math.h: Improve handling of C99 isgreater macros.
23380 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
23381 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
23382 * sysdeps/powerpc/bits/mathinline.h: Likewise.
23383 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
23384 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
23385
233862017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
23387
23388 * sysdeps/aarch64/libm-test-ulps: Update.
23389
233902017-09-28 Joseph Myers <joseph@codesourcery.com>
23391
23392 [BZ #22225]
23393 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
23394 math_opt_barrier on argument when doing arithmetic on it.
23395 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
23396 Likewise. Use math_force_eval not math_opt_barrier after
23397 arithmetic.
23398 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
23399 math_opt_barrier on argument when doing arithmetic on it.
23400 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
23401 Likewise.
23402
234032017-09-27 H.J. Lu <hongjiu.lu@intel.com>
23404
23405 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
23406 libc_hidden_def.
23407 (__freeifaddrs): Likewise.
23408
234092017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
23410
23411 * include/dirent.h (__dirfd): New declaration.
23412 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
23413 alias.
23414 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
23415 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
23416 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
23417 * include/unistd.h (__revoke): New declaration.
23418 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
23419 alias.
23420 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
23421 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
23422 revoke.
23423 * include/dirent.h (__seekdir): New declaration.
23424 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
23425 redefine as weak alias.
23426 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
23427 of seekdir.
23428 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
23429 and use libc_hidden_def on them.
23430 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
23431 them.
23432 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
23433 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
23434 instead of getifaddrs and freeifaddrs.
23435
234362017-09-26 H.J. Lu <hongjiu.lu@intel.com>
23437
23438 [BZ #18822]
23439 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
23440 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
23441 (__dso_handle): Remove declaration.
23442 * dlfcn/tstatexit.c (__dso_handle): Removed.
23443 (main): Don't check __dso_handle.
23444 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
23445 (main): Don't check __dso_handle.
23446 * include/dso_handle.h: New file.
23447 * malloc/mtrace.c: Include <dso_handle.h>.
23448 (mtrace): Pass __dso_handle directly.
23449 * nptl/pthread_atfork.c: Include <dso_handle.h>.
23450 (__dso_handle): Remove declaration.
23451 (__pthread_atfork): Pass __dso_handle directly.
23452 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
23453 (__dso_handle): Removed.
23454 * posix/wordexp-test.c: Include <dso_handle.h>.
23455 (__dso_handle): Remove declaration.
23456 (__app_register_atfork): Pass __dso_handle directly.
23457 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
23458 (__dso_handle): Remove declaration.
23459 (at_quick_exit): Pass __dso_handle directly.
23460 * stdlib/atexit.c: Include <dso_handle.h>.
23461 (__dso_handle): Remove declaration.
23462 (atexit): Pass __dso_handle directly.
23463 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
23464 (__dso_handle): Removed.
23465
234662017-09-26 Joseph Myers <joseph@codesourcery.com>
23467
23468 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
23469 using VDSO.
23470
234712017-09-26 Alexey Makhalov <amakhalov@vmware.com>
23472
23473 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
23474 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
23475 values to correct default value for given type.
23476
234772017-09-26 H.J. Lu <hongjiu.lu@intel.com>
23478
23479 [BZ #22101]
23480 * elf/Makefile (tests): Add tst-debug1.
23481 ($(objpfx)tst-debug1): New.
23482 ($(objpfx)tst-debug1.out): Likewise.
23483 ($(objpfx)tst-debug1mod1.so): Likewise.
23484 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
23485 with p_filesz == 0.
23486 * elf/tst-debug1.c: New file.
23487
234882017-09-26 Joseph Myers <joseph@codesourcery.com>
23489
23490 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
23491 Define using __ifunc.
23492
234932017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23494
23495 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
23496 exp2f() values.
23497
234982017-09-26 Joseph Myers <joseph@codesourcery.com>
23499
23500 [BZ #22156]
23501 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
23502
235032017-09-26 Florian Weimer <fweimer@redhat.com>
23504
23505 * resolv/Makefile (tests-internal): Fix typo in comment.
23506
235072017-09-26 Florian Weimer <fweimer@redhat.com>
23508
23509 * resolv/nss_dns/dns-host.c: Fix typo in comment.
23510
235112017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23512
23513 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
23514 Use an union instead of a max_align_t array for __space,
23515 so that __space is the same size on all platforms.
23516 * malloc/scratch_buffer_grow_preserve.c
23517 (__libc_scratch_buffer_grow_preserve): Likewise.
23518
23519 [BZ #22183]
23520 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
23521 version to 2.
23522 * posix/Makefile (routines): Add glob-lstat-compat and
23523 glob64-lstat-compat.
23524 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
23525 * posix/glob-lstat-compat.c: New file.
23526 * posix/glob64-lstat-compat.c: Likewise.
23527 * posix/tst-glob_lstat_compat.c: Likewise.
23528 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
23529 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
23530 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
23531 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
23532 Likewise.
23533 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
23534 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
23535 * posix/glob.c (glob_lstat): New function.
23536 (glob): Rename to __glob and add versioned symbol to 2.27.
23537 (glob_in_dir): Use glob_lstat.
23538 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
23539 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
23540 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
23541 2.27.
23542 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
23543 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
23544 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
23545 gl_lstat on glob call.
23546 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
23547 and glob64 symbols.
23548 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23549 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
23550 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23551 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23552 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
23553 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
23554 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
23555 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
23556 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
23557 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23558 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23559 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
23560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
23561 Likewise.
23562 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
23563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
23564 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23565 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23566 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
23567 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23568 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23569 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
23570 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
23571 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23572 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23573 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23574
235752017-09-25 H.J. Lu <hongjiu.lu@intel.com>
23576
23577 * configure.ac (AS): Require binutils 2.25 or later.
23578 * configure: Regenerated.
23579
235802017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
23581
23582 [BZ #22207]
23583 * stdlib/test-atexit-race-common.c (do_test): Minimize required
23584 VM size.
23585
235862017-09-25 DJ Delorie <dj@redhat.com>
23587
23588 [BZ #22161]
23589 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
23590 resetting timeout.
23591
235922017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
23593
23594 * sysdeps/ieee754/dbl-64/sincos32.h
23595 [SINCCOS32_H]: Remove define.
23596 [SINCOS32_H]: Define.
23597
235982017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
23599
23600 * math/Versions (expf): New libm symbol at GLIBC_2.27.
23601 (exp2f): Likewise.
23602 * math/w_exp2f.c: New file.
23603 * math/w_expf.c: New file.
23604 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
23605 * math/w_expf_compat.c (__expf_compat): Likewise.
23606 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
23607 * sysdeps/ia64/fpu/e_expf.S: Likewise.
23608 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
23609 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23610 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
23611 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
23612 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23613 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23614 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
23615 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
23616 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
23617 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
23618 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23619 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
23620 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
23621 Likewise.
23622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
23623 Likewise.
23624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23625 Likewise.
23626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
23627 Likewise.
23628 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23629 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23630 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
23631 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23632 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23633 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
23634 Likewise.
23635 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23636 Likewise.
23637 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23638 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23639 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23640
236412017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
23642
23643 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
23644 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
23645 (roundtoint, converttoint): Likewise.
23646 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
23647 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
23648 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
23649 * sysdeps/ieee754/flt-32/math_config.h: New file.
23650 * sysdeps/ieee754/flt-32/math_errf.c: New file.
23651 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
23652 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
23653 * sysdeps/i386/fpu/math_errf.c: New file.
23654 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
23655 * sysdeps/ia64/fpu/math_errf.c: New file.
23656 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
23657 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
23658
236592017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23660
23661 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
23662 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
23663 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
23664 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
23665 to make sure that these symbols are defined.
23666 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
23667 of <limits.h>
23668 (__need_NULL): Do not define.
23669 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
23670 alignment.
23671 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
23672 CMGROUP_MAX, cmsgcred): Do not define.
23673 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
23674 NULL.
23675 * bits/socket.h: Likewise.
23676 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
23677 __gettimeofday instead of gettimeofday.
23678 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
23679 instead of settimeofday.
23680
236812017-09-22 Joseph Myers <joseph@codesourcery.com>
23682
23683 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
23684 (asinhf): Define using libm_alias_float.
23685 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
23686 (atanf): Define using libm_alias_float.
23687 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
23688 (cbrtf): Define using libm_alias_float.
23689 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
23690 (ceilf): Define using libm_alias_float.
23691 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
23692 <libm-alias-float.h>.
23693 (copysignf): Define using libm_alias_float.
23694 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
23695 (cosf): Define using libm_alias_float.
23696 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
23697 (erff): Define using libm_alias_float.
23698 (erfcf): Likewise.
23699 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
23700 (expm1f): Define using libm_alias_float.
23701 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
23702 (fabsf): Define using libm_alias_float.
23703 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
23704 (floorf): Define using libm_alias_float.
23705 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
23706 (frexpf): Define using libm_alias_float.
23707 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
23708 libm_alias_float.
23709 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
23710 <libm-alias-float.h>.
23711 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
23712 libm_alias_float.
23713 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
23714 <libm-alias-float.h>.
23715 (getpayloadf): Define using libm_alias_float.
23716 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
23717 <libm-alias-float.h>.
23718 (llrintf): Define using libm_alias_float.
23719 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
23720 <libm-alias-float.h>.
23721 (llroundf): Define using libm_alias_float.
23722 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
23723 (logbf): Define using libm_alias_float.
23724 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
23725 (lrintf): Define using libm_alias_float.
23726 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
23727 (lroundf): Define using libm_alias_float.
23728 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
23729 (modff): Define using libm_alias_float.
23730 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
23731 <libm-alias-float.h>.
23732 (nearbyintf): Define using libm_alias_float.
23733 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
23734 <libm-alias-float.h>.
23735 (nextafterf): Define using libm_alias_float.
23736 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
23737 <libm-alias-float.h>.
23738 (nextupf): Define using libm_alias_float.
23739 * sysdeps/ieee754/flt-32/s_remquof.c: Include
23740 <libm-alias-float.h>.
23741 (remquof): Define using libm_alias_float.
23742 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
23743 (rintf): Define using libm_alias_float.
23744 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
23745 <libm-alias-float.h>.
23746 (roundevenf): Define using libm_alias_float.
23747 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
23748 (roundf): Define using libm_alias_float.
23749 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
23750 using libm_alias_float.
23751 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
23752 <libm-alias-float.h>.
23753 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
23754 Define using libm_alias_float.
23755 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
23756 <libm-alias-float.h>.
23757 (sincosf): Define using libm_alias_float.
23758 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
23759 (sinf): Define using libm_alias_float.
23760 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
23761 (tanf): Define using libm_alias_float.
23762 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
23763 (tanhf): Define using libm_alias_float.
23764 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
23765 <libm-alias-float.h>.
23766 (totalorderf): Define using libm_alias_float.
23767 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
23768 <libm-alias-float.h>.
23769 (totalordermagf): Define using libm_alias_float.
23770 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
23771 (truncf): Define using libm_alias_float.
23772 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
23773 libm_alias_float.
23774 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
23775 libm_alias_float.
23776
237772017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23778
23779 [BZ #22146]
23780 math/math.h: Let fpclassify use the builtin in C++ mode, even
23781 when optimazing for size.
23782
237832017-09-22 Joseph Myers <joseph@codesourcery.com>
23784
23785 * csu/Makefile (generated): Do not add version-info.h.
23786 (before-compile): Likewise.
23787 (all-Banner-files): Remove variable.
23788 ($(objpfx)version-info.h): Remove rule.
23789 * csu/version.c (banner): Do not include "version-info.h".
23790 * libidn/Banner: Remove.
23791 * manual/contrib.texi (Simon Josefsson): New entry.
23792
237932017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23794
23795 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
23796 Remove conditionals on LDBL_MANT_DIG.
23797 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
23798 (__ieee754_lgammal_r): Likewise.
23799
238002017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23801
23802 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
23803 _Float128 and L().
23804 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
23805 _Float128 and L(). Replace _Float128 with long double and L(x)
23806 with xL, throughout the file.
23807 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
23808 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
23809 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
23810 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
23811
238122017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23813
23814 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
23815 sysdeps/ieee754/ldbl-128ibm.
23816 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
23817 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
23818 of including it. Keep _Float128 and L() intact. These will be
23819 reviewed by a separate patch.
23820 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
23821 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
23822 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
23823 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
23824
238252017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23826
23827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
23828 (__finitef128): Define to __redirect___finitef128.
23829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
23830 (__isinff128): Define to __redirect___isinff128.
23831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
23832 (__isnanf128): Define to __redirect___isnanf128.
23833
238342017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23835
23836 * sysdeps/powerpc/powerpc64le/Makefile
23837 (CFLAGS-tst-strtod-nan-locale.c): New variable.
23838 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
23839
238402017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
23841 Carlos O'Donell <carlos@redhat.com>
23842
23843 [BZ #22180]
23844 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
23845 * stdlib/test-dlclose-exit-race.c: New file.
23846 * stdlib/test-dlclose-exit-race-helper.c: New file.
23847 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
23848
238492017-09-21 Joseph Myers <joseph@codesourcery.com>
23850
23851 * crypt/Banner: Remove file.
23852 * nptl/Banner: Likewise.
23853 * resolv/Banner: Likewise.
23854 * soft-fp/Banner: Likewise.
23855 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
23856 ($(objpfx)version.d): Remove dependency on banner.h.
23857 ($(objpfx)version.os): Likewise.
23858 * nptl/version.c (banner): Do not include banner.h.
23859 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
23860 Jelinek and BIND code.
23861
238622017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
23863 Carlos O'Donell <carlos@redhat.com>
23864
23865 * support/xdlfcn.h: New file.
23866 * support/xdlfcn.c: New file.
23867 * support/Makefile (libsupport-routines): Add xdlfcn.
23868 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
23869
238702017-09-20 Joseph Myers <joseph@codesourcery.com>
23871
23872 [BZ #20142]
23873 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23874 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
23875 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
23876 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
23877 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
23878 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
23879 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
23880 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
23881
238822017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
23883 Ricky Zhou <rickyz@google.com>
23884 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
23885
23886 [BZ #14333]
23887 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
23888 Remove atomics.
23889 (__new_exitfn): Fail registration when we finished at_exit processing.
23890 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
23891 * stdlib/on_exit.c (__on_exit): Likewise.
23892 * stdlib/exit.c (__exit_funcs_done): New variable.
23893 (__run_exit_handlers): Use __exit_funcs_lock.
23894 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
23895 declarations.
23896 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
23897 (test-cxa_atexit-race, test-on_exit-race): New tests.
23898 * stdlib/test-atexit-race-common.c: New file.
23899 * stdlib/test-atexit-race.c: New file.
23900 * stdlib/test-at_quick_exit-race.c: New file.
23901 * stdlib/test-cxa_atexit-race.c: New file.
23902 * stdlib/test-on_exit-race.c: New file.
23903
239042017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23905
23906 * benchtests/Makefile: Add exp2f and log2f benchmarks.
23907 * benchtests/exp2f-inputs: Copy of expf-inputs.
23908 * benchtests/log2f-inputs: Copy of logf-inputs.
23909
239102017-09-19 Joseph Myers <joseph@codesourcery.com>
23911
23912 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
23913 Explicitly take address of first element of array arguments in
23914 call to INLINE_SYSCALL.
23915
239162017-09-19 Andreas Schwab <schwab@suse.de>
23917
23918 [BZ #22134]
23919 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
23920 execveat first.
23921 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
23922 unimplemented.
23923 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
23924 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
23925 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
23926 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
23927 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
23928 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
23929 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23930 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
23931 * posix/Makefile (tests): Add tst-fexecve.
23932 * posix/tst-fexecve.c: New file.
23933
239342017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
23935
23936 * benchtests/Makefile: Add logf benchmark.
23937 * benchtests/logf-inputs: Add reduced trace from wrf_r.
23938
239392017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
23940
23941 * benchtests/Makefile: Add expf benchmark.
23942 * benchtests/expf-inputs: Add reduced trace from wrf_r.
23943
239442017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
23945
23946 * csu/Makefile: Add -funwind-tables to libc-start.c.
23947 * debug/Makefile: Add -funwind-tables to backtrace.c.
23948 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
23949 * sysdeps/arm/Makefile: Likewise.
23950 * sysdeps/i386/Makefile: Likewise.
23951 * sysdeps/m68k/Makefile: Likewise.
23952 * sysdeps/mips/Makefile: Likewise.
23953 * sysdeps/nios2/Makefile: Likewise.
23954 * sysdeps/sh/Makefile: Likewise.
23955 * sysdeps/sparc/Makefile: Likewise.
23956
239572017-09-19 Joseph Myers <joseph@codesourcery.com>
23958
23959 * benchtests/Makefile (bench-math): Add trunc and truncf.
23960 (CFLAGS-bench-trunc.c): New variable.
23961 (CFLAGS-bench-truncf.c): Likewise.
23962 * benchtests/trunc-inputs: New file.
23963 * benchtests/truncf-inputs: Likewise.
23964
239652017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23966
23967 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
23968
239692017-09-18 Joseph Myers <joseph@codesourcery.com>
23970
23971 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
23972 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
23973 redefine.
23974 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
23975 (exp10l): Define as weak alias.
23976 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
23977 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
23978 and redefine.
23979 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
23980 (remainderl): Define as weak alias.
23981
23982 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
23983 (fmal): Define using libm_alias_ldouble.
23984 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
23985 (acoshl): Define using libm_alias_ldouble.
23986 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
23987 (acosl): Define using libm_alias_ldouble.
23988 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
23989 (asinl): Define using libm_alias_ldouble.
23990 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
23991 (atan2l): Define using libm_alias_ldouble.
23992 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
23993 (atanhl): Define using libm_alias_ldouble.
23994 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
23995 (coshl): Define using libm_alias_ldouble.
23996 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
23997 (exp10l): Define using libm_alias_ldouble.
23998 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
23999 (exp2l): Define using libm_alias_ldouble.
24000 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
24001 (expl): Define using libm_alias_ldouble.
24002 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
24003 (fmodl): Define using libm_alias_ldouble.
24004 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
24005 (hypotl): Define using libm_alias_ldouble.
24006 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
24007 (j0l): Define using libm_alias_ldouble.
24008 (y0l): Likewise.
24009 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
24010 (j1l): Define using libm_alias_ldouble.
24011 (y1l): Likewise.
24012 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
24013 (jnl): Define using libm_alias_ldouble.
24014 (ynl): Likewise.
24015 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
24016 (log10l): Define using libm_alias_ldouble.
24017 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
24018 (log2l): Define using libm_alias_ldouble.
24019 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
24020 (logl): Define using libm_alias_ldouble.
24021 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
24022 (powl): Define using libm_alias_ldouble.
24023 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
24024 (remainderl): Define using libm_alias_ldouble.
24025 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
24026 (sinhl): Define using libm_alias_ldouble.
24027 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
24028 (sqrtl): Define using libm_alias_ldouble.
24029 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
24030 (tgammal): Define using libm_alias_ldouble.
24031 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
24032 (exp10l): Do not use long_double_symbol here.
24033 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24034 [LIBM_SVID_COMPAT] (remainderl): Likewise.
24035 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
24036 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
24037 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
24038 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
24039 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
24040 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
24041 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
24042 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
24043 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
24044 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
24045 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
24046 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
24047 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
24048 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
24049 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
24050 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
24051 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
24052 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
24053 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
24054 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
24055
240562017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
24057
24058 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
24059 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
24060
240612017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
24062
24063 * io/read.c (read): Add libc_hidden_weak.
24064 * sysdeps/mach/hurd/read.c (read): Likewise.
24065 * io/write.c (write): Likewise.
24066 * sysdeps/mach/hurd/write.c (write): Likewise.
24067 * io/pread64.c (__pread64): Likewise.
24068 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
24069 * posix/pread64.c (__pread64): Add libc_hidden_def.
24070
240712017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24072
24073 * benchtests/scripts/compare_strings.py: New option -g.
24074 (draw_graph): Print a message that a graph is being generated.
24075 (process_results): Generate graph only if -g is passed.
24076 (main): Process option -g.
24077
24078 * benchtests/scripts/compare_strings.py (process_results):
24079 Better spacing for output.
24080
24081 * benchtests/scripts/compare_strings.py: Use argparse.
24082 * benchtests/README: Document existence of compare_strings.py.
24083
240842017-09-15 Joseph Myers <joseph@codesourcery.com>
24085
24086 * math/s_fma.c: Include <libm-alias-double.h>.
24087 (fma): Define using libm_alias_double.
24088 * math/s_nextafter.c: Include <libm-alias-double.h>.
24089 (nextafter): Define using libm_alias_double.
24090 * math/w_acos_compat.c: Include <libm-alias-double.h>.
24091 (acos): Define using libm_alias_double.
24092 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
24093 (aocsh): Define using libm_alias_double.
24094 * math/w_asin_compat.c: Include <libm-alias-double.h>.
24095 (asin): Define using libm_alias_double.
24096 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
24097 (atan2): Define using libm_alias_double.
24098 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
24099 (atanh): Define using libm_alias_double.
24100 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
24101 (cosh): Define using libm_alias_double.
24102 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
24103 (exp10): Define using libm_alias_double.
24104 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
24105 (exp2): Define using libm_alias_double.
24106 * math/w_exp_compat.c: Include <libm-alias-double.h>.
24107 (exp): Define using libm_alias_double.
24108 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
24109 (fmod): Define using libm_alias_double.
24110 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
24111 (hypot): Define using libm_alias_double.
24112 * math/w_j0_compat.c: Include <libm-alias-double.h>.
24113 (j0): Define using libm_alias_double.
24114 (y0): Likewise.
24115 * math/w_j1_compat.c: Include <libm-alias-double.h>.
24116 (j1): Define using libm_alias_double.
24117 (y1): Likewise.
24118 * math/w_jn_compat.c: Include <libm-alias-double.h>.
24119 (jn): Define using libm_alias_double.
24120 (yn): Likewise.
24121 * math/w_log10_compat.c: Include <libm-alias-double.h>.
24122 (log10): Define using libm_alias_double.
24123 * math/w_log2_compat.c: Include <libm-alias-double.h>.
24124 (log2): Define using libm_alias_double.
24125 * math/w_log_compat.c: Include <libm-alias-double.h>.
24126 (log): Define using libm_alias_double.
24127 * math/w_pow_compat.c: Include <libm-alias-double.h>.
24128 (pow): Define using libm_alias_double.
24129 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
24130 (remainder): Define using libm_alias_double.
24131 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
24132 (sinh): Define using libm_alias_double.
24133 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
24134 (sqrt): Define using libm_alias_double.
24135 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
24136 (tgamma): Define using libm_alias_double.
24137 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
24138 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
24139 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
24140 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
24141 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
24142 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
24143 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
24144 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
24145 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
24146 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
24147 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
24148 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
24149 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
24150 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
24151 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
24152 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
24153 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
24154 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
24155 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
24156 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
24157 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
24158 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
24159 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
24160 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
24161 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
24162
24163 * math/e_acoshl.c: Remove.
24164 * math/e_acosl.c: Likewise.
24165 * math/e_asinl.c: Likewise.
24166 * math/e_atan2l.c: Likewise.
24167 * math/e_atanhl.c: Likewise.
24168 * math/e_coshl.c: Likewise.
24169 * math/e_expl.c: Likewise.
24170 * math/e_fmodl.c: Likewise.
24171 * math/e_gammal_r.c: Likewise.
24172 * math/e_hypotl.c: Likewise.
24173 * math/e_j0l.c: Likewise.
24174 * math/e_j1l.c: Likewise.
24175 * math/e_jnl.c: Likewise.
24176 * math/e_lgammal_r.c: Likewise.
24177 * math/e_log10l.c: Likewise.
24178 * math/e_log2l.c: Likewise.
24179 * math/e_logl.c: Likewise.
24180 * math/e_powl.c: Likewise.
24181 * math/e_rem_pio2l.c: Likewise.
24182 * math/e_sinhl.c: Likewise.
24183 * math/e_sqrtf128.c: Likewise.
24184 * math/e_sqrtl.c: Likewise.
24185 * math/k_cosl.c: Likewise.
24186 * math/k_sinl.c: Likewise.
24187 * math/k_tanl.c: Likewise.
24188 * math/s_asinhl.c: Likewise.
24189 * math/s_atanl.c: Likewise.
24190 * math/s_cbrtl.c: Likewise.
24191 * math/s_erfl.c: Likewise.
24192 * math/s_expm1l.c: Likewise.
24193 * math/s_log1pl.c: Likewise.
24194 * math/s_tanhl.c: Likewise.
24195
241962017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24197
24198 [BZ #21745]
24199 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
24200 [$(subdir) = math] (sysdep_calls): New variable. Has the
24201 previous contents of sysdep_routines, but re-sorted..
24202 [$(subdir) = math] (sysdep_routines): Re-use the contents from
24203 sysdep_calls.
24204 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
24205 defined in sysdep_calls and replace by the respective m_* names.
24206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
24207 (compat_symbol): Undefine to avoid duplicated compat symbols in
24208 libc.
24209
242102017-09-15 Joseph Myers <joseph@codesourcery.com>
24211
24212 * math/s_fmaf.c: Include <libm-alias-float.h>.
24213 (fmaf): Define using libm_alias_float.
24214 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
24215 (acosf): Define using libm_alias_float.
24216 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
24217 (acoshf): Define using libm_alias_float.
24218 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
24219 (asinf): Define using libm_alias_float.
24220 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
24221 (atan2f): Define using libm_alias_float.
24222 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
24223 (atanhf): Define using libm_alias_float.
24224 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
24225 (coshf): Define using libm_alias_float.
24226 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
24227 (exp10f): Define using libm_alias_float.
24228 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
24229 (fmodf): Define using libm_alias_float.
24230 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
24231 (hypotf): Define using libm_alias_float.
24232 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
24233 (j0f): Define using libm_alias_float.
24234 (y0f): Likewise.
24235 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
24236 (j1f): Define using libm_alias_float.
24237 (y1f): Likewise.
24238 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
24239 (jnf): Define using libm_alias_float.
24240 (ynf): Likewise.
24241 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
24242 (log10f): Define using libm_alias_float.
24243 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
24244 (log2f): Define using libm_alias_float.
24245 * math/w_logf_compat.c: Include <libm-alias-float.h>.
24246 (logf): Define using libm_alias_float.
24247 * math/w_powf_compat.c: Include <libm-alias-float.h>.
24248 (powf): Define using libm_alias_float.
24249 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
24250 (remainderf): Define using libm_alias_float.
24251 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
24252 (sinhf): Define using libm_alias_float.
24253 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
24254 (sqrtf): Define using libm_alias_float.
24255 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
24256 (tgammaf): Define using libm_alias_float.
24257
242582017-09-14 Joseph Myers <joseph@codesourcery.com>
24259
24260 * include/math.h (roundeven): Change hidden_proto call to
24261 __roundeven.
24262 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
24263 alias.
24264 [NO_LONG_DOUBLE] (__j0l): New strong alias.
24265 (y0): Rename to __y0 and define as weak alias.
24266 [NO_LONG_DOUBLE] (__y0l): New strong alias.
24267 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
24268 alias.
24269 (y0f): Rename to __y0f and define as weak alias.
24270 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
24271 alias.
24272 [NO_LONG_DOUBLE] (__j1l): New strong alias.
24273 (y1): Rename to __y1 and define as weak alias.
24274 [NO_LONG_DOUBLE] (__y1l): New strong alias.
24275 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
24276 alias.
24277 (y1f): Rename to __y1f and define as weak alias.
24278 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
24279 alias.
24280 [NO_LONG_DOUBLE] (__jnl): New strong alias.
24281 (yn): Rename to __yn and define as weak alias.
24282 [NO_LONG_DOUBLE] (__ynl): New strong alias.
24283 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
24284 alias.
24285 (ynf): Rename to __ynf and define as weak alias.
24286 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
24287 (fromfp): Define as weak alias.
24288 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
24289 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
24290 (fromfpx): Define as weak alias.
24291 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
24292 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
24293 __getpayload and define as weak alias.
24294 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
24295 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
24296 __roundeven and define as weak alias.
24297 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
24298 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
24299 __setpayload.
24300 (setpayload): Define as weak alias.
24301 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
24302 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
24303 __setpayloadsig.
24304 (setpayloadsig): Define as weak alias.
24305 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
24306 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
24307 __totalorder and define as weak alias.
24308 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
24309 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
24310 to __totalordermag and define as weak alias.
24311 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
24312 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
24313 (ufromfp): Define as weak alias.
24314 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
24315 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
24316 __ufromfpx.
24317 (ufromfpx): Define as weak alias.
24318 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
24319 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
24320 Rename to __getpayload and define as weak alias.
24321 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
24322 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
24323 Rename to __roundeven and define as weak alias.
24324 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
24325 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
24326 Rename to __totalorder and define as weak alias.
24327 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
24328 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
24329 (totalordermag): Rename to __totalordermag and define as weak
24330 alias.
24331 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
24332 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
24333 macro.
24334 (__roundevenl): Likewise.
24335 (__totalorderl): Likewise.
24336 (__totalordermagl): Likewise
24337 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
24338 __fromfpf128.
24339 (fromfpf128): Define as weak alias.
24340 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
24341 __fromfpxf128.
24342 (fromfpxf128): Define as weak alias.
24343 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
24344 __setpayloadf128.
24345 (setpayloadf128): Define as weak alias.
24346 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
24347 __setpayloadsigf128.
24348 (setpayloadsigf128): Define as weak alias.
24349 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
24350 __ufromfpf128.
24351 (ufromfpf128): Define as weak alias.
24352 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
24353 __ufromfpxf128.
24354 (ufromfpxf128): Define as weak alias.
24355 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
24356 (fromfpf): Define as weak alias.
24357 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
24358 __fromfpxf.
24359 (fromfpxf): Define as weak alias.
24360 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
24361 __getpayloadf and define as weak alias.
24362 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
24363 __roundevenf and define as weak alias.
24364 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
24365 __setpayloadf.
24366 (setpayloadf): Define as weak alias.
24367 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
24368 __setpayloadsigf.
24369 (setpayloadsigf): Define as weak alias.
24370 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
24371 __totalorderf and define as weak alias.
24372 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
24373 Rename to __totalordermagf and define as weak alias.
24374 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
24375 __ufromfpf.
24376 (ufromfpf): Define as weak alias.
24377 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
24378 __ufromfpxf.
24379 (ufromfpxf): Define as weak alias.
24380 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
24381 __fromfpl.
24382 (fromfpl): Define as weak alias.
24383 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
24384 __fromfpxl.
24385 (fromfpxl): Define as weak alias.
24386 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
24387 to __getpayloadl and define as weak alias.
24388 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
24389 __roundevenl and define as weak alias.
24390 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
24391 __setpayloadl.
24392 (setpayloadl): Define as weak alias.
24393 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
24394 __setpayloadsigl.
24395 (setpayloadsigl): Define as weak alias.
24396 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
24397 to __totalorderl and define as weak alias.
24398 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
24399 Rename to __totalordermagl and define as weak alias.
24400 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
24401 __ufromfpl.
24402 (ufromfpl): Define as weak alias.
24403 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
24404 __ufromfpxl.
24405 (ufromfpxl): Define as weak alias.
24406 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
24407 __fromfpl.
24408 (fromfpl): Define as weak alias.
24409 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
24410 __fromfpxl.
24411 (fromfpxl): Define as weak alias.
24412 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
24413 Rename to __getpayloadl and define as weak alias.
24414 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
24415 to __roundevenl and define as weak alias. Call __roundeven
24416 instead of roundeven.
24417 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
24418 __setpayloadl.
24419 (setpayloadl): Define as weak alias.
24420 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
24421 __setpayloadsigl.
24422 (setpayloadsigl): Define as weak alias.
24423 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
24424 Rename to __totalorderl and define as weak alias.
24425 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
24426 Rename to __totalordermagl and define as weak alias.
24427 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
24428 __ufromfpl.
24429 (ufromfpl): Define as weak alias.
24430 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
24431 __ufromfpxl.
24432 (ufromfpxl): Define as weak alias.
24433 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
24434 __fromfpl.
24435 (fromfpl): Define as weak alias.
24436 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
24437 __fromfpxl.
24438 (fromfpxl): Define as weak alias.
24439 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
24440 __getpayloadl and define as weak alias.
24441 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
24442 __roundevenl and define as weak alias.
24443 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
24444 __setpayloadl.
24445 (setpayloadl): Define as weak alias.
24446 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
24447 __setpayloadsigl.
24448 (setpayloadsigl): Define as weak alias.
24449 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
24450 __totalorderl and define as weak alias.
24451 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
24452 Rename to __totalordermagl and define as weak alias.
24453 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
24454 __ufromfpl.
24455 (ufromfpl): Define as weak alias.
24456 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
24457 __ufromfpxl.
24458 (ufromfpxl): Define as weak alias.
24459
244602017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24461
24462 * benchtests/bench-string.h (realloc_bufs): New function.
24463 (test_init): Call it.
24464 * benchtests/bench-memset-large.c (do_test): Likewise.
24465 * benchtests/bench-memset.c (do_test): Likewise.
24466
24467 * benchtests/bench-memset-large.c: Print output in JSON
24468 format.
24469 * benchtests/bench-memset.c: Likewise.
24470
244712017-09-14 Mike FABIAN <mfabian@redhat.com>
24472
24473 [BZ #21084]
24474 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
24475 * iconvdata/Makefile: Add IBM858.
24476 * iconvdata/gconv-modules: Likewise.
24477 * iconvdata/tst-tables.sh: Likewise.
24478 * iconvdata/ibm858.c: New file.
24479 * localedata/charmaps/IBM858: Likewise.
24480
244812017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
24482
24483 [BZ #22023]
24484 * locales/niu_NZ (LC_TIME): copy "niu_NU".
24485 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
24486
244872017-09-14 Mike FABIAN <mfabian@redhat.com>
24488
24489 [BZ #22112]
24490 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
24491 and add tel_int_fmt.
24492
244932017-09-14 Joseph Myers <joseph@codesourcery.com>
24494
24495 * sysdeps/generic/libm-alias-float128.h: New file.
24496 * sysdeps/generic/math-type-macros-float128.h: Include
24497 <libm-alias-float128.h>.
24498 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
24499
245002017-09-13 Joseph Myers <joseph@codesourcery.com>
24501
24502 * sysdeps/generic/libm-alias-ldouble.h: New file.
24503 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
24504 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
24505 * sysdeps/generic/math-type-macros-ldouble.h: Include
24506 <libm-alias-ldouble.h>.
24507 [!declare_mgen_alias] (declare_mgen_alias): Define to use
24508 libm_alias_ldouble.
24509
245102017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
24511
24512 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
24513 * math/w_exp_compat.c: ... here.
24514 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
24515 * math/w_expf_compat.c: ... here.
24516 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
24517 * math/w_expl_compat.c: ... here.
24518 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
24519 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
24520 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
24521 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
24522
245232017-09-13 Joseph Myers <joseph@codesourcery.com>
24524
24525 * math/w_scalbln_template.c (strong_alias): Do not undefine and
24526 redefine.
24527 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
24528 macro.
24529 (ldexpl): Only define as compat symbol for libc, not libm.
24530 (scalbnl): Define as compat symbol for libc here.
24531 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
24532 define for [IS_IN (libc)].
24533 (__ldexpl_2): Remove alias.
24534 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
24535 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
24536 name in long_double_symbol call.
24537 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
24538 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24539 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24540 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
24541 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
24542 Remove macro.
24543 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
24544 Define as compat symbol.
24545
245462017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24547
24548 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
24549 * sysdeps/unix/sysv/linux/alpha/Makefile
24550 [$(subdir) = csu] (sysdep_routines): Remove rule.
24551
245522017-09-13 Joseph Myers <joseph@codesourcery.com>
24553
24554 * sysdeps/generic/libm-alias-double.h: New file.
24555 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
24556 * sysdeps/generic/math-type-macros-double.h: Include
24557 <libm-alias-double.h>.
24558 [declare_mgen_alias] (declare_mgen_alias): Define to use
24559 libm_alias_double.
24560 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
24561 (M_LIBM_NEED_COMPAT): Remove macro.
24562 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
24563 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
24564 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
24565 code.
24566 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24567 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24568 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24569 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24570 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24571 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24572 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24573 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24574 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24575 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24576 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24577 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24578 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24579 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24580 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24581 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24582 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24583 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24584 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24585 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24586 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24587 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24588 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24589 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24590 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24591 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24592 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24593 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
24594 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
24595 macro.
24596 (declare_mgen_alias): New macro.
24597 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
24598 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
24599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
24600 (M_LIBM_NEED_COMPAT): Remove macro.
24601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
24602 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
24603 <first-versions.h>.
24604 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
24605 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
24606
246072017-09-12 Joseph Myers <joseph@codesourcery.com>
24608
24609 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
24610 (declare_mgen_alias_2): Remove.
24611 * sysdeps/generic/math-type-macros-double.h
24612 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
24613 Likewise.
24614 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
24615 alias.
24616 (ldexp): Define with declare_mgen_alias.
24617 (scalbn): Likewise.
24618
246192017-09-12 Steve Ellcey <sellcey@cavium.com>
24620
24621 * grp/initgroups.c: Include config.h.
24622 (DEFAULT_CONFIG): New macro.
24623 (internal_getgrouplist): Use DEFAULT_CONFIG.
24624 * nscd/initgrcache.c (addinitgroupsX): Likewise.
24625 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
24626 (DEFAULT_DEFCONFIG): New macro.
24627 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
24628 * nss/grp-lookup.c: Include config.h
24629 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
24630 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
24631 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
24632 * manual/nss.texi: Update default values section.
24633
246342017-09-12 H.J. Lu <hongjiu.lu@intel.com>
24635
24636 [BZ #21967]
24637 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
24638 New.
24639 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
24640 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24641 Handle MathVec_Prefer_No_AVX512.
24642 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
24643 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
24644 is set.
24645
246462017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
24647
24648 * posix/sched_primax.c (__sched_get_priority_max): Add
24649 libc_hidden_def.
24650 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
24651 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
24652 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
24653 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
24654 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
24655 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
24656 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
24657 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
24658 Add aliases.
24659
246602017-09-11 Joseph Myers <joseph@codesourcery.com>
24661
24662 * sysdeps/generic/libm-alias-float.h: New file.
24663 * sysdeps/generic/math-type-macros-float.h: Include
24664 <libm-alias-float.h>.
24665 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
24666
246672017-09-11 H.J. Lu <hongjiu.lu@intel.com>
24668
24669 [BZ #22093]
24670 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
24671 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
24672 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
24673 (HWCAP_IMPORTANT): Likewise.
24674 (HWCAP_X86_64): New enum.
24675 (HWCAP_X86_AVX512_1): Updated.
24676 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
24677 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
24678 (modules-names): Add x86_64/tst-x86_64mod-1.
24679 (LDFLAGS-tst-x86_64mod-1.so): New.
24680 ($(objpfx)tst-x86_64-1): Likewise.
24681 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
24682 (tst-x86_64-1-clean): Likewise.
24683 * sysdeps/x86_64/tst-x86_64-1.c: New file.
24684 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
24685
246862017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
24687
24688 * po/sv.po: Update translations.
24689 * po/fr.po: Likewise.
24690
246912017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
24692
24693 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
24694 seconds.
24695 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
24696 seconds.
24697 * elf/rtld-Rules: Fix $(error) use.
24698
246992017-09-09 Mike FABIAN <mfabian@redhat.com>
24700
24701 [BZ #14925]
24702 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
24703 * locale/iso-639.def: Change “Bengali” to “Bangla”.
24704 * localedata/locales/bn_BD: “Bengali” was still used in some
24705 comments. Change it to “Bangla”.
24706
247072017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
24708
24709 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
24710
247112017-09-08 Steve Ellcey <sellcey@cavium.com>
24712
24713 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
24714 thunderx2t99p1 to list of cpu names.
24715 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
24716 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
24717
247182017-09-08 Steve Ellcey <sellcey@cavium.com>
24719
24720 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
24721 Use strcmp instead of tunable_is_name.
24722
247232017-09-08 Joseph Myers <joseph@codesourcery.com>
24724
24725 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
24726 (F_GET_RW_HINT): New macro.
24727 [__USE_GNU] (F_SET_RW_HINT): Likewise.
24728 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
24729 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
24730 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
24731 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
24732 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
24733 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
24734 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
24735 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
24736
24737 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
24738 (F_ADD_SEALS): New macro.
24739 [__USE_GNU] (F_GET_SEALS): Likewise.
24740 [__USE_GNU] (F_SEAL_SEAL): Likewise.
24741 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
24742 [__USE_GNU] (F_SEAL_GROW): Likewise.
24743 [__USE_GNU] (F_SEAL_WRITE): Likewise.
24744
247452017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24746
24747 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
24748 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
24749 * posix/glob_internal.h (__glob_pattern_type):
24750 * posix/glob.c (glob):
24751 * posix/glob_pattern_p.c (__glob_pattern_p):
24752 Use them.
24753
24754 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
24755 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
24756 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
24757 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
24758 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
24759 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
24760 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
24761 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
24762 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
24763 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24764 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
24765 * sysdeps/wordsize-64/glob.c: Likewise.
24766 * sysdeps/wordsize-64/glob64.c: Likewise.
24767 * sysdeps/wordsize-64/globfree.c: Likewise.
24768 * sysdeps/wordsize-64/globfree64.c: Likewise.
24769 * sysdeps/unix/sysv/linux/glob.c: New file.
24770 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
24771 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
24772 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
24773 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
24774 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
24775 adds !GLOB_NO_OLD_VERSION as an extra condition.
24776 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
24777 using relative path instead of absolute one.
24778 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
24779 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
24780 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
24781 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
24782 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
24783 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
24784
24785 [BZ #1062]
24786 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
24787 (glob): Use the same scratch buffer for both getlogin_r and
24788 getpwnam_r. Don’t require preallocation of the login name. This
24789 simplifies storage allocation, and corrects the handling of
24790 long login names.
24791
24792 [BZ #1062]
24793 * posix/glob.c (glob): Port recent patches to platforms
24794 lacking getpwnam_r.
24795 (glob): Fix longstanding misuse of errno after getpwnam_r, which
24796 returns an error number rather than setting errno.
24797
24798 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
24799 instead of GCC extension.
24800 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
24801 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
24802 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
24803
24804 [BZ #866]
24805 [BZ #1062]
24806 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
24807 * posix/bug-glob1.c: Remove file.
24808 * posix/tst-glob_symlinks.c: New file.
24809 * posix/glob.c (__lstat64): New macro.
24810 (is_dir): New function.
24811 (glob, glob_in_dir): Match symlinks even if they are dangling.
24812 (link_stat, link_exists_p): Remove. All uses removed.
24813
24814 [BZ #1062]
24815 [BZ #19971]
24816 * posix/glob.c (struct readdir_result): Remove skip_entry member.
24817 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
24818 All uses removed.
24819
24820 [BZ #1062]
24821 CVE-2017-15671
24822 * posix/Makefile (routines): Add globfree, globfree64, and
24823 glob_pattern_p.
24824 * posix/flexmember.h: New file.
24825 * posix/glob_internal.h: Likewise.
24826 * posix/glob_pattern_p.c: Likewise.
24827 * posix/globfree.c: Likewise.
24828 * posix/globfree64.c: Likewise.
24829 * sysdeps/gnu/globfree64.c: Likewise.
24830 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
24831 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
24832 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
24833 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
24834 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
24835 * sysdeps/wordsize-64/globfree.c: Likewise.
24836 * sysdeps/wordsize-64/globfree64.c: Likewise.
24837 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
24838 [NDEBUG): Remove comments.
24839 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
24840 (dirent_type): New type. Use uint_fast8_t not
24841 uint8_t, as C99 does not require uint8_t.
24842 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
24843 (struct readdir_result): Use dirent_type. Do not define skip_entry
24844 unless it is needed; this saves a byte on platforms lacking d_ino.
24845 (readdir_result_type, readdir_result_skip_entry):
24846 New functions, replacing ...
24847 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
24848 these functions, which were removed. This makes the callers
24849 easier to read. All callers changed.
24850 (D_INO_TO_RESULT): Now empty if there is no d_ino.
24851 (size_add_wrapv, glob_use_alloca): New static functions.
24852 (glob, glob_in_dir): Check for size_t overflow in several places,
24853 and fix some size_t checks that were not quite right.
24854 Remove old code using SHELL since Bash no longer
24855 uses this.
24856 (glob, prefix_array): Separate MS code better.
24857 (glob_in_dir): Remove old Amiga and VMS code.
24858 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
24859 separate files.
24860 (glob_in_dir): Do not rely on undefined behavior in accessing
24861 struct members beyond their bounds. Use a flexible array member
24862 instead
24863 (link_stat): Rename from link_exists2_p and return -1/0 instead of
24864 0/1. Caller changed.
24865 (glob): Fix memory leaks.
24866 * posix/glob64 (globfree64): Move to separate file.
24867 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
24868 (globfree64): Remove hidden alias.
24869 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
24870 oldglob.
24871 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
24872 separate file.
24873 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
24874 define.
24875 Move compat code to separate file.
24876 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
24877 separate file.
24878
248792017-09-07 H.J. Lu <hongjiu.lu@intel.com>
24880
24881 * resolv/tst-resolv-qtypes.c (domain): Changed to
24882 "const char domain[] =".
24883
248842017-09-07 Joseph Myers <joseph@codesourcery.com>
24885
24886 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
24887 version to 3.1.6.
24888
24889 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
24890 (TCP_MD5SIG_EXT): Likewise.
24891 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
24892 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
24893 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
24894
24895 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
24896
248972017-09-07 Mike FABIAN <mfabian@redhat.com>
24898
24899 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
24900
249012017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
24902
24903 [BZ #22100]
24904 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
24905
249062017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
24907
24908 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
24909 before assuming that the file is empty. Avoid testing buffer content
24910 when nread == 0.
24911
249122017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24913
24914 [BZ #18858]
24915 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
24916 Remove define.
24917 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
24918 Likewise.
24919 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
24920 Likewise.
24921 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
24922 Likewise.
24923 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
24924 Likewise.
24925 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
24926 Likewise.
24927 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
24928 Likewise.
24929
249302017-09-06 Florian Weimer <fweimer@redhat.com>
24931
24932 * malloc/dynarray_emplace_enlarge.c
24933 (__libc_dynarray_emplace_enlarge): Add missing else.
24934
249352017-09-06 Florian Weimer <fweimer@redhat.com>
24936
24937 [BZ #22096]
24938 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
24939 case of failure to obtain the global conf object.
24940
249412017-09-06 Florian Weimer <fweimer@redhat.com>
24942
24943 [BZ #22095]
24944 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
24945 dynarray allocation failure.
24946
249472017-09-06 Florian Weimer <fweimer@redhat.com>
24948
24949 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
24950 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
24951 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
24952 New functions.
24953 (response): Call them. Add 'p', '6' flag processing.
24954 (test_reverse): New function.
24955 (test_get2_any): Call it.
24956 (test_no_inet6): Add 'p' test.
24957 (test_inet6): Likewise.
24958
249592017-09-06 Florian Weimer <fweimer@redhat.com>
24960
24961 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
24962 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
24963 the QNAME.
24964 (test_gai): Adjust query names. Add additional tests.
24965 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
24966 test_get2. Adjust query names. Add additional tests.
24967 (test_no_inet6): New function, extracted from threadfunc.
24968 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
24969 Add additional tests.
24970
249712017-09-06 Mike FABIAN <mfabian@redhat.com>
24972
24973 [BZ #22070]
24974 * localedata/unicode-gen/utf8_gen.py: Set the width for
24975 characters with Prepended_Concatenation_Mark property to 1
24976 * localedata/charmaps/UTF-8: Updated using the improved script.
24977
249782017-09-06 Mike FABIAN <mfabian@redhat.com>
24979
24980 [BZ #21750]
24981 * localedata/unicode-gen/utf8_gen.py: Improve the script to
24982 use the range notation for all ranges of neighbouring characters
24983 with the same width.
24984
249852017-09-05 Joseph Myers <joseph@codesourcery.com>
24986
24987 * sysdeps/generic/math-type-macros-double.h: Include
24988 <math-svid-compat.h>.
24989 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24990 * sysdeps/generic/math-type-macros-float.h: Include
24991 <math-svid-compat.h>.
24992 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24993 * sysdeps/generic/math-type-macros-ldouble.h: Include
24994 <math-svid-compat.h>.
24995 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24996 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
24997 condition.
24998 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
24999 * math/w_acosf_compat.c: Likewise.
25000 * math/w_acosh_compat.c: Likewise.
25001 * math/w_acoshf_compat.c: Likewise.
25002 * math/w_acoshl_compat.c: Likewise.
25003 * math/w_acosl_compat.c: Likewise.
25004 * math/w_asin_compat.c: Likewise.
25005 * math/w_asinf_compat.c: Likewise.
25006 * math/w_asinl_compat.c: Likewise.
25007 * math/w_atan2_compat.c: Likewise.
25008 * math/w_atan2f_compat.c: Likewise.
25009 * math/w_atan2l_compat.c: Likewise.
25010 * math/w_atanh_compat.c: Likewise.
25011 * math/w_atanhf_compat.c: Likewise.
25012 * math/w_atanhl_compat.c: Likewise.
25013 * math/w_cosh_compat.c: Likewise.
25014 * math/w_coshf_compat.c: Likewise.
25015 * math/w_coshl_compat.c: Likewise.
25016 * math/w_exp10_compat.c: Likewise.
25017 * math/w_exp10f_compat.c: Likewise.
25018 * math/w_exp10l_compat.c: Likewise.
25019 * math/w_exp2_compat.c: Likewise.
25020 * math/w_exp2f_compat.c: Likewise.
25021 * math/w_exp2l_compat.c: Likewise.
25022 * math/w_fmod_compat.c: Likewise.
25023 * math/w_fmodf_compat.c: Likewise.
25024 * math/w_fmodl_compat.c: Likewise.
25025 * math/w_hypot_compat.c: Likewise.
25026 * math/w_hypotf_compat.c: Likewise.
25027 * math/w_hypotl_compat.c: Likewise.
25028 * math/w_j0_compat.c: Likewise.
25029 * math/w_j0f_compat.c: Likewise.
25030 * math/w_j0l_compat.c: Likewise.
25031 * math/w_j1_compat.c: Likewise.
25032 * math/w_j1f_compat.c: Likewise.
25033 * math/w_j1l_compat.c: Likewise.
25034 * math/w_jn_compat.c: Likewise.
25035 * math/w_jnf_compat.c: Likewise.
25036 * math/w_jnl_compat.c: Likewise.
25037 * math/w_lgamma_r_compat.c: Likewise.
25038 * math/w_lgammaf_r_compat.c: Likewise.
25039 * math/w_lgammal_r_compat.c: Likewise.
25040 * math/w_log10_compat.c: Likewise.
25041 * math/w_log10f_compat.c: Likewise.
25042 * math/w_log10l_compat.c: Likewise.
25043 * math/w_log2_compat.c: Likewise.
25044 * math/w_log2f_compat.c: Likewise.
25045 * math/w_log2l_compat.c: Likewise.
25046 * math/w_log_compat.c: Likewise.
25047 * math/w_logf_compat.c: Likewise.
25048 * math/w_logl_compat.c: Likewise.
25049 * math/w_pow_compat.c: Likewise.
25050 * math/w_powf_compat.c: Likewise.
25051 * math/w_powl_compat.c: Likewise.
25052 * math/w_remainder_compat.c: Likewise.
25053 * math/w_remainderf_compat.c: Likewise.
25054 * math/w_remainderl_compat.c: Likewise.
25055 * math/w_sinh_compat.c: Likewise.
25056 * math/w_sinhf_compat.c: Likewise.
25057 * math/w_sinhl_compat.c: Likewise.
25058 * math/w_sqrt_compat.c: Likewise.
25059 * math/w_sqrtf_compat.c: Likewise.
25060 * math/w_sqrtl_compat.c: Likewise.
25061 * math/w_tgamma_compat.c: Likewise.
25062 * math/w_tgammaf_compat.c: Likewise.
25063 * math/w_tgammal_compat.c: Likewise.
25064 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
25065 [LIBM_SVID_COMPAT].
25066 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
25067 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
25068 [LIBM_SVID_COMPAT].
25069 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
25070 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
25071 [LIBM_SVID_COMPAT].
25072 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
25073 * sysdeps/i386/fpu/w_sqrt.c: New file.
25074 * sysdeps/ia64/fpu/w_acos.c: Likewise.
25075 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
25076 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
25077 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
25078 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
25079 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
25080 * sysdeps/ia64/fpu/w_asin.c: Likewise.
25081 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
25082 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
25083 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
25084 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
25085 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
25086 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
25087 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
25088 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
25089 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
25090 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
25091 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
25092 * sysdeps/ia64/fpu/w_exp.c: Likewise.
25093 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
25094 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
25095 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
25096 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
25097 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
25098 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
25099 * sysdeps/ia64/fpu/w_expf.c: Likewise.
25100 * sysdeps/ia64/fpu/w_expl.c: Likewise.
25101 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
25102 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
25103 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
25104 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
25105 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
25106 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
25107 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
25108 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
25109 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
25110 * sysdeps/ia64/fpu/w_log.c: Likewise.
25111 * sysdeps/ia64/fpu/w_log10.c: Likewise.
25112 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
25113 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
25114 * sysdeps/ia64/fpu/w_log2.c: Likewise.
25115 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
25116 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
25117 * sysdeps/ia64/fpu/w_logf.c: Likewise.
25118 * sysdeps/ia64/fpu/w_logl.c: Likewise.
25119 * sysdeps/ia64/fpu/w_pow.c: Likewise.
25120 * sysdeps/ia64/fpu/w_powf.c: Likewise.
25121 * sysdeps/ia64/fpu/w_powl.c: Likewise.
25122 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
25123 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
25124 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
25125 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
25126 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
25127 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
25128 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
25129 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
25130 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
25131 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
25132 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
25133 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
25134 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
25135 [LIBM_SVID_COMPAT].
25136 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
25137 * sysdeps/ieee754/k_standard.c: Likewise.
25138 * sysdeps/ieee754/k_standardf.c: Likewise.
25139 * sysdeps/ieee754/k_standardl.c: Likewise.
25140 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
25141 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
25142 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
25143 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
25144 long_double_symbol call on [LIBM_SVID_COMPAT].
25145 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
25146 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
25147 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
25148 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
25149 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
25150 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
25151 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
25152 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
25153 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
25154 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
25155 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
25156 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25157 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
25158 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
25159 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
25160 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
25161 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
25162 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
25163 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
25164 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
25165 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
25166 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
25167
251682017-09-05 Steve Ellcey <sellcey@cavium.com>
25169
25170 * include/shlib-compat.h (TEST_COMPAT): New Macro.
25171 * malloc/tst-mallocstate.c: Convert from test-skeleton
25172 to test-driver. Ifdef code using TEST_COMPAT macro.
25173 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
25174 * math/test-matherr.c: Likewise.
25175
251762017-09-05 Joseph Myers <joseph@codesourcery.com>
25177
25178 [BZ #22086]
25179 * debug/pcprofiledump.c (main): Use byte-swapped mask when
25180 comparing word with byte-swapped constant.
25181
251822017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
25183
25184 [BZ #20498]
25185 * locale/iso-639.def: add Miskito.
25186 * localedata/SUPPORTED: Add miq_NI/UTF-8.
25187 * localedata/locales/miq_NI: New file.
25188
251892017-09-04 H.J. Lu <hongjiu.lu@intel.com>
25190
25191 [BZ #18822]
25192 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
25193 (__mkdir): Likewise.
25194 * io/chmod.c (__chmod): Add libc_hidden_def.
25195 * io/mkdir.c (__mkdir): Likewise.
25196 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
25197 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
25198 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
25199 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
25200
252012017-09-04 Joseph Myers <joseph@codesourcery.com>
25202
25203 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
25204 version to 4.13.
25205
25206 [BZ #22082]
25207 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
25208 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
25209
252102017-09-04 Florian Weimer <fweimer@redhat.com>
25211
25212 * math/math.h: Issue warning if log is defined.
25213
252142017-09-04 Joseph Myers <joseph@codesourcery.com>
25215
25216 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25217 kernel version to 4.13.
25218
252192017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25220
25221 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
25222 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
25223 parameter.
25224 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
25225 just <bits/types.h>.
25226 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
25227 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
25228 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
25229 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
25230 * misc/preadv2.c: Include <errno.h>.
25231 * misc/preadv64v2.c: Include <errno.h>.
25232 * misc/pwritev2.c: Include <errno.h>.
25233 * misc/pwritev64v2.c: Include <errno.h>.
25234 * sysdeps/posix/preadv2.c: Include <errno.h>.
25235 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
25236 Fix <unistd.h> inclusion.
25237 * sysdeps/posix/pwritev2.c: Include <errno.h>.
25238 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
25239 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
25240 __strtoul_internal): New functions.
25241 * sysdeps/posix/pause.c: Include <sigsetops.h>.
25242 * sysdeps/posix/system.c: Include <sigsetops.h>.
25243 * sysdeps/mach/hurd/i386/Makefile
25244 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
25245 [$(subdir) = csu] (sysdep-only-routines): Likewise.
25246 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
25247 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
25248 __feraiseexcept_renamed to feraiseexcept instead of
25249 __GI_feraiseexcept.
25250 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
25251 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
25252 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
25253 RWF_NOWAIT): Define to 0 if undefined already.
25254 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
25255 boils down to 0.
25256 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
25257 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
25258
252592017-09-01 Joseph Myers <joseph@codesourcery.com>
25260
25261 * manual/math.texi (pow10): Do not document.
25262 (pow10f): Likewise.
25263 (pow10l): Likewise.
25264 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
25265 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
25266 * math/libm-test-exp10.inc (pow10_test): Remove.
25267 (do_test): Do not call pow10.
25268 * math/w_exp10_compat.c (pow10): Make into compat symbol.
25269 [NO_LONG_DOUBLE] (pow10l): Likewise.
25270 * math/w_exp10f_compat.c (pow10f): Likewise.
25271 * math/w_exp10l_compat.c (pow10l): Likewise.
25272 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
25273 (pow10): Make into compat symbol.
25274 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
25275 (pow10f): Make into compat symbol.
25276 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
25277 (pow10l): Make into compat symbol.
25278 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
25279 pow10.
25280 (CFLAGS-nldbl-pow10.c): Remove variable..
25281 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
25282 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
25283 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
25284 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
25285 Undefine and redefine.
25286 (pow10l): Make into compat symbol.
25287 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
25288 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
25289 * sysdeps/arm/libm-test-ulps: Likewise.
25290 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
25291 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25292 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25293 * sysdeps/microblaze/libm-test-ulps: Likewise.
25294 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25295 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25296 * sysdeps/nios2/libm-test-ulps: Likewise.
25297 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25298 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
25299 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
25300 * sysdeps/sh/libm-test-ulps: Likewise.
25301 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
25302 * sysdeps/tile/libm-test-ulps: Likewise.
25303 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25304
253052017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
25306
25307 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
25308
253092017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25310
25311 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
25312 "../ChangeLog.old/ChangeLog.8".
25313 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
25314 "../ChangeLog.old/ChangeLog.14".
25315
253162017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25317
25318 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
25319 Threads Library.
25320
253212017-09-01 Joseph Myers <joseph@codesourcery.com>
25322
25323 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
25324
253252017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25326
25327 * csu/version.c (banner): Remove "by Roland McGrath et al.".
25328 * nptl/Banner: Remove "by Ulrich Drepper et al.".
25329
253302017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
25331
25332 * stdlib/tst-atexit-common.c (do_test): Test support for at least
25333 32 atexit handlers.
25334
253352017-09-01 Zack Weinberg <zackw@panix.com>
25336
25337 * math/math.h (HUGE_VAL): Improve commentary.
25338
253392017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25340 Andreas Schwab <schwab@suse.de>
25341
25342 [BZ #21530]
25343 * include/stdio.h (__gen_tempfd): New function.
25344 * stdio-common/Makefile (routines): Add gentempfd.
25345 * stdio-common/gentempfd.c: New file.
25346 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
25347 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
25348 unnamed file first.
25349
253502017-09-01 Florian Weimer <fweimer@redhat.com>
25351
25352 [BZ #21915]
25353 [BZ #21922]
25354 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
25355 result to determine success or failure, not the errno value.
25356 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
25357 (tst-nss-files-hosts-erange): Link with -ldl.
25358 * nss/tst-nss-files-hosts-erange.c: New file.
25359 * nss/tst-resolv-basic.c (response): Handle nodata.example.
25360 (do_test): Add NO_DATA tests.
25361 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
25362 (do_test): Call it.
25363
253642017-09-01 Florian Weimer <fweimer@redhat.com>
25365
25366 [BZ #21922]
25367 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
25368 coming from gethostbyname2_r.
25369
253702017-09-01 Florian Weimer <fweimer@redhat.com>
25371
25372 * support/namespace.h (struct support_chroot_configuration): Add
25373 hosts, host_conf.
25374 (struct support_chroot): Add path_hosts, path_host_conf.
25375 * support/support_chroot.c (write_file): New function.
25376 (support_chroot_create): Call it to process /etc/resolv.conf,
25377 /etc/hosts, /etc/host.conf.
25378 (support_chroot_free): Update.
25379
253802017-09-01 Florian Weimer <fweimer@redhat.com>
25381
25382 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
25383 status indicates it is set.
25384
253852017-09-01 Florian Weimer <fweimer@redhat.com>
25386
25387 [BZ #20532]
25388 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
25389 function lookup failures more reliable.
25390
253912017-09-01 Florian Weimer <fweimer@redhat.com>
25392
25393 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
25394 (getcanonname): Likewise.
25395 (gaih_inet): Likewise.
25396
253972017-09-01 Florian Weimer <fweimer@redhat.com>
25398
25399 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
25400 (getcanonname): Likewise.
25401 (gaih_inet): Likewise.
25402
254032017-08-31 Steve Ellcey <sellcey@cavium.com>
25404 Richard Henderson <rth@twiddle.net>
25405
25406 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
25407 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
25408 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
25409 (IREG_SIZE, OREG_SIZE): New macros.
25410 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
25411 (IREG_SIZE, OREG_SIZE): New macros.
25412 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
25413 (IREG_SIZE): New macro.
25414 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
25415 (IREG_SIZE): New macro.
25416 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
25417 New includes.
25418 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
25419 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
25420 (__CONCATX): Handle exceptions correctly on large values that may
25421 set FE_INVALID.
25422 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
25423 Initialize if not already set.
25424 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
25425
254262017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25427
25428 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
25429 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
25430 Likewise.
25431 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
25432 Likewise.
25433 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
25434 Likewise.
25435 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
25436 Likewise.
25437 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
25438 Likewise.
25439 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
25440 Likewise.
25441 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
25442 Likewise.
25443 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
25444 (NO_CANCELLATION): Likewise.
25445 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
25446 Likewise.
25447 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
25448 Likewise.
25449 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
25450 Likewise.
25451 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
25452 (NO_CANCELLATION): Likewise.
25453 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
25454 (NO_CANCELLATION): Likewise.
25455 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
25456 Likewise
25457 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
25458 Likewise.
25459 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
25460 Likewise.
25461 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
25462 Likewise.
25463 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
25464 hidden prototype.
25465 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
25466 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
25467
254682017-08-31 Steve Ellcey <sellcey@cavium.com>
25469
25470 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
25471 in resolver call.
25472
254732017-08-31 Florian Weimer <fweimer@redhat.com>
25474
25475 * include/libc-symbols.h (internal_function): Remove.
25476
254772017-08-31 Florian Weimer <fweimer@redhat.com>
25478
25479 * stdlib/fmtmsg.c (internal_addseverity): Remove
25480 internal_function.
25481
254822017-08-31 Florian Weimer <fweimer@redhat.com>
25483
25484 * stdio-common/printf_fp.c (group_number): Remove
25485 internal_function.
25486 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
25487
254882017-08-31 Florian Weimer <fweimer@redhat.com>
25489
25490 * posix/fnmatch.c (internal_function): Remove definition.
25491 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
25492 * posix/regcomp.c (peek_token, init_word_char)
25493 (duplicate_node_closure, fetch_token, peek_token)
25494 (peek_token_bracket, build_range_exp, build_collating_symbol):
25495 Likewise.
25496 * posix/regex_internal.c (re_string_construct_common)
25497 (create_ci_newstate, create_cd_newstate, re_string_allocate)
25498 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
25499 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
25500 (re_string_translate_buffer, re_string_reconstruct)
25501 (re_string_peek_byte_case, re_string_fetch_byte_case)
25502 (re_string_destruct, re_string_context_at, re_node_set_alloc)
25503 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
25504 (re_node_set_add_intersect, re_node_set_init_union)
25505 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
25506 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
25507 (re_dfa_add_node, calc_state_hash, re_acquire_state)
25508 (re_acquire_state_context): Likewise.
25509 * posix/regex_internal.h (internal_function): Remove definition.
25510 (re_string_realloc_buffers, build_wcs_buffer)
25511 (build_wcs_upper_buffer, build_upper_buffer)
25512 (re_string_translate_buffer, re_string_context_at)
25513 (re_string_char_size_at, re_string_wchar_at)
25514 (re_string_elem_size_at): Likewise.
25515 * posix/regexec.c (match_ctx_init, match_ctx_clean)
25516 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
25517 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
25518 (re_search_internal, re_search_2_stub, re_search_stub)
25519 (re_copy_regs, prune_impossible_nodes, check_matching)
25520 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
25521 (free_fail_stack_return, sift_states_iter_mb)
25522 (sift_states_backward, build_sifted_states)
25523 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
25524 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
25525 (check_subexp_limits, sift_states_bkref, merge_state_array)
25526 (find_recover_state, transit_state, merge_state_with_log)
25527 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
25528 (transit_state_mb, transit_state_bkref, get_subexp)
25529 (get_subexp_sub, find_subexp_node, check_arrival)
25530 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
25531 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
25532 (check_node_accept_bytes, find_collation_sequence_value)
25533 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
25534 (acquire_init_state_context, check_halt_node_context)
25535 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
25536 (sub_epsilon_src_nodes): Likewise.
25537 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
25538 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
25539 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
25540 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
25541 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
25542 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
25543 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
25544 * sysdeps/posix/ttyname.c (getttyname): Likewise.
25545 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
25546 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
25547 (PREADV): Likewise.
25548 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
25549 (PREADV): Likewise.
25550 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
25551 (PWRITEV): Likewise.
25552 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
25553 (PWRITEV): Likewise.
25554 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
25555 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
25556
255572017-08-31 Florian Weimer <fweimer@redhat.com>
25558
25559 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
25560 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
25561 Remove internal_function.
25562 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
25563 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
25564 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
25565 (__deallocate_stack, __libc_pthread_init)
25566 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
25567 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
25568 (__libc_disable_asynccancel, __librt_disable_asynccancel):
25569 Likewise.
25570 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
25571 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
25572 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
25573 Likewise.
25574 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
25575 (__pthread_mutex_unlock_usercnt): Likewise.
25576
255772017-08-31 Florian Weimer <fweimer@redhat.com>
25578
25579 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
25580 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
25581 (fts_safe_changedir): Remove internal_function.
25582 * io/ftw.c (internal_function): Remove definition.
25583 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
25584
255852017-08-31 Florian Weimer <fweimer@redhat.com>
25586
25587 * inet/deadline.c (__deadline_current_time)
25588 (__deadline_from_timeval, __deadline_to_ms): Remove
25589 internal_function.
25590 * inet/getnameinfo.c (nrl_domainname): Likewise.
25591 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
25592 * inet/inet6_option.c (add_pad): Likewise.
25593 * inet/net-internal.h (__deadline_current_time)
25594 (__deadline_from_timeval, __deadline_to_ms): Likewise.
25595 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
25596 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
25597 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
25598
255992017-08-31 Joseph Myers <joseph@codesourcery.com>
25600
25601 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
25602 include <bits/nan.h>.
25603 * math/Makefile (headers): Remove bits/nan.h.
25604 * bits/nan.h: Remove.
25605 * sysdeps/ieee754/bits/nan.h: Likewise.
25606 * sysdeps/mips/bits/nan.h: Likewise.
25607
25608 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
25609 not include <bits/inf.h>.
25610 * math/Makefile (headers): Remove bits/inf.h.
25611 * bits/inf.h: Remove.
25612 * sysdeps/ieee754/bits/inf.h: Likewise.
25613
25614 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
25615 bits/huge_vall.h or bits/huge_val_flt128.h.
25616 (HUGE_VAL): Define directly here.
25617 [__USE_ISOC99] (HUGE_VALF): Likewise.
25618 [__USE_ISOC99] (HUGE_VALL): Likewise.
25619 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25620 (HUGE_VAL_F128): Likewise.
25621 * math/Makefile (headers): Remove bits/huge_val.h,
25622 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
25623 * bits/huge_val.h: Remove.
25624 * bits/huge_val_flt128.h: Likewise.
25625 * bits/huge_valf.h: Likewise.
25626 * bits/huge_vall.h: Likewise.
25627 * sysdeps/ia64/bits/huge_vall.h: Likewise.
25628 * sysdeps/ieee754/bits/huge_val.h: Likewise.
25629 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
25630 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
25631 * sysdeps/sh/bits/huge_val.h: Likewise.
25632 * sysdeps/sparc/bits/huge_vall.h: Likewise.
25633 * sysdeps/x86/bits/huge_vall.h: Likewise.
25634
256352017-08-31 Florian Weimer <fweimer@redhat.com>
25636
25637 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
25638 internal_function.
25639 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
25640 Likewise.
25641 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
25642 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
25643 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
25644 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
25645 * elf/dl-fini.c (_dl_sort_fini): Likewise.
25646 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
25647 * elf/dl-libc.c (dlerror_run): Likewise.
25648 * elf/dl-load.c (add_name_to_object, decompose_rpath)
25649 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
25650 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
25651 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
25652 Likewise.
25653 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
25654 (_dl_higher_prime_number, _dl_strtoul): Likewise.
25655 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
25656 * elf/dl-profile.c (_dl_start_profile): Likewise.
25657 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
25658 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
25659 Likewise.
25660 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
25661 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
25662 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
25663 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
25664 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
25665 (_dl_allocate_tls_storage): Likewise.
25666 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
25667 (_dl_check_all_versions): Likewise.
25668 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
25669 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
25670 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
25671 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25672 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
25673 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
25674 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
25675 internal_function from __dl_start.
25676 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
25677 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
25678 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
25679 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
25680 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
25681 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
25682 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
25683 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
25684 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
25685 (_dl_next_ld_env_entry, _dl_important_hwcaps)
25686 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
25687 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
25688 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
25689 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
25690 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
25691 Likewise.
25692 (struct rtld_global_ro): Remove internal_function from the
25693 _dl_lookup_symbol_x member.
25694 (_dl_symbol_value): Remove. No longer defined anywhere.
25695 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
25696 internal_function.
25697 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25698 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
25699 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
25700 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
25701 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
25702 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
25703 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
25704 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
25705 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
25706 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
25707 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25708 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
25709
257102017-08-31 Florian Weimer <fweimer@redhat.com>
25711
25712 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
25713 Remove internal_function.
25714 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
25715 Likewise.
25716 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
25717 Likewise.
25718
257192017-08-31 Florian Weimer <fweimer@redhat.com>
25720
25721 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
25722 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
25723 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
25724
257252017-08-31 Florian Weimer <fweimer@redhat.com>
25726
25727 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
25728 (__gai_enqueue_request): Remove internal_function.
25729 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
25730 (__gai_remove_request, __gai_notify, __gai_notify_only)
25731 (__gai_sigqueue): Likewise.
25732 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
25733 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
25734 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
25735 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
25736 Likewise.
25737
257382017-08-31 Florian Weimer <fweimer@redhat.com>
25739
25740 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
25741 * include/dirent.h (__opendirat, __getdents, __getdents64)
25742 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
25743 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
25744 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
25745 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
25746 Likewise.
25747 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
25748
257492017-08-31 Florian Weimer <fweimer@redhat.com>
25750
25751 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
25752 internal_function.
25753 (GETCWD_RETURN_TYPE): Likewise.
25754
257552017-08-31 Florian Weimer <fweimer@redhat.com>
25756
25757 * include/time.h (__tz_compute, __strptime_internal): Remove
25758 internal_function.
25759 * time/strptime_l.c (__strptime_internal): Likewise.
25760 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
25761
257622017-08-31 Florian Weimer <fweimer@redhat.com>
25763
25764 * iconv/gconv.c (__gconv): Remove internal_function.
25765 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
25766 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
25767 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
25768 (__gconv_release_cache): Likewise.
25769 * iconv/gconv_close.c (__gconv_close): Likewise.
25770 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
25771 (read_conf_file, __gconv_get_path): Likewise.
25772 * iconv/gconv_db.c (derivation_lookup, add_derivation)
25773 (__gconv_release_step, gen_steps, increment_counter)
25774 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
25775 (__gconv_close_transform, free_modules_db): Likewise.
25776 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
25777 Likewise.
25778 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
25779 (__gconv_find_transform, __gconv_lookup_cache)
25780 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
25781 (__gconv_close_transform, __gconv_release_cache)
25782 (__gconv_loaded_object, __gconv_release_shlib)
25783 (__gconv_compare_alias): Likewise.
25784 * iconv/gconv_open.c (__gconv_open): Likewise.
25785 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
25786 * iconv/iconvconfig.c (add_module): Likewise.
25787 * intl/dcigettext.c (plural_lookup, guess_category_value)
25788 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
25789 * intl/eval-plural.h (plural_eval): Likewise.
25790 * intl/finddomain.c (_nl_find_domain): Likewise.
25791 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
25792 (_nl_load_domain, _nl_find_msg): Likewise.
25793 (internal_function): Remove definition.
25794 * intl/loadinfo.h (internal_function): Likewise.
25795 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
25796 internal_function.
25797 * intl/localealias.c (internal_function): Remove definition.
25798 (read_alias_file): Remove internal_function.
25799 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
25800 * intl/plural-exp.h (internal_function): Remove definition.
25801 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
25802 internal_function.
25803 * intl/plural.c: Regenerate.
25804 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
25805 * locale/coll-lookup.c (__collidx_table_lookup)
25806 (__collseq_table_lookup): Likewise.
25807 * locale/coll-lookup.h (__collidx_table_lookup)
25808 (__collseq_table_lookup): Likewise.
25809 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
25810 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
25811 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
25812 (_nl_unload_locale): Likewise.
25813 * locale/localeinfo.h (struct __locale_data): Remove
25814 internal_function from cleanup member.
25815 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
25816 (_nl_remove_locale, _nl_load_locale_from_archive)
25817 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
25818 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
25819 (_nl_cleanup_time): Remove internal_function.
25820 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
25821 (_nl_parse_alt_digit): Likewise.
25822 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
25823 (_nl_select_era_entry): Likewise.
25824 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
25825 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
25826 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
25827 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
25828 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
25829
258302017-08-31 Florian Weimer <fweimer@redhat.com>
25831
25832 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
25833 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
25834 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
25835 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
25836 Likewise.
25837 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
25838 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
25839 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
25840 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
25841 Likewise.
25842 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
25843
258442017-08-31 Florian Weimer <fweimer@redhat.com>
25845
25846 * misc/getttyent.c (skip, value): Remove internal_function.
25847 * misc/syslog.c (openlog_internal): Likewise.
25848 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
25849
258502017-08-31 Florian Weimer <fweimer@redhat.com>
25851
25852 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
25853 (__nss_rewrite_field): Remove internal_function.
25854 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25855 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
25856 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
25857 * nss/nsswitch.c (nss_parse_file, nss_getline)
25858 (nss_parse_service_list, nss_new_service): Likewise.
25859 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
25860 * nss/valid_field.c (__nss_valid_field): Likewise.
25861 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
25862
258632017-08-31 Florian Weimer <fweimer@redhat.com>
25864
25865 * malloc/arena.c (__malloc_fork_lock_parent)
25866 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
25867 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
25868 internal_function from defintions.
25869 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
25870 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
25871 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
25872 internal_function from declarations.
25873 * malloc/malloc.c (internal_function): Do not define.
25874 (mem2mem_check): Remove internal_function from declaration.
25875 (munmap_chunk, mremap_chunk): Remove internal_function.
25876 * malloc/mtrace.c (tr_where): Likewise.
25877
258782017-08-31 Florian Weimer <fweimer@redhat.com>
25879
25880 * include/rpc/pmap_clnt.h (__get_socket): Remove
25881 internal_function.
25882 * sunrpc/auth_des.c (synchronize): Likewise.
25883 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
25884 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
25885 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
25886 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
25887 (key_call): Likewise.
25888 * sunrpc/pm_getport.c (__get_socket): Likewise.
25889 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
25890 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
25891 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
25892 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
25893 (invalidate): Likewise.
25894 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
25895 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
25896 (set_input_fragment, get_input_bytes): Likewise.
25897
258982017-08-31 Florian Weimer <fweimer@redhat.com>
25899
25900 * malloc/malloc.c (_int_free): Remove locked variable and related
25901 asserts.
25902
259032017-08-31 H.J. Lu <hongjiu.lu@intel.com>
25904
25905 [BZ #22051]
25906 * Makerules (build-module-helper-objlist): Filter out
25907 $(elf-objpfx)sofini.os.
25908 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
25909 needed.
25910
259112017-08-31 Florian Weimer <fweimer@redhat.com>
25912
25913 * libio/fcloseall.c: Assume weak_alias is defined.
25914 * libio/feof.c: Likewise.
25915 * libio/fileno.c: Likewise.
25916 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
25917 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
25918 definitions.
25919 (_IO_file_open): Call __open directly.
25920 (_IO_new_file_sync): Assume ESPIPE is defined.
25921 (_IO_file_seekoff_maybe_mmap): Call __read directly.
25922 (_IO_new_file_write): Call __write directly.
25923 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
25924 * libio/ftello64.c (__ftello64): Assume EIO is defined.
25925 * libio/genops.c: Assume _LIBC is defined.
25926 (save_for_backup): Remove internal_function.
25927 * libio/getc.c: Assume weak_alias is defined.
25928 * libio/getwc.c: Likewise.
25929 * libio/iofclose.c: Assume _LIBC is defined.
25930 * libio/iofdopen.c: Likewise.
25931 (_IO_fcntl): Remove macro definition.
25932 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
25933 Call __fcntl directly.
25934 * libio/iofflush.c: Assume weak_alias is defined.
25935 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
25936 defined.
25937 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
25938 * libio/iofgets.c: Likewise.
25939 * libio/iofopen.c: Assume _LIBC is defined.
25940 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
25941 * libio/iofputs.c: Assume weak_alias is defined.
25942 * libio/iofread.c: Likewise.
25943 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
25944 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
25945 * libio/ioftell.c: Assume weak_alias is defined.
25946 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
25947 * libio/iofwide.c: Assume _LIBC is defined.
25948 (_IO_fwide): Drop SHARED conditional because it is implied by
25949 SHLIB_COMPAT.
25950 * libio/iofwrite.c: Assume weak_alias is defined.
25951 * libio/iogetdelim.c: Likewise.
25952 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
25953 * libio/iogetwline.c (wmemcpy): Remove macro definition.
25954 (_IO_getwline): Call __wmemcpy directly.
25955 * libio/iopopen.c: Assume _LIBC is defined.
25956 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
25957 (_IO_close): Remove macro definitions.
25958 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
25959 _exit directly.
25960 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
25961 directly.
25962 * libio/ioputs.c: Assume weak_alias is defined.
25963 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
25964 * libio/iosetbuffer.c: Assume weak_alias is defined.
25965 * libio/iosetvbuf.c: Likewise.
25966 * libio/ioungetc.c: Likewise.
25967 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
25968 libc_hidden_def, libc_hidden_weak, NULL are defined.
25969 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
25970 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
25971 defined.
25972 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
25973 definitions.
25974 (_IO_old_file_init_internal): Drop SHARED conditional because it
25975 is implied by SHLIB_COMPAT.
25976 (_IO_old_file_fopen): Call __open directly.
25977 (_IO_old_file_sync): Assume ESPIPE is defined.
25978 (_IO_old_file_write): Call __write directly.
25979 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
25980 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
25981 Call __fcntl directly.
25982 * libio/oldiofgetpos.c: Assume weak_alias is defined.
25983 (_IO_old_fgetpos): Assume EIO is defined.
25984 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
25985 (_IO_old_fgetpos64): Assume EIO is defined.
25986 * libio/oldiofsetpos.c: Assume weak_alias is defined.
25987 (_IO_old_fsetpos): Assume EIO is defined.
25988 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
25989 (_IO_old_fsetpos64): Assume EIO is defined.
25990 * libio/oldiopopen.c: Assume _LIBC is defined.
25991 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
25992 (_IO_close): Remove macro definitions.
25993 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
25994 directly.
25995 (_IO_old_proc_close): Call __close, __waitpid directly.
25996 * libio/put.c: Assume weak_alias is defined.
25997 * libio/stdfiles.c: Assume _LIBC is defined.
25998 * libio/stdio.c: Likewise.
25999 * libio/wfileops.c: Likewise.
26000 (_IO_wfile_sync): Assume ESPIPE is defined.
26001 * libio/wgenops.c: Assume _LIBC is defined.
26002 (save_for_wbackup): Remove internal_function.
26003
260042017-08-31 Florian Weimer <fweimer@redhat.com>
26005
26006 * malloc/malloc.c (top_check): Change return type to void. Remove
26007 internal_function.
26008 * malloc/hooks.c (top_check): Likewise.
26009 (malloc_check, realloc_check, memalign_check): Adjust.
26010
260112017-08-30 Joseph Myers <joseph@codesourcery.com>
26012
26013 [BZ #21457]
26014 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
26015 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
26016 sigcontext and namespace requirements.
26017 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
26018 * sysdeps/m68k/sys/ucontext.h: Likewise.
26019 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
26020 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
26021 <bits/sigcontext.h>.
26022 (__ctx): Define earlier.
26023 (mcontext_t): Define structure contents rather than using struct
26024 sigcontext.
26025 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
26026 __glibc_reserved1 instead of __reserved.
26027 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
26028 <bits/sigcontext.h>.
26029 (__ctx): Define earlier.
26030 (mcontext_t): Define structure contents rather than using struct
26031 sigcontext.
26032 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
26033 mcontext_t instead of struct sigcontext.
26034 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
26035 <bits/sigcontext.h>.
26036 (__ctx): Define earlier.
26037 (mcontext_t): Define structure contents rather than using struct
26038 sigcontext.
26039 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
26040 <bits/sigcontext.h>.
26041 (__ctx): Define earlier.
26042 (mcontext_t): Define structure contents rather than using struct
26043 sigcontext.
26044 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
26045 mcontext_t instead of struct sigcontext.
26046 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
26047 mcontext_t instead of struct sigcontext.
26048 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
26049 <bits/sigcontext.h>.
26050 (__ctx): New macro.
26051 (struct __ia64_fpreg_mcontext): New type.
26052 (mcontext_t): Define structure contents rather than using struct
26053 sigcontext.
26054 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
26055 (uc_sigmask): Define using __ctx.
26056 (uc_stack): Likewise.
26057 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
26058 <bits/sigcontext.h>.
26059 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26060 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
26061 <bits/sigcontext.h>.
26062 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
26063 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
26064 <bits/sigcontext.h>.
26065 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
26066 <bits/sigcontext.h>.
26067 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
26068 <bits/sigcontext.h>.
26069 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
26070 <bits/sigcontext.h>.
26071 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
26072 <bits/sigcontext.h>.
26073 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
26074 <bits/sigcontext.h>.
26075 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
26076 <bits/sigcontext.h>.
26077 (__ctx): Define earlier.
26078 (mcontext_t): Define structure contents rather than using struct
26079 sigcontext.
26080 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
26081 <bits/sigcontext.h>. Include <bits/types.h>.
26082 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
26083 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
26084 (test-xfail-XPG42/ucontext.h/conform): Likewise.
26085 (test-xfail-UNIX98/signal.h/conform): Likewise.
26086 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
26087 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
26088 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
26089 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
26090 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
26091 (test-xfail-POSIX2008/signal.h/conform): Likewise.
26092 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
26093 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
26094 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
26095
260962017-08-30 Florian Weimer <fweimer@redhat.com>
26097
26098 * malloc/dynarray_emplace_enlarge.c
26099 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
26100 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
26101 * malloc/tst-dynarray.c (test_long_overflow): New function.
26102 (do_test): Call it.
26103
261042017-08-30 Florian Weimer <fweimer@redhat.com>
26105
26106 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
26107 (set_arena_corrupt): Remove definitions.
26108 (mtrim): Do not check for corrupt arena.
26109 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
26110 Likewise.
26111
261122017-08-30 Florian Weimer <fweimer@redhat.com>
26113
26114 [BZ #21754]
26115 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
26116 check_action.
26117 (ptmalloc_init): Do not set or use check_action.
26118 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
26119 call to malloc_printerr. Remove return statement.
26120 (free_check): Likewise. Remove arena unlock.
26121 (top_check): Update comment. Adjust call to malloc_printerr.
26122 Remove heap repair code.
26123 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
26124 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
26125 (sysmalloc): Adjust call to malloc_printerr.
26126 (munmap_chunk, __libc_realloc): Likewise. Remove return
26127 statement.
26128 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
26129 Remove errout label and corresponding gotos.
26130 (_int_free): Likewise. Remove arena unlock.
26131 (do_set_mallopt_check): Do not set check_action.
26132 (malloc_printerr): Adjust parameter list. Do not mark arena as
26133 corrupt.
26134 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
26135 comment.
26136 * manual/probes.texi (Memory Allocation Probes): Remove
26137 memory_mallopt_check_action.
26138
261392017-08-30 Steve Ellcey <sellcey@cavium.com>
26140
26141 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
26142 Use pointer to uint64_t instead of long int for sp.
26143
261442017-08-30 Florian Weimer <fweimer@redhat.com>
26145
26146 [BZ #21754]
26147 * malloc/malloc.c (malloc_printerr): Always terminate the process,
26148 without printing a backtrace. Do not leak any information in the
26149 error message.
26150 * manual/memory.texi (Heap Consistency Checking): Update.
26151 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
26152
261532017-08-30 Florian Weimer <fweimer@redhat.com>
26154
26155 Do not scale NPTL tests with available number of CPUs.
26156 * nptl/tst-cond16.c (count): Set to constant value of 8.
26157 * nptl/tst-cond18.c (count): Likewise.
26158
261592017-08-29 Joseph Myers <joseph@codesourcery.com>
26160
26161 [BZ #22035]
26162 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
26163 Define to take a second argument that is a macro that
26164 concatentates a suffix, not the suffix itself.
26165 (__CONCAT_d): New macro.
26166 (__CONCAT_f): Likewise.
26167 (__CONCAT_l): Likewise.
26168
261692017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
26170
26171 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
26172 by child.
26173
261742017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26175 Aurelien Jarno <aurelien@aurel32.net>
26176 Maciej W. Rozycki <macro@imgtec.com>
26177
26178 [BZ #21956]
26179 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
26180 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
26181 `mips16-syscall6' and `mips16-syscall7'.
26182 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
26183 (CFLAGS-mips16-syscall7.c): Remove.
26184 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
26185 Remove `__mips16_syscall5', `__mips16_syscall6' and
26186 `__mips16_syscall7'.
26187 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
26188 (__mips16_syscall0): Rename `__mips16_syscall_return' to
26189 `__mips_syscall_return'.
26190 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
26191 (__mips16_syscall1): Likewise.
26192 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
26193 (__mips16_syscall2): Likewise.
26194 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
26195 (__mips16_syscall3): Likewise.
26196 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
26197 (__mips16_syscall4): Likewise.
26198 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
26199 Remove.
26200 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
26201 Remove.
26202 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
26203 Remove.
26204 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
26205 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
26206 `__mips16_syscall5'. Remove prototype.
26207 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
26208 `__mips16_syscall6'. Remove prototype.
26209 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
26210 `__mips16_syscall7'. Remove prototype.
26211 (__nomips16, __mips16_syscall_return): Move to...
26212 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
26213 (__nomips16, __mips_syscall_return): ... here.
26214 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
26215 `__mips16_syscall_return' to `__mips_syscall_return'.
26216 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
26217 `internal_syscall##nr'.
26218 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
26219 `internal_syscall##nr'.
26220 (FORCE_FRAME_POINTER): Remove.
26221 (__mips_syscall5): New prototype.
26222 (internal_syscall5): Rewrite to call `__mips_syscall5'.
26223 (__mips_syscall6): New prototype.
26224 (internal_syscall6): Rewrite to call `__mips_syscall6'.
26225 (__mips_syscall7): New prototype.
26226 (internal_syscall7): Rewrite to call `__mips_syscall7'.
26227 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
26228 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
26229 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
26230 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
26231 (sysdep_routines): Add libc-do-syscall.
26232 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
26233 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
26234
262352017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26236
26237 [BZ #21672]
26238 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
26239 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
26240 (advise_stack_range): New function.
26241 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
26242 stack non required to advise_stack_range at allocatestack.c
26243
262442017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26245
26246 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
26247
262482017-08-29 Florian Weimer <fweimer@redhat.com>
26249
26250 [BZ #22026]
26251 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
26252 __end_fct. Mangle __end_fct after setting it to NULL.
26253 * iconv/Makefile (tests): Add tst-gconv-init-failure.
26254 (modules-names, modules-names-tests): Add
26255 tst-gconv-init-failure-mod.
26256 (gconv-modules): New target.
26257 (tst-gconv-init-failure-mod.so): Link against libsupport.
26258 (tst-gconv-init-failure): Depend on gconv-modules,
26259 tst-gconv-init-failure-mod.so.
26260 * iconv/tst-gconv-init-failure-mod.c: New file.
26261 * iconv/tst-gconv-init-failure.c: Likewise.
26262 * iconv/test-gconv-modules: Likewise.
26263
262642017-08-29 Florian Weimer <fweimer@redhat.com>
26265
26266 [BZ #22025]
26267 * iconv/gconv_db.c (free_derivation): Remove redundant
26268 parentheses.
26269 (gen_steps): Unconditionally mangle __btowc_fct after
26270 initialization.
26271 (increment_counter): Likewise. Do not call init_fct for internal
26272 modules.
26273
262742017-08-29 Joseph Myers <joseph@codesourcery.com>
26275
26276 [BZ #22028]
26277 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26278 (_MSUF_): Remove macro.
26279 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
26280 Likewise.
26281 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26282 (__REDIRFROM_X): New macro.
26283 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
26284 Likewise.
26285 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
26286 (__REDIRTO_X): Likewise.
26287 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
26288 arguments.
26289 (__MATH_REDIRCALL_2): Likewise.
26290 (__MATH_REDIRCALL_INTERNAL): Likewise.
26291 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
26292 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
26293 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
26294 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
26295 * math/test-finite-macros.c: New file.
26296 * math/Makefile (tests): Add test-finite-macros.
26297 (CFLAGS-test-finite-macros.c): New variable.
26298
262992017-08-29 Patsy Franklin <pfrankli@redhat.com>
26300 Jeff Law <law@redhat.com>
26301
26302 [BZ #22025]
26303 Mangle NULL pointers in iconv/gconv.
26304 * iconv/gconv_cache.c (find_module): Demangle init_fct before
26305 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
26306 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
26307 is non-NULL before demangling the end_fct. Check for NULL
26308 end_fct after demangling.
26309 (__gconv_release_step): Demangle the end_fct before checking
26310 it for NULL. Remove assert on __shlibc_handle != NULL.
26311 (gen_steps): Don't check btowc_fct for NULL before mangling.
26312 Demangle init_fct before checking for NULL.
26313 (increment_counter): Likewise.
26314 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
26315 end_fct for NULL before mangling.
26316 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
26317 for NULL.
26318
263192017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
26320
26321 [BZ #21971]
26322 * locale/iso-639.def: add Morisyen.
26323
263242017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26325
26326 [BZ #21930]
26327 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
26328 (iszero): New C++ implementation that does not use
26329 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
26330 signaling nans are enabled, since __builtin_types_compatible_p
26331 is a C-only feature.
26332 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
26333 defined, include ieee754_float128.h for access to the union and
26334 member ieee854_float128.ieee.
26335 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
26336 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
26337 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
26338 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
26339 options of test-math-zero on powerpc64le.
26340
263412017-08-28 H.J. Lu <hongjiu.lu@intel.com>
26342
26343 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26344 Change double to float.
26345
263462017-08-28 Joseph Myers <joseph@codesourcery.com>
26347
26348 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
26349 unconditional.
26350 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
26351 conditional code; define contents only for [LIBM_SVID_COMPAT].
26352
263532017-08-28 Florian Weimer <fweimer@redhat.com>
26354
26355 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
26356 (abi-lp64_be-options): Remove.
26357 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
26358 (abi-hard-options): Likewise.
26359 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
26360 (abi-o32_hard-options, abi-o32_soft_2008-options)
26361 (abi-o32_hard_2008-options, abi-n32_soft-options)
26362 (abi-n32_hard-options, abi-n32_soft_2008-options)
26363 (abi-n32_hard_2008-options, abi-n64_soft-options)
26364 (abi-n64_hard-options, abi-n64_soft_2008-options)
26365 (abi-n64_hard_2008-options): Likewise.
26366 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
26367 (abi-64-v1-options, abi-64-v2-options): Likewise.
26368 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
26369 (abi-64-options): Likewise.
26370 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
26371 (abi-64-options): Likewise.
26372 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
26373 (abi-64-options): Likewise.
26374 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
26375 (abi-64-options, abi-x32-options): Likewise.
26376
263772017-08-28 Florian Weimer <fweimer@redhat.com>
26378
26379 Store supported list of SYS_* system calls in the source tree.
26380 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
26381 (bits/syscall.h): Generate from list file.
26382 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
26383 [$(subdir) = misc] (tests): Add tst-syscall-list.
26384 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
26385 [$(subdir) = misc] (tst-syscall-list-macros.list)
26386 [$(subdir) = misc] (tst-syscall-list-nr.list)
26387 (tst-syscall-list-sys.list): Helper targets for new
26388 tst-syscall-list test.
26389 [$(subdir) = misc] (tst-syscall-list.out): Run test script
26390 tst-syscall-list.sh.
26391 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
26392 target. Do not include bits/syscall.d.
26393 [$(subdir) = misc] (generated): Do not update.
26394 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
26395 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
26396 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
26397 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
26398
263992017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
26400
26401 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
26402 (tst-cxa_atexit, tst-on_exit): Likewise.
26403 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
26404 tst-cxa_atexit, and tst-on_exit.
26405 * stdlib/tst-atexit-common.c: New file.
26406 * stdlib/tst-atexit.c: New file.
26407 * stdlib/tst-at_quick_exit.c: New file.
26408 * stdlib/tst-cxa_atexit.c: New file.
26409 * stdlib/tst-on_exit.c: New file.
26410
264112017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26412
26413 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
26414 * mach/stack_chk_fail_local.c: New file.
26415 * hurd/stack_chk_fail_local.c: New file.
26416 * mach/Machrules ($(interface-library)-routines): Add
26417 stack_chk_fail_local.
26418 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
26419 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
26420 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
26421 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
26422 * hurd/Makefile (CFLAGS-hurdstartup.o,
26423 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
26424
264252017-08-25 H.J. Lu <hongjiu.lu@intel.com>
26426
26427 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
26428 (index_cpu_*, index_arch_*): Removed.
26429
264302017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26431
26432 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
26433 Use uint64_t instead of unsigned long.
26434
264352017-08-25 Joseph Myers <joseph@codesourcery.com>
26436
26437 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
26438 [__HAVE_DISTINCT_FLOAT128].
26439
26440 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
26441 of <bits/math-finite.h>.
26442 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
26443 inclusion of <bits/math-finite.h>.
26444 * math/bits/math-finite.h (__REDIRTO_X): Do not define
26445 conditionally on [__MATH_DECLARING_LDOUBLE && defined
26446 __NO_LONG_DOUBLE_MATH].
26447 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
26448 (__MATH_REDIRCALL_2): Likewise.
26449 (__MATH_REDIRCALL_INTERNAL): Likewise.
26450 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
26451 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
26452 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
26453
26454 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
26455 Remove file.
26456 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
26457 Likewise.
26458 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
26459 Likewise.
26460 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
26461 Likewise.
26462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
26463 Likewise.
26464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
26465 Likewise.
26466 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
26467 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
26468 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
26469 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
26470 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
26471 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
26472 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
26473 w_sqrtf_compat-ppc32.
26474
264752017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26476
26477 * math/math.h [defined __cplusplus] (issignaling): In the long
26478 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
26479 is not defined. Call __issignaling, otherwise.
26480
264812017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26482
26483 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
26484 syscall definitions and replace __builtin_expect with __glibc_likely.
26485 * sysdeps/unix/syscall-template.S: Update comment about cancellable
26486 syscall.
26487 (SYSCALL_CANCELLABLE): Removedefinition
26488 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
26489 definition.
26490 (PSEUDO_END): Likewise.
26491 [IS_IN (libpthread)] (CENABLE): Likewise.
26492 [IS_IN (libpthread)] (CDISABLE): Likewise.
26493 [IS_IN (libc)] (CENABLE): Likewise.
26494 [IS_IN (libc)] (CENABLE): Likewise.
26495 [IS_IN (librt)] (CDISABLE): Likewise.
26496 [IS_IN (librt)] (CDISABLE): Likewise.
26497 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26498 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
26499 definition.
26500 (PSEUDO_END): Likewise.
26501 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
26502 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
26503 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
26504 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
26505 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
26506 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
26507 (CENABLE): Likewise.
26508 (CDISABLE): Likewise.
26509 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26510 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
26511 defintion.
26512 (PSEUDO_END): Likewise.
26513 [IS_IN (libpthread)] (CENABLE): Likewise.
26514 [IS_IN (libpthread)] (CDISABLE): Likewise.
26515 [IS_IN (libc)] (CENABLE): Likewise.
26516 [IS_IN (libc)] (CENABLE): Likewise.
26517 [IS_IN (librt)] (CDISABLE): Likewise.
26518 [IS_IN (librt)] (CDISABLE): Likewise.
26519 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26520 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
26521 definition.
26522 (PSEUDO_END): Likewise.
26523 [IS_IN (libpthread)] (CENABLE): Likewise.
26524 [IS_IN (libpthread)] (CDISABLE): Likewise.
26525 [IS_IN (libc)] (CENABLE): Likewise.
26526 [IS_IN (libc)] (CENABLE): Likewise.
26527 [IS_IN (librt)] (CDISABLE): Likewise.
26528 [IS_IN (librt)] (CDISABLE): Likewise.
26529 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26530 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
26531 definition.
26532 (PSEUDO_END): Likewise.
26533 [IS_IN (libpthread)] (CENABLE): Likewise.
26534 [IS_IN (libpthread)] (CDISABLE): Likewise.
26535 [IS_IN (libc)] (CENABLE): Likewise.
26536 [IS_IN (libc)] (CENABLE): Likewise.
26537 [IS_IN (librt)] (CDISABLE): Likewise.
26538 [IS_IN (librt)] (CDISABLE): Likewise.
26539 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26540 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
26541 definition.
26542 (PSEUDO_END): Likewise.
26543 [IS_IN (libpthread)] (CENABLE): Likewise.
26544 [IS_IN (libpthread)] (CDISABLE): Likewise.
26545 [IS_IN (libc)] (CENABLE): Likewise.
26546 [IS_IN (libc)] (CENABLE): Likewise.
26547 [IS_IN (librt)] (CDISABLE): Likewise.
26548 [IS_IN (librt)] (CDISABLE): Likewise.
26549 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26550 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
26551 definition.
26552 (PSEUDO_END): Likewise.
26553 [IS_IN (libpthread)] (CENABLE): Likewise.
26554 [IS_IN (libpthread)] (CDISABLE): Likewise.
26555 [IS_IN (libc)] (CENABLE): Likewise.
26556 [IS_IN (libc)] (CENABLE): Likewise.
26557 [IS_IN (librt)] (CDISABLE): Likewise.
26558 [IS_IN (librt)] (CDISABLE): Likewise.
26559 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26560 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
26561 definition.
26562 (PSEUDO_END): Likewise.
26563 [IS_IN (libpthread)] (CENABLE): Likewise.
26564 [IS_IN (libpthread)] (CDISABLE): Likewise.
26565 [IS_IN (libc)] (CENABLE): Likewise.
26566 [IS_IN (libc)] (CENABLE): Likewise.
26567 [IS_IN (librt)] (CDISABLE): Likewise.
26568 [IS_IN (librt)] (CDISABLE): Likewise.
26569 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26570 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
26571 Remove definition.
26572 (PSEUDO_END): Likewise.
26573 [IS_IN (libpthread)] (CENABLE): Likewise.
26574 [IS_IN (libpthread)] (CDISABLE): Likewise.
26575 [IS_IN (libc)] (CENABLE): Likewise.
26576 [IS_IN (libc)] (CENABLE): Likewise.
26577 [IS_IN (librt)] (CDISABLE): Likewise.
26578 [IS_IN (librt)] (CDISABLE): Likewise.
26579 (SINGLE_THREAD_P): Likewise.
26580 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
26581 definition.
26582 (PSEUDO_END): Likewise.
26583 [IS_IN (libpthread)] (CENABLE): Likewise.
26584 [IS_IN (libpthread)] (CDISABLE): Likewise.
26585 [IS_IN (libc)] (CENABLE): Likewise.
26586 [IS_IN (libc)] (CENABLE): Likewise.
26587 [IS_IN (librt)] (CDISABLE): Likewise.
26588 [IS_IN (librt)] (CDISABLE): Likewise.
26589 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26590 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
26591 definition.
26592 (PSEUDO_END): Likewise.
26593 [IS_IN (libpthread)] (CENABLE): Likewise.
26594 [IS_IN (libpthread)] (CDISABLE): Likewise.
26595 [IS_IN (libc)] (CENABLE): Likewise.
26596 [IS_IN (libc)] (CENABLE): Likewise.
26597 [IS_IN (librt)] (CDISABLE): Likewise.
26598 [IS_IN (librt)] (CDISABLE): Likewise.
26599 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26600 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
26601 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
26602 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
26603 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
26604 definition.
26605 (PSEUDO_END): Likewise.
26606 [IS_IN (libpthread)] (CENABLE): Likewise.
26607 [IS_IN (libpthread)] (CDISABLE): Likewise.
26608 [IS_IN (libc)] (CENABLE): Likewise.
26609 [IS_IN (libc)] (CENABLE): Likewise.
26610 [IS_IN (librt)] (CDISABLE): Likewise.
26611 [IS_IN (librt)] (CDISABLE): Likewise.
26612 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26613 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
26614 definition.
26615 (PSEUDO_END): Likewise.
26616 [IS_IN (libpthread)] (CENABLE): Likewise.
26617 [IS_IN (libpthread)] (CDISABLE): Likewise.
26618 [IS_IN (libc)] (CENABLE): Likewise.
26619 [IS_IN (libc)] (CENABLE): Likewise.
26620 [IS_IN (librt)] (CDISABLE): Likewise.
26621 [IS_IN (librt)] (CDISABLE): Likewise.
26622 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26623 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
26624 definition.
26625 (PSEUDO_END): Likewise.
26626 [IS_IN (libpthread)] (CENABLE): Likewise.
26627 [IS_IN (libpthread)] (CDISABLE): Likewise.
26628 [IS_IN (libc)] (CENABLE): Likewise.
26629 [IS_IN (libc)] (CENABLE): Likewise.
26630 [IS_IN (librt)] (CDISABLE): Likewise.
26631 [IS_IN (librt)] (CDISABLE): Likewise.
26632 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26633 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
26634 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
26635 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
26636 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
26637 definition.
26638 (PSEUDO_END): Likewise.
26639 [IS_IN (libpthread)] (CENABLE): Likewise.
26640 [IS_IN (libpthread)] (CDISABLE): Likewise.
26641 [IS_IN (libc)] (CENABLE): Likewise.
26642 [IS_IN (libc)] (CENABLE): Likewise.
26643 [IS_IN (librt)] (CDISABLE): Likewise.
26644 [IS_IN (librt)] (CDISABLE): Likewise.
26645 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26646 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
26647 definition.
26648 (PSEUDO_END): Likewise.
26649 [IS_IN (libpthread)] (CENABLE): Likewise.
26650 [IS_IN (libpthread)] (CDISABLE): Likewise.
26651 [IS_IN (libc)] (CENABLE): Likewise.
26652 [IS_IN (libc)] (CENABLE): Likewise.
26653 [IS_IN (librt)] (CDISABLE): Likewise.
26654 [IS_IN (librt)] (CDISABLE): Likewise.
26655 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26656
266572017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
26658
26659 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
26660
266612017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26662
26663 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
26664
266652017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26666
26667 [BZ #21982]
26668 * string/stratcliff.c (do_test): Declare size, nchars, inner,
26669 middle and outer with size_t instead of int. Repleace %d and
26670 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
26671 "MAX (outer, nchars - 64)" to support unsigned outer and
26672 nchars. Also exit loop when outer == 0.
26673
266742017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26675
26676 * include/fcntl.h (__fcntl_nocancel): Remove definition.
26677 * include/signal.h (__sigsuspend_nocancel): Likewise.
26678 * include/time.h (__nanosleep_nocancel): Likewise.
26679 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
26680 * login/utmp_file.c: Include non cancellable syscall header.
26681 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
26682 prototype.
26683
266842017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26685
26686 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
26687 .byte sequences with AVX512F instructions.
26688 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
26689 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
26690 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
26691 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
26692 Likewise.
26693 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26694 Likewise.
26695
266962017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26697 Steve Ellcey <sellcey@cavium.com>
26698
26699 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
26700 Use PTR_REG macro in cmp instruction.
26701
267022017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26703
26704 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
26705 Change the return type of the ifunc resolver to match the return
26706 type of the target function.
26707
267082017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26709
26710 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
26711 (preadv64): Likewise.
26712 (pwrite64(: Likewise.
26713 (pwritev64): Likewise.
26714
26715 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
26716 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
26717 (LOAD_ARGS_0): Likewise.
26718 (LOAD_ARGS_1): Likewise.
26719 (LOAD_ARGS_2): Likewise.
26720 (LOAD_ARGS_3): Likewise.
26721 (LOAD_ARGS_4): Likewise.
26722 (LOAD_ARGS_5): Likewise.
26723 (LOAD_ARGS_6): Likewise.
26724 (LOAD_REGS_0): Likewise.
26725 (LOAD_REGS_1): Likewise.
26726 (LOAD_REGS_2): Likewise.
26727 (LOAD_REGS_3): Likewise.
26728 (LOAD_REGS_4): Likewise.
26729 (LOAD_REGS_5): Likewise.
26730 (LOAD_REGS_6): Likewise.
26731 (ASM_ARGS_0): Likewise.
26732 (ASM_ARGS_1): Likewise.
26733 (ASM_ARGS_2): Likewise.
26734 (ASM_ARGS_3): Likewise.
26735 (ASM_ARGS_4): Likewise.
26736 (ASM_ARGS_5): Likewise.
26737 (ASM_ARGS_6): Likewise.
26738 (LOAD_ARGS_TYPES_1): Likewise.
26739 (LOAD_ARGS_TYPES_2): Likewise.
26740 (LOAD_ARGS_TYPES_3): Likewise.
26741 (LOAD_ARGS_TYPES_4): Likewise.
26742 (LOAD_ARGS_TYPES_5): Likewise.
26743 (LOAD_ARGS_TYPES_6): Likewise.
26744 (LOAD_REGS_TYPES_1): Likewise.
26745 (LOAD_REGS_TYPES_2): Likewise.
26746 (LOAD_REGS_TYPES_3): Likewise.
26747 (LOAD_REGS_TYPES_4): Likewise.
26748 (LOAD_REGS_TYPES_5): Likewise.
26749 (LOAD_REGS_TYPES_6): Likewise.
26750 (TYPEFY): New define.
26751 (ARGIFY): Likewise.
26752 (internal_syscall0): Likewise.
26753 (internal_syscall1): Likewise.
26754 (internal_syscall2): Likewise.
26755 (internal_syscall3): Likewise.
26756 (internal_syscall4): Likewise.
26757 (internal_syscall5): Likewise.
26758 (internal_syscall6): Likewise.
26759 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
26760 (INTERNAL_SYSCALL_NCS): Remove define.
26761 (internal_syscall1): Add define.
26762
267632017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26764
26765 * math/w_remainder_compat.c: Remove duplicate inclusion of
26766 math-svid-compat.h.
26767 * math/w_remainderf_compat.c: Likewise.
26768 * math/w_remainderl_compat.c: Likewise.
26769
267702017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26771
26772 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26773
267742017-08-22 Joseph Myers <joseph@codesourcery.com>
26775
26776 [BZ #21684]
26777 * math/tgmath.h (__floating_type): Simplify definitions.
26778 (__real_integer_type): New macro.
26779 (__complex_integer_type): Likewise.
26780 (__expr_is_real): Likewise.
26781 (__tgmath_real_type_sub): Update comment to describe handling of
26782 complex types.
26783 (__tgmath_complex_type_sub): New macro.
26784 (__tgmath_complex_type): Likewise.
26785 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26786 (__TGMATH_CF128): Use __expr_is_real.
26787 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
26788 __expr_is_real.
26789 (__TGMATH_BINARY_REAL_IMAG): Likewise.
26790 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
26791 * math/gen-tgmath-tests.py (Type.create_type): Create complex
26792 integer types.
26793
267942017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26795
26796 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
26797 macro.
26798 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
26799 alias.
26800 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
26801 Likewise.
26802
26803 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
26804 nanosleep_not_cancel with __nanosleep_nocancel.
26805 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
26806 (__nanosleep_nocancel): New macro.
26807 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
26808 function.
26809 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
26810 macro.
26811 (__nanosleep_nocancel): New prototype.
26812
26813 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
26814 pause_not_cancel with __pause_nocancel.
26815 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
26816 (__pause_nocancel): New macro.
26817 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
26818 macro.
26819 (__pause_nocancel): New prototype.
26820 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
26821
268222017-08-22 Martin Sebor <msebor@redhat.com>
26823
26824 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
26825 to return a pointer to the same type as the target function.
26826
268272017-08-22 H.J. Lu <hongjiu.lu@intel.com>
26828
26829 [BZ #18822]
26830 [BZ #21986]
26831 * include/printf.h (__printf_fphex): Add attribute_hidden.
26832 (__guess_grouping): New prototype.
26833 * stdio-common/printf_fp.c (__guess_grouping): Removed.
26834 * stdio-common/reg-printf.c (__register_printf_specifier): Add
26835 libc_hidden_proto and libc_hidden_def.
26836 * stdlib/strfmon_l.c (__guess_grouping): Removed.
26837 (__vstrfmon_l): Remove the third argument passed to
26838 __guess_grouping.
26839
268402017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26841
26842 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
26843 definition for issignaling that does not rely on __MATH_TG,
26844 since __MATH_TG uses __builtin_types_compatible_p, which is only
26845 available in C mode.
26846 (CFLAGS-test-math-issignaling.cc): New variable.
26847 * math/Makefile [CXX] (tests): Add test-math-issignaling.
26848 * math/test-math-issignaling.cc: New test for C++ implementation
26849 of type-generic issignaling.
26850 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
26851 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
26852 options of test-math-issignaling on powerpc64le.
26853
268542017-08-22 H.J. Lu <hongjiu.lu@intel.com>
26855
26856 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
26857 building libc.a.
26858 (hidden_proto): Likewise.
26859 (hidden_tls_proto): Likewise.
26860 (__hidden_proto): Likewise.
26861
268622017-08-22 Florian Weimer <fweimer@redhat.com>
26863
26864 math: Statically link tests of internal functionality.
26865 * math/Makefile (tests): Remove atest-exp, atest-sincos,
26866 atest-exp2.
26867 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
26868 (gmp-objs): Remove assignment.
26869 (atest-exp, atest-sincos, atest-exp2): Remove targets.
26870
268712017-08-22 Joseph Myers <joseph@codesourcery.com>
26872
26873 [BZ #21987]
26874 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
26875 and copy to ...
26876 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
26877 ... here.
26878 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
26879 ... and here.
26880
26881 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
26882 variable definitions above inclusion of ../Rules.
26883
268842017-08-21 Joseph Myers <joseph@codesourcery.com>
26885
26886 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
26887 case calling __builtin_unreachable.
26888
268892017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26890
26891 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
26892 __waitpid_nocancel.
26893 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
26894 (__waitpid_nocancel): New macro.
26895 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
26896 macro.
26897 (__waitpid_nocancel): Replace macro with a function.
26898 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
26899 function.
26900
26901 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
26902 __fcntl_nocancel.
26903 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
26904 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
26905
26906 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
26907 __writev_nocancel_nostatus.
26908 (write_call_graph): Likewise.
26909 (write_bb_counts): Likewise.
26910 * resolv/herror.c (herror): Likewise.
26911 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
26912 macro.
26913 (__writev_nocancel_nostatus): New macro.
26914 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
26915 Remove macro.
26916 (__writev_nocancel_nostatus): New function.
26917
269182017-08-21 Joseph Myers <joseph@codesourcery.com>
26919
26920 Revert:
26921 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
26922
26923 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
26924 building libc.a.
26925 (hidden_proto): Likewise.
26926 (hidden_tls_proto): Likewise.
26927 (__hidden_proto): Likewise.
26928
26929 [BZ #21973]
26930 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
26931 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
26932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
26933 Likewise.
26934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
26935 Likewise.
26936 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
26937 Likewise.
26938 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
26939 Likewise.
26940 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
26941 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
26942 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
26943 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
26944 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26945 GLIBC_2.0 sqrtl symbol.
26946
26947 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
26948 [__USE_MISC] (_LIB_VERSION): Likewise.
26949 [__USE_MISC] (struct exception): Likewise.
26950 [__USE_MISC] (matherr): Likewise.
26951 [__USE_MISC] (DOMAIN): Likewise.
26952 [__USE_MISC] (SING): Likewise.
26953 [__USE_MISC] (OVERFLOW): Likewise.
26954 [__USE_MISC] (UNDERFLOW): Likewise.
26955 [__USE_MISC] (TLOSS): Likewise.
26956 [__USE_MISC] (PLOSS): Likewise.
26957 [__USE_MISC] (HUGE): Likewise.
26958 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
26959 * math/math-svid-compat.h: New file.
26960 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
26961 and matherrl.
26962 * include/math.h [!_ISOMAC] (__matherr): Remove.
26963 * manual/arith.texi (FP Exceptions): Do not document matherr.
26964 * math/Makefile (tests): Change test-matherr to test-matherr-3.
26965 (tests-internal): New variable.
26966 (install-lib): Do not add libieee.a.
26967 (non-lib.a): Likewise.
26968 (extra-objs): Do not add libieee.a and ieee-math.o.
26969 (CPPFLAGS-s_lib_version.c): Remove variable.
26970 ($(objpfx)libieee.a): Remove rule.
26971 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
26972 * math/ieee-math.c: Remove.
26973 * math/libm-test-support.c (matherr): Remove.
26974 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
26975 and license notices. Include <math-svid-compat.h> and
26976 <shlib-compat.h>.
26977 (matherr): Undefine as macro. Use compat_symbol_reference.
26978 (_LIB_VERSION): Likewise.
26979 * math/test-matherr-2.c: New file.
26980 * math/test-matherr-3.c: Likewise.
26981 * sysdeps/generic/math_private.h (__kernel_standard): Remove
26982 declaration.
26983 (__kernel_standard_f): Likewise.
26984 (__kernel_standard_l): Likewise.
26985 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
26986 <math_private.h>. Include <math-svid-compat.h>.
26987 (_LIB_VERSION): Undefine as macro.
26988 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
26989 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
26990 [LIBM_SVID_COMPAT], use compat_symbol.
26991 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
26992 <math_private.h>. Include <math-svid-compat.h>.
26993 (matherr): Undefine as macro.
26994 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
26995 compat_symbol.
26996 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
26997 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
26998 compat_symbol_reference.
26999 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
27000 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
27001 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
27002 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
27003 (MATHERR_D): Remove declaration.
27004 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
27005 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
27006 [LIBM_BUILD] (pmatherrf): Likewise.
27007 [LIBM_BUILD] (pmatherr): Likewise.
27008 [LIBM_BUILD] (pmatherrl): Likewise.
27009 (DOMAIN): Likewise.
27010 (SING): Likewise.
27011 (OVERFLOW): Likewise.
27012 (UNDERFLOW): Likewise.
27013 (TLOSS): Likewise.
27014 (PLOSS): Likewise.
27015 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
27016 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
27017 compat_symbol.
27018 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
27019 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
27020 compat_symbol.
27021 * math/lgamma-compat.h: Include <math-svid-compat.h>.
27022 * math/w_acos_compat.c: Likewise.
27023 * math/w_acosf_compat.c: Likewise.
27024 * math/w_acosh_compat.c: Likewise.
27025 * math/w_acoshf_compat.c: Likewise.
27026 * math/w_acoshl_compat.c: Likewise.
27027 * math/w_acosl_compat.c: Likewise.
27028 * math/w_asin_compat.c: Likewise.
27029 * math/w_asinf_compat.c: Likewise.
27030 * math/w_asinl_compat.c: Likewise.
27031 * math/w_atan2_compat.c: Likewise.
27032 * math/w_atan2f_compat.c: Likewise.
27033 * math/w_atan2l_compat.c: Likewise.
27034 * math/w_atanh_compat.c: Likewise.
27035 * math/w_atanhf_compat.c: Likewise.
27036 * math/w_atanhl_compat.c: Likewise.
27037 * math/w_cosh_compat.c: Likewise.
27038 * math/w_coshf_compat.c: Likewise.
27039 * math/w_coshl_compat.c: Likewise.
27040 * math/w_exp10_compat.c: Likewise.
27041 * math/w_exp10f_compat.c: Likewise.
27042 * math/w_exp10l_compat.c: Likewise.
27043 * math/w_exp2_compat.c: Likewise.
27044 * math/w_exp2f_compat.c: Likewise.
27045 * math/w_exp2l_compat.c: Likewise.
27046 * math/w_fmod_compat.c: Likewise.
27047 * math/w_fmodf_compat.c: Likewise.
27048 * math/w_fmodl_compat.c: Likewise.
27049 * math/w_hypot_compat.c: Likewise.
27050 * math/w_hypotf_compat.c: Likewise.
27051 * math/w_hypotl_compat.c: Likewise.
27052 * math/w_j0_compat.c: Likewise.
27053 * math/w_j0f_compat.c: Likewise.
27054 * math/w_j0l_compat.c: Likewise.
27055 * math/w_j1_compat.c: Likewise.
27056 * math/w_j1f_compat.c: Likewise.
27057 * math/w_j1l_compat.c: Likewise.
27058 * math/w_jn_compat.c: Likewise.
27059 * math/w_jnf_compat.c: Likewise.
27060 * math/w_jnl_compat.c: Likewise.
27061 * math/w_lgamma_main.c: Likewise.
27062 * math/w_lgamma_r_compat.c: Likewise.
27063 * math/w_lgammaf_main.c: Likewise.
27064 * math/w_lgammaf_r_compat.c: Likewise.
27065 * math/w_lgammal_main.c: Likewise.
27066 * math/w_lgammal_r_compat.c: Likewise.
27067 * math/w_log10_compat.c: Likewise.
27068 * math/w_log10f_compat.c: Likewise.
27069 * math/w_log10l_compat.c: Likewise.
27070 * math/w_log2_compat.c: Likewise.
27071 * math/w_log2f_compat.c: Likewise.
27072 * math/w_log2l_compat.c: Likewise.
27073 * math/w_log_compat.c: Likewise.
27074 * math/w_logf_compat.c: Likewise.
27075 * math/w_logl_compat.c: Likewise.
27076 * math/w_pow_compat.c: Likewise.
27077 * math/w_powf_compat.c: Likewise.
27078 * math/w_powl_compat.c: Likewise.
27079 * math/w_remainder_compat.c: Likewise.
27080 * math/w_remainderf_compat.c: Likewise.
27081 * math/w_remainderl_compat.c: Likewise.
27082 * math/w_scalb_compat.c: Likewise.
27083 * math/w_scalbf_compat.c: Likewise.
27084 * math/w_scalbl_compat.c: Likewise.
27085 * math/w_sinh_compat.c: Likewise.
27086 * math/w_sinhf_compat.c: Likewise.
27087 * math/w_sinhl_compat.c: Likewise.
27088 * math/w_sqrt_compat.c: Likewise.
27089 * math/w_sqrtf_compat.c: Likewise.
27090 * math/w_sqrtl_compat.c: Likewise.
27091 * math/w_tgamma_compat.c: Likewise.
27092 * math/w_tgammaf_compat.c: Likewise.
27093 * math/w_tgammal_compat.c: Likewise.
27094 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
27095 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
27096 * sysdeps/ieee754/k_standard.c: Likewise.
27097 * sysdeps/ieee754/k_standardf.c: Likewise.
27098 * sysdeps/ieee754/k_standardl.c: Likewise.
27099 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
27100 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
27101 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
27102 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
27103 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
27104 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
27105 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
27106 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
27107 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
27108 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
27109 Likewise.
27110 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
27111 Likewise.
27112 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
27113 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
27114 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
27115 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
27116
271172017-08-21 Florian Weimer <fweimer@redhat.com>
27118
27119 [BZ #21864]
27120 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
27121 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
27122 Move before inclusion of ../Rules.
27123
271242017-08-21 Florian Weimer <fweimer@redhat.com>
27125
27126 [BZ #21972]
27127 * assert/assert.h (assert): Use static_cast (bool) for C++.
27128 Use the ternary operator in the warning branch for GNU C.
27129 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
27130 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
27131 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
27132 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
27133 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
27134
271352017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27136
27137 [BZ #18822]
27138 * sysdeps/unix/sysv/linux/x86_64/init-first.c
27139 (__syscall_clock_gettime): Add attribute_hidden.
27140 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
27141 (__start_context): Likewise.
27142
271432017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27144
27145 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27146 building libc.a.
27147 (hidden_proto): Likewise.
27148 (hidden_tls_proto): Likewise.
27149 (__hidden_proto): Likewise.
27150
271512017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27152
27153 * include/libc-symbols.h (attribute_hidden): Enable hidden
27154 visibility in libc.a compiled with PIE.
27155
271562017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27157
27158 [BZ #18822]
27159 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
27160 Add attribute_hidden.
27161
271622017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27163
27164 [BZ #21864]
27165 * Makerules (all-nonlib): Add $(others-extras).
27166 * catgets/Makefile (others-extras): New.
27167 * elf/Makefile (others-extras): Likewise.
27168 * nss/Makefile (others-extras): Likewise.
27169
271702017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27171
27172 [BZ #18822]
27173 * csu/libc-start.c (__libc_multiple_libcs): Removed.
27174 * elf/dl-open.c: Include <libc-internal.h>.
27175 (__libc_multiple_libcs): Removed.
27176 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
27177 <hp-timing.h>.
27178 * include/libc-internal.h (__libc_multiple_libcs): New.
27179 * misc/sbrk.c: Include <libc-internal.h>.
27180 (__libc_multiple_libcs): Removed.
27181
271822017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27183
27184 [BZ #18822]
27185 * grp/initgroups.c (__nss_group_database): Removed.
27186 (__nss_initgroups_database): Likewise.
27187 * nscd/gai.c (__nss_hosts_database): Likewise.
27188 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
27189 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
27190 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
27191 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
27192 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
27193 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
27194 attribute_hidden.
27195 * nss/nsswitch.c (__nss_database_custom): Define only if
27196 USE_NSCD is defined.
27197 (__nss_configure_lookup): Use __nss_database_custom only if
27198 USE_NSCD is defined.
27199 * nss/nsswitch.h (__nss_database_custom): Declare only if
27200 USE_NSCD is defined. Add attribute_hidden.
27201 (__nss_setent): Add attribute_hidden.
27202 (__nss_endent): Likewise.
27203 (__nss_getent_r): Likewise.
27204 (__nss_getent): Likewise.
27205 (DEFINE_DATABASE): Declare __nss_##arg##_database.
27206
272072017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27208
27209 [BZ #18822]
27210 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
27211 libc_hidden_proto and libc_hidden_def.
27212
272132017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27214
27215 [BZ #18822]
27216 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
27217 Add libc_hidden_proto.
27218 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
27219 Add libc_hidden_def.
27220
272212017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27222
27223 [BZ #21974]
27224 * gmon/Makefile (routines): Remove bb_init_func and
27225 bb_exit_func.
27226 (elide-routines.os): Removed.
27227 * gmon/bb_exit_func.c: Likewise.
27228 * gmon/bb_init_func.c: Likewise.
27229 * include/sys/gmon.h (__bb): Likewise.
27230 (__bb_init_func): Likewise.
27231 (__bb_exit_func): Likewise.
27232 * sysdeps/alpha/bb_init_func.S: Likewise.
27233
272342017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27235
27236 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
27237 * include/setjmp.h (____longjmp_chk): Here. Add
27238 attribute_hidden.
27239
272402017-08-19 H.J. Lu <hongjiu.lu@intel.com>
27241
27242 [BZ #18822]
27243 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
27244 attribute_hidden.
27245 (__strspn_sse2): Likewise.
27246
272472017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27248
27249 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
27250 (close_not_cancel_no_status): Likewise.
27251 (__close_nocancel): New macro.
27252 (__close_nocancel_nostatus): Likewise.
27253 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
27254 macro.
27255 (close_not_cancel): Likewise.
27256 (close_not_cancel_no_status): Likewise.
27257 (__close_nocancel): New prototype.
27258 (__close_nocancel_nostatus): New function.
27259 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
27260 * catgets/open_catalog.c (__open_catalog): Replace
27261 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
27262 * gmon/gmon.c (write_gmon): Likewise.
27263 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
27264 * intl/loadmsgcat.c (close): Likewise.
27265 * io/ftw.c (open_dir_stream): Likewise.
27266 (ftw_startup): Likewise.
27267 * libio/fileops.c (_IO_file_open): Likewise.
27268 (_IO_file_close_mmap): Likewise.
27269 (_IO_file_close): Likewise.
27270 * libio/iopopen.c (_IO_dup2): Likewise.
27271 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
27272 * locale/loadlocale.c (_nl_load_locale): Likewise.
27273 * login/utmp_file.c (pututline_file): Likewise.
27274 (endutent_file): Likewise.
27275 * misc/daemon.c (daemon): Likewise.
27276 * nscd/nscd_getai.c (__nscd_getai): Likewise.
27277 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
27278 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
27279 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
27280 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27281 * nscd/nscd_helper.c (open_socket): Likewise.
27282 (__nscd_open_socket): Likewise.
27283 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
27284 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
27285 (__nscd_innetgr): Likewise.
27286 * nss/nss_db/db-open.c (internal_setent): Likewise.
27287 * resolv/res-close.c (__res_iclose): Likewise.
27288 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
27289 * sysdeps/posix/closedir.c (__closedir): Likewise.
27290 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
27291 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27292 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
27293 (opendir_tail): Likewise.
27294 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27295 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
27296 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
27297 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
27298 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27299 (gethostid): Likewise.
27300 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27301 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27302 Likewise.
27303 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
27304 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
27305 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27306 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27307 Likewise.
27308 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
27309 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
27310 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27311 Likewise.
27312 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
27313 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27314 Likewise.
27315 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27316 Likewise.
27317 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
27318 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27319 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27320 __close_nocancel.
27321
27322 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
27323 (openat_not_cancel_3): Likewise.
27324 (openat64_not_cancel_3): Likewise).
27325 (openat_not_cancel_3): Likewise).
27326 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
27327 macro.
27328 (openat_not_cancel_3): Likewise.
27329 (openat64_not_cancel): Likewise.
27330 (openat64_not_cancel_3): Likewise.
27331 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
27332 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
27333 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
27334 __open{64}_nocancel.
27335 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
27336 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27337 * sysdeps/posix/opendir.c (__opendirat): Likewise.
27338
273392017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27340
27341 [BZ #18822]
27342 * include/argz.h (__argz_create_sep): New function prototype.
27343 (__argz_append): Likewise.
27344 (__argz_add): Likewise.
27345 (__argz_add_sep): Likewise.
27346 (__argz_delete): Likewise.
27347 (__argz_insert): Likewise.
27348 (__argz_replace): Likewise.
27349 * string/argz.h (__argz_create_sep): Removed.
27350 (__argz_append): Likewise.
27351 (__argz_add): Likewise.
27352 (__argz_add_sep): Likewise.
27353 (__argz_delete): Likewise.
27354 (__argz_insert): Likewise.
27355 (__argz_replace): Likewise.
27356
273572017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27358
27359 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
27360 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
27361 (GNU_PROPERTY_STACK_SIZE): Likewie.
27362 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
27363 (GNU_PROPERTY_LOPROC): Likewise.
27364 (GNU_PROPERTY_HIPROC): Likewise.
27365 (GNU_PROPERTY_LOUSER): Likewise.
27366 (GNU_PROPERTY_HIUSER): Likewise.
27367 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
27368 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
27369 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
27370 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
27371 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
27372 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
27373 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
27374 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
27375 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
27376 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
27377 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
27378 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
27379 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
27380 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
27381 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
27382 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
27383 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
27384 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
27385 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
27386 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
27387 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
27388 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
27389 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
27390
273912017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27392
27393 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
27394 in C++ mode.
27395
273962017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27397
27398 [BZ #21930]
27399 * math/math.h (isinf): Check if in C or C++ mode before using
27400 __builtin_types_compatible_p, since this is a C mode feature.
27401
274022017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27403
27404 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
27405 (__write_nocancel): New macro.
27406 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
27407 Rewrite as a function prototype.
27408 (write_not_cancel): Remove macro.
27409 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
27410 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
27411 (write_gmon): Likewise.
27412 * libio/fileops.c (_IO_new_file_write): Likewise.
27413 * login/utmp_file.c (pututline_file): Likewise.
27414 (updwtmp_file): Likewise.
27415 * stdio-common/psiginfo.c (psiginfo): Likewise.
27416 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27417 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27418 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27419 Likewise.
27420 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27421 Likewise.
27422
27423 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
27424 (__read_nocancel): New macro.
27425 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27426 __read_nocancel.
27427 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
27428 macro.
27429 (__read_nocancel): New prototype.
27430 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
27431 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
27432 with __read_nocancel.
27433 * intl/loadmsgcat.c (read): Likewise.
27434 * libio/fileops.c (_IO_file_read): Likewise.
27435 * locale/loadlocale.c (_nl_load_locale): Likewise.
27436 * login/utmp_file.c (getutent_r_file): Likewise.
27437 (internal_getut_r): Likewise.
27438 (getutline_r_file): Likewise.
27439 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
27440 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
27441 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27442 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27443 Likewise.
27444 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
27445 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27446 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27447 Likewise.
27448 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27449 Likewise.
27450 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27451 Likewise.
27452 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27453 Likewise.
27454 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27455
274562017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27457
27458 [BZ #21966]
27459 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
27460 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
27461 usable.
27462
274632017-08-17 DJ Delorie <dj@redhat.com>
27464
27465 * bug17079.c: Update to new test harness.
27466 * test-digits-dots.c: Likewise.
27467 * test-netdb.c: Likewise.
27468 * tst-field.c: Likewise.
27469 * tst-nss-getpwent.c: Likewise.
27470 * tst-nss-static.c: Likewise.
27471 * tst-nss-test1.c: Likewise.
27472 * tst-nss-test2.c: Likewise.
27473 * tst-nss-test3.c: Likewise.
27474 * tst-nss-test4.c: Likewise.
27475 * tst-nss-test5.c: Likewise.
27476
274772017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27478
27479 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
27480 (open_not_cancel_2): Likewise.
27481 (open_nocancel): New macro.
27482 (open64_nocancel): Likewise.
27483 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
27484 (open_not_cancel_2): Likewise.
27485 (__open_nocancel): New prototype.
27486 (__open64_nocancel): Likewise.
27487 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27488 __open_nocancel.
27489 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
27490 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
27491 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
27492 with __open_nocancel.
27493 * csu/check_fds.c (check_one_fd): Likewise.
27494 * gmon/gmon.c (write_gmon): Likewise.
27495 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
27496 * intl/loadmsgcat.c (open): Likewise.
27497 * libio/fileops.c (_IO_file_open): Likewise.
27498 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
27499 * locale/loadlocale.c (_nl_load_locale): Likewise.
27500 * login/utmp_file.c (setutent_file): Likewise.
27501 * misc/daemon.c (daemon): Likewise.
27502 * nss/nss_db/db-open.c (internal_setent): Likewise.
27503 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
27504 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
27505 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
27506 (__opendir): Likewise.
27507 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27508 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
27509 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27510 (gethostid): Likewise.
27511 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27512 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27513 Likewise.
27514 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
27515 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
27516 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27517 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27518 Likewise.
27519 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27520 Likewise.
27521 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27522 Likewise.
27523 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27524 Likewise.
27525 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27526 Likewise.
27527 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27528 Likewise.
27529 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
27530 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27531
275322017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
27533
27534 * benchtests/bench-skeleton.c (main): Add support for
27535 latency benchmarking.
27536 * benchtests/scripts/bench.py: Add support for latency benchmarking.
27537
275382017-08-17 H.J. Lu <hongjiu.lu@intel.com>
27539
27540 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
27541 the startup object.
27542
275432017-08-17 Florian Weimer <fweimer@redhat.com>
27544
27545 * include/sys/socket.h (__opensock): Remove internal_function.
27546 * socket/opensock.c (__opensock): Likewise.
27547 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
27548
275492017-08-16 Joseph Myers <joseph@codesourcery.com>
27550
27551 [BZ #21944]
27552 * signal/bits/types/__sigval_t.h: New file.
27553 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
27554 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
27555 and define sigval_t using __sigval_t.
27556 * include/bits/types/__sigval_t.h: New file.
27557 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
27558 instead of <bits/types/__sigval_t.h>.
27559 (struct sigevent): Use __sigval_t instead of sigval_t.
27560 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
27561 instead of <bits/types/__sigval_t.h>.
27562 (siginfo_t): Use __sigval_t instead of sigval_t.
27563 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
27564 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
27565 (struct sigevent): Use __sigval_t instead of sigval_t.
27566 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
27567 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
27568 (siginfo_t): Use __sigval_t instead of sigval_t.
27569 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
27570
275712017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27572
27573 * NEWS: Remove "[Add new features here]" for 2.27.
27574
275752017-08-16 Joseph Myers <joseph@codesourcery.com>
27576
27577 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
27578 libc.so.
27579
275802017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27581
27582 * NEWS: Mention x86-64 FMA optimization.
27583
275842017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27585
27586 [BZ #21912]
27587 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27588 Add e_expf-fma.
27589 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
27590 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
27591 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
27592
275932017-08-16 Andreas Schwab <schwab@suse.de>
27594
27595 [BZ #16750]
27596 CVE-2009-5064
27597 * elf/ldd.bash.in: Never run file directly.
27598
275992017-08-15 H.J. Lu <hongjiu.lu@intel.com>
27600
27601 [BZ #21955]
27602 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
27603 (L(SP_INF_0)): Likewise.
27604
276052017-08-15 Florian Weimer <fweimer@redhat.com>
27606
27607 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
27608 run-built-tests.
27609
276102017-08-15 Florian Weimer <fweimer@redhat.com>
27611
27612 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
27613 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
27614 BROKEN_THREAD_SIGNALS code.
27615 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
27616 request_list): Remove caller_pid member used for
27617 BROKEN_THREAD_SIGNALS.
27618 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
27619 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
27620 Remove BROKEN_THREAD_SIGNALS support.
27621 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
27622 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
27623
276242017-08-15 Florian Weimer <fweimer@redhat.com>
27625
27626 * gmon/Makefile (tests): Add tst-gmon.
27627 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
27628 Set.
27629 (tests-special): Add tst-gmon-prof.out.
27630 (tst-gmon.out): Depend on clean-tst-gmon-data.
27631 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
27632 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
27633 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
27634 startup object.
27635 * aclocal.m4 (GPROF): Set and substitute.
27636 * config.amke.in (GPROF): Set.
27637 * configure: Regenerate.
27638
276392017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
27640
27641 * elf/elf.h A (NT_PPC_TAR): New macro.
27642 (NT_PPC_PPR): Likewise.
27643 (NT_PPC_DSCR): Likewise.
27644 (NT_PPC_EBB): Likewise.
27645 (NT_PPC_PMU): Likewise.
27646 (NT_PPC_TM_CGPR): Likewise.
27647 (NT_PPC_TM_CFPR): Likewise.
27648 (NT_PPC_TM_CVMX): Likewise.
27649 (NT_PPC_TM_CVSX): Likewise.
27650 (NT_PPC_TM_SPR): Likewise.
27651 (NT_PPC_TM_CTAR): Likewise.
27652 (NT_PPC_TM_CPPR): Likewise.
27653 (NT_PPC_TM_CDSCR): Likewise.
27654
276552017-08-15 Florian Weimer <fweimer@redhat.com>
27656
27657 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
27658 regparm (2) instead of internal_function.
27659 (_MCOUNT_DECL): Adjust.
27660
276612017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
27662
27663 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
27664 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
27665
276662017-08-14 Joseph Myers <joseph@codesourcery.com>
27667
27668 * conform/data/sys/wait.h-data (si_value): Do not expect for
27669 XPG42.
27670
276712017-08-14 Florian Weimer <fweimer@redhat.com>
27672
27673 [BZ #21962]
27674 NSS: Create stubs for accidentally exported lookup functions.
27675 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
27676 Remove declaration.
27677 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
27678 (ether_hostton): Call __nss_ethers_lookup2 instead.
27679 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
27680 (ether_ntohost): Call __nss_ethers_lookup2 instead.
27681 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
27682 (setup): Call __nss_netgroup_lookup2 instead.
27683 * nss/Makefile (routines): Add compat-lookup.
27684 * nss/Versions (GLIBC_2.27): Add symbol version.
27685 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
27686 (DB_COMPAT_FCT): Remove.
27687 * nss/compat-lookup.c: New file.
27688 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
27689 from databases.def.
27690 * nss/service-lookup.c (NO_COMPAT): Remove definition.
27691 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
27692 (netname2user): Call __nss_publickey_lookup2 instead.
27693 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
27694 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
27695 instead.
27696
276972017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27698 Sergei Trofimovich <slyfox@inbox.ru>
27699
27700 [BZ #21908]
27701 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
27702 Rename to MMAP2_PAGE_UNIT.
27703 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
27704 __OFF_T_MATCHES_OFF64_T is not defined.
27705 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
27706 uint64_t.
27707 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
27708 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
27709
277102017-08-14 Florian Weimer <fweimer@redhat.com>
27711
27712 i386: Do not set internal_function.
27713 * config.h.in (USE_REGPARMS, internal_function): Remove.
27714 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
27715 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
27716
277172017-08-14 Florian Weimer <fweimer@redhat.com>
27718
27719 * elf/dl-init.c (_dl_init): Remove internal_function.
27720 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
27721 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
27722
277232017-08-14 Florian Weimer <fweimer@redhat.com>
27724
27725 * elf/rtld.c (_dl_start): Remove internal_function.
27726 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
27727 _dl_start.
27728
277292017-08-14 Florian Weimer <fweimer@redhat.com>
27730
27731 * elf/dl-fini.c (_dl_fini): Remove internal_function
27732 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27733
277342017-08-14 H.J. Lu <hongjiu.lu@intel.com>
27735
27736 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
27737 (bit_cpu_SHSTK): Likewise.
27738 (index_cpu_IBT): Likewise.
27739 (index_cpu_SHSTK): Likewise.
27740 (reg_IBT): Likewise.
27741 (reg_SHSTK): Likewise.
27742 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27743 Handle index_cpu_IBT and index_cpu_SHSTK.
27744
277452017-08-14 Mike FABIAN <mfabian@redhat.com>
27746
27747 [BZ #19982]
27748 * po/fr.po: Fix spelling mistake.
27749
277502017-08-13 Florian Weimer <fweimer@redhat.com>
27751
27752 * elf/dl-addr.c (_dl_addr): Remove internal_function.
27753 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
27754 (_dl_catch_error, _dl_receive_error): Likewise.
27755 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
27756 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
27757 (_dl_deallocate_tls): Likewise.
27758 * include/dlfcn.h (_dl_addr): Likewise.
27759 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
27760 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
27761 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
27762 Likewise.
27763
277642017-08-13 Florian Weimer <fweimer@redhat.com>
27765
27766 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
27767 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
27768 internal_function.
27769 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
27770
277712017-08-13 Florian Weimer <fweimer@redhat.com>
27772
27773 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
27774 internal_function.
27775 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
27776 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
27777 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
27778 internal_function from _dl_make_stack_executable_hook member.
27779 (_dl_make_stack_executable): Remove internal_function.
27780 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
27781 Likewise.
27782 * sysdeps/unix/sysv/linux/dl-execstack.c
27783 (_dl_make_stack_executable): Likewise.
27784
277852017-08-13 Florian Weimer <fweimer@redhat.com>
27786
27787 * sysdeps/unix/sysv/linux/netlinkaccess.h
27788 (__netlink_assert_response): Remove internal_function.
27789 * sysdeps/unix/sysv/linux/netlink_assert_response.c
27790 (__netlink_assert_response): Likewise.
27791
277922017-08-13 Florian Weimer <fweimer@redhat.com>
27793
27794 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
27795 internal_function.
27796 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
27797
277982017-08-13 Florian Weimer <fweimer@redhat.com>
27799
27800 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
27801 internal_function.
27802 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
27803 * inet/netgroup.h (__internal_setnetgrent)
27804 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
27805 * inet/getnetgrent_r.c (__internal_setnetgrent)
27806 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
27807 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
27808 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
27809 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
27810 * nss/nsswitch.h (db_lookup_function): Likewise.
27811
278122017-08-13 Florian Weimer <fweimer@redhat.com>
27813
27814 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
27815 Remove internal_function.
27816 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
27817 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
27818 message argument on the stack.
27819 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
27820 Likeweise.
27821
278222017-08-12 Mike FABIAN <mfabian@redhat.com>
27823
27824 Adapt test case data to the changes in the thousands
27825 separators.
27826
27827 [BZ #20756]
27828 * localedata/tst-langinfo.sh: Adapt test case data.
27829 * stdlib/tst-strfmon_l.c: Likewise.
27830 * stdlib/tst-strtod4.c: Likewise.
27831 * stdlib/tst-strtod5i.c: Likewise.
27832
278332017-08-11 Florian Weimer <fweimer@redhat.com>
27834
27835 [BZ #21242]
27836 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
27837 Suppress pedantic warning resulting from statement expression.
27838 (__ASSERT_FUNCTION): Add missing __extension__.
27839
278402017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27841
27842 * benchtests/bench-memmove-large.c: Print output in JSON
27843 format.
27844 * benchtests/bench-memmove.c: Likewise.
27845
27846 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
27847 * benchtests/bench-memchr.c (do_one_test): Likewise.
27848 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
27849 * benchtests/bench-memcpy.c (do_one_test): Likewise.
27850 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
27851 * benchtests/bench-memmove.c (do_one_test): Likewise.
27852 * benchtests/bench-memset-large.c (do_one_test): Likewise.
27853 * benchtests/bench-memset.c (do_one_test): Likewise.
27854 * benchtests/bench-string.h (test_init): Remove memsets.
27855
278562017-08-10 Rical Jasan <ricaljasan@pacific.net>
27857
27858 * manual/lang.texi
27859 (Computing the Width of an Integer Data Type): Rename section to
27860 "Width of an Integer Type". Remove inaccurate statement regarding
27861 lack of C language facilities for determining width of integer
27862 types, and reorder content to improve flow and context of
27863 discussion.
27864
278652017-08-10 Rical Jasan <ricaljasan@pacific.net>
27866
27867 * lang.texi (va_copy): Change standard from ISO to C99.
27868 (__va_copy): Add standard and header annotation.
27869 Update description for clarity of origins and current use.
27870
278712017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27872
27873 [BZ #21941]
27874 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
27875 xssqrtqp requires operands to be in Vector Registers
27876 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
27877 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
27878 (__ieee754_sqrtf128): Likewise.
27879
278802017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
27881
27882 * sysdeps/aarch64/memcmp.S (memcmp):
27883 Rewrite of optimized memcmp.
27884
278852017-08-10 Florian Weimer <fweimer@redhat.com>
27886
27887 Introduce ld.so exceptions.
27888 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
27889 (_dl_exception_create, _dl_exception_create_format)
27890 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
27891 (_dl_catch_exception): Declare.
27892 (_dl_catch_error): Update comment.
27893 * elf/dl-error-skeleton.c (struct catch): Replace objname,
27894 errstring, malloced members with exception member.
27895 (_dl_out_of_memory): Remove.
27896 (fatal_error): New function, extracted from _dl_signal_error.
27897 (_dl_signal_exception, _dl_signal_cexception): New functions.
27898 (_dl_signal_error): Call _dl_exception_create to allocate an
27899 exception object.
27900 (_dl_catch_exception): New function, based on _dl_catch_error.
27901 (_dl_catch_error): Implement using _dl_catch_exception.
27902 * elf/dl-exception.c: New file.
27903 * elf/Makefile (dl-routines): Add dl-exception.
27904 (elide-routines.os): Likewise.
27905 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
27906 _dl_exception_create_format, _dl_exception_free.
27907 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
27908 _dl_signal_exception.
27909 * elf/dl-lookup.c (make_string): Remove.
27910 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
27911 _dl_signal_cexception, _dl_exception_free.
27912 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
27913 _dl_signal_exception.
27914 * elf/dl-sym.c (do_sym): Likewise.
27915 * elf/dl-version.c (make_string): Remove.
27916 (match_symbol): Use _dl_exception_create_format,
27917 _dl_signal_cexception, _dl_exception_free.
27918 (_dl_check_map_versions): Likewise.
27919 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
27920 _dl_catch_exception.
27921 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
27922 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
27923 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
27924 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
27925 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
27926 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
27927 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
27928 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
27929 Likewise.
27930 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
27931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
27932 (ld.so): Likewise.
27933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
27934 (ld.so): Likewise.
27935 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
27936 Likewise.
27937 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
27938 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
27939 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
27940 Likewise.
27941 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
27942 Likewise.
27943 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
27944
279452017-08-10 Florian Weimer <fweimer@redhat.com>
27946
27947 * inet/net-internal.h (__inet6_scopeid_pton): Remove
27948 attribute_hidden, internal_function.
27949 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
27950 internal_function.
27951
279522017-08-10 Florian Weimer <fweimer@redhat.com>
27953
27954 * malloc/malloc.c (get_max_fast): Reimplement as an inline
27955 function which calls __builtin_unreachable.
27956
279572017-08-10 Mike FABIAN <mfabian@redhat.com>
27958
27959 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
27960 Indian monetary formatting
27961 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
27962 test cases.
27963
279642017-08-09 Dmitry V. Levin <ldv@altlinux.org>
27965
27966 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
27967 Fix typo in comment.
27968
27969 [BZ #21928]
27970 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
27971 PTRACE_SEIZE_DEVEL): Remove.
27972 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
27973 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
27974 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
27975 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
27976 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
27977
279782017-08-09 Joseph Myers <joseph@codesourcery.com>
27979
27980 * posix/bits/types.h (__qaddr_t): Remove.
27981
27982 [BZ #21457]
27983 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
27984 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27985 __glibc_reserved1.
27986 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
27987 (ucontext_t): Use __ctx with uc_flags.
27988 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
27989 (__ctxt): Likewise.
27990 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27991 __glibc_reserved1.
27992 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
27993 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27994 __glibc_reserved1.
27995 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
27996 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27997 __glibc_reserved1.
27998 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
27999 macro.
28000 (ucontext_t): Use __ctx with uc_flags.
28001 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
28002 (ucontext_t): Use __ctx with uc_flags.
28003 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
28004 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
28005 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
28006 (ucontext_t): Use __ctx with uc_flags.
28007 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
28008 undefine further down.
28009 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28010 __glibc_reserved1.
28011 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
28012 undefine further down.
28013 (ucontext_t): Use __ctx with uc_flags.
28014 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
28015 undefine further down.
28016 (ucontext_t): Use __ctx with uc_flags.
28017 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
28018 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
28019 Rename uc_pad to __glibc_reserved1.
28020 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
28021 undefine further down.
28022 (ucontext_t): Use __ctx with uc_flags.
28023 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
28024 further down.
28025 (ucontext_t): Use __ctx with uc_flags.
28026 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
28027 __ctx with uc_flags.
28028 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
28029 (ucontext_t): Use __ctx with uc_flags.
28030 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
28031 __ctx with uc_flags.
28032
280332017-08-09 Florian Weimer <fweimer@redhat.com>
28034
28035 [BZ #21932]
28036 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
28037 before early return.
28038
280392017-08-09 Andreas Schwab <schwab@suse.de>
28040
28041 [BZ #21041]
28042 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
28043 renamed alias.
28044
28045 [BZ #21041]
28046 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
28047 tst-compat-forwarder.
28048 (modules-names): Add tst-compat-forwarder-mod.
28049 ($(objpfx)tst-compat-forwarder): Depend on
28050 $(objpfx)tst-compat-forwarder-mod.so.
28051 * nptl/tst-compat-forwarder.c: New file.
28052 * nptl/tst-compat-forwarder-mod.c: New file.
28053
280542017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
28055
28056 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
28057 comments.
28058
28059 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
28060 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28061 memcpy_falkor.
28062 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
28063 Bump.
28064 (__libc_ifunc_impl_list): Add __memcpy_falkor.
28065 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
28066 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
28067 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28068 Add falkor.
28069 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
28070 New macro.
28071
280722017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28073
28074 [BZ #759]
28075 * manual/setjmp.texi (getcontex): Document uc_stack value
28076 compatibility differences.
28077
280782017-08-08 Joseph Myers <joseph@codesourcery.com>
28079
28080 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
28081 (old_malloc_hook): Likewise.
28082 (old_memalign_hook): Likewise.
28083 (old_realloc_hook): Likewise.
28084 (struct hdr): Likewise.
28085 (flood): Likewise.
28086 (freehook): Likewise.
28087 (mallochook): Likewise.
28088 (memalignhook): Likewise.
28089 (reallochook): Likewise.
28090 (mprobe): Likewise.
28091 * malloc/mtrace.c (mallwatch): Likewise.
28092 (tr_old_free_hook): Likewise.
28093 (tr_old_malloc_hook): Likewise.
28094 (tr_old_realloc_hook): Likewise.
28095 (tr_old_memalign_hook): Likewise.
28096 (tr_where): Likewise.
28097 (lock_and_info): Likewise.
28098 (tr_freehook): Likewise.
28099 (tr_mallochook): Likewise.
28100 (tr_reallochook): Likewise.
28101 (tr_memalignhook): Likewise.
28102 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
28103 * misc/mmap.c (__mmap): Likewise.
28104 * misc/mmap64.c (__mmap64): Likewise.
28105 * misc/mprotect.c (__mprotect): Likewise.
28106 * misc/msync.c (msync): Likewise.
28107 * misc/munmap.c (__munmap): Likewise.
28108 * posix/posix_madvise.c (posix_madvise): Likewise.
28109 * socket/send.c (__send): Likewise.
28110 * socket/sendto.c (__sendto): Likewise.
28111 * socket/setsockopt.c (__setsockopt): Likewise.
28112 * string/memcmp.c (__ptr_t): Remove macro.
28113 (MEMCMP): Use void * instead of ptr_t.
28114 * string/memrchr.c (__ptr_t): Remove macro.
28115 (__memrchr): Use void * instead of ptr_t.
28116 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
28117 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28118 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28119 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
28120 * sysdeps/mach/msync.c (msync): Likewise.
28121 * sysdeps/mach/munmap.c (__munmap): Likewise.
28122 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
28123 Likewise.
28124 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
28125 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
28126 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
28127 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
28128 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
28129 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
28130 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
28131 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
28132 Likewise.
28133 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
28134 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
28135 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
28136 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
28137 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
28138 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
28139 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
28140 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
28141 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
28142 Likewise.
28143 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
28144 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
28145 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
28146 (MEMCMP): Use void * instead of ptr_t.
28147 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
28148 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
28149
281502017-08-08 Florian Weimer <fweimer@redhat.com>
28151
28152 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
28153 return statement.
28154
281552017-08-08 H.J. Lu <hongjiu.lu@intel.com>
28156
28157 [BZ #21913]
28158 * csu/libc-tls.c: Include <startup.h> first.
28159 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
28160 * elf/dl-tunables.c: Include <startup.h> first.
28161 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
28162 * sysdeps/generic/startup.h: New file.
28163 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
28164 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
28165 (I386_USE_SYSENTER): New. Defined to 0.
28166
281672017-08-08 Andreas Schwab <schwab@suse.de>
28168
28169 [BZ #21041]
28170 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
28171 * nptl/pt-system.c (system): Likewise.
28172
281732017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28174
28175 [BZ #21780]
28176 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
28177 EOPNOTSUPP.
28178 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
28179 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
28180 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
28181 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
28182 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
28183 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
28184 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
28185
281862017-08-07 Joseph Myers <joseph@codesourcery.com>
28187
28188 [BZ #21899]
28189 * bits/sigaction.h (struct sigaction): Define sa_handler and
28190 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
28191 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28192 [__USE_XOPEN_EXTENDED].
28193 (SA_RESTART): Likewise.
28194 (SA_NODEFER): Likewise.
28195 (SA_RESETHAND): Likewise.
28196 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
28197 (struct sigaction): Define sa_handler and sa_sigaction using union
28198 also for [__USE_XOPEN_EXTENDED].
28199 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28200 [__USE_XOPEN_EXTENDED].
28201 (SA_RESTART): Likewise.
28202 (SA_NODEFER): Likewise.
28203 (SA_RESETHAND): Likewise.
28204 * sysdeps/unix/sysv/linux/bits/sigaction.h
28205 (struct sigaction): Define sa_handler and sa_sigaction using union
28206 also for [__USE_XOPEN_EXTENDED].
28207 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28208 [__USE_XOPEN_EXTENDED].
28209 (SA_RESTART): Likewise.
28210 (SA_NODEFER): Likewise.
28211 (SA_RESETHAND): Likewise.
28212 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
28213 (struct sigaction): Define sa_handler and sa_sigaction using union
28214 also for [__USE_XOPEN_EXTENDED].
28215 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28216 [__USE_XOPEN_EXTENDED].
28217 (SA_RESTART): Likewise.
28218 (SA_NODEFER): Likewise.
28219 (SA_RESETHAND): Likewise.
28220 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
28221 (struct sigaction): Define sa_handler and sa_sigaction using union
28222 also for [__USE_XOPEN_EXTENDED].
28223 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28224 [__USE_XOPEN_EXTENDED].
28225 (SA_RESTART): Likewise.
28226 (SA_NODEFER): Likewise.
28227 (SA_RESETHAND): Likewise.
28228 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28229 (struct sigaction): Define sa_handler and sa_sigaction using union
28230 also for [__USE_XOPEN_EXTENDED].
28231 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28232 [__USE_XOPEN_EXTENDED].
28233 (SA_RESTART): Likewise.
28234 (SA_NODEFER): Likewise.
28235 (SA_RESETHAND): Likewise.
28236 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
28237 (struct sigaction): Define sa_handler and sa_sigaction using union
28238 also for [__USE_XOPEN_EXTENDED].
28239 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28240 [__USE_XOPEN_EXTENDED].
28241 (SA_RESTART): Likewise.
28242 (SA_NODEFER): Likewise.
28243 (SA_RESETHAND): Likewise.
28244 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
28245 (struct sigaction): Define sa_handler and sa_sigaction using union
28246 also for [__USE_XOPEN_EXTENDED].
28247 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28248 [__USE_XOPEN_EXTENDED].
28249 (SA_RESTART): Likewise.
28250 (SA_NODEFER): Likewise. Define directly rather than as alias.
28251 (SA_RESETHAND): Likewise.
28252 (SA_INTERRUPT): Define only for [__USE_MISC].
28253 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
28254 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
28255 [__USE_MISC].
28256 (SA_STACK): Define only for [__USE_MISC].
28257 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
28258 (struct sigaction): Define sa_handler and sa_sigaction using union
28259 also for [__USE_XOPEN_EXTENDED].
28260 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28261 [__USE_XOPEN_EXTENDED].
28262 (SA_RESTART): Likewise.
28263 (SA_NODEFER): Likewise.
28264 (SA_RESETHAND): Likewise.
28265 (SA_NOPTRACE): Define only for [__USE_MISC].
28266
28267 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
28268 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
28269 (struct catalog_info): Likewise.
28270 * inet/htontest.c (lo): Likewise.
28271 (foo): Likewise.
28272 * inet/inet_lnaof.c (inet_lnaof): Likewise.
28273 * inet/inet_net.c (inet_network): Likewise.
28274 * inet/inet_netof.c (inet_netof): Likewise.
28275 * inet/rcmd.c (__ivaliduser): Likewise.
28276 (iruserok): Likewise.
28277 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
28278 * locale/programs/locale-spec.c (locale_special): Likewise.
28279 * nis/nis_findserv.c (struct findserv_req): Likewise.
28280 (__nis_findfastest_with_timeout): Likewise.
28281 * nss/test-netdb.c (test_network): Likewise.
28282 * resolv/inet_neta.c (inet_neta): Likewise.
28283 * resolv/ns_date.c (ns_datetosecs): Likewise.
28284 (SECS_PER_DAY): Likewise.
28285 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
28286 Likewise.
28287 * resolv/res_comp.c (__putlong): Likewise.
28288 (__putshort): Likewise.
28289 (_getlong): Likewise.
28290 (_getshort): Likewise.
28291 * resolv/res_debug.c (p_time): Likewise.
28292 (precsize_ntoa): Likewise.
28293 (precsize_aton): Likewise.
28294 (latlon2ul): Likewise.
28295 (loc_aton): Likewise.
28296 (loc_ntoa): Likewise.
28297 * resolv/res_hconf.c (struct netaddr): Likewise.
28298 (_res_hconf_reorder_addrs): Likewise.
28299 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
28300 (clnttcp_control): Likewise.
28301 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
28302 (clntudp_control): Likewise.
28303 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
28304 (clntunix_control): Likewise.
28305 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
28306 * sunrpc/rpc/auth.h (union des_block): Likewise.
28307 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
28308 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
28309 (xdrrec_create): Likewise.
28310 (xdrrec_endofrecord): Likewise.
28311 (flush_out): Likewise.
28312 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
28313 (xdrstdio_putlong): Likewise.
28314 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
28315 Likewise.
28316
28317 * misc/sys/cdefs.h (__long_double_t): Remove.
28318 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
28319 instead of __long_double_t,
28320 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
28321
283222017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
28323
28324 * benchtests/scripts/compare_strings.py: Avoid display error when
28325 running on a text terminal.
28326
28327 * benchtests/scripts/compare_strings.py (main): Add an
28328 optional -base option.
28329 (process_results): New argument base_func.
28330
28331 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
28332 hardcoding memcpy.
28333 * benchtests/bench-memcpy-large.c (test_name): Likewise.
28334 * benchtests/bench-memcpy-random.c (test_name): Likewise.
28335
283362017-08-07 Andreas Schwab <schwab@suse.de>
28337
28338 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
28339 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
28340 * intl/Makefile ($(objpfx)tst-gettext.out)
28341 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
28342 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
28343 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
28344 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
28345 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
28346 * posix/Makefile ($(objpfx)globtest.out)
28347 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
28348 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
28349 ($(objpfx)tst-printf.out): Likewise.
28350 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
28351 ($(objpfx)tst-setcontext3.out): Likewise.
28352
283532017-08-07 H.J. Lu <hongjiu.lu@intel.com>
28354
28355 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28356 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
28357 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
28358 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
28359 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
28360 and mptan-fma.
28361 (CFLAGS-doasin-fma.c): New.
28362 (CFLAGS-dosincos-fma.c): Likewise.
28363 (CFLAGS-e_asin-fma.c): Likewise.
28364 (CFLAGS-e_atan2-fma.c): Likewise.
28365 (CFLAGS-e_exp-fma.c): Likewise.
28366 (CFLAGS-e_log-fma.c): Likewise.
28367 (CFLAGS-e_pow-fma.c): Likewise.
28368 (CFLAGS-halfulp-fma.c): Likewise.
28369 (CFLAGS-mpa-fma.c): Likewise.
28370 (CFLAGS-mpatan-fma.c): Likewise.
28371 (CFLAGS-mpatan2-fma.c): Likewise.
28372 (CFLAGS-mpexp-fma.c): Likewise.
28373 (CFLAGS-mplog-fma.c): Likewise.
28374 (CFLAGS-mpsqrt-fma.c): Likewise.
28375 (CFLAGS-mptan-fma.c): Likewise.
28376 (CFLAGS-s_atan-fma.c): Likewise.
28377 (CFLAGS-sincos32-fma.c): Likewise.
28378 (CFLAGS-slowexp-fma.c): Likewise.
28379 (CFLAGS-slowpow-fma.c): Likewise.
28380 (CFLAGS-s_sin-fma.c): Likewise.
28381 (CFLAGS-s_tan-fma.c): Likewise.
28382 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
28383 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
28384 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
28385 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
28386 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
28387 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
28388 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
28389 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
28390 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
28391 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
28392 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
28393 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
28394 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
28395 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
28396 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
28397 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
28398 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
28399 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
28400 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
28401 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
28402 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
28403 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
28404 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
28405 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
28406 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28407 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28408 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28409 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
28410 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28411 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28412 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28413
284142017-08-04 Joseph Myers <joseph@codesourcery.com>
28415
28416 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
28417 (min_of_type_f): New macro.
28418 (min_of_type_): Likewise.
28419 (min_of_type_l): Likewise.
28420 (min_of_type_f128): Likewise.
28421 (min_of_type): Define using __MATH_TG and taking an expression
28422 argument.
28423 (math_check_force_underflow): Pass expression instead of type to
28424 min_of_type.
28425 (math_check_force_underflow_nonneg): Likewise.
28426
284272017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28428
28429 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
28430 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
28431 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
28432
284332017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28434
28435 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28436 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
28437 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
28438 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
28439 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
28440 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
28441 memcpy_chk-nonshared, mempcpy_chk-nonshared,
28442 memmove_chk-nonshared and memset_chk-nonshared
28443 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
28444 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
28445 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
28446 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
28447 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
28448 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
28449 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
28450 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
28451 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
28452 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
28453 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
28454 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
28455 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
28456 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
28457 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
28458 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
28459 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
28460 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
28461 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
28462 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
28463 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
28464 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
28465 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
28466 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
28467 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
28468 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
28469 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
28470 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
28471 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
28472 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
28473 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
28474 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
28475 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
28476 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
28477 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
28478 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
28479 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
28480 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
28481 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
28482 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
28483 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
28484 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
28485 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
28486 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
28487 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
28488 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
28489 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
28490 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
28491 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
28492 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
28493 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
28494 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
28495 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
28496 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
28497 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
28498 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
28499 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
28500 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
28501 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
28502 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
28503 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
28504 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
28505 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
28506 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
28507 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
28508 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
28509 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
28510 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
28511 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
28512 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
28513 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
28514 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
28515 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
28516 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
28517 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28518 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28519 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28520 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28521 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28522 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28523 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
28524 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
28525 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
28526 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
28527 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
28528 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
28529 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
28530 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
28531 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
28532 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
28533 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
28534 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
28535 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
28536 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
28537 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
28538 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
28539 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
28540 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
28541 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
28542 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
28543 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
28544 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
28545 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
28546 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
28547 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
28548 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
28549 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
28550 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
28551
285522017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28553
28554 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
28555 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
28556 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
28557 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
28558 svml_d_log2_core-sse2, svml_d_log4_core-sse,
28559 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
28560 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
28561 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
28562 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
28563 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
28564 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
28565 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
28566 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
28567 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
28568 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
28569 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
28570 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
28571 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
28572 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
28573 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
28574 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
28575 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
28576 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
28577 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
28578 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
28579 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
28580 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
28581 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
28582 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
28583 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
28584 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
28585 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
28586 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
28587 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
28588 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
28589 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
28590 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
28591 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
28592 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
28593 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
28594 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
28595 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
28596 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
28597 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
28598 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
28599 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
28600 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
28601 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
28602 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
28603 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
28604 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
28605 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
28606 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
28607 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
28608 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
28609 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
28610 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
28611 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
28612 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
28613 ...
28614 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
28615 Don't include <sysdep.h> nor <init-arch.h>.
28616 (_ZGVbN2v_cos): Removed.
28617 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
28618 ...
28619 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
28620 Don't include <sysdep.h> nor <init-arch.h>.
28621 (_ZGVdN4v_cos): Removed.
28622 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
28623 ...
28624 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
28625 Don't include <sysdep.h> nor <init-arch.h>.
28626 (_ZGVeN8v_cos): Removed.
28627 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
28628 ...
28629 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
28630 Don't include <sysdep.h> nor <init-arch.h>.
28631 (_ZGVbN2v_exp): Removed.
28632 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
28633 ...
28634 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
28635 Don't include <sysdep.h> nor <init-arch.h>.
28636 (_ZGVdN4v_exp): Removed.
28637 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
28638 ...
28639 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
28640 Don't include <sysdep.h> nor <init-arch.h>.
28641 (_ZGVeN8v_exp): Removed.
28642 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
28643 ...
28644 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
28645 Don't include <sysdep.h> nor <init-arch.h>.
28646 (_ZGVbN2v_log): Removed.
28647 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
28648 ...
28649 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
28650 Don't include <sysdep.h> nor <init-arch.h>.
28651 (_ZGVdN4v_log): Removed.
28652 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
28653 ...
28654 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
28655 Don't include <sysdep.h> nor <init-arch.h>.
28656 (_ZGVeN8v_log): Removed.
28657 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
28658 ...
28659 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
28660 Don't include <sysdep.h> nor <init-arch.h>.
28661 (_ZGVbN2vv_pow): Removed.
28662 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
28663 ...
28664 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
28665 Don't include <sysdep.h> nor <init-arch.h>.
28666 (_ZGVdN4vv_pow): Removed.
28667 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
28668 ...
28669 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
28670 Don't include <sysdep.h> nor <init-arch.h>.
28671 (_ZGVeN8vv_pow): Removed.
28672 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
28673 ...
28674 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
28675 Don't include <sysdep.h> nor <init-arch.h>.
28676 (_ZGVbN2v_sin): Removed.
28677 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
28678 ...
28679 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
28680 Don't include <sysdep.h> nor <init-arch.h>.
28681 (_ZGVbN4v_sin): Removed.
28682 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
28683 ...
28684 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
28685 Don't include <sysdep.h> nor <init-arch.h>.
28686 (_ZGVbN8v_sin): Removed.
28687 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
28688 ...
28689 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
28690 Don't include <sysdep.h> nor <init-arch.h>.
28691 (_ZGVbN2vvv_sincos): Removed.
28692 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
28693 ...
28694 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
28695 Don't include <sysdep.h> nor <init-arch.h>.
28696 (_ZGVdN4vvv_sincos): Removed.
28697 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
28698 ...
28699 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
28700 Don't include <sysdep.h> nor <init-arch.h>.
28701 (_ZGVeN8vvv_sincos): Removed.
28702 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
28703 ...
28704 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
28705 Don't include <sysdep.h> nor <init-arch.h>.
28706 (_ZGVeN16v_cosf): Removed.
28707 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
28708 ...
28709 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
28710 Don't include <sysdep.h> nor <init-arch.h>.
28711 (_ZGVbN4v_cosf): Removed.
28712 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
28713 ...
28714 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
28715 Don't include <sysdep.h> nor <init-arch.h>.
28716 (_ZGVdN8v_cosf): Removed.
28717 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
28718 ...
28719 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
28720 Don't include <sysdep.h> nor <init-arch.h>.
28721 (_ZGVeN16v_expf): Removed.
28722 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
28723 ...
28724 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
28725 Don't include <sysdep.h> nor <init-arch.h>.
28726 (_ZGVbN4v_expf): Removed.
28727 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
28728 ...
28729 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
28730 Don't include <sysdep.h> nor <init-arch.h>.
28731 (_ZGVdN8v_expf): Removed.
28732 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
28733 ...
28734 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
28735 Don't include <sysdep.h> nor <init-arch.h>.
28736 (_ZGVeN16v_logf): Removed.
28737 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
28738 ...
28739 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
28740 Don't include <sysdep.h> nor <init-arch.h>.
28741 (_ZGVbN4v_logf): Removed.
28742 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
28743 ...
28744 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
28745 Don't include <sysdep.h> nor <init-arch.h>.
28746 (_ZGVdN8v_logf): Removed.
28747 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
28748 ...
28749 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
28750 Don't include <sysdep.h> nor <init-arch.h>.
28751 (_ZGVeN16vv_powf): Removed.
28752 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
28753 ...
28754 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
28755 Don't include <sysdep.h> nor <init-arch.h>.
28756 (_ZGVbN4vv_powf): Removed.
28757 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
28758 ...
28759 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
28760 Don't include <sysdep.h> nor <init-arch.h>.
28761 (_ZGVdN8vv_powf): Removed.
28762 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
28763 ...
28764 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
28765 Don't include <sysdep.h> nor <init-arch.h>.
28766 (_ZGVeN16vvv_sincosf): Removed.
28767 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
28768 ...
28769 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
28770 Don't include <sysdep.h> nor <init-arch.h>.
28771 (_ZGVbN4vvv_sincosf): Removed.
28772 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
28773 ...
28774 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
28775 Don't include <sysdep.h> nor <init-arch.h>.
28776 (_ZGVdN8vvv_sincosf): Removed.
28777 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
28778 ...
28779 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
28780 Don't include <sysdep.h> nor <init-arch.h>.
28781 (_ZGVeN16v_sinf): Removed.
28782 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
28783 ...
28784 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
28785 Don't include <sysdep.h> nor <init-arch.h>.
28786 (_ZGVbN4v_sinf): Removed.
28787 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
28788 ...
28789 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
28790 Don't include <sysdep.h> nor <init-arch.h>.
28791 (_ZGVdN8v_sinf): Removed.
28792
287932017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28794
28795 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28796 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
28797 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
28798 s_rint-sse4_1 and s_rintf-sse4_1.
28799 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
28800 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
28801 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
28802 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
28803 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
28804 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
28805 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
28806 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
28807 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
28808 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
28809 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
28810 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28811 (__ceil): Removed.
28812 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
28813 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
28814 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28815 (__ceilf): Removed.
28816 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
28817 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
28818 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28819 (__floor): Removed.
28820 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
28821 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
28822 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28823 (__floorf): Removed.
28824 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
28825 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
28826 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28827 (__nearbyint): Removed.
28828 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
28829 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
28830 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28831 (__nearbyintf): Removed.
28832 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
28833 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
28834 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28835 (__rint): Removed.
28836 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
28837 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
28838 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28839 (__rintf): Removed.
28840
288412017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28842
28843 * sysdeps/i386/start.S (_start): Check Check PIC instead of
28844 SHARED. Avoid dynamic relocation against main in static PIE.
28845
288462017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28847
28848 [BZ #21815]
28849 * elf/Makefile (CFLAGS-tst-prelink.c): New.
28850 (LDFLAGS-tst-prelink): Likewise.
28851
288522017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28853
28854 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
28855 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
28856 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
28857 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
28858 (INTERNAL_SYSCALL_NCS): Likewise.
28859 (LOADARGS_1): Likewise.
28860 (LOADARGS_5): Likewise.
28861 (RESTOREARGS_1): Likewise.
28862 (RESTOREARGS_5): Likewise.
28863
288642017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28865
28866 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
28867 (MEMPCPY_SYMBOL): Likewise.
28868 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
28869 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
28870 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
28871 in libc.a.
28872 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
28873 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
28874 Likewise.
28875 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
28876 (__hidden_ver1): Don't use in libc.a.
28877 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
28878 (__mempcpy): Don't create a weak alias in libc.a.
28879 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
28880 libc.a.
28881 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
28882 (__hidden_ver1): Don't use in libc.a.
28883
288842017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28885
28886 * config.make.in (have-insert): New.
28887 * configure.ac (libc_cv_insert): New. Set to yes if linker
28888 supports INSERT in linker script.
28889 (AC_SUBST(libc_cv_insert): New.
28890 * configure: Regenerated.
28891 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
28892 if $(have-insert) == yes.
28893
288942017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28895
28896 * elf/Makefile (tests): Add vismain only if
28897 $(have-protected-data) == yes.
28898 (tests-pie): Likewise.
28899
289002017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28901
28902 [BZ #21871]
28903 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
28904 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
28905
289062017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28907
28908 [BZ #21790]
28909 * sysdeps/i386/i586/memset.S
28910 (__memset_zero_constant_len_parameter): Removed.
28911 * sysdeps/i386/i686/memset.S
28912 (__memset_zero_constant_len_parameter): Likewise.
28913 * sysdeps/i386/i686/multiarch/memset_chk.S
28914 (__memset_zero_constant_len_parameter): Likewise.
28915 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
28916 Likewise.
28917
289182017-08-03 Aurelien Jarno <aurelien@aurel32.net>
28919
28920 * stdlib/getentropy.c (getentropy): Change return type to int.
28921
289222017-08-03 Aurelien Jarno <aurelien@aurel32.net>
28923
28924 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
28925
289262017-08-03 Joseph Myers <joseph@codesourcery.com>
28927
28928 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
28929 u_intN_t.
28930 * math/s_nexttowardf.c (__nexttowardf): Likewise.
28931 * sysdeps/generic/math_private.h (ieee_double_shape_type):
28932 Likewise.
28933 (ieee_float_shape_type): Likewise.
28934 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
28935 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
28936 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
28937 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
28938 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
28939 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
28940 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
28941 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
28942 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
28943 Likewise.
28944 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
28945 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
28946 (__ieee754_yn): Likewise.
28947 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28948 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28949 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
28950 Likewise.
28951 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
28952 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
28953 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
28954 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
28955 (__erfc): Likewise.
28956 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
28957 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
28958 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
28959 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
28960 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
28961 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
28962 Likewise.
28963 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
28964 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
28965 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
28966 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
28967 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
28968 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
28969 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
28970 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
28971 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
28972 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
28973 (__issignaling): Likewise.
28974 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
28975 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
28976 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
28977 Likewise.
28978 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28979 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28980 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
28981 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
28982 Likewise.
28983 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
28984 Likewise.
28985 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
28986 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
28987 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
28988 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
28989 (__erfcf): Likewise.
28990 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
28991 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
28992 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
28993 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
28994 Likewise.
28995 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
28996 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
28997 Likewise.
28998 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
28999 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
29000 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
29001 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
29002 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
29003 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
29004 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
29005 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
29006 Likewise.
29007 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
29008 Likewise.
29009 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
29010 Likewise.
29011 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
29012 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
29013 Likewise.
29014 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
29015 Likewise.
29016 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29017 (__ieee754_ynl): Likewise.
29018 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
29019 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
29020 Likewise.
29021 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
29022 Likewise.
29023 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
29024 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
29025 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
29026 Likewise.
29027 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
29028 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
29029 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
29030 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
29031 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
29032 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
29033 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
29034 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
29035 Likewise.
29036 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
29037 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
29038 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
29039 Likewise.
29040 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
29041 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
29042 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
29043 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
29044 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
29045 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29046 Likewise.
29047 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
29048 Likewise.
29049 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
29050 Likewise.
29051 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
29052 Likewise.
29053 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
29054 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
29055 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
29056 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
29057 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
29058 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
29059 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
29060 Likewise.
29061 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
29062 Likewise.
29063 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
29064 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
29065 Likewise.
29066 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
29067 (__ieee754_remainderl): Likewise.
29068 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
29069 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
29070 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
29071 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
29072 Likewise.
29073 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
29074 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
29075 Likewise.
29076 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
29077 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
29078 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
29079 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
29080 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29081 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
29082 Likewise.
29083 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
29084 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
29085 (__ieee754_y0l): Likewise.
29086 (pzero): Likewise.
29087 (qzero): Likewise.
29088 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
29089 (__ieee754_y1l): Likewise.
29090 (pone): Likewise.
29091 (qone): Likewise.
29092 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29093 (__ieee754_ynl): Likewise.
29094 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
29095 (__ieee754_lgammal_r): Likewise.
29096 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
29097 Likewise.
29098 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
29099 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
29100 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
29101 (__erfcl): Likewise.
29102 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
29103 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
29104 Likewise.
29105 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
29106 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
29107 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
29108 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
29109 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
29110 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
29111 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
29112 Likewise.
29113 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
29114 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
29115 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
29116 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
29117 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
29118 Likewise.
29119 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
29120 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
29121 Likewise.
29122 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
29123 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
29124 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
29125 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
29126 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
29127
291282017-08-03 Florian Weimer <fweimer@redhat.com>
29129
29130 [BZ #21885]
29131 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
29132 on memory allocation failure.
29133
291342017-08-03 Alan Modra <amodra@gmail.com>
29135
29136 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
29137 tst-tlsopt-powerpc.c with function name change and no test harness.
29138 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
29139 Call tls_get_addr_opt_test.
29140 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
29141 (modules-names): Add mod-tlsopt-powerpc.
29142 (mod-tlsopt-powerpc.so-no-z-defs): Define.
29143 (tst-tlsopt-powerpc): Depend on .so.
29144 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
29145 define. Expand use in TLS_GD and TLS_LD.
29146
291472017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29148
29149 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
29150 function.
29151 * sysdeps/posix/shm_open.c: Include <pthread.h>.
29152
291532017-08-02 Joseph Myers <joseph@codesourcery.com>
29154
29155 [BZ #21686]
29156 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
29157 comparing size with that of double.
29158 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29159 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29160 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29161 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29162 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29163 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
29164 unsigned __int128 types.
29165
291662017-08-02 Steve Ellcey <sellcey@cavium.com>
29167
29168 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
29169 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
29170 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
29171 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
29172 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
29173
291742017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29175
29176 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
29177
291782017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29179
29180 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
29181 of SHARED.
29182 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
29183 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29184 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29185 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29186 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29187 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29188 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29189
291902017-08-02 Joseph Myers <joseph@codesourcery.com>
29191
29192 [BZ #21685]
29193 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
29194 bit-field expressions passed to sizeof or typeof.
29195 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29196 (__TGMATH_F128): Likewise.
29197 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29198 (__TGMATH_CF128): Likewise.
29199 (__TGMATH_UNARY_REAL_ONLY): Likewise.
29200 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
29201 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
29202 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
29203 (__TGMATH_BINARY_REAL_ONLY): Likewise.
29204 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29205 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29206 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29207 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29208 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
29209 (__TGMATH_UNARY_REAL_IMAG): Likewise.
29210 (__TGMATH_UNARY_IMAG): Likewise.
29211 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
29212 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29213 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
29214 type.
29215 (define_vars_for_type): Handle bit_field type specially.
29216 (Tests.__init__): Declare structure with bit-field element.
29217
292182017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29219
29220 [BZ #21791]
29221 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
29222 (MEMCPY_CHK): Define only if SHARED is defined.
29223 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
29224 Likewise.
29225 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
29226 Likewise.
29227
29228See ChangeLog.18 for earlier changes.