]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
timespec_get (posix): Fix copyright header
[thirdparty/glibc.git] / ChangeLog
1 2018-12-12 Florian Weimer <fweimer@redhat.com>
2
3 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4 clause to copyright header.
5
6 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7
8 [BZ #23614]
9 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
10 registers saved in the stack frame.
11 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
12 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
13
14 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15
16 * include/bits/monetary-ldbl.h: New file.
17 * include/bits/printf-ldbl.h: Likewise.
18 * include/bits/stdio-ldbl.h: Likewise.
19 * include/bits/stdlib-ldbl.h: Likewise.
20 * include/bits/syslog-ldbl.h: Likewise.
21 * include/bits/wchar-ldbl.h: Likewise.
22
23 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24
25 * libio/libio.h: Remove redirection for _IO_vfprintf.
26
27 2018-12-11 Andreas Schwab <schwab@suse.de>
28
29 * Makerules: Remove all references to abilist-pattern.
30 (update-all-abi): Simplify find expression.
31
32 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
33
34 [BZ #23961]
35 * math/auto-libm-test-in: Add new test case.
36 * math/auto-libm-test-out-pow: Regenerated.
37 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
38
39 2018-12-10 DJ Delorie <dj@redhat.com>
40
41 [BZ #23948]
42 * support/test-container.c: Move postclean step to before we
43 change namespaces.
44
45 2018-12-10 Joseph Myers <joseph@codesourcery.com>
46
47 * scripts/gen-as-const.py (main): Handle --python option.
48 * scripts/gen-py-const.awk: Remove.
49 * Makerules (py-const-script): Use gen-as-const.py.
50 ($(py-const)): Likewise.
51 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
52 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
53 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
54 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
55 ~PTHREAD_MUTEX_NO_ELISION_NP.
56 * manual/README.pretty-printers: Update reference to
57 gen-py-const.awk.
58
59 * scripts/glibcextract.py: New file.
60 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
61 or tempfile. Import glibcexctract.
62 (compute_c_consts): Remove. Moved to glibcextract.py.
63 (gen_test): Update reference to compute_c_consts.
64 (main): Likewise.
65 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
66 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
67 * sysdeps/unix/sysv/linux/Makefile
68 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
69 Redirect stderr as well as stdout.
70
71 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
72
73 [BZ #19767]
74 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
75 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
76 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
77 ALWAYS_USE_VSYSCALL.
78 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
79 ALWAYS_USE_VSYSCALL.
80 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
81 ALWAYS_USE_VSYSCALL.
82
83 2018-12-10 Florian Weimer <fweimer@redhat.com>
84
85 [BZ #23972]
86 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
87 offset instead of count for clarity. Fix typo in comment.
88 (__old_getdents64): Keep track of previous offset. Use it to call
89 handle_overflow.
90 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
91 that d_off is never zero.
92
93 2018-12-10 Andreas Schwab <schwab@suse.de>
94
95 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
96 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
97 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
98 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
99 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
100
101 2018-12-10 Joseph Myers <joseph@codesourcery.com>
102
103 * timezone/private.h: Update from tzcode 2018g.
104 * timezone/tzfile.h: Likewise.
105 * timezone/tzselect.ksh: Likewise.
106 * timezone/zdump.c: Likewise.
107 * timezone/zic.c: Likewise.
108
109 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
110
111 [BZ #23490]
112 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
113 (do_test): Adjust buffer size and fix format.
114
115 2018-12-07 DJ Delorie <dj@redhat.com>
116
117 [BZ #23907]
118 * malloc/tst-tcfree3.c: New.
119 * malloc/Makefile: Add it.
120
121 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
122
123 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
124
125 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
126
127 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
128 used as a mask for the mode argument of __vfscanf_internal and
129 __vfwscanf_internal.
130 * stdio-common/vfscanf-internal.c
131 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
132 (__strtof128_internal): Define to __wcstof128_internal.
133 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
134 __strtof128_internal or __wcstof128_internal when the format of
135 long double is the same as _Float128.
136
137 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
138
139 * include/unistd.h (__confstr): Add prototype and hidden prototype.
140 * posix/confstr.c (confstr): Rename to __confstr.
141 (__confstr): Add hidden def.
142 (confstr): Add weak alias for __confstr.
143 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
144 confstr.
145
146 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
147
148 * NEWS: Mention getcpu.
149 * include/sched.h (__getcpu): New libc_hidden_proto.
150 * manual/resource.texi: Document getcpu.
151 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
152 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
153 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
154 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
155 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
156 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
157 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
158 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
159 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
160 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
161 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
162 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
163 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
164 Likewise.
165 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
166 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
167 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
168 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
169 Likewise.
170 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
171 Likewise.
172 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
173 Likewise.
174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
175 Likewise.
176 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
177 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
178 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
179 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
180 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
181 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
182 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
183 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
184 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
185 * sysdeps/unix/sysv/linux/getcpu.c: New file.
186 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
187 Also check getcpu.
188
189 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
190
191 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
192 functions.
193 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
194
195 2018-12-07 Florian Weimer <fweimer@redhat.com>
196
197 [BZ #17405]
198 * posix/Makefile (routines): Add spawn_faction_addfchdir.
199 * posix/Versions (GLIBC_2.29): Export
200 posix_spawn_file_actions_addfchdir_np.
201 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
202 * posix/spawn_faction_destroy.c
203 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
204 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
205 and the field action.fchdir_action.
206 * posix/tst-spawn-chdir.c (add_chdir): New function.
207 (do_test): Add do_fchdir loop. Call add_chdir.
208 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
209 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
210 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
211 posix_spawn_file_actions_addfchdir_np.
212 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
213 Likewise.
214 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
215 Likewise.
216 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
217 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
218 Likewise.
219 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
220 Likewise.
221 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
222 Likewise.
223 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
224 Likewise.
225 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
226 Likewise.
227 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
228 Likewise.
229 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
230 (GLIBC_2.29): Likewise.
231 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
232 (GLIBC_2.29): Likewise.
233 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
234 (GLIBC_2.29): Likewise.
235 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
236 (GLIBC_2.29): Likewise.
237 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
238 Likewise.
239 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
240 (GLIBC_2.29): Likewise.
241 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
242 (GLIBC_2.29): Likewise.
243 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
244 (GLIBC_2.29): Likewise.
245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
246 (GLIBC_2.29): Likewise.
247 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
248 Likewise.
249 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
250 Likewise.
251 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
252 Likewise.
253 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
254 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
255 Likewise.
256 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
257 Likewise.
258 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
259 Likewise.
260 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
261 Likewise.
262
263 2018-12-06 Joseph Myers <joseph@codesourcery.com>
264
265 * manual/texinfo.tex: Update to version 2018-09-21.20 with
266 trailing whitespace removed.
267 * scripts/config.guess: Update to version 2018-11-28.
268 * scripts/config.sub: Update to version 2018-11-28.
269 * scripts/install-sh: Update to version 2018-03-11.20.
270 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
271 * scripts/move-if-change: Update to version 2018-03-07 03:47.
272
273 2018-12-07 Florian Weimer <fweimer@redhat.com>
274
275 [BZ #23927]
276 CVE-2018-19591
277 * inet/tst-if_index-long.c: New file.
278 * inet/Makefile (tests): Add tst-if_index-long.
279
280 2018-12-07 Florian Weimer <fweimer@redhat.com>
281
282 * support/check.h (support_record_failure_is_failed): Declare.
283 * support/descriptors.h: New file.
284 * support/support_descriptors.c: Likewise.
285 * support/tst-support_descriptors.c: Likewise.
286 * support/support_record_failure.c
287 (support_record_failure_is_failed): New function.
288 * support/Makefile (libsupport-routines): Add support_descriptors.
289 (tests): Add tst-support_descriptors.
290
291 2018-12-05 Zack Weinberg <zackw@panix.com>
292 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
293
294 * stdio-common/vfprintf-internal.c
295 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
296 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
297 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
298 and __no_long_double.
299 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
300 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
301 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
302 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
303 and __nldbl_*syslog* functions.
304 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
305 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
306 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
307 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
308 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
309 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
310 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
311 (__nldbl_vwprintf, __nldbl_wprintf):
312 Directly call the appropriate __v*printf_internal routine, passing
313 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
314 variable names.
315 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
316 (__nldbl___printf_chk, __nldbl___snprintf_chk)
317 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
318 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
319 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
320 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
321 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
322 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
323 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
324 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
325 Likewise, and also pass PRINTF_FORTIFY when appropriate.
326 (__nldbl_syslog, __nldbl_vsyslog):
327 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
328 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
329 appropriate.
330 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
331 appropriate.
332
333 2018-12-05 Zack Weinberg <zackw@panix.com>
334 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
335
336 [BZ #11319]
337 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
338 Moved here from debug/vsprintf_chk.c.
339 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
340 and completion logic for the strfile to match exactly what
341 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
342 _IO_str_init_static_internal instead of maxlen-1.
343 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
344 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
345 __vsprintf_internal.
346
347 * debug/vsprintf_chk.c (__vsprintf_chk)
348 * debug/sprintf_chk.c (__sprintf_chk):
349 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
350 'flags' argument is positive, and slen as maxlen. No need to lock
351 the FILE and/or construct a temporary FILE. Minimize and normalize
352 header inclusions and variable names. Do not libc_hidden_def anything.
353
354 * debug/asprintf_chk.c (__asprintf_chk)
355 * debug/dprintf_chk.c (__dprintf_chk)
356 * debug/fprintf_chk.c (__fprintf_chk)
357 * debug/fwprintf_chk.c (__fwprintf_chk)
358 * debug/printf_chk.c (__printf_chk)
359 * debug/snprintf_chk.c (__snprintf_chk)
360 * debug/swprintf_chk.c (__swprintf_chk)
361 * debug/vasprintf_chk.c (__vasprintf_chk)
362 * debug/vdprintf_chk.c (__vdprintf_chk)
363 * debug/vfprintf_chk.c (__vfprintf_chk)
364 * debug/vfwprintf_chk.c (__vfwprintf_chk)
365 * debug/vprintf_chk.c (__vprintf_chk)
366 * debug/vsnprintf_chk.c (__vsnprintf_chk)
367 * debug/vswprintf_chk.c (__vswprintf_chk)
368 * debug/vwprintf_chk.c (__vwprintf_chk)
369 * debug/wprintf_chk.c (__wprintf_chk):
370 Directly call the corresponding vxxprintf_internal function, passing
371 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
372 the FILE and/or construct a temporary FILE. Minimize and normalize
373 header inclusions and variable names. Do not libc_hidden_def anything.
374
375 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
376 __obstack_vprintf_internal.
377 (__obstack_vprintf_chk): Convert into a wrapper that calls
378 __obstack_vprintf_internal (these two functions already had the
379 same code) and move to new file...
380 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
381 file.
382 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
383 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
384 * debug/Makefile (routines): Add vobprintf_chk.
385
386 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
387 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
388 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
389 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
390 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
391 (__nldbl___obstack_vfprintf_chk):
392 Directly call the corresponding vxxprintf_internal function,
393 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
394 duplicate comparison of slen with 0 or maxlen from the corresponding
395 non-__nldbl function.
396
397 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
398 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
399 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
400 Remove libc_hidden_proto.
401
402 * stdio-common/vfprintf-internal.c
403 (__vfprintf_internal, __vfwprintf_internal):
404 Do not check _IO_FLAGS2_FORTIFY.
405 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
406 * libio/libioP.h: Update prototype of __vsprintf_internal and add
407 a comment explaining why it has the maxlen argument.
408 (_IO_acquire_lock_clear_flags2_fct): Remove.
409 (_IO_acquire_lock_clear_flags2): Remove.
410 (_IO_release_lock): Remove conditional statement which will
411 now never execute.
412 (_IO_acquire_lock): Remove variable which is now unused.
413 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
414 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
415
416 * stdio-common/Makefile (tests): Add tst-bz11319 and
417 tst-bz11319-fortify2.
418 (CFLAGS-tst-bz11319-fortify2.c): New macro.
419 * stdio-common/tst-bz11319-fortify2.c: New file.
420 * stdio-common/tst-bz11319.c: Likewise.
421
422 2018-12-05 Zack Weinberg <zackw@panix.com>
423 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
424
425 * misc/syslog.c: Include libioP.h, not iolibio.h.
426 (__vsyslog_internal): New function with the former body of
427 __vsyslog_chk; takes mode_flags argument same as
428 __v*printf_internal. Call __vfprintf_internal directly.
429
430 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
431 Remove libc_hidden_def.
432 (__syslog, __syslog_chk): Use __vsyslog_internal.
433 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
434
435 * include/sys/syslog.h: Add multiple inclusion guard.
436 Add prototype for __vsyslog_internal.
437 Remove declaration and libc_hidden_proto for __vsyslog_chk.
438
439 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
440 Use __vsyslog_internal.
441
442 2018-12-05 Zack Weinberg <zackw@panix.com>
443 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
444
445 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
446 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
447 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
448 New functions.
449 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
450 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
451
452 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
453 Include wctype.h here if COMPILE_WPRINTF is defined.
454 Define __vfprintf_internal or __vfwprintf_internal, depending
455 on COMPILE_WPRINTF.
456 Temporarily, on entry to this function, update mode_flags
457 according to the environmental settings corresponding to
458 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
459 Throughout, check mode_flags instead of __ldbl_is_dbl and
460 _IO_FLAGS2_FORTIFY on the destination FILE.
461 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
462 Include vfprintf-internal.c. Don't include wctype.h.
463 * stdio-common/vfprintf.c: New file. Just define __vfprintf
464 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
465 and vfprintf.
466 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
467 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
468 and vfwprintf.
469 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
470
471 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
472 and add mode_flags argument; use __vfprintf_internal.
473 (__vdprintf): New function. Alias vdprintf to this.
474 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
475 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
476 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
477 (__obstack_printf): Use __obstack_printf_internal.
478 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
479 public aliases __vsnprintf and vsnprintf.
480 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
481 called internally.
482 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
483 public aliases _IO_vsprintf and vsprintf.
484 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
485 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
486 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
487 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
488 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
489
490 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
491 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
492 * stdio-common/fprintf.c, stdio-common/fxprintf.c
493 * stdio-common/printf.c: Use __vfprintf_internal.
494
495 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
496 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
497 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
498
499 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
500 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
501 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
502 __vfwprintf_internal.
503
504 * libio/libio.h: Remove libc_hidden_proto and declaration for
505 _IO_vfprintf.
506 Remove declaration of _IO_vfwprintf.
507 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
508 _IO_vsprintf.
509 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
510 _IO_obstack_printf.
511 * include/stdio.h: Add prototype for __vasprintf.
512 (__vsnprintf): Remove declaration, because there are no more
513 internal calls.
514 * include/wchar.h (__vfwprintf, __vswprintf): Remove
515 declaration, because there are no more internal calls.
516
517 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
518 __vsnprintf_internal, instead of _IO_vsnprintf.
519 * argp/argp-help.c (__argp_error, __argp_failure): Use
520 __vasprintf_internal, instead of _IO_vasprintf.
521 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
522 redefine, because there are no more internal calls.
523
524 2018-12-05 Zack Weinberg <zackw@panix.com>
525 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
526
527 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
528 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
529 Include libio/strfile.h instead of libioP.h.
530 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
531 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
532 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
533 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
534 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
535 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
536 necessary. Do not set __no_long_double. Normalize variable names.
537 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
538 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
539 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
540 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
541 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
542 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
543 Call __vfscanf_internal / __vfwscanf_internal directly, passing
544 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
545 Do not set __no_long_double. Normalize variable names.
546
547 2018-12-05 Zack Weinberg <zackw@panix.com>
548 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
549
550 * stdio-common/isoc99_scanf.c
551 * stdio-common/isoc99_fscanf.c
552 * stdio-common/isoc99_sscanf.c
553 * stdio-common/isoc99_vscanf.c
554 * stdio-common/isoc99_vfscanf.c
555 * stdio-common/isoc99_vsscanf.c
556 * wcsmbs/isoc99_wscanf.c
557 * wcsmbs/isoc99_fwscanf.c
558 * wcsmbs/isoc99_swscanf.c
559 * wcsmbs/isoc99_vwscanf.c
560 * wcsmbs/isoc99_vfwscanf.c
561 * wcsmbs/isoc99_vswscanf.c:
562 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
563 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
564 No need to lock and unlock the FILE passed to that function.
565
566 * stdio-common/vfscanf-internal.c
567 (__vfscanf_internal, __vfwscanf_internal):
568 Don't look at _IO_FLAGS2_SCANF_STD.
569 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
570 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
571 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
572
573 2018-12-05 Zack Weinberg <zackw@panix.com>
574 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
575
576 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
577 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
578 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
579 * libio/strfile.h: Add multiple inclusion guard.
580 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
581
582 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
583 consistency with the other version of this file.
584 (ldbl_compat_symbol): New macro.
585 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
586 New macro.
587
588 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
589 Define __vfscanf_internal or __vfwscanf_internal, depending on
590 COMPILE_WSCANF; don't define any other public symbols.
591 Remove errval and code to set errp.
592 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
593 as the mode_flags argument.
594 (encode_error, conv_error, input_error): Don't set errval.
595 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
596 Include vfscanf-internal.c.
597 * stdio-common/vfscanf.c: New file defining the public entry
598 point vfscanf, which calls __vfscanf_internal.
599 * stdio-common/vfwscanf.c: New file defining the public entry
600 point vfwscanf, which calls __vfwscanf_internal.
601
602 * stdio-common/iovfscanf.c: New file.
603 * stdio-common/iovfwscanf.c: Likewise.
604
605 * stdio-common/Makefile (routines): Add vfscanf-internal,
606 vfwscanf-internal, iovfscanf, iovfwscanf.
607 * stdio-common/Versions: Mention GLIBC_2.29, so that
608 it can be used in SHLIB_COMPAT expressions.
609 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
610 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
611 Call __vfscanf_internal, instead of _IO_vfscanf.
612 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
613 _IO_vfscanf.
614 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
615 _IO_vfwscanf.
616
617 * libio/iovsscanf.c: Clean up includes, when possible. Use
618 _IO_strfile_read or _IO_strfile_readw, when needed. Call
619 __vfscanf_internal or __vfwscanf_internal directly.
620 * libio/iovswscanf.c: Likewise.
621 * libio/swscanf.c: Likewise.
622 * libio/vscanf.c: Likewise.
623 * libio/vwscanf.c: Likewise.
624 * libio/wscanf.c: Likewise.
625 * stdio-common/isoc99_fscanf.c: Likewise.
626 * stdio-common/isoc99_scanf.c: Likewise.
627 * stdio-common/isoc99_sscanf.c: Likewise.
628 * stdio-common/isoc99_vfscanf.c: Likewise.
629 * stdio-common/isoc99_vscanf.c: Likewise.
630 * stdio-common/isoc99_vsscanf.c: Likewise.
631 * stdio-common/scanf.c: Likewise.
632 * stdio-common/sscanf.c: Likewise.
633 * wcsmbs/isoc99_fwscanf.c: Likewise.
634 * wcsmbs/isoc99_swscanf.c: Likewise.
635 * wcsmbs/isoc99_vfwscanf.c: Likewise.
636 * wcsmbs/isoc99_vswscanf.c: Likewise.
637 * wcsmbs/isoc99_vwscanf.c: Likewise.
638 * wcsmbs/isoc99_wscanf.c: Likewise.
639
640 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
641
642 * include/time.h
643 (__tz_compute): Replace time_t with __time64_t.
644 (__tz_convert): Replace time_t* with __time64_t.
645 (__offtime): Replace time_t* with __time64_t.
646 * time/gmtime.c
647 (__gmtime_r): Adjust call to __tz_convert.
648 (gmtime): Likewise.
649 * time/localtime.c
650 (__localtime_r): Likewise.
651 (localtime): Likewise.
652 * time/offtime.c: Replace time_t with __time64_t.
653 * time/tzset.c: Likewise.
654
655 2018-12-04 Joseph Myers <joseph@codesourcery.com>
656
657 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
658 dynamic linker unless [$(run-built-tests) = yes].
659
660 2018-12-03 DJ Delorie <dj@delorie.com>
661
662 * support/test-container.c (check_for_unshare_hints): New.
663 (main): Call it if unshare fails. Add support for "su" scriptlet
664 command.
665
666 2018-12-03 Joseph Myers <joseph@codesourcery.com>
667
668 * scripts/gen-as-const.py (compute_c_consts): Take an argument
669 'START' to indicate that start text should be output.
670 (gen_test): Likewise.
671 (main): Generate 'START' for first symbol or '--' line, or at end
672 of input if not previously generated.
673
674 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
675
676 [BZ #19767]
677 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
678 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
679 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
680 ALWAYS_USE_VSYSCALL.
681
682 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
683
684 [BZ #23913]
685 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
686 new_argv by one.
687
688 2018-12-03 Carlos O'Donell <carlos@redhat.com>
689
690 [BZ #23923]
691 * locale/programs/localedef.c: Declare boolean hard_links default true.
692 (options): Add --no-hard-links option.
693 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
694 * locale/programs/localedef.h: Declare prototype for hard_links.
695 * locale/programs/locfile.c (write_locale_data): Don't use hard
696 links if hard_links is false.
697
698 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
699
700 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
701 cpu_features_basic.
702 (__cache_sysconf): Likewise.
703 (init_cacheinfo): Likewise.
704 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
705 populate COMMON_CPUID_INDEX_80000007 and
706 COMMON_CPUID_INDEX_80000008.
707 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
708 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
709 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
710 (init_cpu_features): Use _Static_assert on
711 index_arch_Fast_Unaligned_Load.
712 __get_cpuid_registers and __get_arch_feature. Updated for
713 cpu_features_basic. Set stepping in cpu_features.
714 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
715 (FEATURE_INDEX_2): New.
716 (FEATURE_INDEX_MAX): Changed to enum.
717 (COMMON_CPUID_INDEX_D_ECX_1): New.
718 (COMMON_CPUID_INDEX_80000007): Likewise.
719 (COMMON_CPUID_INDEX_80000008): Likewise.
720 (cpuid_registers): Likewise.
721 (cpu_features_basic): Likewise.
722 (CPU_FEATURE_USABLE): Likewise.
723 (bit_arch_XXX_Usable): Likewise.
724 (cpu_features): Use cpuid_registers and cpu_features_basic.
725 (bit_arch_XXX): Reweritten.
726 (bit_cpu_XXX): Likewise.
727 (index_cpu_XXX): Likewise.
728 (reg_XXX): Likewise.
729 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
730 <support/check.h>.
731 (CHECK_CPU_FEATURE): New.
732 (CHECK_CPU_FEATURE_USABLE): Likewise.
733 (cpu_kinds): Likewise.
734 (do_test): Print vendor, family, model and stepping. Check
735 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
736 (TEST_FUNCTION): Removed.
737 Include <support/test-driver.c> instead of
738 "../../test-skeleton.c".
739 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
740 Check POPCNT instead of POPCOUNT.
741 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
742
743 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
744
745 * scripts/gen-as-const.py (main): Avoid emitting empty line when
746 there is no element in `consts'.
747
748 2018-12-01 Florian Weimer <fweimer@redhat.com>
749
750 * support/support_capture_subprocess.c
751 (support_capture_subprocess): Check that pipe descriptors have
752 expected values. Close original pipe descriptors in subprocess.
753
754 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
755
756 [BZ #23032]
757 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
758 attr with __pthread_default_barrierattr.
759 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
760 attr with __pthread_default_condattr.
761 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
762 attr with __pthread_default_mutexattr.
763 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
764 attr with __pthread_default_rwlockattr.
765
766 2018-12-01 Kemi Wang <kemi.wang@intel.com>
767
768 * manual/tunables.texi (POSIX Thread Tunables): New node.
769 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
770 * nptl/nptl-init.c: Include pthread_mutex_conf.h
771 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
772 __pthread_tunables_init.
773 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
774 (max_adaptive_count): Define.
775 * nptl/pthread_mutex_conf.c: New file.
776 * nptl/pthread_mutex_conf.h: New file.
777 * sysdeps/generic/adaptive_spin_count.h: New file.
778 * sysdeps/nptl/dl-tunables.list: New file.
779 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
780 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
781 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
782 Likewise.
783
784 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
785
786 [BZ #20544]
787 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
788 * stdlib/on_exit.c (__on_exit): Likewise.
789 * stdlib/Makefile (tests): Add tst-bz20544.
790 * stdlib/tst-bz20544.c: New test.
791
792 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
793
794 [BZ #19767]
795 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
796 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
797 New.
798
799 2018-11-30 Florian Weimer <fweimer@redhat.com>
800
801 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
802 Extend error logging.
803 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
804 symbol.
805
806 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
807
808 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
809 __sigismember instead of sigismember.
810 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
811 cancel_handler): New definitions.
812 (do_system): Use posix_spawn instead of fork and execl and remove
813 reentracy code.
814 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
815 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
816 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
817 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
818 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
819 * sysdeps/unix/sysv/linux/system.c: Likewise.
820
821 [BZ #22834]
822 [BZ #17490]
823 * NEWS: Add new semantic for atfork with popen and system.
824 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
825 fork and execl.
826
827 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
828
829 [BZ #23690]
830 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
831 modification order when accessing reloc_result->addr.
832 * include/link.h (reloc_result): Add field init.
833 * nptl/Makefile (tests): Add tst-audit-threads.
834 (modules-names): Add tst-audit-threads-mod1 and
835 tst-audit-threads-mod2.
836 Add rules to build tst-audit-threads.
837 * nptl/tst-audit-threads-mod1.c: New file.
838 * nptl/tst-audit-threads-mod2.c: Likewise.
839 * nptl/tst-audit-threads.c: Likewise.
840 * nptl/tst-audit-threads.h: Likewise.
841
842 2018-11-30 Joseph Myers <joseph@codesourcery.com>
843
844 * scripts/gen-as-const.py: New file.
845 * scripts/gen-as-const.awk: Remove.
846 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
847 gen-as-const.py.
848 ($(objpfx)test-as-const-%.c): Likewise.
849
850 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
851
852 * elf/dl-exception.c: Include <_itoa.h>.
853
854 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
855
856 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
857 returned by __f_setlk.
858
859 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
860 Adhemerval Zanella <adhemerval.zanella@linaro.org>
861
862 * elf/Makefile (tests-internal): Add tst-create_format1.
863 * elf/dl-exception.c (_dl_exception_create_format): Support
864 %x, %lx and %zx.
865 * elf/tst-create_format1.c: New file.
866
867 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
868
869 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
870 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
871 gnulib.)
872 * argp/argp-help.c (__argp_failure): Likewise.
873
874 2018-11-29 Mao Han <han_mao@c-sky.com>
875
876 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
877 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
878 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
879 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
880 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
881 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
882 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
883 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
884 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
885 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
886 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
887 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
888 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
889 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
890 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
891 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
892 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
893 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
894 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
895 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
896 (R_CKCORE_TLS_TPOFF32): New defines.
897
898 2018-11-29 Florian Weimer <fweimer@redhat.com>
899
900 * posix/Makefile (before-compile): Remove testcases.h and
901 ptestcases.h.
902 (generated): Add testcases.h and ptestcases.h.
903 (testcases.h, ptestcases.h): Move to $(objpfx).
904 (runtests.o): Add dependency on testcases.h.
905 (runptests.o): Add dependency on ptestcases.h.
906 * posix/testcases.h, posix/ptestcases.h: Remove files.
907 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
908 not touch posix/testcases.h and posix/ptestcases.h.
909
910 2018-11-28 Florian Weimer <fweimer@redhat.com>
911
912 support: Add signal support to support_capture_subprocess_check.
913 * support/capture_subprocess.h (support_capture_subprocess_check):
914 Adjust comment and rename parameter.
915 * support/support_capture_subprocess_check.c
916 (print_actual_status): New function.
917 (support_capture_subprocess_check): Support negative
918 status_or_signal. Call print_actual_status.
919 * support/tst-support_capture_subprocess.c (do_test): Call
920 support_capture_subprocess_check.
921 * libio/tst-vtables-common.c (termination_status)
922 (init_termination_status): Remove.
923 (check_for_termination): Adjust support_capture_subprocess_check
924 call.
925 (do_test): Remove call to init_termination_status.
926
927 2018-11-28 Joseph Myers <joseph@codesourcery.com>
928
929 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
930 source directory instead of a copy.
931 (CommandList.create_copy_dir): Remove.
932
933 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
934
935 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
936
937 2018-11-28 Florian Weimer <fweimer@redhat.com>
938
939 * support/support.h (support_quote_string): Do not use str
940 parameter name.
941
942 2018-11-27 Joseph Myers <joseph@codesourcery.com>
943
944 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
945 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
946
947 2018-11-27 Florian Weimer <fweimer@redhat.com>
948
949 * support/support.h (support_quote_string): Declare.
950 * support/support_quote_string.c: New file.
951 * support/tst-support_quote_string.c: Likewise.
952 * support/Makefile (libsupport-routines): Add
953 support_quote_string.
954 (tests): Add tst-support_quote_string.
955
956 2018-11-27 Florian Weimer <fweimer@redhat.com>
957
958 [BZ #23927]
959 CVE-2018-19591
960 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
961 descriptor leak in case of ENODEV error.
962
963 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
964
965 [BZ #19767]
966 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
967 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
968 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
969
970 2018-11-26 Carlos O'Donell <carlos@redhat.com>
971
972 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
973 Error for unknown lines.
974
975 2018-11-26 Joseph Myers <joseph@codesourcery.com>
976
977 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
978 Touch additional files.
979
980 2018-11-26 Florian Weimer <fweimer@redhat.com>
981
982 [BZ #23907]
983 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
984 double-frees.
985
986 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
987
988 [BZ #19767]
989 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
990 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
991 SHARED. Include sysdep.h.
992 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
993 ALWAYS_USE_VSYSCALL.
994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
995 ALWAYS_USE_VSYSCALL.
996
997 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
998
999 [BZ #19767]
1000 * nptl/Makefile (tests-static): Add tst-cond11-static.
1001 (tests): Likewise.
1002 * nptl/tst-cond11-static.c: New File.
1003 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
1004 tst-affinity-static.
1005 (tests): Likewise.
1006 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
1007 instead of SHARED.
1008 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
1009 (USE_VSYSCALL): Likewise.
1010 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
1011 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
1012 instead of SHARED.
1013 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
1014 SHARED.
1015 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1016 New.
1017
1018 2018-11-23 Joseph Myers <joseph@codesourcery.com>
1019
1020 [BZ #23915]
1021 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1022 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
1023 Undefine.
1024
1025 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
1028 (tst-cet-legacy-1a-ARGS): New.
1029 ($(objpfx)tst-cet-legacy-1a): New target.
1030 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
1031
1032 2018-11-22 Joseph Myers <joseph@codesourcery.com>
1033
1034 * conform/conformtest.py (CompileSubTest.__init__): Set
1035 self.run_early to False.
1036 (ExecuteSubTest.__init__): Likewise.
1037 (HeaderTests.run): Try running all non-optional, non-XFAILed
1038 compilation tests in a single execution of the compiler.
1039
1040 * conform/conformtest.py (CompileSubTest): New class.
1041 (ExecuteSubTest): Likewise.
1042 (ElementTest.run): Rename to gen_subtests. Append tests to
1043 self.subtests instead of running them.
1044 (ConstantTest.run): Likewise.
1045 (SymbolTest.run): Likewise.
1046 (TypeTest.run): Likewise.
1047 (TagTest.run): Likewise.
1048 (FunctionTest.run): Likewise.
1049 (VariableTest.run): Likewise.
1050 (MacroFunctionTest.run): Likewise.
1051 (MacroStrTest.run): Likewise.
1052 (HeaderTests.handle_test_line): Generate subtests for tests.
1053 (HeaderTests.run): Run subtests for tests.
1054
1055 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1056
1057 * math/Versions (GLIBC_2.29): Add pow.
1058 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
1059 symbol.
1060 * math/w_pow.c: New file.
1061 * sysdeps/i386/fpu/w_pow.c: New file.
1062 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
1063 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
1064 and add necessary aliases.
1065 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
1066 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
1067 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1068 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1069 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1070 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1071 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1072 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1073 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1074 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1075 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1076 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1077 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1078 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1079 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1084 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1085 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1086 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1087 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1088 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1089 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1090 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1091 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
1092 __pow.
1093 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
1094 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
1095 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
1096
1097 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1098
1099 * math/Versions (GLIBC_2.29): Add log2.
1100 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
1101 symbol.
1102 * math/w_log2.c: New file.
1103 * sysdeps/i386/fpu/w_log2.c: New file.
1104 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
1105 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
1106 and add necessary aliases.
1107 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
1108 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
1109 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1110 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1111 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1112 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1113 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1114 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1115 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1116 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1117 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1118 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1119 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1120 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1121 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1126 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1127 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1128 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1129 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1130 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1131 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1132 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1133
1134 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1135
1136 * math/Versions (GLIBC_2.29): Add log.
1137 * math/w_log_compat.c (__log_compat): Change to versioned compat
1138 symbol.
1139 * math/w_log.c: New file.
1140 * sysdeps/i386/fpu/w_log.c: New file.
1141 * sysdeps/ia64/fpu/e_log.S: Update.
1142 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
1143 and add necessary aliases.
1144 * sysdeps/ieee754/dbl-64/w_log.c: New file.
1145 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
1146 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1147 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1148 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1149 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1150 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1151 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1152 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1153 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1154 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1155 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1156 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1157 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1158 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1160 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1163 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1164 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1165 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1166 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1167 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1168 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1169 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1170 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
1171 __log.
1172 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
1173 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
1174 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
1175 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
1176
1177 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1178
1179 * math/Versions (GLIBC_2.29): Add exp and exp2.
1180 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
1181 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
1182 * math/w_exp_compat.c (__exp_compat): Likewise.
1183 * math/w_exp.c: New file.
1184 * math/w_exp2.c: New file.
1185 * sysdeps/i386/fpu/w_exp.c: New file.
1186 * sysdeps/i386/fpu/w_exp2.c: New file.
1187 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
1188 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1189 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
1190 and add necessary aliases.
1191 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
1192 and add necessary aliases.
1193 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
1194 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
1195 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
1196 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
1197 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1198 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1199 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1200 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1201 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1202 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1203 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1204 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1205 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1206 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1207 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1208 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1209 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1210 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1214 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1215 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1216 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1217 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1218 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1219 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1220 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1221 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
1222 (__ieee754_exp): Rename to __exp.
1223 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
1224 (__ieee754_exp): Rename to __exp.
1225 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
1226 (__ieee754_exp): Rename to __exp.
1227 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
1228 __exp.
1229 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
1230
1231 2018-11-20 DJ Delorie <dj@redhat.com>
1232
1233 * malloc/malloc.c (tcache_entry): Add key field.
1234 (tcache_put): Set it.
1235 (tcache_get): Likewise.
1236 (_int_free): Check for double free in tcache.
1237 * malloc/tst-tcfree1.c: New.
1238 * malloc/tst-tcfree2.c: New.
1239 * malloc/Makefile: Run the new tests.
1240 * manual/probes.texi: Document memory_tcache_double_free probe.
1241
1242 * dlfcn/dlerror.c (check_free): Prevent double frees.
1243
1244 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1245
1246 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
1247
1248 2018-11-20 Joseph Myers <joseph@codesourcery.com>
1249
1250 * conform/conformtest.py (ElementTest.run): Use unique identifiers
1251 in tests. Use names for format arguments.
1252 (ConstantTest.run): Likewise.
1253 (SymbolTest.run): Likewise.
1254 (TypeTest.run): Likewise.
1255 (TagTest.run): Likewise.
1256 (FunctionTest.run): Likewise.
1257 (VariableTest.run): Likewise.
1258 (MacroFunctionTest.run): Likewise.
1259 (MacroStrTest.run): Likewise.
1260 (HeaderTests.__init__): Set self.num_tests.
1261 (HeaderTests.handle_test_line): Set test.num. Increment
1262 self.num_tests.
1263
1264 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
1265
1266 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
1267 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
1268 SEEK_SET.
1269
1270 2018-11-19 Mao Han <han_mao@c-sky.com>
1271
1272 * scripts/config.guess: Update to version 2018-08-29.
1273 * scripts/config.sub: Update to version 2018-08-29.
1274
1275 2018-11-19 Florian Weimer <fweimer@redhat.com>
1276
1277 support: Print timestamps in timeout handler.
1278 * support/support_test_main.c (print_timestamp): New function.
1279 (signal_handler): Use it to print the termination time and the
1280 time of the last write to standard output.
1281
1282 2018-11-16 Zack Weinberg <zackw@panix.com>
1283 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1284
1285 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
1286 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
1287 argument.
1288 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
1289 and add flags argument. Check flags instead of __ldbl_is_dbl when
1290 deciding whether to set is_long_double.
1291 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
1292 passing zero for flags argument.
1293 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
1294
1295 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1296 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
1297 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
1298 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
1299 variable names. Remove libc_hidden_def/libc_hidden_proto from
1300 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
1301 longer called from within the library.
1302 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
1303 for __nldbl___vstrfmon_l, declare it explicitly.
1304
1305 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
1306
1307 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
1308
1309 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
1310 macros
1311 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
1312 F_SETLK64, F_SETLKW64, respectively.
1313 * sysdeps/mach/hurd/f_setlk.c: New file.
1314 * sysdeps/mach/hurd/f_setlk.h: New file.
1315 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
1316 f_setlk.
1317 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
1318 (__libc_fcntl): Move non-flock operations to...
1319 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
1320 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
1321
1322 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
1323
1324 mktime: DEBUG_MKTIME cleanup
1325 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
1326 And it’s no longer needed now that glibc and Gnulib both have
1327 their own testing mechanisms for mktime.
1328 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
1329
1330 mktime: fix non-EOVERFLOW errno handling
1331 [BZ#23789]
1332 mktime was not properly reporting failures when the underlying
1333 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
1334 them like EOVERFLOW failures, and set errno to EOVERFLOW.
1335 The problem could happen on non-glibc platforms, with Gnulib.
1336 * time/mktime.c (guess_time_tm): Remove, replacing with ...
1337 (tm_diff): ... this simpler function, which does not change errno.
1338 All callers changed to deal with errno themselves.
1339 (ranged_convert, __mktime_internal): Return failure immediately if
1340 the underlying function reports any failure other than EOVERFLOW.
1341 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
1342 gap code fails.
1343
1344 mktime: fix bug with Y2038 DST transition
1345 [BZ#23789]
1346 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
1347 mishandle a DST transition that jumps over the Y2038 boundary.
1348 No such DST transitions are known so this is only a theoretical
1349 bug, but we might as well do things right.
1350
1351 mktime: make more room for overflow
1352 [BZ#23789]
1353 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
1354 This is so that we can add tm_diff results to a previous guess,
1355 which will be useful in a later patch.
1356
1357 mktime: simplify offset guess
1358 [BZ#23789]
1359 * time/mktime.c (__mktime_internal): Omit excess precision.
1360
1361 mktime: new test for mktime failure
1362 [BZ#23789]
1363 Based on a test suggested by Albert Aribaud in:
1364 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
1365 * time/Makefile (tests): Add bug-mktime4.
1366 * time/bug-mktime4.c: New file.
1367
1368 mktime: fix EOVERFLOW bug
1369 [BZ#23789]
1370 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
1371 Include libc-config.h, not config.h, for __set_errno.
1372 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
1373
1374 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
1375
1376 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
1377 __attribute_copy__ to copy attributes from name. Drop static qualifier
1378 to avoid warnings about leaf attribute not having effect on static
1379 functions.
1380
1381 2018-11-13 Florian Weimer <fweimer@redhat.com>
1382
1383 * malloc/malloc.c (fastbin_push_entry): New function.
1384 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
1385 (REMOVE_FB): Remove macro.
1386 (_int_malloc): Use fastbin_pop_entry and reindent.
1387 (_int_free): Use fastbin_push_entry.
1388 (malloc_consolidate): Use atomic_exchange_acquire.
1389
1390 2018-11-13 Joseph Myers <joseph@codesourcery.com>
1391
1392 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
1393 alias attribute, not with strong_alias.
1394
1395 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
1396 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
1397 with additional parameter thread.
1398 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
1399 in terms of __hidden_ver2.
1400 (hidden_tls_def): New macro.
1401 (libc_hidden_tls_def): Likewise.
1402 (rtld_hidden_tls_def): Likewise.
1403 (libm_hidden_tls_def): Likewise.
1404 (libmvec_hidden_tls_def): Likewise.
1405 (libresolv_hidden_tls_def): Likewise.
1406 (librt_hidden_tls_def): Likewise.
1407 (libdl_hidden_tls_def): Likewise.
1408 (libnss_files_hidden_tls_def): Likewise.
1409 (libnsl_hidden_tls_def): Likewise.
1410 (libnss_nisplus_hidden_tls_def): Likewise.
1411 (libutil_hidden_tls_def): Likewise.
1412 (libutil_hidden_tls_def): Likweise.
1413 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
1414 libc_hidden_tls_def.
1415 (__sim_disabled_exceptions_thread): Likewise.
1416 (__sim_round_mode_thread): Likewise.
1417
1418 * sysdeps/sparc/sparc-ifunc.h [SHARED]
1419 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
1420 copy attributes from name.
1421
1422 2018-11-12 Joseph Myers <joseph@codesourcery.com>
1423
1424 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
1425 Use __attribute_copy__ to copy attributes from name.
1426
1427 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
1428 with __hidden_ver1 call.
1429 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
1430 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
1431 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
1432 (__cosf): Do not declare here.
1433 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
1434 (__sincosf): Do not declare here.
1435 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
1436 (__sinf): Do not declare here.
1437
1438 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
1439 (__BIG_ENDIAN): Likewise.
1440 (__BYTE_ORDER): Likewise.
1441 (strong_alias): Likewise.
1442 (_strong_alias): Likewise.
1443
1444 2018-11-12 Florian Weimer <fweimer@redhat.com>
1445
1446 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
1447 function. Move after the definition of in_smallbin_range. Do not
1448 use __builtin_expect for paths that lead to a noreturn function.
1449 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
1450 because it is unclear whether this is in fact an unlikely
1451 condition.
1452 (_int_malloc, _int_free): Adjust.
1453 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
1454 variables.
1455 * malloc/arena.c (heap_trim): Likewise.
1456
1457 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
1458
1459 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
1460 it, free it if needed.
1461 (reauthenticate): Test and use ccwdir.
1462 (child_init_port): In non-resetids case, test and use ccwdir.
1463 (child_chdir): New nested function to set ccwdir.
1464 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
1465 * hurd/hurd/port.h (_hurd_port_move): New function.
1466 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
1467 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
1468 * hurd/Versions (_hurd_port_move): Export function.
1469 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
1470 symbol.
1471 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
1472 of dtablesize for allocating dtable_cloexec.
1473
1474 2018-11-09 Martin Sebor <msebor@redhat.com>
1475
1476 * include/libc-symbols.h (__attribute_copy__): Define macro unless
1477 it's already defined.
1478 (_strong_alias): Use __attribute_copy__.
1479 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
1480 * misc/sys/cdefs.h (__attribute_copy__): New macro.
1481 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
1482 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
1483 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
1484 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
1485 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
1486 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
1487 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
1488 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
1489 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
1490 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
1491 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
1492 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
1493 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
1494 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
1495 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
1496 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
1497 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
1498
1499 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1500
1501 * misc/tst-efgcvt.c: Include support/check.h and
1502 support/test-driver.c. Do not include test-skeleton.c.
1503 (error_count): Remove.
1504 (output_error): Replace increments to error_count with calls to
1505 support_record_failure.
1506 (output_r_error): Likewise.
1507 (special): Likewise.
1508 (do_test): Unconditionally return zero.
1509 (TEST_FUNCTION): Remove.
1510
1511 2018-11-09 Joseph Myers <joseph@codesourcery.com>
1512
1513 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
1514 not $(@D)/scratch.
1515 ($(linknamespace-header-tests)): Likewise.
1516
1517 * conform/conformtest.py: New file.
1518 * conform/conformtest.pl: Remove.
1519 * conform/GlibcConform.pm: Likewise.
1520 * conform/glibcconform.py (KEYWORDS_C90): New constant.
1521 (KEYWORDS_C99): Likewise.
1522 (KEYWORDS): Likewise.
1523 * conform/Makefile ($(conformtest-header-tests)): Use
1524 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
1525 option. Use --header instead of --headers.
1526 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
1527 function entries.
1528 * conform/data/spawn.h-data: Likewise.
1529 * conform/data/fcntl.h-data (openat): Add space after function
1530 name.
1531 * conform/data/wchar.h-data (wcscasecmp): Likewise.
1532 (wcscasecmp_l): Likewise.
1533 * conform/data/termios.h-data (c_cc): Add space after element
1534 name.
1535
1536 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1537
1538 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
1539 instead of manually comparing and reporting mismatching strings.
1540 * misc/tst-ldbl-error.c (do_one_test): Likewise.
1541 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1542
1543 2018-11-08 Joseph Myers <joseph@codesourcery.com>
1544
1545 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
1546 __ASSUME_SOCKETCALL.
1547 * sysdeps/unix/sysv/linux/i386/kernel-features.h
1548 (__ASSUME_SOCKETCALL): Remove.
1549 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1550 (__ASSUME_SOCKETCALL): Likewise.
1551 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1552 (__ASSUME_SOCKETCALL): Likewise.
1553 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1554 (__ASSUME_SOCKETCALL): Likewise.
1555 * sysdeps/unix/sysv/linux/s390/kernel-features.h
1556 (__ASSUME_SOCKETCALL): Likewise.
1557 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1558 (__ASSUME_SOCKETCALL): Likewise.
1559 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1560 (__ASSUME_SOCKETCALL): Likewise.
1561
1562 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
1563
1564 [BZ #23509]
1565 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
1566 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
1567 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
1568 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
1569 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
1570 lc_unknown.
1571
1572 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
1573
1574 [BZ #17630]
1575 * resolv/tst-resolv-network.c: Add test for getnetbyname.
1576
1577 2018-11-07 Joseph Myers <joseph@codesourcery.com>
1578
1579 [BZ #23867]
1580 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1581 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
1582 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1583 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
1584
1585 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1586
1587 * support/support_test_compare_string.c
1588 (support_test_compare_string): Fix printf format.
1589
1590 2018-11-07 Florian Weimer <fweimer@redhat.com>
1591
1592 Implement TEST_COMPARE_STRING.
1593 * support/check.h (TEST_COMPARE_STRING): Define.
1594 (support_test_compare_string): Declare.
1595 * support/Makefile (libsupport-routines): Add
1596 support_test_compare_string.
1597 (tests): Add tst-test_compare_string.
1598 * support/support_test_compare_string.c: New file.
1599 * support/tst-test_compare_string.c: Likewise.
1600
1601 2018-11-07 Andreas Schwab <schwab@suse.de>
1602
1603 [BZ #23864]
1604 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
1605 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
1606 Undef.
1607
1608 2018-11-06 Joseph Myers <joseph@codesourcery.com>
1609
1610 [BZ #23862]
1611 * sysdeps/unix/sysv/linux/sh/kernel-features.h
1612 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
1613 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
1614 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
1615 Likewise.
1616
1617 2018-11-06 Florian Weimer <fweimer@redhat.com>
1618
1619 [BZ #17405]
1620 * posix/Makefile (routines): Add spawn_faction_addchdir.
1621 (tests): Add tst-spawn-chdir.
1622 * posix/Versions (GLIBC_2.29): Add
1623 posix_spawn_file_actions_addchdir_np.
1624 * posix/spawn_faction_addchdir.c: New file.
1625 * posix/spawn_faction_destroy.c
1626 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
1627 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
1628 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
1629 chdir_action.
1630 * posix/tst-spawn-chdir.c: New file.
1631 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
1632 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1633 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
1634 posix_spawn_file_actions_addchdir_np.
1635 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
1636 Likewise.
1637 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
1638 Likewise.
1639 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
1640 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
1641 Likewise.
1642 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
1643 Likewise.
1644 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
1645 Likewise.
1646 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
1647 Likewise.
1648 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
1649 Likewise.
1650 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
1651 Likewise.
1652 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1653 (GLIBC_2.29): Likewise.
1654 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1655 (GLIBC_2.29): Likewise.
1656 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1657 (GLIBC_2.29): Likewise.
1658 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1659 (GLIBC_2.29): Likewise.
1660 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
1661 Likewise.
1662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1663 (GLIBC_2.29): Likewise.
1664 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1665 (GLIBC_2.29): Likewise.
1666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
1667 (GLIBC_2.29): Likewise.
1668 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
1669 (GLIBC_2.29): Likewise.
1670 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
1671 Likewise.
1672 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
1673 Likewise.
1674 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
1675 Likewise.
1676 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
1677 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
1678 Likewise.
1679 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
1680 Likewise.
1681 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
1682 Likewise.
1683 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
1684 Likewise.
1685
1686 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1687
1688 * misc/Makefile (tests): Add tst-ldbl-error.
1689 * misc/tst-ldbl-error.c: New file.
1690
1691 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1692
1693 * misc/Makefile (tests): Add tst-ldbl-warn.
1694 * misc/tst-ldbl-warn.c: New file.
1695
1696 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1697
1698 * argp/Makefile (tests): Add tst-ldbl-argp.
1699 * argp/tst-ldbl-argp.c: New file.
1700
1701 2018-11-05 Arjun Shankar <arjun@redhat.com>
1702
1703 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
1704 __gconv_path_elem and call __gconv_get_path unconditionally.
1705
1706 2018-11-05 Andreas Schwab <schwab@suse.de>
1707
1708 [BZ #22927]
1709 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
1710 creating the first helper thread failed.
1711
1712 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1713
1714 * sysdeps/mach/hurd/msync.c: New file.
1715
1716 2018-11-02 Florian Weimer <fweimer@redhat.com>
1717
1718 * support/shell-container.c (copy_func): Call
1719 support_copy_file_range instead of copy_file_range to support
1720 cross-device copies.
1721
1722 2018-11-02 Florian Weimer <fweimer@redhat.com>
1723
1724 * support/test-container.c: Include <libc-pointer-arith.h> for
1725 ALIGN_UP.
1726
1727 2018-11-01 Zong Li <zong@andestech.com>
1728
1729 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
1730 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
1731 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
1732 (__FP_FRAC_SET_8): Add implementation for RV32 use.
1733
1734 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
1735 variable to avoid overlap arguments.
1736
1737 2018-11-01 Joseph Myers <joseph@codesourcery.com>
1738
1739 * posix/bug-regex22.c (main): Use puts with distinct error
1740 messages for unexpected success of re_compile_pattern, not printf
1741 with NULL argument to %s.
1742
1743 * stdio-common/bug22.c: Include <libc-diag.h>.
1744 (do_test): Disable -Wformat-overflow= warnings around fprintf
1745 calls outputting more than INT_MAX characters.
1746 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
1747 around printf call with NULL %s argument.
1748
1749 [BZ #23848]
1750 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
1751 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
1752 Undefine.
1753 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1754 (__ASSUME_RECVMSG_SYSCALL): Likewise.
1755 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1756 (__ASSUME_SENDTO_SYSCALL): Likewise.
1757 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1758 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
1759 [!__arch64__].
1760 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1761 (__ASSUME_CONNECT_SYSCALL): Likewise.
1762 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
1763 (__ASSUME_RECVFROM_SYSCALL): Likewise.
1764 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
1765 Define.
1766 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
1767 Likewise.
1768 [__LINUX_KERNEL_VERSION >= 0x040400]
1769 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
1770 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
1771 Remove.
1772 (listen): Likewise.
1773 (setsockopt): Likewise.
1774
1775 2018-11-01 Fredrik Noring <noring@nocrew.org>
1776
1777 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
1778 with the ISA override.
1779
1780 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
1781
1782 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
1783 #endif.
1784
1785 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
1786
1787 * manual/errno.texi (EIEIO): Document how translators should
1788 translate the error message.
1789 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
1790 printing trailing whitespaces refused by git.
1791 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
1792 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
1793 * hurd/Makefile (user-interfaces): Add pci.
1794
1795 2018-10-30 Joseph Myers <joseph@codesourcery.com>
1796
1797 * conform/linknamespace.py: New file.
1798 * conform/linknamespace.pl: Remove file.
1799 * conform/Makefile ($(linknamespace-header-tests)): Use
1800 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
1801 option.
1802
1803 2018-10-30 Florian Weimer <fweimer@redhat.com>
1804
1805 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
1806 memory leaks.
1807
1808 2018-10-30 Florian Weimer <fweimer@redhat.com>
1809
1810 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
1811
1812 2018-10-30 Florian Weimer <fweimer@redhat.com>
1813
1814 * stdlib/tst-strtod-overflow.c (do_test): Switch to
1815 support_blob_repeat.
1816
1817 2018-10-30 Florian Weimer <fweimer@redhat.com>
1818
1819 Avoid spurious test failures in stdlib/test-bz22786.
1820 * support/Makefile (libsupport-routines): Add blob_repeat.
1821 (tests): Add tst-support_blob_repeat.
1822 * support/blob_repeat.h: New file.
1823 * support/blob_repeat.c: Likewise.
1824 * support/tst-support_blob_repeat.c: Likewise.
1825 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
1826 support_blob_repeat_allocate.
1827
1828 2018-10-30 Andreas Schwab <schwab@suse.de>
1829
1830 [BZ #23125]
1831 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
1832 Don't use tail call.
1833 * elf/tst-unwind-main.c: New file.
1834 * elf/Makefile (tests): Add tst-unwind-main.
1835 (CFLAGS-tst-unwind-main.c): Define.
1836
1837 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
1838
1839 [BZ #23791]
1840 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
1841 n_cs_precedes to 0.
1842 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
1843
1844 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1845
1846 * conform/glibcconform.py: Do not import shutil.
1847 (list_exported_functions): Use tempfile.TemporaryDirectory instead
1848 of mkdtemp.
1849
1850 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
1851 critic_missing for versions before 3.4.
1852 * configure: Regenerated.
1853 * manual/install.texi (Tools for Compilation): Document
1854 requirement for Python to build glibc.
1855 * INSTALL: Regenerated.
1856 * Rules [PYTHON]: Make code unconditional.
1857 * benchtests/Makefile [PYTHON]: Likewise.
1858 * conform/Makefile [PYTHON]: Likewise.
1859 * manual/Makefile [PYTHON]: Likewise.
1860 * math/Makefile [PYTHON]: Likewise.
1861
1862 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
1863
1864 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
1865 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
1866 answer to interrupt_operation, return EIEIO instead of EINTR.
1867 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
1868 _hurd_intr_rpc_msg_about_to global point to start of controlled
1869 assembly snippet. Make it check canceled flag.
1870 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
1871 the _hurd_intr_rpc_msg_about_to point.
1872 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
1873 issue, remove cancel flag check.
1874
1875 2018-10-26 Joseph Myers <joseph@codesourcery.com>
1876
1877 * scripts/build-many-glibcs.py: Remove compatibility for missing
1878 os.cpu_count and re.fullmatch.
1879
1880 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
1881
1882 [BZ #23822]
1883 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
1884 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
1885 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
1886
1887 2018-10-25 Joseph Myers <joseph@codesourcery.com>
1888
1889 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
1890 macro.
1891
1892 2018-10-25 Florian Weimer <fweimer@redhat.com>
1893
1894 [BZ #23562]
1895 [BZ #23821]
1896 XFAIL siginfo_t si_band conform test on sparc64.
1897 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
1898 (__SI_BAND_TYPE): Only override long int default type on sparc64.
1899 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
1900 (conformtest-xfail-conds): Add sparc64-linux.
1901 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
1902 sparc64.
1903 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
1904
1905 2018-10-25 Joseph Myers <joseph@codesourcery.com>
1906
1907 * elf/elf.h (NT_MIPS_DSP): New macro.
1908 (NT_MIPS_FP_MODE): Likewise.
1909
1910 2018-10-25 Zong Li <zong@andestech.com>
1911
1912 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
1913 name by adding the file extension (.so).
1914
1915 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
1916
1917 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
1918 (test-xfail-ISO11/threads.h/linknamespace,
1919 test-xfail-ISO11/threads.h/conform): Add.
1920
1921 2018-10-24 Joseph Myers <joseph@codesourcery.com>
1922
1923 * math/gen-libm-test.py: Import os.
1924 (ALL_FLOATS_MANUAL): New constant.
1925 (ALL_FLOATS_SUFFIX): Likewise.
1926 (Ulps.all_functions): New function.
1927 (real_all_ulps): Likewise.
1928 (generate_err_table_sub): Likewise.
1929 (generate_err_table): Likewise.
1930 (main): Handle -s and -m options.
1931 * manual/libm-err-tab.pl: Remove.
1932 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
1933 instead of libm-err-tab.pl.
1934 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
1935 != no].
1936 * manual/install.texi (Tools for Compilation): Document
1937 requirement for Python to build manual.
1938 * INSTALL: Regenerated.
1939
1940 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
1941
1942 * bits/time64.h: New file.
1943 * include/time.h: Replace internal_time_t with __time64_t.
1944 * posix/bits/types (__time64_t): Add.
1945 * stdlib/Makefile: Add bits/time64.h to includes.
1946 * time/tzfile.c: Replace internal_time_t with __time64_t.
1947
1948 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1949
1950 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
1951 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
1952 __posix_spawn_file_actions_init, __posix_spawnattr_init,
1953 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
1954 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
1955 prototype.
1956 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
1957 * posix/spawn_faction_addclose.c
1958 (__posix_spawn_file_actions_addclose): Add hidden definition.
1959 * posix/spawn_faction_adddup2.c
1960 (__posix_spawn_file_actions_adddup2): Likewise.
1961 * posix/spawn_faction_destroy.c
1962 (__posix_spawn_file_actions_destroy): Likewise.
1963 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
1964 Likewise.
1965 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
1966 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
1967 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
1968 Likewise.
1969 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
1970 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
1971 Likewise.
1972
1973 2018-10-24 Andreas Schwab <schwab@suse.de>
1974
1975 [BZ #18093]
1976 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
1977 format cache.
1978 * elf/cache.c (print_cache): Likewise.
1979
1980 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
1981
1982 * bits/timesize.h: New file.
1983 * stdlib/Makefile (headers): Add bits/timesize.h.
1984 * sysdeps/unix/sysv/linux/bits/msq-pad.h
1985 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
1986 * sysdeps/unix/sysv/linux/bits/sem-pad.h
1987 (__SEM_PAD_AFTER_TIME): Likewise.
1988 * sysdeps/unix/sysv/linux/bits/shm-pad.h
1989 (__SHM_PAD_AFTER_TIME): Likewise.
1990 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
1991 (__MSQ_PAD_BEFORE_TIME): Likewise.
1992 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
1993 (__SEM_PAD_BEFORE_TIME): Likewise.
1994 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
1995 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
1996 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
1997 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
1998 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
1999 (__MSQ_PAD_BEFORE_TIME): Likewise.
2000 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
2001 (__SEM_PAD_BEFORE_TIME): Likewise.
2002 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
2003 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
2004 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
2005 (__MSQ_PAD_BEFORE_TIME): Likewise.
2006 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
2007 (__SEM_PAD_BEFORE_TIME): Likewise.
2008 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
2009 (__SHM_PAD_BEFORE_TIME): Likewise.
2010 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
2011 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2012 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
2013
2014 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
2015
2016 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
2017 USE_RDTSCP is defined.
2018 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
2019 USE_RDTSCP is defined.
2020
2021 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2022
2023 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
2024 defined.
2025
2026 [BZ #23709]
2027 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
2028 independently of other flags.
2029
2030 2018-10-23 Florian Weimer <fweimer@redhat.com>
2031
2032 * time/tst-mktime2.c (N_STRINGS): Remove.
2033 (set_timezone): New function.
2034 (spring_forward_gap): Call it. Use FAIL_EXIT1.
2035 (mktime_test1): Report localtime failure and check errno value.
2036 Use TEST_COMPARE.
2037 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
2038 (do_test): Remove alarm call. Use set_timezone and array_length.
2039
2040 2018-10-23 Andreas Schwab <schwab@suse.de>
2041
2042 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
2043 (__start_context): Use END instead of PSEUDO_END.
2044
2045 2018-10-22 Joseph Myers <joseph@codesourcery.com>
2046
2047 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2048 version to 4.19.
2049
2050 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2051 version to 4.19.
2052
2053 [BZ #23793]
2054 * wcsmbs/c32rtomb.c: New file.
2055 * wcsmbs/mbrtoc32.c: Likewise.
2056 * wcsmbs/tst-c32-state.c: Likewise.
2057 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
2058 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
2059 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
2060 (tests): Add tst-c32-state.
2061 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
2062 $(gen-locales).
2063
2064 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
2065
2066 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
2067 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
2068
2069 2018-10-19 Joseph Myers <joseph@codesourcery.com>
2070
2071 [BZ #23794]
2072 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
2073 pair and return 0 in that case, and use saved character to
2074 interpret following character.
2075 * wcsmbs/tst-c16-surrogate.c: New file.
2076 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
2077 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
2078 Depend on $(gen-locales)
2079
2080 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2081
2082 [BZ #23562]
2083 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
2084 (struct siginfo_t): Use correct type for si_band.
2085
2086 2018-10-19 Florian Weimer <fweimer@redhat.com>
2087
2088 [BZ #23689]
2089 * resource/bits/types/struct_rusage.h (struct rusage): Update
2090 comment on struct. Remove extraneous field comment.
2091
2092 2018-10-18 David S. Miller <davem@davemloft.net>
2093
2094 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
2095 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
2096 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
2097 sysdep_routines in subdir elf.
2098 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
2099 version for __vdso_clock_gettime.
2100 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
2101 Define.
2102 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
2103 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
2104
2105 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
2106
2107 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
2108
2109 * sysdeps/i386/init-arch.h: Removed.
2110 * sysdeps/i386/i586/init-arch.h: Likewise.
2111 * sysdeps/i386/i686/init-arch.h: Likewise.
2112 * sysdeps/i386/i686/hp-timing.h: Likewise.
2113 * sysdeps/x86_64/hp-timing.h: Likewise.
2114 * sysdeps/i386/isa.h: New file.
2115 * sysdeps/i386/i586/isa.h: Likewise.
2116 * sysdeps/i386/i686/isa.h: Likewise.
2117 * sysdeps/x86_64/isa.h: Likewise.
2118 * sysdeps/x86/hp-timing.h: New file.
2119 * sysdeps/x86/init-arch.h: Include <isa.h>.
2120
2121 2018-10-17 Joseph Myers <joseph@codesourcery.com>
2122
2123 * math/libm-test-pow.inc (pow_test_data): Do not allow
2124 divide-by-zero exception for pow(+/- 0, -Inf).
2125
2126 2018-10-17 Zack Weinberg <zackw@panix.com>
2127
2128 * manual/job.texi (Job Control is Optional): Remove node, as
2129 job control has not been optional in quite some time.
2130 (Job Control): Mention briefly that systems older than
2131 POSIX.1-2001 might not support job control.
2132 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
2133 defined on systems conforming to POSIX.1-2001.
2134
2135 2018-10-17 Arjun Shankar <arjun@redhat.com>
2136
2137 [BZ #22062]
2138 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
2139 indentation.
2140 * (__gconv_read_conf): Mark function static.
2141 * (once): New static variable.
2142 * (__gconv_load_conf): New function.
2143 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
2144 * iconv/gconv_db.c (once): Remove static variable.
2145 * (__gconv_compare_alias): Use __gconv_load_conf instead of
2146 __gconv_read_conf.
2147 * (__gconv_find_transform): Likewise.
2148 * iconv/tst-iconv-mt.c: New test.
2149 * iconv/Makefile: Add tst-iconv_mt.
2150
2151 2018-10-17 Joseph Myers <joseph@codesourcery.com>
2152
2153 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2154 bits/shm-pad.h.
2155 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
2156 (shmatt_t): Define as __syscall_ulong_t.
2157 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
2158 and [__SHM_PAD_AFTER_TIME].
2159 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
2160 Define shm_segsz and associated padding based on
2161 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
2162 Use __syscall_ulong_t instead of unsigned long int.
2163 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
2164 unsigned long int.
2165 [__USE_MISC] (struct shm_info): Likewise.
2166 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
2167 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
2168 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
2169 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
2170 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
2171 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2172 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
2173 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2174 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2175 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2176 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2177
2178 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2179 bits/shmlba.h.
2180 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
2181 (SHMLBA): Remove macro.
2182 (__getpagesize): Remove function declaration.
2183 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
2184 <bits/shmlba.h>.
2185 (SHMLBA): Remove macro.
2186 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
2187 <bits/shmlba.h>.
2188 (SHMLBA): Remove macro.
2189 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
2190 <bits/shmlba.h>.
2191 (SHMLBA): Remove macro.
2192 (__getpagesize): Remove function declaration.
2193 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
2194 <bits/shmlba.h>.
2195 (SHMLBA): Remove macro.
2196 (__getshmlba): Remove function declaration.
2197 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
2198 (SHMLBA): Remove macro.
2199 (__getpagesize): Remove function declaration.
2200 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
2201 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
2202 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
2203 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
2204 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
2205 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
2206 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
2207 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
2208 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
2209 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
2210
2211 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
2212
2213 [BZ #23275]
2214 * nptl/tst-mutex10.c: New File.
2215 * nptl/Makefile (tests): Add tst-mutex10.
2216 (tst-mutex10-ENV): New variable.
2217 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
2218 Ensure that elision path is used if elision is available.
2219 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
2220 Likewise.
2221 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
2222 Likewise.
2223 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
2224 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
2225 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
2226 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
2227 Likewise.
2228 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
2229 (__pthread_mutex_cond_lock_adjust): Likewise.
2230 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
2231 Likewise.
2232 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
2233 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
2234 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
2235 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
2236 Add comments.
2237 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
2238 Use atomic_load_relaxed and atomic_store_relaxed.
2239 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
2240 Use atomic_store_relaxed.
2241
2242 2018-10-17 Andreas Schwab <schwab@suse.de>
2243
2244 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
2245 * crypt/badsalttest.c (TIMEOUT): Likewise.
2246 * crypt/sha256c-test.c (TIMEOUT): Likewise.
2247 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
2248 * io/test-lfs.c (TIMEOUT): Likewise.
2249 * libio/tst-atime.c (TIMEOUT): Likewise.
2250 * localedata/tst-leaks.c (TIMEOUT): Likewise.
2251 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
2252 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
2253 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
2254 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
2255 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
2256 * nptl/tst-cond11.c (TIMEOUT): Likewise.
2257 * nptl/tst-cond14.c (TIMEOUT): Likewise.
2258 * nptl/tst-cond15.c (TIMEOUT): Likewise.
2259 * nptl/tst-cond24.c (TIMEOUT): Likewise.
2260 * nptl/tst-cond25.c (TIMEOUT): Likewise.
2261 * nptl/tst-kill2.c (TIMEOUT): Likewise.
2262 * nptl/tst-kill3.c (TIMEOUT): Likewise.
2263 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
2264 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
2265 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
2266 * nptl/tst-once2.c (TIMEOUT): Likewise.
2267 * nptl/tst-once3.c (TIMEOUT): Likewise.
2268 * nptl/tst-once4.c (TIMEOUT): Likewise.
2269 * nptl/tst-robust8.c (TIMEOUT): Likewise.
2270 * nptl/tst-robust9.c (TIMEOUT): Likewise.
2271 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
2272 * nptl/tst-sem14.c (TIMEOUT): Likewise.
2273 * nptl/tst-sem6.c (TIMEOUT): Likewise.
2274 * nptl/tst-signal3.c (TIMEOUT): Likewise.
2275 * nptl/tst-spin4.c (TIMEOUT): Likewise.
2276 * nptl/tst-tls3.c (TIMEOUT): Likewise.
2277 * nptl/tst-tls4.c (TIMEOUT): Likewise.
2278 * posix/tst-chmod.c (TIMEOUT): Likewise.
2279 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
2280 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
2281 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
2282 * posix/tst-regex2.c (TIMEOUT): Likewise.
2283 * posix/tst-waitid.c (TIMEOUT): Likewise.
2284 * rt/tst-aio.c (TIMEOUT): Likewise.
2285 * rt/tst-aio10.c (TIMEOUT): Likewise.
2286 * rt/tst-aio4.c (TIMEOUT): Likewise.
2287 * rt/tst-aio5.c (TIMEOUT): Likewise.
2288 * rt/tst-aio6.c (TIMEOUT): Likewise.
2289 * rt/tst-aio64.c (TIMEOUT): Likewise.
2290 * rt/tst-aio7.c (TIMEOUT): Likewise.
2291 * rt/tst-aio9.c (TIMEOUT): Likewise.
2292 * rt/tst-clock.c (TIMEOUT): Likewise.
2293 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
2294 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
2295 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
2296 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
2297 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
2298 * rt/tst-timer4.c (TIMEOUT): Likewise.
2299 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
2300 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
2301 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
2302 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
2303 * time/tst-ftime.c (TIMEOUT): Likewise.
2304 * timezone/tst-tzset.c (TIMEOUT): Likewise.
2305
2306 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2307
2308 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
2309 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
2310 for thunderX2.
2311
2312 2018-10-15 Joseph Myers <joseph@codesourcery.com>
2313
2314 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2315 bits/sem-pad.h.
2316 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
2317 instead of <bits/wordsize.h>.
2318 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
2319 and [__SEM_PAD_AFTER_TIME].
2320 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
2321 __syscall_ulong_t instead of unsigned long int.
2322 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
2323 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
2324 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
2325 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
2326 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
2327 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
2328 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
2329 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
2330 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
2331 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
2332 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
2333
2334 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
2335
2336 regex: simplify by using intprops.h
2337 [BZ#23744]
2338 * posix/regex_internal.h [_LIBC]: Include intprops.h.
2339 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
2340 intprops.h defines them.
2341
2342 regex: __builtin_expect → __glibc_unlikely
2343 [BZ#23744]
2344 This refactoring was prompted by a problem when the regex code is
2345 used as part of Gnulib and when the builder’s compiler does not grok
2346 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
2347 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
2348 Although this refactoring does not fix the problem directly,
2349 we might as well have Gawk use the now-preferred glibc style for when
2350 __builtin_expect is unavailable.
2351 * posix/regex_internal.h (BE): Remove.
2352 All uses replaced by __glibc_unlikely or __glibc_likely.
2353
2354 2018-10-11 Joseph Myers <joseph@codesourcery.com>
2355
2356 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2357 bits/msq-pad.h.
2358 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
2359 instead of <bits/wordsize.h>.
2360 (msgqnum_t): Define as __syscall_ulong_t.
2361 (msglen_t): Likewise.
2362 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
2363 and [__MSQ_PAD_AFTER_TIME].
2364 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
2365 __syscall_ulong_t instead of unsigned long int.
2366 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
2367 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
2368 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
2369 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
2370 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
2371 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
2372 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
2373 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
2374 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
2375 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
2376 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
2377
2378 2018-10-10 Joseph Myers <joseph@codesourcery.com>
2379
2380 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
2381 (struct shmid_ds): Condition padding after time fields on
2382 [__WORDSIZE == 32].
2383 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
2384 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
2385 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
2386
2387 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
2388 (struct semid_ds): Condition padding after time fields on
2389 [__WORDSIZE == 32].
2390 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
2391 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
2392 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
2393 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
2394
2395 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
2396 (struct msqid_ds): Condition padding after time fields on
2397 [__WORDSIZE == 32].
2398 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
2399 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
2400 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
2401 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
2402
2403 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
2404
2405 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
2406
2407 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
2408
2409 * libio/tst-readline.c (TIMEOUT): Define.
2410
2411 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
2412
2413 mktime fix for Gnulib + coreutils
2414 [BZ#23745]
2415 This fix affects only Gnulib. Problem discovered when
2416 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
2417 * time/mktime.c:
2418 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
2419 Do not define since it is not used. Defining an unused static
2420 function prompts a warning from GCC when Coreutils is configured
2421 with --enable-gcc-warnings.
2422
2423 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
2424
2425 * benchtests/scripts/compare_bench.py (main): set float type on
2426 threshold argument.
2427
2428 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
2429
2430 [BZ #23740]
2431 * localedata/locales/kl_GL (mon): Update, the relative case.
2432 (alt_mon): Add, fill with month names in the nominative case.
2433 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
2434 (d_fmt): Set to "%b %d %Y".
2435
2436 2018-10-04 Joseph Myers <joseph@codesourcery.com>
2437
2438 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
2439 <bits/mman-linux.h>.
2440 (PROT_READ): Don't define here.
2441 (PROT_WRITE): Likewise.
2442 (PROT_EXEC): Likewise.
2443 (PROT_NONE): Likewise.
2444 (PROT_GROWSDOWN): Likewise.
2445 (PROT_GROWSUP): Likewise.
2446 (MAP_SHARED): Likewise.
2447 (MAP_PRIVATE): Likewise.
2448 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
2449 [__USE_MISC] (MAP_FILE): Likewise.
2450 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
2451 [__USE_MISC] (MAP_ANON): Likewise.
2452 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
2453 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
2454 (MCL_CURRENT): Likewise.
2455 (MCL_FUTURE): Likewise.
2456 (MCL_ONFAULT): Likewise.
2457 [__USE_MISC] (MADV_NORMAL): Likewise.
2458 [__USE_MISC] (MADV_RANDOM): Likewise.
2459 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
2460 [__USE_MISC] (MADV_WILLNEED): Likewise.
2461 [__USE_MISC] (MADV_DONTNEED): Likewise.
2462 [__USE_MISC] (MADV_FREE): Likewise.
2463 [__USE_MISC] (MADV_REMOVE): Likewise.
2464 [__USE_MISC] (MADV_DONTFORK): Likewise.
2465 [__USE_MISC] (MADV_DOFORK): Likewise.
2466 [__USE_MISC] (MADV_HWPOISON): Likewise.
2467 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
2468 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
2469 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
2470 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
2471 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
2472 (__MAP_ANONYMOUS): New macro.
2473 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
2474 <bits/mman-linux.h> inclusion.
2475 (MAP_FIXED): Likewise.
2476 (MS_SYNC): Likewise.
2477 (MS_ASYNC): Likewise.
2478 (MS_INVALIDATE): Likewise.
2479 [__USE_MISC] (MADV_MERGEABLE): Likewise.
2480 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
2481 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
2482 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
2483 [__USE_MISC] (MADV_DONTDUMP): Likewise.
2484 [__USE_MISC] (MADV_DODUMP): Likewise.
2485 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
2486 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
2487
2488 [BZ #23735]
2489 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
2490 Define.
2491 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
2492 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
2493 Add test-nldbl-redirect.
2494 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
2495 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
2496 $(objpfx)libnldbl_nonshared.a.
2497
2498 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
2499
2500 * support/support.h (support_objdir_elf_ldso): New variable.
2501 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
2502 * support/Makefile (CFLAGS-support_paths.c): Add definition
2503 for OBJDIR_ELF_LDSO_PATH.
2504 * support/test-container.c (main): Search for the ld.so
2505 which is also used by the testsuite.
2506
2507 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
2508
2509 [BZ #20209]
2510 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
2511 should be "sap" rather than "sab".
2512 (day): Fix spelling of Sunday, should be "sapaat" rather than
2513 "sabaat".
2514
2515 2018-10-02 Joseph Myers <joseph@codesourcery.com>
2516
2517 * math/libm-test-fma.inc (fma_test_data): Add more tests.
2518
2519 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
2520
2521 [BZ #19444]
2522 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
2523 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
2524 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
2525
2526 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2527
2528 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
2529
2530 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
2531
2532 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
2533 Add -mrtm.
2534 (CFLAGS-elision-unlock.c): Likewise.
2535 (CFLAGS-elision-timed.c): Likewise.
2536 (CFLAGS-elision-trylock.c): Likewise.
2537 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
2538
2539 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2540
2541 [BZ #21037]
2542 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
2543 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
2544 new fd_to_filename interface.
2545 * libio/freopen64.c (freopen64): Likewise.
2546 * libio/tst-memstream.h: New file.
2547 * libio/tst-memstream4.c: Likewise.
2548 * libio/tst-wmemstream4.c: Likewise.
2549 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
2550 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
2551 and remove internal dynamic allocation.
2552
2553 2018-10-01 Joseph Myers <joseph@codesourcery.com>
2554
2555 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
2556 (MREMAP_MAYMOVE): Do not define here.
2557 [__USE_GNU] (MREMAP_FIXED): Likewise.
2558 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
2559 (MREMAP_MAYMOVE): Define here instead.
2560 [__USE_GNU] (MREMAP_FIXED): Likewise.
2561 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
2562 (MREMAP_MAYMOVE): Remove.
2563 [__USE_GNU] (MREMAP_FIXED): Likewise.
2564
2565 2018-09-28 Joseph Myers <joseph@codesourcery.com>
2566
2567 * math/fromfp.h: Do not include <math_private.h>.
2568 * math/s_cacosh_template.c: Likewise.
2569 * math/s_casin_template.c: Likewise.
2570 * math/s_casinh_template.c: Likewise.
2571 * math/s_ccos_template.c: Likewise.
2572 * math/s_cproj_template.c: Likewise.
2573 * math/s_fdim_template.c: Likewise.
2574 * math/s_fmaxmag_template.c: Likewise.
2575 * math/s_fminmag_template.c: Likewise.
2576 * math/s_iseqsig_template.c: Likewise.
2577 * math/s_ldexp_template.c: Likewise.
2578 * math/s_nextdown_template.c: Likewise.
2579 * math/w_log1p_template.c: Likewise.
2580 * math/w_scalbln_template.c: Likewise.
2581 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
2582 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
2583 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
2584 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
2585 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
2586 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
2587 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
2588 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
2589 * sysdeps/i386/fpu/s_atanl.c: Likewise.
2590 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
2591 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
2592 * sysdeps/i386/fpu/s_fdim.c: Likewise.
2593 * sysdeps/i386/fpu/s_logbl.c: Likewise.
2594 * sysdeps/i386/fpu/s_rintl.c: Likewise.
2595 * sysdeps/i386/fpu/s_significandl.c: Likewise.
2596 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
2597 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
2598 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2599 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2600 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
2601 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
2602 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2603 * sysdeps/ieee754/k_standardf.c: Likewise.
2604 * sysdeps/ieee754/k_standardl.c: Likewise.
2605 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2606 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
2607 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
2608 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
2609 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
2610 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
2611 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2612 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
2613 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
2614 * sysdeps/ieee754/s_signgam.c: Likewise.
2615 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
2616 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
2617 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
2618 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
2619 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
2620 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
2621 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2622 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
2623 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
2624 * sysdeps/riscv/rvd/s_finite.c: Likewise.
2625 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
2626 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
2627 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
2628 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
2629 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
2630 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
2631 * sysdeps/riscv/rvf/fegetround.c: Likewise.
2632 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
2633 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
2634 * sysdeps/riscv/rvf/fesetround.c: Likewise.
2635 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
2636 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
2637 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
2638 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
2639 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
2640 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
2641 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
2642 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
2643 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
2644 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
2645 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
2646 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
2647 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
2648 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
2649 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2650 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
2651 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
2652 <math_private.h>.
2653 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
2654
2655 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
2656
2657 [BZ #23716]
2658 * sysdeps/i386/dl-cet.c: Removed.
2659 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
2660 prototype.
2661 (_dl_runtime_profile_shstk): Likewise.
2662 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
2663 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
2664
2665 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2666
2667 [BZ #23579]
2668 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
2669 do_test_with_invalid_iov): New tests.
2670 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
2671 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
2672 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
2673 errno is ENOSYS.
2674 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2675 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2676 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
2677
2678 2018-09-27 Joseph Myers <joseph@codesourcery.com>
2679
2680 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2681 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
2682 (MATH_REDIRECT_BINARY_ARGS): New macro.
2683 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
2684 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
2685 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
2686 header inclusion.
2687 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
2688 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2689 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
2690 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2691 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2692 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2693 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2694 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
2695 Likewise.
2696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
2697 Likewise.
2698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
2699 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
2700 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
2701 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
2702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
2703 Likewise.
2704 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
2705 Likewise.
2706 * sysdeps/generic/math_private_calls.h
2707 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
2708 Do not declare and define as an inline function.
2709 * math/divtc3.c (__divtc3): Use copysign functions instead of
2710 __copysign variants.
2711 * math/multc3.c (__multc3): Likewise.
2712 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
2713 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
2714 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
2715 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
2716 Likewise.
2717 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
2718 (__ieee754_yn): Likewise.
2719 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
2720 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
2721 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
2722 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
2723 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
2724 (__sin): Likewise.
2725 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
2726 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2727 Likewise.
2728 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
2729 Likewise.
2730 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
2731 Likewise.
2732 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
2733 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
2734 Likewise.
2735 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
2736 (__ieee754_ynf): Likewise.
2737 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
2738 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
2739 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
2740 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
2741 Likewise.
2742 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2743 (__ieee754_ynl): Likewise.
2744 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
2745 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
2746 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
2747 Likewise.
2748 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2749 (__ieee754_ynl): Likewise.
2750 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
2751 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2752 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2753 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
2754 Likewise.
2755 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2756 (__ieee754_ynl)
2757 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
2758 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
2759 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
2760 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
2761 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
2762
2763 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2764 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
2765 using MATH_REDIRECT.
2766 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
2767 header inclusion.
2768 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
2769 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2770 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2771 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
2772 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2773 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2774 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2775 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
2776 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
2777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
2778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
2779 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2780 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2781 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
2782 (round): Redirect to __round.
2783 (__roundl): Call round instead of __round.
2784 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
2785 Remove macro.
2786 [_ARCH_PWR5X] (__roundf): Likewise.
2787 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
2788 functions instead of __round variants.
2789 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
2790 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
2791 Likewise.
2792 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
2793 Likewise.
2794 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
2795 Likewise.
2796 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
2797 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
2798 __lroundl.
2799 (__ieee754_expl): Call roundl instead of __roundl.
2800
2801 2018-09-27 Andreas Schwab <schwab@suse.de>
2802
2803 [BZ #23717]
2804 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
2805 (do_test): Make st1 static.
2806
2807 2018-09-26 Andreas Schwab <schwab@suse.de>
2808
2809 [BZ #23707]
2810 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
2811 * elf/Makefile (tests): Add tst-unwind-ctor.
2812 (modules-names): Add tst-unwind-ctor-lib.
2813 ($(objpfx)tst-unwind-ctor): Depend on
2814 $(objpfx)tst-unwind-ctor-lib.so.
2815
2816 2018-09-26 Joseph Myers <joseph@codesourcery.com>
2817
2818 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
2819 file. Most contents moved from ....
2820 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
2821 and include <bits/mman-map-flags-generic.h>.
2822 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2823 (sysdep_headers): Add bits/mman-map-flags-generic.h.
2824 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
2825 <bits/mman-map-flags-generic.h>.
2826 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
2827 macros defined in <bits/mman-map-flags-generic.h>.
2828 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
2829 <bits/mman-map-flags-generic.h>.
2830 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
2831 defined in <bits/mman-map-flags-generic.h>.
2832
2833 2018-09-26 Andreas Schwab <schwab@suse.de>
2834
2835 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
2836 output.
2837
2838 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
2839 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2840 Fangrui Song <maskray@google.com>
2841
2842 [BZ #20480]
2843 * config.make.in (have-textrel_ifunc): New define.
2844 * configure.ac: Add check if linker supports textrel relocation with
2845 ifunc.
2846 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
2847 tst-ifunc-textrel.
2848 (CFLAGS-tst-ifunc-textrel.c): New rule.
2849 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
2850 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
2851 * elf/tst-ifunc-textrel.c: New file.
2852
2853 2018-09-25 Joseph Myers <joseph@codesourcery.com>
2854
2855 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
2856 <bits/procfs-prregset.h>.
2857 (prgregset_t): Define using __prgregset_t.
2858 (prfpregset_t): Define using __prfpregset_t.
2859 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2860 (sysdep_headers): Add bits/procfs-prregset.h.
2861 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
2862 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
2863 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
2864 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
2865
2866 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
2867 <bits/procfs-id.h> and <bits/procfs-extra.h>.
2868 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
2869 pr_uid and pr_gid.
2870 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2871 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
2872 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
2873 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
2874 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
2875 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
2876 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
2877 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
2878 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
2879 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
2880 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
2881 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
2882 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
2883 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
2884 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
2885 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
2886 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
2887 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
2888 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
2889 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
2890 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
2891 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
2892 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
2893 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
2894
2895 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
2896 AArch64 version. Include <bits/procfs.h>.
2897 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
2898 (sysdep_headers): Add bits/procfs.h.
2899 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
2900 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
2901 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
2902 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
2903 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
2904 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
2905 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
2906 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
2907 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
2908 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
2909 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
2910 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
2911 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
2912 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
2913 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
2914 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
2915 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
2916
2917 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2918
2919 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
2920 Use libsupport.
2921
2922 2018-09-25 Arjun Shankar <arjun@redhat.com>
2923
2924 * iconv/gconv_int.h (__gconv_path_elem): Remove.
2925 (__gconv_max_path_elem_len): Likewise.
2926 (__gconv_nmodules): Likewise.
2927 (__gconv_get_path): Likewise.
2928 (path_elem): Move to ...
2929 * iconv/gconv_conf.c: ... here.
2930 (__gconv_get_path): Mark function static.
2931 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
2932 * iconv/gconv_open.c: ... here.
2933
2934 2018-09-24 Andreas Schwab <schwab@suse.de>
2935
2936 * scripts/haveversions.awk: New file.
2937 * Makerules ($(common-objpfx)Versions.def)
2938 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
2939 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
2940 Move rules ...
2941 * Makeconfig ($(common-objpfx)Versions.def)
2942 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
2943 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
2944 ... here.
2945 ($(common-objpfx)Versions.mk): New rule. Include it.
2946 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
2947 Emit error if build-obsolete-nsl = yes.
2948 * manual/install.texi (Configuring and compiling): Describe
2949 --enable-obsolete-nsl as unavaiable after version 2.28.
2950 * INSTALL: Regenerate.
2951
2952 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2953
2954 * NEWS: Add note about new TLE support on powerpc64le.
2955 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
2956 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
2957 __ununsed1.
2958 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
2959 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
2960 * sysdeps/powerpc/powerpc32/sysdep.h,
2961 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
2962 ABORT_TRANSACTION): Remove macros.
2963 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
2964 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
2965 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
2966 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
2967 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
2968 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
2969 usage.
2970 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
2971
2972 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
2973
2974 [BZ #10425]
2975 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
2976 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
2977 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
2978 which is the same as in it_IT.
2979 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
2980 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
2981
2982 2018-09-20 Joseph Myers <joseph@codesourcery.com>
2983
2984 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
2985 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
2986 using MATH_REDIRECT.
2987 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
2988 header inclusion.
2989 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
2990 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2991 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
2992 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2993 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2994 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2995 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
2996 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
2997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
2998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
2999 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3000 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3001 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
3002 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
3003 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
3004 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
3005 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
3006 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3007 (ceil): Redirect to __ceil.
3008 (floor): Redirect to __floor.
3009 (trunc): Redirect to __trunc.
3010 (__truncl): Call trunc instead of __trunc.
3011 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
3012 Remove macro.
3013 [_ARCH_PWR5X] (__truncf): Likewise.
3014 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
3015 trunc functions instead of __trunc variants.
3016 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3017 Likewise.
3018 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3019 Likewise.
3020 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3021 Likewise.
3022 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3023 Likewise.
3024
3025 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
3026 [__i586__ || __pentium__].
3027 [__i486__]: Handle explicitly.
3028 (HAS_CPUID): Define to 1 if above macros are undefined.
3029 (HAS_I586): Likewise.
3030 (HAS_I686): Likewise.
3031
3032 2018-09-20 Florian Weimer <fweimer@redhat.com>
3033
3034 * misc/tst-gethostid.c: New file.
3035 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
3036 (tst-gethostid): Link with -ldl.
3037
3038 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
3039
3040 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
3041 value from gethostbyname_r.
3042
3043 2018-09-19 Carlos O'Donell <carlos@redhat.com>
3044
3045 * stdlib/tst-setcontext9.c (f1): Rename to...
3046 (f1a): ... this.
3047 (f1b): New function implementing lower half of f1 in alternate stack.
3048
3049 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
3050
3051 Fix mktime localtime offset confusion
3052 [BZ #23603]
3053 * include/time.h (__mktime_internal): The localtime offset is now
3054 of type long int instead of time_t. This is the longstanding type
3055 in glibc, and it is more than enough to represent difference
3056 between localtime and gmtime even if it is 32 bits and time_t is
3057 64. Changing it now will let us avoid an unnecessary change when
3058 time_t is widened to 64 bits on 32-bit platforms.
3059 * time/mktime-internal.h (mktime_offset_t): Now long int.
3060
3061 Merge mktime, timegm from upstream Gnulib
3062 [BZ #23603][BZ #16346]
3063 This fixes some obscure problems with integer overflow.
3064 Although it looks scary, it is almost all a byte-for-byte copy
3065 from Gnulib, and the Gnulib code has been tested reasonably well.
3066 * include/intprops.h: New file, copied from Gnulib.
3067 * include/verify.h, time/mktime-internal.h:
3068 New tiny files, simplified from Gnulib.
3069 * time/mktime.c: Copy from Gnulib. This has the following changes:
3070 Do not include config.h if DEBUG_MKTIME is nonzero.
3071 Include stdbool.h, intprops.h, verify.h.
3072 Include string.h only if needed.
3073 Include stdlib.h on MS-Windows.
3074 Include mktime-internal.h.
3075 (DEBUG_MKTIME): Default to 0, and simplify later uses.
3076 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
3077 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
3078 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
3079 simplify later conditionals; default the others to zero. Use
3080 these conditionals to express only the code needed on the current
3081 platform. In uses of these conditionals, explicitly spell out how
3082 _LIBC affects things, so it’s easier to review from a glibc
3083 viewpoint.
3084 (WRAPV): Remove; no longer needed now that we have
3085 systematic overflow checking.
3086 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
3087 compartmentalize tzset issues. Move system-dependent tzsettish
3088 code here from mktime.
3089 (verify): Remove; now done by verify.h. All uses changed.
3090 (long_int): Use a more-conservative definition, to avoid
3091 integer overflow.
3092 (SHR): Remove, replacing with ...
3093 (shr): New function, which means we needn’t worry about side
3094 effects in args, and conversion analysis is simpler.
3095 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
3096 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
3097 (time_t_avg, time_t_add_ok): Remove.
3098 (mktime_min, mktime_max): New constants.
3099 (leapyear, isdst_differ): Use bool for booleans.
3100 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
3101 Use long_int, not time_t, for mktime differences.
3102 (long_int_avg): New function, replacing time_t_avg.
3103 INT_ADD_WRAPV replaces time_t_add_ok.
3104 (guess_time_tm): 6th arg is now long_int, not time_t const *.
3105 All uses changed.
3106 (convert_time): New function.
3107 (ranged_convert): Use it.
3108 (__mktime_internal): Last arg now points to mktime_offset_t, not
3109 time_t. All uses changed. This is a no-op on glibc, where
3110 mktime_offset_t is always time_t. Use int, not time_t, for UTC
3111 offset guess. Directly check for integer overflow instead of
3112 using a heuristic that works only 99.9...% of the time.
3113 Access *OFFSET only once, to avoid an unlikely race if the
3114 compiler delays a load and if this cascades into a signed integer
3115 overflow.
3116 (mktime): Move tzsettish code to my_tzset, and move
3117 localtime_offset to within mktime so that it doesn’t
3118 need a separate ifdef.
3119 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
3120 instead of localtime.
3121 * time/timegm.c: Copy from Gnulib. This has the following changes:
3122 Include mktime-internal.h.
3123 [!_LIBC]: Include config.h and time.h. Do not include
3124 timegm.h or time_r.h. Make __mktime_internal a macro,
3125 and include mktime-internal.h to get its declaration.
3126 (timegm): Temporary is now mktime_offset_t, not time_t.
3127 This affects only Gnulib.
3128
3129 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3130
3131 [BZ #23637]
3132 * string/test-strstr.c (pr23637): New function.
3133 (test_main): Add tests with longer needles.
3134 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
3135 * string/strstr.c (AVAILABLE): Likewise.
3136
3137 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3138
3139 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
3140
3141 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3142
3143 * NEWS: Mention pow improvements.
3144 * math/Makefile (type-double-routines): Add e_pow_log_data.
3145 * sysdeps/generic/math_private.h (__exp1): Remove.
3146 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
3147 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
3148 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
3149 contraction.
3150 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
3151 (exp_inline): Remove.
3152 (__ieee754_exp): Only single double input is handled.
3153 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
3154 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
3155 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
3156 (__pow_log_data): Define.
3157 * sysdeps/ieee754/dbl-64/upow.h: Remove.
3158 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
3159 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
3160 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
3161 contraction.
3162 (CFLAGS-e_pow-fma4.c): Likewise.
3163
3164 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
3165
3166 Simplify tzfile fstat failure code
3167 [BZ #21716]
3168 * time/tzfile.c (__tzfile_read): Simplify slightly.
3169
3170 Fix tzfile low-memory assertion failure
3171 [BZ #21716]
3172 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
3173 when registering time zone abbreviations.
3174
3175 2018-09-18 Joseph Myers <joseph@codesourcery.com>
3176
3177 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
3178 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
3179 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3180 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3181 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
3182 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
3183 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
3184 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3185 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3186
3187 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
3188 __ceil.
3189 (__ceill): Call ceil instead of __ceil.
3190 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
3191 __floor.
3192 (__floorl): Call floor instead of __floor.
3193
3194 2018-09-17 Joseph Myers <joseph@codesourcery.com>
3195
3196 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3197 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
3198 using MATH_REDIRECT.
3199 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
3200 header inclusion.
3201 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
3202 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
3203 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
3204 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
3205 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
3206 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
3207 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
3208 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
3209 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
3210 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
3211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
3212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
3213 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
3214 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3215 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
3216 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
3217 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
3218 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
3219 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
3220 Remove macro.
3221 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
3222 functions instead of __ceil variants.
3223 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
3224 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
3225 Likewise.
3226 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
3227 Likewise.
3228 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
3229 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
3230 Likewise.
3231 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3232 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3233
3234 [BZ #21286]
3235 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
3236 constant.
3237 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
3238 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
3239 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
3240 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
3241 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
3242 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
3243 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
3244 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
3245 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
3246 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
3247 (ILL_BADIADDR): Remove constant.
3248 (TRAP_BRANCH): Likewise.
3249 (TRAP_HWBKPT): Likewise.
3250
3251 2018-09-14 Joseph Myers <joseph@codesourcery.com>
3252
3253 [BZ #23656]
3254 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
3255 Remove [_MIPS_SIM = _ABIN32] conditional case.
3256 (struct elf_prpsinfo): Likewise.
3257
3258 [BZ #23649]
3259 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
3260 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
3261 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
3262 Likewise.
3263 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
3264 elf_prpsinfo): Likewise.
3265 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
3266 elf_prpsinfo): Likewise.
3267 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
3268 Likewise.
3269
3270 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3271 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
3272 using MATH_REDIRECT.
3273 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
3274 header inclusion.
3275 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
3276 * sysdeps/alpha/fpu/s_rint.c: Likewise.
3277 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
3278 * sysdeps/i386/fpu/s_rintl.c: Likewise.
3279 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
3280 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
3281 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
3282 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
3283 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
3284 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
3285 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
3286 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
3287 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
3288 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
3289 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
3290 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
3291 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3292 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
3293 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
3294 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
3295 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
3296 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
3297 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
3298 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
3299 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
3300 * sysdeps/x86_64/fpu/math_private.h: Remove file.
3301 * math/e_scalb.c (invalid_fn): Use rint functions instead of
3302 __rint variants.
3303 * math/e_scalbf.c (invalid_fn): Likewise.
3304 * math/e_scalbl.c (invalid_fn): Likewise.
3305 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
3306 Likewise.
3307 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3308 Likewise.
3309 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
3310 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
3311 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3312 Likewise.
3313 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3314 Likewise.
3315 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3316 Likewise.
3317 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
3318 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3319
3320 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3321 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
3322 New macro.
3323 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3324 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
3325 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3326 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
3327 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3328 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
3329 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3330 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
3331 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3332 && !NO_MATH_REDIRECT] (floor): Likewise.
3333 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
3334 header inclusion.
3335 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
3336 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
3337 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3338 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
3339 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
3340 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
3341 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
3342 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
3343 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
3344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
3345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
3346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
3347 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3348 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3349 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
3350 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
3351 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
3352 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
3353 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
3354 Remove macro.
3355 [_ARCH_PWR5X] (__floorf): Likewise.
3356 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
3357 inline function.
3358 [__SSE4_1__] (__floorf): Likewise.
3359 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
3360 instead of __floor variants.
3361 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
3362 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
3363 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
3364 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
3365 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
3366 * math/w_tgamma_compat.c (__tgamma): Likewise.
3367 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
3368 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
3369 * math/w_tgammal_compat.c (__tgammal): Likewise.
3370 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
3371 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
3372 Likewise.
3373 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
3374 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
3375 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
3376 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3377 Likewise.
3378 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
3379 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
3380 Likewise.
3381 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
3382 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
3383 Likewise.
3384 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
3385 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
3386 Likewise.
3387 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
3388 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
3389 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
3390 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
3391 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3392 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3393
3394 2018-09-12 Joseph Myers <joseph@codesourcery.com>
3395
3396 * elf/Makefile (modules-names-tests): New variable.
3397
3398 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
3399
3400 * NEWS: Mention log2 improvements.
3401 * math/Makefile (type-double-routines): Add e_log2_data.
3402 * sysdeps/i386/fpu/e_log2_data.c: New file.
3403 * sysdeps/ia64/fpu/e_log2_data.c: New file.
3404 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
3405 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
3406 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
3407 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
3408 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
3409
3410 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
3411
3412 * NEWS: Mention log improvement.
3413 * math/Makefile (type-double-routines): Add e_log_data.
3414 * sysdeps/i386/fpu/e_log_data.c: New file.
3415 * sysdeps/ia64/fpu/e_log_data.c: New file.
3416 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
3417 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
3418 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
3419 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
3420 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
3421 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
3422
3423 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
3424 Xuepeng Guo <xuepeng.guo@intel.com>
3425
3426 [BZ #23606]
3427 * sysdeps/i386/start.S: Include <sysdep.h>
3428 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
3429 enabled. Add cfi_undefined (eip).
3430
3431 2018-09-11 Joseph Myers <joseph@codesourcery.com>
3432
3433 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
3434 (MOVQ): Likewise.
3435 (EXTRACT_WORDS64): Likewise.
3436 (INSERT_WORDS64): Likewise.
3437 (GET_FLOAT_WORD): Likewise.
3438 (SET_FLOAT_WORD): Likewise.
3439
3440 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
3441 argument.
3442 (Config.build_gcc): Use --disable-libsanitizer for first GCC
3443 build, but not for second build if --full-gcc. Use
3444 --enable-languages=all for second build if --full-gcc.
3445 (get_parser): Add --full-gcc option.
3446 (main): Update call to Context.
3447
3448 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
3449
3450 [BZ #10797]
3451 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
3452 Single Quotation Mark).
3453 (thousands_sep): Likewise.
3454 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
3455 * localedata/locales/it_IT (thousands_sep): Use ".".
3456 (grouping): Use "3;3".
3457
3458 2018-09-10 Joseph Myers <joseph@codesourcery.com>
3459
3460 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3461 x86_64 and i686 configs using --enable-obsolete-rpc
3462 --enable-obsolete-nsl.
3463
3464 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
3465
3466 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3467
3468 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
3469
3470 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
3471 Increment size of new_argv by one.
3472
3473 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
3474
3475 [BZ #17426]
3476 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
3477 * localedata/locales/ar_IN (d_fmt): Likewise.
3478 * localedata/locales/bhb_IN (d_fmt): Likewise.
3479 * localedata/locales/bho_IN (d_fmt): Likewise.
3480 * localedata/locales/bn_BD (d_fmt): Likewise.
3481 * localedata/locales/bn_IN (d_fmt): Likewise.
3482 * localedata/locales/doi_IN (d_fmt): Likewise.
3483 * localedata/locales/gu_IN (d_fmt): Likewise.
3484 * localedata/locales/hi_IN (d_fmt): Likewise.
3485 * localedata/locales/hne_IN (d_fmt): Likewise.
3486 * localedata/locales/kn_IN (d_fmt): Likewise.
3487 * localedata/locales/mag_IN (d_fmt): Likewise.
3488 * localedata/locales/mai_IN (d_fmt): Likewise.
3489 * localedata/locales/mjw_IN (d_fmt): Likewise.
3490 * localedata/locales/ml_IN (d_fmt): Likewise.
3491 * localedata/locales/mni_IN (d_fmt): Likewise.
3492 * localedata/locales/mr_IN (d_fmt): Likewise.
3493 * localedata/locales/pa_IN (d_fmt): Likewise.
3494 * localedata/locales/raj_IN (d_fmt): Likewise.
3495 * localedata/locales/sat_IN (d_fmt): Likewise.
3496 * localedata/locales/sd_IN (d_fmt): Likewise.
3497 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
3498 * localedata/locales/ta_IN (d_fmt): Likewise.
3499 * localedata/locales/ta_LK (d_fmt): Likewise.
3500 * localedata/locales/tcy_IN (d_fmt): Likewise.
3501 * localedata/locales/ur_IN (d_fmt): Likewise.
3502
3503 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
3504 * localedata/locales/ks_IN (d_fmt): Likewise.
3505 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
3506
3507 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
3508 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
3509 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
3510 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
3511
3512 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
3513
3514 * NEWS: Mention exp and exp2 improvements.
3515 * math/Makefile (libm-support): Remove t_exp.
3516 (type-double-routines): Add math_err and e_exp_data.
3517 * sysdeps/aarch64/libm-test-ulps: Update.
3518 * sysdeps/arm/libm-test-ulps: Update.
3519 * sysdeps/i386/fpu/e_exp_data.c: New file.
3520 * sysdeps/i386/fpu/math_err.c: New file.
3521 * sysdeps/i386/fpu/t_exp.c: Remove.
3522 * sysdeps/ia64/fpu/e_exp_data.c: New file.
3523 * sysdeps/ia64/fpu/math_err.c: New file.
3524 * sysdeps/ia64/fpu/t_exp.c: Remove.
3525 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
3526 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
3527 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
3528 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
3529 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
3530 * sysdeps/ieee754/dbl-64/math_config.h: New file.
3531 * sysdeps/ieee754/dbl-64/math_err.c: New file.
3532 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
3533 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
3534 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
3535 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
3536 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
3537 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
3538 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
3539 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3540 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3541
3542 2018-09-05 Joseph Myers <joseph@codesourcery.com>
3543
3544 * sysdeps/alpha/fpu/math_private.h: Remove.
3545
3546 * sysdeps/generic/math_private.h
3547 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
3548 Move this inline function ....
3549 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
3550 * include/math.h [!_ISOMAC]: To here....
3551
3552 2018-09-04 Joseph Myers <joseph@codesourcery.com>
3553
3554 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
3555 code ....
3556 [!FE_HAVE_ROUNDING_MODES]: And this code ....
3557 * include/fenv.h [!_ISOMAC]: ... to here.
3558 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
3559 (feraiseexcept): Likewise.
3560 * math/fromfp.h: Do not include <fenv_private.h>.
3561 * math/s_cexp_template.c: Likewise.
3562 * math/s_csin_template.c: Likewise.
3563 * math/s_csinh_template.c: Likewise.
3564 * math/s_ctan_template.c: Likewise.
3565 * math/s_ctanh_template.c: Likewise.
3566 * math/s_iseqsig_template.c: Likewise.
3567 * math/w_acos_compat.c: Likewise.
3568 * math/w_acosf_compat.c: Likewise.
3569 * math/w_acosl_compat.c: Likewise.
3570 * math/w_asin_compat.c: Likewise.
3571 * math/w_asinf_compat.c: Likewise.
3572 * math/w_asinl_compat.c: Likewise.
3573 * math/w_j0_compat.c: Likewise.
3574 * math/w_j0f_compat.c: Likewise.
3575 * math/w_j0l_compat.c: Likewise.
3576 * math/w_j1_compat.c: Likewise.
3577 * math/w_j1f_compat.c: Likewise.
3578 * math/w_j1l_compat.c: Likewise.
3579 * math/w_jn_compat.c: Likewise.
3580 * math/w_jnf_compat.c: Likewise.
3581 * math/w_log10_compat.c: Likewise.
3582 * math/w_log10f_compat.c: Likewise.
3583 * math/w_log10l_compat.c: Likewise.
3584 * math/w_log2_compat.c: Likewise.
3585 * math/w_log2f_compat.c: Likewise.
3586 * math/w_log2l_compat.c: Likewise.
3587 * math/w_log_compat.c: Likewise.
3588 * math/w_logf_compat.c: Likewise.
3589 * math/w_logl_compat.c: Likewise.
3590 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3591 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3592 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3593 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3594 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3595 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3596 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3597 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3598 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3599 * sysdeps/ieee754/k_standardl.c: Likewise.
3600 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3601 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3602 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3603 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3604 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3605 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3606 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3607 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
3608 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3609 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
3610 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
3611 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
3612 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
3613 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3614 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3615 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3616 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3617 * math/w_ilogb_template.c: Include <fenv.h> instead of
3618 <fenv_private.h>.
3619 * math/w_llogb_template.c: Likewise.
3620 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3621 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3622
3623 2018-09-03 Joseph Myers <joseph@codesourcery.com>
3624
3625 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
3626 * math/fromfp.h: Include <fenv_private.h>.
3627 * math/math-narrow.h: Likewise.
3628 * math/s_cexp_template.c: Likewise.
3629 * math/s_csin_template.c: Likewise.
3630 * math/s_csinh_template.c: Likewise.
3631 * math/s_ctan_template.c: Likewise.
3632 * math/s_ctanh_template.c: Likewise.
3633 * math/s_iseqsig_template.c: Likewise.
3634 * math/w_acos_compat.c: Likewise.
3635 * math/w_acosf_compat.c: Likewise.
3636 * math/w_acosl_compat.c: Likewise.
3637 * math/w_asin_compat.c: Likewise.
3638 * math/w_asinf_compat.c: Likewise.
3639 * math/w_asinl_compat.c: Likewise.
3640 * math/w_ilogb_template.c: Likewise.
3641 * math/w_j0_compat.c: Likewise.
3642 * math/w_j0f_compat.c: Likewise.
3643 * math/w_j0l_compat.c: Likewise.
3644 * math/w_j1_compat.c: Likewise.
3645 * math/w_j1f_compat.c: Likewise.
3646 * math/w_j1l_compat.c: Likewise.
3647 * math/w_jn_compat.c: Likewise.
3648 * math/w_jnf_compat.c: Likewise.
3649 * math/w_llogb_template.c: Likewise.
3650 * math/w_log10_compat.c: Likewise.
3651 * math/w_log10f_compat.c: Likewise.
3652 * math/w_log10l_compat.c: Likewise.
3653 * math/w_log2_compat.c: Likewise.
3654 * math/w_log2f_compat.c: Likewise.
3655 * math/w_log2l_compat.c: Likewise.
3656 * math/w_log_compat.c: Likewise.
3657 * math/w_logf_compat.c: Likewise.
3658 * math/w_logl_compat.c: Likewise.
3659 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
3660 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
3661 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
3662 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
3663 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3664 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3665 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
3666 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
3667 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
3668 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3669 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3670 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3671 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
3672 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
3673 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3674 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
3675 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
3676 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
3677 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
3678 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
3679 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
3680 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
3681 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3682 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
3683 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3684 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
3685 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
3686 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
3687 * sysdeps/ieee754/float128/float128_private.h: Likewise.
3688 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
3689 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
3690 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
3691 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
3692 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
3693 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
3694 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
3695 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
3696 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
3697 * sysdeps/ieee754/k_standardl.c: Likewise.
3698 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3699 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
3700 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
3701 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
3702 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
3703 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
3704 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
3705 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3706 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3707 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3708 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3709 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
3710 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
3711 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3712 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
3713 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
3714 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
3715 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
3716 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
3717 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
3718 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
3719 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
3720 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
3721 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
3722 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
3723 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
3724 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
3725 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
3726 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
3727 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
3728 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
3729 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
3730 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
3731 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
3732 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
3733 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
3734 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3735 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3736 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
3737 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3738 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
3739 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3740 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
3741 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3742 * sysdeps/riscv/rvd/s_finite.c: Likewise.
3743 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
3744 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
3745 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
3746 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
3747 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
3748 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
3749 * sysdeps/riscv/rvf/fegetround.c: Likewise.
3750 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
3751 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
3752 * sysdeps/riscv/rvf/fesetround.c: Likewise.
3753 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
3754 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
3755 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
3756 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3757 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
3758 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3759 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
3760 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
3761 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
3762 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
3763 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
3764 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
3765 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
3766 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
3767 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3768 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3769
3770 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3771
3772 [BZ #20271]
3773 * include/stdio.h (__libc_fatal): Mention newline in comment.
3774 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
3775 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
3776 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3777 * nss/nsswitch.c (__nss_next2): Likewise.
3778 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
3779 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
3780 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
3781 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
3782 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
3783 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
3784 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
3785 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
3786 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
3787 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
3788 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
3789 * sysdeps/unix/sysv/linux/netlink_assert_response.c
3790 (__netlink_assert_response): Likewise.
3791
3792 2018-08-31 Joseph Myers <joseph@codesourcery.com>
3793
3794 * conform/glibcconform.py: New file.
3795 * conform/list-header-symbols.py: Likewise.
3796 * conform/list-header-symbols.pl: Remove.
3797 * conform/Makefile (tests-special): Only add linknamespace tests
3798 if [PYTHON].
3799 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
3800
3801 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
3802
3803 [BZ #23597]
3804 * support/Makefile (libsupport-routines): Add
3805 support_copy_file_range and xcopy_file_range.
3806 * support/support.h: Include <sys/types.h>.
3807 (support_copy_file_range): New prototype.
3808 * support/support_copy_file_range.c: New file. Copied and
3809 modified from io/copy_file_range-compat.c.
3810 * support/test-container.c (copy_one_file): Call xcopy_file_rang
3811 instead of copy_file_range.
3812 * support/xcopy_file_range.c: New file.
3813 * support/xunistd.h (xcopy_file_range): New prototype.
3814
3815 2018-08-30 Carlos O'Donell <carlos@redhat.com>
3816
3817 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
3818 xpthread_create and xpthread_join.
3819
3820 2018-08-30 Florian Weimer <fweimer@redhat.com>
3821
3822 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
3823
3824 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
3825
3826 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
3827 if malloc fails.
3828
3829 2018-08-29 Joseph Myers <joseph@codesourcery.com>
3830
3831 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
3832 and minus_oflow as non-finite.
3833
3834 2018-08-28 Joseph Myers <joseph@codesourcery.com>
3835
3836 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
3837 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
3838 moved to fenv_private.h except for ...
3839 (TOINT_INTRINSICS): Kept in math_private.h.
3840 (roundtoint): Likewise.
3841 (converttoint): Likewise.
3842 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
3843 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
3844 * sysdeps/arm/math_private.h: Remove.
3845 * sysdeps/generic/fenv_private.h: New file. Contents moved from
3846 ....
3847 * sysdeps/generic/math_private.h: ... this file. Include
3848 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
3849 Include <fenv_private.h>. Remove functions and macros moved to
3850 fenv_private.h.
3851 * sysdeps/i386/fpu/math_private.h: Remove.
3852 * sysdeps/mips/math_private.h: Move to ....
3853 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
3854 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
3855 [__mips_hard_float] conditional. Include next <fenv_private.h>.
3856 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
3857 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
3858 * sysdeps/powerpc/fpu/math_private.h: Do not include
3859 <fenv_private.h>.
3860 * sysdeps/riscv/rvf/math_private.h: Move to ....
3861 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
3862 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
3863 <fenv_private.h>.
3864 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
3865 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
3866 * sysdeps/sparc/fpu/math_private.h: Remove.
3867 * sysdeps/i386/fpu/fenv_private.h: Move to ....
3868 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
3869 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
3870 <fenv_private.h>.
3871 * sysdeps/x86_64/fpu/math_private.h: Do not include
3872 <sysdeps/i386/fpu/fenv_private.h>.
3873
3874 2018-08-28 Florian Weimer <fweimer@redhat.com>
3875
3876 [BZ #23578]
3877 * posix/tst-regcomp-truncated.c: New file.
3878 * posix/Makefile (tests): Add it.
3879 (tst-regcomp-truncated.out): Depend on generated locales.
3880
3881 2018-08-28 Florian Weimer <fweimer@redhat.com>
3882
3883 * support/test-container.c (main): Treat unshare failure with
3884 EPERM as an unsupported test.
3885
3886 2018-08-28 Florian Weimer <fweimer@redhat.com>
3887
3888 [BZ #23520]
3889 nscd: Fix use-after-free in addgetnetgrentX and its callers.
3890 * nscd/netgroupcache.c
3891 (addgetnetgrentX): Add tofreep parameter. Do not free
3892 heap-allocated buffer.
3893 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
3894 (addgetnetgrentX_ignore): New function.
3895 (addgetnetgrent): Call it.
3896 (readdgetnetgrent): Likewise.
3897
3898 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
3899
3900 * string/memmem.c: Use memcmp for first match.
3901
3902 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
3903
3904 [BZ #17426]
3905 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
3906
3907 2018-08-27 DJ Delorie <dj@redhat.com>
3908
3909 * support/Makefile (others): Don't list programs explicitly as a
3910 dependency of "others".
3911
3912 2018-08-27 Joseph Myers <joseph@codesourcery.com>
3913
3914 * sysdeps/generic/math-tests-trap-force.h: New file.
3915 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
3916 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
3917 * sysdeps/powerpc/math-tests.h: Remove file.
3918 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
3919
3920 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
3921 Torvald Riegel <triegel@redhat.com>
3922
3923 [BZ #23538]
3924 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
3925 Update r to include the set wake-request flag if waiters are
3926 remaining after spinning.
3927
3928 2018-08-27 Joseph Myers <joseph@codesourcery.com>
3929
3930 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
3931
3932 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
3933
3934 [BZ #23578]
3935 regex: fix uninitialized memory access
3936 I introduced this bug into gnulib in commit
3937 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
3938 eventually it was merged into glibc. The bug was found by
3939 project-repo <bugs@feusi.co> and reported here:
3940 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
3941 Diagnosis and draft fix reported by Assaf Gordon here:
3942 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
3943 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
3944 * posix/regex_internal.c (build_wcs_upper_buffer):
3945 Fix bug when mbrtowc returns 0.
3946
3947 2018-08-24 Carlos O'Donell <carlos@redhat.com>
3948
3949 * po/be.po: Update translation.
3950
3951 2018-08-24 DJ Delorie <dj@delorie.com>
3952
3953 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
3954 $(libunwind).
3955
3956 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
3957
3958 [BZ #23400]
3959 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
3960 create temporary files in source tree.
3961
3962 2018-08-24 Joseph Myers <joseph@codesourcery.com>
3963
3964 * sysdeps/generic/math-tests-trap.h: New file.
3965 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
3966 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
3967 * sysdeps/aarch64/math-tests.h: Remove file.
3968 * sysdeps/arm/math-tests.h: Likewise.
3969 * sysdeps/riscv/math-tests.h: Likewise.
3970 * sysdeps/aarch64/math-tests-trap.h: New file.
3971 * sysdeps/arm/math-tests-trap.h: Likewise.
3972 * sysdeps/riscv/math-tests-trap.h: Likewise.
3973
3974 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
3975
3976 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
3977 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
3978 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
3979 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
3980 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
3981 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
3982 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
3983 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
3984 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
3985 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3986 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3987 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3988 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3989 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
3990 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
3991 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
3992 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
3993 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
3994
3995 2018-08-23 Joseph Myers <joseph@codesourcery.com>
3996
3997 * sysdeps/generic/math-tests-exceptions.h: New file.
3998 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
3999 (EXCEPTION_TESTS_float): Do not define here.
4000 (EXCEPTION_TESTS_double): Likewise.
4001 (EXCEPTION_TESTS_long_double): Likewise.
4002 (EXCEPTION_TESTS_float128): Likewise.
4003 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
4004 Likewise.
4005 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
4006 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
4007 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
4008 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
4009 * sysdeps/mips/math-tests.h: Likewise.
4010 * sysdeps/nios2/math-tests.h: Likewise.
4011 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4012 (EXCEPTION_TESTS_float): Do not define here.
4013 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
4014 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
4015 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
4016
4017 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4018
4019 * NEWS: Move optimized sinf entry to 2.29.
4020
4021 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4022
4023 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
4024
4025 2018-08-22 DJ Delorie <dj@redhat.com>
4026
4027 * Makefile (testroot.pristine): New rules to initialize the
4028 test-in-container "testroot".
4029 * Makerules (all-testsuite): Add tests-container.
4030 * Rules (tests-expected): Add tests-container.
4031 (binaries-all-tests): Likewise.
4032 (tests-container): New, run these tests in the testroot container.
4033 * support/Makefile (others): Add *-container, support_paths.c,
4034 xmkdirp, and links-dso-program.
4035 * support/links-dso-program-c.c: New.
4036 * support/links-dso-program.cc: New.
4037 * support/test-container.c: New.
4038 * support/shell-container.c: New.
4039 * support/echo-container.c: New.
4040 * support/true-container.c: New.
4041 * support/xmkdirp.c: New.
4042 * support/xsymlink.c: New.
4043 * support/support_paths.c: New.
4044 * support/support.h: Add support paths prototypes.
4045 * support/xunistd.h: Add xmkdirp () and xsymlink ().
4046
4047 * nss/tst-nss-test3.c: Convert to test-in-container.
4048 * nss/tst-nss-test3.root/: New.
4049
4050 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
4051
4052 regex: port Gnulib code to z/OS POSIX environment
4053 Problem reported by Arnold Robbins in:
4054 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
4055 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
4056 Undef.
4057
4058 2018-08-22 Joseph Myers <joseph@codesourcery.com>
4059
4060 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
4061 (ROUNDING_TESTS_double): Remove.
4062 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
4063 (ROUNDING_TESTS_double): Remove.
4064 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
4065 (ROUNDING_TESTS_double): Remove.
4066 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
4067 (ROUNDING_TESTS_float): Remove.
4068 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
4069 (ROUNDING_TESTS_float): Remove.
4070 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
4071 (ROUNDING_TESTS_float): Remove.
4072 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
4073 !TEST_MATHVEC here.
4074 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4075 (IF_ROUND_INIT_FE_UPWARD): Likewise.
4076
4077 * sysdeps/generic/math-tests-rounding.h: New file.
4078 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
4079 (ROUNDING_TESTS_float): Do not define here.
4080 (ROUNDING_TESTS_double): Likewise.
4081 (ROUNDING_TESTS_long_double): Likewise.
4082 (ROUNDING_TESTS_float128): Likewise.
4083 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
4084 (ROUNDING_TESTS_double): Undefine before defining.
4085 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
4086 (ROUNDING_TESTS_double): Undefine before defining.
4087 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
4088 (ROUNDING_TESTS_double): Undefine before defining.
4089 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
4090 (ROUNDING_TESTS_float): Undefine before defining.
4091 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
4092 (ROUNDING_TESTS_float): Undefine before defining.
4093 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
4094 (ROUNDING_TESTS_float): Undefine before defining.
4095 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
4096 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
4097 not define here.
4098 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
4099 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
4100 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
4101 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4102 (ROUNDING_TESTS_float): Do not define here.
4103 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
4104 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
4105 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
4106 (ROUNDING_TESTS_float): Likewise.
4107 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
4108 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
4109 * sysdeps/mips/math-tests.h [__mips_soft_float]
4110 (ROUNDING_TESTS_float): Likewise.
4111 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
4112 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
4113 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
4114 (ROUNDING_TESTS_double): Likewise.
4115 (ROUNDING_TESTS_long_double): Likewise.
4116
4117 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
4118
4119 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
4120 (PF_XDP): New macro.
4121 (AF_XDP): New macro.
4122 (SOL_XDP): New macro.
4123
4124 2018-08-21 Joseph Myers <joseph@codesourcery.com>
4125
4126 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
4127 (TCP_INQ): Likewise.
4128 (TCP_CM_INQ): Likewise.
4129 (TCP_REPAIR_ON): Likewise.
4130 (TCP_REPAIR_OFF): Likewise.
4131 (TCP_REPAIR_OFF_NO_WP): Likewise.
4132 (struct tcp_zerocopy_receive): New type.
4133
4134 2018-08-21 Florian Weimer <fweimer@redhat.com>
4135
4136 * support/support.h (support_descriptor_supports_holes): Declare.
4137 * support/Makefile (libsupport-routines): Add
4138 support_descriptor_supports_holes.
4139 * support/support_descriptor_supports_holes.c: New file.
4140 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
4141 and stop testing if holes are not supported.
4142 * io/test-lfs.c (do_prepare): Likewise.
4143 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
4144 Likewise.
4145 * timezone/tst-tzset.c (create_tz_file): Likewise.
4146 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
4147 variable.
4148 (do_prepare): Set it.
4149 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
4150
4151 2018-08-21 Florian Weimer <fweimer@redhat.com>
4152
4153 [BZ #17248]
4154 * Makeconfig (+cflags): Do not sort (and deduplicate).
4155
4156 2018-08-21 Florian Weimer <fweimer@redhat.com>
4157
4158 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
4159 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
4160
4161 2018-08-20 Florian Weimer <fweimer@redhat.com>
4162
4163 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
4164 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
4165
4166 2018-08-20 Joseph Myers <joseph@codesourcery.com>
4167
4168 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4169 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
4170 and ssi_arch members.
4171
4172 * elf/elf.c (NT_VMCOREDD): New macro.
4173 (AT_MINSIGSTKSZ): Likewise.
4174
4175 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4176
4177 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4178 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
4179 s_cosf-ppc64 and s_cosf-power8.
4180 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
4181 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
4182 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4183 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
4184 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
4185 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
4186 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
4187 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
4188 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
4189 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
4190 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
4191 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
4192
4193 2018-08-17 Florian Weimer <fweimer@redhat.com>
4194
4195 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4196
4197 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
4198
4199 * malloc/malloc.c (_int_malloc): Additional binning code checks.
4200
4201 2018-08-16 Florian Weimer <fweimer@redhat.com>
4202
4203 * configure.ac: Add --with-nonshared-cflags option.
4204 * config.make.in (extra-nonshared-cflags): Set variable.
4205 * Makeconfig (CFLAGS-.oS): Use it.
4206 * manual/install.texi (Configuring and compiling): Document
4207 --with-nonshared-cflags.
4208 * configure: Regenerate.
4209 * INSTALL: Likewise.
4210
4211 2018-08-16 Florian Weimer <fweimer@redhat.com>
4212
4213 * Makeconfig (ASFLAGS): Always append required assembler flags.
4214
4215 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
4216
4217 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
4218 (malloc_consolidate): Likewise.
4219
4220 2018-08-16 Pochang Chen <johnchen902@gmail.com>
4221
4222 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
4223
4224 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4225
4226 * benchtests/bench-strlen.c (do_test): Allocate buffers before
4227 every strlen call.
4228
4229 * benchtests/bench-strlen.c: Print performance numbers in json.
4230
4231 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4232
4233 * sysdeps/powerpc/powerpc64/multiarch/Makefile
4234 (sysdep_routines): Build strcmp-power9 and strncmp-power9
4235 only for little endian.
4236 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4237 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
4238 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
4239 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
4240 Add check for little endian.
4241 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
4242 (__strcmp_power9): Add check for little endian.
4243 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
4244 Add check for little endian.
4245 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
4246 (__strncmp_power9): Add check for little endian.
4247 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
4248 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
4249 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
4250 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
4251 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
4252
4253 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
4254
4255 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
4256 [!STRLEN](STRLEN): Set to __strlen.
4257 * sysdeps/aarch64/multiarch/strlen.c: New file.
4258 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
4259 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
4260 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
4261 (__libc_ifunc_impl_list): Add strlen.
4262 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
4263 strlen_generic and strlen_asimd.
4264
4265 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
4266
4267 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
4268 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
4269 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
4270
4271 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
4272
4273 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
4274
4275 2018-08-14 Florian Weimer <fweimer@redhat.com>
4276
4277 [BZ #23519]
4278 * include/stdio.h (__vfxprintf): Declare.
4279 * stdio-common/fxprintf.c (__vfxprintf): New function.
4280 (__fxprintf): Call it.
4281 * misc/err.c (convert_and_print): Remove function.
4282 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
4283 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
4284 * misc/Makefile (tests): Add tst-warn-wide.
4285 * misc/tst-warn-wide.c: New file.
4286
4287 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
4288 Szabolcs Nagy <szabolcs.nagy@arm.com>
4289
4290 * NEWS: Mention sinf, cosf, sincosf.
4291 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
4292 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
4293 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
4294 constants rather than including generic sincosf.h.
4295 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
4296 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
4297 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
4298 (reduced_cos): Remove.
4299 (sinf_poly): New function.
4300 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
4301
4302 2018-08-14 Florian Weimer <fweimer@redhat.com>
4303
4304 [BZ #23521]
4305 [BZ #23522]
4306 * nss/nss_files/files-alias.c (get_next_alias): During :include:
4307 processing, bail out if no room, and close the stream before
4308 returning ERANGE.
4309 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
4310 (tst-nss-files-alias-leak): Link with libdl.
4311 (tst-nss-files-alias-leak.out): Depend on nss_files.
4312
4313 * nss/tst-nss-files-alias-leak.c: New file.
4314
4315 2018-08-14 Florian Weimer <fweimer@redhat.com>
4316
4317 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
4318 server_user, stat_user.
4319
4320 2018-08-13 Joseph Myers <joseph@codesourcery.com>
4321
4322 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4323 version to 4.18.
4324 (io_pgetevents): New syscall.
4325 (rseq): Likewise.
4326
4327 * manual/install.texi (Configuring and compiling): Do not list
4328 tools used for testing pretty printers here.
4329 (Tools for Compilation): List Python, PExpect and GDB here.
4330 Update descriptions of uses of Perl and Python.
4331 * INSTALL: Regenerate.
4332
4333 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4334 version to 4.18.
4335
4336 2018-08-13 Florian Weimer <fweimer@redhat.com>
4337
4338 * misc/error.c (error): Add missing va_end call.
4339 (error_at_line): Likewise.
4340
4341 2018-08-13 Florian Weimer <fweimer@redhat.com>
4342
4343 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
4344
4345 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
4346
4347 * benchtests/scripts/benchout.schema.json (properties): Add
4348 new properties.
4349
4350 * benchtests/bench-skeleton.c (main): Add duration and
4351 iterations attributes.
4352
4353 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
4354
4355 regex: Gnulib unibyte RRI uses bytes not chars
4356 Adjust the non-glibc code to agree with what Gawk needs for
4357 rational range interpretation (RRI) for regular expression ranges.
4358 In unibyte locales, Gawk wants ranges to use the underlying byte
4359 rather than the character code point. This change does not affect
4360 glibc proper.
4361 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
4362 In unibyte locales, use the byte value rather than
4363 running it through btowc.
4364
4365 2018-08-10 Joseph Myers <joseph@codesourcery.com>
4366
4367 * sysdeps/generic/math-tests-snan.h: New file.
4368 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
4369 (SNAN_TESTS_float): Do not define here.
4370 (SNAN_TESTS_double): Likewise.
4371 (SNAN_TESTS_long_double): Likewise.
4372 (SNAN_TESTS_float128): Likewise.
4373 * sysdeps/i386/fpu/math-tests-snan.h: New file.
4374 * sysdeps/i386/fpu/math-tests.h: Remove file.
4375 * sysdeps/ia64/math-tests-snan.h: New file.
4376 * sysdeps/ia64/math-tests.h: Remove file.
4377 * sysdeps/x86/math-tests.h: Likewise.
4378 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
4379
4380 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
4381 Szabolcs Nagy <szabolcs.nagy@arm.com>
4382
4383 * math/Makefile: Add s_sincosf_data.c.
4384 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
4385 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
4386 (sincosf_poly): Likewise.
4387 (reduce_small): Likewise.
4388 (reduce_large): Likewise.
4389 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
4390 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
4391 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
4392 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
4393
4394 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
4395 Szabolcs Nagy <szabolcs.nagy@arm.com>
4396
4397 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
4398 (converttoint): Use lround.
4399 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
4400 document the semantics when TOINT_INTRINSICS is set.
4401 (converttoint): Likewise.
4402 (TOINT_RINT): Remove.
4403 (TOINT_SHIFT): Remove.
4404 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
4405 path.
4406
4407 2018-08-10 Florian Weimer <fweimer@redhat.com>
4408
4409 [BZ #23497]
4410 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
4411 function.
4412 (__old_getdents64): Use getdents64. Convert entries without
4413 moving them.
4414 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
4415 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
4416 tst-readdir64-compat.
4417
4418 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4419
4420 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
4421 Fix unwind.
4422
4423 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4424
4425 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
4426 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
4427 code to s390x-mcount.h and #include it.
4428 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
4429 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
4430 (__fentry__): Add.
4431
4432 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4433
4434 * stdlib/Versions: Remove __fentry__.
4435 * sysdeps/i386/Versions: Add __fentry__.
4436 * sysdeps/x86_64/Versions: Add __fentry__.
4437
4438 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4439
4440 * sysdeps/s390/Makefile: Register the new tests.
4441 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
4442 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
4443 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
4444 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
4445 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
4446 * sysdeps/s390/tst-dl-runtime.c: New file.
4447
4448 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4449
4450 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4451 Do not clobber R0.
4452
4453 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4454
4455 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
4456 Do not clobber R0.
4457
4458 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4459
4460 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4461 Do not clobber R0.
4462
4463 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4464
4465 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4466 Do not clobber R0.
4467
4468 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4469
4470 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4471 Use symbolic offsets for stack variables.
4472
4473 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4474
4475 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
4476 Use symbolic offsets for stack variables.
4477
4478 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4479
4480 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4481 Use symbolic offsets for stack variables.
4482
4483 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
4484
4485 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4486 Use symbolic offsets for stack variables.
4487
4488 2018-08-09 Joseph Myers <joseph@codesourcery.com>
4489
4490 * math/gen-libm-test.py: New file.
4491 * math/gen-libm-test.pl: Remove.
4492 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
4493 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
4494 gen-libm-test.pl.
4495 ($(libm-test-c-noauto-obj)): Likewise.
4496 ($(libm-test-c-auto-obj)): Likewise.
4497 ($(libm-test-c-narrow-obj)): Likewise.
4498 (regen-ulps): Likewise.
4499 * math/README.libm-test: Update references to gen-libm-test.pl.
4500 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
4501 referencing gen-libm-test.pl.
4502 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
4503 * math/libm-test-support.c: Likewise.
4504 * math/libm-test-support.h: Likewise.
4505 * sysdeps/generic/libm-test-ulps: Likewise.
4506
4507 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
4508
4509 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
4510 Fix value.
4511
4512 2018-08-08 Joseph Myers <joseph@codesourcery.com>
4513
4514 * math/libm-test-nextdown.inc (do_test): Move comment to ....
4515 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
4516
4517 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
4518
4519 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
4520 symbols.
4521 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
4522 __pthread_setspecific): Add hidden proto.
4523 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
4524 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
4525
4526 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
4527
4528 * benchtests/bench-string.h (buf1_size, buf2_size): New
4529 variables.
4530 (init_sizes): New function.
4531 (test_init): Use it.
4532 (alloc_buf, exit_error): New functions.
4533 (alloc_bufs): Use ALLOC_BUF.
4534 (realloc_bufs): Remove.
4535 * benchtests/bench-memcmp.c (do_test): Adjust.
4536 * benchtests/bench-memset-large.c (do_test): Likewise.
4537 * benchtests/bench-memset-walk.c (do_test): Likewise.
4538 * benchtests/bench-memset.c (do_test): Likewise.
4539 * benchtests/bench-strncmp.c (do_test): Likewise.
4540
4541 2018-08-06 Andreas Schwab <schwab@suse.de>
4542
4543 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
4544 of CONST_THREAD_AREA.
4545
4546 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
4547
4548 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
4549 (STATE_SAVE_MASK): Likewise.
4550 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
4551 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
4552 (STATE_SAVE_MASK): Likewise.
4553 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
4554 instead of <cpu-features.h>.
4555
4556 2018-08-03 DJ Delorie <dj@redhat.com>
4557
4558 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
4559 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
4560
4561 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4562
4563 2018-08-03 Joseph Myers <joseph@codesourcery.com>
4564
4565 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
4566 after TEST_* calls.
4567 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
4568 * math/libm-test-logb.inc (logb_test_data): Likewise.
4569
4570 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
4571
4572 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
4573 * string/strstr.c (AVAILABLE): Likewise.
4574
4575 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
4576
4577 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
4578 <init-arch.h>.
4579 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
4580 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
4581 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
4582
4583 2018-08-03 Carlos O'Donell <carlos@redhat.com>
4584
4585 * po/be.po: Update translation.
4586
4587 * po/be.po: Update translation.
4588
4589 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
4590
4591 * sysdeps/x86/cpu-features-offsets.sym
4592 (rtld_global_ro_offsetof): Removed.
4593 (CPU_FEATURES_SIZE): Likewise.
4594 (CPUID_OFFSET): Likewise.
4595 (CPUID_SIZE): Likewise.
4596 (CPUID_EAX_OFFSET): Likewise.
4597 (CPUID_EBX_OFFSET): Likewise.
4598 (CPUID_ECX_OFFSET): Likewise.
4599 (CPUID_EDX_OFFSET): Likewise.
4600 (FAMILY_OFFSET): Likewise.
4601 (MODEL_OFFSET): Likewise.
4602 (FEATURE_OFFSET): Likewise.
4603 (FEATURE_SIZ): Likewise.
4604 (COMMON_CPUID_INDEX_1): Likewise.
4605 (COMMON_CPUID_INDEX_7): Likewise.
4606 (FEATURE_INDEX_1): Likewise.
4607 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
4608
4609 2018-08-02 Carlos O'Donell <carlos@redhat.com>
4610
4611 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
4612 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
4613 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
4614 (install-locales): Depend on install-locale-archive.
4615 (install-locale-archive): Define.
4616 (install-locale-files): Define.
4617 (build-one-locale): Define macro.
4618 * manual/install.texi (Running make install): Document.
4619 * manual/INSTALL: Regenerate.
4620
4621 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
4622
4623 * benchtests/scripts/compare_strings.py: Import traceback.
4624 (parse_file): Pretty-print error.
4625
4626 * NEWS: Mention the change.
4627 * elf/dl-tunables.list: Rename tune namespace to cpu.
4628 * sysdeps/powerpc/dl-tunables.list: Likewise.
4629 * sysdeps/x86/dl-tunables.list: Likewise.
4630 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
4631 cpu.name.
4632 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
4633 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
4634 * manual/README.tunables: Likewise.
4635 * manual/tunables.texi: Likewise.
4636 * sysdeps/powerpc/cpu-features.c: Likewise.
4637 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
4638 (init_cpu_features): Likewise.
4639 * sysdeps/x86/cpu-features.c: Likewise.
4640 * sysdeps/x86/cpu-features.h: Likewise.
4641 * sysdeps/x86/cpu-tunables.c: Likewise.
4642 * sysdeps/x86_64/Makefile: Likewise.
4643 * sysdeps/x86/dl-cet.c: Likewise.
4644
4645 2018-08-02 Joseph Myers <joseph@codesourcery.com>
4646
4647 [BZ #23479]
4648 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
4649 [__mips_hard_float].
4650 (FE_UNDERFLOW): Likewise.
4651 (FE_OVERFLOW): Likewise.
4652 (FE_DIVBYZERO): Likewise.
4653 (FE_INVALID): Likewise.
4654 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
4655 (FE_TOWARDZERO): Define only if [__mips_hard_float].
4656 (FE_UPWARD): Likewise.
4657 (FE_DOWNWARD): Likewise.
4658 (__FE_UNDEFINED): Define if [!__mips_hard_float]
4659 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
4660 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
4661 [__mips_hard_float].
4662 (FP_ROUNDMODE): Likewise.
4663 (FP_RND_NEAREST): Likewise.
4664 (FP_RND_ZERO): Likewise.
4665 (FP_RND_PINF): Likewise.
4666 (FP_RND_MINF): Likewise.
4667 (FP_EX_INVALID): Likewise.
4668 (FP_EX_OVERFLOW): Likewise.
4669 (FP_EX_UNDERFLOW): Likewise.
4670 (FP_EX_DIVZERO): Likewise.
4671 (FP_EX_INEXACT): Likewise.
4672 (FP_INIT_ROUNDMODE): Likewise.
4673 * sysdeps/mips/nofpu/fesetenv.c: New file.
4674 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
4675
4676 2018-08-01 Joseph Myers <joseph@codesourcery.com>
4677
4678 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
4679 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
4680 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
4681 conditional on [FE_UPWARD].
4682
4683 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
4684
4685 regex: fix memory leak in Gnulib
4686 Problem and fix reported by Assaf Gordon in:
4687 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
4688 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
4689 range_ends members too, as they are defined in 'struct
4690 re_charset_t' even if not _LIBC. This affects only Gnulib.
4691
4692 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
4693
4694 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
4695 ...
4696 (get_common_indices): This.
4697 (init_cpu_features): Updated.
4698
4699 2018-08-01 Joseph Myers <joseph@codesourcery.com>
4700
4701 * sysdeps/generic/math-tests-snan-payload.h: New file.
4702 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
4703 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
4704 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
4705 * sysdeps/generic/math-tests.h: Include
4706 <math-tests-snan-payload.h>.
4707 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
4708 * sysdeps/hppa/math-tests.h: Remove file.
4709 * sysdeps/mips/math-tests.h [!__mips_nan2008]
4710 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
4711 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
4712 Likewise.
4713
4714 * sysdeps/generic/math-tests-snan-cast.h: New file.
4715 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
4716 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
4717 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
4718 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
4719
4720 2018-08-01 Carlos O'Donel <carlos@redhat.com>
4721
4722 * version.h (RELEASE): Set to "development".
4723 (VERSION): Set to "2.28.9000".
4724 * NEWS (2.29): New section.
4725
4726 * version.h (RELEASE): Set to "stable".
4727 (VERSION): Set to "2.28".
4728 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
4729 * NEWS: Add the list of bugs fixed in 2.28.
4730
4731 * po/ca.po: Update to latest version.
4732 * po/cs.po: Likewise
4733 * po/da.po: Likewise
4734 * po/el.po: Likewise
4735 * po/eo.po: Likewise
4736 * po/es.po: Likewise
4737 * po/fi.po: Likewise
4738 * po/fr.po: Likewise
4739 * po/gl.po: Likewise
4740 * po/hu.po: Likewise
4741 * po/ia.po: Likewise
4742 * po/id.po: Likewise
4743 * po/it.po: Likewise
4744 * po/ja.po: Likewise
4745 * po/ko.po: Likewise
4746 * po/lt.po: Likewise
4747 * po/nb.po: Likewise
4748 * po/nl.po: Likewise
4749 * po/pt_BR.po: Likewise
4750 * po/ru.po: Likewise
4751 * po/rw.po: Likewise
4752 * po/sk.po: Likewise
4753 * po/sl.po: Likewise
4754 * po/tr.po: Likewise
4755 * po/zh_CN.po: Likewise
4756 * po/zh_TW.po: Likewise
4757
4758 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
4759
4760 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
4761 initialization...
4762 (init): ... before initializing libpthread.
4763
4764 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
4765 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
4766 (__mach_setup_tls): ... new function.
4767 (mach_setup_tls): New alias.
4768 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
4769 __mach_setup_thread.
4770 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
4771 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
4772 * mach/Versions [libc] (mach_setup_tls): Add symbol.
4773 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
4774
4775 2018-07-31 Carlos O'Donell <carlos@redhat.com>
4776
4777 * manual/install.texi: Update versions.
4778 * INSTALL: Regenerate.
4779
4780 * manual/contrib.texi (Contributors): Update contributions.
4781
4782 2018-07-31 Carlos O'Donell <carlos@redhat.com>
4783
4784 * po/be.po: Update translations.
4785
4786 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4787
4788 * sysdeps/sh/libm-test-ulps: Update.
4789
4790 2018-07-30 Carlos O'Donell <carlos@redhat.com>
4791
4792 * po/bg.po: Update translations.
4793 * po/de.po: Likewise.
4794 * po/hr.po: Likewise.
4795 * po/pt_BR.po: Likewise.
4796 * po/sv.po: Likewise.
4797 * po/vi.po: Likewise.
4798
4799 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
4800
4801 [BZ #23467]
4802 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
4803 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
4804 (CFLAGS-tst-cet-property-1.o): New.
4805 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
4806 ($(objpfx)tst-cet-property-2): Likewise.
4807 ($(objpfx)tst-cet-property-2.out): Likewise.
4808 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
4809 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
4810 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
4811 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
4812 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
4813
4814 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
4815
4816 [BZ #23458]
4817 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
4818
4819 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
4820
4821 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
4822 __sbrk): Do not set attribute_hidden.
4823 * sysdeps/mach/hurd/not-errno.h: New file.
4824 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
4825 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
4826
4827 2018-07-27 Carlos O'Donell <carlos@redhat.com>
4828
4829 * po/uk.po: Update translations.
4830 * po/cs.po: Likewise.
4831 * po/pl.po: Likewise.
4832
4833 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
4834
4835 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
4836 parse beyond the note end.
4837
4838 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4839
4840 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
4841 kernel does not support OFD locks.
4842 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
4843
4844 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
4845
4846 * sysdeps/mach/hurd/Versions (libc): Make __access and
4847 __access_noerrno external so they can override the ld symbols.
4848 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
4849 __writev, __open64, __access_noerrno extern so they can be overrided.
4850 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
4851 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
4852
4853 2018-07-26 Carlos O'Donell <carlos@redhat.com>
4854
4855 * po/libc.pot: Regenerate.
4856
4857 2018-07-26 Joseph Myers <joseph@codesourcery.com>
4858
4859 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4860
4861 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
4862
4863 [BZ #23459]
4864 * sysdeps/x86/cpu-features.c (get_extended_indices): New
4865 function.
4866 (init_cpu_features): Call get_extended_indices for both Intel
4867 and AMD CPUs.
4868 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
4869 Remove "for AMD" comment.
4870
4871 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
4872
4873 [BZ # 23456]
4874 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
4875 COMMON_CPUID_INDEX_80000001.
4876
4877 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
4878
4879 * string/tst-xbzero-opt.c (use_test_buffer): New function.
4880 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
4881
4882 2018-07-26 Florian Weimer <fweimer@redhat.com>
4883
4884 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
4885 aliases for symbols not in the implementation namespace.
4886
4887 2018-07-25 Carlos O'Donell <carlos@redhat.com>
4888
4889 [BZ #23393]
4890 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
4891 lowercase in LATIN script.
4892 * localedata/Makefile (test-input): Add en_US.UTF-8.
4893 * localedata/en_US.UTF-8.in: New file.
4894 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
4895 and restore old tests.
4896 * posix/tst-regexloc.c (do_test): Add back range expression test.
4897
4898 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
4899
4900 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
4901
4902 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4903
4904 * nptl/threads.h: Move to ...
4905 * sysdeps/nptl/threads.h: ... here.
4906 * sysdeps/hurd/stdc-predef.h: New file.
4907
4908 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
4909
4910 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
4911 tst-cet-setcontext-1 if CET is enabled.
4912 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
4913 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
4914
4915 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4916
4917 * include/threads.h: Move to ...
4918 * sysdeps/nptl/threads.h: ... here.
4919 * sysdeps/htl/threads.h: New file.
4920 * conform/Makefile (linknamespace-libs-ISO11): Use
4921 static-thread-library instead of linking libpthread.
4922 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
4923
4924 2018-07-25 Florian Weimer <fweimer@redhat.com>
4925
4926 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
4927 nanoseconds into seconds.
4928 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
4929 (do_test): Likewise.
4930 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
4931 (do_test): Likewise. Avoid nanosecond overflow and spurious
4932 timeouts due to system load.
4933 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
4934 (child_wait): Increment it.
4935 (do_test): Wait as long as necessary until all expected threads
4936 have arrived.
4937
4938 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
4939 H.J. Lu <hongjiu.lu@intel.com>
4940
4941 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
4942 __ssp.
4943 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
4944 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
4945 (__push___start_context): New.
4946 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
4947 <asm/prctl.h>.
4948 (__getcontext): Record the current shadow stack base. Save the
4949 caller's shadow stack pointer and base.
4950 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
4951 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
4952 (__push___start_context): New prototype.
4953 (__makecontext): Call __push___start_context to allocate a new
4954 shadow stack, push __start_context onto the new stack as well
4955 as the new shadow stack.
4956 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
4957 <asm/prctl.h>.
4958 (__setcontext): Restore the target shadow stack.
4959 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
4960 <asm/prctl.h>.
4961 (__swapcontext): Record the current shadow stack base. Save
4962 the caller's shadow stack pointer and base. Restore the target
4963 shadow stack.
4964 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
4965 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
4966 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
4967
4968 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
4969
4970 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
4971 tst-setcontext8 and tst-setcontext9.
4972 * stdlib/tst-setcontext6.c: New file.
4973 * stdlib/tst-setcontext7.c: Likewise.
4974 * stdlib/tst-setcontext8.c: Likewise.
4975 * stdlib/tst-setcontext9.c: Likewise.
4976
4977 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
4978
4979 * stdlib/Makefile ((tests): Add tst-setcontext5.
4980 * stdlib/tst-setcontext5.c: New file.
4981
4982 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
4983
4984 * stdlib/Makefile (tests): Add tst-setcontext4.
4985 * stdlib/tst-setcontext4.c: New file.
4986
4987 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
4988
4989 * stdlib/Makefile (tests): Add tst-swapcontext1.
4990 * stdlib/tst-swapcontext1.c: New test.
4991
4992 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
4993
4994 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
4995 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
4996 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
4997 and tst-cet-legacy-4c.
4998 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
4999 and tst-cet-legacy-mod-4.
5000 (CFLAGS-tst-cet-legacy-2.c): New.
5001 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
5002 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
5003 (CFLAGS-tst-cet-legacy-3.c): Likewise.
5004 (CFLAGS-tst-cet-legacy-4.c): Likewise.
5005 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
5006 ($(objpfx)tst-cet-legacy-1): Likewise.
5007 ($(objpfx)tst-cet-legacy-2): Likewise.
5008 ($(objpfx)tst-cet-legacy-2.out): Likewise.
5009 ($(objpfx)tst-cet-legacy-2a): Likewise.
5010 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
5011 ($(objpfx)tst-cet-legacy-4): Likewise.
5012 ($(objpfx)tst-cet-legacy-4.out): Likewise.
5013 ($(objpfx)tst-cet-legacy-4a): Likewise.
5014 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
5015 (tst-cet-legacy-4a-ENV): Likewise.
5016 ($(objpfx)tst-cet-legacy-4b): Likewise.
5017 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
5018 (tst-cet-legacy-4b-ENV): Likewise.
5019 ($(objpfx)tst-cet-legacy-4c): Likewise.
5020 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
5021 (tst-cet-legacy-4c-ENV): Likewise.
5022 * sysdeps/x86/tst-cet-legacy-1.c: New file.
5023 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
5024 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
5025 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
5026 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
5027 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
5028 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
5029 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
5030 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
5031 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
5032 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
5033
5034 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5035
5036 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5037 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5038 with ssp_base.
5039 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5040 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5041 with ssp_base.
5042
5043 2018-07-25 Andreas Schwab <schwab@suse.de>
5044
5045 [BZ #23442]
5046 * locale/weightwc.h (findidx): Handle the case where usrc is a
5047 prefix of cp but one character too short.
5048
5049 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5050
5051 * NEWS: Add ISO C threads addition.
5052
5053 2018-07-24 Florian Weimer <fweimer@redhat.com>
5054
5055 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5056 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
5057 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
5058 4.13.
5059
5060 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5061
5062 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
5063 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
5064 <sys/prctl.h> and <asm/prctl.h>.
5065 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
5066 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
5067 and <asm/prctl.h>.
5068 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
5069 ARCH_CET_LEGACY_BITMAP.
5070 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
5071 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
5072 * sysdeps/x86/libc-start.c: Include <startup.h>.
5073
5074 2018-07-24 Florian Weimer <fweimer@redhat.com>
5075
5076 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
5077 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
5078
5079 2018-07-24 Rical Jasan <rj@2c3t.io>
5080 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5081 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5082
5083 [BZ #14092]
5084 * manual/debug.texi: Update adjacent chapter name.
5085 * manual/probes.texi: Likewise.
5086 * manual/threads.texi (ISO C Threads): New section.
5087 (POSIX Threads): Convert to a section.
5088
5089 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5090 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5091
5092 [BZ# 14092]
5093 * nptl/Makefile (tests): Add new test files.
5094 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
5095 * nptl/tst-cnd-basic.c: Likewise.
5096 * nptl/tst-cnd-broadcast.c: Likewise.
5097 * nptl/tst-cnd-timedwait.c: Likewise.
5098 * nptl/tst-mtx-basic.c: Likewise.
5099 * nptl/tst-mtx-recursive.c: Likewise.
5100 * nptl/tst-mtx-timedlock.c: Likewise.
5101 * nptl/tst-mtx-trylock.c: Likewise.
5102 * nptl/tst-thrd-basic.c: Likewise.
5103 * nptl/tst-thrd-detach.c: Likewise.
5104 * nptl/tst-thrd-sleep.c: Likewise.
5105 * nptl/tst-tss-basic.c: Likewise.
5106
5107 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5108
5109 [BZ #14092]
5110 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
5111 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
5112 symbols.
5113 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5114 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5115 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5116 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5117 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5118 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5119 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5120 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5121 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5122 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5123 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5124 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5126 Likewise.
5127 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5128 Likewise.
5129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5130 Likewise.
5131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5132 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5133 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5134 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5135 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5136 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5137 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5138 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5139 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5140 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
5141 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
5142 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
5143 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
5144 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
5145 Likewise.
5146 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
5147 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
5148 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
5149 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
5150 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
5151 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
5152 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
5153 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
5154 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
5155 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
5156 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
5157 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
5158 ikewise.
5159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
5160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
5161 Likewise.
5162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
5163 Likewise.
5164 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
5165 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
5166 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
5167 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
5168 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
5169 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
5170 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
5171 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
5172
5173 [BZ #14092]
5174 * conform/data/threads.h-data (thread_local): New macro.
5175 (TSS_DTOR_ITERATIONS): Likewise.
5176 (tss_t): New type.
5177 (tss_dtor_t): Likewise.
5178 (tss_create): New function.
5179 (tss_get): Likewise.
5180 (tss_set): Likewise.
5181 (tss_delete): Likewise.
5182 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
5183 tss_get, and tss_set objects.
5184 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
5185 * nptl/tss_create.c: New file.
5186 * nptl/tss_delete.c: Likewise.
5187 * nptl/tss_get.c: Likewise.
5188 * nptl/tss_set.c: Likewise.
5189 * sysdeps/nptl/threads.h (thread_local): New define.
5190 (TSS_DTOR_ITERATIONS): Likewise.
5191 (tss_t): New typedef.
5192 (tss_dtor_t): Likewise.
5193 (tss_create): New prototype.
5194 (tss_get): Likewise.
5195 (tss_set): Likewise.
5196 (tss_delete): Likewise.
5197
5198 [BZ #14092]
5199 * conform/data/threads.h-data (cnd_t): New type.
5200 (cnd_init): New function.
5201 (cnd_signal): Likewise.
5202 (cnd_broadcast): Likewise.
5203 (cnd_wait): Likewise.
5204 (cnd_timedwait): Likewise.
5205 (cnd_destroy): Likewise.
5206 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
5207 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
5208 object.
5209 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
5210 * nptl/cnd_broadcast.c: New file.
5211 * nptl/cnd_destroy.c: Likewise.
5212 * nptl/cnd_init.c: Likewise.
5213 * nptl/cnd_signal.c: Likewise.
5214 * nptl/cnd_timedwait.c: Likewise.
5215 * nptl/cnd_wait.c: Likewise.
5216 * sysdeps/nptl/threads.h (cnd_t): New type.
5217 (cnd_init): New prototype.
5218 (cnd_signa): Likewise.
5219 (cnd_broadcast): Likewise.
5220 (cnd_wait): Likewise.
5221 (cnd_timedwait): Likewise.
5222 (cnd_destroy): Likewise.
5223
5224 [BZ #14092]
5225 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
5226 (once_flag): New type.
5227 (call_once): New function.
5228 * nptl/Makefile (libpthread-routines): Add call_once object.
5229 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
5230 * nptl/call_once.c: New file.
5231 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
5232 (once_flag): New type.
5233 (call_once): New prototype.
5234
5235 [BZ #14092]
5236 * conform/data/threads.h-data (mtx_plain): New constant.
5237 (mtx_recursive): Likewise.
5238 (mtx_timed): Likewise.
5239 (mtx_t): New type.
5240 (mtx_init): New function.
5241 (mtx_lock): Likewise.
5242 (mtx_timedlock): Likewise.
5243 (mtx_trylock): Likewise.
5244 (mtx_unlock): Likewise.
5245 (mtx_destroy): Likewise.
5246 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
5247 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
5248 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
5249 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
5250 * nptl/mtx_destroy.c: New file.
5251 * nptl/mtx_init.c: Likewise.
5252 * nptl/mtx_lock.c: Likewise.
5253 * nptl/mtx_timedlock.c: Likewise.
5254 * nptl/mtx_trylock.c: Likewise.
5255 * nptl/mtx_unlock.c: Likewise.
5256 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
5257 (mtx_recursive): Likewise.
5258 (mtx_timed): Likewise.
5259 (mtx_t): New type.
5260 (mtx_init): New prototype.
5261 (mtx_lock): Likewise.
5262 (mtx_timedlock): Likewise.
5263 (mtx_trylock): Likewise.
5264 (mtx_unlock): Likewise.
5265 (mtx_destroy): Likewise.
5266
5267 [BZ #14092]
5268 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
5269 (linknamespace-libs-ISO11): Add libpthread.a.
5270 * conform/data/threads.h-data: New file: add C11 thrd_* types and
5271 functions.
5272 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
5273 * nptl/Makefile (headers): Add threads.h.
5274 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
5275 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
5276 thrd_yield.
5277 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
5278 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
5279 thrd_join, thrd_sleep, and thrd_yield symbols.
5280 * nptl/descr.h (struct pthread): Add c11 field.
5281 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
5282 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
5283 routine with expected function prototype.
5284 (__pthread_create_2_1): Add C11 threads check based on attribute
5285 value.
5286 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
5287 * nptl/thrd_create.c: New file.
5288 * nptl/thrd_current.c: Likewise.
5289 * nptl/thrd_detach.c: Likewise.
5290 * nptl/thrd_equal.c: Likewise.
5291 * nptl/thrd_exit.c: Likewise.
5292 * nptl/thrd_join.c: Likewise.
5293 * nptl/thrd_priv.h: Likewise.
5294 * nptl/thrd_sleep.c: Likewise.
5295 * nptl/thrd_yield.c: Likewise.
5296 * include/threads.h: Likewise.
5297
5298 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5299
5300 * bits/indirect-return.h: New file.
5301 * misc/sys/cdefs.h (__glibc_has_attribute): New.
5302 * sysdeps/x86/bits/indirect-return.h: Likewise.
5303 * stdlib/Makefile (headers): Add bits/indirect-return.h.
5304 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
5305 (swapcontext): Add __INDIRECT_RETURN.
5306 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
5307 (prepare_test_buffer): Use it.
5308
5309 2018-07-24 Andreas Schwab <schwab@suse.de>
5310
5311 [BZ #23448]
5312 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
5313 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
5314
5315 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5316
5317 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
5318 Redefine if shadow stack is enabled.
5319 (SYSCALL_ERROR_LABEL): Likewise.
5320 (__vfork): Pop shadow stack and jump back to to caller directly
5321 when shadow stack is in use.
5322 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
5323 Redefine if shadow stack is enabled.
5324 (SYSCALL_ERROR_LABEL): Likewise.
5325 (__vfork): Pop shadow stack and jump back to to caller directly
5326 when shadow stack is in use.
5327
5328 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5329
5330 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
5331 enabled.
5332 (foo): Likewise.
5333 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
5334 (foo): Likewise.
5335
5336 2018-07-20 Joseph Myers <joseph@codesourcery.com>
5337
5338 * scripts/build-many-glibcs.py (Context.checkout): Default
5339 binutils version to 2.31 branch.
5340
5341 2018-07-20 Zong Li <zong@andestech.com>
5342
5343 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
5344 URL of gcc's tarball.
5345
5346 2018-07-20 Florian Weimer <fweimer@redhat.com>
5347
5348 [BZ #23396]
5349 * posix/regcomp.c (build_equiv_class): When comparing weights, do
5350 not compare an extra byte after the end of the weights.
5351
5352 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
5353
5354 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
5355 to 1.
5356 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
5357 hidden prototypes.
5358 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
5359 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
5360 * scripts/check-execstack.awk: Consider `xfail' variable containing a
5361 list of libraries whose stack executability is expected.
5362 * elf/Makefile ($(objpfx)check-execstack.out): Pass
5363 $(check-execstack-xfail) to check-execstack.awk through `xfail'
5364 variable.
5365 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
5366 libc.so libpthread.so.
5367
5368 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
5369
5370 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
5371 SOCK_NONBLOCK.
5372 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
5373 and SOCK_NONBLOCK.
5374 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
5375 implement __pipe2.
5376 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
5377
5378 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5379
5380 * benchtests/scripts/compare_bench.py (__main__): use the argparse
5381 library to improve command line parsing.
5382 (__main__): make schema file as optional parameter (--schema),
5383 defaulting to benchtests/scripts/benchout.schema.json.
5384 (main): move out of the parsing stuff to __main_  and leave it
5385 only as caller of main comparison functions.
5386
5387 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
5388
5389 * NEWS: Add a note for Intel CET status.
5390 * manual/install.texi: Likewise.
5391 * INSTALL: Regenerated.
5392
5393 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
5394
5395 [BZ #23140]
5396 * localedata/locales/oc_FR (mon): Rename to...
5397 (alt_mon): This, then update October (typo fix).
5398 (mon): New content (genitive case, month names preceded by
5399 "de" or "d’").
5400
5401 [BZ #23422]
5402 * localedata/locales/oc_FR (abday): Update all items.
5403 (day): Update Wednesday and Saturday (typo fixes).
5404 (abmon): Update all items, except May.
5405 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
5406 (LC_IDENTIFICATION): Bump the revision number and date.
5407 Keep the "category" entries in alphabetic order.
5408 (LC_ADDRESS): Remove no longer needed comment.
5409 (LC_COLLATE): Use “copy "ca_ES"”.
5410 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
5411 "name_mrs".
5412
5413 2018-07-18 Joseph Myers <joseph@codesourcery.com>
5414
5415 * grp/tst_fgetgrent.c: Include <unistd.h>.
5416 (main): Use mkstemp instead of tmpnam.
5417 * io/test-utime.c (main): Likewise.
5418 * posix/annexc.c (macrofile): Change to modifiable array.
5419 (main): Remove macrofile here.
5420 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
5421 macrofile here.
5422 (check_header): Do not remove macrofile here.
5423 * posix/bug-getopt1.c: Include <stdlib.h>.
5424 (do_test): Use mkstemp instead of tmpnam.
5425 * posix/bug-getopt2.c: Include <stdlib.h>.
5426 (do_test): Use mkstemp instead of tmpnam.
5427 * posix/bug-getopt3.c: Include <stdlib.h>.
5428 (do_test): Use mkstemp instead of tmpnam.
5429 * posix/bug-getopt4.c: Include <stdlib.h>.
5430 (do_test): Use mkstemp instead of tmpnam.
5431 * posix/bug-getopt5.c: Include <stdlib.h>.
5432 (do_test): Use mkstemp instead of tmpnam.
5433 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
5434 (main): Use mkstemp instead of tmpnam.
5435 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
5436 (main): Use mkstemp instead of tmpnam.
5437 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
5438 (main): use mkstemp instead of tmpnam.
5439 * stdlib/isomac.c (macrofile): Change to modifiable array.
5440 (main): Remove macrofile here.
5441 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
5442 macrofile here.
5443 (check_header): Do not remove macrofile here.
5444
5445 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5446
5447 * manual/tunables.texi: Document glibc.tune.x86_ibt and
5448 glibc.tune.x86_shstk.
5449
5450 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5451
5452 * NEWS: Mention --enable-cet.
5453 * manual/install.texi: Document --enable-cet.
5454 * INSTALL: Regenerated.
5455
5456 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5457
5458 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
5459 Add _CET_NOTRACK before indirect jump to jump table.
5460
5461 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5462
5463 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
5464 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5465 to jump table.
5466
5467 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5468
5469 * sysdeps/i386/i686/multiarch/strcat-sse2.S
5470 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5471 to jump table.
5472
5473 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5474
5475 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
5476 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5477 to jump table.
5478
5479 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5480
5481 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
5482 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5483 to jump table.
5484
5485 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5486
5487 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
5488 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5489 to jump table.
5490 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
5491
5492 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5493
5494 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
5495 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5496 to jump table.
5497
5498 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5499
5500 * sysdeps/i386/i686/multiarch/memset-sse2.S
5501 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5502 to jump table.
5503
5504 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5505
5506 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
5507 indirect jump to jump table.
5508
5509 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5510
5511 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
5512 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5513 to jump table.
5514 (MEMCPY): Likewise.
5515
5516 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5517
5518 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
5519 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5520 to jump table.
5521 (MEMCPY): Likewise.
5522
5523 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5524
5525 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
5526 _CET_NOTRACK before indirect jump to jump table.
5527
5528 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5529
5530 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
5531 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
5532 to jump table.
5533
5534 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
5535
5536 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
5537 indirect jump to jump table.
5538
5539 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
5540
5541 [BZ #22241]
5542 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
5543 (LOCALES): Likewise.
5544 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
5545 * localedata/locales/sah_RU: New file.
5546 * localedata/sah_RU.UTF-8.in: New file.
5547
5548 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5549
5550 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
5551 "sysdep.h".
5552 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
5553 _CET_ENDBR to indirect jump targets and adjust jump destination
5554 for _CET_ENDBR.
5555 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
5556 "sysdep.h".
5557 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
5558 _CET_ENDBR to indirect jump targets and adjust jump destination
5559 for _CET_ENDBR.
5560 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
5561 "sysdep.h".
5562 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
5563 _CET_ENDBR to indirect jump targets and adjust jump destination
5564 for _CET_ENDBR.
5565
5566 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5567
5568 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
5569 _CET_ENDBR.
5570
5571 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5572
5573 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
5574 _CET_ENDBR.
5575 (_dl_tlsdesc_undefweak): Likewise.
5576 (_dl_tlsdesc_dynamic): Likewise.
5577 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
5578 (_dl_tlsdesc_resolve_rel): Likewise.
5579 (_dl_tlsdesc_resolve_rela): Likewise.
5580 (_dl_tlsdesc_resolve_hold): Likewise.
5581 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
5582 (_dl_tlsdesc_undefweak): Likewise.
5583 (_dl_tlsdesc_dynamic): Likewise.
5584 (_dl_tlsdesc_resolve_rela): Likewise.
5585 (_dl_tlsdesc_resolve_hold): Likewise.
5586
5587 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5588
5589 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
5590 (_fini): Likewise.
5591 * sysdeps/x86_64/crti.S (_init): Likewise.
5592 (_fini): Likewise.
5593
5594 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
5595
5596 [BZ #23140]
5597 * localedata/locales/os_RU (mon): Rename to...
5598 (alt_mon): This.
5599 (mon): Import from CLDR (genitive case).
5600
5601 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
5602
5603 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
5604 cet-tunables.h> when CET is enabled.
5605
5606 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
5607
5608 [BZ #21598]
5609 * configure.ac: Add --enable-cet.
5610 * configure: Regenerated.
5611 * elf/Makefille (all-built-dso): Add a comment.
5612 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
5613 Include <dl-prop.h>.
5614 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
5615 segment.
5616 * elf/dl-open.c: Include <dl-prop.h>.
5617 (dl_open_worker): Call _dl_open_check.
5618 * elf/rtld.c: Include <dl-prop.h>.
5619 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
5620 _rtld_main_check.
5621 * sysdeps/generic/dl-prop.h: New file.
5622 * sysdeps/i386/dl-cet.c: Likewise.
5623 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
5624 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
5625 * sysdeps/x86/cet-tunables.h: Likewise.
5626 * sysdeps/x86/check-cet.awk: Likewise.
5627 * sysdeps/x86/configure: Likewise.
5628 * sysdeps/x86/configure.ac: Likewise.
5629 * sysdeps/x86/dl-cet.c: Likewise.
5630 * sysdeps/x86/dl-procruntime.c: Likewise.
5631 * sysdeps/x86/dl-prop.h: Likewise.
5632 * sysdeps/x86/libc-start.h: Likewise.
5633 * sysdeps/x86/link_map.h: Likewise.
5634 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
5635 _CET_ENDBR.
5636 (_dl_runtime_profile): Likewise.
5637 (_dl_runtime_resolve_shstk): New.
5638 (_dl_runtime_profile_shstk): Likewise.
5639 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
5640 if CET is enabled.
5641 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
5642 (CFLAGS-.os): Likewise.
5643 (CFLAGS-.op): Likewise.
5644 (CFLAGS-.oS): Likewise.
5645 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
5646 is enabled.
5647 (tests-special): Add $(objpfx)check-cet.out.
5648 (cet-built-dso): New.
5649 (+$(cet-built-dso:=.note)): Likewise.
5650 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
5651 ($(objpfx)check-cet.out): New.
5652 (generated): Add check-cet.out.
5653 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
5654 <cet-tunables.h>.
5655 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
5656 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5657 (init_cpu_features): Call get_cet_status to check CET status
5658 and update dl_x86_feature_1 with CET status. Call
5659 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
5660 (set_x86_shstk). Disable and lock CET in libc.a.
5661 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
5662 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
5663 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
5664 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
5665 (_CET_ENDBR): Define if not defined.
5666 (ENTRY): Add _CET_ENDBR.
5667 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
5668 x86_shstk.
5669 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
5670 _CET_ENDBR.
5671 (_dl_runtime_profile): Likewise.
5672
5673 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
5674
5675 [BZ #21895]
5676 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
5677 restore r2 on longjmp.
5678 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
5679 test list.
5680 Added rules to build test tst-setjmp-bug21895-static.
5681 Added module setjmp-bug21895 and rules to build a shared object from it.
5682 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
5683 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
5684
5685 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
5686
5687 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
5688 * benchtests/bench-strstr.c: Likewise.
5689 * string/memmem.c (FASTSEARCH): Define.
5690 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
5691 Add support for FASTSEARCH.
5692 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
5693 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
5694 (FASTSEARCH): Define.
5695 * string/test-strcasestr.c: Rename __strnlen to strnlen.
5696 * string/test-strstr.c: Likewise.
5697
5698 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
5699
5700 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
5701 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
5702
5703 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
5704 H.J. Lu <hongjiu.lu@intel.com>
5705
5706 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
5707 (__longjmp): Restore shadow stack pointer if shadow stack is
5708 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
5709 isn't defined for __longjmp_cancel.
5710 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
5711 (_setjmp): Save shadow stack pointer if shadow stack is enabled
5712 and SHADOW_STACK_POINTER_OFFSET is defined.
5713 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
5714 (setjmp): Save shadow stack pointer if shadow stack is enabled
5715 and SHADOW_STACK_POINTER_OFFSET is defined.
5716 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
5717 (__sigsetjmp): Save shadow stack pointer if shadow stack is
5718 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5719 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
5720 <jmp_buf-ssp.h>.
5721 (____longjmp_chk): Restore shadow stack pointer if shadow stack
5722 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5723 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
5724 Remove jmp_buf-ssp.sym.
5725 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
5726 <jmp_buf-ssp.h>.
5727 (____longjmp_chk): Restore shadow stack pointer if shadow stack
5728 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5729 * sysdeps/x86/Makefile (gen-as-const-headers): Add
5730 jmp_buf-ssp.sym.
5731 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
5732 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
5733 (__longjmp): Restore shadow stack pointer if shadow stack is
5734 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
5735 isn't defined for __longjmp_cancel.
5736 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
5737 (__sigsetjmp): Save shadow stack pointer if shadow stack is
5738 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
5739
5740 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
5741
5742 [BZ #22563]
5743 * nptl/pthread_create.c: Include <tls-setup.h>.
5744 (__pthread_create_2_1): Call tls_setup_tcbhead.
5745 * sysdeps/generic/tls-setup.h: New file.
5746 * sysdeps/x86/nptl/tls-setup.h: Likewise.
5747 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
5748 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
5749 Likewise.
5750 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
5751 to feature_1.
5752 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
5753 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
5754 (X86_FEATURE_1_SHSTK): Likewise.
5755 (CET_ENABLED): Likewise.
5756 (IBT_ENABLED): Likewise.
5757 (SHSTK_ENABLED): Likewise.
5758
5759 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
5760
5761 [BZ #23208]
5762 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
5763 (LOCALES): Likewise.
5764 * localedata/dsb_DE.UTF-8.in: New file.
5765 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
5766
5767 2018-07-12 Florian Weimer <fweimer@redhat.com>
5768
5769 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
5770 __mprotect, not mprotect.
5771
5772 2018-07-11 Florian Weimer <fweimer@redhat.com>
5773
5774 * io/Makefile (headers): Add bits/statx.h.
5775
5776 2018-07-10 Mike FABIAN <mfabian@redhat.com>
5777
5778 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
5779 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
5780 and headers.
5781 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
5782 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
5783 for utf8_gen.py
5784
5785 2018-07-10 Florian Weimer <fweimer@redhat.com>
5786
5787 * io/Makefile (routines): Add statx.
5788 (tests-internal): Add tst-statx.
5789 * io/Versions (GLIBC_2.28): Export statx.
5790 * io/bits/statx.h: New file.
5791 * io/sys/stat.h [__USE_GNU]: Include it.
5792 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
5793 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
5794 Define.
5795 * io/statx.c: New file.
5796 * io/statx_generic.: Likewise.
5797 * io/tst-statx.: Likewise.
5798 * include/bits/statx.h: Likewise.
5799 * sysdeps/unix/sysv/linux/kernel-features.h
5800 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
5801 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5802 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
5803 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
5804 Undefine.
5805 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5806 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
5807 * sysdeps/unix/sysv/linux/statx.c: New file.
5808 * manual/filesys.texi: Note that statx is undocumented.
5809 * sysdeps/**/libc*.abilist: Update.
5810
5811 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5812
5813 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
5814 a kernel issue which lead to test failure in some cases.
5815
5816 2018-07-10 Florian Weimer <fweimer@redhat.com>
5817
5818 [BZ #23036]
5819 * posix/regexec.c (check_node_accept_bytes): When comparing
5820 weights, do not compare an extra byte after the end of the
5821 weights.
5822
5823 2018-07-10 Florian Weimer <fweimer@redhat.com>
5824
5825 * libio/readline.c: Fix copyright year.
5826 * libio/tst-readline.c Likewise.
5827 * nss/tst-nss-files-hosts-getent.c: Likewise.
5828
5829 2018-07-06 Florian Weimer <fweimer@redhat.com>
5830
5831 [BZ #18991]
5832 * nss/nss_files/files-XXX.c (internal_getent): Use
5833 __libc_readline_unlocked. Seek back to the start of the line if
5834 parsing failes with ERANGE.
5835 (get_contents_ret, get_contents): Remove.
5836 * nss/tst-nss-files-hosts-getent.c: New file.
5837 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
5838 (tst-nss-files-hosts-getent): Link with -ldl.
5839
5840 2018-07-06 Florian Weimer <fweimer@redhat.com>
5841
5842 * include/stdio.h (__libc_readline_unlocked): Declare.
5843 (__ftello64, __fseeko64): Declare aliases.
5844 * libio/readline.c: New file.
5845 * libio/tst-readline.c: Likewise.
5846 (routines): Add readline.
5847 (tests-internal): Add tst-readlime.
5848 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
5849 __libc_readline_unlocked.
5850 * libio/fseeko.c (__fseeko): Rename from fseeko.
5851 (fseeko): Add alias.
5852 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
5853 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
5854 (fseeko64): Add alias.
5855 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
5856 * libio/ftello64.c (__ftello64): Rename from ftello64.
5857 (ftello64): Add alias.
5858
5859 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5860
5861 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
5862 HWCAP_ATOMICS.
5863
5864 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5865
5866 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
5867 Use dl_hwcap without masking.
5868 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
5869 Remove HWCAP_CPUID.
5870
5871 2018-07-06 Florian Weimer <fweimer@redhat.com>
5872
5873 * conform/conformtest.pl (checknamespace): Escape literal braces
5874 in regular expressions.
5875
5876 2018-07-06 Amit Pawar <amit.pawar@amd.com>
5877
5878 * sysdeps/x86/cpu-features.c (get_common_indeces):
5879 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
5880 * sysdeps/x86/cpu-features.c (init_cpu_features):
5881 AVX_Fast_Unaligned_Load is disabled for Excavator core.
5882
5883 2018-07-05 Florian Weimer <fweimer@redhat.com>
5884
5885 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
5886 protector.
5887 (CFLAGS-elf-init.oS): Likewise.
5888
5889 2018-07-05 Florian Weimer <fweimer@redhat.com>
5890 Carlos O'Donell <carlos@redhat.com>
5891
5892 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
5893 $(no-stack-protector). stack_chk_fail_local.c can be compiled
5894 with stack protector enabled because there is no risk of infinite
5895 recursion.
5896
5897 2018-07-05 Maciej W. Rozycki <macro@mips.com>
5898
5899 [BZ #19818]
5900 [BZ #23307]
5901 * libc-abis (ABSOLUTE): New ABI.
5902 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
5903 * NEWS: Mention the new ABI.
5904
5905 2018-07-05 Florian Weimer <fweimer@redhat.com>
5906
5907 [BZ # 17662]
5908 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
5909 (RENAME_WHITEOUT): Define.
5910 [__USE_GNU] (renameat2): Declare.
5911 * stdio-common/Makefile (routines): Add renameat2.
5912 (tests): Add tst-renameat2.
5913 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
5914 * stdio-common/renameat2.c: New file.
5915 * stdio-common/tst-renameat2.c: Likewise.
5916 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
5917 * manual/filesys.texi (Temporary Files): Note that renameat2 is
5918 undocumented.
5919 * sysdeps/unix/sysv/linux/kernel-features.h
5920 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
5921 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5922 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
5923 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5924 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
5925 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5926 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
5927 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5928 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
5929 * include/stdio.h (__renameat): Add alias for renameat.
5930 * stdio-common/renameat.c (__renameat): Rename from renameat.
5931 Add hidden definition and alias.
5932 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
5933 * sysdeps/mach/hurd/renameat.c: Likewise.
5934 * sysdeps/**/libc*.abilist: Add renameat2.
5935
5936 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5937
5938 * posix/bug-regex33.c: Fix build after regex sync.
5939
5940 2018-07-04 Carlos O'Donell <carlos@redhat.com>
5941
5942 [BZ #23164]
5943 * localedata/tst-langinfo-setlocale.c: New file.
5944 * localedata/tst-langinfo-setlocale-static.c: New file.
5945 * localedata/tst-langinfo-newlocale.c: New file.
5946 * localedata/tst-langinfo-newlocale-static.c: New file.
5947 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
5948 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
5949 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
5950 (tests-static): Remove tst-langinfo-static. Add
5951 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
5952 (tests-special): Remove $(objpfx)tst-langinfo.out,
5953 $(objpfx)tst-langinfo-static.out. Add
5954 $(objpfx)tst-langinfo-setlocale.out,
5955 $(objpfx)tst-langinfo-newlocale.out,
5956 $(objpfx)tst-langinfo-setlocale-static.out,
5957 $(objpfx)tst-langinfo-newlocale-static.out.
5958 ($(objpfx)tst-langinfo.out): Remove.
5959 ($(objpfx)tst-langinfo-static.out): Remove.
5960 ($(objpfx)tst-langinfo-newlocale.out): New target.
5961 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
5962 (test-xfail-tst-langinfo-newlocale-static): Add.
5963 ($(objpfx)tst-langinfo-setlocale.out): New target.
5964 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
5965 * localedata/tst-langinfo.c: Call test_locale.
5966 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
5967 data.
5968
5969 2018-07-04 Florian Weimer <fweimer@redhat.com>
5970
5971 testrun.sh: Implement --tool=strace, --tool=valgrind
5972 * Makefile (testrun-script): Define variable.
5973 (testrun.sh): Use variable.
5974 * manual/install.texi (Tools for Compilation): make 4.0 or later
5975 is required.
5976 * configure.ac: Check for make 4.0 or later.
5977 * INSTALL: Regenerate.
5978 * configure: Likewise.
5979
5980 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5981
5982 [BZ #23233]
5983 [BZ #21163]
5984 [BZ #18986]
5985 [BZ #13762]
5986 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
5987 * posix/PCRE.tests: Remove invalid test.
5988 * posix/bug-regex28.c: Fix expected values for used syntax.
5989 * posix/bug-regex37.c: New file.
5990 * posix/bug-regex38.c: Likewise.
5991 * posix/regcomp.c: Sync with gnulib.
5992 * posix/regex.c: Likewise.
5993 * posix/regex.h: Likewise.
5994 * posix/regex_internal.c: Likewise.
5995 * posix/regex_internal.h: Likewise.
5996 * posix/regexec.c: Likewise.
5997
5998 2018-06-26 Mike FABIAN <mfabian@redhat.com>
5999
6000 [BZ #23308]
6001 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
6002 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
6003 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
6004 * localedata/unicode-gen/PropList.txt: likewise.
6005 * localedata/unicode-gen/UnicodeData.txt: likewise.
6006 * localedata/charmaps/UTF-8: Regenerate.
6007 * localedata/locales/i18n_ctype: likewise.
6008 * localedata/locales/tr_TR: likewise.
6009 * localedata/locales/translit_circle: likewise.
6010 * localedata/locales/translit_cjk_compat: likewise.
6011 * localedata/locales/translit_combining: likewise.
6012 * localedata/locales/translit_compat: likewise.
6013 * localedata/locales/translit_font: likewise.
6014 * localedata/locales/translit_fraction: likewise.
6015
6016 2018-07-03 Florian Weimer <fweimer@redhat.com>
6017
6018 [BZ #23363]
6019 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
6020 * stdio-common/tst-printf.sh: Adjust expected output.
6021 * LICENSES: Update.
6022
6023 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6024
6025 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
6026 symbol.
6027
6028 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6029
6030 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
6031 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
6032 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
6033 * stdio-common/tst-printfsz-islongdouble.c: New file.
6034 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
6035 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
6036 [subdir == stdio-common] (routines): Add ieee128-printf_size.
6037 [subdir == stdio-common] (tests-internal): Add
6038 test-printf-size-ieee128, and test-printf-size-ibm128.
6039 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
6040 (CFLAGS-test-printf-size-ibm128.c): New variables.
6041 [subdir == stdio-common] (tests-special): Add
6042 $(objpfx)test-printf-size-ieee128.out and
6043 $(objpfx)test-printf-size-ibm128.out.
6044 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
6045 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
6046 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
6047 __printf_sizeieee128.
6048 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
6049 New file.
6050 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
6051 Likewise.
6052 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
6053 Likewise.
6054
6055 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
6056
6057 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
6058 (exp2f_inline): Likewise.
6059 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
6060 (__math_uflowf): Likewise.
6061 (__math_may_uflowf): Likewise.
6062 (__math_divzerof): Likewise.
6063 (__math_invalidf): Likewise.
6064 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
6065 (__math_oflowf): Likewise.
6066 (__math_uflowf): Likewise.
6067 (__math_may_uflowf): Likewise.
6068 (__math_divzerof): Likewise.
6069 (__math_invalidf): Likewise.
6070
6071 2018-06-29 DJ Delorie <dj@redhat.com>
6072 Carlos O'Donell <carlos@redhat.com>
6073
6074 [BZ #23329]
6075 * include/libc-symbols.h: Comment the freeres framework.
6076 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
6077 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
6078 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
6079 * dlfcn/dlerror.c: Include libc-symbols.h
6080 (__dlerror_main_freeres): New function.
6081 * dlfcn/dlfreeres.c: New file.
6082 * dlfcn/sdlfreeres.c: New file.
6083 * include/dlfcn.h: Declare __dlerror_main_freeres.
6084 * malloc/set-freeres.c: Declare __libdl_freeres, and
6085 __libpthread_freeres.
6086 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
6087 the releavant libraries are loaded.
6088 * malloc/thread-freeres.c: Add comments.
6089 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
6090 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
6091 * nptl/allocatestack.c (__nptl_free_stacks): New function.
6092 (__free_stacks): Rename to...
6093 (free_stacks): ...this. Mark static.
6094 (queue_stack): Call free_stacks.
6095 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
6096 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
6097 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
6098 ptr_freeres element from struct.
6099 (pthread_functions): Remove .ptr_freeres from struct initializer.
6100 [SHARED] (nptl_freeres): Remove.
6101 * nptl/nptlfreeres.c: New file.
6102 * nptl/pthreadP.h
6103 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
6104 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
6105 attribute_hidden.
6106 (__free_stacks): Rename to...
6107 (__nptl_stacks_freeres): ...this.
6108 (__shm_directory_freeres): Declare.
6109 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
6110 (__nptl_unwind_freeres): ...this.
6111 * resolv/res-close.c: Add comment.
6112 * resolv/resolv_conf.c: Include libc-symbols.h.
6113 * string/strerror_l.c: Include libc-symbols.h.
6114 * sunrpc/rpc_thread.c: Include libc-symbols.h.
6115 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
6116 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
6117 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
6118
6119 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6120
6121 * stdlib/tst-strfmon_l.c: Add tests for long double.
6122
6123 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
6124
6125 [BZ #23208]
6126 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
6127 * localedata/locales/dsb_DE: New file.
6128
6129 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
6130
6131 [BZ #23140]
6132 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
6133 genitive case).
6134 (alt_mon): New entry, import from CLDR (nominative case).
6135
6136 2018-06-29 Sylvain Lesage <severo@rednegra.net>
6137
6138 [BZ #22996]
6139 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
6140
6141 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
6142
6143 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
6144 Use vector registers.
6145
6146 * sysdeps/aarch64/multiarch/memmove_falkor.S
6147 (__memcpy_falkor): Use vector registers.
6148
6149 2018-06-29 Martin Sebor <msebor@redhat.com>
6150
6151 * manual/stdio.texi (Customizing Printf): Mention interaction
6152 with GCC built-ins.
6153
6154 2018-06-29 Maciej W. Rozycki <macro@mips.com>
6155
6156 [BZ #23307]
6157 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
6158 `st_value' is 0 if `st_shndx' is SHN_ABS.
6159 * elf/tst-absolute-zero.c: New file.
6160 * elf/tst-absolute-zero-lib.c: New file.
6161 * elf/tst-absolute-zero-lib.lds: New file.
6162 * elf/Makefile (tests): Add `tst-absolute-zero'.
6163 (modules-names): Add `tst-absolute-zero-lib'.
6164 (LDLIBS-tst-absolute-zero-lib.so): New variable.
6165 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
6166 ($(objpfx)tst-absolute-zero: New dependency.
6167
6168 2018-06-29 Zack Weinberg <zackw@panix.com>
6169
6170 * configure.ac: New command-line option --disable-crypt.
6171 Force --disable-nss-crypt when --disable-crypt is given, with a
6172 warning if it was explicitly enabled.
6173 * configure: Regenerate.
6174 * config.make.in: New boolean substitution variable $(build-crypt).
6175 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
6176 when $(build-crypt).
6177 * manual/install.texi: Document --disable-crypt.
6178 * INSTALL: Regenerate.
6179
6180 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
6181 which is never set.
6182 * conform/Makefile: Only include libcrypt.a in
6183 linknamespace-libs-xsi and linknamespace-libs-XPG4
6184 when $(build-crypt).
6185 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
6186 USE_CRYPT to 1 when $(build-crypt).
6187 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
6188 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
6189 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
6190
6191 2018-06-29 Zack Weinberg <zackw@panix.com>
6192
6193 * crypt/crypt.h, posix/unistd.h: Update comments and
6194 prototypes for crypt and crypt_r.
6195
6196 * manual/crypt.texi (Cryptographic Functions): New initial
6197 exposition.
6198 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
6199 (Unpredictable Bytes): Improve initial exposition. Clarify error
6200 behavior of getentropy and getrandom.
6201 * manual/examples/genpass.c: Generate a salt using getentropy
6202 instead of the current time. Use hash $5$ (SHA-2-256).
6203 * manual/examples/testpass.c: Demonstrate validation against
6204 hashes generated with three different one-way functions.
6205
6206 * manual/intro.texi: crypt.texi does not need an overview
6207 anymore.
6208
6209 * manual/nss.texi, manual/memory.texi, manual/socket.texi
6210 * manual/terminal.texi: Consistently refer to "passphrases"
6211 * instead of "passwords", and to the "user database" instead
6212 * of the "password database".
6213 * manual/users.texi: Similarly. Add notes about how actual
6214 passphrase hashes are now stored in the shadow database.
6215 Remove 20-year-old junk todo note.
6216
6217 2018-06-29 Zack Weinberg <zackw@panix.com>
6218
6219 * manual/crypt.texi: Use a normal top-level @node declaration.
6220 Move most of the introductory text to the 'crypt' section.
6221 Move the example programs below the @deftypefun for 'crypt_r'.
6222 Move the 'getpass' section...
6223 * manual/terminal.texi: ...here.
6224
6225 2018-06-29 Zack Weinberg <zackw@panix.com>
6226 Florian Weimer <fweimer@redhat.com>
6227
6228 * posix/unistd.h: Do not declare encrypt.
6229 (_XOPEN_CRYPT): Remove macro definition.
6230 (crypt): Declare only for _USE_MISC.
6231 * stdlib/stdlib.h: Do not declare setkey.
6232 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
6233 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
6234
6235 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
6236 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
6237 into compat symbols. Don't define initial_perm if it's not
6238 going to be used.
6239 * crypt/cert.c: Link explicitly with the expected versions for
6240 setkey and encrypt. If they are not available at all, mark
6241 the test as unsupported.
6242
6243 * sunrpc/des_crypt.c: Unconditionally block linkage with
6244 cbc_crypt and ecb_crypt for new binaries.
6245 * sunrpc/des_soft.c: Unconditionally block linkage with
6246 des_setparity for new binaries.
6247
6248 * manual/crypt.texi: Remove the entire "DES Encryption"
6249 section. Also remove the paragraph talking about FIPS 140-2
6250 from the introduction.
6251 * manual/string.texi (strfry, memfrob): Revise. Recommend use
6252 of libgcrypt for "real" encryption, not DES.
6253 * manual/conf.texi (Constants for Sysconf): Mention that
6254 _XOPEN_CRYPT is no longer impelemented.
6255
6256 * conform/data/unistd.h-data: Remove crypt function declaration.
6257
6258 2018-06-29 Florian Weimer <fweimer@redhat.com>
6259
6260 [BZ #23351]
6261 * malloc/hooks.c: Update comments on restoring of dumped heaps.
6262 (disallow_malloc_check): Remove variable.
6263 (__malloc_check_init): Adjust.
6264 (malloc_set_state): Update comment.
6265 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
6266 declarations.
6267
6268 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
6269
6270 [BZ #23140]
6271 * localedata/locales/ast_ES (mon): Rename to...
6272 (alt_mon): This.
6273 (mon): Import from CLDR (genitive case).
6274
6275 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
6276 Jakub Sitnicki <jkbs@redhat.com>
6277
6278 [BZ #21812]
6279 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
6280 on NLM_F_DUMP_INTR.
6281
6282 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
6283
6284 * manual/llio.texi: Remove spurious space.
6285
6286 2018-06-28 Florian Weimer <fweimer@redhat.com>
6287
6288 [BZ #23349]
6289 * time/bits/types/struct_timespec.h: Change header inclusion guard to
6290 _STRUCT_TIMESPEC.
6291
6292 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6293
6294 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
6295 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
6296 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
6297 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
6298 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
6299 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
6300 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
6301
6302 2018-06-27 Maciej W. Rozycki <macro@mips.com>
6303
6304 [BZ #23266]
6305 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
6306 Copy and null-terminate entries that are not terminated, in
6307 addition to empty ones.
6308
6309 2018-06-27 Florian Weimer <fweimer@redhat.com>
6310
6311 [BZ #18023]
6312 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
6313 (extend_alloca_account): Remove.
6314 * manual/stdio.texi (Variable Arguments Output): Update comment.
6315
6316 2018-06-27 Joseph Myers <joseph@codesourcery.com>
6317
6318 * nptl/sockperf.c: Remove file.
6319
6320 2018-06-27 Florian Weimer <fweimer@redhat.com>
6321
6322 [BZ #18023]
6323 * elf/dl-deps.c (_dl_map_object_deps): Use struct
6324 scratch_buffer instead of extend_alloca.
6325
6326 2018-06-27 Florian Weimer <fweimer@redhat.com>
6327
6328 [BZ #18023]
6329 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
6330 scratch_buffer instead of extend_alloca. Update comments.
6331
6332 2018-06-27 Florian Weimer <fweimer@redhat.com>
6333
6334 [BZ #18023]
6335 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
6336 instead of extend_alloca.
6337
6338 2018-06-26 Joseph Myers <joseph@codesourcery.com>
6339
6340 [BZ #13888]
6341 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
6342 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
6343 /tmp.
6344 * scripts/test-installation.pl: Put temporary files in build
6345 directory, not /tmp.
6346 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
6347 (CFLAGS-bug4.c): Likewise.
6348 (CFLAGS-bug5.c): Likewise.
6349 (CFLAGS-test-fseek.c): Likewise.
6350 (CFLAGS-test-popen.c): Likewise.
6351 (CFLAGS-test_rdwr.c): Likewise.
6352 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
6353 /tmp.
6354 * stdio-common/bug4.c (main): Likewise.
6355 * stdio-common/bug5.c (main): Likewise.
6356 * stdio-common/test-fseek.c (TESTFILE): Likewise.
6357 * stdio-common/test-popen.c (do_test): Likewise.
6358 * stdio-common/test_rdwr.c (main): Likewise.
6359
6360 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
6361
6362 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
6363 (sem_open): Set sem.newsem.pad to zero for valgrind.
6364
6365 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6366
6367 [BZ #20251]
6368 * NEWS: Mention fcntl64 addition.
6369 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
6370 * login/utmp_file.c: Likewise.
6371 * sysdeps/posix/fdopendir.c: Likewise.
6372 * sysdeps/posix/opendir.c: Likewise.
6373 * sysdeps/unix/pt-fcntl.c: Likewise.
6374 * include/fcntl.h (__libc_fcntl64, __fcntl64,
6375 __fcntl64_nocancel_adjusted): New prototype.
6376 (__fcntl_nocancel_adjusted): Remove prototype.
6377 * io/Makefile (routines): Add fcntl64.
6378 (CFLAGS-fcntl64.c): New rule.
6379 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
6380 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
6381 * io/fcntl.h (fcntl64): Add prototype and redirect if
6382 __USE_FILE_OFFSET64 is defined.
6383 * io/fcntl64.c: New file.
6384 * manual/llio.text: Add a note for which commands fcntl acts a
6385 cancellation point.
6386 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
6387 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
6388 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
6389 New symbols.
6390 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
6391 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
6392 non-LFS case.
6393 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
6394 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
6395 to __fcntl64_nocancel.
6396 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
6397 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
6398 to __fcntl64_nocancel.
6399 * sysdeps/generic/not-cancel.h: Likewise.
6400 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
6401 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
6402 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
6403 (fcntl64): New symbol.
6404 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6405 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6406 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
6408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
6409 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6410 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6411 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6412 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6413 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6414 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
6415 fcntl64): Likewise.
6416 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6417 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
6418 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6419 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6420 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6421 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6422 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
6423 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6424 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6426 Likewise.
6427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6428 Likewise.
6429 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6430 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6431 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6432
6433 2018-06-26 Florian Weimer <fweimer@redhat.com>
6434
6435 Run thread shutdown functions in an explicit order.
6436 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
6437 definition.
6438 (__libc_thread_freeres): Call thread shutdown functions
6439 explicitly.
6440 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
6441 * include/string.h (__strerror_thread_freeres): Declare.
6442 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
6443 arena_thread_freeres. No longer static. Remove thread shutdown
6444 hook registration.
6445 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
6446 Declare.
6447 * resolv/res-close.c (__res_thread_freeres): Renamed from
6448 res_thread_freeres. No longer static. Remove thread shutdown
6449 hook registration.
6450 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
6451 * resolv/resolv_conf.c (freeres): Remove incorrect section
6452 attribute and use libc_freeres_fn.
6453 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
6454 strerror_thread_freeres. No longer static. Remove thread
6455 shutdown hook registration.
6456 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
6457 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
6458 shutdown hook registration.
6459 * Makerules (shlib.lds): Do not provide section boundary symbols
6460 for __libc_thread_subfreeres.
6461 * manual/memory.texi (Basic Allocation): Update comment.
6462
6463 2018-06-26 Florian Weimer <fweimer@redhat.com>
6464
6465 Remove always-defined _RPC_THREAD_SAFE_ macro.
6466 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
6467 Do not define _RPC_THREAD_SAFE_.
6468 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
6469 conditional.
6470 * sunrpc/clnt_perr.c: Likewise.
6471 * sunrpc/clnt_raw.c: Likewise.
6472 * sunrpc/clnt_simp.c: Likewise.
6473 * sunrpc/key_call.c: Likewise.
6474 * sunrpc/rpc_common.c: Likewise.
6475 * sunrpc/rpc_main.c: Likewise.
6476 * sunrpc/rpc_thread.c: Likewise.
6477 * sunrpc/svc.c: Likewise.
6478 * sunrpc/svc_raw.c: Likewise.
6479 * sunrpc/svc_simple.c: Likewise.
6480 * sumrpc/svcauth_des.c: Likewise.
6481
6482 2018-06-26 Florian Weimer <fweimer@redhat.com>
6483
6484 * libio/Makefile (tests-internal): Add tst-vtables,
6485 tst-vtables-interposed.
6486 * libio/tst-vtables.c: New file.
6487 * libio/tst-vtables-common.c: Likewise.
6488 * libio/tst-vtables-interposed.c: Likewise.
6489
6490 2018-06-26 Florian Weimer <fweimer@redhat.com>
6491
6492 * support/support_test_main.c (support_test_main): Only call
6493 setvbuf if not disables.
6494 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
6495 * support/test-driver.h (struct test_config): Add no_setvbuf member.
6496
6497 2018-06-26 Florian Weimer <fweimer@redhat.com>
6498
6499 [BZ #23313]
6500 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
6501
6502 2018-06-25 Florian Weimer <fweimer@redhat.com>
6503
6504 [BZ #18023]
6505 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
6506 Use struct scratch_buffer instead of extend_alloca.
6507
6508 2018-06-25 Florian Weimer <fweimer@redhat.com>
6509
6510 [BZ #18023]
6511 * nss/getent.c (initgroups_keys): Use dynarray instead of
6512 extend_alloca.
6513
6514 2018-06-25 Florian Weimer <fweimer@redhat.com>
6515
6516 [BZ #18023]
6517 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
6518 Use struct scratch_buffer instead of extend_alloca.
6519
6520 2018-06-25 Florian Weimer <fweimer@redhat.com>
6521
6522 [BZ #18023]
6523 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
6524 back to malloc directly, without stack allocations.
6525
6526 2018-06-25 Florian Weimer <fweimer@redhat.com>
6527
6528 [BZ #18023]
6529 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
6530 of extend_alloca.
6531
6532 2018-06-25 Florian Weimer <fweimer@redhat.com>
6533
6534 [BZ #18023]
6535 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
6536 of extend_alloca.
6537 * nscd/hstcache.c (addhstbyX): Likewise.
6538 * nscd/pwdcache.c (addpwbyX): Likewise.
6539 * nscd/servicescache.c (addservbyX): Likewise.
6540
6541 2018-06-25 Florian Weimer <fweimer@redhat.com>
6542
6543 [BZ #18023]
6544 * nscd/connections.c (read_cmdline): New function.
6545 (restart): Use it. Update comment.
6546
6547 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
6548
6549 [BZ #23140]
6550 * localedata/locales/csb_PL (mon): Rename to...
6551 (alt_mon): This.
6552 (abmon): Rename to...
6553 (ab_alt_mon): This.
6554 (mon): Add with proper genitive forms, copy from Wikipedia.
6555 (abmon): Likewise.
6556
6557 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
6558
6559 [BZ #19485]
6560 * localedata/locales/csb_PL (mon): Fix typos:
6561 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
6562 (yesstr): Add, value is "jo".
6563 (nostr): Add, value is "nié".
6564
6565 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6566
6567 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
6568 all log1p and significand functions on m680x0.
6569 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
6570 of s_significand.c..
6571 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
6572 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
6573 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
6574 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
6575 s_log1p.c and include it..
6576
6577 2018-06-21 Vincent Chen <vincentc@andestech.com>
6578
6579 * elf/elf.h (R_NDS32_NONE): New define.
6580 (R_NDS32_32_RELA): Likewise.
6581 (R_NDS32_COPY): Likewise.
6582 (R_NDS32_GLOB_DAT): Likewise.
6583 (R_NDS32_JUMP_SLOT): Likewise.
6584 (R_NDS32_RELATIVE): Likewise.
6585 (R_NDS32_TLS_TPOFF): Likewise.
6586 (R_NDS32_TLS_DESC): Likewise.
6587
6588 2018-06-21 Mark Wielaard <mark@klomp.org>
6589
6590 * elf/elf.h (R_BPF_MAP_FD): Removed.
6591 (R_BPF_64_64, R_BPF_64_32): New.
6592
6593 2018-06-21 Florian Weimer <fweimer@redhat.com>
6594
6595 [BZ #23253]
6596 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
6597 Renamed from libc_feholdsetround_ctx.
6598 (default_libc_feresetround_ctx): Renamed from
6599 libc_feresetround_ctx.
6600 (default_libc_feholdsetround_noex_ctx): Renamed from
6601 libc_feholdsetround_noex_ctx.
6602 (default_libc_feresetround_noex_ctx): Renamed from
6603 libc_feresetround_noex_ctx.
6604 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
6605 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
6606 forwardning to the old implementations under the new names.
6607 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
6608 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
6609 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
6610 (libc_feresetround_ctx): Forward to default implements for i386
6611 and MATH_SET_BOTH_ROUNDING_MODES.
6612 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
6613 Add -DMATH_SET_BOTH_ROUNDING_MODES.
6614
6615 2018-06-20 Joseph Myers <joseph@codesourcery.com>
6616
6617 * string/tst-cmp.c: Include <libc-diag.h>.
6618 (strncmp_max): Disable -Wstringop-overflow= around call to
6619 strncmp.
6620 (strncasecmp_max): Disable -Wstringop-overflow= around call to
6621 strncasecmp.
6622
6623 * string/bug-strpbrk1.c: Include <libc-diag.h>.
6624 (main): Disable -Wunused-value around call to strpbrk.
6625 * string/bug-strspn1.c: Include <libc-diag.h>.
6626 (main): Disable -Wunused-value around call to strspn.
6627
6628 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6629 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6630
6631 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
6632 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
6633
6634 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6635
6636 * math/Makefile (libm-calls): Move s_significandF to...
6637 (gen-libm-calls): ... here.
6638 * math/s_significand_template.c: New file.
6639 * math/s_significand.c: Removed.
6640 * math/s_significandf.c: Removed.
6641 * math/s_significandl.c: Removed.
6642 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
6643 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
6644
6645 * math/e_exp2_template.c (declare_mgen_finite_alias,
6646 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
6647 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
6648 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
6649
6650 2018-06-20 Florian Weimer <fweimer@redhat.com>
6651
6652 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
6653
6654 2018-06-19 Joseph Myers <joseph@codesourcery.com>
6655
6656 [BZ #23280]
6657 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
6658 floating-point number to strtod functions rather than possibly
6659 negating result of those functions.
6660 * stdio-common/tst-scanf-round.c: New file.
6661 * stdio-common/Makefile (tests): Add tst-scanf-round.
6662 ($(objpfx)tst-scanf-round): Depend on $(libm).
6663
6664 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
6665
6666 * sysdeps/mach/hurd/localplt.data: Move to...
6667 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
6668 R_386_GLOB_DAT like on Linux i386.
6669
6670 2018-06-18 Joseph Myers <joseph@codesourcery.com>
6671
6672 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
6673 (SHM_STAT_ANY): New macro.
6674 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
6675 (SHM_STAT_ANY): Likewise.
6676 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
6677 (SHM_STAT_ANY): Likewise.
6678 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
6679 (SHM_STAT_ANY): Likewise.
6680 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
6681 (SHM_STAT_ANY): Likewise.
6682 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
6683 (SHM_STAT_ANY): Likewise.
6684 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
6685 (SHM_STAT_ANY): Likewise.
6686 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
6687 (SHM_STAT_ANY): Likewise.
6688 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
6689 (SHM_STAT_ANY): Likewise.
6690 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
6691 (SHM_STAT_ANY): Likewise.
6692 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
6693 (SHM_STAT_ANY): Likewise.
6694 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
6695 (SHM_STAT_ANY): Likewise.
6696
6697 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
6698 (SEM_STAT_ANY): New macro.
6699 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
6700 (SEM_STAT_ANY): Likewise.
6701 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
6702 (SEM_STAT_ANY): Likewise.
6703 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
6704 (SEM_STAT_ANY): Likewise.
6705 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
6706 (SEM_STAT_ANY): Likewise.
6707 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
6708 (SEM_STAT_ANY): Likewise.
6709 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
6710 (SEM_STAT_ANY): Likewise.
6711 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
6712 (SEM_STAT_ANY): Likewise.
6713 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
6714 (SEM_STAT_ANY): Likewise.
6715 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
6716 (SEM_STAT_ANY): Likewise.
6717
6718 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
6719 (MSG_STAT_ANY): New macro.
6720 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
6721 (MSG_STAT_ANY): Likewise.
6722 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
6723 (MSG_STAT_ANY): Likewise.
6724 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
6725 (MSG_STAT_ANY): Likewise.
6726 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
6727 (MSG_STAT_ANY): Likewise.
6728 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
6729 (MSG_STAT_ANY): Likewise.
6730 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
6731 (MSG_STAT_ANY): Likewise.
6732 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
6733 (MSG_STAT_ANY): Likewise.
6734 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
6735 (MSG_STAT_ANY): Likewise.
6736 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
6737 (MSG_STAT_ANY): Likewise.
6738
6739 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
6740 (MAP_TYPE): Change value to 0x2b.
6741
6742 2018-06-18 Florian Weimer <fweimer@redhat.com>
6743
6744 [BZ #15722]
6745 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
6746 socket with SOCK_CLOEXEC.
6747
6748 2018-06-18 Joseph Myers <joseph@codesourcery.com>
6749
6750 [BZ #23303]
6751 * sysdeps/powerpc/powerpc64/le/Makefile
6752 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
6753 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
6754 (gnulib-tests): Also add $(f128-loader-link) for
6755 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
6756
6757 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
6758
6759 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
6760 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
6761 of sendfile.
6762 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
6763 (sendfile64): New strong alias.
6764 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
6765 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
6766 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
6767 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
6768 attribute.
6769 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
6770 ___pthread_get_cleanup_stack.
6771 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
6772 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
6773 * mach/shortcut.awk: Make syscall stubs include
6774 <mach-shortcuts-hidden.h> and add hidden definition.
6775 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
6776 (__mach_msg): Add hidden prototype.
6777 * mach/msg.c: Include <mach.h>.
6778 (__mach_msg): Add hidden definition.
6779 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
6780 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
6781 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
6782 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
6783 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
6784 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
6785 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
6786 prototype and definition.
6787 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
6788 hidden target for _hurd_self_sigstate.
6789
6790 2018-06-15 Joseph Myers <joseph@codesourcery.com>
6791
6792 [BZ #23007]
6793 * stdlib/tst-strtod-nan-sign-main.c: New file.
6794 * stdlib/tst-strtod-nan-sign.c: Likewise.
6795 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
6796 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
6797 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
6798 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
6799 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
6800
6801 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
6802
6803 [BZ #23007]
6804 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
6805 appropriate sign.
6806
6807 2018-06-14 Florian Weimer <fweimer@redhat.com>
6808
6809 [BZ #23290]
6810 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
6811 that the result stays within the ISO-8859-1 range.
6812 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
6813 characters are defined in IBM273.
6814
6815 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
6816
6817 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
6818 __mach_task_self): Remove attribute_hidden.
6819
6820 2018-06-14 Joseph Myers <joseph@codesourcery.com>
6821
6822 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
6823 ignore -Wrestrict for one test.
6824
6825 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
6826 Szabolcs Nagy <szabolcs.nagy@arm.com>
6827
6828 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
6829
6830 2018-06-14 Florian Weimer <fweimer@redhat.com>
6831
6832 * scripts/update-abilist.sh: Accept empty list of files to patch.
6833
6834 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
6835
6836 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
6837 test-xfail-check-abi-libmachuser): Add.
6838 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
6839 __libc_read and __libc_write to __read and __write.
6840 * sysdeps/hurd/include/hurd/port.h: New file.
6841 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
6842 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
6843 __thread_switch, __evc_wait): Move declarations to...
6844 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
6845 attribute_hidden.
6846 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
6847 use PLT to call _hurd_self_sigstate.
6848
6849 2018-06-13 Joseph Myers <joseph@codesourcery.com>
6850
6851 [BZ #23279]
6852 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
6853 MAX_EXP as overflowing.
6854 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
6855 overflow flag.
6856 (round_str): Output also whether result overflows in each rounding
6857 mode.
6858 * stdlib/tst-strtod-round-data: Add more tests.
6859 * stdlib/tst-strtod-round-data.h: Regenerated.
6860 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
6861 (TEST): Handle extra arguments for overflow flags.
6862 (struct test_overflow): New type.
6863 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
6864 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
6865 (test_in_one_mode): Take argument with overflow information.
6866 (do_test): Update calls to test_in_one_mode.
6867
6868 2018-06-12 Carlos O'Donell <carlos@redhat.com>
6869
6870 * elf/dl-load (_dl_dst_substitute): Correct comment.
6871 (_dl_dst_count): Likewise.
6872
6873 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
6874 lll_futex_timed_wait.
6875
6876 2018-06-12 Joseph Myers <joseph@codesourcery.com>
6877
6878 [BZ #23277]
6879 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
6880 attribute.
6881 * math/test-nan-const.c: New file.
6882 * math/Makefile (tests): Add test-nan-const.
6883 (CFLAGS-test-nan-const.c): New variable.
6884
6885 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
6886
6887 * benchtests/scripts/compare_strings.py (process_results): Add
6888 funcs argument. Compare only functions which are selected.
6889 (main): Check if base function is among selected functions.
6890 Pass selected functions to process_results.
6891 (__main__): Add -f/--functions argument.
6892
6893 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
6894 Hongbo Zhang <hongbo.zhang@linaro.org>
6895
6896 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
6897 __memcpy_falkor for phecda core.
6898 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
6899 __memmove_falkor for phecda core.
6900 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
6901 __memset_falkor for phecda core.
6902 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
6903 for phecda core.
6904 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
6905 macro to identify phecda core.
6906
6907 2018-06-12 Carlos O'Donell <carlos@redhat.com>
6908 Andreas Schwab <schwab@suse.de>
6909 Dmitry V. Levin <ldv@altlinux.org>
6910 Florian Weimer <fweimer@redhat.com>
6911
6912 [BZ #23102]
6913 [BZ #21942]
6914 [BZ #18018]
6915 [BZ #23259]
6916 CVE-2011-0536
6917 * elf/dl-dst.h: Remove DL_DST_COUNT.
6918 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
6919 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
6920 (is_dst): Comment. Support ELF gABI.
6921 (_dl_dst_count): Comment. Simplify and count DSTs.
6922 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
6923 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
6924 locals.
6925
6926 2018-06-12 Zack Weinberg <zackw@panix.com>
6927
6928 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
6929 * sysdeps/unix/sysv/linux/dl-sysdep.c
6930 Include not-cancel.h. Use __close_nocancel instead of __close,
6931 __open64_nocancel instead of __open, __read_nocancel instead of
6932 __libc_read, and __write_nocancel instead of __libc_write.
6933
6934 * csu/check_fds.c (check_one_fd)
6935 * sysdeps/posix/fdopendir.c (__fdopendir)
6936 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
6937 instead of __fcntl and/or __libc_fcntl.
6938
6939 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
6940 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
6941 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
6942 Use __open64_nocancel instead of __open_nocancel.
6943
6944 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
6945 hidden_proto declarations to the end and issue them if either
6946 IS_IN(libc) or IS_IN(rtld).
6947 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
6948 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
6949 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
6950 read_nocancel, waitpid_nocancel, write_nocancel.
6951
6952 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
6953 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
6954 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
6955
6956 * nptl/pt-fcntl.c: New file.
6957 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
6958 (libpthread-routines): Add pt-fcntl.
6959 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
6960 (__libc_fcntl): Remove attribute_hidden.
6961 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
6962 __fcntl_nocancel_adjusted, not fcntl_common.
6963 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
6964 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
6965 to fcntl_nocancel.c.
6966 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
6967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
6968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
6969 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
6970
6971 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
6972 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
6973 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
6974 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
6975 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
6976 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
6977 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
6978 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
6979 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
6980 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
6981 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
6982 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
6983 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
6984 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
6985 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
6986 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
6987 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
6988 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
6989 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
6990 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
6991
6992 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
6993 libpthread-routines.
6994 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
6995 defines nothing.
6996
6997 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
6998 __libc_read, and __write instead of __libc_write. Define
6999 __open64 in addition to __open.
7000
7001 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
7002
7003 [BZ #23250]
7004 [BZ #10686]
7005 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
7006 to _private_tm[3] and add __glibc_reserved2.
7007 Add _Static_assert of offset of __private_ss == 0x30.
7008 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
7009 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
7010
7011 2018-06-12 Florian Weimer <fweimer@redhat.com>
7012
7013 x86: Make strncmp usable from rtld.
7014 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
7015 __strncmp_ia32 if in libc (and not in rtld).
7016 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
7017 strncmp if not in libc (and not to __strncmp_sse2).
7018
7019 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
7020
7021 [BZ #23140]
7022 * localedata/locales/gd_GB (mon): Rename to...
7023 (alt_mon): This.
7024 (mon): Import from CLDR (genitive case).
7025 * localedata/locales/hsb_DE (mon): Rename to...
7026 (alt_mon): This.
7027 (mon): Import from CLDR (genitive case).
7028 * localedata/locales/wa_BE (mon): Rename to...
7029 (alt_mon): This.
7030 (mon): Add, fill with the proper genitive forms, but CLDR data
7031 is incomplete; completed according to the comments in this file.
7032 (d_t_fmt): Do not use "di" before the month name, no longer needed.
7033
7034 * localedata/locales/wa_BE (country_name): Reword
7035 "Beljike" -> "Beldjike".
7036
7037 2018-06-11 Joseph Myers <joseph@codesourcery.com>
7038
7039 [BZ #23272]
7040 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
7041 cases of non-finite arguments.
7042 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7043
7044 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
7045
7046 [BZ #23174]
7047 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
7048
7049 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7050
7051 [BZ #23264]
7052 * include/unistd.h (__execvpex): New prototype.
7053 * posix/Makefile (tests): Add tst-spawn4.
7054 (tests-internal): Add tst-spawn4-compat.
7055 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
7056 * posix/tst-spawn4-compat.c: New file.
7057 * posix/tst-spawn4.c: Likewise.
7058 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
7059 binaries as shell scripts.
7060 * sysdeps/posix/spawni.c (__spawni): Likewise.
7061
7062 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
7063
7064 [BZ #23145]
7065 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
7066 ($(all-built-dso:=.dynsym): New target.
7067 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
7068 ($(objpfx)check-initfini.out): New target.
7069 (generated): Add check-initfini.out.
7070 * scripts/check-initfini.awk: New file.
7071 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
7072 (_fini): Likewise.
7073 * sysdeps/alpha/crti.S (_init): Mark as hidden.
7074 (_fini): Likewise.
7075 * sysdeps/arm/crti.S (_init): Mark as hidden.
7076 (_fini): Likewise.
7077 * sysdeps/hppa/crti.S (_init): Mark as hidden.
7078 (_fini): Likewise.
7079 * sysdeps/i386/crti.S (_init): Mark as hidden.
7080 (_fini): Likewise.
7081 * sysdeps/ia64/crti.S (_init): Mark as hidden.
7082 (_fini): Likewise.
7083 * sysdeps/m68k/crti.S (_init): Mark as hidden.
7084 (_fini): Likewise.
7085 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
7086 (_fini): Likewise.
7087 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
7088 (_fini): Likewise.
7089 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
7090 (_fini): Likewise.
7091 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
7092 (_fini): Likewise.
7093 * sysdeps/nios2/crti.S (_init): Mark as hidden.
7094 (_fini): Likewise.
7095 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
7096 (_fini): Likewise.
7097 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
7098 (_fini): Likewise.
7099 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
7100 (_fini): Likewise.
7101 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
7102 (_fini): Likewise.
7103 * sysdeps/sh/crti.S (_init): Mark as hidden.
7104 (_fini): Likewise.
7105 * sysdeps/sparc/crti.S (_init): Mark as hidden.
7106 (_fini): Likewise.
7107 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
7108 (_fini): Likewise.
7109
7110 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7111
7112 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
7113 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
7114 and TF redirection to KFtype and KF only when the default
7115 long double type is not the IEEE 128-bit floating point type.
7116
7117 2018-06-05 Joseph Myers <joseph@codesourcery.com>
7118
7119 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
7120 macro.
7121 (HWCAP_USCAT): Likewise.
7122 (HWCAP_ILRCPC): Likewise.
7123 (HWCAP_FLAGM): Likewise.
7124 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7125 Increase to 28.
7126 (_dl_aarch64_cap_flags): Add new flag names.
7127
7128 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
7129 (MAP_FIXED_NOREPLACE): New macro.
7130 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
7131 (MAP_FIXED_NOREPLACE): Likewise.
7132 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
7133 (MAP_FIXED_NOREPLACE): Likewise.
7134 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7135 (MAP_FIXED_NOREPLACE): Likewise.
7136 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
7137 (MAP_FIXED_NOREPLACE): Likewise.
7138 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
7139 (MAP_FIXED_NOREPLACE): Likewise.
7140 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
7141 (MAP_FIXED_NOREPLACE): Likewise.
7142 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
7143 (MAP_FIXED_NOREPLACE): Likewise.
7144 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
7145 (MAP_FIXED_NOREPLACE): Likewise.
7146 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
7147 (MAP_FIXED_NOREPLACE): Likewise.
7148 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
7149 (MAP_FIXED_NOREPLACE): Likewise.
7150 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
7151 (MAP_FIXED_NOREPLACE): Likewise.
7152 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
7153 (MAP_FIXED_NOREPLACE): Likewise.
7154 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
7155 (MAP_FIXED_NOREPLACE): Likewise.
7156 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
7157 (MAP_FIXED_NOREPLACE): Likewise.
7158
7159 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7160 version to 4.17.
7161
7162 2018-06-04 Joseph Myers <joseph@codesourcery.com>
7163
7164 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7165 version to 4.17
7166
7167 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7168
7169 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
7170 int.
7171 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
7172
7173 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7174
7175 * benchtests/scripts/compare_string.py: (process_results) Catch
7176 exception in non-existent base_func and catch exception in
7177 non-existent attribute.
7178 (parse_file) Catch exception if input file does not exist.
7179
7180 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7181
7182 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
7183 options to avoid diff calculation and omit header, respectively.
7184 (main): process --no-diff and --no-header
7185
7186 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7187 H.J. Lu <hongjiu.lu@intel.com>
7188
7189 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7190 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
7191 wcsncmp-sse2.
7192 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7193 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
7194 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
7195 and __wcsncmp_sse2.
7196 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
7197 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7198 AVX unaligned load is fast and vzeroupper is preferred.
7199 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
7200 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
7201 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
7202 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
7203 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
7204 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
7205 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
7206 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
7207 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
7208 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
7209 is undefined.
7210
7211 2018-06-01 Florian Weimer <fweimer@redhat.com>
7212
7213 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
7214 configuring with --disable-multi-arch, building with
7215 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
7216 Haswell-era CPU.
7217
7218 2018-06-01 Florian Weimer <fweimer@redhat.com>
7219
7220 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
7221 results from building with “-march=x86-64 -mtune=generic
7222 -mfpmath=sse” and running on a Haswell-era CPU.
7223
7224 2018-06-01 Joseph Myers <joseph@codesourcery.com>
7225
7226 [BZ #18473]
7227 * soft-fp/sqrttf2.c: Remove file.
7228 * soft-fp/sqrtdf2.c: Move to ....
7229 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
7230 <shlib-compat.h>.
7231 (__sqrtdf2): Make conditional on
7232 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
7233 symbol.
7234 * soft-fp/sqrtsf2.c: Move to ....
7235 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
7236 <shlib-compat.h>.
7237 (__sqrtsf2): Make conditional on
7238 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
7239 symbol.
7240 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
7241 (gcc-double-routines): Remove sqrtdf2.
7242 (gcc-quad-routines): Remove sqrttf2.
7243 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
7244 Do not filter out sqrtsf2 and sqrtdf2.
7245 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
7246 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
7247
7248 2018-06-01 Florian Weimer <fweimer@redhat.com>
7249
7250 * sysdeps/generic/libcidn.abilist: Remove file.
7251
7252 2018-06-01 Florian Weimer <fweimer@redhat.com>
7253
7254 [BZ #23236]
7255 * libio/strfile.h (struct _IO_str_fields): Rename members to
7256 discourage their use and add comment.
7257 (_IO_STR_DYNAMIC): Remove unused macro.
7258 * libio/strops.c (_IO_str_init_static_internal): Do not use
7259 callback pointers. Call malloc and free.
7260 (_IO_str_overflow): Do not use callback pointers. Call malloc
7261 and free.
7262 (enlarge_userbuf): Likewise.
7263 (_IO_str_finish): Call free.
7264 * libio/wstrops.c (_IO_wstr_init_static): Initialize
7265 _allocate_buffer_unused.
7266 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
7267 and free.
7268 (enlarge_userbuf): Likewise.
7269 (_IO_wstr_finish): Call free.
7270 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
7271 _allocate_buffer_unused, _free_buffer_unused.
7272 * libio/memstream.c (__open_memstream): Likewise.
7273 * libio/vasprintf.c (_IO_vasprintf): Likewise.
7274 * libio/wmemstream.c (open_wmemstream): Likewise.
7275
7276 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
7277
7278 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
7279 AMD Ryzen 7 1800X.
7280
7281 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7282
7283 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
7284 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
7285 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
7286 New file.
7287 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
7288 Likewise.
7289 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
7290
7291 2018-05-29 Florian Weimer <fweimer@redhat.com>
7292
7293 * support/Makefile (libsupport-routines): Add
7294 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
7295 xpthread_barrierattr_setpshared.
7296 * support/xpthread_barrierattr_destroy.c: New file.
7297 * support/xpthread_barrierattr_init.c: Likewise.
7298 * support/xpthread_barrierattr_setpshared.c: Likewise.
7299
7300 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
7301
7302 [BZ #23206]
7303 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
7304 _r_debug and update DT_DEBUG for debugger.
7305
7306 2018-05-29 Florian Weimer <fweimer@redhat.com>
7307
7308 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
7309 (tst-strtod5i.out): Likewise.
7310
7311 2018-05-25 Joseph Myers <joseph@codesourcery.com>
7312
7313 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
7314 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
7315 (sparc64-quad-routines): New variable. Moved from ....
7316 [$(subdir) = soft-fp] (sysdep_routines): Add
7317 $(sparc64-quad-routines). Moved from ....
7318 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
7319 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
7320 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
7321 moved from ....
7322 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
7323 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
7324 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
7325 * sysdeps/sparc/sparc64/qp_add.c: ... here.
7326 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
7327 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
7328 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
7329 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
7330 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
7331 * sysdeps/sparc/sparc64/qp_div.c: ... here.
7332 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
7333 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
7334 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
7335 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
7336 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
7337 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
7338 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
7339 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
7340 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
7341 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
7342 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
7343 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
7344 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
7345 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
7346 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
7347 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
7348 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
7349 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
7350 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
7351 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
7352 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
7353 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
7354 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
7355 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
7356 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
7357 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
7358 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
7359 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
7360 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
7361 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
7362 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
7363 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
7364 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
7365 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
7366 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
7367 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
7368 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
7369 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
7370 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
7371 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
7372 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
7373 * sysdeps/sparc/sparc64/qp_util.c: ... here.
7374 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
7375 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
7376 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
7377 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
7378 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
7379 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
7380
7381 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
7382 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
7383 (sparc32-quad-routines): New variable. Moved from ....
7384 [$(subdir) = soft-fp] (sysdep_routines): Add
7385 $(sparc32-quad-routines). Moved from ....
7386 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
7387 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
7388 moved from ....
7389 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
7390 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
7391 * sysdeps/sparc/sparc32/q_add.c: ... here.
7392 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
7393 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
7394 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
7395 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
7396 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
7397 * sysdeps/sparc/sparc32/q_div.c: ... here.
7398 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
7399 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
7400 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
7401 * sysdeps/sparc/sparc32/q_feq.c: ... here.
7402 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
7403 * sysdeps/sparc/sparc32/q_fge.c: ... here.
7404 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
7405 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
7406 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
7407 * sysdeps/sparc/sparc32/q_fle.c: ... here.
7408 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
7409 * sysdeps/sparc/sparc32/q_flt.c: ... here.
7410 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
7411 * sysdeps/sparc/sparc32/q_fne.c: ... here.
7412 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
7413 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
7414 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
7415 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
7416 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
7417 * sysdeps/sparc/sparc32/q_mul.c: ... here.
7418 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
7419 * sysdeps/sparc/sparc32/q_neg.c: ... here.
7420 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
7421 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
7422 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
7423 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
7424 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
7425 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
7426 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
7427 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
7428 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
7429 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
7430 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
7431 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
7432 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
7433 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
7434 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
7435 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
7436 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
7437 * sysdeps/sparc/sparc32/q_sub.c: ... here.
7438 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
7439 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
7440 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
7441 * sysdeps/sparc/sparc32/q_util.c: ... here.
7442 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
7443 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
7444 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
7445 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
7446
7447 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7448 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7449
7450 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
7451 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
7452 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
7453 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
7454
7455 2018-05-24 Joseph Myers <joseph@codesourcery.com>
7456
7457 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
7458 powerpc/soft-fp.
7459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
7460 Likewise.
7461 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
7462 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
7463
7464 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7465
7466 [BZ #23171]
7467 * math/math.h [C++] (iseqsig): Fix parameter type for the long
7468 double version.
7469
7470 2018-05-23 Joseph Myers <joseph@codesourcery.com>
7471
7472 * sysdeps/sh/Implies: Remove sh/soft-fp.
7473 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
7474 * sysdeps/sh/sfp-machine.h: ... here.
7475
7476 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
7477
7478 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7479 (__mempcpy_erms): Skip zero length.
7480 (__memmove_erms): Likewise.
7481 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
7482 (__memset_erms): Likewise.
7483
7484 2018-05-23 Joseph Myers <joseph@codesourcery.com>
7485
7486 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
7487 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
7488 Add functions moved from ....
7489 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
7490 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
7491 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
7492 from ....
7493 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
7494 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
7495 * sysdeps/alpha/e_sqrtl.c: ... here.
7496 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
7497 * sysdeps/alpha/local-soft-fp.h: ... here.
7498 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
7499 * sysdeps/alpha/ots_add.c: ... here.
7500 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
7501 * sysdeps/alpha/ots_cmp.c: ... here.
7502 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
7503 * sysdeps/alpha/ots_cmpe.c: ... here.
7504 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
7505 * sysdeps/alpha/ots_cvtqux.c: ... here.
7506 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
7507 * sysdeps/alpha/ots_cvtqx.c: ... here.
7508 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
7509 * sysdeps/alpha/ots_cvttx.c: ... here.
7510 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
7511 * sysdeps/alpha/ots_cvtxq.c: ... here.
7512 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
7513 * sysdeps/alpha/ots_cvtxt.c: ... here.
7514 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
7515 * sysdeps/alpha/ots_div.c: ... here.
7516 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
7517 * sysdeps/alpha/ots_mul.c: ... here.
7518 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
7519 * sysdeps/alpha/ots_nintxq.c: ... here.
7520 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
7521 * sysdeps/alpha/ots_sub.c: ... here.
7522 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
7523 * sysdeps/alpha/sfp-machine.h: ... here.
7524
7525 2018-05-23 Florian Weimer <fweimer@redhat.com>
7526
7527 [BZ #19728]
7528 [BZ #19729]
7529 [BZ #22247]
7530 CVE-2016-6261
7531 CVE-2016-6263
7532 CVE-2017-14062
7533 Switch to extern IDNA implementation (libidn2).
7534 * libidn: Remove subdirectory.
7535 * LICENSES: Do not mention licensing conditions for the removed
7536 libidn code.
7537 * config.h.in (HAVE_LIBIDN): Remove.
7538 * include/dlfcn.h (__libc_dlopen): Update comment.
7539 * include/idna.h: Remove file.
7540 * inet/Makefile (routines): Add idna.
7541 (tests-static, tests-internal): Add tst-idna_name_classify.
7542 (LOCALES): Generate locales for tests.
7543 (tst-idna_name_classify.out): Depend on generated locales.
7544 * inet/idna_name_classify.c: New file.
7545 * inet/tst-idna_name_classify.c: Likewise.
7546 * inet/net-internal.h (__idna_to_dns_encoding)
7547 (__idna_from_dns_encoding): Declare.
7548 * inet/net-internal.h (enum idna_name_classification): Define.
7549 (__idna_name_classify): Declare.
7550 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
7551 __idna_from_dns_encoding.
7552 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
7553 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
7554 name as a fallback in case of encoding errors.
7555 (getnameinfo): Use DEPRECATED_NI_IDN.
7556 * inet/idna.c: New file.
7557 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
7558 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
7559 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
7560 (modules-names): Add tst-no-libidn2.
7561 (extra-test-objs): Add tst-no-libidn2.os.
7562 (LDFLAGS-tst-no-libidn2.so): Set soname.
7563 (LOCALES): Set, and generate locales.
7564 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
7565 (tst-resolv-ai_idn-latin1): Likewise.
7566 (tst-resolv-ai_idn-nolibidn2): Likewise.
7567 (tst-resolv-ai_idn.out): Depend on locales.
7568 (tst-resolv-ai_idn-latin1.out): Depend on locales.
7569 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
7570 tst-no-libidn2.so.
7571 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
7572 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
7573 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
7574 * resolv/tst-resolv-ai_idn.c: New file.
7575 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
7576 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
7577 * resolv/tst-no-libidn2.c: Likewise.
7578 * support/support_format_addrinfo.c (format_ai_flags): Do not
7579 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
7580 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
7581 (gaih_inet): Call __idna_to_dns_encoding and
7582 __idna_from_dns_encoding, and use the original (punycode) name if
7583 __idna_from_dns_encoding fails due to an encoding error.
7584 (getaddrinfo): Use DEPRECATED_AI_IDN.
7585 * sysdeps/unix/inet/Subdirs (libidn): Remove.
7586 * sysdeps/unix/inet/configure: Remove file.
7587 * sysdeps/unix/inet/configure.ac: Likewise.
7588
7589 2018-05-23 Florian Weimer <fweimer@redhat.com>
7590
7591 Implement allocate_once.
7592 * include/allocate_once.h: New file.
7593 * misc/allocate_once.c: Likewise.
7594 * misc/tst-allocate_once.c: Likewise.
7595 * misc/Makefile (routines): Add allocate_once.
7596 (tests-internal): Add tst-allocate_once.
7597 (generated): Add tst-allocate_once.mtrace,
7598 tst-allocate_once-mem.out.
7599 (tests-special): Add tst-allocate_once-mem.out.
7600 (tst-allocate_once-ENV): Set MALLOC_TRACE.
7601 (tst-allocate_once-mem.out): Call mtrace.
7602 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
7603
7604 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
7605
7606 [BZ #23196]
7607 * string/test-memcpy.c (do_test1): New function.
7608 (test_main): Call it.
7609
7610 2018-05-23 Andreas Schwab <schwab@suse.de>
7611
7612 [BZ #23196]
7613 CVE-2018-11237
7614 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
7615 (L(preloop_large)): Save initial destination pointer in %r11 and
7616 use it instead of %rax after the loop.
7617 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
7618
7619 2018-05-22 Joseph Myers <joseph@codesourcery.com>
7620
7621 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
7622 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
7623 -I../soft-fp. Moved from ....
7624 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
7625 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
7626 * sysdeps/aarch64/e_sqrtl.c: ... here.
7627 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
7628 * sysdeps/aarch64/sfp-machine.h: ... here.
7629
7630 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
7631 -Wmaybe-uninitialized around access to fq[0].
7632 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
7633 Likewise.
7634
7635 [BZ #18471]
7636 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
7637 aliases for non-libc case of versioned symbols.
7638 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
7639 (llseek): Define as compat symbol if
7640 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
7641 with link warning.
7642 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
7643 Make into a compat symbol, disabled for minimum symbol version
7644 GLIBC_2.28 and later.
7645 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
7646
7647 2018-05-22 Florian Weimer <fweimer@redhat.com>
7648
7649 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
7650 not add -mpreferred-stack-boundary=4.
7651 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
7652 (stack-align-test-flags): Likewise.
7653 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
7654 Likewise.
7655 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
7656 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
7657 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
7658 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
7659 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
7660 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
7661 (CFLAGS-tst-align2.c): Likewise.
7662
7663 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
7664
7665 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
7666 (index_arch_Prefer_FSRM): Likewise.
7667 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
7668 Also check Prefer_FSRM.
7669 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
7670 Also return OPTIMIZE (erms) for Prefer_FSRM.
7671
7672 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
7673
7674 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
7675 (index_cpu_FSRM): Likewise.
7676 (reg_FSRM): Likewise.
7677
7678 2018-05-18 Joseph Myers <joseph@codesourcery.com>
7679
7680 * math/gen-tgmath-tests.py: Import sys.
7681 (Tests.__init__): Initialize macros_seen.
7682 (Tests.add_tests): Add macro to macros_seen. Only generate tests
7683 if requested to do so for this macro.
7684 (Tests.add_all_tests): Take argument for macro for which to
7685 generate tests.
7686 (Tests.check_macro_list): New function.
7687 (main): Handle check-list argument and argument specifying macro
7688 for which to generate tests.
7689 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
7690 [PYTHON] (tgmath3-macro-tests): Likewise.
7691 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
7692 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
7693 not test-tgmath3.c.
7694 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
7695 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
7696 to CFLAGS.
7697 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
7698 [PYTHON] ($(foreach
7699 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
7700 rule.
7701 [PYTHON] (tests-special): Add
7702 $(objpfx)test-tgmath3-macro-list.out.
7703 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
7704
7705 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
7706 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
7707 later.
7708
7709 [BZ #22639]
7710 * time/tzset.c (SECSPERDAY): Cast to time_t.
7711 * time/tst-y2039.c: New file.
7712 * time/Makefile (tests): Add tst-y2039.
7713
7714 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7715
7716 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
7717 (PREFETCH_ONE_SET): Remove duplicate line.
7718
7719 2018-05-17 Florian Weimer <fweimer@redhat.com>
7720
7721 * sysdeps/generic/math-type-macros-double.h: Include
7722 <math-nan-payload-double.h> after <libm-alias-double.h>.
7723 * sysdeps/generic/math-type-macros-float.h: Include
7724 <math-nan-payload-float.h> after <libm-alias-float.h>.
7725 * sysdeps/generic/math-type-macros-float128.h: Include
7726 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
7727 * sysdeps/generic/math-type-macros-ldouble.h: Include
7728 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
7729
7730 2018-05-17 Andreas Schwab <schwab@suse.de>
7731
7732 * resolv/res_send.c (__res_context_send): Don't set errno when
7733 returing error after malloc failure.
7734
7735 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
7736
7737 * nptl/allocatestack.c (allocate_stack): Remove the
7738 !__ASSUME_PRIVATE_FUTEX paths.
7739 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
7740 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
7741 Likewise.
7742 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
7743 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7744 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7745 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
7746 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
7747 !__ASSUME_PRIVATE_FUTEX path.
7748 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
7749 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
7750 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
7751 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
7752 !__ASSUME_PRIVATE_FUTEX macros.
7753 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
7754 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
7755 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
7756 * sysdeps/unix/sysv/linux/kernel-features.h
7757 (__ASSUME_PRIVATE_FUTEX): Removed.
7758
7759 2018-05-17 Joseph Myers <joseph@codesourcery.com>
7760
7761 * math/Makefile (libm-narrow-fns): Add div.
7762 (libm-test-funcs-narrow): Likewise.
7763 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
7764 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
7765 * math/gen-auto-libm-tests.c (test_functions): Add div.
7766 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
7767 (NARROW_DIV_ROUND_TO_ODD): Likewise.
7768 (NARROW_DIV_TRIVIAL): Likewise.
7769 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
7770 macro.
7771 (__ddivl): Likewise.
7772 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
7773 ddiv.
7774 (CFLAGS-nldbl-ddiv.c): New variable.
7775 (CFLAGS-nldbl-fdiv.c): Likewise.
7776 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
7777 __nldbl_ddivl.
7778 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
7779 prototype.
7780 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
7781 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
7782 * math/auto-libm-test-in: Add tests of div.
7783 * math/auto-libm-test-out-narrow-div: New generated file.
7784 * math/libm-test-narrow-div.inc: New file.
7785 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
7786 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
7787 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
7788 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
7789 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
7790 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
7791 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
7792 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
7793 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
7794 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
7795 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
7796 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
7797 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
7798 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
7799 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
7800 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7801 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
7802 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7803 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7804 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
7805 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7806 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7807 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7808 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7809 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7810 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7811 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7812 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7813 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7814 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7815 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7816 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
7819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7820 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7821 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
7822 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7823 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7824 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7825 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7826 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7827 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7828 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7829
7830 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7831
7832 [BZ #23178]
7833 * nscd/nscd-client.h (sendfileall): Remove prototype.
7834 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
7835 (handle_request): Use writeall instead of sendfileall.
7836 * nscd/aicache.c (addhstaiX): Likewise.
7837 * nscd/grpcache.c (cache_addgr): Likewise.
7838 * nscd/hstcache.c (cache_addhst): Likewise.
7839 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7840 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
7841 * nscd/pwdcache.c (cache_addpw): Likewise.
7842 * nscd/servicescache.c (cache_addserv): Likewise.
7843 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
7844 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
7845 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
7846 Remove define.
7847
7848 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
7849
7850 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
7851 Include <string/strncat.c>.
7852 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
7853 alias.
7854 (__GI___strncat): New hidden alias.
7855
7856 2018-05-16 Joseph Myers <joseph@codesourcery.com>
7857
7858 * sysdeps/mips/mips32/libm-test-ulps: Update.
7859 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7860
7861 2018-05-16 Florian Weimer <fweimer@redhat.com>
7862
7863 * support/Makefile (libsupport-routines): Add support_quote_blob,
7864 support_test_compare_blob.
7865 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
7866 * support/check.h (TEST_COMPARE_BLOB): Define.
7867 (support_test_compare_blob): Declare.
7868 * support/support.h (support_quote_blob): Declare.
7869 * support/support_quote_blob.c: New file.
7870 * support/support_test_compare_blob.c: Likewise.
7871 * support/tst-support_quote_blob.c: Likewise.
7872 * support/tst-test_compare_blob.c: Likewise.
7873
7874 2018-05-16 Florian Weimer <fweimer@redhat.com>
7875
7876 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
7877 of <strtod_nan_double.h>.
7878 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
7879 instead of SET_MANTISSA.
7880 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
7881 of include <strtod_nan_float.h>.
7882 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
7883 instead of <strtod_nan_ldouble.h>.
7884 * stdlib/strtod_nan_double.h: Move to ...
7885 * sysdeps/generic/math-nan-payload-double.h: ... here.
7886 (FLOAT): Remove definition.
7887 (SET_MANTISSA): Rename to ...
7888 (SET_NAN_PAYLOAD): ... this.
7889 * stdlib/strtod_nan_float.h: Move to ...
7890 * sysdeps/generic/math-nan-payload-float.h: ... here.
7891 (FLOAT): Remove definition.
7892 (SET_MANTISSA): Rename to ...
7893 (SET_NAN_PAYLOAD): ... this.
7894 * sysdeps/generic/math-type-macros-double.h: Include
7895 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
7896 instead of <math-svid-compat.h>.
7897 * sysdeps/generic/math-type-macros-float.h: Include
7898 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
7899 instead of <math-svid-compat.h>.
7900 * sysdeps/generic/math-type-macros-float128.h: Include
7901 <math-nan-payload-float128.h>.
7902 * sysdeps/generic/math-type-macros-ldouble.h: Include
7903 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
7904 instead of <math-svid-compat.h>.
7905 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
7906 check for definition.
7907 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
7908 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
7909 Include <ieee754_float128.h>.
7910 (FLOAT): Remove definition.
7911 (SET_MANTISSA): Rename to ...
7912 (SET_NAN_PAYLOAD): ... this.
7913 * sysdeps/ieee754/float128/strtof128_nan.c: Include
7914 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
7915 Do not include <float128_private.h>.
7916 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
7917 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
7918 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
7919 (FLOAT): Remove definition.
7920 (SET_MANTISSA): Rename to ...
7921 (SET_NAN_PAYLOAD): ... this.
7922 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
7923 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
7924 (FLOAT): Remove definition.
7925 (SET_MANTISSA): Rename to ...
7926 (SET_NAN_PAYLOAD): ... this.
7927 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
7928 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
7929 (FLOAT): Remove definition.
7930 (SET_MANTISSA): Rename to ...
7931 (SET_NAN_PAYLOAD): ... this.
7932 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
7933 of "../stdlib/strtod_nan_double.h".
7934 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
7935 of "../stdlib/strtod_nan_float.h".
7936 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
7937 instead of "../stdlib/strtod_nan_ldouble.h".
7938 * manual/arith.texi (Parsing of Floats): Adjust comment.
7939
7940 2018-05-16 Joseph Myers <joseph@codesourcery.com>
7941
7942 * math/Makefile (libm-narrow-fns): Add mul.
7943 (libm-test-funcs-narrow): Likewise.
7944 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
7945 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
7946 * math/gen-auto-libm-tests.c (test_functions): Add mul.
7947 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
7948 (NARROW_MUL_ROUND_TO_ODD): Likewise.
7949 (NARROW_MUL_TRIVIAL): Likewise.
7950 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
7951 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
7952 macro.
7953 (__dmull): Likewise.
7954 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
7955 dmul.
7956 (CFLAGS-nldbl-dmul.c): New variable.
7957 (CFLAGS-nldbl-fmul.c): Likewise.
7958 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
7959 __nldbl_dmull.
7960 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
7961 prototype.
7962 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
7963 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
7964 * math/auto-libm-test-in: Add tests of mul.
7965 * math/auto-libm-test-out-narrow-mul: New generated file.
7966 * math/libm-test-narrow-mul.inc: New file.
7967 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
7968 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
7969 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
7970 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
7971 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
7972 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
7973 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
7974 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
7975 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
7976 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
7977 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
7978 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
7979 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
7980 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
7981 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
7982 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7983 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
7984 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7985 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7986 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
7987 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7988 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7989 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7990 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7991 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7992 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7993 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7994 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7995 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7996 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7997 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7998 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8003 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8004 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8005 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8006 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8007 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8008 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8009 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8010 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8011
8012 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8013
8014 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
8015 with *%eax in call.
8016
8017 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8018
8019 * sysdeps/i386/ldsodefs.h: Removed.
8020 * sysdeps/x86_64/ldsodefs.h: Moved to ...
8021 * sysdeps/x86/ldsodefs.h: This.
8022 (La_i86_regs): New.
8023 (La_i86_retval): Likewise.
8024 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
8025 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
8026
8027 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8028
8029 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
8030 unnecessary testl.
8031
8032 2018-05-13 Alan Modra <amodra@gmail.com>
8033
8034 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
8035 R_PARISC_TLS_DTPOFF32 reloc addend.
8036
8037 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8038
8039 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
8040 * math/math.h: Restrict the prototype definition for the functions
8041 issignaling(_Float128) and iszero(_Float128); and template
8042 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
8043 __HAVE_FLOAT128_UNLIKE_LDBL.
8044 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
8045 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
8046 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
8047 __f128() constants; define the type _Float128 as long double;
8048 and reuse long double in __CFLOAT128.
8049
8050 2018-05-11 Joseph Myers <joseph@codesourcery.com>
8051
8052 * sysdeps/generic/math_private.h: Do not include
8053 <math-barriers.h>.
8054 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
8055 <math_private.h>.
8056 * math/fromfp.h: Include <math-barriers.h>.
8057 * math/math-narrow.h: Likewise.
8058 * math/s_nextafter.c: Likewise.
8059 * math/s_nexttowardf.c: Likewise.
8060 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8061 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8062 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8063 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8064 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8065 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8066 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8067 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8068 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8069 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8070 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8071 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8072 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8073 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8074 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8075 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8076 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8077 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8078 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8079 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8080 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8081 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8082 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8083 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8084 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8085 * sysdeps/ieee754/k_standardl.c: Likewise.
8086 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8087 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8088 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8089 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8090 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8091 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8092 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8093 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8094 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8095 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8096 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8097 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8098 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8099 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8100 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8101 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8102 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8103 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8104 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8105 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8106 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
8107 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
8108
8109 2018-05-11 Florian Weimer <fweimer@redhat.com>
8110
8111 Use 64-bit epoch values in the time zone file parser.
8112 * include/time.h (internal_time_t): Define.
8113 (__tzfile_compute): Use it.
8114 * time/tzfile.c (struct leap): Use internal_time_t for epoch
8115 member.
8116 (transitions): Switch to internal_time_t.
8117 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
8118 types.
8119 (__tzfile_compute): Use internal_time_t for timer argument. Check
8120 for truncation before calling __offtime.
8121
8122 2018-05-11 Florian Weimer <fweimer@redhat.com>
8123
8124 [BZ #23166]
8125 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
8126 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
8127 Likewise.
8128 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
8129 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
8130 export without --enable-obsolete-rpc.
8131 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
8132 symbol. This should not have been exported, ever.
8133
8134 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
8135
8136 [BZ #23152]
8137 * localedata/locales/gd_GB (abmon): Fix typo in May:
8138 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
8139
8140 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8141
8142 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
8143 Use multiple registers to copy data in loop tail.
8144
8145 * sysdeps/aarch64/multiarch/memmove_falkor.S
8146 (__memmove_falkor): Use multiple registers to move data in
8147 loop tail.
8148
8149 2018-05-10 Joseph Myers <joseph@codesourcery.com>
8150
8151 * math/math-underflow.h: New file.
8152 * sysdeps/generic/math_private.h: Do not include <float.h>.
8153 (fabs_tg): Remove macro. Moved to math-underflow.h.
8154 (min_of_type_f): Likewise.
8155 (min_of_type_): Likewise.
8156 (min_of_type_l): Likewise.
8157 (min_of_type_f128): Likewise.
8158 (min_of_type): Likewise.
8159 (math_check_force_underflow): Likewise.
8160 (math_check_force_underflow_nonneg): Likewise.
8161 (math_check_force_underflow_complex): Likewise.
8162 * math/e_exp2_template.c: Include <math-underflow.h>.
8163 * math/k_casinh_template.c: Likewise.
8164 * math/s_catan_template.c: Likewise.
8165 * math/s_catanh_template.c: Likewise.
8166 * math/s_ccosh_template.c: Likewise.
8167 * math/s_cexp_template.c: Likewise.
8168 * math/s_clog10_template.c: Likewise.
8169 * math/s_clog_template.c: Likewise.
8170 * math/s_csin_template.c: Likewise.
8171 * math/s_csinh_template.c: Likewise.
8172 * math/s_csqrt_template.c: Likewise.
8173 * math/s_ctan_template.c: Likewise.
8174 * math/s_ctanh_template.c: Likewise.
8175 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8176 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8177 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8178 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8179 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8180 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8181 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8182 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8183 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8184 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8185 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8186 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8187 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8188 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8189 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8190 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8191 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8192 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8193 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8194 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8195 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8196 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8197 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8198 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8199 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8200 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8201 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
8202 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8203 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8204 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8205 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8206 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8207 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8208 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
8209 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8210 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8211 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
8212 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8213 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8214 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
8215 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
8216 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
8217 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8218 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8219 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
8220 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8221 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
8222 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
8223 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8224 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8225 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
8226 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8227 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
8228 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8229 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8230 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
8231 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
8232 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
8233 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
8234 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8235 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8236 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
8237 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8238 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8239 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8240 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8241 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8242 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8243 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8244 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
8245 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8246 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
8247 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8248 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
8249 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8250 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8251 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8252 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
8253 * sysdeps/x86/fpu/powl_helper.c: Likewise.
8254 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
8255 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
8256 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
8257 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
8258 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
8259
8260 2018-05-09 Joseph Myers <joseph@codesourcery.com>
8261
8262 * sysdeps/generic/math-barriers.h: New file.
8263 * sysdeps/generic/math_private.h [!math_opt_barrier]
8264 (math_opt_barrier): Move to math-barriers.h.
8265 [!math_opt_barrier] (math_force_eval): Likewise.
8266 * sysdeps/aarch64/fpu/math-barriers.h: New file.
8267 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
8268 math-barriers.h.
8269 (math_force_eval): Likewise.
8270 * sysdeps/alpha/fpu/math-barriers.h: New file.
8271 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
8272 math-barriers.h.
8273 (math_force_eval): Likewise.
8274 * sysdeps/x86/fpu/math-barriers.h: New file.
8275 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
8276 math-barriers.h.
8277 (math_force_eval): Likewise.
8278 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
8279 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
8280 multiple-include guard for rename.
8281 * sysdeps/powerpc/fpu/math-barriers.h: New file.
8282 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
8283 math-barriers.h.
8284 (math_force_eval): Likewise.
8285
8286 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
8287
8288 [BZ #22786]
8289 CVE-2018-11236
8290 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
8291 computation.
8292 * stdlib/Makefile (test-bz22786): New test.
8293 * stdlib/test-bz22786.c: New test.
8294
8295 2018-05-09 Joseph Myers <joseph@codesourcery.com>
8296
8297 * include/math-narrow-eval.h: New file. Contents moved from ....
8298 * sysdeps/generic/math_private.h: ... here.
8299 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
8300 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
8301 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
8302 * stdlib/strtod_l.c: Likewise.
8303 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8304 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8305 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8306 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
8307 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8308 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8309 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8310 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
8311 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8312 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
8313 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8314 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
8315 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8316 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
8317 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8318 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
8319 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
8320 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
8321 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8322 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8323 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8324 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
8325 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8326 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8327 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
8328 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8329 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8330 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8331 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
8332
8333 2018-05-08 Andreas Schwab <schwab@suse.de>
8334
8335 * sysdeps/nptl/internaltypes.h: Fix comment.
8336
8337 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
8338
8339 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
8340 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
8341 hidden.
8342
8343 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8344
8345 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
8346 of I into loop header.
8347 * benchtests/bench-memmove-walk.c
8348 (test_main): Likewise.
8349
8350 2018-05-07 Alexandre Oliva <oliva@gnu.org>
8351
8352 Revert:
8353 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
8354 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
8355
8356 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
8357
8358 [BZ #20419]
8359 * elf/dl-load.c (open_verify): Fix stack overflow.
8360 * elf/Makefile (tst-big-note): New test.
8361 * elf/tst-big-note-lib.S: New.
8362 * elf/tst-big-note.c: New.
8363
8364 2018-05-04 Joseph Myers <joseph@codesourcery.com>
8365
8366 * scripts/abilist.awk: Ignore absolute symbols.
8367 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
8368 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
8369 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
8370 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
8371 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
8372 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
8373 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8374 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
8375 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
8376 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
8377 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
8378 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
8379 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
8380 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
8381 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
8382 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
8383 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
8384 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
8385 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8386 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
8387 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8388 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
8389 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
8390 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
8391 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
8392 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
8393 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
8394 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
8395 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8396 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
8397 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
8398 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8399 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
8400 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8401 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
8402 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
8403 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
8404 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
8405 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
8406 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
8407 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
8408 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8409 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
8410 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
8411 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8412 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
8413 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8414 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
8415 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
8416 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
8417 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
8418 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
8419 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
8420 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
8421 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8422 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
8423 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
8424 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8425 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
8426 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8427 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
8428 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
8429 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
8430 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
8431 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
8432 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
8433 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
8434 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8435 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
8436 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
8437 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8438 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
8439 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8440 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
8441 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
8442 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
8443 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
8444 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
8445 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
8446 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
8447 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8448 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
8449 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
8450 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8451 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
8452 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8453 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
8454 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
8455 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
8456 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
8457 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
8458 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
8459 Likewise.
8460 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
8461 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8462 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
8463 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
8464 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8465 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
8466 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8467 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
8468 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
8469 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
8470 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
8471 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
8472 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
8473 Likewise.
8474 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
8475 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8476 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
8477 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
8478 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8479 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
8480 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8481 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
8482 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
8483 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
8484 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
8485 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
8486 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
8487 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
8488 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8489 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
8490 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
8491 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8492 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
8493 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8494 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
8495 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
8496 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
8497 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
8498 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8499 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
8500 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
8501 Likewise.
8502 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
8503 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
8504 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
8505 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
8506 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8507 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
8508 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
8509 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
8510 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
8511 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
8512 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
8513 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
8514 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
8515 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8516 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
8517 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
8518 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
8519 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
8520 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
8521 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
8522 Likewise.
8523 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
8524 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
8525 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
8526 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8527 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
8528 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8529 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
8530 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
8531 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
8532 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
8533 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8534 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
8535 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
8536 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8537 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
8538 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
8539 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
8540 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
8541 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8542 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
8543 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
8544 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8545 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
8546 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8547 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
8548 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
8549 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
8550 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
8551 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
8552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
8554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
8555 Likewise.
8556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
8557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
8558 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
8559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
8560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8561 Likewise.
8562 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
8563 Likewise.
8564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
8565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
8566 Likewise.
8567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
8568 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8569 Likewise.
8570 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8571 Likewise.
8572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
8573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
8574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
8575 Likewise.
8576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
8577 Likewise.
8578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
8579 Likewise.
8580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
8581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
8582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
8584 Likewise.
8585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
8586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
8587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
8588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
8591 Likewise.
8592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
8593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8594 Likewise.
8595 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8596 Likewise.
8597 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
8598 Likewise.
8599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
8600 Likewise.
8601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
8602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
8603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
8604 Likewise.
8605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
8606 Likewise.
8607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
8608 Likewise.
8609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
8610 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
8611 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
8612 Likewise.
8613 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
8614 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8615 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
8616 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
8617 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8618 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
8619 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8620 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
8621 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
8622 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
8623 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
8624 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
8625 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
8626 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
8627 Likewise.
8628 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8629 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
8630 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
8631 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8632 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
8633 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8634 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
8635 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
8636 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
8637 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
8638 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
8639 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
8640 Likewise.
8641 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8642 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
8643 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
8644 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8645 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
8646 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8647 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
8648 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
8649 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
8650 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
8651 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
8652 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
8653 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
8654 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8655 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
8656 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
8657 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8658 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
8659 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8660 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
8661 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
8662 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
8663 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
8664 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
8665 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
8666 Likewise.
8667 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
8668 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8669 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
8670 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
8671 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8672 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
8673 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8674 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
8675 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
8676 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
8677 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
8678 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
8679 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
8680 Likewise.
8681 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
8682 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8683 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
8684 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
8685 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8686 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
8687 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8688 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
8689 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
8690 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
8691 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
8692 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
8693 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
8694 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
8695 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8696 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
8697 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
8698 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8699 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
8700 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8701 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
8702 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
8703 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
8704 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
8705 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
8706 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
8707 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
8708 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
8709 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8710 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
8711 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
8712 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8713 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
8714 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8715 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
8716 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
8717 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
8718 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
8719
8720 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
8721
8722 [BZ #23137]
8723 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
8724 Use atomic_load_acquire to load __tid.
8725
8726 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
8727
8728 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
8729 Restore the pointer into %rdx, after syscall and use %rdx,
8730 instead of %rsi, to restore context.
8731
8732 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
8733
8734 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
8735 Pop the pointer into %rdx after syscall and use %rdx, instead
8736 of %rsi, to restore context.
8737
8738 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
8739
8740 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
8741 handlers after setjmp.
8742 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
8743 defined.
8744 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
8745 <libc-pointer-arith.h>.
8746 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
8747 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
8748 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
8749 _JUMP_BUF_SIGSET_BITS_PER_WORD.
8750 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
8751 * sysdeps/x86/__longjmp_cancel.S: New file.
8752 * sysdeps/x86/longjmp.c: Likewise.
8753 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
8754
8755 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8756
8757 * NEWS: Add ustat.h deprecation entry.
8758 * bits/ustat.h: Remove file.
8759 * misc/sys/ustat.h: Likewise.
8760 * misc/ustat.h: Likewise.
8761 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
8762 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
8763 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
8764 compatibility mode.
8765 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
8766 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
8767 generic Linux implementation.
8768
8769 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8770
8771 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
8772 * math/w_expl_compat.c: Likewise.
8773 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
8774
8775 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
8776
8777 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
8778
8779 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8780
8781 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
8782 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
8783 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
8784 Remove.
8785 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
8786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
8787 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
8788 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
8789 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
8790 and SYSCALL_LL64.
8791
8792 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8793
8794 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
8795
8796 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
8797 * math/w_asin_template.c: Likewise.
8798 * math/w_atanh_template.c: Likewise.
8799
8800 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8801
8802 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
8803 to powerpc/powerpc64/be for big-endian.
8804 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
8805 little-endian.
8806
8807 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
8808 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
8809 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
8810 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
8811 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
8812 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
8813 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
8814 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
8815 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
8816 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
8817 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
8818 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
8819 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
8820 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
8821 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
8822 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
8823 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
8824 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
8825 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
8826 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
8827 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
8828 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
8829 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
8830 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
8831 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
8832 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
8833 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
8834 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
8835 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
8836 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
8837 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
8838 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
8839
8840 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
8841 adjusted to imply powerpc64 and older processors on powerpc64/be.
8842 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
8843 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
8844 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
8845 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
8846 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
8847 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
8848 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
8849 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
8850 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
8851 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
8852 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
8853 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
8854 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
8855 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
8856 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
8857 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
8858 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
8859 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
8860 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
8861 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
8862 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
8863 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
8864 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
8865 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
8866 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
8867 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
8868 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
8869 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
8870 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
8871 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
8872 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
8873
8874 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
8875 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
8876 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
8877 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
8878
8879 * sysdeps/powerpc/powerpc64/be/Implies: New file.
8880 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
8881 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
8882 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
8883
8884 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
8885 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
8886 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
8887 * sysdeps/powerpc/powerpc64le/configure: Likewise.
8888 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
8889 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
8890 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
8891 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
8892 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
8893 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
8894 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
8895
8896 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
8897 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
8898 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
8899 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
8900 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
8901 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
8902 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
8903 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
8904 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
8905 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
8906 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
8907
8908 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
8909 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
8910 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
8911 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
8912 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
8913 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
8914 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
8915 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
8916 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
8917 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
8918 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
8919 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
8920
8921 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
8922 and adjusted to imply olders processors.
8923 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
8924 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
8925 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
8926 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
8927 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
8928 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
8929 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
8930 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
8931 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
8932 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
8933 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
8934
8935 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
8936 powerpc64/le.
8937 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
8938 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
8939
8940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
8941 powerpc64le.
8942 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
8943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
8944
8945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
8946 powerpc64/be.
8947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
8948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
8949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
8950
8951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
8952 powerpc64 and adjusted.
8953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
8954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
8955 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
8956 Likewise.
8957
8958 2018-04-27 Joseph Myers <joseph@codesourcery.com>
8959
8960 * sysdeps/tile: Remove.
8961 * sysdeps/unix/sysv/linux/tile: Likewise.
8962 * README (tilegx-*-linux-gnu): Remove from list of supported
8963 configurations.
8964 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
8965 contribution of support for generic Linux kernel syscall
8966 interface.
8967 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
8968 tilegx configurations.
8969 (Config.install_linux_headers): Do not handle tile.
8970 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
8971 in comment.
8972 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
8973 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
8974 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
8975 conditional undefine and redefine.
8976 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
8977 in comment.
8978 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
8979 conditional undefine and redefine.
8980
8981 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
8982
8983 * signal/tst-sigaction.c: New file to test BZ #23069.
8984 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
8985
8986 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8987
8988 [BZ #22766]
8989 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
8990 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
8991 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
8992 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
8993
8994 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8995
8996 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
8997 _DIRENT_MATCHES_DIRENT64 is not defined.
8998 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
8999 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
9000 is defined.
9001 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
9002 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
9003
9004 2018-04-25 Joseph Myers <joseph@codesourcery.com>
9005
9006 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
9007 version to GCC 8 branch.
9008
9009 2018-04-24 Joseph Myers <joseph@codesourcery.com>
9010
9011 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
9012 (check_no_hidden): Use type of original function when declaring
9013 alias.
9014
9015 * sysdeps/unix/sysv/linux/sys/ptrace.h
9016 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
9017 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
9018 (struct __ptrace_seccomp_metadata): New type.
9019 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
9020 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9021 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
9022 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9023 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
9024 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9025 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
9026 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9027 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
9028 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9029 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
9030 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9031 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
9032 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9033 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
9034 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9035
9036 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9037
9038 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
9039 defined.
9040 * dirent/versionsort.c (versionsort): Likewise.
9041 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
9042 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
9043 * dirent/versionsort64.c (versionsort64): Likewise.
9044 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
9045 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
9046 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
9047 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
9048 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
9049 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
9050 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
9051 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
9052 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
9053 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
9054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
9055 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
9056 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
9057 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
9058
9059 2018-04-23 Joseph Myers <joseph@codesourcery.com>
9060
9061 * elf/elf.h (NT_PPC_PKEY): New macro.
9062
9063 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
9064
9065 [BZ #23094]
9066 * localedata/locales/hr_HR: fix thousands_sep and
9067 mon_thousands_sep
9068
9069 2018-04-20 Joseph Myers <joseph@codesourcery.com>
9070
9071 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
9072 (XTABS): Define to TAB3.
9073
9074 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9075
9076 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9077
9078 * dirent/scandir-tail-common.c: New file.
9079 * dirent/scandir-tail.c: Use scandir-tail-common.c.
9080 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
9081 * dirent/scandir.c: Use scandir-tail-common.c.
9082 * dirent/scandirat.c: Likewise.
9083 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
9084 * dirent/scandir64.c (scandir64): Always build and alias to scandir
9085 if _DIRENT_MATCHES_DIRENT64 is defined.
9086 * dirent/scandirat64.c (scandirat64): Likewise.
9087 * include/dirent.h (__scandir_tail): Only define iff
9088 _DIRENT_MATCHES_DIRENT64 is not defined.
9089 (__scandir64_tail): Define regardless.
9090 (__scandirat, scandirat64): Remove libc_hidden_proto.
9091 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
9092 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
9093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
9094 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
9095 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9096 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
9097 * sysdeps/unix/sysv/linux/scandir64.c: New file.
9098
9099 2018-04-20 Joseph Myers <joseph@codesourcery.com>
9100
9101 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
9102 New macro.
9103 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
9104 Increase to 24.
9105 (_dl_aarch64_cap_flags): Add asimdfhm.
9106
9107 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
9108
9109 * sysdeps/nios2/libm-test-ulps: Update.
9110
9111 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9112
9113 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
9114 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
9115
9116 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
9117 requirements.
9118 (_DIRENT_MATCHES_DIRENT64): Undef
9119 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
9120 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
9121 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
9122 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
9123 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
9124 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
9125 use getdents64 syscalls as base.
9126 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
9127 symbol if required.
9128 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
9129 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
9130 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
9131 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
9132 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
9133 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
9134 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
9135 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
9136 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9137 (__get_clockfreq_via_proc_openprom): Use __getdents64.
9138 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
9139
9140 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9141
9142 * scripts/test_printers_common.py (init_test): Disable lock elision.
9143
9144 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9145
9146 * math/test-tgmath.c (count_double, count_float,
9147 count_ldouble, count_cdouble, count_cfloat,
9148 count_cldouble): Use volatile int.
9149
9150 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9151
9152 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
9153 (conformtest-xfail-conds): Add i386-gnu.
9154 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
9155 i386-gnu.
9156 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
9157 ipc_perm.cuid, ipc_perm.cgid): Likewise.
9158 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
9159 msqid_ds.msg_lrpid): Likewise.
9160 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
9161 Likewise.
9162 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
9163 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9164 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
9165 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
9166 unsigned int.
9167 (struct statvfs64): Likewise.
9168 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
9169 Likewise.
9170 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
9171 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
9172 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
9173 instead of wait_queue.
9174 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
9175 instead of vm_area_struct.
9176 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
9177 struct sched_param definition to it.
9178 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9179 * bits/types/struct_sched_param.h: New file.
9180 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
9181 <bits/types/struct_sched_param.h> instead of <sched.h>.
9182 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
9183 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
9184 generic version but include <bits/pthreadtypes.h> to make struct
9185 sigevent's sigev_notify_attributes field a pthread_attr_t*.
9186 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
9187 non-compliant.
9188 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
9189 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
9190 [__USE_XOPEN] (OFDEL): New macro.
9191 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
9192 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
9193 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
9194 prototypes.
9195 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
9196 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
9197 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
9198 non-compliant.
9199 * sysdeps/i386/sys/ucontext.h: Likewise.
9200 * sysdeps/m68k/sys/ucontext.h: Likewise.
9201 * sysdeps/mips/sys/ucontext.h: Likewise.
9202 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
9203 * sysdeps/mach/hurd/i386/Makefile
9204 (test-xfail-POSIX/fcntl.h/conform): Add.
9205 (test-xfail-POSIX/signal.h/conform): Add.
9206 (test-xfail-POSIX/semaphore.h/conform): Add.
9207 (test-xfail-POSIX/regex.h/conform): Add.
9208 (test-xfail-POSIX/aio.h/conform): Add.
9209 (test-xfail-POSIX/mqueue.h/conform): Add.
9210 (test-xfail-POSIX/sys/types.h/conform): Add.
9211 (test-xfail-UNIX98/fcntl.h/conform): Add.
9212 (test-xfail-UNIX98/netdb.h/conform): Add.
9213 (test-xfail-UNIX98/signal.h/conform): Add.
9214 (test-xfail-UNIX98/semaphore.h/conform): Add.
9215 (test-xfail-UNIX98/regex.h/conform): Add.
9216 (test-xfail-UNIX98/aio.h/conform): Add.
9217 (test-xfail-UNIX98/ftw.h/conform): Add.
9218 (test-xfail-UNIX98/mqueue.h/conform): Add.
9219 (test-xfail-UNIX98/netinet/in.h/conform): Add.
9220 (test-xfail-UNIX98/sys/wait.h/conform): Add.
9221 (test-xfail-UNIX98/sys/sem.h/conform): Add.
9222 (test-xfail-UNIX98/sys/uio.h/conform): Add.
9223 (test-xfail-UNIX98/sys/socket.h/conform): Add.
9224 (test-xfail-UNIX98/sys/types.h/conform): Add.
9225 (test-xfail-UNIX98/stdlib.h/conform): Add.
9226 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
9227 (test-xfail-POSIX2008/fcntl.h/conform): Add.
9228 (test-xfail-POSIX2008/netdb.h/conform): Add.
9229 (test-xfail-POSIX2008/signal.h/conform): Add.
9230 (test-xfail-POSIX2008/semaphore.h/conform): Add.
9231 (test-xfail-POSIX2008/regex.h/conform): Add.
9232 (test-xfail-POSIX2008/aio.h/conform): Add.
9233 (test-xfail-POSIX2008/mqueue.h/conform): Add.
9234 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
9235 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
9236 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
9237 (test-xfail-POSIX2008/sys/types.h/conform): Add.
9238 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
9239 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
9240 (test-xfail-XOPEN2K/netdb.h/conform): Add.
9241 (test-xfail-XOPEN2K/signal.h/conform): Add.
9242 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
9243 (test-xfail-XOPEN2K/regex.h/conform): Add.
9244 (test-xfail-XOPEN2K/aio.h/conform): Add.
9245 (test-xfail-XOPEN2K/ftw.h/conform): Add.
9246 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
9247 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
9248 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
9249 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
9250 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
9251 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
9252 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
9253 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
9254 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
9255 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
9256 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
9257 (test-xfail-XOPEN2K8/signal.h/conform): Add.
9258 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
9259 (test-xfail-XOPEN2K8/regex.h/conform): Add.
9260 (test-xfail-XOPEN2K8/aio.h/conform): Add.
9261 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
9262 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
9263 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
9264 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
9265 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
9266 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
9267 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
9268 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
9269 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
9270 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
9271 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
9272 i386-gnu.
9273 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
9274 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
9275
9276 2018-04-18 Joseph Myers <joseph@codesourcery.com>
9277
9278 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
9279 --enable-obsolete for powerpc-linux-gnuspe.
9280
9281 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9282
9283 * conform/data/sys/un.h-data: Allow sun_ prefix.
9284 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
9285 prototypes.
9286 * sysdeps/mach/include/mach.h: Likewise.
9287 * sysdeps/mach/include/mach/mig_support.h: Likewise.
9288 * sysdeps/mach/include/mach_error.h: Likewise.
9289
9290 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9291
9292 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
9293 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
9294 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
9295 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
9296
9297 2018-04-16 Andreas Schwab <schwab@suse.de>
9298
9299 [BZ #19527]
9300 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
9301
9302 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
9303
9304 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
9305 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
9306
9307 2018-04-12 DJ Delorie <dj@redhat.com>
9308
9309 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
9310 version to 4.16.
9311
9312 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
9313
9314 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
9315 (struct kernel_sigaction): Use the same definition on 31bit as is used
9316 on 64bit.
9317
9318 2018-04-09 Florian Weimer <fweimer@redhat.com>
9319
9320 [BZ #23037]
9321 * resolv/res_send.c (send_dg): Use designated initializers instead
9322 of assignment to zero-initialize other fields of struct mmsghdr.
9323
9324 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9325
9326 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
9327 __READDIR_ALIAS): Undefine after usage.
9328 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
9329 __READDIR_R_ALIAS): Likewise.
9330 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
9331 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
9332 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
9333 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
9334 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
9335 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
9336 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
9337 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
9338 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
9339 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
9340 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
9341 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
9342 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
9343 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
9344 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
9345 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
9346 * sysdeps/unix/sysv/linux/readdir.c: New file.
9347 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
9348 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
9349 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
9350
9351 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
9352
9353 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
9354
9355 * manual/charset.texi (Converting a Character): Fix typo.
9356
9357 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9358
9359 * sysdeps/sparc/fpu/libm-test-ulps: Update.
9360
9361 * sysdeps/arm/libm-test-ulps: Update.
9362
9363 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
9364 as base implementation.
9365 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
9366 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
9367 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9368 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9369 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
9370 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
9371 remove unrequired definitions and update comments.
9372 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
9373 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
9374 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
9375 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
9376 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
9377 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
9378 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
9379 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
9380 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
9381 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
9382 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
9383 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
9384 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
9385 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
9386 and RESET_SA_RESTORER hooks.
9387
9388 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
9389
9390 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9391
9392 2018-04-05 Florian Weimer <fweimer@redhat.com>
9393
9394 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
9395 integer overflow, memory leak on error, and indeterminate errno
9396 value. Add a null wide character to terminate the result string.
9397 * manual/charset.texi (Converting a Character): Mention embedded
9398 null bytes in the mbrtowc input string. Explain what happens in
9399 the -2 result case. Do not claim that mbrtowc is simple or
9400 obvious to use. Adjust the description of the code example. Use
9401 @code, not @var, for concrete variables.
9402
9403 2018-04-05 Florian Weimer <fweimer@redhat.com>
9404
9405 * manual/examples/mbstouwcs.c: New file.
9406 * manual/charset.texi (Converting a Character): Include it.
9407
9408 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9409
9410 * include/dirent.h (dirfd): Add hidden proto.
9411 * dirent/dirfd.c (dirfd): Add hidden def.
9412 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
9413 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
9414
9415 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9416
9417 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
9418 sin, cos and sincos to 1 ULP.
9419
9420 2018-04-04 Maciej W. Rozycki <macro@mips.com>
9421
9422 [BZ #19818]
9423 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
9424 symbols.
9425 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
9426 * elf/tst-absolute-sym.c: New file.
9427 * elf/tst-absolute-sym-lib.c: New file.
9428 * elf/tst-absolute-sym-lib.lds: New file.
9429 * elf/Makefile (tests): Add `tst-absolute-sym'.
9430 (modules-names): Add `tst-absolute-sym-lib'.
9431 (LDLIBS-tst-absolute-sym-lib.so): New variable.
9432 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
9433 ($(objpfx)tst-absolute-sym): New dependency.
9434
9435 [BZ #19818]
9436 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
9437 parameter.
9438 (SYMBOL_ADDRESS): New macro.
9439 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
9440 SYMBOL_ADDRESS for symbol address calculation.
9441 * elf/dl-runtime.c (_dl_fixup): Likewise.
9442 (_dl_profile_fixup): Likewise.
9443 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
9444 * elf/rtld.c (dl_main): Likewise.
9445 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
9446 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
9447 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
9448 (elf_machine_rela): Likewise.
9449 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
9450 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
9451 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9452 (elf_machine_rela): Likewise.
9453 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
9454 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
9455 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
9456 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9457 Likewise.
9458 (elf_machine_reloc): Likewise.
9459 (elf_machine_got_rel): Likewise.
9460 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
9461 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
9462 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
9463 Likewise.
9464 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
9465 Likewise.
9466 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
9467 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
9468 Likewise.
9469 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
9470 Likewise.
9471 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9472 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
9473 Likewise.
9474 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
9475 Likewise.
9476 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
9477 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9478
9479 2018-04-04 Zack Weinberg <zackw@panix.com>
9480
9481 * sysdeps/generic/internal-signals.h: Include signal.h,
9482 sigsetops.h, and stdbool.h.
9483 (__libc_signal_block_all): Actually block all signals.
9484 (__libc_signal_block_app): Likewise.
9485 (__libc_signal_restore_set): Actually restore the signal mask.
9486
9487 2018-04-04 Florian Weimer <fweimer@redhat.com>
9488
9489 inet: Actually build and run tst-deadline.
9490 * inet/Makefile (tests-internal): Add tst-deadline and do not
9491 overwrite the variable.
9492 (tests-static-internal): Remove variable.
9493
9494 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
9495
9496 [BZ #22947]
9497 * bits/uio-ext.h (RWF_APPEND): New.
9498 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
9499 * manual/llio.texi: Document RWF_APPEND.
9500 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
9501 (RWF_SUPPORTED): Add RWF_APPEND.
9502
9503 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9504
9505 [BZ #22391]
9506 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
9507 check for internal nptl signals.
9508 * nptl/sigaction.c (__sigaction): Likewise.
9509 * signal/sigaddset.c (sigaddset): Likewise.
9510 * signal/sigdelset.c (sigdelset): Likewise.
9511 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
9512 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
9513 value.
9514 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
9515 to filter out internal nptl signals.
9516 * signal/tst-sigset.c (do_test): Check ech signal indidually and
9517 also check realtime signals using standard macros.
9518 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
9519 __is_internal_signal, __libc_signal_block_all,
9520 __libc_signal_block_app, __libc_signal_restore_set): New functions.
9521 * sysdeps/nptl/sigfillset.c: Remove file.
9522 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
9523 Change return to bool.
9524 (__clear_internal_signals): Remove SIGTIMER clean since it is
9525 equal to SIGCANEL on Linux.
9526 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
9527 signal set was constructed using standard functions.
9528
9529 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
9530
9531 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
9532 ifname is too long.
9533 * hurd/hurdsig.c (interrupted_reply_port_location): Use
9534 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
9535 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
9536 hidden def.
9537 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
9538 * signal/sigaddset.c: Include <sigsetopts.h>.
9539 * signal/sigdelset.c: Likewise.
9540
9541 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9542
9543 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
9544 (__cos): Likewise.
9545 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
9546 logic as sin and cos.
9547
9548 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9549
9550 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
9551 inputs. Return correct sign.
9552 (do_sincos): Remove small input check before do_sin, let do_sin set
9553 the sign.
9554 (__sin): Likewise.
9555 (__cos): Likewise.
9556
9557 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9558
9559 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
9560 (do_cos_slow): Likewise.
9561 (do_sin_slow): Likewise.
9562 (reduce_and_compute): Likewise.
9563 (slow): Likewise.
9564 (slow1): Likewise.
9565 (slow2): Likewise.
9566 (sloww): Likewise.
9567 (sloww1): Likewise.
9568 (sloww2): Likewise.
9569 (bslow): Likewise.
9570 (bslow1): Likewise.
9571 (bslow2): Likewise.
9572 (cslow2): Likewise.
9573
9574 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9575
9576 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
9577 (do_cos): Remove corp parameter and calculations.
9578 (do_sin): Likewise.
9579 (do_sincos): Remove cor variable.
9580 (__sin): Use do_sincos for huge inputs.
9581 (__cos): Likewise.
9582 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9583 (reduce_and_compute_sincos): Remove unused function.
9584
9585 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9586
9587 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
9588 reduce_sincos, improve accuracy to 136 bits.
9589 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
9590 (__sin): Use improved reduction and simplified do_sincos calculation.
9591 (__cos): Likewise.
9592 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9593
9594 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9595
9596 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
9597 (do_sincos_2): Likewise.
9598 (__sin): Remove middle range reduction case.
9599 (__cos): Likewise.
9600 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
9601 reduction case.
9602
9603 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
9604
9605 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
9606 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
9607 inputs.
9608 (__cos): Likewise.
9609 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
9610
9611 2018-04-03 Joseph Myers <joseph@codesourcery.com>
9612
9613 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9614 version to 4.16
9615
9616 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9617
9618 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
9619 Remove definitions.
9620 (opendir_oflags): Use O_DIRECTORY regardless.
9621 (__opendir, __opendirat): Remove need_isdir_precheck usage.
9622 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
9623
9624 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
9625
9626 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
9627 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
9628 macros.
9629 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
9630 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
9631 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
9632 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
9633 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
9634 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
9635
9636 * htl/Makefile: Bump licence to LGPL 2.1+.
9637 * htl/alloca_cutoff.c: Likewise.
9638 * htl/cthreads-compat.c: Likewise.
9639 * htl/lockfile.c: Likewise.
9640 * htl/pt-alloc.c: Likewise.
9641 * htl/pt-cancel.c: Likewise.
9642 * htl/pt-cleanup.c: Likewise.
9643 * htl/pt-create.c: Likewise.
9644 * htl/pt-dealloc.c: Likewise.
9645 * htl/pt-detach.c: Likewise.
9646 * htl/pt-exit.c: Likewise.
9647 * htl/pt-getattr.c: Likewise.
9648 * htl/pt-initialize.c: Likewise.
9649 * htl/pt-internal.h: Likewise.
9650 * htl/pt-join.c: Likewise.
9651 * htl/pt-self.c: Likewise.
9652 * htl/pt-setcancelstate.c: Likewise.
9653 * htl/pt-setcanceltype.c: Likewise.
9654 * htl/pt-sigmask.c: Likewise.
9655 * htl/pt-spin-inlines.c: Likewise.
9656 * htl/pt-testcancel.c: Likewise.
9657 * htl/pt-yield.c: Likewise.
9658 * htl/tests/test-1.c: Likewise.
9659 * htl/tests/test-10.c: Likewise.
9660 * htl/tests/test-11.c: Likewise.
9661 * htl/tests/test-12.c: Likewise.
9662 * htl/tests/test-13.c: Likewise.
9663 * htl/tests/test-14.c: Likewise.
9664 * htl/tests/test-15.c: Likewise.
9665 * htl/tests/test-16.c: Likewise.
9666 * htl/tests/test-17.c: Likewise.
9667 * htl/tests/test-2.c: Likewise.
9668 * htl/tests/test-3.c: Likewise.
9669 * htl/tests/test-4.c: Likewise.
9670 * htl/tests/test-5.c: Likewise.
9671 * htl/tests/test-6.c: Likewise.
9672 * htl/tests/test-7.c: Likewise.
9673 * htl/tests/test-8.c: Likewise.
9674 * htl/tests/test-9.c: Likewise.
9675 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
9676 * sysdeps/htl/bits/cancelation.h: Likewise.
9677 * sysdeps/htl/bits/pthread-np.h: Likewise.
9678 * sysdeps/htl/bits/pthread.h: Likewise.
9679 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
9680 * sysdeps/htl/bits/semaphore.h: Likewise.
9681 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
9682 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
9683 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
9684 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
9685 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
9686 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
9687 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
9688 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
9689 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
9690 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
9691 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
9692 * sysdeps/htl/old_pt-atfork.c: Likewise.
9693 * sysdeps/htl/pt-atfork.c: Likewise.
9694 * sysdeps/htl/pt-attr-destroy.c: Likewise.
9695 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
9696 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
9697 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
9698 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
9699 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
9700 * sysdeps/htl/pt-attr-getscope.c: Likewise.
9701 * sysdeps/htl/pt-attr-getstack.c: Likewise.
9702 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
9703 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
9704 * sysdeps/htl/pt-attr-init.c: Likewise.
9705 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
9706 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
9707 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
9708 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
9709 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
9710 * sysdeps/htl/pt-attr-setscope.c: Likewise.
9711 * sysdeps/htl/pt-attr-setstack.c: Likewise.
9712 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
9713 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
9714 * sysdeps/htl/pt-attr.c: Likewise.
9715 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
9716 * sysdeps/htl/pt-barrier-init.c: Likewise.
9717 * sysdeps/htl/pt-barrier-wait.c: Likewise.
9718 * sysdeps/htl/pt-barrier.c: Likewise.
9719 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
9720 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
9721 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
9722 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
9723 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
9724 * sysdeps/htl/pt-cond-destroy.c: Likewise.
9725 * sysdeps/htl/pt-cond-init.c: Likewise.
9726 * sysdeps/htl/pt-cond-signal.c: Likewise.
9727 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
9728 * sysdeps/htl/pt-cond-wait.c: Likewise.
9729 * sysdeps/htl/pt-cond.c: Likewise.
9730 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
9731 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
9732 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
9733 * sysdeps/htl/pt-condattr-init.c: Likewise.
9734 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
9735 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
9736 * sysdeps/htl/pt-destroy-specific.c: Likewise.
9737 * sysdeps/htl/pt-equal.c: Likewise.
9738 * sysdeps/htl/pt-getconcurrency.c: Likewise.
9739 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
9740 * sysdeps/htl/pt-getschedparam.c: Likewise.
9741 * sysdeps/htl/pt-getspecific.c: Likewise.
9742 * sysdeps/htl/pt-init-specific.c: Likewise.
9743 * sysdeps/htl/pt-key-create.c: Likewise.
9744 * sysdeps/htl/pt-key-delete.c: Likewise.
9745 * sysdeps/htl/pt-key.h: Likewise.
9746 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
9747 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
9748 * sysdeps/htl/pt-mutex-init.c: Likewise.
9749 * sysdeps/htl/pt-mutex-lock.c: Likewise.
9750 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
9751 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
9752 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
9753 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
9754 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
9755 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
9756 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
9757 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
9758 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
9759 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
9760 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
9761 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
9762 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
9763 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
9764 * sysdeps/htl/pt-mutexattr.c: Likewise.
9765 * sysdeps/htl/pt-once.c: Likewise.
9766 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
9767 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
9768 * sysdeps/htl/pt-rwlock-init.c: Likewise.
9769 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
9770 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
9771 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
9772 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
9773 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
9774 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
9775 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
9776 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
9777 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
9778 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
9779 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
9780 * sysdeps/htl/pt-setconcurrency.c: Likewise.
9781 * sysdeps/htl/pt-setschedparam.c: Likewise.
9782 * sysdeps/htl/pt-setschedprio.c: Likewise.
9783 * sysdeps/htl/pt-setspecific.c: Likewise.
9784 * sysdeps/htl/pt-spin.c: Likewise.
9785 * sysdeps/htl/pt-startup.c: Likewise.
9786 * sysdeps/htl/pthread.h: Likewise.
9787 * sysdeps/htl/sem-close.c: Likewise.
9788 * sysdeps/htl/sem-destroy.c: Likewise.
9789 * sysdeps/htl/sem-getvalue.c: Likewise.
9790 * sysdeps/htl/sem-init.c: Likewise.
9791 * sysdeps/htl/sem-open.c: Likewise.
9792 * sysdeps/htl/sem-post.c: Likewise.
9793 * sysdeps/htl/sem-timedwait.c: Likewise.
9794 * sysdeps/htl/sem-trywait.c: Likewise.
9795 * sysdeps/htl/sem-unlink.c: Likewise.
9796 * sysdeps/htl/sem-wait.c: Likewise.
9797 * sysdeps/hurd/htl/pt-kill.c: Likewise.
9798 * sysdeps/i386/htl/pt-machdep.h: Likewise.
9799 * sysdeps/mach/htl/pt-block.c: Likewise.
9800 * sysdeps/mach/htl/pt-spin.c: Likewise.
9801 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
9802 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
9803 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
9804 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
9805 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
9806 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
9807 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
9808 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
9809 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
9810 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
9811 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
9812 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
9813 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
9814 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
9815 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
9816 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
9817 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
9818 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
9819 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
9820 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
9821 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
9822 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
9823 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
9824 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
9825 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
9826 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
9827 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
9828 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
9829 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
9830 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
9831 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
9832 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
9833 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
9834 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
9835 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
9836 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
9837 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
9838 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
9839 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
9840 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
9841 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
9842 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
9843 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
9844
9845 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
9846 * README: Remove the mention of out-of-tree patches needed for
9847 GNU/Hurd.
9848
9849 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
9850 (UTIME_NOW, UTIME_OMIT): Define macros.
9851
9852 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
9853 instead of pthread_detach.
9854 (__cthread_fork): Call __pthread_create instead of pthread_create.
9855 (__cthread_keycreate): Call __pthread_key_create instead of
9856 pthread_key_create.
9857 (__cthread_getspecific): Call __pthread_getspecific instead of
9858 pthread_getspecific.
9859 (__cthread_setspecific): Call __pthread_setspecific instead of
9860 pthread_setspecific.
9861 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
9862 __pthread_mutex_unlock instead of pthread_mutex_lock and
9863 pthread_mutex_unlock.
9864 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
9865 ___pthread_get_cleanup_stack.
9866 (__pthread_get_cleanup_stack): New strong alias.
9867 * htl/pt-create.c: Include <pthreadP.h>.
9868 (entry_point): Call __pthread_exit instead of pthread_exit.
9869 (pthread_create): Rename to __pthread_create.
9870 (pthread_create): New strong alias.
9871 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
9872 (pthread_detach): New strong alias.
9873 (__pthread_detach): Call __pthread_cond_broadcast instead of
9874 pthread_cond_broadcast.
9875 * htl/pt-exit.c: Include <pthreadP.h>.
9876 (__pthread_exit): Call __pthread_setcancelstate and
9877 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
9878 __pthread_get_cleanup_stack.
9879 * htl/pt-testcancel.c: Include <pthreadP.h>.
9880 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
9881 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
9882 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
9883 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
9884 pthread_attr_getstacksize.
9885 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
9886 Rename to __pthread_attr_getstackaddr.
9887 (pthread_attr_getstackaddr): New strong alias.
9888 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
9889 Rename to __pthread_attr_getstacksize.
9890 (pthread_attr_getstacksize): New strong alias.
9891 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
9892 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
9893 (pthread_attr_setstack): New strong alias.
9894 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
9895 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
9896 pthread_attr_getstacksize, pthread_attr_setstacksize and
9897 pthread_attr_setstackaddr.
9898 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
9899 Rename to __pthread_attr_setstackaddr.
9900 (pthread_attr_setstackaddr): New strong alias.
9901 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
9902 Rename to __pthread_attr_setstacksize.
9903 (pthread_attr_setstacksize): New strong alias.
9904 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
9905 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
9906 pthread_exit.
9907 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
9908 (__pthread_key_create): New hidden def.
9909 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
9910 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
9911 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
9912 __pthread_exit, __pthread_key_create, __pthread_getspecific,
9913 __pthread_setspecific, __pthread_setcancelstate,
9914 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
9915 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
9916 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
9917 declarations.
9918 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
9919 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
9920 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
9921 (pthread_attr_setstackaddr): New strong alias.
9922 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
9923 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
9924 (pthread_attr_setstacksize): New strong alias.
9925 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
9926 (call_exit): Call __pthread_exit instead of pthread_exit.
9927 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
9928 (_pthread_mutex_init): New hidden definition.
9929 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
9930 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
9931 instead of pthread_attr_init and pthread_attr_setstack.
9932
9933 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
9934 __vm_deallocate instead of vm_allocate and vm_deallocate.
9935 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
9936 setenv.
9937 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
9938 of geteuid.
9939 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
9940 strdup.
9941 * hurd/siginfo.c: Include <libioP.h>.
9942 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
9943 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
9944 munmap.
9945 * mach/devstream.c: Include <libioP.h>.
9946 (dealloc_ref): Call __mach_port_deallocate instead of
9947 mach_port_deallocate.
9948 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
9949 Call __mach_port_deallocate instead of mach_port_deallocate.
9950 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
9951 pathconf.
9952 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
9953 munmap.
9954 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
9955 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
9956 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
9957 of munmap.
9958 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
9959 of close.
9960 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
9961 instead of sysconf.
9962 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
9963 __clock_gettime instead of clock_gettime.
9964 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
9965 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
9966 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
9967 * sysdeps/unix/bsd/stty.c (stty): Likewise.
9968 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
9969 tcgetattr.
9970 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
9971 __clock_gettime and __nanosleep instead of clock_gettime and
9972 nanosleep.
9973 * hurd/catch-signal.c (hurd_catch_signal): Rename to
9974 __hurd_catch_signal.
9975 (hurd_catch_signal): New strong alias.
9976 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
9977 __hurd_catch_signal instead of hurd_catch_signal.
9978 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
9979 * hurd/hurdexec.c (_hurd_init): Add hidden def.
9980 * hurd/hurdinit.c (_hurd_init): Add hidden def.
9981 * hurd/hurdsig.c: Include <mach/mig_support.h>.
9982 (_hurd_thread_sigstate): Add hidden def.
9983 (_hurd_internal_post_signal): Use __mutex_unlock instead of
9984 mutex_unlock.
9985 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
9986 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
9987 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
9988 __hurd_file_name_path_lookup.
9989 (hurd_file_name_path_lookup): New strong alias.
9990 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
9991 hurd_file_name_path_lookup.
9992 * mach/errstring.c (mach_error_type): Add hidden def.
9993 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
9994 * mach/mutex-init.c (__mutex_init): Add hidden def.
9995 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
9996 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
9997 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
9998 * sysdeps/mach/hurd/getcwd.c
9999 (_hurd_canonicalize_directory_name_internal): Rename to
10000 __hurd_canonicalize_directory_name_internal.
10001 (_hurd_canonicalize_directory_name_internal): New strong alias.
10002 (__canonicalize_directory_name_internal, __getcwd): Call
10003 __hurd_canonicalize_directory_name_internal instead of
10004 _hurd_canonicalize_directory_name_internal.
10005 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
10006 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
10007 hidden defs.
10008 * sysdeps/hurd/include/hurd.h: New file.
10009 * sysdeps/hurd/include/hurd/fd.h: New file.
10010 * sysdeps/hurd/include/hurd/signal.h: New file.
10011 * sysdeps/mach/include/lock-intern.h: New file.
10012 * sysdeps/mach/include/mach.h: New file.
10013 * sysdeps/mach/include/mach/mig_support.h: New file.
10014 * sysdeps/mach/include/mach_error.h: New file.
10015 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
10016 prototype.
10017 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
10018 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
10019 _HEADER_H_HIDDEN_DEF macro.
10020 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
10021 _hurd_fd_error_signal): Add hidden prototype.
10022 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
10023 hidden def.
10024 * libio/iolibio.h (_IO_puts): New hidden prototype.
10025 * libio/ioputs.c (_IO_puts): New hidden def.
10026 * sysdeps/mach/hurd/localplt.data: New file.
10027
10028 2018-04-02 Agustina Arzille <avarzille@riseup.net>
10029 Amos Jeffries <squid3@treenet.co.nz>
10030 David Michael <fedora.dm0@gmail.com>
10031 Marco Gerards <marco@gnu.org>
10032 Marcus Brinkmann <marcus@gnu.org>
10033 Neal H. Walfield <neal@gnu.org>
10034 Pino Toscano <toscano.pino@tiscali.it>
10035 Richard Braun <rbraun@sceen.net>
10036 Roland McGrath <roland@gnu.org>
10037 Samuel Thibault <samuel.thibault@ens-lyon.org>
10038 Thomas DiModica <ricinwich@yahoo.com>
10039 Thomas Schwinge <tschwinge@gnu.org>
10040
10041 * htl: New directory.
10042 * sysdeps/htl: New directory.
10043 * sysdeps/hurd/htl: New directory.
10044 * sysdeps/i386/htl: New directory.
10045 * sysdeps/mach/htl: New directory.
10046 * sysdeps/mach/hurd/htl: New directory.
10047 * sysdeps/mach/hurd/i386/htl: New directory.
10048 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
10049 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
10050 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
10051
10052 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10053
10054 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
10055 signals in thread created for runing timers.
10056
10057 2018-04-01 Florian Weimer <fweimer@redhat.com>
10058
10059 * support/support_format_addrinfo.c (support_format_addrinfo):
10060 Include unknown error number in formatted result.
10061
10062 2018-03-29 Florian Weimer <fweimer@redhat.com>
10063
10064 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
10065 capture SIGBUS.
10066
10067 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10068
10069 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
10070 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
10071 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10072 (__ASSUME_CLONE_BACKWARDS): Define.
10073
10074 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
10075
10076 [BZ #23024]
10077 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
10078 early when linux sentinel value is set.
10079
10080 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10081
10082 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
10083
10084 2018-03-27 Andreas Schwab <schwab@suse.de>
10085
10086 [BZ #23005]
10087 * resolv/res_send.c (__res_context_send): Return ENOMEM if
10088 allocation of private copy of nsaddr_list fails.
10089
10090 2018-03-26 Joseph Myers <joseph@codesourcery.com>
10091
10092 [BZ #16552]
10093 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
10094 * sysdeps/unix/sysv/linux/umount.c: ... here.
10095 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
10096 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
10097 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
10098 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
10099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
10100 * sysdeps/unix/sysv/linux/umount.S: Likewise.
10101 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
10102
10103 2018-03-26 Andreas Schwab <schwab@suse.de>
10104
10105 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
10106 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
10107 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
10108 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
10109 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
10110 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
10111 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
10112 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
10113 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
10114 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
10115 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
10116 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
10117 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
10118 (R_RISCV_NUM): Define.
10119
10120 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10121
10122 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
10123 TLS declaration of errno.
10124 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
10125 __libc_setup_tls.
10126 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
10127 (ARCH_SETUP_TLS): Likewise.
10128 * sysdeps/mach/hurd/libc-start.h: New file copied from
10129 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
10130 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
10131 instead of __libc_setup_tls.
10132 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
10133 __libc_setup_tls before initializing libpthread and running _hurd_init
10134 which starts the signal thread.
10135 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
10136 Declare function.
10137 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10138
10139 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
10140
10141 [BZ #22998]
10142 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
10143 after it is defined.
10144
10145 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
10146 Max Horn <max@quendi.de>
10147
10148 [BZ #22644]
10149 CVE-2017-18269
10150 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
10151 branch conditions.
10152 * string/test-memmove.c (do_test2): New testcase.
10153
10154 2018-03-22 Joseph Myers <joseph@codesourcery.com>
10155
10156 * sysdeps/generic/frame.h: Remove file.
10157 * sysdeps/arm/frame.h: Likewise.
10158 * sysdeps/hppa/frame.h: Likewise.
10159 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
10160 macro.
10161 (GET_FRAME): Likewise.
10162 (GET_STACK): Likewise.
10163 (CALL_SIGHANDLER): Likewise.
10164 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
10165 Likewise.
10166 (GET_FRAME): Likewise.
10167 (GET_STACK): Likewise.
10168 (CALL_SIGHANDLER): Likewise.
10169 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
10170 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10171 (GET_FRAME): Likewise.
10172 (GET_STACK): Likewise.
10173 (CALL_SIGHANDLER): Likewise.
10174 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
10175 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10176 (GET_FRAME): Likewise.
10177 (GET_STACK): Likewise.
10178 (ADVANCE_STACK_FRAME): Likewise.
10179 (CALL_SIGHANDLER): Likewise.
10180 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
10181 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10182 (GET_FRAME): Likewise.
10183 (GET_STACK): Likewise.
10184 (CALL_SIGHANDLER): Likewise.
10185 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
10186 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10187 (GET_FRAME): Likewise.
10188 (GET_STACK): Likewise.
10189 (CALL_SIGHANDLER): Likewise.
10190 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
10191 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10192 (GET_FRAME): Likewise.
10193 (GET_STACK): Likewise.
10194 (CALL_SIGHANDLER): Likewise.
10195 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
10196 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10197 (GET_FRAME): Likewise.
10198 (GET_STACK): Likewise.
10199 (CALL_SIGHANDLER): Likewise.
10200 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
10201 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10202 (GET_FRAME): Likewise.
10203 (GET_STACK): Likewise.
10204 (CALL_SIGHANDLER): Likewise.
10205 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
10206 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10207 (GET_FRAME): Likewise.
10208 (GET_STACK): Likewise.
10209 (CALL_SIGHANDLER): Likewise.
10210 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
10211 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10212 (GET_FRAME): Likewise.
10213 (GET_STACK): Likewise.
10214 (CALL_SIGHANDLER): Likewise.
10215 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
10216 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10217 (GET_FRAME): Likewise.
10218 (GET_STACK): Likewise.
10219 (CALL_SIGHANDLER): Likewise.
10220 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
10221 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10222 (GET_FRAME): Likewise.
10223 (GET_STACK): Likewise.
10224 (CALL_SIGHANDLER): Likewise.
10225 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
10226 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10227 (FIRST_FRAME_POINTER): Likewise.
10228 (ADVANCE_STACK_FRAME): Likewise.
10229 (GET_STACK): Likewise.
10230 (GET_FRAME): Likewise.
10231 (CALL_SIGHANDLER): Likewise.
10232 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
10233 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10234 (ADVANCE_STACK_FRAME): Likewise.
10235 (GET_STACK): Likewise.
10236 (GET_FRAME): Likewise.
10237 (CALL_SIGHANDLER): Likewise.
10238 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
10239 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10240 (GET_FRAME): Likewise.
10241 (GET_STACK): Likewise.
10242 (CALL_SIGHANDLER): Likewise.
10243 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
10244 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10245 (GET_FRAME): Likewise.
10246 (GET_STACK): Likewise.
10247 (CALL_SIGHANDLER): Likewise.
10248
10249 2018-03-21 Joseph Myers <joseph@codesourcery.com>
10250
10251 * sysdeps/x86_64/backtrace.c: Move to ....
10252 * debug/backtrace.c: ... here.
10253 * sysdeps/aarch64/backtrace.c: Remove file.
10254 * sysdeps/alpha/backtrace.c: Likewise.
10255 * sysdeps/hppa/backtrace.c: Likewise.
10256 * sysdeps/ia64/backtrace.c: Likewise.
10257 * sysdeps/mips/backtrace.c: Likewise.
10258 * sysdeps/nios2/backtrace.c: Likewise.
10259 * sysdeps/riscv/backtrace.c: Likewise.
10260 * sysdeps/sh/backtrace.c: Likewise.
10261 * sysdeps/tile/backtrace.c: Likewise.
10262
10263 2018-03-20 Joseph Myers <joseph@codesourcery.com>
10264
10265 [BZ #22987]
10266 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
10267 function.
10268 (fdimf): Likewise.
10269 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
10270
10271 [BZ #17343]
10272 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
10273 possibly overflowing computations.
10274
10275 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
10276
10277 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
10278 values from Linux-specific section now that it is in the GNU section.
10279 * sysdeps/gnu/errlist.c: Regenerate.
10280
10281 2018-03-20 Joseph Myers <joseph@codesourcery.com>
10282
10283 * math/Makefile (libm-narrow-fns): Add sub.
10284 (libm-test-funcs-narrow): Likewise.
10285 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
10286 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
10287 * math/gen-auto-libm-tests.c (test_functions): Add sub.
10288 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
10289 (NARROW_SUB_ROUND_TO_ODD): Likewise.
10290 (NARROW_SUB_TRIVIAL): Likewise.
10291 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
10292 macro.
10293 (__dsubl): Likewise.
10294 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
10295 dsub.
10296 (CFLAGS-nldbl-dsub.c): New variable.
10297 (CFLAGS-nldbl-fsub.c): Likewise.
10298 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10299 __nldbl_dsubl.
10300 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
10301 prototype.
10302 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
10303 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
10304 * math/auto-libm-test-in: Add tests of sub.
10305 * math/auto-libm-test-out-narrow-sub: New generated file.
10306 * math/libm-test-narrow-sub.inc: New file.
10307 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
10308 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
10309 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
10310 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
10311 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
10312 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
10313 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
10314 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
10315 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
10316 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
10317 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
10318 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
10319 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
10320 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
10321 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
10322 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
10323 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
10324 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
10325 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10326 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10327 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10328 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10329 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10330 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10331 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10332 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10333 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10334 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10335 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10336 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10337 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10338 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10343 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10344 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10345 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10346 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10347 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10348 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10349 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
10350 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
10351 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10352 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10353
10354 2018-03-19 Joseph Myers <joseph@codesourcery.com>
10355
10356 [BZ #20079]
10357 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
10358
10359 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
10360
10361 * benchtests/bench-timing.h (attribute_hidden): Undefine.
10362
10363 2018-03-18 Richard Braun <rbraun@sceen.net>
10364
10365 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
10366 thread reference.
10367
10368 2018-03-18 Agustina Arzille <avarzille@riseup.net>
10369
10370 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
10371 (__libc_cleanup_fct): Define function.
10372 (__libc_cleanup_region_start, __libc_cleanup_region_end,
10373 __libc_cleanup_end): Rewrite implementation using
10374 __attribute__ ((__cleanup__)).
10375 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
10376 * hurd/Makefile (routines): Add hurdlock.
10377 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
10378 interface.
10379 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
10380 * hurd/hurdpid.c: Include <lowlevellock.h>
10381 (_S_msg_proc_newids): Use lll_wait to synchronize.
10382 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
10383 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
10384 * mach/Makefile (lock-headers): Remove machine-lock.h.
10385 * mach/lock-intern.h: Include <lowlevellock.h> instead of
10386 <machine-lock.h>.
10387 (__spin_lock_t): New type.
10388 (__SPIN_LOCK_INITIALIZER): New macro.
10389 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
10390 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
10391 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
10392 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
10393 (__mutex_init): Initialize with lll.
10394 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
10395 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
10396 needing lll.
10397 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10398 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
10399 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
10400 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
10401 (__setpgid): Use lll for synchronization.
10402 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
10403 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
10404 instead of <cthreads.h>.
10405 (_IO_lock_inexpensive): New macro
10406 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
10407 (__libc_lock_self0): New declaration.
10408 (__libc_lock_owner_self): New macro.
10409 (__libc_key_t): Remove type.
10410 (_LIBC_LOCK_INITIALIZER): New macro.
10411 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
10412 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
10413 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
10414 __libc_lock_define_initialized_recursive,
10415 __rtld_lock_define_initialized_recursive,
10416 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
10417 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
10418 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
10419 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
10420 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
10421 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
10422 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
10423 New macros.
10424 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
10425 * hurd/hurdlock.c: New file.
10426 * hurd/hurdlock.h: New file.
10427 * mach/lowlevellock.h: New file
10428
10429 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10430
10431 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
10432 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
10433 when opening a symlink with O_NOFOLLOW.
10434 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
10435 path when flags contains O_NOFOLLOW.
10436 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
10437 if flags contains O_DIRECTORY and the result is a directory.
10438 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
10439 oneself when the pointer given in D is nul (as set by ext2fs).
10440 * sysdeps/mach/hurd/mlockall.c: New file.
10441 * sysdeps/mach/hurd/munlockall.c: New file.
10442
10443 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
10444
10445 * hurd/hurdsig.c: Include <pthread.h>.
10446 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
10447 get the signal thread stack layout.
10448 * hurd/Makefile (headers): Remove threadvar.h.
10449 (inline-headers): Remove threadvar.h.
10450 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
10451 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
10452 __hurd_threadvar_max, __hurd_errno_location.
10453 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
10454 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
10455 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
10456 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
10457 unless TLS is not initialized yet, in which case we do not need a
10458 critical section yet anyway.
10459 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
10460 <machine-sp.h>.
10461 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
10462 declarations.
10463 (__hurd_threadvar_index): Remove enum.
10464 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
10465 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
10466 inlines.
10467 (__hurd_reply_port0): New variable declaration.
10468 (__hurd_local_reply_port): New macro.
10469 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
10470 (interrupted_reply_port_location): Add thread_t parameter. Use it
10471 with THREAD_TCB to access thread-local variables.
10472 (_hurdsig_abort_rpcs): Pass ss->thread to
10473 interrupted_reply_port_location.
10474 (_hurd_internal_post_signal): Likewise.
10475 (_hurdsig_init): Use presence of cthread_fork instead of
10476 __hurd_threadvar_stack_mask to start signal thread by hand.
10477 Remove signal thread threadvar initialization.
10478 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
10479 * hurd/sigunwind.c: Include <hurd/threadvar.h>
10480 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
10481 of threadvar.
10482 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
10483 __libc_lock_self0.
10484 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
10485 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
10486 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
10487 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
10488 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
10489 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
10490 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
10491 define variables.
10492 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
10493 <hurd/threadvar.h>.
10494 [IS_IN(rtld)] (rtld_errno): New variable.
10495 [IS_IN(rtld)] (__errno_location): New weak function.
10496 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
10497 * sysdeps/mach/hurd/errno.c: Remove file.
10498 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
10499 (__fork): Remove THREADVAR_SPACE macro and its use.
10500 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
10501 variable.
10502 (init): Do not initialize threadvar.
10503 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
10504 symbol.
10505 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
10506 __hurd_local_reply_port instead of threadvar.
10507 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
10508 _hurd_sigstate fields.
10509 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
10510 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
10511 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
10512 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
10513 instead of threadvar.
10514 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
10515 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
10516 (use_threadvar, global_reply_port): Remove variables.
10517 (__hurd_reply_port0): New variable.
10518 (__mig_get_reply_port): Use __hurd_local_reply_port and
10519 __hurd_reply_port0 instead of threadvar.
10520 (__mig_dealloc_reply_port): Likewise.
10521 (__mig_init): Do not initialize threadvar.
10522 * sysdeps/mach/hurd/profil.c: Fix comment.
10523 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
10524 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
10525 cthread_keycreate, cthread_getspecific, cthread_setspecific to
10526 __cthread_fork, __cthread_detach, __pthread_getattr_np,
10527 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
10528 __cthread_setspecific.
10529 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
10530 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
10531 __cthread_t instead of cthread_fork, cthread_detach,
10532 pthread_getattr_np, pthread_attr_getstack.
10533 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
10534 __cthread_keycreate.
10535 (cthread_getspecific): Rename to __cthread_getspecific.
10536 (cthread_setspecific): Rename to __cthread_setspecific.
10537 (__libc_getspecific): Use __cthread_getspecific instead of
10538 cthread_getspecific.
10539 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
10540 __cthread_keycreate instead of cthread_keycreate.
10541 (__libc_setspecific): Use __cthread_setspecific instead of
10542 cthread_setspecific.
10543 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
10544 Likewise.
10545 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
10546 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
10547 testing whether it is defined.
10548
10549 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
10550
10551 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
10552 Define macro.
10553 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
10554 * sysdeps/mach/i386/thread_state.h
10555 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
10556 i386_THREAD_STATE.
10557 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
10558 i386_THREAD_STATE.
10559 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
10560
10561 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
10562 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
10563
10564 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
10565 macros.
10566 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
10567 descriptor instead of creating a new one.
10568 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
10569
10570 * mach/setup-thread.c: Include <ldsodefs.h>.
10571 (__mach_setup_thread): Call _dl_allocate_tls, pass
10572 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
10573 MACHINE_THREAD_STATE_FLAVOR, before getting
10574 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
10575 MACHINE_THREAD_STATE_FLAVOR with the result.
10576 * hurd/hurdfault.c (_hurdsig_fault_init): Call
10577 MACHINE_THREAD_STATE_FIX_NEW.
10578 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
10579 too. Add original thread parameter.
10580
10581 2018-03-16 Joseph Myers <joseph@codesourcery.com>
10582
10583 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
10584 Remove inline function.
10585
10586 * sysdeps/i386/fpu/libm-test-ulps: Update.
10587 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
10588
10589 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
10590
10591 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
10592 commit.
10593
10594 2018-03-15 Joseph Myers <joseph@codesourcery.com>
10595
10596 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
10597 (__sincos_code): Remove define and undefine.
10598 [__FAST_MATH__] (__sincos): Remove inline function.
10599 [__FAST_MATH__] (__sincosf): Remove inline function.
10600 [__FAST_MATH__] (__sincosl): Remove inline function.
10601 (__atan2l): Remove inline functions.
10602 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
10603 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
10604 function.
10605 (floor): Remove inline function.
10606 (ceil): Likewise.
10607 [__FAST_MATH__] (__ldexp_code): Remove macro.
10608 [__FAST_MATH__] (ldexp): Remove inline function.
10609 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
10610 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
10611 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
10612 [__USE_ISOC99] (__lrint_code): Remove macro.
10613 [__USE_ISOC99] (__llrint_code): Likewise.
10614 [__USE_ISOC99] (lrintf): Remove inline function.
10615 [__USE_ISOC99] (lrint): Likewise.
10616 [__USE_ISOC99] (lrintl): Likewise.
10617 [__USE_ISOC99] (llrint): Likewise.
10618 [__USE_ISOC99] (llrintf): Likewise.
10619 [__USE_ISOC99] (llrintl): Likewise.
10620
10621 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10622
10623 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
10624 (__ieee754_sqrtf): Remove.
10625 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
10626 (__ieee754_sqrtf): Remove.
10627 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
10628 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
10629 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
10630 (__ieee754_sqrtf): Remove.
10631 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
10632 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
10633 (sqrtf): Remove.
10634 (sqrtl): Remove.
10635 (__ieee754_sqrt): Remove.
10636 (__ieee754_sqrtf): Remove.
10637 (__ieee754_sqrtl): Remove.
10638 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
10639 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
10640 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
10641 (__ieee754_sqrtf): Remove.
10642 (__ieee754_sqrtl): Remove.
10643
10644 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10645
10646 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
10647 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
10648 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
10649 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
10650 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
10651 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
10652 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
10653 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
10654 Likewise.
10655 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
10656 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
10657 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
10658 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
10659 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
10660 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
10661 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
10662 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
10663 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
10664 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
10665 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
10666 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
10667 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
10668 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
10669 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
10670 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
10671 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
10672 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
10673 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
10674 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
10675 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
10676 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
10677 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
10678 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
10679 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
10680 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
10681 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
10682 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
10683 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
10684 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
10685 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
10686 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
10687 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
10688 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
10689 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10690 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
10691 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
10692 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
10693 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
10694 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
10695
10696 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10697
10698 * include/math.h (sqrt): Declare with asm redirect.
10699 (sqrtf): Likewise.
10700 (sqrtl): Likewise.
10701 (sqrtf128): Likewise.
10702 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
10703 nonlib and libnldbl with -fmath-errno.
10704 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
10705 * math/w_sqrt_template.c: Likewise.
10706 * math/w_sqrtf_compat.c: Likewise.
10707 * math/w_sqrtl_compat.c: Likewise.
10708 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
10709 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
10710 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
10711 complex.h.
10712
10713 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
10714
10715 * benchtests/Makefile: Define _ISOMAC.
10716 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
10717 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
10718 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
10719 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
10720 * benchtests/bench-timing.h: Define attribute_hidden.
10721
10722 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10723
10724 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
10725 mov + lsr.
10726
10727 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
10728
10729 [BZ #22963]
10730 * localedata/locales/cs_CZ (mon): Rename to...
10731 (alt_mon): This.
10732 (mon): Import from CLDR (genitive case).
10733
10734 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
10735
10736 [BZ #22937]
10737 * localedata/locales/el_CY (abmon): Rename to...
10738 (ab_alt_mon): This.
10739 (abmon): Import from CLDR (abbreviated genitive case).
10740 * localedata/locales/el_GR (abmon): Rename to...
10741 (ab_alt_mon): This.
10742 (abmon): Import from CLDR (abbreviated genitive case).
10743
10744 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
10745
10746 [BZ #22932]
10747 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
10748
10749 2018-03-15 Robert Buj <robert.buj@gmail.com>
10750
10751 [BZ #22848]
10752 * localedata/locales/ca_ES (abmon): Rename to...
10753 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
10754 (mon): Rename to...
10755 (alt_mon): This.
10756 (abmon): Import from CLDR (genitive case, month names preceded by
10757 "de" or "d’").
10758 (mon): Likewise.
10759 (abday): Synchronize with CLDR.
10760 (d_t_fmt): Likewise.
10761 (d_fmt): Likewise.
10762 (am_pm): Likewise.
10763
10764 (LC_TIME): Improve indentation.
10765 (LC_TELEPHONE): Likewise.
10766 (LC_NAME): Likewise.
10767 (LC_ADDRESS): Likewise.
10768
10769 2018-03-14 Joseph Myers <joseph@codesourcery.com>
10770
10771 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
10772 (lrintf): Remove definitions used only with old GCC.
10773 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
10774 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
10775 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
10776 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
10777 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
10778 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
10779 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
10780 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
10781 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
10782 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
10783 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
10784 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
10785 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
10786 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
10787 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
10788 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
10789 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
10790 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
10791 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
10792 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
10793 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
10794 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
10795 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
10796 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
10797 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
10798 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
10799 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
10800 [__FAST_MATH__] (__M_SQRT2): Remove macro.
10801
10802 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
10803
10804 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
10805 instruction to unbreak builds with binutils 2.26 and older.
10806
10807 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
10808
10809 * sysdeps/aarch64/strncmp.S (count): New macro.
10810 (strncmp): Store misaligned length in SRC1 in COUNT.
10811 (mutual_align): Adjust.
10812 (misaligned8): Load dword at a time when it is safe.
10813
10814 2018-03-12 Zack Weinberg <zackw@panix.com>
10815
10816 [BZ #1190]
10817 [BZ #19476]
10818 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
10819 if the _IO_EOF_SEEN bit is already set; update commentary.
10820 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
10821 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
10822
10823 * support/support_openpty.c, support/tty.h: New files.
10824 * support/Makefile (libsupport-routines): Add support_openpty.
10825
10826 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
10827 New test cases.
10828 * libio/Makefile (tests): Add tst-fgetc-after-eof.
10829 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
10830
10831 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
10832
10833 * po/pt_BR.po: Update translations.
10834
10835 2018-03-12 David Michael <fedora.dm0@gmail.com>
10836
10837 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
10838 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
10839 get a port to the startup server.
10840
10841 2018-03-11 Zack Weinberg <zackw@panix.com>
10842
10843 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
10844 before nldbl-compat.h.
10845
10846 2018-03-10 Zack Weinberg <zackw@panix.com>
10847
10848 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
10849 math.h or math_private.h.
10850
10851 * sysdeps/alpha/fpu/s_isnan.c
10852 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
10853 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
10854 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
10855 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
10856 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
10857 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
10858 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
10859 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
10860 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
10861 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
10862 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
10863 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
10864 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
10865 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
10866 Include math_private.h.
10867
10868 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
10869 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
10870 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
10871 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
10872 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
10873 * sysdeps/powerpc/power7/fpu/s_logb.c:
10874 Include math.h and math_private.h.
10875
10876 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
10877 uses of $at in .set noat / .set at.
10878
10879 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
10880
10881 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
10882 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
10883 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
10884 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
10885 Likewise.
10886
10887 2018-03-09 Florian Weimer <fweimer@redhat.com>
10888
10889 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
10890 in comment.
10891
10892 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
10893
10894 [BZ #22919]
10895 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
10896 Add nop before __startcontext, add explaining comments.
10897
10898 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10899
10900 [BZ #22926]
10901 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
10902 empty for __SPE__.
10903 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
10904 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
10905 Do not build hardware transactional code for __SPE__.
10906 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10907 (__lll_trylock_elision): Likewise.
10908 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10909 (__lll_unlock_elision): Likewise.
10910
10911 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
10912 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
10913 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
10914 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
10915 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
10916 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
10917 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
10918 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
10919 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
10920 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
10921 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
10922 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
10923 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
10924 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
10925 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
10926 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
10927 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
10928 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
10929 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
10930 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
10931 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
10932 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10933 (__ASSUME_CLONE_BACKWARDS): Define.
10934 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
10935 __clone2 if __NR_clone2 is defined.
10936 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10937 (__ASSUME_CLONE_BACKWARDS): Likewise.
10938 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10939 (__ASSUME_CLONE_BACKWARDS): Likewise.
10940 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10941 (__ASSUME_CLONE2): Likewise.
10942 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10943 (__ASSUME_CLONE_BACKWARDS3): Likewise.
10944 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
10945 variants and the define architecture can use.
10946 (__ASSUME_CLONE_DEFAULT): Define as default.
10947 * sysdeps/unix/sysv/linux/mips/kernel-features.h
10948 (__ASSUME_CLONE_BACKWARDS): Likewise.
10949 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10950 (__ASSUME_CLONE_BACKWARDS): Likewise.
10951 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10952 (__ASSUME_CLONE_BACKWARDS2): Likewise.
10953
10954 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
10955
10956 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
10957
10958 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
10959 time.
10960
10961 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
10962 (do_test_limit): Likewise.
10963
10964 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
10965 for every implementation.
10966 (do_test): Likewise.
10967
10968 * benchtests/bench-strncmp.c: Convert output to json.
10969
10970 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
10971
10972 * io/futimens.c: Add missing start-of-file descriptive comment.
10973 * io/utime.c: Likewise.
10974 * misc/futimesat.c: Likewise.
10975 * misc/utimes.c: Likewise.
10976 * sysdeps/mach/hurd/futimesat.c: Likewise.
10977 * sysdeps/mach/hurd/utimes.c: Likewise.
10978 * sysdeps/posix/utime.c: Likewise.
10979 * sysdeps/posix/utimes.c: Likewise.
10980 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
10981 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
10982 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
10983 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
10984
10985 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
10986
10987 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
10988 hurd_futimes.
10989 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
10990 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
10991 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
10992 (__futimens): Move implementation to...
10993 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
10994 utime_tvalue_from_tspec): ... new helper functions.
10995 (hurd_futimens): New function.
10996 * sysdeps/mach/hurd/futimesat.c: New file.
10997 * sysdeps/mach/hurd/utimensat.c: New file.
10998
10999 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
11000
11001 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
11002 UTIME_OMIT): New macros.
11003 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
11004 before reverting to converting time spec to time value and calling
11005 __file_utimes.
11006 * sysdeps/mach/hurd/utime-helper.c: New file.
11007 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
11008 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
11009 reverting to utime_tvalue_from_tval and __file_utimes.
11010 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
11011 (__lutimes): Just call hurd_futimens after lookup.
11012 * sysdeps/mach/hurd/utimes.c: Likewise.
11013
11014 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11015
11016 * bits/sigaction.h: Add include guard.
11017 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
11018 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
11019 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
11020 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
11021 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
11022 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
11023 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
11024 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
11025 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
11026
11027 2018-03-05 Joseph Myers <joseph@codesourcery.com>
11028
11029 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
11030 -Wmaybe-uninitialized for -Os.
11031 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
11032 this disabling.
11033
11034 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11035
11036 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
11037 __INO_T_MATCHES_INO64_T is defined.
11038 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
11039 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
11040 of definition.
11041 * dirent/alphasort64.c: Likewise.
11042 * dirent/scandir.c: Likewise.
11043 * dirent/scandir64-tail.c: Likewise.
11044 * dirent/scandir64.c: Likewise.
11045 * dirent/scandirat.c: Likewise.
11046 * dirent/scandirat64.c: Likewise.
11047 * dirent/versionsort.c: Likewise.
11048 * dirent/versionsort64.c: Likewise.
11049 * include/dirent.h: Likewise.
11050
11051 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
11052 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
11053 for socketpair endpoint.
11054 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
11055 WRITE_BUFFER_SIZE as buffer size for sending socket.
11056 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
11057 issue on system where send is implemented with sendto syscall.
11058 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
11059 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
11060 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
11061 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
11062
11063 [BZ #21269]
11064 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
11065 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
11066 sa_restorer for vDSO case.
11067 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
11068
11069 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11070
11071 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
11072 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
11073 * hurd/hurd/ioctl.h: Include <mach/port.h>
11074 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
11075 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
11076 <mach/mach_types.h> and <mach/message.h>.
11077 (headers): Move mach/param.h to bits/mach/param.h.
11078 * sysdeps/mach/i386/mach/param.h: Move file to ...
11079 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
11080 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
11081 of <mach/param.h>.
11082 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
11083 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
11084 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
11085 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
11086 trivial, for C++ conformity.
11087 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
11088 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
11089 Process mig output through $(migheadersed).
11090 * hurd/Makefile (migheadersed): Define variable.
11091 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
11092 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
11093 headers.
11094 * hurd/hurd.h: Include <bits/types/sigset_t.h>
11095 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
11096 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
11097 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
11098 <bits/types/sigset_t.h>.
11099 [!defined __USE_GNU]: Do not #error out.
11100 (struct hurd_sigstate): Use _NSIG instead of NSIG.
11101 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
11102 Include <stddef.h> and <bits/types/sigset_t.h>
11103 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
11104 instead of sighandler_t.
11105 * stdlib/errno.h (error_t): Move definition to...
11106 * bits/types/error_t.h: ... new header.
11107 * stdlib/Makefile (headers): Add bits/types/error_t.h.
11108 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
11109 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
11110 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
11111 * hurd/hurd.h: Include <bits/types/error_t.h>
11112 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
11113 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
11114 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
11115 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
11116 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
11117 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
11118 * sysdeps/mach/hurd/futimens.c: New file.
11119
11120 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
11121
11122 [BZ #22918]
11123 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
11124 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
11125 * nscd/gai.c (__nss_hosts_database): Readd definition.
11126 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
11127 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
11128 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
11129
11130 2018-03-02 Joseph Myers <joseph@codesourcery.com>
11131
11132 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
11133 (ifunc_one): Likewise.
11134
11135 2018-03-01 DJ Delorie <dj@delorie.com>
11136
11137 [BZ #22342]
11138 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
11139 key value.
11140
11141 2018-03-01 Maciej W. Rozycki <macro@mips.com>
11142
11143 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
11144 `match_pid' parameter.
11145 (td_ta_thr_iter): Update accordingly.
11146
11147 2018-03-01 Florian Weimer <fweimer@redhat.com>
11148
11149 * nptl/Makefile (install-lib-ldscripts): Remove.
11150 (install): Remove rule.
11151 ($(inst_libdir)/libpthread.so): Likewise.
11152
11153 2018-03-01 Mike FABIAN <mfabian@redhat.com>
11154
11155 [BZ #22896]
11156 * localedata/locales/an_ES: update month and day names,
11157 improve d_fmt, improve postal_fmt, add country_post,
11158 add country_isbn
11159
11160 2018-03-01 Mike FABIAN <mfabian@redhat.com>
11161
11162 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
11163 Ukrainian instead of Bulgarian.
11164
11165 2018-03-01 Florian Weimer <fweimer@redhat.com>
11166
11167 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
11168 reference.
11169
11170 2018-03-01 Florian Weimer <fweimer@redhat.com>
11171
11172 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
11173 * nptl/Makefile (routines): Add pthread_atfork.
11174 (static-only-routines): Set to pthread_atfork.
11175 (libpthread-routines): Remove pthread_atfork.
11176 (libpthread-static-only-routines): Remove.
11177 (install): Update comment.
11178 (libpthread.so): Do not install libpthread_nonshared.a.
11179 (tests): Do not link with libpthread_nonshared.a.
11180 (generated): Remove libpthread_nonshared.a.
11181 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
11182 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
11183 with libpthread_nonshared.a.
11184
11185 2018-02-28 Joseph Myers <joseph@codesourcery.com>
11186
11187 [BZ #22902]
11188 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
11189 (libc_feholdexcept_setroundf128): New macro.
11190 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
11191
11192 [BZ #15105]
11193 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
11194 libc_hidden_def.
11195 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
11196 * include/inttypes.h: New file.
11197
11198 2018-02-27 Joseph Myers <joseph@codesourcery.com>
11199
11200 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
11201 -Os in two more places.
11202
11203 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11204
11205 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
11206 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
11207 be sorted correctly at the moment because of a bug.
11208
11209 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11210
11211 [BZ #22550] - es_ES locale (and other es_* locales): collation should
11212 treat ñ as a primary different character, sync the collation
11213 for Spanish with CLDR.
11214 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
11215 * localedata/Makefile: Add new test files.
11216 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
11217 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
11218 collation order.
11219 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
11220 * localedata/am_ET.UTF-8.in: New test file.
11221 * localedata/az_AZ.UTF-8.in: Likewise.
11222 * localedata/be_BY.UTF-8.in: Likewise.
11223 * localedata/ber_DZ.UTF-8.in: Likewise.
11224 * localedata/ber_MA.UTF-8.in: Likewise.
11225 * localedata/bg_BG.UTF-8.in: Likewise.
11226 * localedata/br_FR.UTF-8.in: Likewise.
11227 * localedata/cmn_TW.UTF-8.in: Likewise.
11228 * localedata/crh_UA.UTF-8.in: Likewise.
11229 * localedata/csb_PL.UTF-8.in: Likewise.
11230 * localedata/cv_RU.UTF-8.in: Likewise.
11231 * localedata/cy_GB.UTF-8.in: Likewise.
11232 * localedata/dz_BT.UTF-8.in: Likewise.
11233 * localedata/eo.UTF-8.in: Likewise.
11234 * localedata/es_ES.UTF-8.in: Likewise.
11235 * localedata/fa_IR.UTF-8.in: Likewise.
11236 * localedata/fi_FI.UTF-8.in: Likewise.
11237 * localedata/fil_PH.UTF-8.in: Likewise.
11238 * localedata/fur_IT.UTF-8.in: Likewise.
11239 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
11240 * localedata/ha_NG.UTF-8.in: Likewise.
11241 * localedata/ig_NG.UTF-8.in: Likewise.
11242 * localedata/ik_CA.UTF-8.in: Likewise.
11243 * localedata/kk_KZ.UTF-8.in: Likewise.
11244 * localedata/ku_TR.UTF-8.in: Likewise.
11245 * localedata/ky_KG.UTF-8.in: Likewise.
11246 * localedata/ln_CD.UTF-8.in: Likewise.
11247 * localedata/mi_NZ.UTF-8.in: Likewise.
11248 * localedata/ml_IN.UTF-8.in: Likewise.
11249 * localedata/mn_MN.UTF-8.in: Likewise.
11250 * localedata/mr_IN.UTF-8.in: Likewise.
11251 * localedata/mt_MT.UTF-8.in: Likewise.
11252 * localedata/nb_NO.UTF-8.in: Likewise.
11253 * localedata/om_KE.UTF-8.in: Likewise.
11254 * localedata/os_RU.UTF-8.in: Likewise.
11255 * localedata/ps_AF.UTF-8.in: Likewise.
11256 * localedata/ro_RO.UTF-8.in: Likewise.
11257 * localedata/ru_RU.UTF-8.in: Likewise.
11258 * localedata/sc_IT.UTF-8.in: Likewise.
11259 * localedata/se_NO.UTF-8.in: Likewise.
11260 * localedata/sq_AL.UTF-8.in: Likewise.
11261 * localedata/sv_SE.UTF-8.in: Likewise.
11262 * localedata/szl_PL.UTF-8.in: Likewise.
11263 * localedata/tg_TJ.UTF-8.in: Likewise.
11264 * localedata/tk_TM.UTF-8.in: Likewise.
11265 * localedata/tt_RU.UTF-8.in: Likewise.
11266 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
11267 * localedata/ug_CN.UTF-8.in: Likewise.
11268 * localedata/uz_UZ.UTF-8.in: Likewise.
11269 * localedata/vi_VN.UTF-8.in: Likewise.
11270 * localedata/yi_US.UTF-8.in: Likewise.
11271 * localedata/yo_NG.UTF-8.in: Likewise.
11272 * localedata/zh_CN.UTF-8.in: Likewise.
11273 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
11274 file and fix bugs in the collation.
11275 * localedata/locales/az_AZ: Likewise.
11276 * localedata/locales/be_BY: Likewise.
11277 * localedata/locales/ber_DZ: Likewise.
11278 * localedata/locales/ber_MA: Likewise.
11279 * localedata/locales/bg_BG: Likewise.
11280 * localedata/locales/br_FR: Likewise.
11281 * localedata/locales/br_FR@euro: Likewise.
11282 * localedata/locales/ca_ES: Likewise.
11283 * localedata/locales/cns11643_stroke: Likewise.
11284 * localedata/locales/crh_UA: Likewise.
11285 * localedata/locales/cs_CZ: Likewise.
11286 * localedata/locales/csb_PL: Likewise.
11287 * localedata/locales/cv_RU: Likewise.
11288 * localedata/locales/cy_GB: Likewise.
11289 * localedata/locales/da_DK: Likewise.
11290 * localedata/locales/dz_BT: Likewise.
11291 * localedata/locales/en_CA: Likewise.
11292 * localedata/locales/eo: Likewise.
11293 * localedata/locales/es_CU: Likewise.
11294 * localedata/locales/es_EC: Likewise.
11295 * localedata/locales/es_ES: Likewise.
11296 * localedata/locales/es_US: Likewise.
11297 * localedata/locales/et_EE: Likewise.
11298 * localedata/locales/fa_IR: Likewise.
11299 * localedata/locales/fi_FI: Likewise.
11300 * localedata/locales/fil_PH: Likewise.
11301 * localedata/locales/fur_IT: Likewise.
11302 * localedata/locales/gez_ER@abegede: Likewise.
11303 * localedata/locales/ha_NG: Likewise.
11304 * localedata/locales/hr_HR: Likewise.
11305 * localedata/locales/hsb_DE: Likewise.
11306 * localedata/locales/hu_HU: Likewise.
11307 * localedata/locales/ig_NG: Likewise.
11308 * localedata/locales/ik_CA: Likewise.
11309 * localedata/locales/is_IS: Likewise.
11310 * localedata/locales/iso14651_t1_pinyin: Likewise.
11311 * localedata/locales/kk_KZ: Likewise.
11312 * localedata/locales/ku_TR: Likewise.
11313 * localedata/locales/ky_KG: Likewise.
11314 * localedata/locales/ln_CD: Likewise.
11315 * localedata/locales/lt_LT: Likewise.
11316 * localedata/locales/lv_LV: Likewise.
11317 * localedata/locales/mi_NZ: Likewise.
11318 * localedata/locales/ml_IN: Likewise.
11319 * localedata/locales/mn_MN: Likewise.
11320 * localedata/locales/mr_IN: Likewise.
11321 * localedata/locales/mt_MT: Likewise.
11322 * localedata/locales/nb_NO: Likewise.
11323 * localedata/locales/om_KE: Likewise.
11324 * localedata/locales/os_RU: Likewise.
11325 * localedata/locales/pl_PL: Likewise.
11326 * localedata/locales/ps_AF: Likewise.
11327 * localedata/locales/ro_RO: Likewise.
11328 * localedata/locales/ru_RU: Likewise.
11329 * localedata/locales/ru_UA: Likewise.
11330 * localedata/locales/sc_IT: Likewise.
11331 * localedata/locales/se_NO: Likewise.
11332 * localedata/locales/si_LK: Likewise.
11333 * localedata/locales/sq_AL: Likewise.
11334 * localedata/locales/sv_FI: Likewise.
11335 * localedata/locales/sv_FI@euro: Likewise.
11336 * localedata/locales/sv_SE: Likewise.
11337 * localedata/locales/szl_PL: Likewise.
11338 * localedata/locales/tg_TJ: Likewise.
11339 * localedata/locales/ti_ER: Likewise.
11340 * localedata/locales/tk_TM: Likewise.
11341 * localedata/locales/tl_PH: Likewise.
11342 * localedata/locales/tr_TR: Likewise.
11343 * localedata/locales/tt_RU: Likewise.
11344 * localedata/locales/tt_RU@iqtelif: Likewise.
11345 * localedata/locales/ug_CN: Likewise.
11346 * localedata/locales/uk_UA: Likewise.
11347 * localedata/locales/uz_UZ: Likewise.
11348 * localedata/locales/uz_UZ@cyrillic: Likewise.
11349 * localedata/locales/vi_VN: Likewise.
11350 * localedata/locales/yi_US: Likewise.
11351 * localedata/locales/yo_NG: Likewise.
11352
11353 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11354
11355 * gen-locales.mk: Make test files which contain @ modifiers in their
11356 name work.
11357 * localedata/gen-locale.sh: Likewise.
11358
11359 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11360
11361 * posix/tst-fnmatch.input: Fix results for range expressions
11362 for non C locales.
11363 * posix/tst-regexloc.c: Do not use a range expression for
11364 de_DE.ISO-8859-1 locale.
11365
11366 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11367
11368 * posix/bug-regex5.c: Fix test case because with the new
11369 iso14651_t1_common file, the da_DK locale now has 6 collating elements
11370 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
11371 file.
11372
11373 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11374
11375 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
11376 downloaded from ISO, the collation order of @-. and space has changed.
11377 Therefore, this test file needed to be adapted.
11378 * localedata/fr_CA.UTF-8.in: Likewise.
11379 * localedata/fr_FR.UTF-8.in: Likewise.
11380 * localedata/uk_UA.UTF-8.in: Likewise.
11381
11382 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11383
11384 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
11385 order of ȥ in the new iso14651_t1_common file.
11386 * localedata/pl_PL.UTF-8.in: Likewise.
11387
11388 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11389
11390 * localedata/locales/iso14651_t1_common: Add sections for various
11391 scripts to the iso14651_t1_common file.
11392
11393 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11394
11395 * localedata/locales/iso14651_t1_common: Use the code point of a
11396 character in the fourth collation level instead of IGNORE for all
11397 entries which have IGNORE on all 4 levels.
11398
11399 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11400
11401 * localedata/locales/iso14651_t1_common: Add some convenient collation
11402 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
11403 rules similar to those in CLDR.
11404
11405 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11406
11407 * localedata/locales/iso14651_t1_common: The new version of this
11408 file downloaded from ISO contained several syntax errors which
11409 are fixed by this patch.
11410
11411 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11412
11413 * localedata/locales/iso14651_t1_common: replace all <U.....>
11414 with <U000.....> because glibc understands only 4 digit or 8 digit
11415
11416 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11417
11418 * localedata/locales/iso14651_t1_common: Necessary changes
11419 to make the file downloaded from ISO usable by glibc.
11420
11421 2018-02-27 Mike FABIAN <mfabian@redhat.com>
11422
11423 [BZ #14095]
11424 * localedata/locales/iso14651_t1_common: Update file to
11425 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
11426
11427 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11428
11429 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
11430 of <nptl/pthreadP.h>
11431 (thread_attr_compare): Move function to...
11432 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
11433 * sysdeps/nptl/timer_routines.h: ... new header.
11434 * sysdeps/mach/hurd/gai_misc.h: New file.
11435
11436 2018-02-26 Joseph Myers <joseph@codesourcery.com>
11437
11438 * string/strcoll_l.c: Include <libc-diag.h>.
11439 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
11440 declarations of seq1 and seq2.
11441
11442 [BZ #15105]
11443 * stdlib/atoi.c (atoi): Use libc_hidden_def.
11444 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
11445
11446 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
11447
11448 [BZ #22433]
11449 [BZ #22807]
11450 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
11451 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
11452 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
11453 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
11454 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
11455 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
11456
11457 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11458
11459 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
11460 macros used in __ptrace_request.
11461
11462 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
11463
11464 [BZ #22792]
11465 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
11466 to $(CC).
11467 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
11468 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
11469 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
11470 <tcb-offsets.h>.
11471
11472 2018-02-23 Joseph Myers <joseph@codesourcery.com>
11473
11474 [BZ #15105]
11475 * ctype/ctype.c (tolower): Use libc_hidden_def.
11476 (toupper): Likewise.
11477 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
11478 [!_ISOMAC] (toupper): Likewise.
11479
11480 2018-02-23 Mike FABIAN <mfabian@redhat.com>
11481
11482 * localedata/Makefile: Remove --quiet argument when
11483 installing locales
11484
11485 2018-02-23 Mike FABIAN <mfabian@redhat.com>
11486
11487 [BZ #17438]
11488 * localedata/locales/pt_BR (LC_TIME): use / instead of -
11489 in d_fmt.
11490 * localedata/locales/pt_PT (LC_TIME): likewise
11491
11492 2018-02-23 Mike FABIAN <mfabian@redhat.com>
11493
11494 [BZ #22646]
11495 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
11496 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
11497 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
11498
11499 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11500
11501 * sysdeps/sparc/fpu/libm-test-ulps: Update.
11502
11503 * nptl/Makefile (routines): Remove unregister-atfork.
11504 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
11505 (fork_handler_alloc): Remove function.
11506 (fork_handlers, fork_handler_init): New variables.
11507 (__fork_lock): Rename to atfork_lock.
11508 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
11509 to use a dynamic array to add/remove atfork handlers.
11510 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
11511 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
11512 Remove declaration.
11513 (fork_handler): Remove next, refcntr, and need_signal member.
11514 (__run_fork_handler_type): New enum.
11515 (__run_fork_handlers): New prototype.
11516 * nptl/register-atfork.c: Remove file.
11517 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
11518
11519 * sysdeps/nptl/nptl-signals.h: Move to ...
11520 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
11521 comments.
11522 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
11523 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
11524 unnecessary check for SIGTIMER.
11525 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
11526 remove unnecessary removal of SIGTIMER.
11527 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
11528 include-signals.h rename.
11529 * nptl/pthreadP.h: Likewise.
11530 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
11531 __is_internal_signal instead of __nptl_is_internal_signal.
11532
11533 2018-02-22 Andrew Waterman <andrew@sifive.com>
11534
11535 [BZ # 22884]
11536 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
11537 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
11538 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
11539 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
11540
11541 2018-02-22 DJ Delorie <dj@delorie.com>
11542
11543 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
11544
11545 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
11546
11547 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
11548 do_misaligned, not misaligned8.
11549
11550 2018-02-22 Steve Ellcey <sellcey@cavium.com>
11551
11552 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
11553 Add memcpy_thunderx2.
11554 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
11555 Increment to 4.
11556 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
11557 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
11558 and IS_THUNDERX2PA checks.
11559 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
11560 Use macro to set name appropriately.
11561 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
11562 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
11563 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
11564 New macro.
11565 (IS_THUNDERX2): New macro.
11566
11567 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
11568
11569 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11570
11571 2018-02-21 Zack Weinberg <zackw@panix.com>
11572
11573 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
11574 Define here, unconditionally.
11575 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
11576 * libio/libioP.h: Remove #if 0 blocks.
11577 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
11578 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
11579 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
11580
11581 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
11582 Assume weak_alias is always defined.
11583
11584 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
11585 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
11586 Remove #if 0 and #ifdef TODO blocks.
11587 Assume text_set_element is always defined.
11588
11589 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
11590 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
11591 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
11592
11593 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
11594 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
11595 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
11596 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
11597 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
11598 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
11599 Reformat bit flags for _flags field to make occupancy clearer.
11600 Update commentary.
11601 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
11602 Keep definitions consistent with those in libio/libio.h.
11603
11604 * libio/libio.h (_IO_file_flags): Remove macro.
11605 All uses changed to _flags.
11606
11607 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
11608 (__HAVE_COLUMN, _IO_BE): Don't define.
11609 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
11610 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
11611 * libio/libioP.h (EOF): Don't define.
11612 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
11613 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
11614 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
11615 testing _IO_UNIFIED_JUMPTABLES.
11616
11617 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
11618 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
11619 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
11620 (_IO_size_t): Delete; all uses changed to size_t.
11621 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
11622 (_IO_off_t): Delete; all uses changed to off_t.
11623 (_IO_off64_t): Delete; all uses changed to off64_t.
11624 (_IO_pid_t): Delete; all uses changed to pid_t.
11625 (_IO_uid_t): Delete; all uses changed to uid_t.
11626 (_IO_wint_t): Delete; all uses changed to wint_t.
11627 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
11628 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
11629 (_IO_cookie_io_functions_t): Delete; all uses changed to
11630 cookie_io_functions_t.
11631 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
11632 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
11633 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
11634 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
11635
11636 * libio/iofopncook.c: Remove unnecessary forward declarations.
11637 * libio/iolibio.h: Correct outdated commentary.
11638 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
11639 * stdio-common/fxprintf.c (__fxprintf_nocancel):
11640 Remove unnecessary casts.
11641 * stdio-common/getline.c: Use _IO_getdelim directly.
11642 Don't redefine ssize_t.
11643 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
11644 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
11645 Remove outdated comments.
11646 * stdio-common/vfscanf.c: Don't redefine va_list.
11647
11648 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
11649 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
11650 Remove preprocessor conditionals on _LIBC and __USE_GNU,
11651 which are always true, and __cplusplus, which is always false.
11652
11653 2018-02-21 Joseph Myers <joseph@codesourcery.com>
11654
11655 [BZ #15105]
11656 [BZ #19463]
11657 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
11658 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
11659 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
11660 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
11661 libc_hidden_proto.
11662 [!_ISOMAC] (putc_unlocked): Likewise.
11663 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
11664 define inline if [__USE_EXTERN_INLINES].
11665 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
11666 putc_unlocked.
11667
11668 [BZ #15105]
11669 [BZ #19463]
11670 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
11671 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
11672 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
11673 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
11674 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
11675 getc_unlocked.
11676 * time/tzfile.c (__tzfile_read): Likewise.
11677
11678 2018-02-21 Mike FABIAN <mfabian@redhat.com>
11679
11680 [BZ #22517]
11681 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
11682
11683 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
11684
11685 * io/fcntl.h: Fix a typo in a comment.
11686
11687 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
11688
11689 [BZ #22862]
11690 * include/features.h: Add _ISOC11_SOURCE to test for whether to
11691 define _DEFAULT_SOURCE.
11692 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
11693
11694 2018-02-21 Florian Weimer <fweimer@redhat.com>
11695
11696 [BZ #20890]
11697 * elf/cache.c (save_cache): Call fsync on temporary file before
11698 renaming it.
11699 (save_aux_cache): Call fdatasync on temporary file before renaming
11700 it.
11701
11702 2018-02-21 Florian Weimer <fweimer@redhat.com>
11703
11704 [BZ #22787]
11705 * include/caller.h: Remove file.
11706 * elf/dl-caller.c: Likewise.
11707 * elf/Makefile (dl-routines): Remove dl-caller.
11708 (shared-only-routines): Do not add dl-caller.
11709 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
11710 __check_caller.
11711 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
11712 member.
11713 (dl_open_worker): Do not call __check_caller.
11714 (_dl_open): Do not set caller_dl_open member.
11715 * elf/rtld.c (_rtld_global_ro): Do not initialize
11716 _dl_check_caller member.
11717 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
11718 _dl_check_caller member.
11719 (_dl_check_caller): Remove declaration.
11720 * sysdeps/unix/sysv/linux/dl-execstack.c
11721 (_dl_make_stack_executable): Do not call __check_caller.
11722
11723 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11724
11725 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
11726 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
11727
11728 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
11729
11730 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
11731 description.
11732
11733 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
11734
11735 [BZ #16335]
11736 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
11737 of 199606L, 200112L, and 200809L.
11738 (_XOPEN_SOURCE): Document special values of 600 and 700.
11739 (_ISOC11_SOURCE): Document macro.
11740 (_ATFILE_SOURCE): Likewise.
11741 (_FORTIFY_SOURCE): Likewise.
11742
11743 2018-02-19 Joseph Myers <joseph@codesourcery.com>
11744
11745 [BZ #15105]
11746 [BZ #19463]
11747 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
11748 and define as weak alias of __ferror_unlocked. Use
11749 libc_hidden_weak.
11750 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
11751 libc_hidden_proto.
11752 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
11753 function if [__USE_EXTERN_INLINES].
11754 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
11755 ferror_unlocked.
11756
11757 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
11758
11759 [BZ #6889]
11760 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
11761
11762 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
11763
11764 [BZ #22818]
11765 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
11766 the GLIBC_2.1 version.
11767
11768 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
11769
11770 [BZ #21508]
11771 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
11772 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
11773 intl/tst-gettext-de.po from po/de.po by removing the
11774 POT-Creation-Date line.
11775 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
11776 ../po/de.po.
11777 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
11778 ../po/de.po.
11779
11780 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
11781
11782 * mach/Makefile (headers): Add mach/param.h.
11783 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
11784 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
11785 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
11786 (__ptsname_r): Move implementation to...
11787 (__ptsname_internal): ... new function. Add filling the STP
11788 structure.
11789
11790 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
11791
11792 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
11793 idouble to 1 ULP.
11794
11795 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
11796
11797 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
11798 syntax.
11799
11800 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
11801
11802 * nptl/Makefile (tst-mutex8-ENV): Delete.
11803 * nptl/tst-mutex8.c (check_type):
11804 Add runtime check if mutex will be elided.
11805
11806 2018-02-15 Joseph Myers <joseph@codesourcery.com>
11807
11808 [BZ #20980]
11809 [BZ #21234]
11810 * manual/install.texi (Configuring and compiling): Describe
11811 passing CC and CFLAGS on configure command line, not as
11812 environment variables. Use @code markup on those variables.
11813 Specify what options go in CC and what go in CFLAGS. Note the
11814 requirement to compile with optimization.
11815 * INSTALL: Regenerated.
11816
11817 [BZ #18124]
11818 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
11819 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
11820 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
11821 __sigprocmask instead of sigprocmask.
11822 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
11823 Likewise.
11824 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
11825 __sigsetjmp and sigprocmask.
11826
11827 [BZ #15105]
11828 * include/argz.h (argz_next): Use libc_hidden_proto.
11829 (__argz_next): Likewise.
11830 * string-argz-next.c (__argz_next): Use libc_hidden_def.
11831 (argz_next): Use libc_hidden_weak.
11832
11833 [BZ #15105]
11834 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
11835 libc_hidden_proto.
11836 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
11837 libc_hidden_def.
11838
11839 [BZ #15105]
11840 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
11841 libc_hidden_proto.
11842 * libio/iofputs.c (fputs): Use libc_hidden_weak.
11843
11844 [BZ #15105]
11845 [BZ #19463]
11846 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
11847 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
11848 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
11849 (__feof_unlocked): New declaration, and inline function if
11850 [__USE_EXTERN_INLINES].
11851 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
11852 instead of feof_unlocked.
11853 * intl/localealias.c [_LIBC] (FEOF): Likewise.
11854 * nss/nsswitch.c (nss_parse_file): Likewise.
11855 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
11856 Likewise.
11857 * time/getdate.c (__getdate_r): Likewise.
11858 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
11859 Define as macro to call __feof_unlocked.
11860
11861 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
11862
11863 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
11864
11865 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
11866
11867 * math/Makefile: Remove mpexp.c and mplog.c
11868 * sysdeps/i386/fpu/mpexp.c: Delete file.
11869 * sysdeps/i386/fpu/mplog.c: Likewise.
11870 * sysdeps/ia64/fpu/mpexp.c: Likewise.
11871 * sysdeps/ia64/fpu/mplog.c: Likewise.
11872 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
11873 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
11874 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
11875 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
11876 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
11877 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
11878 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
11879 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
11880 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
11881 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
11882 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
11883 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
11884 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
11885 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
11886 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
11887 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
11888
11889 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
11890
11891 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
11892
11893 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11894
11895 * sysdeps/sh/libm-test-ulps: Update.
11896
11897 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11898
11899 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
11900 idouble to 1 ULP.
11901
11902 2018-02-12 Zack Weinberg <zackw@panix.com>
11903
11904 [BZ #19239]
11905 * posix/sys/types.h: Don't include sys/sysmacros.h.
11906 * misc/sys/sysmacros.h: Remove the conditional deprecation
11907 warnings for the macros defined by this header.
11908
11909 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
11910
11911 * manual/probes.texi: Remove slowexp probes.
11912 * math/Makefile: Remove slowexp.
11913 * sysdeps/generic/math_private.h (__slowexp): Remove.
11914 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
11915 document error bounds.
11916 * sysdeps/i386/fpu/slowexp.c: Remove.
11917 * sysdeps/ia64/fpu/slowexp.c: Remove.
11918 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
11919 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
11920 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
11921 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
11922 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
11923 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
11924 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
11925 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
11926 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
11927 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
11928 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
11929
11930 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
11931
11932 [BZ #13932]
11933 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
11934 * benchtests/pow-inputs: Update comment for slow path cases.
11935 * manual/probes.texi (slowpow_p10): Delete removed probe.
11936 (slowpow_p10): Likewise.
11937 * math/Makefile: Remove halfulp.c and slowpow.c.
11938 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
11939 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
11940 (__halfulp): Remove.
11941 (__slowpow): Remove.
11942 * sysdeps/i386/fpu/halfulp.c: Delete file.
11943 * sysdeps/i386/fpu/slowpow.c: Likewise.
11944 * sysdeps/ia64/fpu/halfulp.c: Likewise.
11945 * sysdeps/ia64/fpu/slowpow.c: Likewise.
11946 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
11947 improve comments and add error analysis.
11948 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
11949 (power1): Remove function:
11950 (log1): Remove error argument, add error analysis.
11951 (my_log2): Remove function.
11952 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
11953 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11954 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
11955 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
11956 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
11957 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
11958 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
11959 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
11960 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
11961 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
11962 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
11963 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
11964 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
11965 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
11966
11967 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
11968
11969 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
11970 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
11971
11972 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
11973
11974 [BZ #22433]
11975 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
11976 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
11977 and PTRACE_SETHBPREGS.
11978
11979 2018-02-10 Zack Weinberg <zackw@panix.com>
11980
11981 [BZ #22830]
11982 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
11983 correctly.
11984 * malloc/tst-malloc-stats-cancellation.c: New test case.
11985 * malloc/Makefile: Add new test case.
11986
11987 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
11988
11989 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
11990
11991 2018-02-10 Joseph Myers <joseph@codesourcery.com>
11992
11993 * math/Makefile (libm-narrow-fns): Add add.
11994 (libm-test-funcs-narrow): Likewise.
11995 * math/Versions (GLIBC_2.28): Add narrowing add functions.
11996 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
11997 * math/gen-auto-libm-tests.c (test_functions): Add add.
11998 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
11999 (NARROW_ADD_ROUND_TO_ODD): Likewise.
12000 (NARROW_ADD_TRIVIAL): Likewise.
12001 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
12002 macro.
12003 (__daddl): Likewise.
12004 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
12005 dadd.
12006 (CFLAGS-nldbl-dadd.c): New variable.
12007 (CFLAGS-nldbl-fadd.c): Likewise.
12008 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12009 __nldbl_daddl.
12010 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
12011 prototype.
12012 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
12013 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
12014 * math/auto-libm-test-in: Add tests of add.
12015 * math/auto-libm-test-out-narrow-add: New generated file.
12016 * math/libm-test-narrow-add.inc: New file.
12017 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12018 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
12019 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
12020 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
12021 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
12022 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
12023 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
12024 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
12025 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
12026 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
12027 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
12028 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
12029 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
12030 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
12031 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
12032 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
12033 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
12034 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
12035 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12036 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12037 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12038 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12039 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12040 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12041 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12042 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12043 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12044 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12045 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12046 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12047 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12048 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12053 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12054 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12055 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12056 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12057 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12058 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12059 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
12060 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
12061 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12062 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12063
12064 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
12065 (f128-pairs): New variable.
12066 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
12067 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
12068 to CFLAGS.
12069 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
12070 Also make tests add $(f128-loader-link) to gnulib-tests.
12071
12072 2018-02-09 DJ Delorie <dj@redhat.com>
12073
12074 [BZ #22827]
12075 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
12076 64-bit ELF type for 64-bit ELF objects.
12077
12078 2018-02-09 Joseph Myers <joseph@codesourcery.com>
12079
12080 * math/libm-test-driver.c (snan_tests_arg): New variable.
12081 * math/libm-test-support.h (snan_tests_arg): New declaration.
12082 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
12083
12084 * math/Makefile (test-type-pairs): New variable.
12085 (test-type-pairs-f64xf128-yes): Likewise.
12086 (tests): Add test-narrow-macros.
12087 (libm-test-funcs-narrow): New variable.
12088 (libm-test-c-narrow): Likewise.
12089 (generated): Add $(libm-test-c-narrow).
12090 (libm-tests-base-narrow): New variable.
12091 (libm-tests-narrow): Likewise.
12092 (libm-tests): Add $(libm-tests-narrow).
12093 (libm-tests-for-type): Handle $(libm-tests-narrow).
12094 (libm-test-c-narrow-obj): New variable.
12095 ($(libm-test-c-narrow-obj)): New rule.
12096 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
12097 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
12098 $(o-iterator) to set dependencies and CFLAGS.
12099 * math/gen-auto-libm-tests.c: Document use for narrowing
12100 functions.
12101 (output_for_one_input_case): Take argument NARROW.
12102 (generate_output): Likewise. Update call to
12103 output_for_one_input_case.
12104 (main): Take --narrow option. Update call to generate_output.
12105 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
12106 (apply_lit): Update call to _apply_lit.
12107 (apply_arglit): New function.
12108 (parse_args): Handle "a" arguments.
12109 (parse_auto_input): Handle format names using ":".
12110 * math/README.libm-test: Document "a" parameter type.
12111 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
12112 (ARG_TYPE_TRUE_MIN): Likewise.
12113 (ARG_TYPE_MAX): Likwise.
12114 (ARG_MIN_EXP): Likewise.
12115 (ARG_MAX_EXP): Likewise.
12116 (ARG_MANT_DIG): Likewise.
12117 (TEST_COND_arg_ibm128): Likewise.
12118 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
12119 (TEST_COND_arg_fmt): New macro.
12120 (init_max_error): Update prototype.
12121 * math/libm-test-support.c (test_ibm128): New variable.
12122 (init_max_error): Take argument testing_ibm128 and set test_ibm128
12123 instead of using [TEST_COND_ibm128] conditional.
12124 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
12125 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
12126 [TEST_NARROW] (TEST_MSG): New definition.
12127 (arg_plus_zero): New macro.
12128 (arg_minus_zero): Likewise.
12129 (arg_plus_infty): Likewise.
12130 (arg_minus_infty): Likewise.
12131 (arg_qnan_value_pl): Likewise.
12132 (arg_qnan_value): Likewise.
12133 (arg_snan_value_pl): Likewise.
12134 (arg_snan_value): Likewise.
12135 (arg_max_value): Likewise.
12136 (arg_min_value): Likewise.
12137 (arg_min_subnorm_value): Likewise.
12138 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
12139 (RUN_TEST_LOOP_aa_f): New macro.
12140 (TEST_SUFF): New macro.
12141 (TEST_SUFF_STR): Likewise.
12142 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
12143 (TEST_COND_any_ibm128): New macro.
12144 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
12145 this_func. Update call to init_max_error.
12146 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
12147 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
12148 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
12149 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
12150 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
12151 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
12152 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
12153 * math/test-math-scalar.h (TEST_NARROW): Likewise.
12154 * math/test-math-vector.h (TEST_NARROW): Likewise.
12155 * math/test-arg-double.h: New file.
12156 * math/test-arg-float128.h: Likewise.
12157 * math/test-arg-float32x.h: Likewise.
12158 * math/test-arg-float64.h: Likewise.
12159 * math/test-arg-float64x.h: Likewise.
12160 * math/test-arg-ldouble.h: Likewise.
12161 * math/test-math-narrow.h: Likewise.
12162 * math/test-narrow-macros.c: Likewise.
12163 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
12164 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
12165 test-narrow-macros-ldbl-64.
12166 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
12167
12168 * math/bits/mathcalls-narrow.h: New file.
12169 * include/bits/mathcalls-narrow.h: Likewise.
12170 * math/math-narrow.h: Likewise.
12171 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
12172 (__MATHCALL_NARROW_ARGS_2): Likewise.
12173 (__MATHCALL_NARROW_ARGS_3): Likewise.
12174 (__MATHCALL_NARROW_NORMAL): Likewise.
12175 (__MATHCALL_NARROW_REDIR): Likewise.
12176 (__MATHCALL_NARROW): Likewise.
12177 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
12178 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
12179 defined.
12180 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12181 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
12182 (libm-narrow-fns): New variable.
12183 (libm-narrow-types-basic): Likewise.
12184 (libm-narrow-types-ldouble-yes): Likewise.
12185 (libm-narrow-types-float128-yes): Likewise.
12186 (libm-narrow-types-float128-alias-yes): Likewise.
12187 (libm-narrow-types): Likewise.
12188 (libm-routines): Add narrowing functions.
12189 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
12190 (libc_feholdexcept_setroundf128): New macro.
12191 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
12192 * sysdeps/ieee754/float128/float128_private.h: Include
12193 <math/math-narrow.h>.
12194 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
12195 Undefine and redefine.
12196 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
12197 (libm_alias_float_ldouble): Undefine and redefine.
12198 (libm_alias_double_ldouble): Likewise.
12199
12200 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
12201
12202 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
12203
12204 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
12205 FPCR/FPSR.
12206
12207 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
12208
12209 * manual/creature.texi: Convert references to gcc.info to gcc.
12210 * manual/stdio.texi: Likewise.
12211 * manual/string.texi: Likewise.
12212
12213 2018-02-07 Joseph Myers <joseph@codesourcery.com>
12214
12215 [BZ #17979]
12216 * posix/bits/types.h (__int_least8_t): New typedef.
12217 (__uint_least8_t): Likewise.
12218 (__int_least16_t): Likewise.
12219 (__uint_least16_t): Likewise.
12220 (__int_least32_t): Likewise.
12221 (__uint_least32_t): Likewise.
12222 (__int_least64_t): Likewise.
12223 (__uint_least64_t): Likewise.
12224 * sysdeps/generic/stdint.h (int_least8_t): Define using
12225 __int_least8_t.
12226 (int_least16_t): Define using __int_least16_t.
12227 (int_least32_t): Define using __int_least32_t.
12228 (int_least64_t): Define using __int_least64_t.
12229 (uint_least8_t): Define using __uint_least8_t.
12230 (uint_least16_t): Define using __uint_least16_t.
12231 (uint_least32_t): Define using __uint_least32_t.
12232 (uint_least64_t): Define using __uint_least64_t.
12233 * wcsmbs/uchar.h: Include <bits/types.h>.
12234 (char16_t): Define using __uint_least16_t conditional only on
12235 [!__USE_ISOCXX11].
12236 (char32_t): Define using __uint_least32_t conditional only on
12237 [!__USE_ISOCXX11].
12238 * wcsmbs/test-char-types.c: New file.
12239 * wcsmbs/Makefile (tests): Add test-char-types.
12240
12241 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
12242 version to 4.0.1.
12243
12244 2018-02-07 Zack Weinberg <zackw@panix.com>
12245
12246 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
12247 Delete all contents except for definitions of _G_HAVE_MMAP and
12248 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
12249 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
12250 sysdeps/unix/sysv/linux/_G_config.h. Make same content
12251 change as above.
12252
12253 * libio/libio.h: Don't include bits/_G_config.h here.
12254 Include stddef.h with __need_wchar_t defined. Include
12255 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
12256 Define _IO_iconv_t here, directly.
12257 Don't define _IO_HAVE_ST_BLKSIZE.
12258 * libio/libioP.h: Include _G_config.h here. Move include of
12259 shlib-compat.h up with rest of includes. Simplify conditionals
12260 controlling definition of _IO_JUMPS_OFFSET.
12261
12262 * csu/init.c: Remove always-true #if around entire file.
12263 Don't include stdio.h. Set _IO_stdin_used to hardwired
12264 constant 0x20001, and update commentary.
12265 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
12266 Replace all uses of _G_va_list with __gnuc_va_list.
12267 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
12268 instead of #if _IO_HAVE_ST_BLKSIZE.
12269 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
12270 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
12271 not #ifdef.
12272
12273 * libio/bits/libio.h: Move back to libio/libio.h and adjust
12274 multiple-include guard to match.
12275 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
12276 into this file.
12277 Remove preprocessor conditionals that are always true and/or
12278 redundant to other preprocessor conditionals in the same nest.
12279 Include shlib-compat.h unconditionally.
12280 Error out if _LIBC is not defined, or if _ISOMAC is defined,
12281 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
12282 defined after including stdio.h.
12283 Use __BEGIN_DECLS/__END_DECLS.
12284
12285 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
12286 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
12287 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
12288
12289 2018-02-07 Zack Weinberg <zackw@panix.com>
12290
12291 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
12292 New single-type headers split from _G_config.h.
12293 * libio/bits/types/cookie_io_functions_t.h
12294 * libio/bits/types/struct_FILE.h
12295 New single-type headers split from libio.h.
12296
12297 * libio/Makefile: Install the above new headers. Don't install
12298 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
12299 bits/libio-ldbl.h.
12300 * libio/_G_config.h, libio/libio.h: Delete file.
12301
12302 * libio/bits/libio.h: Remove improper-inclusion guard.
12303 Include stdio.h and don't repeat anything that it does.
12304 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
12305 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
12306 __io_read_fn as cookie_read_function_t,
12307 __io_write_fn as cookie_write_function_t,
12308 __io_seek_fn as cookie_seek_function_t,
12309 __io_close_fn as cookie_close_function_t,
12310 and _IO_cookie_io_functions_t as cookie_io_functions_t.
12311 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
12312 here, in the "compatibility defines" section. Remove an #if 0
12313 block. Use the "body" macros from bits/types/struct_FILE.h to
12314 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
12315 and _IO_ferror_unlocked.
12316 Move prototypes of __uflow and __overflow...
12317
12318 * libio/stdio.h: ...here. Don't include bits/libio.h.
12319 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
12320 directly from stdarg.h. Include bits/types/__fpos_t.h,
12321 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
12322 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
12323 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
12324 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
12325 cookie_io_functions_t, not _IO_cookie_io_functions_t;
12326 __ssize_t, not _IO_ssize_t. Unconditionally define
12327 BUFSIZ as 8192 and EOF as (-1).
12328
12329 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
12330 macros from bits/types/struct_FILE.h instead of _IO_* macros
12331 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
12332 instead of _IO_ssize_t.
12333 * libio/bits/stdio2.h: Similarly.
12334
12335 * libio/iolibio.h: Add multiple-include guard.
12336 Include bits/libio.h after stdio.h.
12337 * libio/libioP.h: Add multiple-include guard.
12338 Include stdio.h and bits/libio.h before iolibio.h.
12339
12340 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
12341 * include/bits/types/cookie_io_functions_t.h
12342 * include/bits/types/struct_FILE.h: New wrappers.
12343
12344 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
12345 Get definitions of _G_fpos_t and _G_fpos64_t from
12346 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
12347 respectively. Remove improper-inclusion guards.
12348
12349 * conform/data/stdio.h-data: Update expectations of va_list.
12350 * scripts/check-installed-headers.sh: Remove special case for
12351 libio.h and _G_config.h.
12352
12353 2018-02-07 Joseph Myers <joseph@codesourcery.com>
12354
12355 [BZ #15105]
12356 [BZ #19463]
12357 * include/sys/sysmacros.h [!_ISOMAC]
12358 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
12359 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
12360 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
12361 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
12362 libc_hidden_proto.
12363 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
12364 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
12365 Likewise.
12366 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
12367 Undefine and redefine to add use __gnu_dev_ prefix.
12368 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
12369 Likewise.
12370 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
12371 and define as hidden inline function.
12372 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
12373 Likewise.
12374 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
12375 Likewise.
12376 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
12377 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
12378 (gnu_dev_minor): Likewise.
12379 (gnu_dev_makedev): Likewise.
12380 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
12381 makedev.
12382 * posix/wordexp.c (exec_comm_child): Likewise.
12383 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
12384 instead of minor and __gnu_dev_major instead of major.
12385 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
12386 __gnu_dev_major instead of major.
12387 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
12388 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
12389 instead of gnu_dev_minor.
12390 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
12391 (SLAVE_P): Likewise.
12392 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
12393 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
12394 instead of major.
12395
12396 [BZ #21313]
12397 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
12398 in another place.
12399 * locale/weightwc.h (findidx): Likewise.
12400
12401 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
12402
12403 * manual/probes.texi (slowlog): Delete documentation of removed probe.
12404 (slowlog_inexact): Likewise
12405 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
12406 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
12407
12408 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
12409
12410 [BZ #22797]
12411 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
12412 missing second underscore to parameter name.
12413
12414 2018-02-06 Joseph Myers <joseph@codesourcery.com>
12415
12416 [BZ #14508]
12417 [BZ #15512]
12418 [BZ #17082]
12419 [BZ #20530]
12420 * bits/byteswap.h: Update file comment. Do not include
12421 <bits/byteswap-16.h>.
12422 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
12423 constant.
12424 (__bswap_16): Define as inline function.
12425 (__bswap_constant_32): Reformat definition.
12426 (__bswap_32): Always define as inline function, not macro, using
12427 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
12428 otherwise __bswap_constant_32.
12429 (__bswap_constant_64): Reformat definition. Do not use
12430 __extension__ here.
12431 (__bswap_64): Always define as inline function, not macro. Use
12432 __extension__ on function definition. Use __builtin_bswap64 if
12433 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
12434 * string/test-endian-file-scope.c: New file.
12435 * string/test-endian-sign-conversion.c: Likewise.
12436 * string/Makefile (headers): Remove bits/byteswap-16.h.
12437 (tests): Add test-endian-file-scope and
12438 test-endian-sign-conversion.
12439 (CFLAGS-test-endian-sign-conversion.c): New variable.
12440 * bits/byteswap-16.h: Remove file.
12441 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
12442 * sysdeps/ia64/bits/byteswap.h: Likewise.
12443 * sysdeps/m68k/bits/byteswap.h: Likewise.
12444 * sysdeps/s390/bits/byteswap-16.h: Likewise.
12445 * sysdeps/s390/bits/byteswap.h: Likewise.
12446 * sysdeps/tile/bits/byteswap.h: Likewise.
12447 * sysdeps/x86/bits/byteswap-16.h: Likewise.
12448 * sysdeps/x86/bits/byteswap.h: Likewise.
12449
12450 [BZ #17721]
12451 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
12452 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
12453 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
12454 199901L] (__restrict): Define to restrict.
12455
12456 [BZ #19667]
12457 * string/testcopy.c: Include <support/support.h>. Do not include
12458 <malloc.h>. Use <support/test-driver.c>.
12459 (main): Rename to do_test. Make static. Use xmalloc instead of
12460 malloc.
12461
12462 [BZ #13575]
12463 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
12464 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
12465 (SSIZE_MAX): Define to INT_MAX.
12466 * posix/test-ssize-max.c: New file.
12467 * posix/Makefile (tests): Add test-ssize-max.
12468
12469 [BZ #19668]
12470 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
12471 <support/support.h>. Do not include <malloc.h>.
12472 (query_auxv): Use xmalloc instead of malloc.
12473
12474 [BZ #14553]
12475 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
12476 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
12477 instead of loff_t.
12478
12479 2018-02-06 Florian Weimer <fweimer@redhat.com>
12480
12481 [BZ #18023]
12482 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
12483 Use scratch_buffer instead of extend_alloca.
12484
12485 2018-02-06 Zack Weinberg <zackw@panix.com>
12486
12487 * libio/stdio.h: Don't define getc or putc as macros.
12488 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
12489 not _IO_getc and _IO_putc.
12490
12491 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
12492 * stdio-common/tstgetln.c: Don't redefine ssize_t.
12493
12494 2018-02-06 Joseph Myers <joseph@codesourcery.com>
12495
12496 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
12497 (TCP_FASTOPEN_NO_COOKIE): Likewise.
12498
12499 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
12500
12501 [BZ #14890]
12502 * elf/elf.h (NT_PRFPREG): New macro.
12503 (NT_S390_VXRS_LOW): Likewise.
12504 (NT_S390_VXRS_HIGH): Likewise.
12505 (NT_S390_GS_CB): Likewise.
12506 (NT_S390_GS_BC): Likewise.
12507 (NT_S390_RI_CB): Likewise.
12508
12509 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12510 (MAP_SYNC): New macro.
12511 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
12512 Likewise.
12513 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12514 (MAP_SYNC): Likewise.
12515 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12516 (MAP_SYNC): Likewise.
12517 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12518 (MAP_SYNC): Likewise.
12519 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12520 (MAP_SYNC): Likewise.
12521 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12522 (MAP_SYNC): Likewise.
12523 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12524 (MAP_SYNC): Likewise.
12525 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
12526 Likewise.
12527 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
12528 Likewise.
12529
12530 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
12531 (MAP_SHARED_VALIDATE): New macro.
12532 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12533 (MAP_SHARED_VALIDATE): Likewise.
12534
12535 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12536
12537 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
12538 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
12539 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
12540
12541 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12542
12543 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
12544 (DT_NUM): Updated to 35.
12545
12546 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12547
12548 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
12549 __builtin_expect with __glibc_likely and __glibc_unlikely.
12550 (elf_machine_rela): Likewise.
12551 (elf_machine_lazy_rel): Likewise.
12552
12553 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12554
12555 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
12556 __builtin_expect with __glibc_likely and __glibc_unlikely.
12557 (elf_machine_lazy_rel): Likewise.
12558
12559 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
12560
12561 [BZ #22638]
12562 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
12563 SHARED.
12564 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
12565
12566 2018-02-05 Andreas Schwab <schwab@suse.de>
12567
12568 [BZ #22761]
12569 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
12570 string.
12571
12572 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
12573
12574 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
12575 not check against PTHREAD_STACK_MIN.
12576
12577 2018-02-02 Sean McKean <smckean83@gmail.com>
12578
12579 [BZ #22735]
12580 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
12581
12582 2018-02-02 Florian Weimer <fweimer@redhat.com>
12583
12584 [BZ #22753]
12585 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
12586 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
12587 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
12588 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
12589 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
12590 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12591 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12592 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
12593 * manual/llio.texi (Scatter-Gather): Mention offset -1.
12594 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
12595 * misc/tst-preadvwritev2.c (do_test): Call it.
12596 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
12597
12598 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
12599
12600 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
12601
12602 * benchtests/bench-memcmp.c: Print json instead of plain text.
12603
12604 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
12605 every test run.
12606
12607 2018-02-01 Joseph Myers <joseph@codesourcery.com>
12608
12609 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12610 version to 4.15.
12611 (s390_sthyi): New syscall.
12612
12613 * sysdeps/generic/ldbl-classify-compat.h: New file.
12614 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
12615 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
12616 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
12617 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
12618 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
12619 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
12620 * sysdeps/ieee754/dbl-64/s_finite.c: Include
12621 <ldbl-classify-compat.h>.
12622 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12623 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
12624 <ldbl-classify-compat.h>.
12625 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12626 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
12627 <ldbl-classify-compat.h>.
12628 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12629 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
12630 <ldbl-classify-compat.h>.
12631 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12632 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
12633 <ldbl-classify-compat.h>.
12634 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12635 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
12636 <ldbl-classify-compat.h>.
12637 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
12638 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
12639 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
12640 * sysdeps/m68k/coldfire/math_private.h: Remove file.
12641 * sysdeps/microblaze/math_private.h: Likewise.
12642 * sysdeps/nios2/math_private.h: Likewise.
12643 * sysdeps/sh/math_private.h: Likewise.
12644
12645 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
12646 * sysdeps/m68k/coldfire/math_private.h: ... here.
12647 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
12648 * sysdeps/tile/math_private.h: Likewise.
12649 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
12650 Remove macro.
12651 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
12652 Likewise.
12653
12654 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
12655 Remove macro.
12656 (libc_fetestexcept): Likewise.
12657 (libc_feupdateenv_test): Likewise.
12658 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
12659 (libc_fetestexcept): Likewise.
12660 (libc_feupdateenv_test): Likewise.
12661 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
12662 (libc_fetestexcept): Likewise.
12663 (libc_feupdateenv_test): Likewise.
12664 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
12665 (libc_fetestexcept): Likewise.
12666 (libc_feupdateenv_test): Likewise.
12667
12668 * sysdeps/generic/math_private.h
12669 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
12670 New inline function.
12671 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
12672 Likewise.
12673
12674 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
12675 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
12676 * sysdeps/generic/math_private.h
12677 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
12678 inline function.
12679 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
12680 Likewise.
12681 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
12682 Likewise.
12683 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
12684 Likewise.
12685 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
12686 Likewise.
12687 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
12688 Likewise.
12689 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
12690 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
12691 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
12692 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
12693 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
12694 (__fegetenv): Likewise.
12695 (fesetenv): Likewise.
12696 (__fesetenv): Likewise.
12697 (feupdateenv): Likewise.
12698 (__feupdateenv): Likewise.
12699 (fegetround): Likewise.
12700 (__fegetround): Likewise.
12701 (fesetround): Likewise.
12702 (__fesetround): Likewise.
12703
12704 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
12705 (feraiseexcept): New macro.
12706 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
12707 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
12708 Remove macro.
12709 (__feraiseexcept): Likewise.
12710 (feclearexcept): Likewise.
12711 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
12712 (__feraiseexcept): Likewise.
12713 (feclearexcept): Likewise.
12714 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
12715 (__feraiseexcept): Likewise.
12716 (feclearexcept): Likewise.
12717 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
12718 (__feraiseexcept): Likewise.
12719 (feclearexcept): Likewise.
12720 (fetestexcept): Likewise.
12721
12722 * sysdeps/m68k/coldfire/math-tests.h: New file.
12723
12724 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
12725 * sysdeps/m68k/bits/fenv.h: ... here.
12726 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
12727 not define.
12728 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
12729 Likewise.
12730 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
12731 Likewise.
12732 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
12733 Likewise.
12734 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
12735 Likewise.
12736 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
12737 Define to 0.
12738 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
12739 (__FE_UNDEFINED): New enum constant.
12740 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
12741 Do not define.
12742 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
12743 Likewise.
12744 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
12745 Likewise.
12746 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
12747 to match generic bits/fenv.h.
12748 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
12749 Do not define.
12750
12751 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
12752 packed on bits.
12753 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
12754 * soft-fp/half.h (union _FP_UNION_H): Likewise.
12755 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
12756 * soft-fp/single.h (union _FP_UNION_S): Likewise.
12757
12758 2018-02-01 Carlos O'Donell <carlos@redhat.com>
12759 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
12760 Joseph Myers <joseph@codesourcery.com>
12761
12762 [BZ #21314]
12763 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
12764 (__log1p): Disable -Wmaybe-uninitialized for -Os around
12765 computation using c.
12766 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
12767 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
12768 computation using c.
12769
12770 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
12771
12772 * version.h (RELEASE): Set to "development".
12773 (VERSION): Set to "2.27.9000".
12774 * NEWS (2.28): New section.
12775
12776 * version.h (RELEASE): Set to "stable".
12777 (VERSION): Set to "2.27".
12778 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
12779
12780 * NEWS: Add the list of bugs fixed in 2.27.
12781
12782 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12783
12784 * stdlib/test-atexit-race-common.c (do_test): Check stack size
12785 against PTHREAD_STACK_MIN.
12786
12787 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
12788
12789 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
12790 New entries.
12791 (Rafal Luzynski, Andreas Schwab): Update.
12792
12793 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
12794
12795 [BZ #10871]
12796 * NEWS: List the languages which actually use the alternative
12797 months feature in this release. Also explain that "alt_mon" and
12798 "ab_alt_mon" are optional.
12799
12800 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
12801
12802 [BZ #22765]
12803 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
12804
12805 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
12806
12807 * manual/install.texi (Tools for Compilation): Update the newest
12808 versions of gcc, binutils, texinfo, gawk, bison, and sed.
12809 * INSTALL: Regenerated.
12810
12811 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
12812
12813 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
12814 instead of __builtin_expect.
12815
12816 2018-01-30 Florian Weimer <fweimer@redhat.com>
12817
12818 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
12819 data.
12820 * nss/tst-nss-getpwent.c (do_test): Likewise.
12821
12822 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
12823
12824 [BZ #10871]
12825 * localedata/locales/hr_HR (mon): Rename to...
12826 (alt_mon): This.
12827 (mon): Import from CLDR (genitive case).
12828 (d_t_fmt): Update the comment.
12829
12830 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
12831
12832 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
12833 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
12834 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
12835
12836 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
12837
12838 * mach/Versions: Fix version when __mach_host_self_ was added.
12839 * hurd/Versions: Fix version when _hurd_exec_paths was added.
12840 * sysdeps/mach/hurd/i386/ld.abilist: New file.
12841 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
12842 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
12843 * sysdeps/mach/hurd/i386/libc.abilist: New file.
12844 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
12845 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
12846 * sysdeps/mach/hurd/i386/libm.abilist: New file.
12847 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
12848 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
12849 * sysdeps/mach/hurd/i386/librt.abilist: New file.
12850 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
12851 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
12852 || to respect codestyle.
12853 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
12854 (do_test_bz20181): Rename accordingly.
12855 * malloc/malloc.c: Include <assert.h>.
12856 (assert): Do not define.
12857 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
12858 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
12859 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
12860 * sysdeps/mach/hurd/hp-timing.h: New file.
12861 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
12862
12863 2018-01-29 Darius Rad <darius@bluespec.com>
12864
12865 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
12866
12867 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
12868
12869 * sysdeps/init_array/crti.S (.section .init_array): Add
12870 PREINIT_FUNCTION when defined.
12871 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
12872 * config.h.in: Regenerate.
12873 * manual/platform.texi: Add RISC-V documenation for
12874 __riscv_flush_icache.
12875 * sysdeps/riscv/__longjmp.S: New file.
12876 * sysdeps/riscv/backtrace.c: Likewise.
12877 * sysdeps/riscv/bits/endian.h: Likewise.
12878 * sysdeps/riscv/bits/setjmp.h: Likewise.
12879 * sysdeps/riscv/bits/wordsize.h: Likewise.
12880 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
12881 * sysdeps/riscv/bsd-setjmp.c: Likewise.
12882 * sysdeps/riscv/dl-trampoline.S: Likewise.
12883 * sysdeps/riscv/gccframe.h: Likewise.
12884 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
12885 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
12886 * sysdeps/riscv/machine-gmon.h: Likewise.
12887 * sysdeps/riscv/memusage.h: Likewise.
12888 * sysdeps/riscv/setjmp.S: Likewise.
12889 * sysdeps/riscv/sys/asm.h: Likewise.
12890 * sysdeps/riscv/tls-macros.h: Likewise.
12891 * sysdeps/riscv/dl-tls.h: New file.
12892 * sysdeps/riscv/libc-tls.c: Likewise.
12893 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
12894 * sysdeps/riscv/nptl/tls.h: Likewise.
12895 * sysdeps/riscv/stackinfo.h: Likewise.
12896 * sysdeps/riscv/bits/fenv.h: New file.
12897 * sysdeps/riscv/e_sqrtl.c: Likewise.
12898 * sysdeps/riscv/fpu_control.h: Likewise.
12899 * sysdeps/riscv/math-tests.h: Likewise.
12900 * sysdeps/riscv/nofpu/Implies: Likewise.
12901 * sysdeps/riscv/sfp-machine.h: Likewise.
12902 * sysdeps/riscv/tininess.h: Likewise.
12903 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
12904 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12905 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
12906 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
12907 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
12908 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
12909 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12910 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12911 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12912 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12913 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12914 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
12915 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
12916 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
12917 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
12918 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
12919 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12920 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12921 * sysdeps/riscv/rvd/s_fma.c: Likewise.
12922 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12923 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12924 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12925 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12926 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12927 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12928 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
12929 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
12930 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
12931 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
12932 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12933 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12934 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12935 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
12936 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
12937 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12938 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12939 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12940 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
12941 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
12942 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12943 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
12944 * sysdeps/riscv/rvf/math_private.h: Likewise.
12945 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12946 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12947 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12948 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12949 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
12950 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12951 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12952 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12953 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12954 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12955 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12956 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12957 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12958 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12959 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12960 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12961 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
12962 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
12963 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
12964 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
12965 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
12966 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
12967 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
12968 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
12969 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
12970 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
12971 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
12972 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
12973 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
12974 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
12975 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
12976 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
12977 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12978 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
12979 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
12980 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
12981 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
12982 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
12983 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
12984 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
12985 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
12986 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
12987 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
12988 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
12989 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
12990 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
12991 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12992 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
12993 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
12994 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
12995 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
12996 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
12997 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
12998 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
12999 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
13000 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
13001 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
13002 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
13003 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
13004 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
13005 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
13006 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
13007 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13008 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
13009 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13010 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
13011 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
13012 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
13013 * sysdeps/riscv/Implies: New file.
13014 * sysdeps/riscv/Makefile: Likewise.
13015 * sysdeps/riscv/configure: Likewise.
13016 * sysdeps/riscv/configure.ac: Likewise.
13017 * sysdeps/riscv/nptl/Makefile: Likewise.
13018 * sysdeps/riscv/preconfigure: Likewise.
13019 * sysdeps/riscv/rv64/Implies-after: Likewise.
13020 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
13021 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
13022 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
13023 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
13024 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
13025 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
13026 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
13027 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
13028 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
13029 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
13030 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
13031 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
13032 (Config): Likewise.
13033
13034 2018-01-29 Florian Weimer <fweimer@redhat.com>
13035
13036 [BZ #22701]
13037 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
13038 libnsl_hidden_proto.
13039 * include/rpcsvc/yp.h (yp_xdrall): Declare with
13040 libnsl_hidden_proto.
13041 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
13042 * nis/Makefile (libnsl-routines): Add nss-default only for
13043 build-obsolete-nsl.
13044 * nis/nis_defaults.c (__nis_default_ttl): Add
13045 libnsl_hidden_nolink_def.
13046 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
13047 declaration.
13048 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
13049 * nis/ypclnt.c (yp_maplist): Likewise.
13050
13051 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
13052
13053 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13054 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
13055
13056 2018-01-29 Joseph Myers <joseph@codesourcery.com>
13057
13058 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
13059 clean -dxfq for git updates when replacing sources.
13060
13061 * scripts/build-many-glibcs.py (Config.build_gcc): Use
13062 --disable-libcilkrts unconditionally, not just for the final GCC
13063 build for Hurd.
13064
13065 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13066 version to 4.15.
13067
13068 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13069
13070 [BZ #10871]
13071 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
13072 case).
13073
13074 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13075
13076 [BZ #10871]
13077 * localedata/locales/be_BY (mon): Rename to...
13078 (alt_mon): This, then synchronize with CLDR (nominative case).
13079 (abmon): Rename to...
13080 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13081 (mon): Import from CLDR (genitive case).
13082 (abmon): Likewise.
13083 * localedata/locales/be_BY@latin (mon): Rename to...
13084 (alt_mon): This.
13085 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
13086
13087 * localedata/locales/be_BY@latin (lang_name): Reworded to
13088 "biełaruskaja mova".
13089
13090 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13091
13092 [BZ #10871]
13093 * localedata/locales/el_CY (mon): Renamed to...
13094 (alt_mon): This.
13095 (mon): Import from CLDR (genitive case).
13096 * localedata/locales/el_GR: Likewise.
13097
13098 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13099
13100 [BZ #10871]
13101 * localedata/locales/ru_RU (mon): Rename to...
13102 (alt_mon): This.
13103 (abmon): Rename to...
13104 (ab_alt_mon): This.
13105 (mon): Import from CLDR (genitive case).
13106 (abmon): Copy from the old content except the 5th month which is
13107 now in the genitive case, even when abbreviated.
13108 * localedata/locales/ru_UA: Likewise.
13109 * time/tst-strptime.c (day_tests): Add an actual example of
13110 a difference between %b and %Ob in Russian.
13111
13112 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13113
13114 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
13115 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
13116 a `c' variable.
13117 * resolv/res-close.c: Include <stdlib.h>.
13118 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
13119 <sys/wait.h>, <time.h>, <sys/uio.h>.
13120 (NOT_CANCEL_H): Add inclusion guard.
13121 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
13122 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
13123 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
13124 return 0.
13125 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
13126 vm_address_t * to ElfW(Addr) * for dl_main parameter.
13127 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
13128 instead of void *.
13129 * sysdeps/pthread/timer_create.c (timer_create): Do not use
13130 timer_ptr2id to cast struct timer_node * to void *.
13131 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
13132 --disable-libcilkrts to gcc configure.
13133 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
13134 and make them the default for now.
13135 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
13136 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
13137 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
13138 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
13139 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
13140 MACH_IPC_COMPAT.
13141 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
13142 __task_terminate would ever return successfully.
13143 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
13144 to global scope.
13145 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
13146 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
13147 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
13148 critical section to make code simpler and avoid warning.
13149 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
13150 critical section to make code simpler and avoid warning.
13151 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
13152 const char * instead of char *.
13153 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
13154 __hurd_file_name_split, hurd_file_name_split,
13155 __hurd_directory_name_split, hurd_directory_name_split,
13156 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
13157 hurd_file_name_path_lookup): Make lookup function parameter take a
13158 const char *name instead of char *name.
13159 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
13160 __hurd_directory_name_split): Likewise.
13161 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
13162 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
13163 * sysdeps/mach/hurd/check_native.c: New file.
13164 * sysdeps/mach/hurd/check_pf.c: New file.
13165 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
13166 (__freeifaddrs): Define macro to freeifaddrs.
13167 * sysdeps/mach/hurd/libhurduser.abilist: New file.
13168 * sysdeps/mach/libmachuser.abilist: New file.
13169 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
13170 (do_test_bz20181): Rename accordingly.
13171 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
13172 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
13173 <sys/mount.h>.
13174 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
13175 version only if __USE_EXTERN_INLINES is defined.
13176 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
13177 __hurd_sockfail): Likewise.
13178 (_hurd_fd_get): Always declare functions, and provide inline versions
13179 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
13180 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
13181 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
13182 _hurd_port_set): Always declare functions, and provide inline versions
13183 only if __USE_EXTERN_INLINES and _LIBC are defined and
13184 IS_IN(libc).
13185 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
13186 _hurd_critical_section_unlock): Likewise.
13187 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
13188 * __hurd_threadvar_location): Likewise.
13189 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
13190 _hurd_userlink_clear): Likewise.
13191 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
13192 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
13193 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
13194 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
13195 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
13196 __spin_lock_locked): Likewise.
13197 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
13198 __spin_lock_locked): Likewise.
13199 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
13200 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
13201 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
13202 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
13203 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
13204 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
13205 _POSIX_NO_TRUNC): Define to 0.
13206 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
13207 check size against PTHREAD_STACK_MIN.
13208 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
13209 IS_IN(libpthread)]: Include <sigsetops.h>.
13210 * mach/Makefile (user-interfaces): Add mach/gnumach.
13211 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
13212 * sysdeps/mach/configure (mach_interface_list): Regenerate.
13213 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
13214 instead of invalid -1.
13215 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
13216 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
13217 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
13218 <net/ppp_defs.h>.
13219
13220 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
13221
13222 * hurd/fcntl-internal.h: New file.
13223
13224 2018-01-27 James Clarke <jrtc27@jrtc27.com>
13225
13226 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13227
13228 * sysdeps/alpha/fpu/libm-test-ulps: Update.
13229
13230 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
13231
13232 [BZ #22701]
13233 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
13234 Build only shared objects.
13235
13236 2018-01-26 Carlos O'Donell <carlos@redhat.com>
13237
13238 * README: Update for hppa.
13239
13240 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13241
13242 * sysdeps/sparc/fpu/libm-test-ulps: Update
13243 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
13244
13245 2018-01-26 Carlos O'Donell <carlos@redhat.com>
13246
13247 Revert:
13248
13249 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
13250
13251 [BZ #22563]
13252 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13253 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
13254 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13255 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
13256 to feature_1.
13257
13258 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
13259
13260 [BZ #22563]
13261 * bits/types/__cancel_jmp_buf_tag.h: New file.
13262 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
13263 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
13264 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
13265 * nptl/Makefile (headers): Add
13266 bits/types/__cancel_jmp_buf_tag.h.
13267 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
13268 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
13269 * sysdeps/nptl/pthread.h: Include
13270 <bits/types/__cancel_jmp_buf_tag.h>.
13271 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
13272 __cancel_jmp_buf.
13273 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
13274
13275 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
13276
13277 [BZ #10871]
13278 * localedata/locales/uk_UA (mon): Renamed to...
13279 (alt_mon): This.
13280 (alt_digits): "0" removed and then renamed to...
13281 (mon): This.
13282 (date_fmt): Definition changed not to use the alternative
13283 digits hack.
13284
13285 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
13286
13287 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
13288 FLAG_RISCV_FLOAT_ABI_DOUBLE.
13289 * elf/elf.h (EF_RISCV_RVC): New define.
13290 (EF_RISCV_FLOAT_ABI): Likewise.
13291 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
13292 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
13293 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
13294 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
13295 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
13296 define.
13297 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
13298
13299 2018-01-25 Andreas Schwab <schwab@suse.de>
13300
13301 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
13302 single quotes.
13303 * sysdeps/gnu/configure: Regenerate.
13304 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
13305 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
13306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
13307 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
13308 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
13309 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
13310 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
13311 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
13312
13313 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13314
13315 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
13316 URL, and run autoconf, make it the default for now.
13317
13318 2018-01-24 Joseph Myers <joseph@codesourcery.com>
13319
13320 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13321 soft-float ColdFire configuration.
13322
13323 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
13324 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
13325 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
13326
13327 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
13328 MicroBlaze file.
13329
13330 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
13331 ....
13332 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
13333 ... here.
13334 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
13335 New file.
13336
13337 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
13338 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
13339 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
13340 file.
13341
13342 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13343
13344 [BZ #22742]
13345 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
13346 Rename to __reserved and add comment.
13347 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
13348 Rename to __reserved.
13349
13350 2018-01-24 Joseph Myers <joseph@codesourcery.com>
13351
13352 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13353 i686-gnu configurations.
13354 (Context.run_builds): Include mig, gnumach and hurd in components
13355 considered.
13356 (Context.checkout): Add mig, gnumach and hurd to components.
13357 (Context.checkout_tar): Add URL mappings for mig, gnumach and
13358 hurd.
13359 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
13360 (Config.build): Install gnumach headers, build mig and install
13361 hurd headers for 'gnu' OS.
13362 (Config.install_gnumach_headers): New function.
13363 (Config.install_hurd_headers): Likewise.
13364 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
13365 when building for 'gnu' OS.
13366
13367 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
13368
13369 * manual/tunables.texi (Hardware Capability Tunables): Fix
13370 spelling.
13371
13372 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
13373
13374 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
13375 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
13376 (ALTMON_11, ALTMON_12): Improve documentation.
13377 * manual/time.texi (strftime): Likewise.
13378
13379 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13380
13381 [BZ #10871]
13382 * localedata/locales/pl_PL: Alternative month names added,
13383 primary month names are genitive now.
13384 * time/tst-strptime.c (day_tests): Actually use a genitive case
13385 of a month name in Polish language.
13386
13387 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13388
13389 [BZ #10871]
13390 * manual/locale.texi: Document ALTMON_1..12 constants for
13391 nl_langinfo. Specify when to use ALTMON instead of MON.
13392 * manual/time.texi (strftime, strptime): Document GNU extension
13393 permitting O modifier with %B and %b. Specify when to use
13394 %OB instead of %B.
13395
13396 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13397
13398 [BZ #10871]
13399 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
13400 names, define them as the same as abbreviated month names explicitly.
13401 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
13402 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
13403 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
13404 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
13405 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
13406 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
13407 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
13408 _NL_WABALTMON_12): New enum constants.
13409 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
13410 wab_alt_mon, and ab_alt_mon_defined members.
13411 (time_output): Output ab_alt_mon and wab_alt_mon members.
13412 (time_read): Read them, initialize them as copies of abmon and wabmon
13413 respectively if they are missing, initialize ab_alt_mon_defined.
13414 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
13415 * locale/programs/locfile-kw.h: Regenerate.
13416 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
13417 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
13418 and ru_RU.UTF-8.
13419 * time/strftime_l.c (a_altmonth, aam_len): New macros.
13420 [!COMPILE_WIDE] (ABALTMON_1): New macro.
13421 (__strftime_internal): Handle %Ob and %Oh formats.
13422 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
13423 (__strptime_internal): Handle %Ob and %Oh formats.
13424 * time/tst-strptime.c (day_tests): Add more tests to parse different
13425 forms of month names including the new %Ob format specifier.
13426
13427 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
13428
13429 [BZ #10871]
13430 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
13431 define them as the same as primary full month names explicitly.
13432 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
13433 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
13434 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
13435 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
13436 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
13437 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
13438 _NL_WALTMON_12): New enum constants.
13439 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
13440 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
13441 macros.
13442 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
13443 walt_mon, and alt_mon_defined members.
13444 (time_output): Output alt_mon and walt_mon members.
13445 (time_read): Read them, initialize them as copies of mon and wmon
13446 respectively if they are missing, initialize alt_mon_defined.
13447 * locale/programs/locfile-kw.gperf (alt_mon): Define.
13448 * locale/programs/locfile-kw.h: Regenerate.
13449 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
13450 * localedata/tst-langinfo.c (map): Add tests for the new constants
13451 ALTMON_1 .. ALTMON_12.
13452 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
13453 and pl_PL.UTF-8.
13454 * time/strftime_l.c (f_altmonth): New macro.
13455 (__strftime_internal): Handle %OB format.
13456 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
13457 (__strptime_internal): Handle %OB format.
13458 * time/tst-strptime.c (day_tests): Add tests to parse different forms
13459 of month names including the new %OB format specifier.
13460
13461 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13462
13463 [BZ #22685]
13464 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
13465 from ABORT_TRANSACTION.
13466 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
13467 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
13468 ABORT_TRANSACTION_IMPL): Likewise.
13469 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
13470 Linux code, but remove the code that aborts transactions.
13471
13472 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13473
13474 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
13475
13476 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
13477
13478 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
13479 in date: "2004-14-09" should be "2004-09-14".
13480 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
13481 "2003-15-09" should be "2003-09-15".
13482
13483 2018-01-18 Arjun Shankar <arjun@redhat.com>
13484
13485 [BZ #22343]
13486 [BZ #22774]
13487 CVE-2018-6485
13488 CVE-2018-6551
13489 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
13490 after padding.
13491 (_int_memalign): check for integer overflow before calling
13492 _int_malloc.
13493 * malloc/tst-malloc-too-large.c: New test.
13494 * malloc/Makefile: Add tst-malloc-too-large.
13495
13496 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
13497
13498 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
13499 in date: "2017-24-07" should be "2017-07-24".
13500 * localedata/locales/mai_IN: Likewise.
13501 * localedata/locales/mai_NP: Likewise.
13502
13503 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
13504
13505 * po/ru.po: Update translations.
13506
13507 2018-01-17 Joseph Myers <joseph@codesourcery.com>
13508
13509 [BZ #22719]
13510 * sysdeps/hppa/backtrace.c: New file.
13511
13512 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
13513
13514 [BZ #22715]
13515 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
13516 align La_x86_64_retval to VEC_SIZE.
13517
13518 2018-01-16 Joseph Myers <joseph@codesourcery.com>
13519
13520 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
13521 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
13522
13523 2018-01-16 Florian Weimer <fweimer@redhat.com>
13524
13525 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
13526 Move tst-thread-exit-clobber ...
13527 [$(CXX)] (tests-unsupported): ... to here.
13528
13529 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
13530
13531 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
13532 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
13533 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
13534 (_dl_aarch64_cap_flags): Update.
13535 (_DL_HWCAP_COUNT): Update.
13536
13537 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
13538
13539 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
13540 (_DL_HWCAP_LAST): Remove.
13541 (_DL_HWCAP_COUNT): Move to ...
13542 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
13543 (_DL_HWCAP_COUNT): ... here.
13544
13545 2018-01-16 Florian Weimer <fweimer@redhat.com>
13546
13547 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
13548 mode with GNU extensions.
13549
13550 2018-01-15 Alan Hayward <alan.hayward@arm.com>
13551
13552 * elf/elf.h (NT_ARM_SVE): Define.
13553
13554 2018-01-15 Florian Weimer <fweimer@redhat.com>
13555
13556 [BZ #22636]
13557 * nptl/tst-minstack-throw.cc: New file.
13558 * nptl/Makefile (tests): Add tst-minstack-throw.
13559 (LDLIBS-tst-minstack-throw): Link with libstdc++.
13560 [!CXX] (tests-unsupported): Add tst-minstack-throw.
13561
13562 2018-01-15 Joseph Myers <joseph@codesourcery.com>
13563
13564 * scripts/build-many-glibcs.py (Context.checkout): Default
13565 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
13566 version to 1.1.0.
13567
13568 2018-01-13 Carlos O'Donell <carlos@redhat.com>
13569
13570 [BZ #22707]
13571 * elf/elf.h (DF_1_STUB): Define.
13572 (DF_1_PIE): Define.
13573
13574 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13575
13576 [BZ #22697]
13577 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
13578 Do not add 0.5 to integer or out-of-range arguments.
13579
13580 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
13581
13582 * po/bg.po: Update translations.
13583 * po/cs.po: Likewise.
13584 * po/de.po: Likewise.
13585 * po/ko.po: Likewise.
13586 * po/pl.po: Likewise.
13587 * po/sv.po: Likewise.
13588 * po/uk.po: Likewise.
13589 * po/vi.po: Likewise.
13590
13591 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13592
13593 * aarch64/start.S (_start): Use __wrap_main.
13594 (__wrap_main): New local symbol.
13595
13596 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
13597
13598 [BZ #22679]
13599 CVE-2018-1000001
13600 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
13601 generic_getcwd if the path returned by getcwd syscall is not absolute.
13602 * io/tst-getcwd-abspath.c: New test.
13603 * io/Makefile (tests): Add tst-getcwd-abspath.
13604
13605 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
13606
13607 * malloc/malloc.c (malloc_consolidate): Add size check.
13608
13609 2018-01-12 Florian Weimer <fweimer@redhat.com>
13610
13611 * support/write_message.c (write_message): Preserve errno.
13612 * support/check.c (print_failure): Likewise.
13613 * support/support_test_verify_impl.c (support_test_verify_impl):
13614 Likewise.
13615 * support/support_test_compare_failure.c
13616 (support_test_compare_failure): Likewise.
13617
13618 2018-01-12 Florian Weimer <fweimer@redhat.com>
13619
13620 [BZ #22701]
13621 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
13622 Prevent installation of libnsl.so.
13623 (libnsl-inhibit-o): Do not build (or install) static libraries.
13624
13625 2018-01-12 Egmont Koblinger <egmont@gmail.com>
13626
13627 [BZ #22657]
13628 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
13629 before the day number which may produce a double space.
13630 (date_fmt): Likewise.
13631
13632 2018-01-12 Joseph Myers <joseph@codesourcery.com>
13633
13634 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
13635 instead of fegetenv.
13636
13637 2018-01-11 Joseph Myers <joseph@codesourcery.com>
13638
13639 [BZ #22702]
13640 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
13641 comment to say exceptions are discarded.
13642 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
13643 __fegetenv.
13644 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
13645 be enabled.
13646
13647 2018-01-11 Florian Weimer <fweimer@redhat.com>
13648
13649 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
13650 and error message.
13651
13652 2018-01-11 Florian Weimer <fweimer@redhat.com>
13653
13654 [BZ #22636]
13655 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
13656 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
13657
13658 2018-01-10 Joseph Myers <joseph@codesourcery.com>
13659
13660 [BZ #22693]
13661 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
13662 negative arguments in test for NaN or infinity argument.
13663
13664 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
13665
13666 * po/libc.pot: Regenerate.
13667
13668 2018-01-10 Florian Weimer <fweimer@redhat.com>
13669
13670 [BZ #22636]
13671 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
13672 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
13673
13674 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
13675
13676 * hurd/hurd/fd.h: Include <fcntl.h>
13677 (__hurd_at_flags): New function.
13678 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
13679 with call to __hurd_at_flags.
13680 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
13681 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
13682 __faccessat
13683 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
13684 (__access_noerrno): Use __faccessat_common instead of access_common.
13685 (__access): Likewise.
13686 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
13687 with a call to __faccessat.
13688 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
13689 (__faccessat_common): ... this. Move implementation of __access into it when
13690 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
13691 reauthenticate_cwdir_at helper to implement AT mechanism.
13692 (__faccessat_noerrno): New function, just calls __faccessat_common.
13693 (__faccessat): New function, just calls __faccessat_common.
13694 (faccessat): Define weak alias.
13695
13696 2018-01-10 Joseph Myers <joseph@codesourcery.com>
13697
13698 [BZ #22691]
13699 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13700 (CFLAGS-s_fmaxmagl.c): New variable.
13701 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
13702
13703 [BZ #22690]
13704 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
13705 long int for arguments of possibly overflowing addition or
13706 subtraction.
13707 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
13708
13709 2018-01-09 Joseph Myers <joseph@codesourcery.com>
13710
13711 [BZ #22688]
13712 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13713 (CFLAGS-e_remainderl.c): New variable.
13714
13715 [BZ #22687]
13716 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
13717 variable.
13718 (CFLAGS-s_cacoshl.c): Likewise.
13719 (CFLAGS-s_casinhl.c): Likewise.
13720 (CFLAGS-s_catanl.c): Likewise.
13721 (CFLAGS-s_catanhl.c): Likewise.
13722 (CFLAGS-s_cexpl.c): Likewise.
13723 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
13724 (CFLAGS-s_csinhl.c): Likewise.
13725 (CFLAGS-s_clogl.c): Likewise.
13726 (CFLAGS-s_clog10l.c): Likewise.
13727 (CFLAGS-s_csinl.c): Likewise.
13728 (CFLAGS-s_csqrtl.c): Likewise.
13729
13730 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
13731 2017-01-09 Svante Signell <svante.signell@gmail.com>
13732
13733 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
13734 (_hurd_exec_paths): New function.
13735 * hurd/hurd.h (_hurd_exec): Deprecate function.
13736 (_hurd_exec_paths): Declare function.
13737 * hurd/Versions: Export _hurd_exec_paths.
13738 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
13739 (__execve): Use __getcwd to build absolute path, and use
13740 _hurd_exec_paths instead of _hurd_exec.
13741 * sysdeps/mach/hurd/spawni.c: Likewise.
13742 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
13743 _hurd_exec.
13744
13745 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
13746
13747 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
13748 test instead of failing in case of ENOENT returned by posix_openpt.
13749
13750 2018-01-08 Florian Weimer <fweimer@redhat.com>
13751
13752 resolv: Support binary labels in test framework.
13753 * support/resolv_test.c (struct to_be_freed): Remove.
13754 (struct compressed_name): New.
13755 (allocate_compressed_name, ascii_tolower)
13756 (compare_compressed_name): New functions.
13757 (struct resolv_response_builder): Update type of
13758 compression_offsets for use with tsearch. Rempve to_be_freed.
13759 (response_push_pointer_to_free): Remove function.
13760 (resolv_response_add_name): Rewrite using struct compressed_name
13761 and tsearch instead of hsearch_r.
13762 (response_builder_allocate): Remove initialization of
13763 compression_offsets.
13764 (response_builder_free): Update for removal of to_be_freed. Use
13765 tdestroy instead of hdestroy_r.
13766 * resolv/Makefile (tests): Add tst-resolv-binary.
13767 (tst-resolv-binary): Link with -lresolv -lpthread.
13768
13769 2018-01-08 Florian Weimer <fweimer@redhat.com>
13770
13771 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
13772 time. Pass positive flag instead of negative flag to
13773 support_test_compare_failure.
13774 (support_test_compare_failure): Change negative parameter to
13775 positive.
13776 * support/support_test_compare_failure.c (report)
13777 (support_test_compare_failure): Likewise.
13778 * support/tst-test_compare.c (return_ssize_t, return_int): New.
13779 (do_test): Check int/size_t, ssize_t/size_t comparisons.
13780
13781 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
13782
13783 [BZ #22637]
13784 * nptl/descr.h (stackblock, stackblock_size): Update comments.
13785 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
13786 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
13787 stacksize.
13788 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
13789
13790 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
13791
13792 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13793 Add s_sincosf-sse2 and s_sincosf-fma.
13794 (CFLAGS-s_sincosf-fma.c): New.
13795 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
13796 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
13797 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
13798 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
13799 __sincosf is defined.
13800
13801 2018-01-08 Florian Weimer <fweimer@redhat.com>
13802
13803 * nptl/tst-thread-exit-clobber.cc: New file.
13804 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
13805 C++11 mode.
13806 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
13807 (tests): Add tst-thread-exit-clobber.
13808 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
13809
13810 2018-01-08 Florian Weimer <fweimer@redhat.com>
13811
13812 * support/check.h (support_static_assert): Define.
13813 (TEST_COMPARE): Use it.
13814
13815 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
13816
13817 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
13818 [!__RLIM_T_MATCHES_RLIM64_T]
13819 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
13820 __getrlimit64. Add libc_hidden_weak.
13821
13822 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
13823
13824 * elf/elf.h (R_RISCV_NONE): New define.
13825 (R_RISCV_32): Likewise.
13826 (R_RISCV_64): Likewise.
13827 (R_RISCV_RELATIVE): Likewise.
13828 (R_RISCV_COPY): Likewise.
13829 (R_RISCV_JUMP_SLOT): Likewise.
13830 (R_RISCV_TLS_DTPMOD32): Likewise.
13831 (R_RISCV_TLS_DTPMOD64): Likewise.
13832 (R_RISCV_TLS_DTPREL32): Likewise.
13833 (R_RISCV_TLS_DTPREL64): Likewise.
13834 (R_RISCV_TLS_TPREL32): Likewise.
13835 (R_RISCV_TLS_TPREL64): Likewise.
13836 * Makerules (make-link-multidir): Make directories before linking into
13837 them.
13838 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
13839 define.
13840 (VDSO_HASH_LINUX_4_15): Likewise.
13841 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
13842 in subdirectories of lib.
13843 * nptl/Makefile (/librt.so): Always depend on
13844 "$(shared-thread-library)".
13845
13846 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
13847
13848 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
13849 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
13850 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
13851 (___tls_get_addr).
13852 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
13853 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
13854 "-O2 -march=i686".
13855 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
13856 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
13857 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
13858 * sysdeps/gnu/glob-lstat-compat.c: New file.
13859 * sysdeps/gnu/glob64-lstat-compat.c: New file.
13860 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
13861
13862 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
13863
13864 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
13865 Reserve 16 chars to reloc_addr before calling _itoa_word.
13866
13867 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
13868
13869 [BZ #22678]
13870 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
13871 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
13872
13873 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
13874 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
13875
13876 * resource/tst-getrlimit.c: Add copyright header.
13877
13878 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
13879 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13880
13881 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
13882 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
13883 Define __GI_getrlimit64 as weak alias of __getrlimit64.
13884 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
13885 instead.
13886 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
13887 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
13888 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
13889 RLIM64_INFINITY): Fix values to match the kernel ones.
13890 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
13891 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
13892 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
13893 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
13894 getrlimit64@@GLIBC_2_27.
13895 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
13896 and setrlimit64.
13897 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
13898 getrlimit, setrlimit, getrlimit64 and setrlimit64.
13899 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
13900 setrlimit, getrlimit64 and setrlimit64.
13901
13902 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
13903
13904 [BZ #22648]
13905 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
13906 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
13907
13908 2018-01-04 Joseph Myers <joseph@codesourcery.com>
13909
13910 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
13911 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
13912 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
13913
13914 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13915
13916 [BZ #15479]
13917 [BZ #22666]
13918 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
13919 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
13920
13921 [BZ #15479]
13922 [BZ #22665]
13923 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
13924 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
13925 * sysdeps/alpha/fpu/s_floor.c: Likewise.
13926 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
13927
13928 2018-01-04 Florian Weimer <fweimer@redhat.com>
13929
13930 [BZ #22667]
13931 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13932 Align the stack before calling exit.
13933 * stdlib/tst-makecontext-align.c: New file.
13934 * stdlib/Makefile (tests): Add tst-makecontext-align.
13935
13936 2018-01-04 Florian Weimer <fweimer@redhat.com>
13937
13938 Add support for calling dlvsym from libc.so.
13939 * include/dlfcn.h (__libc_dlvsym): Declare.
13940 * elf/Makefile (tests-static-internal): Add
13941 tst-libc_dlvsym-static.
13942 (tests-internal): Add tst-libc_dlvsym.
13943 (modules-names): Add tst-libc_dlvsym-dso.
13944 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
13945 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
13946 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
13947 object tst-libc_dlvsym-dso.so needs to be built before running
13948 these tests.
13949 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
13950 * elf/Versions: Export __libc_dlvsym.
13951 * elf/dl-libc.c (struct do_dlvsym_args): New.
13952 (do_dlvsym, __libc_dlvsym): New functions.
13953 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
13954 (_dl_open_hook2): New variable.
13955 (__libc_register_dl_open_hook): Set it.
13956 * elf/tst-libc_dlvsym-dso.c: New file.
13957 * elf/tst-libc_dlvsym-static.c: Likewise.
13958 * elf/tst-libc_dlvsym.c: Likewise.
13959 * elf/tst-libc_dlvsym.h: Likewise.
13960
13961 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13962
13963 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
13964 include <sys/mount.h>.
13965
13966 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
13967
13968 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
13969 Add __NO_MATH_ERRNO__ check.
13970
13971 2018-01-02 Joseph Myers <joseph@codesourcery.com>
13972
13973 * sysdeps/mips/mips32/libm-test-ulps: Update.
13974 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13975
13976 2018-01-02 Florian Weimer <fweimer@redhat.com>
13977
13978 * misc/tst-pselect.c: Add copyright header.
13979
13980 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
13981
13982 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
13983 comment.
13984 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
13985 comment.
13986 (settrlimit): Rename into setrlimit.
13987 (__sttrlimit): Rename into __setrlimit.
13988
13989 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
13990 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
13991 never defined in that case.
13992
13993 2018-01-02 Joseph Myers <joseph@codesourcery.com>
13994
13995 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
13996
13997 * sysdeps/arm/libm-test-ulps: Update.
13998
13999 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
14000 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
14001
14002 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14003
14004 * NEWS: Add cosf and sincosf to list of optimized functions.
14005
14006 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
14007
14008 [BZ #22660]
14009 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
14010 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
14011 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
14012 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
14013
14014 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
14015
14016 [BZ #22433]
14017 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
14018
14019 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
14020 making a copy of it.
14021
14022 2018-01-01 Joseph Myers <joseph@codesourcery.com>
14023
14024 * manual/texinfo.tex: Update to version 2017-12-26.21 with
14025 trailing whitespace removed.
14026 * scripts/config.guess: Update to version 2018-01-01.
14027 * scripts/config.sub: Update to version 2018-01-01.
14028 * scripts/move-if-change: Update from gnulib.
14029
14030 * NEWS: Update copyright dates.
14031 * catgets/gencat.c (print_version): Likewise.
14032 * csu/version.c (banner): Likewise.
14033 * debug/catchsegv.sh: Likewise.
14034 * debug/pcprofiledump.c (print_version): Likewise.
14035 * debug/xtrace.sh (do_version): Likewise.
14036 * elf/ldconfig.c (print_version): Likewise.
14037 * elf/ldd.bash.in: Likewise.
14038 * elf/pldd.c (print_version): Likewise.
14039 * elf/sotruss.sh: Likewise.
14040 * elf/sprof.c (print_version): Likewise.
14041 * iconv/iconv_prog.c (print_version): Likewise.
14042 * iconv/iconvconfig.c (print_version): Likewise.
14043 * locale/programs/locale.c (print_version): Likewise.
14044 * locale/programs/localedef.c (print_version): Likewise.
14045 * login/programs/pt_chown.c (print_version): Likewise.
14046 * malloc/memusage.sh (do_version): Likewise.
14047 * malloc/memusagestat.c (print_version): Likewise.
14048 * malloc/mtrace.pl: Likewise.
14049 * manual/libc.texinfo: Likewise.
14050 * nptl/version.c (banner): Likewise.
14051 * nscd/nscd.c (print_version): Likewise.
14052 * nss/getent.c (print_version): Likewise.
14053 * nss/makedb.c (print_version): Likewise.
14054 * posix/getconf.c (main): Likewise.
14055 * scripts/test-installation.pl: Likewise.
14056 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
14057
14058 * All files with FSF copyright notices: Update copyright dates
14059 using scripts/update-copyrights.
14060 * locale/programs/charmap-kw.h: Regenerated.
14061 * locale/programs/locfile-kw.h: Likewise.
14062
14063 2017-12-31 Zack Weinberg <zackw@panix.com>
14064
14065 * libio/bits/libio-ldbl.h: Correct check for improper
14066 inclusion. Add own multiple include guard.
14067
14068 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
14069 Dmitry V. Levin <ldv@altlinux.org>
14070
14071 [BZ #22625]
14072 CVE-2017-16997
14073 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
14074 string token expansion. Check for NULL pointer or empty string possibly
14075 returned by expand_dynamic_string_token.
14076 (decompose_rpath): Check for empty path after dynamic string
14077 token expansion.
14078
14079 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
14080
14081 [BZ #22433]
14082 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
14083
14084 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
14085 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
14086 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
14087 and PTRACE_SYSCALL.
14088 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
14089 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14090 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14091 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14092 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14093 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14094
14095 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
14096 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14097 __ptrace_peeksiginfo_flags, ptrace): Move to ...
14098 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
14099 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14100 bits/ptrace-shared.h.
14101 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
14102 <bits/ptrace-shared.h>.
14103 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14104 __ptrace_peeksiginfo_flags, ptrace): Remove.
14105 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14106 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14107 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14108 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14109 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14110
14111 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14112
14113 [BZ #17804]
14114 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
14115 end of the loop. Improve comments.
14116
14117 2017-12-29 Zack Weinberg <zackw@panix.com>
14118
14119 [BZ #22615]
14120 * manual/errno.texi (Checking for Errors): Explicitly say that errno
14121 might be set on success.
14122
14123 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14124
14125 [BZ #22611]
14126 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
14127 is unchanged on success.
14128
14129 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
14130
14131 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
14132 updated.
14133 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
14134 expand_dynamic_string_token): Likewise.
14135 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
14136 is_path argument.
14137
14138 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
14139 contains ':'.
14140
14141 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
14142 is set and name contains ':', and all code depending on these checks.
14143
14144 2017-12-24 Zack Weinberg <zackw@panix.com>
14145
14146 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
14147 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
14148 respectively.
14149 * libio/libio.h: Rename the original version of this file to
14150 libio/bits/libio.h. Error out if not included by stdio.h or the
14151 stub libio.h.
14152 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
14153 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
14154 if not included by bits/libio.h or the stub _G_config.h.
14155 * sysdeps/unix/sysv/linux/_G_config.h: Move to
14156 sysdeps/unix/sysv/linux/bits. Error out if not included by
14157 bits/libio.h or the stub _G_config.h.
14158 * libio/stdio.h: Include bits/libio.h, not libio.h.
14159 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
14160 well as libio.h and _G_config.h.
14161
14162 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
14163 * libio/strfile.h, stdio-common/vfscanf.c
14164 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
14165 Include stdio.h, not _G_config.h nor libio.h.
14166 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
14167 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
14168
14169 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
14170
14171 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
14172
14173 [BZ #22347]
14174 * stdlib/getrandom.c (getrandom): Fix comment.
14175 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
14176
14177 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
14178
14179 [BZ #21161]
14180 * manual/arith.texi (strtoul): Fix a typo.
14181
14182 [BZ #22596]
14183 * manual/arith.texi (finite): Fix the description of the return
14184 value.
14185
14186 2017-12-22 Eric Blake <ebb9@byu.net>
14187
14188 Avoid gcc warnings on cygwin
14189 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14190 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14191 Avoid unused variable.
14192
14193 2017-12-22 Florian Weimer <fweimer@redhat.com>
14194
14195 * io/Makefile (routines): Add copy_file_range.
14196 (tests): Add tst-copy_file_range.
14197 (tests-static, tests-internal): Add tst-copy_file_range-compat.
14198 * io/Versions (GLIBC_2.27): Export copy_file_range.
14199 * io/copy_file_range-compat.c: New file.
14200 * io/copy_file_range.c: Likewise.
14201 * io/tst-copy_file_range-compat.c: Likewise.
14202 * io/tst-copy_file_range.c: Likewise.
14203 * manual/llio.texi (Copying File Data): New section.
14204 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
14205 * support/Makefile (libsupport-routines): Add support-xfstat,
14206 xftruncate, xlseek.
14207 * support/support-xfstat.c: New file.
14208 * support/xftruncate.c: Likewise.
14209 * support/xlseek.c: Likewise.
14210 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
14211 * sysdeps/unix/sysv/linux/**.abilist: Update.
14212 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
14213
14214 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
14215
14216 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14217 disable-multi-arch variant to aarch64-linux-gnu.
14218
14219 2017-12-20 Joseph Myers <joseph@codesourcery.com>
14220
14221 * manual/texinfo.tex: Update to version 2017-12-18.20 with
14222 trailing whitespace removed.
14223 * scripts/config.guess: Update to version 2017-12-17.
14224 * scripts/config.sub: Update to version 2017-11-23.
14225 * scripts/install-sh: Update to version 2017-09-23.17.
14226 * scripts/move-if-change: Update to version 2017-09-13 06:45.
14227
14228 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14229
14230 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
14231 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
14232 * sysdeps/tile/_mcount.S (__mcount): Likewise.
14233 * sysdeps/tile/crti.S (_init, _fini): Likewise.
14234 * sysdeps/tile/crtn.S: Likewise.
14235 * sysdeps/tile/dl-start.S (_start): Likewise.
14236 * sysdeps/tile/dl-trampoline.S: Likewise.
14237 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
14238 * sysdeps/tile/start.S (_start): Likewise.
14239 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
14240 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
14241 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
14242 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
14243 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
14244 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
14245 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
14246
14247 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
14248 comment.
14249 * sysdeps/tile/preconfigure: Remove tilegx folder.
14250 * sysdeps/tile/tilegx/Implies: Move definitions to ...
14251 * sysdeps/tile/Implies: ... here.
14252 * sysdeps/tile/tilegx/Makefile: Move rules to ...
14253 * sysdeps/tile/Makefile: ... here.
14254 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
14255 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
14256 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
14257 * sysdeps/tile/bits/wordsize.h: ... here.
14258 * sysdeps/tile/tilegx/*: Move to ...
14259 * sysdeps/tile/*: ... here.
14260 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
14261 * sysdeps/tile/tilegx32/Implies: ... here.
14262 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
14263 * sysdeps/tile/tilegx64/Implies: ... here.
14264 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
14265 to ...
14266 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
14267 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
14268 * sysdeps/unix/sysv/linux/tile/*: ... here.
14269 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
14270 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
14271 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
14272 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
14273
14274 * README: Remove tilepro-*-linux-gnu from supported architecture.
14275 * scripts/build-many-glibcs.py: Likewise.
14276 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
14277 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
14278 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
14279 elf_machine_matches_host, elf_machine_dynamic,
14280 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
14281 howto, elf_machine_rela): Likewise.
14282 * sysdeps/tile/dl-start.S (_start): Likewise.
14283 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
14284 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
14285 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
14286 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
14287 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
14288 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
14289 Likewise.
14290 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
14291 * sysdeps/tile/preconfigure: Likewise.
14292 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
14293 POINTER_CHK_GUARD): Likewise.
14294 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
14295 * sysdeps/tile/start.S (_start): Likewise.
14296 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
14297 Likewise.
14298 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
14299 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
14300 CMOVNEZ): Remove.
14301 * sysdeps/unix/sysv/linux/tile/bits/environments.h
14302 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
14303 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
14304 Likewise.
14305 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
14306 * sysdeps/tile/tilepro/Implies: Remove file.
14307 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
14308 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
14309 * sysdeps/tile/tilepro/memchr.c: Likewise.
14310 * sysdeps/tile/tilepro/memcpy.S: Likewise.
14311 * sysdeps/tile/tilepro/memset.c: Likewise.
14312 * sysdeps/tile/tilepro/memusage.h: Likewise.
14313 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
14314 * sysdeps/tile/tilepro/strchr.c: Likewise.
14315 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
14316 * sysdeps/tile/tilepro/strlen.c: Likewise.
14317 * sysdeps/tile/tilepro/strrchr.c: Likewise.
14318 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
14319 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
14320 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
14321 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
14322 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
14323 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
14324 Likewise.
14325 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
14326 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14327 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
14328 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
14337 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
14338 tilepro mention in comment.
14339
14340 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
14341 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
14342 * nptl/pthread_join_common.c: New file: common function used on
14343 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
14344 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
14345 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
14346 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
14347 (cleanup): Move definition to pthread_join_common.c.
14348 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
14349 Remove superflous checks.
14350 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
14351 Likewise.
14352
14353 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
14354
14355 * sysdeps/aarch64/libm-test-ulps: Update.
14356
14357 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14358
14359 * sysdeps/aarch64/memset.S (MEMSET): Define.
14360
14361 2017-12-20 Florian Weimer <fweimer@redhat.com>
14362
14363 [BZ #22635]
14364 nptl: Provide full implementation of pthread_self in libc.so.
14365 * nptl/Makefile (routines): Add pthread_self.
14366 (libpthread-routines): Replace pthread_self with
14367 compat-pthread_self.
14368 * nptl/forward.c (pthread_self): Remove.
14369 * nptl/nptl-init.c (pthread_functions): Do not initialize
14370 ptr_pthread_self.
14371 * nptl/pthread_self.c (pthread_self): Remove weak alias.
14372 * nptl/compat-pthread_self.c: New file.
14373 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
14374 Remove ptr_pthread_self.
14375
14376 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
14377
14378 * posix/regcomp.c: Fix spelling in comments.
14379 * posix/regex.h: Likewise.
14380 * posix/regex_internal.c: Likewise.
14381 * posix/regexec.c: Likewise.
14382
14383 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14384
14385 [BZ #22377]
14386 * math/Makefile [C++] (tests): Add test for iseqsig.
14387 * math/math.h [C++] (iseqsig): New implementation, which does
14388 not rely on __MATH_TG/__builtin_types_compatible_p.
14389 * math/test-math-iseqsig.cc: New file.
14390 * sysdeps/powerpc/powerpc64le/Makefile
14391 (CFLAGS-test-math-iseqsig.cc): New variable.
14392
14393 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
14394
14395 * elf/dl-load.c (is_trusted_path): Remove.
14396 (fillin_rpath): Remove check_trusted argument and its use,
14397 all callers changed.
14398
14399 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14400
14401 [BZ #22630]
14402 * Makeconfig (link-pie-before-libc): Replace -pie with
14403 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
14404 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
14405 (tst-dlopen-aout-no-pie): New.
14406 (LDFLAGS-tst-prelink): Removed.
14407 (tst-prelink-no-pie): New.
14408 (LDFLAGS-tst-main1): Removed.
14409 (tst-main1-no-pie): New.
14410 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
14411 (tst-gmon-no-pie): New.
14412
14413 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14414
14415 * manual/install.texi: Document that --enable-static-pie
14416 implies PIE.
14417 * INSTALL: Regenerated.
14418
14419 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
14420
14421 [BZ #21309]
14422 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
14423 unsigned.
14424
14425 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14426
14427 Revert:
14428
14429 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14430
14431 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14432
14433 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14434
14435 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
14436 <errno.h>. Include "eexp.tbl".
14437 (half): New constant.
14438 (one): Likewise.
14439 (__ieee754_exp): Rewrite.
14440 (__slowexp): Remove prototype.
14441 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
14442 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
14443 * sysdeps/i386/fpu/slowexp.c: Likewise.
14444 * sysdeps/ia64/fpu/slowexp.c: Likewise.
14445 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
14446 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
14447 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
14448 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14449 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
14450 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
14451 comment.
14452 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
14453 (CPPFLAGS-slowexp.c): Remove variable.
14454 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14455 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
14456 (CFLAGS-slowexp-fma.c): Remove variable.
14457 (CFLAGS-slowexp-fma4.c): Likewise.
14458 (CFLAGS-slowexp-avx.c): Likewise.
14459 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
14460 define as macro.
14461 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
14462 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
14463 * math/Makefile (type-double-routines): Remove slowexp.
14464 * manual/probes.texi (slowexp_p6): Remove.
14465 (slowexp_p32): Likewise.
14466
14467 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14468
14469 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
14470 arithmetic.
14471
14472 * lib/glob.c (glob): Do not pass NULL to mempcpy.
14473
14474 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14475
14476 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14477
14478 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14479
14480 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
14481 <errno.h>. Include "eexp.tbl".
14482 (half): New constant.
14483 (one): Likewise.
14484 (__ieee754_exp): Rewrite.
14485 (__slowexp): Remove prototype.
14486 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
14487 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
14488 * sysdeps/i386/fpu/slowexp.c: Likewise.
14489 * sysdeps/ia64/fpu/slowexp.c: Likewise.
14490 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
14491 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
14492 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
14493 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14494 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
14495 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
14496 comment.
14497 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
14498 (CPPFLAGS-slowexp.c): Remove variable.
14499 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14500 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
14501 (CFLAGS-slowexp-fma.c): Remove variable.
14502 (CFLAGS-slowexp-fma4.c): Likewise.
14503 (CFLAGS-slowexp-avx.c): Likewise.
14504 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
14505 define as macro.
14506 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
14507 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
14508 * math/Makefile (type-double-routines): Remove slowexp.
14509 * manual/probes.texi (slowexp_p6): Remove.
14510 (slowexp_p32): Likewise.
14511
14512 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14513 James Clarke <jrtc27@jrtc27.com>
14514
14515 [BZ #22603]
14516 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
14517 addition.
14518
14519 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14520
14521 [BZ #22605]
14522 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
14523 code.
14524
14525 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14526
14527 [BZ #22563]
14528 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14529 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
14530 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14531 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
14532 to feature_1.
14533
14534 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14535
14536 [BZ #22563]
14537 * bits/types/__cancel_jmp_buf_tag.h: New file.
14538 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
14539 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
14540 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
14541 * nptl/Makefile (headers): Add
14542 bits/types/__cancel_jmp_buf_tag.h.
14543 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
14544 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
14545 * sysdeps/nptl/pthread.h: Include
14546 <bits/types/__cancel_jmp_buf_tag.h>.
14547 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
14548 __cancel_jmp_buf.
14549 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
14550
14551 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
14552
14553 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14554 --enable-static-pie variants to x86_64, x32 and i686.
14555
14556 2017-12-19 Joseph Myers <joseph@codesourcery.com>
14557
14558 [BZ #22631]
14559 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
14560 argument for attrubutes. All callers changed.
14561 (__inline_mathop1): Likewise. All callers changed.
14562 (__inline_mathop): Likewise. All callers changed.
14563 [__USE_MISC] (scalbn): Use __inline_forward instead of
14564 __inline_forward_c.
14565 [__USE_ISOC99] (scalbln): Likewise.
14566 [__USE_ISOC99] (nearbyint): Likewise.
14567 [__USE_ISOC99] (lrint): Likewise.
14568 [__USE_MISC] (scalbnf): Likewise.
14569 [__USE_ISOC99] (scalblnf): Likewise.
14570 [__USE_ISOC99] (nearbyintf): Likewise.
14571 [__USE_ISOC99] (lrintf): Likewise.
14572 [__USE_MISC] (scalbnl): Likewise.
14573 [__USE_ISOC99] (scalblnl): Likewise.
14574 [__USE_ISOC99] (nearbyintl): Likewise.
14575 [__USE_ISOC99] (lrintl): Likewise.
14576 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
14577 __inline_mathop and __m81_defun changed.
14578
14579 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
14580 CPU or FPU for ARM hard-float configurations.
14581
14582 2017-12-18 Joseph Myers <joseph@codesourcery.com>
14583
14584 * nptl/tst-attr3.c: Include <libc-diag.h>.
14585 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
14586
14587 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
14588
14589 * string/tester.c (test_strncat): Also disable -Warray-bounds
14590 warnings for two tests.
14591
14592 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
14593
14594 [BZ #22614]
14595 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
14596 $(cc-pie-default) == yes.
14597 * config.make.in (cc-pie-default): New.
14598 * configure.ac (libc_cv_pie_default): Renamed to ...
14599 (libc_cv_cc_pie_default): This.
14600 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
14601 * configure: Regenerated.
14602
14603 2017-12-18 Florian Weimer <fweimer@redhat.com>
14604
14605 [BZ #20204]
14606 ld.so: Harden dl-libc/libdl hooks.
14607 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
14608 (rtld_active): New function.
14609 * dlfcn/dladdr.c (__dladdr): Call it.
14610 * dlfcn/dladdr1.c (__dladdr1): Likewise.
14611 * dlfcn/dlclose.c (__dlcose): Likewise.
14612 * dlfcn/dlerror.c (__dlerror): Likewise.
14613 * dlfcn/dlinfo.c (__dlinfo): Likewise.
14614 * dlfcn/dlmopen.c (__dlmopen): Likewise.
14615 * dlfcn/dlopen.c (__dlopen): Likewise.
14616 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
14617 * dlfcn/dlsym.c (__dlsym): Likewise.
14618 * dlfcn/dlvsym.c (__dlvsym): Likewise.
14619 * libio/vtables.c (_IO_vtable_check): Likewise.
14620 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
14621 (__libc_dlclose): Likewise.
14622 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
14623 assignment.
14624
14625 2017-12-18 Joseph Myers <joseph@codesourcery.com>
14626
14627 [BZ #22446]
14628 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
14629 buffers for readlink input and output.
14630
14631 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
14632
14633 [BZ #22624]
14634 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
14635 inhibit_stack_protector.
14636
14637 [BZ #22624]
14638 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
14639 inhibit_stack_protector.
14640
14641 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
14642
14643 [BZ #22627]
14644 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
14645 code and invocation.
14646
14647 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
14648
14649 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
14650
14651 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
14652
14653 [BZ #22505]
14654 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
14655
14656 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14657
14658 * sysdeps/s390/fpu/libm-test-ulps: Update.
14659
14660 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14661
14662 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14663
14664 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14665
14666 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
14667 constants to s_sincosf.h file.
14668 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14669 * sysdeps/ieee754/flt-32/s_sincosf.c: New
14670 implementation.
14671 * sysdeps/ieee754/flt-32/s_sincosf.h:
14672 New file.
14673
14674 2017-12-12 Carlos O'Donell <carlos@redhat.com>
14675
14676 [BZ #14681]
14677 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
14678 before mtrace.
14679
14680 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
14681
14682 [BZ #19574]
14683 * INSTALL: Regenerated.
14684 * Makeconfig (real-static-start-installed-name): New.
14685 (pic-default): Updated for --enable-static-pie.
14686 (pie-default): New for --enable-static-pie.
14687 (default-pie-ldflag): Likewise.
14688 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
14689 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
14690 Replace $(static-start-installed-name) with
14691 $(real-static-start-installed-name).
14692 (+prectorT): Updated for --enable-static-pie.
14693 (+postctorT): Likewise.
14694 (CFLAGS-.o): Add $(pie-default).
14695 (CFLAGS-.op): Likewise.
14696 * NEWS: Mention --enable-static-pie.
14697 * config.h.in (ENABLE_STATIC_PIE): New.
14698 * configure.ac (--enable-static-pie): New configure option.
14699 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
14700 (have-static-pie): Likewise.
14701 Enable static PIE if linker supports --no-dynamic-linker.
14702 (ENABLE_STATIC_PIE): New AC_DEFINE.
14703 (enable-static-pie): New LIBC_CONFIG_VAR.
14704 * configure: Regenerated.
14705 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
14706 gr$(start-installed-name) for --enable-static-pie.
14707 (extra-objs): Likewise.
14708 (install-lib): Likewise.
14709 (extra-objs): Add static-reloc.o and static-reloc.os
14710 ($(objpfx)$(start-installed-name)): Also depend on
14711 $(objpfx)static-reloc.o.
14712 ($(objpfx)r$(start-installed-name)): New.
14713 ($(objpfx)g$(start-installed-name)): Also depend on
14714 $(objpfx)static-reloc.os.
14715 ($(objpfx)gr$(start-installed-name)): New.
14716 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
14717 in libc.a.
14718 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
14719 initimage.
14720 * csu/static-reloc.c: New file.
14721 * elf/Makefile (routines): Add dl-reloc-static-pie.
14722 (elide-routines.os): Likewise.
14723 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
14724 (tst-tls1-static-non-pie-no-pie): New.
14725 * elf/dl-reloc-static-pie.c: New file.
14726 * elf/dl-support.c (_dl_get_dl_main_map): New function.
14727 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
14728 STATIC_PIE_BOOTSTRAP.
14729 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
14730 * gmon/Makefile (tests): Add tst-gmon-static-pie.
14731 (tests-static): Likewise.
14732 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
14733 (tst-gmon-static-no-pie): New.
14734 (CFLAGS-tst-gmon-static-pie.c): Likewise.
14735 (CRT-tst-gmon-static-pie): Likewise.
14736 (tst-gmon-static-pie-ENV): Likewise.
14737 (tests-special): Likewise.
14738 ($(objpfx)tst-gmon-static-pie.out): Likewise.
14739 (clean-tst-gmon-static-pie-data): Likewise.
14740 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
14741 * gmon/tst-gmon-static-pie.c: New file.
14742 * manual/install.texi: Document --enable-static-pie.
14743 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
14744 (_dl_get_dl_main_map): Likewise.
14745 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
14746 * sysdeps/x86_64/configure.ac: Likewise.
14747 * sysdeps/i386/configure: Regenerated.
14748 * sysdeps/x86_64/configure: Likewise.
14749 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
14750 (ASFLAGS-.op): Likewise.
14751
14752 2017-12-15 Joseph Myers <joseph@codesourcery.com>
14753
14754 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
14755 * posix/tst-mmap-offset.c (fname): Use /tmp.
14756 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
14757
14758 2017-12-15 Steve Ellcey <sellcey@cavium.com>
14759
14760 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
14761
14762 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
14763
14764 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
14765 errno.
14766
14767 2017-12-15 Joseph Myers <joseph@codesourcery.com>
14768
14769 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14770 --with-float=hard for arm-linux-gnueabihf configurations.
14771
14772 [BZ #14121]
14773 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
14774 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
14775 ($(mo-installed)): Use $(objpfx)%.mo.
14776 (realclean): Remove rule.
14777
14778 * po/Makefile (linguas): Remove rule and dependencies.
14779 (linguas.mo): Likewise.
14780 (.PHONY): Do not depend on linguas and linguas.mo.
14781 (podir): Remove variable.
14782 (pofiles): Likewise.
14783 [$(pofiles)] (%.po): Remove rule.
14784
14785 * sysdeps/sparc/sparc32/Makefile
14786 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
14787 start-of-line whitespace in argument of echo.
14788 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
14789 with whitespace. Generate __wrap_.udiv alias.
14790 * sysdeps/sparc/sparc32/rem.S: Regenerated.
14791 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
14792 * sysdeps/sparc/sparc32/udiv.S: Likewise.
14793 * sysdeps/sparc/sparc32/urem.S: Likewise.
14794
14795 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14796
14797 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
14798 for aligned inputs.
14799
14800 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14801
14802 * benchtests/bench-strcmp.c: Print output in JSON format.
14803
14804 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
14805
14806 2017-12-14 Florian Weimer <fweimer@redhat.com>
14807
14808 [BZ #22607]
14809 CVE-2017-1000409
14810 * elf/dl-load.c (_dl_init_paths): Compute number of components in
14811 the expanded path string.
14812
14813 2017-12-14 Florian Weimer <fweimer@redhat.com>
14814
14815 [BZ #22606]
14816 CVE-2017-1000408
14817 * elf/dl-load.c (system_dirs): Update comment.
14818 (nsystem_dirs_len): Use array_length.
14819 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
14820
14821 2017-12-14 Florian Weimer <fweimer@redhat.com>
14822
14823 Simplify compiling most of support/ outside of glibc.
14824 * support/check_addrinfo.c: Include <string.h>.
14825 * support/check_dns_packet.c: Likewise.
14826 * support/check_hostent.c: Likewise.
14827 * support/support_can_chroot.c: Include <support/xunistd.h>.
14828 * support/support_format_addrinfo.c: Include <stdlib.h>
14829 * support/support_format_dns_packet.c: Include <stdbool.h>.
14830 * support/support_format_hostent.c: Include <stdlib.h>.
14831 * support/support_format_netent.c: Likewise.
14832 * support/support_write_string.c: Include <support/xunistd.h>.
14833 * support/xdlfcn.c: Include <stddef.h>.
14834
14835 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
14836
14837 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
14838
14839 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14840 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14841
14842 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14843 (sysdeps_routines): Add memset-niagara7.
14844 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
14845 Likewise.
14846 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
14847 file.
14848 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
14849 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
14850 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
14851 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
14852 Add niagara7 option.
14853 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
14854 memset.
14855
14856 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
14857 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
14858 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
14859 Likewise.
14860 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
14861 New file.
14862 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
14863 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
14864 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
14865 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
14866 and __memmove_niagara7.
14867 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
14868 Add niagara7 option.
14869 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
14870 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
14871 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
14872 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
14873 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
14874
14875 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14876
14877 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
14878 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
14879 * sysdeps/sparc/sparc64/memmove.S: Likewise.
14880 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
14881
14882 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
14883 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
14884 _dl_sparc_cap_flags array.
14885 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
14886
14887 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14888
14889 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
14890 time whenever possible.
14891
14892 2017-12-12 Carlos O'Donell <carlos@redhat.com>
14893
14894 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
14895 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
14896
14897 2017-12-12 Joseph Myers <joseph@codesourcery.com>
14898
14899 * soft-fp/fmadf4.c: Move to ....
14900 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
14901 * soft-fp/fmasf4.c: Move to ....
14902 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
14903 * soft-fp/fmatf4.c: Move to ....
14904 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
14905 * sysdeps/ieee754/soft-fp/Makefile: New file.
14906 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
14907 * sysdeps/arm/preconfigure: Regenerated.
14908 * sysdeps/arm/nofpu/Implies: New file.
14909 * sysdeps/arm/s_fma.c: Remove file.
14910 * sysdeps/arm/s_fmaf.c: Likewise.
14911 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
14912 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
14913 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
14914 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
14915 * sysdeps/microblaze/s_fma.c: Remove file.
14916 * sysdeps/microblaze/s_fmaf.c: Likewise.
14917 * sysdeps/mips/mips32/nofpu/Implies: New file.
14918 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
14919 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
14920 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
14921 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
14922 * sysdeps/mips/ieee754/s_fma.c: Remove file.
14923 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
14924 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
14925 implementation.
14926 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
14927 * sysdeps/nios2/s_fma.c: Remove file.
14928 * sysdeps/nios2/s_fmaf.c: Likewise.
14929 * sysdeps/sh/nofpu/Implies: New file.
14930 * sysdeps/sh/s_fma.c: Remove file.
14931 * sysdeps/sh/s_fmaf.c: Likewise.
14932 * sysdeps/tile/Implies: Add ieee754/soft-fp.
14933 * sysdeps/tile/s_fma.c: Remove file.
14934 * sysdeps/tile/s_fmaf.c: Likewise.
14935
14936 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
14937
14938 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14939 Add s_cosf-sse2 and s_cosf-fma.
14940 (CFLAGS-s_cosf-fma.c): New.
14941 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
14942 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
14943 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
14944
14945 2017-12-12 Steve Ellcey <sellcey@cavium.com>
14946
14947 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
14948
14949 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14950
14951 * libio/Makefile (tests): Add tst-bz22415.
14952 (tst-bz22415-ENV): New rule.
14953 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
14954 (tests-special): Add tst-bz22415-mem.out.
14955 ($(objpfx)tst-bz22415-mem.out): New rule.
14956 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
14957 in case of a successful seek operation.
14958 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14959 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
14960 buffer is required.
14961 * libio/tst-bz22415.c: New test.
14962
14963 * sysdeps/ia64/fpu/libm-test-ulps: Update.
14964
14965 2017-12-12 James Clarke <jrtc27@jrtc27.com>
14966
14967 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
14968 __IPC_64 to 0 to avoid IPC_64 being set.
14969
14970 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
14971
14972 [BZ #22593]
14973 * math/bits/mathcalls.h (nextafter): Remove const.
14974 (nexttoward): Likewise.
14975
14976 2017-12-12 Joseph Myers <joseph@codesourcery.com>
14977
14978 * configure.ac (--with-fp): Remove configure option.
14979 (with_fp_cond): New variable.
14980 (libc_cv_with_fp): New configure test. Use this variable instead
14981 of with_fp.
14982 * configure: Regenerated.
14983 * config.make.in (with-fp): Use @libc_cv_with_fp@.
14984 * manual/install.texi (Configuring and compiling): Remove
14985 --without-fp.
14986 * INSTALL: Regenerated.
14987 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
14988 * sysdeps/mips/preconfigure (with_fp_cond): Define.
14989 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
14990 * sysdeps/sh/preconfigure (with_fp_cond): Define.
14991 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
14992 use --without-fp to configure glibc.
14993
14994 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
14995
14996 * manual/locale.texi (nl_langinfo): Fix a typo.
14997
14998 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
14999
15000 [BZ #22588]
15001 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
15002
15003 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
15004
15005 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
15006 (CFLAGS-argp-parse.c): Likewise.
15007 (CFLAGS-argp-fmtstream.c): Likewise.
15008 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
15009 (CPPFLAGS-sha512-crypt.c): Likewise.
15010 (CPPFLAGS-md5-crypt.c): Likewise.
15011 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
15012 (CFLAGS-stack_chk_fail_local.c): Likewise.
15013 (CFLAGS-backtrace.c): Likewise.
15014 (CFLAGS-sprintf_chk.c): Likewise.
15015 (CFLAGS-snprintf_chk.c): Likewise.
15016 (CFLAGS-vsprintf_chk.c): Likewise.
15017 (CFLAGS-vsnprintf_chk.c): Likewise.
15018 (CFLAGS-asprintf_chk.c): Likewise.
15019 (CFLAGS-vasprintf_chk.c): Likewise.
15020 (CFLAGS-obprintf_chk.c): Likewise.
15021 (CFLAGS-dprintf_chk.c): Likewise.
15022 (CFLAGS-vdprintf_chk.c): Likewise.
15023 (CFLAGS-printf_chk.c): Likewise.
15024 (CFLAGS-fprintf_chk.c): Likewise.
15025 (CFLAGS-vprintf_chk.c): Likewise.
15026 (CFLAGS-vfprintf_chk.c): Likewise.
15027 (CFLAGS-gets_chk.c): Likewise.
15028 (CFLAGS-fgets_chk.c): Likewise.
15029 (CFLAGS-fgets_u_chk.c): Likewise.
15030 (CFLAGS-fread_chk.c): Likewise.
15031 (CFLAGS-fread_u_chk.c): Likewise.
15032 (CFLAGS-swprintf_chk.c): Likewise.
15033 (CFLAGS-vswprintf_chk.c): Likewise.
15034 (CFLAGS-wprintf_chk.c): Likewise.
15035 (CFLAGS-fwprintf_chk.c): Likewise.
15036 (CFLAGS-vwprintf_chk.c): Likewise.
15037 (CFLAGS-vfwprintf_chk.c): Likewise.
15038 (CFLAGS-fgetws_chk.c): Likewise.
15039 (CFLAGS-fgetws_u_chk.c): Likewise.
15040 (CFLAGS-read_chk.c): Likewise.
15041 (CFLAGS-pread_chk.c): Likewise.
15042 (CFLAGS-pread64_chk.c): Likewise.
15043 (CFLAGS-recv_chk.c): Likewise.
15044 (CFLAGS-recvfrom_chk.c): Likewise.
15045 (CFLAGS-tst-longjmp_chk.c): Likewise.
15046 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
15047 (CFLAGS-tst-longjmp_chk2.c): Likewise.
15048 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
15049 (CFLAGS-tst-longjmp_chk3.c): Likewise.
15050 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
15051 (CFLAGS-tst-chk1.c): Likewise.
15052 (CFLAGS-tst-chk2.c): Likewise.
15053 (CFLAGS-tst-chk3.c): Likewise.
15054 (CFLAGS-tst-chk4.cc): Likewise.
15055 (CFLAGS-tst-chk5.cc): Likewise.
15056 (CFLAGS-tst-chk6.cc): Likewise.
15057 (CFLAGS-tst-lfschk1.c): Likewise.
15058 (CFLAGS-tst-lfschk2.c): Likewise.
15059 (CFLAGS-tst-lfschk3.c): Likewise.
15060 (CFLAGS-tst-lfschk4.cc): Likewise.
15061 (CFLAGS-tst-lfschk5.cc): Likewise.
15062 (CFLAGS-tst-lfschk6.cc): Likewise.
15063 (CFLAGS-tst-ssp-1.c): Likewise.
15064 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
15065 (CFLAGS-scandir64.c): Likewise.
15066 (CFLAGS-scandir-tail.c): Likewise.
15067 (CFLAGS-scandir64-tail.c): Likewise.
15068 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
15069 (CFLAGS-dl-tunables.c): Likewise.
15070 (CFLAGS-dl-runtime.c): Likewise.
15071 (CFLAGS-dl-lookup.c): Likewise.
15072 (CFLAGS-dl-iterate-phdr.c): Likewise.
15073 (CFLAGS-vismain.c): Likewise.
15074 (CFLAGS-tst-linkall-static.c): Likewise.
15075 (CFLAGS-tst-linkall-static.c): Likewise.
15076 (CPPFLAGS-dl-load.c): Likewise.
15077 (CFLAGS-ldconfig.c): Likewise.
15078 (CFLAGS-dl-cache.c): Likewise.
15079 (CFLAGS-cache.c): Likewise.
15080 (CFLAGS-rtld.c): Likewise.
15081 (CFLAGS-multiload.c): Likewise.
15082 (CFLAGS-filtmod1.c): Likewise.
15083 (CFLAGS-tst-align.c): Likewise.
15084 (CFLAGS-tst-align2.c): Likewise.
15085 (CFLAGS-tst-alignmod.c): Likewise.
15086 (CFLAGS-tst-alignmod2.c): Likewise.
15087 (CPPFLAGS-tst-execstack.c): Likewise.
15088 (CFLAGS-tst-ptrguard1-static.c): Likewise.
15089 (CFLAGS-tst-latepthreadmod.c): Likewise.
15090 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
15091 (CFLAGS-getgrnam_r.c): Likewise.
15092 (CFLAGS-getgrent_r.c): Likewise.
15093 (CFLAGS-getgrent.c): Likewise.
15094 (CFLAGS-fgetgrent.c): Likewise.
15095 (CFLAGS-fgetgrent_r.c): Likewise.
15096 (CFLAGS-putgrent.c): Likewise.
15097 (CFLAGS-initgroups.c): Likewise.
15098 (CFLAGS-getgrgid.c): Likewise.
15099 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
15100 (CFLAGS-getsgent.c): Likewise.
15101 (CFLAGS-fgetsgent.c): Likewise.
15102 (CFLAGS-fgetsgent_r.c): Likewise.
15103 (CFLAGS-putsgent.c): Likewise.
15104 (CFLAGS-getsgnam.c): Likewise.
15105 (CFLAGS-getsgnam_r.c): Likewise.
15106 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
15107 (CFLAGS-iconv_charmap.c): Likewise.
15108 (CFLAGS-dummy-repertoire.c): Likewise.
15109 (CFLAGS-charmap.c): Likewise.
15110 (CFLAGS-linereader.c): Likewise.
15111 (CFLAGS-simple-hash.c): Likewise.
15112 (CFLAGS-gconv_conf.c): Likewise.
15113 (CFLAGS-iconvconfig.c): Likewise.
15114 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15115 (CFLAGS-gethstbyad.c): Likewise.
15116 (CFLAGS-gethstbynm_r.c): Likewise.
15117 (CFLAGS-gethstbynm.c): Likewise.
15118 (CFLAGS-gethstbynm2_r.c): Likewise.
15119 (CFLAGS-gethstbynm2.c): Likewise.
15120 (CFLAGS-gethstent_r.c): Likewise.
15121 (CFLAGS-gethstent.c): Likewise.
15122 (CFLAGS-rcmd.c): Likewise.
15123 (CFLAGS-getnetbynm_r.c): Likewise.
15124 (CFLAGS-getnetbynm.c): Likewise.
15125 (CFLAGS-getnetbyad_r.c): Likewise.
15126 (CFLAGS-getnetbyad.c): Likewise.
15127 (CFLAGS-getnetent_r.c): Likewise.
15128 (CFLAGS-getnetent.c): Likewise.
15129 (CFLAGS-getaliasent_r.c): Likewise.
15130 (CFLAGS-getaliasent.c): Likewise.
15131 (CFLAGS-getrpcent_r.c): Likewise.
15132 (CFLAGS-getrpcent.c): Likewise.
15133 (CFLAGS-getservent_r.c): Likewise.
15134 (CFLAGS-getservent.c): Likewise.
15135 (CFLAGS-getprtent_r.c): Likewise.
15136 (CFLAGS-getprtent.c): Likewise.
15137 (CFLAGS-either_ntoh.c): Likewise.
15138 (CFLAGS-either_hton.c): Likewise.
15139 (CFLAGS-getnetgrent.c): Likewise.
15140 (CFLAGS-getnetgrent_r.c): Likewise.
15141 (CFLAGS-tst-checks-posix.c): Likewise.
15142 (CFLAGS-tst-sockaddr.c): Likewise.
15143 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
15144 (CFLAGS-tst-translit.c): Likewise.
15145 (CFLAGS-tst-gettext2.c): Likewise.
15146 (CFLAGS-tst-codeset.c): Likewise.
15147 (CFLAGS-tst-gettext3.c): Likewise.
15148 (CFLAGS-tst-gettext4.c): Likewise.
15149 (CFLAGS-tst-gettext5.c): Likewise.
15150 (CFLAGS-tst-gettext6.c): Likewise.
15151 * io/Makefile (CFLAGS-open.c): Likewise.
15152 (CFLAGS-open64.c): Likewise.
15153 (CFLAGS-creat.c): Likewise.
15154 (CFLAGS-creat64.c): Likewise.
15155 (CFLAGS-fcntl.c): Likewise.
15156 (CFLAGS-poll.c): Likewise.
15157 (CFLAGS-ppoll.c): Likewise.
15158 (CFLAGS-lockf.c): Likewise.
15159 (CFLAGS-statfs.c): Likewise.
15160 (CFLAGS-fstatfs.c): Likewise.
15161 (CFLAGS-statvfs.c): Likewise.
15162 (CFLAGS-fstatvfs.c): Likewise.
15163 (CFLAGS-fts.c): Likewise.
15164 (CFLAGS-fts64.c): Likewise.
15165 (CFLAGS-ftw.c): Likewise.
15166 (CFLAGS-ftw64.c): Likewise.
15167 (CFLAGS-lockf.c): Likewise.
15168 (CFLAGS-posix_fallocate.c): Likewise.
15169 (CFLAGS-posix_fallocate64.c): Likewise.
15170 (CFLAGS-fallocate.c): Likewise.
15171 (CFLAGS-fallocate64.c): Likewise.
15172 (CFLAGS-read.c): Likewise.
15173 (CFLAGS-write.c): Likewise.
15174 (CFLAGS-test-stat.c): Likewise.
15175 (CFLAGS-test-lfs.c): Likewise.
15176 * libio/Makefile (CFLAGS-fileops.c): Likewise.
15177 (CFLAGS-fputc.c): Likewise.
15178 (CFLAGS-fputwc.c): Likewise.
15179 (CFLAGS-freopen64.c): Likewise.
15180 (CFLAGS-freopen.c): Likewise.
15181 (CFLAGS-fseek.c): Likewise.
15182 (CFLAGS-fseeko64.c): Likewise.
15183 (CFLAGS-fseeko.c): Likewise.
15184 (CFLAGS-ftello64.c): Likewise.
15185 (CFLAGS-ftello.c): Likewise.
15186 (CFLAGS-fwide.c): Likewise.
15187 (CFLAGS-genops.c): Likewise.
15188 (CFLAGS-getc.c): Likewise.
15189 (CFLAGS-getchar.c): Likewise.
15190 (CFLAGS-getwc.c): Likewise.
15191 (CFLAGS-getwchar.c): Likewise.
15192 (CFLAGS-iofclose.c): Likewise.
15193 (CFLAGS-iofflush.c): Likewise.
15194 (CFLAGS-iofgetpos64.c): Likewise.
15195 (CFLAGS-iofgetpos.c): Likewise.
15196 (CFLAGS-iofgets.c): Likewise.
15197 (CFLAGS-iofgetws.c): Likewise.
15198 (CFLAGS-iofputs.c): Likewise.
15199 (CFLAGS-iofputws.c): Likewise.
15200 (CFLAGS-iofread.c): Likewise.
15201 (CFLAGS-iofsetpos64.c): Likewise.
15202 (CFLAGS-iofsetpos.c): Likewise.
15203 (CFLAGS-ioftell.c): Likewise.
15204 (CFLAGS-iofwrite.c): Likewise.
15205 (CFLAGS-iogetdelim.c): Likewise.
15206 (CFLAGS-iogetline.c): Likewise.
15207 (CFLAGS-iogets.c): Likewise.
15208 (CFLAGS-iogetwline.c): Likewise.
15209 (CFLAGS-ioputs.c): Likewise.
15210 (CFLAGS-ioseekoff.c): Likewise.
15211 (CFLAGS-ioseekpos.c): Likewise.
15212 (CFLAGS-iosetbuffer.c): Likewise.
15213 (CFLAGS-iosetvbuf.c): Likewise.
15214 (CFLAGS-ioungetc.c): Likewise.
15215 (CFLAGS-ioungetwc.c): Likewise.
15216 (CFLAGS-oldfileops.c): Likewise.
15217 (CFLAGS-oldiofclose.c): Likewise.
15218 (CFLAGS-oldiofgetpos64.c): Likewise.
15219 (CFLAGS-oldiofgetpos.c): Likewise.
15220 (CFLAGS-oldiofsetpos64.c): Likewise.
15221 (CFLAGS-oldiofsetpos.c): Likewise.
15222 (CFLAGS-peekc.c): Likewise.
15223 (CFLAGS-putc.c): Likewise.
15224 (CFLAGS-putchar.c): Likewise.
15225 (CFLAGS-putwc.c): Likewise.
15226 (CFLAGS-putwchar.c): Likewise.
15227 (CFLAGS-rewind.c): Likewise.
15228 (CFLAGS-wfileops.c): Likewise.
15229 (CFLAGS-wgenops.c): Likewise.
15230 (CFLAGS-oldiofopen.c): Likewise.
15231 (CFLAGS-iofopen.c): Likewise.
15232 (CFLAGS-iofopen64.c): Likewise.
15233 (CFLAGS-oldtmpfile.c): Likewise.
15234 (CFLAGS-tst_putwc.c): Likewise.
15235 * locale/Makefile (CFLAGS-md5.c): Likewise.
15236 (CFLAGS-charmap.c): Likewise.
15237 (CFLAGS-locfile.c): Likewise.
15238 (CFLAGS-charmap-dir.c): Likewise.
15239 * login/Makefile (CFLAGS-grantpt.c): Likewise.
15240 (CFLAGS-getpt.c): Likewise.
15241 (CFLAGS-pt_chown.c): Likewise.
15242 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
15243 (CFLAGS-obstack.c): Likewise.
15244 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
15245 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
15246 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
15247 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
15248 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
15249 (CFLAGS-test-tgmath.c): Likewise.
15250 (CFLAGS-test-tgmath2.c): Likewise.
15251 (CFLAGS-test-tgmath-ret.c): Likewise.
15252 (CFLAGS-test-powl.c): Likewise.
15253 (CFLAGS-test-snan.c): Likewise.
15254 (CFLAGS-test-signgam-finite.c): Likewise.
15255 (CFLAGS-test-signgam-finite-c99.c): Likewise.
15256 (CFLAGS-test-signgam-finite-c11.c): Likewise.
15257 (CFLAGS-test-signgam-uchar.c): Likewise.
15258 (CFLAGS-test-signgam-uchar-init.c): Likewise.
15259 (CFLAGS-test-signgam-uchar-static.c): Likewise.
15260 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
15261 (CFLAGS-test-signgam-uint.c): Likewise.
15262 (CFLAGS-test-signgam-uint-init.c): Likewise.
15263 (CFLAGS-test-signgam-uint-static.c): Likewise.
15264 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
15265 (CFLAGS-test-signgam-ullong.c): Likewise.
15266 (CFLAGS-test-signgam-ullong-init.c): Likewise.
15267 (CFLAGS-test-signgam-ullong-static.c): Likewise.
15268 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
15269 (CFLAGS-test-math-cxx11.cc): Likewise.
15270 (CFLAGS-test-math-isinff.cc): Likewise.
15271 (CFLAGS-test-math-iszero.cc): Likewise.
15272 (CFLAGS-test-math-issignaling.cc): Likewise.
15273 (CFLAGS-test-math-iscanonical.cc): Likewise.
15274 (CFLAGS-test-iszero-excess-precision.c): Likewise.
15275 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
15276 (CFLAGS-test-flt-eval-method.c): Likewise.
15277 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
15278 (CFLAGS-test-finite-macros.c): Likewise.
15279 * misc/Makefile (CFLAGS-select.c): Likewise.
15280 (CFLAGS-tsearch.c): Likewise.
15281 (CFLAGS-lsearch.c): Likewise.
15282 (CFLAGS-pselect.c): Likewise.
15283 (CFLAGS-readv.c): Likewise.
15284 (CFLAGS-writev.c): Likewise.
15285 (CFLAGS-preadv.c): Likewise.
15286 (CFLAGS-preadv64.c): Likewise.
15287 (CFLAGS-pwritev.c): Likewise.
15288 (CFLAGS-pwritev64.c): Likewise.
15289 (CFLAGS-preadv2.c): Likewise.
15290 (CFLAGS-preadv64v2.c): Likewise.
15291 (CFLAGS-pwritev2.c): Likewise.
15292 (CFLAGS-pwritev64v2.c): Likewise.
15293 (CFLAGS-usleep.c): Likewise.
15294 (CFLAGS-syslog.c): Likewise.
15295 (CFLAGS-error.c): Likewise.
15296 (CFLAGS-getpass.c): Likewise.
15297 (CFLAGS-mkstemp.c): Likewise.
15298 (CFLAGS-mkstemp64.c): Likewise.
15299 (CFLAGS-getsysstats.c): Likewise.
15300 (CFLAGS-getusershell.c): Likewise.
15301 (CFLAGS-err.c): Likewise.
15302 (CFLAGS-tst-tsearch.c): Likewise.
15303 (CFLAGS-msync.c): Likewise.
15304 (CFLAGS-fdatasync.c): Likewise.
15305 (CFLAGS-fsync.c): Likewise.
15306 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
15307 (CFLAGS-unwind.c): Likewise.
15308 (CFLAGS-unwind-forcedunwind.c): Likewise.
15309 (CFLAGS-pthread_cancel.c): Likewise.
15310 (CFLAGS-pthread_setcancelstate.c): Likewise.
15311 (CFLAGS-pthread_setcanceltype.c): Likewise.
15312 (CFLAGS-cancellation.c): Likewise.
15313 (CFLAGS-libc-cancellation.c): Likewise.
15314 (CFLAGS-pthread_exit.c): Likewise.
15315 (CFLAGS-forward.c): Likewise.
15316 (CFLAGS-pthread_testcancel.c): Likewise.
15317 (CFLAGS-pthread_join.c): Likewise.
15318 (CFLAGS-pthread_timedjoin.c): Likewise.
15319 (CFLAGS-pthread_once.c): Likewise.
15320 (CFLAGS-pthread_cond_wait.c): Likewise.
15321 (CFLAGS-sem_wait.c): Likewise.
15322 (CFLAGS-sem_timedwait.c): Likewise.
15323 (CFLAGS-fcntl.c): Likewise.
15324 (CFLAGS-lockf.c): Likewise.
15325 (CFLAGS-pread.c): Likewise.
15326 (CFLAGS-pread64.c): Likewise.
15327 (CFLAGS-pwrite.c): Likewise.
15328 (CFLAGS-pwrite64.c): Likewise.
15329 (CFLAGS-wait.c): Likewise.
15330 (CFLAGS-waitpid.c): Likewise.
15331 (CFLAGS-sigwait.c): Likewise.
15332 (CFLAGS-msgrcv.c): Likewise.
15333 (CFLAGS-msgsnd.c): Likewise.
15334 (CFLAGS-tcdrain.c): Likewise.
15335 (CFLAGS-open.c): Likewise.
15336 (CFLAGS-open64.c): Likewise.
15337 (CFLAGS-pause.c): Likewise.
15338 (CFLAGS-recv.c): Likewise.
15339 (CFLAGS-send.c): Likewise.
15340 (CFLAGS-accept.c): Likewise.
15341 (CFLAGS-sendto.c): Likewise.
15342 (CFLAGS-connect.c): Likewise.
15343 (CFLAGS-recvfrom.c): Likewise.
15344 (CFLAGS-recvmsg.c): Likewise.
15345 (CFLAGS-sendmsg.c): Likewise.
15346 (CFLAGS-close.c): Likewise.
15347 (CFLAGS-read.c): Likewise.
15348 (CFLAGS-write.c): Likewise.
15349 (CFLAGS-nanosleep.c): Likewise.
15350 (CFLAGS-sigsuspend.c): Likewise.
15351 (CFLAGS-msync.c): Likewise.
15352 (CFLAGS-fdatasync.c): Likewise.
15353 (CFLAGS-fsync.c): Likewise.
15354 (CFLAGS-pt-system.c): Likewise.
15355 (CFLAGS-tst-cleanup2.c): Likewise.
15356 (CFLAGS-tst-cleanupx2.c): Likewise.
15357 (CFLAGS-flockfile.c): Likewise.
15358 (CFLAGS-ftrylockfile.c): Likewise.
15359 (CFLAGS-funlockfile.c): Likewise.
15360 (CFLAGS-tst-initializers1.c): Likewise.
15361 (CFLAGS-tst-initializers1-c89.c): Likewise.
15362 (CFLAGS-tst-initializers1-c99.c): Likewise.
15363 (CFLAGS-tst-initializers1-c11.c): Likewise.
15364 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
15365 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
15366 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
15367 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
15368 (CFLAGS-nscd_getgr_r.c): Likewise.
15369 (CFLAGS-nscd_gethst_r.c): Likewise.
15370 (CFLAGS-nscd_getai.c): Likewise.
15371 (CFLAGS-nscd_initgroups.c): Likewise.
15372 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
15373 (CFLAGS-pause.c): Likewise.
15374 (CFLAGS-pread.c): Likewise.
15375 (CFLAGS-pread64.c): Likewise.
15376 (CFLAGS-pwrite.c): Likewise.
15377 (CFLAGS-pwrite64.c): Likewise.
15378 (CFLAGS-sleep.c): Likewise.
15379 (CFLAGS-wait.c): Likewise.
15380 (CFLAGS-waitid.c): Likewise.
15381 (CFLAGS-waitpid.c): Likewise.
15382 (CFLAGS-getopt.c): Likewise.
15383 (CFLAGS-wordexp.c): Likewise.
15384 (CFLAGS-sysconf.c): Likewise.
15385 (CFLAGS-pathconf.c): Likewise.
15386 (CFLAGS-fpathconf.c): Likewise.
15387 (CFLAGS-spawn.c): Likewise.
15388 (CFLAGS-spawnp.c): Likewise.
15389 (CFLAGS-spawni.c): Likewise.
15390 (CFLAGS-glob.c): Likewise.
15391 (CFLAGS-glob64.c): Likewise.
15392 (CFLAGS-getconf.c): Likewise.
15393 (CFLAGS-nanosleep.c): Likewise.
15394 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
15395 (CFLAGS-getpwent.c): Likewise.
15396 (CFLAGS-getpw.c): Likewise.
15397 (CFLAGS-fgetpwent_r.c): Likewise.
15398 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
15399 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
15400 (CFLAGS-mq_timedreceive.c): Likewise.
15401 (CFLAGS-mq_timedsend.c): Likewise.
15402 (CFLAGS-clock_nanosleep.c): Likewise.
15403 (CFLAGS-librt-cancellation.c): Likewise.
15404 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
15405 (CFLAGS-getspent.c): Likewise.
15406 (CFLAGS-fgetspent.c): Likewise.
15407 (CFLAGS-fgetspent_r.c): Likewise.
15408 (CFLAGS-putspent.c): Likewise.
15409 (CFLAGS-getspnam.c): Likewise.
15410 (CFLAGS-getspnam_r.c): Likewise.
15411 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
15412 (CFLAGS-sigsuspend.c): Likewise.
15413 (CFLAGS-sigtimedwait.c): Likewise.
15414 (CFLAGS-sigwait.c): Likewise.
15415 (CFLAGS-sigwaitinfo.c): Likewise.
15416 (CFLAGS-sigreturn.c): Likewise.
15417 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
15418 (CFLAGS-vfwprintf.c): Likewise.
15419 (CFLAGS-tmpfile.c): Likewise.
15420 (CFLAGS-tmpfile64.c): Likewise.
15421 (CFLAGS-tempname.c): Likewise.
15422 (CFLAGS-psignal.c): Likewise.
15423 (CFLAGS-vprintf.c): Likewise.
15424 (CFLAGS-cuserid.c): Likewise.
15425 (CFLAGS-errlist.c): Likewise.
15426 (CFLAGS-siglist.c): Likewise.
15427 (CFLAGS-scanf15.c): Likewise.
15428 (CFLAGS-scanf17.c): Likewise.
15429 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
15430 (CFLAGS-msort.c): Likewise.
15431 (CFLAGS-qsort.c): Likewise.
15432 (CFLAGS-system.c): Likewise.
15433 (CFLAGS-fmtmsg.c): Likewise.
15434 (CFLAGS-strfmon.c): Likewise.
15435 (CFLAGS-strfmon_l.c): Likewise.
15436 (CFLAGS-strfromd.c): Likewise.
15437 (CFLAGS-strfromf.c): Likewise.
15438 (CFLAGS-strfroml.c): Likewise.
15439 (CFLAGS-tst-bsearch.c): Likewise.
15440 (CFLAGS-tst-qsort.c): Likewise.
15441 (CFLAGS-tst-makecontext2.c): Likewise.
15442 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
15443 (CFLAGS-xnlm_prot.c): Likewise.
15444 (CFLAGS-xrstat.c): Likewise.
15445 (CFLAGS-xyppasswd.c): Likewise.
15446 (CFLAGS-xklm_prot.c): Likewise.
15447 (CFLAGS-xrex.c): Likewise.
15448 (CFLAGS-xsm_inter.c): Likewise.
15449 (CFLAGS-xmount.c): Likewise.
15450 (CFLAGS-xrusers.c): Likewise.
15451 (CFLAGS-xspray.c): Likewise.
15452 (CFLAGS-xnfs_prot.c): Likewise.
15453 (CFLAGS-xrquota.c): Likewise.
15454 (CFLAGS-xkey_prot.c): Likewise.
15455 (CFLAGS-auth_unix.c): Likewise.
15456 (CFLAGS-key_call.c): Likewise.
15457 (CFLAGS-pmap_rmt.c): Likewise.
15458 (CFLAGS-clnt_perr.c): Likewise.
15459 (CFLAGS-openchild.c): Likewise.
15460 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
15461 (CFLAGS-msgsnd.c): Likewise.
15462 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
15463 * time/Makefile (CFLAGS-tzfile.c): Likewise.
15464 (CFLAGS-tzset.c): Likewise.
15465 (CFLAGS-getdate.c): Likewise.
15466 (CFLAGS-test_time.c): Likewise.
15467 (CPPFLAGS-tst-tzname.c): Likewise.
15468 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
15469 (CFLAGS-zic.c): Likewise.
15470 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
15471 (CFLAGS-wcswidth.c): Likewise.
15472 (CFLAGS-wcstol.c): Likewise.
15473 (CFLAGS-wcstoul.c): Likewise.
15474 (CFLAGS-wcstoll.c): Likewise.
15475 (CFLAGS-wcstoull.c): Likewise.
15476 (CFLAGS-wcstod.c): Likewise.
15477 (CFLAGS-wcstold.c): Likewise.
15478 (CFLAGS-wcstof128.c): Likewise.
15479 (CFLAGS-wcstof.c): Likewise.
15480 (CFLAGS-wcstol_l.c): Likewise.
15481 (CFLAGS-wcstoul_l.c): Likewise.
15482 (CFLAGS-wcstoll_l.c): Likewise.
15483 (CFLAGS-wcstoull_l.c): Likewise.
15484 (CFLAGS-wcstod_l.c): Likewise.
15485 (CFLAGS-wcstold_l.c): Likewise.
15486 (CFLAGS-wcstof128_l.c): Likewise.
15487 (CFLAGS-wcstof_l.c): Likewise.
15488 (CPPFLAGS-tst-wchar-h.c): Likewise.
15489 (CPPFLAGS-wcstold_l.c): Likewise.
15490 ---
15491 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
15492
15493 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
15494
15495 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
15496 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15497
15498 * manual/tunables.texi (Hardware Capability Tunables): Document
15499 glibc.tune.cached_memopt.
15500 * sysdeps/powerpc/cpu-features.c: New file.
15501 * sysdeps/powerpc/cpu-features.h: New file.
15502 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
15503 _dl_powerpc_cpu_features.
15504 * sysdeps/powerpc/dl-tunables.list: New file.
15505 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
15506 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
15507 (INIT_ARCH): Initialize use_aligned_memopt.
15508 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
15509 IS_IN(rtld))]: Restrict dl_platform_init availability and
15510 initialize CPU features used by tunables.
15511 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
15512 Add memcpy-power8-cached.
15513 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
15514 __memcpy_power8_cached.
15515 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
15516 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
15517 New file.
15518
15519 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
15520
15521 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
15522 (CFLAGS-noinl-tester.c): Likewise.
15523 (CFLAGS-tst-strlen.c): Likewise.
15524 (CFLAGS-stratcliff.c): Likewise.
15525 (CFLAGS-test-ffs.c): Likewise.
15526 (CFLAGS-tst-inlcall.c): Likewise.
15527 (CFLAGS-tst-xbzero-opt.c): Likewise.
15528 (CFLAGS-memcpy.c): Likewise.
15529 (CFLAGS-wordcopy.c): Likewise.
15530
15531 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
15532
15533 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
15534 Store r15 on stack and add cfi rule.
15535 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
15536 Likewise.
15537
15538 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
15539
15540 [BZ #22577]
15541 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
15542 call.
15543
15544 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
15545
15546 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15547 Add s_sinf-sse2 and s_sinf-fma.
15548 (CFLAGS-s_sinf-fma.c): New.
15549 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
15550 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
15551 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
15552
15553 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
15554
15555 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
15556
15557 2017-12-07 Joseph Myers <joseph@codesourcery.com>
15558
15559 [BZ #22568]
15560 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
15561 part of result to imaginary part of argument if it is zero and the
15562 real part of the argument is not finite.
15563 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
15564 of result to real part of argument if it is zero and the imaginary
15565 part of the argument is not finite.
15566
15567 2017-12-07 Mike FABIAN <mfabian@redhat.com>
15568
15569 [BZ #22524]
15570 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
15571 and to the list of locales to be built for testing.
15572 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
15573 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
15574 and build the collation rules upon that.
15575
15576 2017-12-07 Joseph Myers <joseph@codesourcery.com>
15577
15578 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
15579 * manual/math.texi (Mathematics): Document support for _Float32.
15580 * math/Makefile (test-types): Add float32.
15581 * math/Versions (GLIBC_2.27): Add _Float32 functions.
15582 * stdlib/Versions (GLIBC_2.27): Likewise.
15583 * wcsmbs/Versions (GLIBC_2.27): Likewise.
15584 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
15585 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15586 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15587 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15588 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15589 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15590 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15591 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15592 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15593 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15594 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15595 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15596 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15597 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15598 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15599 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15600 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15601 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15602 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15603 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15604 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
15605 Likewise.
15606 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15607 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15608 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15609 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15610 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15612 Likewise.
15613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15614 Likewise.
15615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15616 Likewise.
15617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15618 Likewise.
15619
15620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15621 Likewise.
15622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
15623 Likewise.
15624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15625 Likewise.
15626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15627 Likewise.
15628 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15629 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15630 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15631 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15632 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15633 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15634 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15635 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15636 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15637 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15638 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
15639 Likewise.
15640 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15641 Likewise.
15642 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15643 Likewise.
15644 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15645 Likewise.
15646 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15647 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15648 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15649 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15650 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15651 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15652 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15653 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15654
15655 2017-12-06 Joseph Myers <joseph@codesourcery.com>
15656
15657 * stdlib/strtof.c: Include <bits/floatn.h>
15658 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
15659 and later undefine as macro. Define as weak alias if
15660 [!USE_WIDE_CHAR].
15661 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
15662 and later undefine as macro. Define as weak alias if
15663 [USE_WIDE_CHAR].
15664 * stdlib/strtof_l.c: Include <bits/floatn.h>
15665 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
15666 and later undefine as macro. Define as weak alias if
15667 [!USE_WIDE_CHAR].
15668 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
15669 and later undefine as macro. Define as weak alias if
15670 [USE_WIDE_CHAR].
15671
15672 * stdlib/strfromf.c: Include <bits/floatn.h>.
15673 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
15674 and later undefine as macro and define as weak alias.
15675
15676 * math/test-float32.h: New file.
15677
15678 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
15679 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
15680 (libm_alias_float_other_r): Create f32 alias.
15681 (libm_alias_float_r): Use semicolon before call to
15682 libm_alias_float_other_r.
15683
15684 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
15685 second argument to libm_alias_float_other.
15686 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
15687 second argument to libm_alias_float_other.
15688 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
15689 argument to libm_alias_float_other.
15690
15691 [BZ #22561]
15692 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
15693 real part of result for argument 0 + i * NaN.
15694 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
15695 results for tests of 0 + i * NaN.
15696
15697 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15698
15699 * sysdeps/alpha/fpu/libm-test-ulps: Update.
15700
15701 2017-12-06 David S. Miller <davem@davemloft.net>
15702
15703 * sysdeps/sparc/fpu/libm-test-ulps: Update
15704 exp_{downward,towardzero,upward} ulps.
15705
15706 2017-12-06 Joseph Myers <joseph@codesourcery.com>
15707
15708 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
15709 variables static.
15710
15711 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
15712 (Y0_2D): Likewise.
15713 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
15714 (Y0_2D): Likewise.
15715 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
15716 (Y0_2D): Likewise.
15717 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
15718 (Y0_2D): Likewise.
15719
15720 2017-12-06 Mike FABIAN <mfabian@redhat.com>
15721
15722 [BZ #22515]
15723 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
15724 and to the list of locales to be built for testing.
15725 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
15726 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
15727 and build the collation rules upon that.
15728
15729 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15730
15731 * NEWS: Add sinf to list of optimized functions.
15732
15733 2017-12-06 Joseph Myers <joseph@codesourcery.com>
15734
15735 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
15736 (__HAVE_FLOAT32X): Likewise.
15737 * manual/math.texi (Mathematics): Document support for _Float64
15738 and _Float32x.
15739 * math/Makefile (test-types): Add float64 and float32x.
15740 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
15741 functions.
15742 * stdlib/Versions (GLIBC_2.27): Likewise.
15743 * wcsmbs/Versions (GLIBC_2.27): Likewise.
15744 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
15745 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15746 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15747 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15748 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
15749 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15750 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15751 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15752 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15753 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15754 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15755 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15756 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15757 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15758 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15759 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15760 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15761 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15762 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15763 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15764 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
15765 Likewise.
15766 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15767 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15768 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15769 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15770 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15772 Likewise.
15773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
15774 Likewise.
15775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15776 Likewise.
15777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
15778 Likewise.
15779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
15780 Likewise.
15781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
15782 Likewise.
15783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
15784 Likewise.
15785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
15786 Likewise.
15787 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15788 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15789 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15790 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15791 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15792 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15793 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15794 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15795 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15796 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15797 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
15798 Likewise.
15799 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
15800 Likewise.
15801 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15802 Likewise.
15803 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
15804 Likewise.
15805 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15806 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15807 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15808 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15809 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15810 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15811 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15812 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15813
15814 2017-12-05 Joseph Myers <joseph@codesourcery.com>
15815
15816 * bits/floatn-common.h: Include <bits/long-double.h>.
15817 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15818 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
15819 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15820 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
15821 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
15822 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
15823 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15824 (__builtin_huge_valf64): Use __builtin_huge_vall.
15825 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15826 (__builtin_inff64): Use __builtin_infl.
15827 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15828 (__builtin_nanf64): Use __builtin_nanl.
15829 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
15830 (__builtin_nansf64): Use __builtin_nansl.
15831
15832 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15833 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
15834 Carlos O'Donnell <carlos@redhat.com>
15835
15836 * elf/dl-tunables.list: Add elision parameters.
15837 * manual/tunables.texi: Add entries about elision tunable.
15838 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
15839 Add callback functions to dynamically enable/disable elision.
15840 Add multiple callbacks functions to set elision parameters.
15841 Deleted __libc_enable_secure check.
15842 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
15843 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
15844 * configure: Regenerated.
15845 * configure.ac: Option enable_lock_elision was deleted.
15846 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
15847 * config.make.in: Remove references to enable_lock_elision.
15848 * manual/install.texi: Elision configure option was removed.
15849 * INSTALL: Regenerated to remove enable_lock_elision.
15850 * nptl/Makefile:
15851 Disable elision so it can verify error case for destroying a mutex.
15852 * sysdeps/powerpc/nptl/elide.h:
15853 Cleanup ENABLE_LOCK_ELISION check.
15854 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
15855 * sysdeps/s390/configure: Regenerated.
15856 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
15857 * nptl/tst-mutex8.c:
15858 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
15859 * sysdeps/powerpc/powerpc32/sysdep.h:
15860 Deleted all ENABLE_LOCK_ELISION checks.
15861 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
15862 * sysdeps/powerpc/sysdep.h: Likewise.
15863 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
15864 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
15865 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
15866 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
15867 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
15868 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
15869 enable-lock-elision.
15870
15871 2017-12-05 Joseph Myers <joseph@codesourcery.com>
15872
15873 * stdlib/strtod.c: Include <bits/floatn.h>.
15874 (BUILD_DOUBLE): New macro.
15875 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15876 (strtof64): Define and later undefine as macro. Define as weak
15877 alias if [!USE_WIDE_CHAR].
15878 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15879 (wcstof64): Define and later undefine as macro. Define as weak
15880 alias if [USE_WIDE_CHAR].
15881 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15882 (strtof32x): Define and later undefine as macro. Define as weak
15883 alias if [!USE_WIDE_CHAR].
15884 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15885 (wcstof32x): Define and later undefine as macro. Define as weak
15886 alias if [USE_WIDE_CHAR].
15887 * stdlib/strtod_l.c: Include <bits/floatn.h>.
15888 (BUILD_DOUBLE): New macro.
15889 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15890 (strtof64_l): Define and later undefine as macro. Define as weak
15891 alias if [!USE_WIDE_CHAR].
15892 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
15893 (wcstof64_l): Define and later undefine as macro. Define as weak
15894 alias if [USE_WIDE_CHAR].
15895 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15896 (strtof32x_l): Define and later undefine as macro. Define as weak
15897 alias if [!USE_WIDE_CHAR].
15898 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
15899 (wcstof32x_l): Define and later undefine as macro. Define as weak
15900 alias if [USE_WIDE_CHAR].
15901
15902 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15903
15904 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
15905 (reduced): Use ones as double instead of integer.
15906
15907 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
15908
15909 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
15910
15911 2017-12-05 Joseph Myers <joseph@codesourcery.com>
15912
15913 * stdlib/strfromd.c: Include <bits/floatn.h>.
15914 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
15915 and later undefine as macro and define as weak alias.
15916 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
15917 Likewise.
15918
15919 * math/test-float32x.h: New file.
15920 * math/test-float64.h: Likewise.
15921
15922 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
15923 (libm_alias_double_other_r_f64): New macro.
15924 (libm_alias_double_other_r_f32x): Likewise.
15925 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
15926 libm_alias_double_other_r_f32x.
15927 (libm_alias_double_r): Use semicolon before call to
15928 libm_alias_double_other_r.
15929 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
15930 <bits/floatn.h>.
15931 (libm_alias_double_other_r_f64): New macro.
15932 (libm_alias_double_other_r_f32x): Likewise.
15933 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
15934 libm_alias_double_other_r_f32x.
15935
15936 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
15937
15938 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
15939 int.
15940 (SINF_FUNC): Likewise. Replace floor with simple casts.
15941
15942 2017-12-05 Mike FABIAN <mfabian@redhat.com>
15943
15944 [BZ #22517]
15945 * localedata/Makefile: Add et_EE.UTF-8 to test-input
15946 and to the list of locales to be built for testing.
15947 * localedata/et_EE.UTF-8.in: New file for testing the collation.
15948 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
15949 and build the collation rules upon that.
15950
15951 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
15952
15953 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
15954 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
15955 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
15956 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
15957 instead of __insn__xxx.
15958 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
15959 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
15960 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
15961 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
15962 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
15963 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
15964
15965 2017-12-05 Florian Weimer <fweimer@redhat.com>
15966
15967 Linux: Implement interfaces for memory protection keys
15968 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
15969 xsignal, xsysconf.
15970 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
15971 * support/xunistd.h (xsysconf): Declare.
15972 * support/xraise.c: New file.
15973 * support/xsigaction.c: Likewise.
15974 * support/xsignal.c: Likewise.
15975 * support/xsysconf.c: Likewise.
15976 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
15977 pkey_set, pkey_get, pkey_mprotect.
15978 [misc] (tests): Add tst-pkey.
15979 (tst-pkey): Link with -lpthread.
15980 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
15981 pkey_free, pkey_set, pkey_get, pkey_mprotect.
15982 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
15983 (PKEY_DISABLE_WRITE): Define.
15984 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
15985 Declare.
15986 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
15987 (SEGV_PKUERR): Add.
15988 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
15989 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
15990 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
15991 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
15992 Add.
15993 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
15994 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
15995 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
15996 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
15997 * sysdeps/unix/sysv/linux/**.abilist: Update.
15998
15999 2017-12-05 Florian Weimer <fweimer@redhat.com>
16000
16001 * support/tst-test_compare.c (subprocess): Use long long instead
16002 of long argument for consistent type width across 32-bit and
16003 64-bit architectures.
16004 (do_test): Adjust expected output.
16005
16006 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16007
16008 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
16009 (cosf): Define using libm_alias_float.
16010 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
16011 (fabsf): Define using libm_alias_float.
16012 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
16013 (fmaf): Define using libm_alias_float.
16014 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
16015 (rintf): Define using libm_alias_float.
16016 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
16017 (sinf): Define using libm_alias_float.
16018 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
16019 <libm-alias-float.h>.
16020 (modff): Define using libm_alias_float.
16021 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
16022 <libm-alias-float.h>.
16023 (logbf): Define using libm_alias_float.
16024 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
16025 <libm-alias-float.h>.
16026 (ceilf): Define using libm_alias_float.
16027 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
16028 <libm-alias-float.h>.
16029 (copysignf): Define using libm_alias_float.
16030 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
16031 <libm-alias-float.h>.
16032 (floorf): Define using libm_alias_float.
16033 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16034 <libm-alias-float.h>.
16035 (llrintf): Define using libm_alias_float.
16036 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16037 <libm-alias-float.h>.
16038 (llroundf): Define using libm_alias_float.
16039 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
16040 <libm-alias-float.h>.
16041 (lrintf): Define using libm_alias_float.
16042 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
16043 <libm-alias-float.h>.
16044 (lroundf): Define using libm_alias_float.
16045 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
16046 <libm-alias-float.h>.
16047 (nearbyintf): Define using libm_alias_float.
16048 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
16049 <libm-alias-float.h>.
16050 (rintf): Define using libm_alias_float.
16051 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
16052 <libm-alias-float.h>.
16053 (roundf): Define using libm_alias_float.
16054 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
16055 <libm-alias-float.h>.
16056 (truncf): Define using libm_alias_float.
16057 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
16058 Include <libm-alias-float.h>.
16059 (ceilf): Define using libm_alias_float.
16060 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
16061 Include <libm-alias-float.h>.
16062 (copysignf): Define using libm_alias_float.
16063 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
16064 Include <libm-alias-float.h>.
16065 (floorf): Define using libm_alias_float.
16066 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
16067 Include <libm-alias-float.h>.
16068 (llrintf): Define using libm_alias_float.
16069 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
16070 Include <libm-alias-float.h>.
16071 (llroundf): Define using libm_alias_float.
16072 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
16073 Include <libm-alias-float.h>.
16074 (logbf): Define using libm_alias_float.
16075 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
16076 Include <libm-alias-float.h>.
16077 (lrintf): Define using libm_alias_float.
16078 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
16079 Include <libm-alias-float.h>.
16080 (lroundf): Define using libm_alias_float.
16081 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
16082 Include <libm-alias-float.h>.
16083 (modff): Define using libm_alias_float.
16084 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
16085 Include <libm-alias-float.h>.
16086 (roundf): Define using libm_alias_float.
16087 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
16088 Include <libm-alias-float.h>.
16089 (truncf): Define using libm_alias_float.
16090 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
16091 <libm-alias-float.h>.
16092 (llrintf): Define using libm_alias_float.
16093 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
16094 <libm-alias-float.h>.
16095 (llroundf): Define using libm_alias_float.
16096 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
16097 <libm-alias-float.h>.
16098 (ceilf): Define using libm_alias_float.
16099 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
16100 <libm-alias-float.h>.
16101 (floorf): Define using libm_alias_float.
16102 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
16103 <libm-alias-float.h>.
16104 (llroundf): Define using libm_alias_float.
16105 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
16106 <libm-alias-float.h>.
16107 (lroundf): Define using libm_alias_float.
16108 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
16109 <libm-alias-float.h>.
16110 (roundf): Define using libm_alias_float.
16111 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
16112 <libm-alias-float.h>.
16113 (truncf): Define using libm_alias_float.
16114 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
16115 <libm-alias-float.h>.
16116 (copysignf): Define using libm_alias_float.
16117 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
16118 <libm-alias-float.h>.
16119 (llrintf): Define using libm_alias_float.
16120 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
16121 <libm-alias-float.h>.
16122 (llroundf): Define using libm_alias_float.
16123 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
16124 <libm-alias-float.h>.
16125 (lrintf): Define using libm_alias_float.
16126 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
16127 <libm-alias-float.h>.
16128 (lroundf): Define using libm_alias_float.
16129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
16130 <libm-alias-float.h>.
16131 (ceilf): Define using libm_alias_float.
16132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
16133 <libm-alias-float.h>.
16134 (copysignf): Define using libm_alias_float.
16135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
16136 <libm-alias-float.h>.
16137 (cosf): Define using libm_alias_float.
16138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
16139 <libm-alias-float.h>.
16140 (floorf): Define using libm_alias_float.
16141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
16142 <libm-alias-float.h>.
16143 (llrintf): Define using libm_alias_float.
16144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
16145 <libm-alias-float.h>.
16146 (llroundf): Define using libm_alias_float.
16147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
16148 <libm-alias-float.h>.
16149 (logbf): Define using libm_alias_float.
16150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
16151 <libm-alias-float.h>.
16152 (modff): Define using libm_alias_float.
16153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
16154 <libm-alias-float.h>.
16155 (roundf): Define using libm_alias_float.
16156 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
16157 <libm-alias-float.h>.
16158 (sinf): Define using libm_alias_float.
16159 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
16160 <libm-alias-float.h>.
16161 (truncf): Define using libm_alias_float.
16162 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
16163 <libm-alias-float.h>.
16164 (ceilf): Define using libm_alias_float.
16165 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
16166 <libm-alias-float.h>.
16167 (copysignf): Define using libm_alias_float.
16168 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
16169 <libm-alias-float.h>.
16170 (floorf): Define using libm_alias_float.
16171 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
16172 <libm-alias-float.h>.
16173 (llrintf): Define using libm_alias_float.
16174 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
16175 <libm-alias-float.h>.
16176 (llroundf): Define using libm_alias_float.
16177 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
16178 <libm-alias-float.h>.
16179 (nearbyintf): Define using libm_alias_float.
16180 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
16181 <libm-alias-float.h>.
16182 (rintf): Define using libm_alias_float.
16183 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
16184 <libm-alias-float.h>.
16185 (roundf): Define using libm_alias_float.
16186 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
16187 <libm-alias-float.h>.
16188 (truncf): Define using libm_alias_float.
16189 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
16190 <libm-alias-float.h>.
16191 (ceilf): Define using libm_alias_float.
16192 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
16193 <libm-alias-float.h>.
16194 (floorf): Define using libm_alias_float.
16195 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
16196 <libm-alias-float.h>.
16197 (llroundf): Define using libm_alias_float.
16198 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
16199 <libm-alias-float.h>.
16200 (roundf): Define using libm_alias_float.
16201 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
16202 <libm-alias-float.h>.
16203 (truncf): Define using libm_alias_float.
16204 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
16205 <libm-alias-float.h>.
16206 (copysignf): Define using libm_alias_float.
16207 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
16208 <libm-alias-float.h>.
16209 (llrintf): Define using libm_alias_float.
16210 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
16211 <libm-alias-float.h>.
16212 (llroundf): Define using libm_alias_float.
16213 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
16214 <libm-alias-float.h>.
16215 (cosf): Define using libm_alias_float.
16216 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
16217 <libm-alias-float.h>.
16218 (llrintf): Define using libm_alias_float.
16219 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
16220 <libm-alias-float.h>.
16221 (llroundf): Define using libm_alias_float.
16222 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
16223 <libm-alias-float.h>.
16224 (sinf): Define using libm_alias_float.
16225
16226 2017-12-04 Florian Weimer <fweimer@redhat.com>
16227
16228 * support/check.h (TEST_COMPARE): Define.
16229 (support_test_compare_failure): Declare.
16230 * support/Makefile (libsupport-routines): Add
16231 support_test_compare_failure.
16232 (tests): Add tst-test_compare.
16233 * support /support_test_compare_failure.c: New file.
16234 * support/tst-test_compare.c: Likewise.
16235
16236 2017-12-04 Mike FABIAN <mfabian@redhat.com>
16237
16238 [BZ #22527]
16239 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
16240 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
16241 available, this rewrite of the collation rules does reproduce
16242 the test file in the same order.
16243
16244 2017-12-04 Mike FABIAN <mfabian@redhat.com>
16245
16246 [BZ #10580]
16247 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
16248 digraphs in the month and day names. Using single code points for
16249 digraphs is deprecated. While there are dedicated Unicode
16250 codepoints, for the digraphs, these are included for backwards
16251 compatibility and modern texts use a sequence of Basic Latin
16252 characters. See: https://www.unicode.org/faq/ligature_digraph.html
16253 This makes the month and day names agree exactly with CLDR now,
16254 CLDR does not use the single code points for the digraphs either.
16255
16256 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
16257
16258 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
16259
16260 2017-12-04 Joseph Myers <joseph@codesourcery.com>
16261
16262 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
16263 of floor.
16264
16265 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
16266
16267 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
16268 Define only for libc.so.
16269
16270 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
16271
16272 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
16273 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
16274 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
16275 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
16276 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16277
16278 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16279
16280 [BZ #5997]
16281 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
16282
16283 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
16284
16285 [BZ libc/19170]
16286 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
16287 PREINIT_FUNCTION_WEAK is nonzero.
16288 (gmon_initializer): New function. Put procedure label for it in
16289 .init_array section.
16290 (_init): Don't call PREINIT_FUNCTION.
16291 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
16292 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
16293 value when map argument is null.
16294
16295 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
16296 depi instruction from PIC pc-relative sequence.
16297 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
16298 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
16299 (elf_machine_load_address): Likewise.
16300 (elf_machine_runtime_setup): Likewise.
16301
16302 2017-12-02 Joseph Myers <joseph@codesourcery.com>
16303
16304 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
16305 <libm-alias-double.h>.
16306 (logb): Define using libm_alias_double.
16307 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
16308 <libm-alias-double.h>.
16309 (copysign): Define using libm_alias_double.
16310 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
16311 <libm-alias-double.h>.
16312 (llrint): Define using libm_alias_double.
16313 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
16314 <libm-alias-double.h>.
16315 (llround): Define using libm_alias_double.
16316 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
16317 <libm-alias-double.h>.
16318 (lrint): Define using libm_alias_double.
16319 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
16320 <libm-alias-double.h>.
16321 (lround): Define using libm_alias_double.
16322 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
16323 Include <libm-alias-double.h>.
16324 (copysign): Define using libm_alias_double.
16325 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
16326 Include <libm-alias-double.h>.
16327 (llrint): Define using libm_alias_double.
16328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
16329 Include <libm-alias-double.h>.
16330 (llround): Define using libm_alias_double.
16331 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
16332 <libm-alias-double.h>.
16333 (logb): Define using libm_alias_double.
16334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
16335 Include <libm-alias-double.h>.
16336 (lrint): Define using libm_alias_double.
16337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
16338 Include <libm-alias-double.h>.
16339 (lround): Define using libm_alias_double.
16340 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
16341 <libm-alias-double.h>.
16342 (llrint): Define using libm_alias_double.
16343 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
16344 <libm-alias-double.h>.
16345 (llround): Define using libm_alias_double.
16346 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
16347 <libm-alias-double.h>.
16348 (llround): Define using libm_alias_double.
16349 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
16350 <libm-alias-double.h>.
16351 (lround): Define using libm_alias_double.
16352 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
16353 <libm-alias-double.h>.
16354 (copysign): Define using libm_alias_double.
16355 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
16356 <libm-alias-double.h>.
16357 (llrint): Define using libm_alias_double.
16358 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
16359 <libm-alias-double.h>.
16360 (llround): Define using libm_alias_double.
16361 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
16362 <libm-alias-double.h>.
16363 (lrint): Define using libm_alias_double.
16364 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
16365 <libm-alias-double.h>.
16366 (lround): Define using libm_alias_double.
16367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
16368 <libm-alias-double.h>.
16369 (copysign): Define using libm_alias_double.
16370 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
16371 <libm-alias-double.h>.
16372 (llrint): Define using libm_alias_double.
16373 (lrint): Likewise.
16374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
16375 <libm-alias-double.h>.
16376 (llround): Define using libm_alias_double.
16377 (lround): Likewise.
16378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
16379 <libm-alias-double.h>.
16380 (logb): Define using libm_alias_double.
16381 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
16382 <libm-alias-double.h>.
16383 (copysign): Define using libm_alias_double.
16384 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
16385 <libm-alias-double.h>.
16386 (llrint): Define using libm_alias_double.
16387 (lrint): Likewise.
16388 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
16389 <libm-alias-double.h>.
16390 (llround): Define using libm_alias_double.
16391 (lround): Likewise.
16392 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
16393 <libm-alias-double.h>.
16394 (llround): Define using libm_alias_double.
16395 (lround): Likewise.
16396 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
16397 <libm-alias-double.h>.
16398 (copysign): Define using libm_alias_double.
16399 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
16400 <libm-alias-double.h>.
16401 (llrint): Define using libm_alias_double.
16402 (lrint): Likewise.
16403 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
16404 <libm-alias-double.h>.
16405 (llround): Define using libm_alias_double.
16406 (lround): Likewise.
16407 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
16408 <libm-alias-double.h>.
16409 (llrint): Define using libm_alias_double.
16410 (lrint): Likewise.
16411 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
16412 <libm-alias-double.h>.
16413 (llround): Define using libm_alias_double.
16414 (lround): Likewise.
16415
16416 2017-12-01 Joseph Myers <joseph@codesourcery.com>
16417
16418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
16419 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
16420 compat symbol based on llround.
16421
16422 * sysdeps/powerpc/power7/fpu/s_logb.c
16423 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
16424 symbol based on __logb, not on logb.
16425 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
16426 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
16427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
16428 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
16429
16430 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
16431 (rint): Define using libm_alias_double.
16432 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
16433 <libm-alias-double.h>.
16434 (modf): Define using libm_alias_double.
16435 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
16436 <libm-alias-double.h>.
16437 (ceil): Define using libm_alias_double.
16438 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
16439 <libm-alias-double.h>.
16440 (floor): Define using libm_alias_double.
16441 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
16442 <libm-alias-double.h>.
16443 (nearbyint): Define using libm_alias_double.
16444 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
16445 <libm-alias-double.h>.
16446 (rint): Define using libm_alias_double.
16447 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
16448 <libm-alias-double.h>.
16449 (round): Define using libm_alias_double.
16450 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
16451 <libm-alias-double.h>.
16452 (trunc): Define using libm_alias_double.
16453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
16454 <libm-alias-double.h>.
16455 (ceil): Define using libm_alias_double.
16456 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
16457 Include <libm-alias-double.h>.
16458 (floor): Define using libm_alias_double.
16459 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
16460 <libm-alias-double.h>.
16461 (modf): Define using libm_alias_double.
16462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
16463 Include <libm-alias-double.h>.
16464 (round): Define using libm_alias_double.
16465 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
16466 Include <libm-alias-double.h>.
16467 (trunc): Define using libm_alias_double.
16468 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
16469 <libm-alias-double.h>.
16470 (ceil): Define using libm_alias_double.
16471 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
16472 <libm-alias-double.h>.
16473 (floor): Define using libm_alias_double.
16474 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
16475 <libm-alias-double.h>.
16476 (round): Define using libm_alias_double.
16477 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
16478 <libm-alias-double.h>.
16479 (trunc): Define using libm_alias_double.
16480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
16481 <libm-alias-double.h>.
16482 (ceil): Define using libm_alias_double.
16483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
16484 <libm-alias-double.h>.
16485 (floor): Define using libm_alias_double.
16486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
16487 <libm-alias-double.h>.
16488 (modf): Define using libm_alias_double.
16489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
16490 <libm-alias-double.h>.
16491 (round): Define using libm_alias_double.
16492 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
16493 <libm-alias-double.h>.
16494 (trunc): Define using libm_alias_double.
16495 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
16496 <libm-alias-double.h>.
16497 (ceil): Define using libm_alias_double.
16498 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
16499 <libm-alias-double.h>.
16500 (floor): Define using libm_alias_double.
16501 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
16502 <libm-alias-double.h>.
16503 (nearbyint): Define using libm_alias_double.
16504 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
16505 <libm-alias-double.h>.
16506 (rint): Define using libm_alias_double.
16507 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
16508 <libm-alias-double.h>.
16509 (round): Define using libm_alias_double.
16510 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
16511 <libm-alias-double.h>.
16512 (trunc): Define using libm_alias_double.
16513 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
16514 <libm-alias-double.h>.
16515 (ceil): Define using libm_alias_double.
16516 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
16517 <libm-alias-double.h>.
16518 (floor): Define using libm_alias_double.
16519 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
16520 <libm-alias-double.h>.
16521 (round): Define using libm_alias_double.
16522 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
16523 <libm-alias-double.h>.
16524 (trunc): Define using libm_alias_double.
16525
16526 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
16527 (fabs): Define using libm_alias_double.
16528 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
16529 (fma): Define using libm_alias_double.
16530 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
16531 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
16532 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
16533 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
16534
16535 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16536
16537 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
16538
16539 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
16540 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
16541 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
16542
16543 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
16544 due redirect macro.
16545
16546 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
16547
16548 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
16549
16550 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16551
16552 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
16553 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
16554 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
16555 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
16556
16557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16558 (libm-sysdep_routines): Add s_nearbyintf-generic and
16559 s_nearbyint-generic.
16560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
16561 New file.
16562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
16563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
16564 Likewise.
16565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
16566 Likewise.
16567 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
16568 file.
16569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
16570 Likewise.
16571
16572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16573 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
16574 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
16575 file.
16576 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
16577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
16578 Likewise.
16579 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
16580 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
16581 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
16582
16583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16584 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
16585 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
16586 file.
16587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
16588 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
16589 Likewise.
16590 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
16591 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
16592 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
16593
16594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16595 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
16596 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
16597 file.
16598 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
16599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
16600 Likewise.
16601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
16602 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
16603 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
16604
16605 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
16606 (sysdep_calls): New rule.
16607 (sysdep_routines): Use sysdep_calls as base.
16608 (libm-sysdep_routines): Add generic rule for symbols shared with
16609 libc. Add s_copysign-generic and s_copysign-generic objects.
16610 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
16611 New file.
16612 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
16613 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
16614 Likewise.
16615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
16616 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
16617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
16618
16619 2017-12-01 Mike FABIAN <mfabian@redhat.com>
16620
16621 [BZ #22519]
16622 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
16623 the list of locales to be built for testing.
16624 * localedata/is_IS.UTF-8.in: New file.
16625 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
16626 on iso14651_t1.
16627
16628 2017-12-01 Joseph Myers <joseph@codesourcery.com>
16629
16630 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
16631 <libm-alias-float.h>.
16632 (fabsf): Define using libm_alias_float.
16633
16634 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
16635
16636 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
16637
16638 2017-11-30 Joseph Myers <joseph@codesourcery.com>
16639
16640 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
16641 <libm-alias-float.h>.
16642 (fabsf): Define using libm_alias_float.
16643 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
16644 <libm-alias-float.h>.
16645 (lrintf): Define using libm_alias_float.
16646 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
16647 <libm-alias-float.h>.
16648 (rintf): Define using libm_alias_float.
16649
16650 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
16651 <libm-alias-double.h>.
16652 (fabs): Define using libm_alias_double.
16653 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
16654 <libm-alias-double.h>.
16655 (lrint): Define using libm_alias_double.
16656 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
16657 <libm-alias-double.h>.
16658 (rint): Define using libm_alias_double.
16659
16660 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
16661 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
16662 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
16663 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
16664 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
16665 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
16666 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
16667 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
16668 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
16669 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
16670 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
16671 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
16672 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
16673 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
16674 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
16675 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
16676 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
16677 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
16678 s_atan_template.c.
16679 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
16680 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
16681 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
16682 s_ceil_template.c.
16683 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
16684 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
16685 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
16686 s_cos_template.c.
16687 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
16688 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
16689 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
16690 s_expm1_template.c.
16691 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
16692 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
16693 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
16694 s_fabs_template.c.
16695 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
16696 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
16697 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
16698 s_floor_template.c.
16699 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
16700 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
16701 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
16702 s_frexp_template.c.
16703 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
16704 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
16705 s_lrint_template.c.
16706 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
16707 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
16708 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
16709 s_modf_template.c.
16710 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
16711 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
16712 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
16713 s_nearbyint_template.c.
16714 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
16715 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
16716 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
16717 s_remquo_template.c.
16718 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
16719 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
16720 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
16721 s_rint_template.c.
16722 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
16723 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
16724 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
16725 s_sin_template.c.
16726 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
16727 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
16728 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
16729 s_sincos_template.c.
16730 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
16731 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
16732 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
16733 s_tan_template.c.
16734 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
16735 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
16736 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
16737 s_tanh_template.c.
16738 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
16739 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
16740 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
16741 s_trunc_template.c.
16742 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
16743 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
16744 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
16745 s_atan.c instead of including s_atan.c.
16746 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
16747 s_atanf.c instead of including s_atanf.c.
16748 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
16749 s_atanl.c instead of including s_atanl.c.
16750 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
16751 instead of s_atan.c.
16752 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
16753 instead of s_atanf.c.
16754 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
16755 instead of s_atanl.c.
16756
16757 * scripts/update-copyrights: Do not handle intl/plural.c
16758 specially.
16759
16760 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
16761
16762 [BZ #22432]
16763 * configure.ac (BISON): Require to be present.
16764 * configure: Regenerated.
16765 * intl/Makefile (generated): Add plural.c.
16766 [$(BISON) != no]: Make code unconditional.
16767 (plural.c): Change rule to $(objpfx)plural.c.
16768 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
16769 * intl/plural.c: Remove.
16770 * manual/install.texi (Tools for Compilation): Document bison as
16771 required.
16772 * INSTALL: Regenerated.
16773
16774 2017-11-30 Joseph Myers <joseph@codesourcery.com>
16775
16776 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
16777 <libm-alias-double.h>.
16778 (llrint): Define using libm_alias_double.
16779 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
16780 <libm-alias-float.h>.
16781 (llrintf): Define using libm_alias_float.
16782 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
16783 <libm-alias-ldouble.h>.
16784 (llrintl): Define using libm_alias_ldouble.
16785
16786 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
16787 declare_mgen_alias instead of weak_alias.
16788 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
16789 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
16790 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
16791
16792 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16793
16794 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16795 Add add_n-generic.
16796 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
16797 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
16798 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
16799
16800 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16801 Add submul_1-generic.
16802 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
16803 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
16804 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
16805
16806 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16807 Add addmul_1-generic.
16808 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
16809 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
16810 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
16811
16812 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16813 Add sub_n-generic.
16814 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
16815 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
16816 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
16817
16818 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
16819 Add mul_1-generic.
16820 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
16821 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
16822 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
16823
16824 2017-11-30 Mike FABIAN <mfabian@redhat.com>
16825
16826 According to CLDR, collation rules for Serbian and Bosnian
16827 should be the same as for Croatian.
16828
16829 [BZ #22534]
16830 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
16831 and to the list of locales to be built for testing.
16832 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
16833 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
16834 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
16835 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
16836
16837 2017-11-30 Mike FABIAN <mfabian@redhat.com>
16838
16839 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
16840 to make test case pass.
16841 * localedata/hr_HR.UTF-8.in: Add more test strings.
16842
16843 2017-11-30 Mike FABIAN <mfabian@redhat.com>
16844
16845 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
16846
16847 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
16848
16849 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
16850 the list of locales to built for testing.
16851 * localedata/hr_HR.UTF-8.in: New file.
16852
16853 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
16854
16855 [BZ #10580]
16856 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
16857 iso14651_t1.
16858 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
16859 CLDR (except use ligatures for the digraphs, CLDR does not use
16860 the ligatures), add first_workday, some fixes in the date and time
16861 formats.
16862 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
16863 for Đ and đ.
16864 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
16865 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
16866 Add int_p_cs_precedes and int_n_cs_precedes.
16867 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
16868 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
16869 LC_MONETARY now).
16870 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
16871 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
16872 name_miss.
16873 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
16874 and lang_lib. Change postal_fmt.
16875
16876 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
16877
16878 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
16879 <setjmp.h>.
16880 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
16881 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
16882 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
16883 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
16884 * sysdeps/generic/setjmpP.h: New file.
16885 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
16886 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
16887 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
16888 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
16889 Add jmp_buf-ssp.sym.
16890 (tests): Add tst-saved_mask-1.
16891
16892 2017-11-30 Arjun Shankar <arjun@redhat.com>
16893
16894 [BZ #22375]
16895 CVE-2017-17426
16896 * malloc/malloc.c (__libc_malloc): Use checked_request2size
16897 instead of request2size.
16898
16899 2017-11-30 Joseph Myers <joseph@codesourcery.com>
16900
16901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
16902 (__lllrint): Remove alias.
16903 (lllrint): Likewise.
16904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
16905 (__lllrintf): Likewise.
16906 (lllrintf): Likewise.
16907
16908 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
16909 <libm-alias-float.h>.
16910 (copysignf): Define using libm_alias_float.
16911 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
16912 <libm-alias-float.h>.
16913 (fabsf): Define using libm_alias_float.
16914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
16915 Include <libm-alias-float.h>.
16916 (copysignf): Define using libm_alias_float.
16917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
16918 <libm-alias-float.h>.
16919 (fabsf): Define using libm_alias_float.
16920 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
16921 <libm-alias-float.h>.
16922 (fdimf): Define using libm_alias_float.
16923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
16924 <libm-alias-float.h>.
16925 (fmaf): Define using libm_alias_float.
16926 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
16927 <libm-alias-float.h>.
16928 (llrintf): Define using libm_alias_float.
16929 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
16930 Include <libm-alias-float.h>.
16931 (nearbyintf): Define using libm_alias_float.
16932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
16933 <libm-alias-float.h>.
16934 (rintf): Define using libm_alias_float.
16935 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
16936 <libm-alias-float.h>.
16937 (llrintf): Define using libm_alias_float.
16938 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
16939 <libm-alias-float.h>.
16940 (lrintf): Define using libm_alias_float.
16941 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
16942 <libm-alias-float.h>.
16943 (nearbyintf): Define using libm_alias_float.
16944 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
16945 <libm-alias-float.h>.
16946 (rintf): Define using libm_alias_float.
16947 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
16948 <libm-alias-float.h>.
16949 (ceilf): Define using libm_alias_float.
16950 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
16951 <libm-alias-float.h>.
16952 (floorf): Define using libm_alias_float.
16953 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
16954 <libm-alias-float.h>.
16955 (fmaf): Define using libm_alias_float.
16956 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
16957 <libm-alias-float.h>.
16958 (lrintf): Define using libm_alias_float.
16959 (llrintf): Likewise.
16960 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
16961 <libm-alias-float.h>.
16962 (nearbyintf): Define using libm_alias_float.
16963 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
16964 <libm-alias-float.h>.
16965 (rintf): Define using libm_alias_float.
16966 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
16967 <libm-alias-float.h>.
16968 (truncf): Define using libm_alias_float.
16969 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
16970 <libm-alias-float.h>.
16971 (copysignf): Define using libm_alias_float.
16972 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
16973 <libm-alias-float.h>.
16974 (fabsf): Define using libm_alias_float.
16975 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
16976 <libm-alias-float.h>.
16977 (lrintf): Define using libm_alias_float.
16978 (llrintf): Likewise.
16979 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
16980 <libm-alias-float.h>.
16981 (nearbyintf): Define using libm_alias_float.
16982 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
16983 <libm-alias-float.h>.
16984 (rintf): Define using libm_alias_float.
16985
16986 2017-11-29 Joseph Myers <joseph@codesourcery.com>
16987
16988 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
16989 <libm-alias-double.h>.
16990 (copysign): Define using libm_alias_double.
16991 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
16992 <libm-alias-double.h>.
16993 (fabs): Define using libm_alias_double.
16994 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
16995 Include <libm-alias-double.h>.
16996 (copysign): Define using libm_alias_double.
16997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
16998 <libm-alias-double.h>.
16999 (fabs): Define using libm_alias_double.
17000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
17001 <libm-alias-double.h>.
17002 (fdim): Define using libm_alias_double.
17003 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
17004 <libm-alias-double.h>.
17005 (fma): Define using libm_alias_double.
17006 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
17007 <libm-alias-double.h>.
17008 (llrint): Define using libm_alias_double.
17009 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
17010 Include <libm-alias-double.h>.
17011 (nearbyint): Define using libm_alias_double.
17012 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
17013 <libm-alias-double.h>.
17014 (rint): Define using libm_alias_double.
17015 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17016 <libm-alias-double.h>.
17017 (fabs): Define using libm_alias_double.
17018 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
17019 <libm-alias-double.h>.
17020 (llrint): Define using libm_alias_double.
17021 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
17022 <libm-alias-double.h>.
17023 (nearbyint): Define using libm_alias_double.
17024 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
17025 <libm-alias-double.h>.
17026 (rint): Define using libm_alias_double.
17027 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
17028 <libm-alias-double.h>.
17029 (ceil): Define using libm_alias_double.
17030 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
17031 <libm-alias-double.h>.
17032 (floor): Define using libm_alias_double.
17033 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
17034 <libm-alias-double.h>.
17035 (fma): Define using libm_alias_double.
17036 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
17037 <libm-alias-double.h>.
17038 (lrint): Define using libm_alias_double.
17039 (llrint): Likewise.
17040 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
17041 <libm-alias-double.h>.
17042 (nearbyint): Define using libm_alias_double.
17043 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
17044 <libm-alias-double.h>.
17045 (rint): Define using libm_alias_double.
17046 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
17047 <libm-alias-double.h>.
17048 (trunc): Define using libm_alias_double.
17049 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
17050 <libm-alias-double.h>.
17051 (copysign): Define using libm_alias_double.
17052 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
17053 <libm-alias-double.h>.
17054 (fabs): Define using libm_alias_double.
17055 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
17056 <libm-alias-double.h>.
17057 (lrint): Define using libm_alias_double.
17058 (llrint): Likewise.
17059 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
17060 <libm-alias-double.h>.
17061 (nearbyint): Define using libm_alias_double.
17062 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
17063 <libm-alias-double.h>.
17064 (rint): Define using libm_alias_double.
17065
17066 [BZ #22229]
17067 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17068 <math_ldbl_opt.h>.
17069 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
17070
17071 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17072 SPARC --disable-multi-arch glibc variants.
17073
17074 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
17075 <libm-alias-float.h>.
17076 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17077 if [SHARED].
17078 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
17079 <libm-alias-float.h>.
17080 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17081 if [SHARED].
17082 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
17083 <libm-alias-float.h>.
17084 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17085 if [SHARED].
17086 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
17087 <libm-alias-float.h>.
17088 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17089 if [SHARED].
17090 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
17091 <libm-alias-float.h>.
17092 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17093 if [SHARED].
17094 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
17095 <libm-alias-float.h>.
17096 (ceilf): Define using libm_alias_float.
17097 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
17098 <libm-alias-float.h>.
17099 (floorf): Define using libm_alias_float.
17100 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
17101 <libm-alias-float.h>.
17102 (fmaf): Define using libm_alias_float.
17103 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
17104 <libm-alias-float.h>.
17105 (nearbyintf): Define using libm_alias_float.
17106 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
17107 <libm-alias-float.h>.
17108 (rintf): Define using libm_alias_float.
17109 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
17110 <libm-alias-float.h>.
17111 (truncf): Define using libm_alias_float.
17112 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
17113 (copysignf): Define using libm_alias_float.
17114 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
17115 (cosf): Define using libm_alias_float.
17116 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
17117 (fabsf): Define using libm_alias_float.
17118 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17119 (fmaxf): Define using libm_alias_float.
17120 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
17121 (fminf): Define using libm_alias_float.
17122 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
17123 (llrintf): Define using libm_alias_float.
17124 [!__ILP32__] (lrintf): Likewise.
17125 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
17126 (sincosf): Define using libm_alias_float.
17127 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
17128 (sinf): Define using libm_alias_float.
17129 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
17130 (lrintf): Define using libm_alias_float.
17131
17132 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
17133 <libm-alias-double.h>.
17134 (atan): Define using libm_alias_double.
17135 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
17136 <libm-alias-double.h>.
17137 (ceil): Define using libm_alias_double.
17138 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
17139 <libm-alias-double.h>.
17140 (floor): Define using libm_alias_double.
17141 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
17142 <libm-alias-double.h>.
17143 (fma): Define using libm_alias_double.
17144 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
17145 <libm-alias-double.h>.
17146 (nearbyint): Define using libm_alias_double.
17147 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
17148 <libm-alias-double.h>.
17149 (rint): Define using libm_alias_double.
17150 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
17151 <libm-alias-double.h>.
17152 (sin): Define using libm_alias_double.
17153 (cos): Likewise.
17154 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
17155 <libm-alias-double.h>.
17156 (tan): Define using libm_alias_double.
17157 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
17158 <libm-alias-double.h>.
17159 (trunc): Define using libm_alias_double.
17160 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
17161 (copysign): Define using libm_alias_double.
17162 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
17163 (fabs): Define using libm_alias_double.
17164 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
17165 (fmax): Define using libm_alias_double.
17166 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
17167 (fmin): Define using libm_alias_double.
17168 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
17169 (llrint): Define using libm_alias_double.
17170 [!__ILP32__] (lrint): Likewise.
17171 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
17172 (lrint): Define using libm_alias_double.
17173
17174 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17175
17176 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17177 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
17178 objects.
17179 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
17180 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
17181 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
17182 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
17183 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
17184 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
17185
17186 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17187 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
17188 objects.
17189 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
17190 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
17191 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
17192 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
17193 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
17194 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
17195
17196 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17197 (libm-sysdep_routines): Add s_nearbyint-generic and
17198 s_nearbyintf-generic objects.
17199 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
17200 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
17201 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
17202 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
17203 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
17204 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
17205
17206 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17207 Add s_finitef-generic and s_finite-generic objects.
17208 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
17209 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
17210 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
17211 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
17212 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
17213 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
17214
17215 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17216 Add s_isinff-generic and s_isinf-generic objects.
17217 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
17218 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
17219 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
17220 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
17221 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
17222 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
17223
17224 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
17225 Add s_isnanf-generic and s_isnan-generic objects.
17226 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
17227 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
17228 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
17229 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
17230 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
17231 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
17232
17233 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
17234 macro.
17235 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
17236 rule.
17237 (sysdep_routines): Use sysdep_calls as base.
17238 (libm-sysdep_routines): Add generic rule for symbols shared with
17239 libc. Add s_signbit-generic and s_signbitf-generic objects.
17240 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
17241 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
17242 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
17243 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
17244 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
17245 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
17246
17247 2017-11-29 Joseph Myers <joseph@codesourcery.com>
17248
17249 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
17250 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
17251 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
17252 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
17253 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
17254 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
17255 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
17256 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
17257 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
17258 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
17259 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
17260 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
17261 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
17262 libm_alias_float_r.
17263 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
17264 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
17265 (logf): Likewise.
17266 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
17267 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
17268 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
17269 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
17270 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
17271 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
17272 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
17273 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
17274 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
17275 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
17276 libm_alias_float.
17277 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
17278 (cosf): Likewise.
17279 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
17280 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
17281 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
17282 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
17283 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
17284 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
17285 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
17286 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
17287 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
17288 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
17289 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
17290 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
17291 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
17292 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
17293 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
17294 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
17295 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
17296 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
17297 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
17298 libm_alias_float.
17299 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
17300 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
17301 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
17302 * sysdeps/ia64/fpu/w_lgammaf_main.c
17303 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
17304 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
17305
17306 2017-11-28 Mike FABIAN <mfabian@redhat.com>
17307 Alexandre Oliva <aoliva@redhat.com>
17308
17309 [BZ #17750]
17310 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
17311 * localedata/fr_CA.UTF-8.in: New file with test data for backward
17312 accents sorting.
17313 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
17314 sorting.
17315 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
17316 * localedata/locales/de_DE (LC_COLLATE): Likewise.
17317 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
17318 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
17319 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
17320 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
17321 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
17322 instead of “ifdef DIACRIT_BACKWARD”.
17323
17324 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17325
17326 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
17327 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
17328 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
17329 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
17330 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
17331 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
17332 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
17333 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
17334 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
17335 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
17336 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
17337 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
17338 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
17339 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
17340 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
17341 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
17342 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
17343 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
17344 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17345 ($(have-as-vis3) == yes): Remove conditional.
17346 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
17347 Likewise.
17348 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
17349 file.
17350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
17351 file.
17352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
17353 file.
17354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
17355 file.
17356 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
17357 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
17358 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
17359 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
17360 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
17361 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
17362 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
17363 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
17364
17365 2017-11-29 Joseph Myers <joseph@codesourcery.com>
17366
17367 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
17368 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
17369 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
17370 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
17371 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
17372 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
17373 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
17374 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
17375 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
17376 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
17377 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
17378 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
17379 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
17380 libm_alias_double_r.
17381 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
17382 (log): Likewise.
17383 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
17384 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
17385 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
17386 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
17387 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
17388 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
17389 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
17390 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
17391 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
17392 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
17393 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
17394 libm_alias_double.
17395 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
17396 (cos): Likewise.
17397 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
17398 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
17399 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
17400 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
17401 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
17402 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
17403 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
17404 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
17405 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
17406 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
17407 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
17408 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
17409 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
17410 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
17411 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
17412 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
17413 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
17414 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
17415 libm_alias_double.
17416 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
17417 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
17418 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
17419 * sysdeps/ia64/fpu/w_lgamma_main.c
17420 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
17421 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
17422
17423 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
17424
17425 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
17426 address of $global$ into %dp register earlier. Use pc-relative
17427 instruction sequence for PIC case.
17428
17429 2017-11-28 Joseph Myers <joseph@codesourcery.com>
17430
17431 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
17432 (asinhf): Define using libm_alias_float.
17433 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
17434 (atanf): Define using libm_alias_float.
17435 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
17436 (cbrtf): Define using libm_alias_float.
17437 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
17438 (ceilf): Define using libm_alias_float.
17439 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
17440 (copysignf): Define using libm_alias_float.
17441 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
17442 (expm1f): Define using libm_alias_float.
17443 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
17444 (fabsf): Define using libm_alias_float.
17445 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
17446 (floorf): Define using libm_alias_float.
17447 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17448 (fmaxf): Define using libm_alias_float.
17449 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
17450 (fminf): Define using libm_alias_float.
17451 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
17452 (frexpf): Define using libm_alias_float.
17453 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
17454 (llrintf): Define using libm_alias_float.
17455 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
17456 (logbf): Define using libm_alias_float.
17457 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
17458 (lrintf): Define using libm_alias_float.
17459 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
17460 (nearbyintf): Define using libm_alias_float.
17461 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
17462 (remquof): Define using libm_alias_float.
17463 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
17464 (rintf): Define using libm_alias_float.
17465 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
17466 (truncf): Define using libm_alias_float.
17467 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
17468 <libm-alias-float.h>.
17469 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17470 if [SHARED].
17471 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
17472 <libm-alias-float.h>.
17473 (expf): Define using libm_alias_float, or libm_alias_float_other
17474 if [SHARED].
17475 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
17476 <libm-alias-float.h>.
17477 (log2f): Define using libm_alias_float, or libm_alias_float_other
17478 if [SHARED].
17479 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
17480 <libm-alias-float.h>.
17481 (logf): Define using libm_alias_float, or libm_alias_float_other
17482 if [SHARED].
17483 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
17484 <libm-alias-float.h>.
17485 (powf): Define using libm_alias_float, or libm_alias_float_other
17486 if [SHARED].
17487 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
17488 <libm-alias-float.h>.
17489 (cosf): Define using libm_alias_float.
17490 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
17491 <libm-alias-float.h>.
17492 (sincosf): Define using libm_alias_float.
17493 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
17494 <libm-alias-float.h>.
17495 (sinf): Define using libm_alias_float.
17496 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17497 (fmaxf): Define using libm_alias_float.
17498 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
17499 (fminf): Define using libm_alias_float.
17500 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
17501 <libm-alias-float.h>.
17502 (fmaf): Define using libm_alias_float.
17503
17504 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
17505 (asinh): Define using libm_alias_double.
17506 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
17507 (atan): Define using libm_alias_double.
17508 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
17509 (cbrt): Define using libm_alias_double.
17510 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
17511 (ceil): Define using libm_alias_double.
17512 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
17513 (copysign): Define using libm_alias_double.
17514 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
17515 (expm1): Define using libm_alias_double.
17516 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
17517 (fabs): Define using libm_alias_double.
17518 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
17519 (fdim): Define using libm_alias_double.
17520 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
17521 (floor): Define using libm_alias_double.
17522 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
17523 (fmax): Define using libm_alias_double.
17524 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
17525 (fmin): Define using libm_alias_double.
17526 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
17527 (frexp): Define using libm_alias_double.
17528 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
17529 (llrint): Define using libm_alias_double.
17530 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
17531 (logb): Define using libm_alias_double.
17532 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
17533 (lrint): Define using libm_alias_double.
17534 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
17535 (nearbyint): Define using libm_alias_double.
17536 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
17537 (remquo): Define using libm_alias_double.
17538 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
17539 (rint): Define using libm_alias_double.
17540 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
17541 (trunc): Define using libm_alias_double.
17542 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
17543 (fmax): Define using libm_alias_double.
17544 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
17545 (fmin): Define using libm_alias_double.
17546 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
17547 (fma): Define using libm_alias_double.
17548
17549 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
17550
17551 [BZ #22370]
17552 * elf/dl-hwcaps.c (ROUND): Removed.
17553 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
17554 and ELF_NOTE_NEXT_OFFSET.
17555 * elf/dl-load.c (ROUND): Removed.
17556 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
17557 * elf/readelflib.c (ROUND): Removed.
17558 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
17559 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
17560 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
17561 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
17562
17563 2017-11-28 Joseph Myers <joseph@codesourcery.com>
17564
17565 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
17566 [!__fmaf] (fmaf): Define using libm_alias_float.
17567
17568 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
17569 [!__fma] (fma): Define using libm_alias_double.
17570 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
17571
17572 2017-11-28 Mike FABIAN <mfabian@redhat.com>
17573
17574 [BZ #22336]
17575 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
17576 and implement the collation rules for cs from CLDR on top of that.
17577 * Makefile: Add cs_CZ.UTF-8 to test-input.
17578 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
17579
17580 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
17581
17582 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
17583
17584 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
17585 Icarus Sparry <icarus.w.sparry@intel.com>
17586
17587 * benchtests/Makefile:Add BENCHSET to allow subsets of
17588 benchmarks to be run.
17589 * benchtests/README: Add documentation for: Running subsets of
17590 benchmarks.
17591
17592 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
17593
17594 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
17595 range of tests names.
17596
17597 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
17598 result from property and remove "max", min" and "mean" from
17599 required properties based on benchtests/bench-skeleton.c.
17600
17601 2017-11-28 Florian Weimer <fweimer@redhat.com>
17602
17603 [BZ #20826]
17604 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
17605 due to Internet requirement.
17606 * posix/Makefile (tests): Remove tst-getaddrinfo4,
17607 tst-getaddrinfo5.
17608 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
17609
17610 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17611
17612 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17613 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
17614 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
17615 (sysdep_routines): Add memset-ultra1.
17616 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
17617 file.
17618 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
17619 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
17620 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
17621 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
17622 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
17623 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
17624 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
17625 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17626
17627 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
17628 file.
17629 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
17630 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
17631 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
17632 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
17633 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
17634 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
17635 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
17636 macro.
17637 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
17638 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
17639 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
17640 (sysdep_routines): Add memcpy-ultra1.
17641 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
17642 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
17643
17644 2017-11-28 Joseph Myers <joseph@codesourcery.com>
17645
17646 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
17647 (cfloat_versions): Take function argument without trailing 'f'.
17648 Call libm_alias_float_other.
17649 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
17650 * sysdeps/alpha/fpu/cargf.c: Likewise.
17651 * sysdeps/alpha/fpu/cimagf.c: Likewise.
17652 * sysdeps/alpha/fpu/conjf.c: Likewise.
17653 * sysdeps/alpha/fpu/crealf.c: Likewise.
17654 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
17655 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
17656 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
17657 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
17658 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
17659 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
17660 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
17661 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
17662 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
17663 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
17664 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
17665 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
17666 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
17667 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
17668 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
17669 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
17670 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
17671 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
17672 (clog10f): Use libm_alias_float_other.
17673 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
17674 (ceilf): Define using libm_alias_float.
17675 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
17676 (copysignf): Define using libm_alias_float.
17677 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
17678 (fabsf): Define using libm_alias_float.
17679 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
17680 (floorf): Define using libm_alias_float.
17681 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
17682 (fmaxf): Define using libm_alias_float.
17683 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
17684 (fminf): Define using libm_alias_float.
17685 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
17686 (lrintf): Define using libm_alias_float.
17687 (llrintf): Likewise.
17688 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
17689 (lroundf): Define using libm_alias_float.
17690 (llroundf): Likewise.
17691 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
17692 (rintf): Define using libm_alias_float.
17693 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
17694 (truncf): Define using libm_alias_float.
17695
17696 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
17697 (ceilf): Define using libm_alias_float.
17698 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
17699 (floorf): Define using libm_alias_float.
17700 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
17701 (fmaf): Define using libm_alias_float.
17702 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
17703 (fmaxf): Define using libm_alias_float.
17704 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
17705 (fminf): Define using libm_alias_float.
17706 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
17707 (llrintf): Define using libm_alias_float.
17708 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
17709 (llroundf): Define using libm_alias_float.
17710 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
17711 (lrintf): Define using libm_alias_float.
17712 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
17713 (lroundf): Define using libm_alias_float.
17714 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
17715 <libm-alias-float.h>.
17716 (nearbyintf): Define using libm_alias_float.
17717 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
17718 (rintf): Define using libm_alias_float.
17719 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
17720 (roundf): Define using libm_alias_float.
17721 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
17722 (truncf): Define using libm_alias_float.
17723
17724 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
17725 (ceil): Define using libm_alias_double.
17726 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
17727 (copysign): Define using libm_alias_double.
17728 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
17729 (fabs): Define using libm_alias_double.
17730 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
17731 (floor): Define using libm_alias_double.
17732 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
17733 (fmax): Define using libm_alias_double.
17734 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
17735 (fmin): Define using libm_alias_double.
17736 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
17737 (lrint): Define using libm_alias_double.
17738 (llrint): Likewise.
17739 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
17740 (lround): Define using libm_alias_double.
17741 (llround): Likewise.
17742 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
17743 (rint): Define using libm_alias_double.
17744 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
17745 (trunc): Define using libm_alias_double.
17746
17747 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
17748 (libm_alias_double_r): Add semicolon after weak_alias call.
17749
17750 2017-11-27 Joseph Myers <joseph@codesourcery.com>
17751
17752 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
17753 (ceil): Define using libm_alias_double.
17754 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
17755 (floor): Define using libm_alias_double.
17756 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
17757 (fma): Define using libm_alias_double.
17758 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
17759 (fmax): Define using libm_alias_double.
17760 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
17761 (fmin): Define using libm_alias_double.
17762 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
17763 (llrint): Define using libm_alias_double.
17764 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
17765 (llround): Define using libm_alias_double.
17766 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
17767 (lrint): Define using libm_alias_double.
17768 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
17769 (lround): Define using libm_alias_double.
17770 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
17771 (nearbyint): Define using libm_alias_double.
17772 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
17773 (rint): Define using libm_alias_double.
17774 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
17775 (round): Define using libm_alias_double.
17776 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
17777 (trunc): Define using libm_alias_double.
17778
17779 2017-11-27 Florian Weimer <fweimer@redhat.com>
17780
17781 * sysdeps/unix/sysv/linux/mlock2.c: New file.
17782 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
17783 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
17784 (tests): Add tst-mlock2.
17785 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
17786 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
17787 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
17788 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
17789 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
17790 for mlock. Document mlock2.
17791
17792 2017-11-27 Joseph Myers <joseph@codesourcery.com>
17793
17794 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
17795 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
17796 Likewise.
17797 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
17798 Likewise.
17799 * sysdeps/x86/Makeconfig: New file.
17800 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
17801 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17802 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
17803 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17804 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17805 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17806 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
17807 Likewise.
17808 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17809 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17810 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17811 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17812 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17813 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
17814 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
17815 * manual/math.texi (Mathematics): Document support for _Float64x.
17816 * math/Versions (GLIBC_2.27): Add _Float64x functions.
17817 * stdlib/Versions (GLIBC_2.27): Likewise.
17818 * wcsmbs/Versions (GLIBC_2.27): Likewise.
17819 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
17820 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17821 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17822 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17823 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17824 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17825 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17829 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
17831 Likewise.
17832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
17833 Likewise.
17834 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17836 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
17837 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
17839 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17840 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
17841 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17842 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
17843 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17844 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
17845 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17846 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
17847 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
17848
17849 2017-11-27 Andreas Schwab <schwab@suse.de>
17850
17851 * elf/Makefile (dl-routines): Add dl-sort-maps.
17852 * elf/dl-sort-maps.c: New file.
17853 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
17854 (_dl_sort_maps): Declare.
17855 * elf/dl-fini.c (_dl_sort_fini): Remove.
17856 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
17857 * elf/dl-close.c (_dl_close_worker): Likewise.
17858 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
17859 open-coding it.
17860 * elf/dl-open.c (dl_open_worker): Likewise.
17861
17862 2017-11-24 Joseph Myers <joseph@codesourcery.com>
17863
17864 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
17865 using libm_alias_float128.
17866 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
17867 Likewise.
17868 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
17869 Likewise.
17870 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
17871 (setpayloadsigf128): Likewise.
17872 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
17873 Likewise.
17874 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
17875 Likewise.
17876
17877 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
17878 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
17879 -mfloat128 to CFLAGS.
17880 ($(foreach
17881 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
17882 Likewise.
17883 (CFLAGS-libm-test-support-float64x.c): New variable.
17884 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
17885 $(f128-loader-link) to gnulib-tests.
17886
17887 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
17888 (libm_alias_float128_other_r): If
17889 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
17890 alias.
17891 (libm_alias_float128_r): Add semicolon after weak_alias call.
17892 * sysdeps/generic/libm-alias-ldouble.h
17893 (libm_alias_ldouble_other_r_f128): New macro.
17894 (libm_alias_ldouble_other_r_f64x): Likewise.
17895 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
17896 and libm_alias_ldouble_other_r_f64x.
17897 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
17898 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
17899 (libm_alias_ldouble_other_r_f128): New macro.
17900 (libm_alias_ldouble_other_r_f64x): Likewise.
17901 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
17902 and libm_alias_ldouble_other_r_f64x.
17903
17904 * stdlib/strfroml.c: Always include <stdlib.h>.
17905 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
17906 undefine as macro and define as weak alias.
17907 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
17908 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
17909 <stdlib.h>.
17910 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
17911 Define and later undefine as macro and define as weak alias.
17912
17913 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
17914 Define and later undefine as macro. Define as weak alias if
17915 [!USE_WIDE_CHAR].
17916 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
17917 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
17918 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
17919 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
17920 Define and later undefine as macro. Define as weak alias if
17921 [!USE_WIDE_CHAR].
17922 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
17923 Define and later undefine as macro. Define as weak alias if
17924 [USE_WIDE_CHAR].
17925 * sysdeps/ieee754/float128/strtof128_l.c
17926 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
17927 Define and later undefine as macro. Define as weak alias if
17928 [!USE_WIDE_CHAR].
17929 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
17930 Define and later undefine as macro. Define as weak alias if
17931 [USE_WIDE_CHAR].
17932 * sysdeps/ieee754/ldbl-128/strtold_l.c
17933 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
17934 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
17935 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
17936 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
17937 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
17938 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
17939 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
17940 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
17941 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
17942 * sysdeps/ieee754/ldbl-96/strtold_l.c
17943 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
17944 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
17945 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
17946 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
17947
17948 * math/test-float64x.h: New file.
17949 * math/Makefile (type-float64x-yes): New variable.
17950 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
17951
17952 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
17953 function-like macro.
17954 (min_of_type_): Likewise.
17955 (min_of_type_l): Likewise.
17956 (min_of_type_f128): Likewise.
17957 (min_of_type): Pass () as last argument of __MATH_TG.
17958
17959 * stdlib/tst-strtod-round-skeleton.c
17960 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
17961 headers.
17962
17963 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
17964 for combinations of long double with _Float64 and _Float64x.
17965
17966 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
17967 (__DECL_SIMD_cosf32): Likewise.
17968 (__DECL_SIMD_cosf64): Likewise.
17969 (__DECL_SIMD_cosf32x): Likewise.
17970 (__DECL_SIMD_cosf64x): Likewise.
17971 (__DECL_SIMD_cosf128x): Likewise.
17972 (__DECL_SIMD_sinf16): Likewise.
17973 (__DECL_SIMD_sinf32): Likewise.
17974 (__DECL_SIMD_sinf64): Likewise.
17975 (__DECL_SIMD_sinf32x): Likewise.
17976 (__DECL_SIMD_sinf64x): Likewise.
17977 (__DECL_SIMD_sinf128x): Likewise.
17978 (__DECL_SIMD_sincosf16): Likewise.
17979 (__DECL_SIMD_sincosf32): Likewise.
17980 (__DECL_SIMD_sincosf64): Likewise.
17981 (__DECL_SIMD_sincosf32x): Likewise.
17982 (__DECL_SIMD_sincosf64x): Likewise.
17983 (__DECL_SIMD_sincosf128x): Likewise.
17984 (__DECL_SIMD_logf16): Likewise.
17985 (__DECL_SIMD_logf32): Likewise.
17986 (__DECL_SIMD_logf64): Likewise.
17987 (__DECL_SIMD_logf32x): Likewise.
17988 (__DECL_SIMD_logf64x): Likewise.
17989 (__DECL_SIMD_logf128x): Likewise.
17990 (__DECL_SIMD_expf16): Likewise.
17991 (__DECL_SIMD_expf32): Likewise.
17992 (__DECL_SIMD_expf64): Likewise.
17993 (__DECL_SIMD_expf32x): Likewise.
17994 (__DECL_SIMD_expf64x): Likewise.
17995 (__DECL_SIMD_expf128x): Likewise.
17996 (__DECL_SIMD_powf16): Likewise.
17997 (__DECL_SIMD_powf32): Likewise.
17998 (__DECL_SIMD_powf64): Likewise.
17999 (__DECL_SIMD_powf32x): Likewise.
18000 (__DECL_SIMD_powf64x): Likewise.
18001 (__DECL_SIMD_powf128x): Likewise.
18002
18003 * stdlib/Versions (libc): Move entries for wcstof128 and
18004 wcstof128_l to ....
18005 * wcsmbs/Versions (libc): ... here.
18006 Include <float128-abi.h>.
18007
18008 2017-11-24 Florian Weimer <fweimer@redhat.com>
18009
18010 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18011 bits/mman-shared.h.
18012 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
18013 <bits/mman-shared.h>.
18014 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
18015 to ...
18016 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
18017 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
18018 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
18019 <bits/mman-shared.h>.
18020
18021 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18022
18023 [BZ #22457]
18024 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
18025 posix_memalign/free.
18026 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
18027
18028 2017-11-22 Mike FABIAN <mfabian@redhat.com>
18029
18030 [BZ #22469]
18031 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
18032 and implement the collation rules for pl from CLDR on top of that.
18033 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
18034 of locales to be built for testing.
18035 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
18036
18037 2017-11-23 Joseph Myers <joseph@codesourcery.com>
18038
18039 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
18040 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
18041 libm_alias_ldouble_other.
18042 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
18043 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
18044 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
18045 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
18046 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
18047 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
18048 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
18049 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
18050 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
18051 libm_alias_ldouble_r.
18052 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
18053 libm_alias_ldouble_other.
18054 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
18055 (log10l): Likewise.
18056 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
18057 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
18058 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
18059 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
18060 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
18061 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
18062 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
18063 (atan2l): Likewise.
18064 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
18065 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
18066 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
18067 libm_alias_ldouble.
18068 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
18069 (cosl): Likewise.
18070 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
18071 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
18072 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
18073 (expl): Likewise.
18074 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
18075 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
18076 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
18077 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
18078 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
18079 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
18080 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
18081 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
18082 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
18083 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
18084 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
18085 libm_alias_ldouble.
18086 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
18087 libm_alias_ldouble_other.
18088 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
18089 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
18090 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
18091 libm_alias_ldouble.
18092 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
18093 libm_alias_ldouble_other.
18094 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
18095 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
18096 * sysdeps/ia64/fpu/w_lgammal_main.c
18097 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
18098 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
18099
18100 2017-11-23 Florian Weimer <fweimer@redhat.com>
18101
18102 * malloc/malloc.c (tcache_thread_shutdown): Rename from
18103 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
18104 alike. Remove freeres marker.
18105 * malloc/arena.c (arena_thread_freeres): Call
18106 tcache_thread_shutdown.
18107
18108 2017-11-23 Florian Weimer <fweimer@redhat.com>
18109
18110 [BZ #22459]
18111 Export nscd hash function as __nss_hash.
18112 * include/nss.h (__nss_hash): Declare.
18113 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
18114 symbol.
18115 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
18116 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
18117 of __nscd_hash.
18118 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
18119 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
18120 * nss/Makefiles (routines): Add nss_hash.
18121 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
18122 * nss/nss_hash.c: Rename from nis/nis_hash.c.
18123 (__nss_hash): Rename from __nis_hash. Define hidden alias.
18124 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
18125
18126 2017-11-23 Florian Weimer <fweimer@redhat.com>
18127
18128 [BZ #22478]
18129 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
18130 Return error code, not -1.
18131 * signal/tst-sigwait-eintr.c: New file.
18132 * signal/Makefile (tests): Add tst-sigwait-eintr.
18133
18134 2017-11-23 Florian Weimer <fweimer@redhat.com>
18135
18136 Linux: Add memfd_create system call wrapper
18137 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
18138 tst-memfd_create.
18139 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
18140 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
18141 [__USE_GNU] (memfd_create): Declare.
18142 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
18143 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
18144 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
18145 * sysdeps/unix/sysv/linux/**.abilist: Update.
18146 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
18147
18148 2017-11-22 Joseph Myers <joseph@codesourcery.com>
18149
18150 * localedata/gen-locale.sh: Fix typo in variable name.
18151
18152 * resolv/res_debug.c (p_secstodate): Condition definition on
18153 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
18154 directly as __p_secstodate, and as a compat symbol. Do not use
18155 libresolv_hidden_def.
18156 * resolv/resolv.h (p_secstodate): Remove macro and function
18157 declaration.
18158 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
18159 using p_secstodate.
18160 * include/resolv.h (__p_secstodate): Do not use
18161 libresolv_hidden_proto.
18162 * resolv/Makefile (tests): Move tst-p_secstodate to ....
18163 (tests-internal): ... here.
18164 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
18165 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
18166 and declare and use __p_secstodate and use compat_symbol_reference
18167 in that case.
18168 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
18169 implementation returning 77.
18170
18171 [BZ #22463]
18172 * resolv/res_debug.c: Include <libc-diag.h>.
18173 (p_secstodate): Assert time_t at least as wide as u_long. On
18174 overflow, use integer seconds since the epoch as output, or use
18175 "<overflow>" as output and set errno to EOVERFLOW if integer
18176 seconds since the epoch would be 14 or more characters.
18177 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
18178 for sprintf call.
18179 * resolv/tst-p_secstodate.c: New file.
18180 * resolv/Makefile (tests): Add tst-p_secstodate.
18181 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
18182
18183 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
18184 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
18185 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
18186
18187 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
18188
18189 * posix/regcomp.c (init_word_char): Add comments.
18190
18191 2017-11-22 Joseph Myers <joseph@codesourcery.com>
18192
18193 [BZ #22447]
18194 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
18195 strlen to compute length of ut_user and set trailing NUL byte of
18196 result explicitly.
18197
18198 2017-11-21 Mike FABIAN <mfabian@redhat.com>
18199
18200 [BZ #15537]
18201 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
18202 using “copy "iso14651_t1"” and then implementing the
18203 collation rules for lv from CLDR on top of that.
18204 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
18205 of locales to be built for testing.
18206 * lv_LV.UTF-8.in: New file with test data to test the Latvian
18207 sorting.
18208
18209 2017-11-21 Joseph Myers <joseph@codesourcery.com>
18210
18211 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
18212 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
18213 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
18214 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
18215 [__USE_MISC] (MADV_HWPOISON): New macro.
18216 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
18217
18218 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18219
18220 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
18221 -Wmissing-braces on GCC 4.9.
18222
18223 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
18224
18225 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
18226 * sysdeps/s390/s390-32/start.S (_start): Likewise
18227 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
18228 (thread_start): Likewise.
18229 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
18230 (thread_start): Likewise.
18231 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
18232 (__makecontext_ret): Likewise.
18233 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
18234 (__makecontext_ret): Likewise.
18235
18236 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
18237
18238 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
18239 __wcschrnul): Remove attribute_hidden.
18240
18241 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
18242
18243 regex: don't assume uint64_t or uint32_t
18244 This avoids -Werror=overflow errors for 32-bit systems in
18245 the 64-bit case. Problem reported by Joseph Myers in:
18246 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
18247 Also, when this code is used in Gnulib it ports to platforms
18248 that lack uint64_t and uint32_t. The C standard doesn't guarantee
18249 them, and on some 32-bit compilers there is no uint64_t.
18250 Problem reported by Gianluigi Tiesi in:
18251 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
18252 * posix/regcomp.c (init_word_char): Don't assume that the types
18253 uint64_t and uint32_t exist. Adapted from Gnulib patch
18254 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
18255 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
18256
18257 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
18258
18259 * sysdeps/aarch64/memset-reg.h: New file.
18260 * sysdeps/aarch64/memset.S: Use it.
18261 (__memset): Rename to MEMSET macro.
18262 [ZVA_MACRO]: Use zva_macro.
18263 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
18264 Add memset_generic and memset_falkor.
18265 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
18266 (__libc_ifunc_impl_list): Add memset ifuncs.
18267 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
18268 local variable zva_size.
18269 * sysdeps/aarch64/multiarch/memset.c: New file.
18270 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
18271 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
18272 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
18273 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
18274 (DCZID_DZP_MASK): New macro.
18275 (DCZID_BS_MASK): Likewise.
18276 (init_cpu_features): Read and set zva_size.
18277 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
18278 (struct cpu_features): New member zva_size.
18279
18280 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
18281 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
18282 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
18283
18284 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
18285 backwards. Fix timing computation.
18286 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
18287 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
18288 on memset by N at a time. Fix timing computation.
18289
18290 2017-11-20 Florian Weimer <fweimer@redhat.com>
18291
18292 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
18293 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
18294
18295 2017-11-19 Florian Weimer <fweimer@redhat.com>
18296
18297 manual: Document mprotect
18298 * manual/memory.texi (Memory Protection): New section.
18299 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
18300 documentation of PROT_* flags and reference the Memory Protection
18301 section instead.
18302
18303 2017-11-19 Florian Weimer <fweimer@redhat.com>
18304
18305 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
18306 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
18307 (Scatter-Gather): ... to here. Remove misleading comment.
18308
18309 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
18310
18311 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
18312 style.
18313
18314 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
18315 when /proc/<pid>/setgroups does not exist.
18316
18317 2017-11-18 Florian Weimer <fweimer@redhat.com>
18318
18319 * sysdeps/unix/sysv/linux/tst-ttyname.c
18320 (become_root_in_mount_ns): Remove.
18321 (do_in_chroot_1): Call support_enter_mount_namespace.
18322 (do_in_chroot_2): Likewise.
18323 (do_test): Call support_become_root early.
18324
18325 2017-11-18 Florian Weimer <fweimer@redhat.com>
18326
18327 * support/namespace.h (support_enter_mount_namespace): Declare.
18328 * support/support_enter_mount_namespace.c: New file.
18329 * support/Makefile (libsupport-routines): Add
18330 support_enter_mount_namespace.
18331
18332 2017-11-18 Florian Weimer <fweimer@redhat.com>
18333
18334 * support/temp_file.c (support_create_temp_directory): Use
18335 test_dir and do not rely on the presence of the XXXXXX suffix.
18336 * support/temp_file.h (support_create_temp_directory): Update
18337 comment.
18338 * support/tst-xreadlink.c (do_test): Adjust.
18339 * support/support_chroot.c (support_chroot_create): Likewise.
18340
18341 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18342
18343 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
18344 macro.
18345 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
18346 htm-no-suspend.
18347
18348 2017-11-17 Joseph Myers <joseph@codesourcery.com>
18349
18350 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
18351 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
18352 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
18353 (ceill): Define using libm_alias_ldouble.
18354 * sysdeps/x86_64/fpu/s_copysignl.S: Include
18355 <libm-alias-ldouble.h>.
18356 (copysignl): Define using libm_alias_ldouble.
18357 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
18358 (fabsl): Define using libm_alias_ldouble.
18359 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
18360 (floorl): Define using libm_alias_ldouble.
18361 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18362 (fmaxl): Define using libm_alias_ldouble.
18363 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18364 (fminl): Define using libm_alias_ldouble.
18365 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
18366 (llrintl): Define using libm_alias_ldouble.
18367 (lrintl): Likewise.
18368 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
18369 <libm-alias-ldouble.h>.
18370 (nearbyintl): Define using libm_alias_ldouble.
18371 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
18372 (truncl): Define using libm_alias_ldouble.
18373 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
18374 <libm-alias-ldouble.h>.
18375 (lrintl): Define using libm_alias_ldouble.
18376
18377 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
18378 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
18379 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
18380 (asinhl): Define using libm_alias_ldouble.
18381 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
18382 (atanl): Define using libm_alias_ldouble.
18383 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
18384 (cbrtl): Define using libm_alias_ldouble.
18385 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
18386 (ceill): Define using libm_alias_ldouble.
18387 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
18388 (copysignl): Define using libm_alias_ldouble.
18389 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
18390 (fabsl): Define using libm_alias_ldouble.
18391 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
18392 (floorl): Define using libm_alias_ldouble.
18393 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18394 (fmaxl): Define using libm_alias_ldouble.
18395 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18396 (fminl): Define using libm_alias_ldouble.
18397 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
18398 (frexpl): Define using libm_alias_ldouble.
18399 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
18400 (llrintl): Define using libm_alias_ldouble.
18401 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
18402 (logbl): Define using libm_alias_ldouble.
18403 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
18404 (lrintl): Define using libm_alias_ldouble.
18405 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
18406 (nearbyintl): Define using libm_alias_ldouble.
18407 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
18408 (nextafterl): Define using libm_alias_ldouble.
18409 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
18410 (remquol): Define using libm_alias_ldouble.
18411 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
18412 (rintl): Define using libm_alias_ldouble.
18413 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
18414 (truncl): Define using libm_alias_ldouble.
18415 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
18416 (fmaxl): Define using libm_alias_ldouble.
18417 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
18418 (fminl): Define using libm_alias_ldouble.
18419
18420 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
18421 to C syntax instead of availability and properties of types.
18422 * bits/floatn.h [!__ASSEMBLER]: Likewise.
18423 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
18424 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
18425 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
18426 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
18427 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
18428
18429 2017-11-17 Florian Weimer <fweimer@redhat.com>
18430
18431 support_become_root: Enable file creation in namespaces.
18432 * support/support_become_root.c (setup_mapping): New function.
18433 (support_become_root): Call it.
18434
18435 2017-11-17 Joseph Myers <joseph@codesourcery.com>
18436
18437 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
18438 macro.
18439
18440 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18441
18442 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
18443 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
18444
18445 2017-11-16 Joseph Myers <joseph@codesourcery.com>
18446
18447 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
18448
18449 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18450 version to 4.14.
18451
18452 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
18453
18454 * INSTALL: Fix botched up regeneration.
18455
18456 * NEWS: Update sourceare link to https.
18457 * configure.ac: Likewise.
18458 * crypt/md5test-giant.c: Likewise.
18459 * dlfcn/bug-atexit1.c: Likewise.
18460 * dlfcn/bug-atexit2.c: Likewise.
18461 * localedata/README: Likewise.
18462 * malloc/tst-mallocfork.c: Likewise.
18463 * manual/install.texi: Likewise.
18464 * nptl/tst-pthread-getattr.c: Likewise.
18465 * stdio-common/tst-fgets.c: Likewise.
18466 * stdio-common/tst-fwrite.c: Likewise.
18467 * sunrpc/Makefile: Likewise.
18468 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
18469 * wcsmbs/tst-mbrtowc2.c: Likewise.
18470 * configure: Regenerate.
18471 * INSTALL: Regenerate.
18472
18473 2017-11-15 Martin Sebor <msebor@redhat.com>
18474
18475 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
18476 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
18477 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
18478
18479 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
18480
18481 [BZ #22145]
18482 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
18483 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
18484
18485 [BZ #22145]
18486 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
18487 Defer is_pty check until end of the function.
18488 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18489
18490 [BZ #22145]
18491 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
18492 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
18493 (ttyname): Likewise.
18494 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
18495 (__ttyname_r): Likewise.
18496
18497 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
18498 int to bool.
18499
18500 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
18501
18502 * manual/terminal.texi (Is It a Terminal):
18503 Mention ENODEV for ttyname and ttyname_r.
18504
18505 2017-11-15 Joseph Myers <joseph@codesourcery.com>
18506
18507 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
18508 constant and macro.
18509
18510 * sysdeps/unix/sysv/linux/bits/mman-linux.h
18511 [__USE_MISC] (MADV_WIPEONFORK): New macro.
18512 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
18513 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
18514 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
18515 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
18516
18517 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18518
18519 * signal/sigrelse.c (sigrelse): Optimize implementation.
18520
18521 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
18522 (__sigpause): Rely on __sigsuspend to implement single thread
18523 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
18524
18525 2017-11-15 Joseph Myers <joseph@codesourcery.com>
18526
18527 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18528 kernel version to 4.14.
18529
18530 2017-11-15 Steve Ellcey <sellcey@cavium.com>
18531
18532 [BZ #22442]
18533 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
18534 Check if ifname is too long.
18535
18536 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
18537
18538 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
18539
18540 2017-11-15 Mike FABIAN <mfabian@redhat.com>
18541
18542 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
18543 was accidentally lost.
18544
18545 2017-11-15 Mike FABIAN <mfabian@redhat.com>
18546
18547 * localedata/locales/az_IR: Add standard copyright header.
18548
18549 2017-11-15 Florian Weimer <fweimer@redhat.com>
18550
18551 [BZ #22439]
18552 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
18553 not just the top one. Output a new "subheaps" statistic.
18554
18555 2017-11-15 Florian Weimer <fweimer@redhat.com>
18556
18557 [BZ #22408]
18558 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
18559 under the per-arena lock.
18560 * malloc/Makefile (tests): Add tst-malloc_info.
18561 (tst-malloc_info): Link with libpthread.
18562 * malloc/tst-malloc_info.c: New file.
18563
18564 2017-11-15 Joseph Myers <joseph@codesourcery.com>
18565
18566 [BZ #21660]
18567 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
18568 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
18569 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
18570 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
18571 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
18572 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
18573 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
18574 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
18575 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
18576 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
18577 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
18578 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
18579 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
18580 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
18581 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
18582 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
18583 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
18584 (__floating_type): Likewise.
18585 (__real_integer_type): Likewise.
18586 (__complex_integer_type): Likewise.
18587 (__expr_is_real): Likewise.
18588 (__tgmath_real_type_sub): Likewise.
18589 (__tgmath_real_type): Likewise.
18590 (__tgmath_complex_type_sub): Likewise.
18591 (__tgmath_complex_type): Likewise.
18592 (__TGMATH_F128): Likewise.
18593 (__TGMATH_CF128): Likewise.
18594 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
18595 new macros.
18596 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
18597 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
18598 Likewise.
18599 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
18600 Likewise.
18601 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
18602 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
18603 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
18604 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
18605 Likewise.
18606 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
18607 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
18608 Likewise.
18609 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
18610 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
18611 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
18612 Likewise.
18613 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
18614 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
18615 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
18616 (cimag): Likewise.
18617 (creal): Likewise.
18618
18619 2017-11-14 Joseph Myers <joseph@codesourcery.com>
18620
18621 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
18622 for stpncpy calls for GCC 8.
18623 (test_strncat): Disable -Wstringop-truncation warning for strncat
18624 calls for GCC 8. Disable -Wstringop-overflow= warning for one
18625 strncat call for GCC 7.
18626 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
18627 calls for GCC 8.
18628 (test_memcmp): Use memcpy instead of strncpy for calls not copying
18629 trailing NUL.
18630
18631 * string/bug-strncat1.c: Include <libc-diag.h>.
18632 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
18633
18634 2017-11-13 Claude Paroz <claude@2xlibre.net>
18635
18636 [BZ #22387]
18637 * localedata/locales/aa_DJ: Improved readibility by replacing
18638 <Uxxxx> sequences in the ASCII printable range by their ASCII
18639 character equivalents.
18640 * localedata/locales/aa_ER: Likewise.
18641 * localedata/locales/aa_ER@saaho: Likewise.
18642 * localedata/locales/aa_ET: Likewise.
18643 * localedata/locales/af_ZA: Likewise.
18644 * localedata/locales/agr_PE: Likewise.
18645 * localedata/locales/ak_GH: Likewise.
18646 * localedata/locales/am_ET: Likewise.
18647 * localedata/locales/anp_IN: Likewise.
18648 * localedata/locales/ar_AE: Likewise.
18649 * localedata/locales/ar_BH: Likewise.
18650 * localedata/locales/ar_DZ: Likewise.
18651 * localedata/locales/ar_EG: Likewise.
18652 * localedata/locales/ar_IN: Likewise.
18653 * localedata/locales/ar_IQ: Likewise.
18654 * localedata/locales/ar_JO: Likewise.
18655 * localedata/locales/ar_KW: Likewise.
18656 * localedata/locales/ar_LB: Likewise.
18657 * localedata/locales/ar_LY: Likewise.
18658 * localedata/locales/ar_MA: Likewise.
18659 * localedata/locales/ar_OM: Likewise.
18660 * localedata/locales/ar_QA: Likewise.
18661 * localedata/locales/ar_SA: Likewise.
18662 * localedata/locales/ar_SD: Likewise.
18663 * localedata/locales/ar_SS: Likewise.
18664 * localedata/locales/ar_SY: Likewise.
18665 * localedata/locales/ar_TN: Likewise.
18666 * localedata/locales/ar_YE: Likewise.
18667 * localedata/locales/as_IN: Likewise.
18668 * localedata/locales/ast_ES: Likewise.
18669 * localedata/locales/ayc_PE: Likewise.
18670 * localedata/locales/az_AZ: Likewise.
18671 * localedata/locales/az_IR: Likewise.
18672 * localedata/locales/be_BY: Likewise.
18673 * localedata/locales/be_BY@latin: Likewise.
18674 * localedata/locales/bem_ZM: Likewise.
18675 * localedata/locales/ber_DZ: Likewise.
18676 * localedata/locales/ber_MA: Likewise.
18677 * localedata/locales/bg_BG: Likewise.
18678 * localedata/locales/bhb_IN: Likewise.
18679 * localedata/locales/bho_IN: Likewise.
18680 * localedata/locales/bi_VU: Likewise.
18681 * localedata/locales/bn_BD: Likewise.
18682 * localedata/locales/bn_IN: Likewise.
18683 * localedata/locales/bo_CN: Likewise.
18684 * localedata/locales/bo_IN: Likewise.
18685 * localedata/locales/br_FR: Likewise.
18686 * localedata/locales/brx_IN: Likewise.
18687 * localedata/locales/bs_BA: Likewise.
18688 * localedata/locales/byn_ER: Likewise.
18689 * localedata/locales/ca_AD: Likewise.
18690 * localedata/locales/ca_ES: Likewise.
18691 * localedata/locales/ca_FR: Likewise.
18692 * localedata/locales/ca_IT: Likewise.
18693 * localedata/locales/ce_RU: Likewise.
18694 * localedata/locales/chr_US: Likewise.
18695 * localedata/locales/cmn_TW: Likewise.
18696 * localedata/locales/crh_UA: Likewise.
18697 * localedata/locales/cs_CZ: Likewise.
18698 * localedata/locales/csb_PL: Likewise.
18699 * localedata/locales/cv_RU: Likewise.
18700 * localedata/locales/cy_GB: Likewise.
18701 * localedata/locales/da_DK: Likewise.
18702 * localedata/locales/de_AT: Likewise.
18703 * localedata/locales/de_BE: Likewise.
18704 * localedata/locales/de_CH: Likewise.
18705 * localedata/locales/de_DE: Likewise.
18706 * localedata/locales/de_IT: Likewise.
18707 * localedata/locales/de_LI: Likewise.
18708 * localedata/locales/de_LU: Likewise.
18709 * localedata/locales/doi_IN: Likewise.
18710 * localedata/locales/dv_MV: Likewise.
18711 * localedata/locales/dz_BT: Likewise.
18712 * localedata/locales/el_CY: Likewise.
18713 * localedata/locales/el_GR: Likewise.
18714 * localedata/locales/en_AG: Likewise.
18715 * localedata/locales/en_AU: Likewise.
18716 * localedata/locales/en_BW: Likewise.
18717 * localedata/locales/en_CA: Likewise.
18718 * localedata/locales/en_DK: Likewise.
18719 * localedata/locales/en_GB: Likewise.
18720 * localedata/locales/en_HK: Likewise.
18721 * localedata/locales/en_IE: Likewise.
18722 * localedata/locales/en_IL: Likewise.
18723 * localedata/locales/en_IN: Likewise.
18724 * localedata/locales/en_NG: Likewise.
18725 * localedata/locales/en_NZ: Likewise.
18726 * localedata/locales/en_PH: Likewise.
18727 * localedata/locales/en_SG: Likewise.
18728 * localedata/locales/en_US: Likewise.
18729 * localedata/locales/en_ZA: Likewise.
18730 * localedata/locales/en_ZM: Likewise.
18731 * localedata/locales/en_ZW: Likewise.
18732 * localedata/locales/eo: Likewise.
18733 * localedata/locales/es_AR: Likewise.
18734 * localedata/locales/es_BO: Likewise.
18735 * localedata/locales/es_CL: Likewise.
18736 * localedata/locales/es_CO: Likewise.
18737 * localedata/locales/es_CR: Likewise.
18738 * localedata/locales/es_CU: Likewise.
18739 * localedata/locales/es_DO: Likewise.
18740 * localedata/locales/es_EC: Likewise.
18741 * localedata/locales/es_ES: Likewise.
18742 * localedata/locales/es_GT: Likewise.
18743 * localedata/locales/es_HN: Likewise.
18744 * localedata/locales/es_MX: Likewise.
18745 * localedata/locales/es_NI: Likewise.
18746 * localedata/locales/es_PA: Likewise.
18747 * localedata/locales/es_PE: Likewise.
18748 * localedata/locales/es_PR: Likewise.
18749 * localedata/locales/es_PY: Likewise.
18750 * localedata/locales/es_SV: Likewise.
18751 * localedata/locales/es_US: Likewise.
18752 * localedata/locales/es_UY: Likewise.
18753 * localedata/locales/es_VE: Likewise.
18754 * localedata/locales/et_EE: Likewise.
18755 * localedata/locales/eu_ES: Likewise.
18756 * localedata/locales/eu_ES@euro: Likewise.
18757 * localedata/locales/fa_IR: Likewise.
18758 * localedata/locales/ff_SN: Likewise.
18759 * localedata/locales/fi_FI: Likewise.
18760 * localedata/locales/fil_PH: Likewise.
18761 * localedata/locales/fo_FO: Likewise.
18762 * localedata/locales/fr_BE: Likewise.
18763 * localedata/locales/fr_CA: Likewise.
18764 * localedata/locales/fr_CH: Likewise.
18765 * localedata/locales/fr_FR: Likewise.
18766 * localedata/locales/fr_LU: Likewise.
18767 * localedata/locales/fur_IT: Likewise.
18768 * localedata/locales/fy_DE: Likewise.
18769 * localedata/locales/fy_NL: Likewise.
18770 * localedata/locales/ga_IE: Likewise.
18771 * localedata/locales/gd_GB: Likewise.
18772 * localedata/locales/gez_ER: Likewise.
18773 * localedata/locales/gez_ET: Likewise.
18774 * localedata/locales/gl_ES: Likewise.
18775 * localedata/locales/gu_IN: Likewise.
18776 * localedata/locales/gv_GB: Likewise.
18777 * localedata/locales/ha_NG: Likewise.
18778 * localedata/locales/hak_TW: Likewise.
18779 * localedata/locales/he_IL: Likewise.
18780 * localedata/locales/hi_IN: Likewise.
18781 * localedata/locales/hif_FJ: Likewise.
18782 * localedata/locales/hne_IN: Likewise.
18783 * localedata/locales/hr_HR: Likewise.
18784 * localedata/locales/hsb_DE: Likewise.
18785 * localedata/locales/ht_HT: Likewise.
18786 * localedata/locales/hu_HU: Likewise.
18787 * localedata/locales/hy_AM: Likewise.
18788 * localedata/locales/i18n: Likewise.
18789 * localedata/locales/ia_FR: Likewise.
18790 * localedata/locales/id_ID: Likewise.
18791 * localedata/locales/ig_NG: Likewise.
18792 * localedata/locales/ik_CA: Likewise.
18793 * localedata/locales/is_IS: Likewise.
18794 * localedata/locales/it_CH: Likewise.
18795 * localedata/locales/it_IT: Likewise.
18796 * localedata/locales/iu_CA: Likewise.
18797 * localedata/locales/ja_JP: Likewise.
18798 * localedata/locales/ka_GE: Likewise.
18799 * localedata/locales/kk_KZ: Likewise.
18800 * localedata/locales/kl_GL: Likewise.
18801 * localedata/locales/kn_IN: Likewise.
18802 * localedata/locales/ko_KR: Likewise.
18803 * localedata/locales/kok_IN: Likewise.
18804 * localedata/locales/ks_IN: Likewise.
18805 * localedata/locales/ks_IN@devanagari: Likewise.
18806 * localedata/locales/ku_TR: Likewise.
18807 * localedata/locales/kw_GB: Likewise.
18808 * localedata/locales/ky_KG: Likewise.
18809 * localedata/locales/lb_LU: Likewise.
18810 * localedata/locales/lg_UG: Likewise.
18811 * localedata/locales/li_BE: Likewise.
18812 * localedata/locales/li_NL: Likewise.
18813 * localedata/locales/lij_IT: Likewise.
18814 * localedata/locales/ln_CD: Likewise.
18815 * localedata/locales/lo_LA: Likewise.
18816 * localedata/locales/lt_LT: Likewise.
18817 * localedata/locales/lv_LV: Likewise.
18818 * localedata/locales/lzh_TW: Likewise.
18819 * localedata/locales/mag_IN: Likewise.
18820 * localedata/locales/mai_IN: Likewise.
18821 * localedata/locales/mg_MG: Likewise.
18822 * localedata/locales/mhr_RU: Likewise.
18823 * localedata/locales/mi_NZ: Likewise.
18824 * localedata/locales/mk_MK: Likewise.
18825 * localedata/locales/ml_IN: Likewise.
18826 * localedata/locales/mn_MN: Likewise.
18827 * localedata/locales/mni_IN: Likewise.
18828 * localedata/locales/mr_IN: Likewise.
18829 * localedata/locales/ms_MY: Likewise.
18830 * localedata/locales/mt_MT: Likewise.
18831 * localedata/locales/my_MM: Likewise.
18832 * localedata/locales/nan_TW: Likewise.
18833 * localedata/locales/nan_TW@latin: Likewise.
18834 * localedata/locales/nb_NO: Likewise.
18835 * localedata/locales/nds_DE: Likewise.
18836 * localedata/locales/nds_NL: Likewise.
18837 * localedata/locales/ne_NP: Likewise.
18838 * localedata/locales/nhn_MX: Likewise.
18839 * localedata/locales/niu_NU: Likewise.
18840 * localedata/locales/niu_NZ: Likewise.
18841 * localedata/locales/nl_AW: Likewise.
18842 * localedata/locales/nl_BE: Likewise.
18843 * localedata/locales/nl_NL: Likewise.
18844 * localedata/locales/nn_NO: Likewise.
18845 * localedata/locales/nr_ZA: Likewise.
18846 * localedata/locales/nso_ZA: Likewise.
18847 * localedata/locales/oc_FR: Likewise.
18848 * localedata/locales/om_ET: Likewise.
18849 * localedata/locales/om_KE: Likewise.
18850 * localedata/locales/or_IN: Likewise.
18851 * localedata/locales/os_RU: Likewise.
18852 * localedata/locales/pa_IN: Likewise.
18853 * localedata/locales/pa_PK: Likewise.
18854 * localedata/locales/pap_AW: Likewise.
18855 * localedata/locales/pap_CW: Likewise.
18856 * localedata/locales/pl_PL: Likewise.
18857 * localedata/locales/ps_AF: Likewise.
18858 * localedata/locales/pt_BR: Likewise.
18859 * localedata/locales/pt_PT: Likewise.
18860 * localedata/locales/quz_PE: Likewise.
18861 * localedata/locales/raj_IN: Likewise.
18862 * localedata/locales/ro_RO: Likewise.
18863 * localedata/locales/ru_RU: Likewise.
18864 * localedata/locales/ru_UA: Likewise.
18865 * localedata/locales/rw_RW: Likewise.
18866 * localedata/locales/sa_IN: Likewise.
18867 * localedata/locales/sat_IN: Likewise.
18868 * localedata/locales/sc_IT: Likewise.
18869 * localedata/locales/sd_IN: Likewise.
18870 * localedata/locales/sd_IN@devanagari: Likewise.
18871 * localedata/locales/se_NO: Likewise.
18872 * localedata/locales/sgs_LT: Likewise.
18873 * localedata/locales/shs_CA: Likewise.
18874 * localedata/locales/si_LK: Likewise.
18875 * localedata/locales/sid_ET: Likewise.
18876 * localedata/locales/sk_SK: Likewise.
18877 * localedata/locales/sl_SI: Likewise.
18878 * localedata/locales/sm_WS: Likewise.
18879 * localedata/locales/so_DJ: Likewise.
18880 * localedata/locales/so_ET: Likewise.
18881 * localedata/locales/so_KE: Likewise.
18882 * localedata/locales/so_SO: Likewise.
18883 * localedata/locales/sq_AL: Likewise.
18884 * localedata/locales/sq_MK: Likewise.
18885 * localedata/locales/sr_ME: Likewise.
18886 * localedata/locales/sr_RS: Likewise.
18887 * localedata/locales/sr_RS@latin: Likewise.
18888 * localedata/locales/ss_ZA: Likewise.
18889 * localedata/locales/st_ZA: Likewise.
18890 * localedata/locales/sv_FI: Likewise.
18891 * localedata/locales/sv_SE: Likewise.
18892 * localedata/locales/sw_KE: Likewise.
18893 * localedata/locales/sw_TZ: Likewise.
18894 * localedata/locales/szl_PL: Likewise.
18895 * localedata/locales/ta_IN: Likewise.
18896 * localedata/locales/ta_LK: Likewise.
18897 * localedata/locales/tcy_IN: Likewise.
18898 * localedata/locales/te_IN: Likewise.
18899 * localedata/locales/tg_TJ: Likewise.
18900 * localedata/locales/th_TH: Likewise.
18901 * localedata/locales/the_NP: Likewise.
18902 * localedata/locales/ti_ER: Likewise.
18903 * localedata/locales/ti_ET: Likewise.
18904 * localedata/locales/tig_ER: Likewise.
18905 * localedata/locales/tk_TM: Likewise.
18906 * localedata/locales/tl_PH: Likewise.
18907 * localedata/locales/tn_ZA: Likewise.
18908 * localedata/locales/to_TO: Likewise.
18909 * localedata/locales/tpi_PG: Likewise.
18910 * localedata/locales/tr_CY: Likewise.
18911 * localedata/locales/tr_TR: Likewise.
18912 * localedata/locales/ts_ZA: Likewise.
18913 * localedata/locales/tt_RU: Likewise.
18914 * localedata/locales/tt_RU@iqtelif: Likewise.
18915 * localedata/locales/ug_CN: Likewise.
18916 * localedata/locales/uk_UA: Likewise.
18917 * localedata/locales/unm_US: Likewise.
18918 * localedata/locales/ur_IN: Likewise.
18919 * localedata/locales/ur_PK: Likewise.
18920 * localedata/locales/uz_UZ: Likewise.
18921 * localedata/locales/uz_UZ@cyrillic: Likewise.
18922 * localedata/locales/ve_ZA: Likewise.
18923 * localedata/locales/vi_VN: Likewise.
18924 * localedata/locales/wa_BE: Likewise.
18925 * localedata/locales/wae_CH: Likewise.
18926 * localedata/locales/wal_ET: Likewise.
18927 * localedata/locales/wo_SN: Likewise.
18928 * localedata/locales/xh_ZA: Likewise.
18929 * localedata/locales/yi_US: Likewise.
18930 * localedata/locales/yo_NG: Likewise.
18931 * localedata/locales/yue_HK: Likewise.
18932 * localedata/locales/yuw_PG: Likewise.
18933 * localedata/locales/zh_CN: Likewise.
18934 * localedata/locales/zh_HK: Likewise.
18935 * localedata/locales/zh_SG: Likewise.
18936 * localedata/locales/zh_TW: Likewise.
18937 * localedata/locales/zu_ZA: Likewise.
18938
18939 2017-11-13 Florian Weimer <fweimer@redhat.com>
18940
18941 * support/next_to_fault.h, support/next_to_fault.c: New files.
18942 * support/Makefile (libsupport-routines): Add next_to_fault.
18943 * resolv/tst-inet_pton.c (struct next_to_fault)
18944 (next_to_fault_allocate, next_to_fault_free): Remove.
18945 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
18946
18947 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
18948
18949 * elf/dl-support.c: Include <dl-procruntime.c>.
18950 * include/link.h: Include <link_map.h>.
18951 * sysdeps/generic/dl-procruntime.c: New file.
18952 * sysdeps/generic/link_map.h: Likewise.
18953 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
18954 the writable ld.so namespace.
18955
18956 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
18957
18958 timezone: pacify GCC -Wstringop-truncation
18959 Problem reported by Martin Sebor in:
18960 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
18961 * timezone/zic.c (writezone): Use memcpy, not strncpy.
18962
18963 2017-11-12 Florian Weimer <fweimer@redhat.com>
18964
18965 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
18966 tst-xreadlink.
18967 (tests): Add tst-xreadlink.
18968 * support/support.h (xstrndup): Declare.
18969 * support/xunistd.h (xunlink, xreadlink): Declare.
18970 * support/temp_file.h (support_create_temp_directory): Declare.
18971 * support/temp_file.c (support_create_temp_directory): New function.
18972 * support/support_chroot.c (support_chroot_create): Use it.
18973 * support/xreadlink.c: New file.
18974 * support/xstrndup.c: Likewise.
18975 * support/xunlink.c: Likewise.
18976 * support/tst-xreadlink.c: Likewise.
18977
18978 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
18979
18980 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
18981
18982 2017-11-11 Florian Weimer <fweimer@redhat.com>
18983
18984 [BZ #22409]
18985 [BZ #22412]
18986 * resolv/res_comp.c (printable_string, binary_hnok)
18987 (binary_leading_dash): New functions.
18988 (res_hnok): Reimplement using these functions and ns_name_pton.
18989 (res_ownok): Likewise.
18990 (res_mailok): Reimplement using printable_string, ns_name_pton and
18991 binary_hnok.
18992 (res_dnok): Reimplement using printable_string and ns_name_pton.
18993 * resolv/tst-res_hnok.c (tests): Add additional tests.
18994 (LETTERDIGITS, PRINTABLE): Define.
18995 (do_test): Adjust one_char results.
18996
18997 2017-11-11 Florian Weimer <fweimer@redhat.com>
18998
18999 [BZ #22413]
19000 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
19001 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
19002
19003 2017-11-11 Florian Weimer <fweimer@redhat.com>
19004
19005 * resolv/tst-ns_name_pton.c: New file.
19006 * resolv/Makefile (tests): Add tst-ns_name_pton.
19007 (tst-ns_name_pton): Link against libresolv.
19008
19009 2017-11-11 Florian Weimer <fweimer@redhat.com>
19010
19011 * resolv/tst-res_hnok.c: New file.
19012 * resolv/Makefile (tests): Add tst-res_hnok.
19013 (tst-res_hnok): Link against libresolv.
19014
19015 2017-11-11 Florian Weimer <fweimer@redhat.com>
19016
19017 * resolv/tst-resolv-network.c: Use test framework instead explicit
19018 main function.
19019
19020 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
19021
19022 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
19023 <jmp_buf-macros.h>.
19024 [!_ISOMAC] (STR_HELPER): New.
19025 [!_ISOMAC] (STR): Likewise.
19026 [!_ISOMAC] (TEST_SIZE): Likewise.
19027 [!_ISOMAC] (TEST_ALIGN): Likewise.
19028 [!_ISOMAC] (TEST_OFFSET): Likewise.
19029 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
19030 field offsets of jmp_buf as well as sigjmp_buf.
19031 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
19032 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
19033 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
19034 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
19035 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
19036 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
19037 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
19038 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
19039 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
19040 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
19041 Likewise.
19042 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
19043 Likewise.
19044 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
19045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
19046 Likewise.
19047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
19048 Likewise.
19049 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
19050 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
19051 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
19052 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
19053 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
19054 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
19055 Likewise.
19056 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
19057 Likewise.
19058 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19059 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
19060 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
19061
19062 2017-11-07 Joseph Myers <joseph@codesourcery.com>
19063
19064 * include/float.h
19065 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19066 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
19067 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19068 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
19069 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19070 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
19071 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19072 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
19073 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19074 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
19075 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19076 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
19077 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19078 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
19079 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19080 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
19081 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19082 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
19083 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19084 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
19085 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19086 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
19087 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19088 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
19089 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19090 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
19091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19092 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
19093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19094 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
19095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19096 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
19097 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19098 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
19099 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19100 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
19101 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19102 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
19103 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19104 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
19105 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19106 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
19107 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19108 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
19109 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19110 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
19111 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19112 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
19113 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19114 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
19115 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19116 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
19117 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19118 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
19119 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19120 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
19121 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19122 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
19123 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19124 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
19125 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19126 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
19127 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19128 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
19129 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19130 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
19131 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19132 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
19133 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19134 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
19135 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19136 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
19137 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19138 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
19139 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19140 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
19141 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19142 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
19143 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19144 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
19145 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19146 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
19147 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19148 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
19149 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19150 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
19151 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19152 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
19153
19154 * stdlib/tst-strtod.h (F16): New macro.
19155 (F32): Likewise.
19156 (F64): Likewise.
19157 (F32X): Likewise.
19158 (F64X): Likewise.
19159 (F128X): Likewise.
19160 (IF_FLOAT16): Likewise.
19161 (IF_FLOAT32): Likewise.
19162 (IF_FLOAT64): Likewise.
19163 (IF_FLOAT32X): Likewise.
19164 (IF_FLOAT64X): Likewise.
19165 (IF_FLOAT128X): Likewise.
19166 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
19167 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
19168 (STRTOD_TEST_FOREACH): Likewise.
19169 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
19170 (CHOOSE_f64): Likewise.
19171 (CHOOSE_f32x): Likewise.
19172 (CHOOSE_f64x): Likewise.
19173
19174 2017-11-07 Andreas Schwab <schwab@suse.de>
19175
19176 * nptl/Makefile (tests-internal): Remove tst-typesizes.
19177
19178 2017-11-07 Mike FABIAN <mfabian@redhat.com>
19179
19180 [BZ #22403]
19181 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
19182 to be escaped.
19183 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
19184 to be escaped.
19185
19186 2017-11-07 Claude Paroz <claude@2xlibre.net>
19187
19188 [BZ #22403]
19189 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
19190 to be escaped.
19191 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
19192 to be escaped.
19193 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
19194 to be escaped.
19195
19196 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19197
19198 [BZ #22298]
19199 * nptl/allocatestack.c (allocate_stack): Check if
19200 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
19201 __PTHREAD_MUTEX_HAVE_PREV is defined.
19202 * nptl/descr.h (pthread): Likewise.
19203 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
19204 Likewise.
19205 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
19206 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
19207 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
19208 * sysdeps/nptl/bits/thread-shared-types.h
19209 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
19210 defines.
19211 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
19212 of __WORDSIZE for internal layout.
19213 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
19214 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
19215 instead of __WORDSIZE whether to use an union for __spins and __list
19216 fields.
19217 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
19218 case.
19219 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
19220 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
19221 defines.
19222 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
19223 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19224 Likewise.
19225 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
19226 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19227 Likewise.
19228 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
19229 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19230 Likewise.
19231 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
19232 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19233 Likewise.
19234 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
19235 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19236 Likewise.
19237 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
19238 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19239 Likewise.
19240 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
19241 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19242 Likewise.
19243 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
19244 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19245 Likewise.
19246 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
19247 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19248 Likewise.
19249 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
19250 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19251 Likewise.
19252 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
19253 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19254 Likewise.
19255 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
19256 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19257 Likewise.
19258 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
19259 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19260 Likewise.
19261 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
19262 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
19263 Likewise.
19264
19265 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
19266 New macros.
19267 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
19268 checks for expected input type size.
19269 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
19270 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
19271 Likewise.
19272 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
19273 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
19274 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
19275 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
19276 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
19277 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
19278 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
19279 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
19280 superflous runtime assert check.
19281 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
19282 Likewise.
19283 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
19284 Likewise.
19285 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
19286 Likewise.
19287 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
19288 Likewise.
19289 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
19290 Likewise.
19291 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
19292 Likewise.
19293 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
19294 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
19295 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
19296 Likewise.
19297 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
19298 Likewise.
19299 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
19300 Likewise.
19301 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
19302 Likewise.
19303 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
19304 Likewise.
19305 * nptl/pthread_attr_setinheritsched.c
19306 (__pthread_attr_setinheritsched): Likewise.
19307 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
19308 Likewise.
19309 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
19310 Likewise.
19311 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
19312 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
19313 __old_pthread_attr_setstack): Likewise.
19314 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
19315 Likewise.
19316 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
19317 Likewise.
19318 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
19319 Likewise.
19320 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
19321 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
19322 Likewise.
19323 * nptl/tst-typesizes.c: Remove file.
19324
19325 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
19326 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
19327 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
19328 checks for internal pthread_mutex_t offsets.
19329 * sysdeps/aarch64/nptl/pthread-offsets.h
19330 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
19331 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
19332 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
19333 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
19334 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
19335 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
19336 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
19337 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
19338 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
19339 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
19340 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
19341 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
19342 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
19343 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
19344 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
19345 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
19346 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
19347 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
19348
19349 2017-11-07 Florian Weimer <fweimer@redhat.com>
19350
19351 * bits/mman-linux.h: Move ...
19352 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
19353 comment.
19354 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
19355 outdated comment.
19356
19357 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19358
19359 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
19360 Redefine STRNLEN as __strnlen_power8.
19361
19362 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19363
19364 * signal/sighold.c (sighold): Optimize implementation.
19365
19366 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
19367 __NR_rt_sigqueueinfo.
19368
19369 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
19370 __sigtimedwait.
19371 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
19372 assume __NR_rt_sigtimedwait.
19373 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
19374 and add LIBC_CANCEL_HANDLED for cancellation marking.
19375 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
19376
19377 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
19378 (sysdeps_routines): Add memchr_noneon.
19379 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
19380 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
19381 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
19382 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
19383 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
19384 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
19385 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
19386
19387 * sysdeps/arm/arm-ifunc.h: New file.
19388 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
19389 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
19390 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
19391 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
19392 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
19393 (__memcpy_neon): Avoid create hidden alias.
19394 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
19395 (__memcpy_vfp): Likewise.
19396 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
19397 (sysdep_routines): Add memcpy_arm.
19398 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
19399
19400 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
19401
19402 [BZ #22362]
19403 * Makerules (make-link-multidir): New.
19404 * config.make.in (multidir): New.
19405 * configure.ac (libc_cv_multidir): New. AC_SUBST.
19406 * configure: Regenerated.
19407 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
19408 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
19409 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
19410 New target.
19411
19412 2017-11-06 Joseph Myers <joseph@codesourcery.com>
19413
19414 [BZ #22402]
19415 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
19416 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
19417
19418 2017-11-04 Mike FABIAN <mfabian@redhat.com>
19419
19420 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
19421 to be escaped.
19422
19423 2017-11-04 Florian Weimer <fweimer@redhat.com>
19424
19425 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
19426
19427 2017-11-03 Joseph Myers <joseph@codesourcery.com>
19428
19429 * math/math.h [__HAVE_DISTINCT_FLOAT16
19430 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
19431 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
19432 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
19433 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
19434 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
19435 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
19436 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19437 (__MATH_TG_F32): New macro.
19438 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19439 (__MATH_TG_F64X): Likewise.
19440 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
19441 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
19442
19443 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
19444
19445 * po/de.po: Update translations.
19446 * po/ru.po: Likewise.
19447
19448 2017-11-03 Florian Weimer <fweimer@redhat.com>
19449
19450 * manual/filesys.texi (Hard Links): Document linkat.
19451
19452 2017-11-03 Joseph Myers <joseph@codesourcery.com>
19453
19454 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
19455 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
19456 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
19457 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
19458 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
19459 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
19460 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
19461 the same as _Float128.
19462 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
19463 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
19464 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
19465
19466 * stdlib/stdlib.h
19467 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
19468 Declare.
19469 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
19470 Likewise.
19471 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
19472 Likewise.
19473 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19474 (strtof32x): Likewise.
19475 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19476 (strtof64x): Likewise.
19477 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19478 (strtof128x): Likewise.
19479 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19480 (strfromf16): Likewise.
19481 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19482 (strfromf32): Likewise.
19483 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19484 (strfromf64): Likewise.
19485 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19486 (strfromf32x): Likewise.
19487 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19488 (strfromf64x): Likewise.
19489 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19490 (strfromf128x): Likewise.
19491 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
19492 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
19493 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
19494 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
19495 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
19496 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
19497
19498 2017-11-03 Richard Henderson <rth@twiddle.net>
19499
19500 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
19501
19502 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19503
19504 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
19505
19506 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19507
19508 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
19509 DT_TLSDESC_GOT initialization.
19510 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
19511 (_dl_tlsdesc_resolve_hold): Likewise.
19512 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
19513 (_dl_tlsdesc_resolve_hold): Likewise.
19514 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
19515 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
19516
19517 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19518
19519 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
19520
19521 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19522
19523 [BZ #18572]
19524 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
19525 non-lazily for R_ARM_TLS_DESC.
19526
19527 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19528
19529 [BZ #17078]
19530 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
19531 R_ARM_TLS_DESC case.
19532 (elf_machine_lazy_rel): Remove the prelink check.
19533
19534 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19535
19536 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
19537 DT_TLSDESC_GOT initialization.
19538 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
19539 (_dl_tlsdesc_resolve_rela): Likewise.
19540 (_dl_tlsdesc_resolve_hold): Likewise.
19541 (_dl_tlsdesc_undefweak): Remove ldar.
19542 (_dl_tlsdesc_dynamic): Likewise.
19543 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
19544 (_dl_tlsdesc_resolve_rela): Likewise.
19545 (_dl_tlsdesc_resolve_hold): Likewise.
19546 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
19547 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
19548 (_dl_tlsdesc_resolve_rela): Likewise.
19549 (_dl_tlsdesc_resolve_hold): Likewise.
19550
19551 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19552
19553 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
19554 binding and initialization non-lazily for R_AARCH64_TLSDESC.
19555
19556 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19557
19558 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
19559 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
19560
19561 2017-11-02 Joseph Myers <joseph@codesourcery.com>
19562
19563 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
19564 Declare.
19565 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
19566 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
19567 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
19568 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
19569 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
19570 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
19571 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
19572 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
19573 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
19574 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
19575 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
19576
19577 2017-11-02 Mike FABIAN <mfabian@redhat.com>
19578
19579 [BZ #22382]
19580 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
19581 * localedata/locales/tpi_PG: Add standard header.
19582
19583 2017-11-02 Florian Weimer <fweimer@redhat.com>
19584
19585 test-errno-linux: quotactl can fail with EPERM in containers.
19586 * sysdeps/unix/sysv/linux/test-errno-linux.c
19587 (LIST, LIST_FORWARD): New macros.
19588 (check_error_in_list): New function.
19589 (test_wrp_rv): Accept list of permitted error codes.
19590 (test_wrp_rv2): Remove.
19591 (test_wrp): Call test_wrp_rv with list of error codes.
19592 (test_wrp2): Accept list of error codes.
19593 (do_test): Adjust. Allow EPERM for quotactl.
19594
19595 2017-11-02 Florian Weimer <fweimer@redhat.com>
19596
19597 * stdio-common/bug16.c (do_test): Use array_length.
19598 * stdio-common/errlist.c (_sys_nerr): Likewise.
19599 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
19600 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
19601 * stdio-common/psiginfo.c (psiginfo): Use array_length.
19602 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
19603 (do_test): Use array_length.
19604 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
19605 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
19606 * stdio-common/tst-printf-round.c (do_test): Likewise.
19607 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
19608 (CHECK): Use array_length.
19609 * stdio-common/tstdiomisc.c (t3, F): Likewise.
19610 * stdio-common/tstscanf.c (main): Likewise.
19611 * stdio-common/vfprintf.c (process_string_arg): Likewise.
19612
19613 2017-11-02 Florian Weimer <fweimer@redhat.com>
19614
19615 Add array_length and array_end macros.
19616 * include/array_length.h: New file.
19617
19618 2017-11-02 Florian Weimer <fweimer@redhat.com>
19619
19620 [BZ #22332]
19621 * posix/tst-glob-tilde.c (do_noescape): New variable.
19622 (one_test): Process it.
19623 (do_test): Set do_noescape. Add unescaping test case.
19624
19625 2017-11-01 Joseph Myers <joseph@codesourcery.com>
19626
19627 * math/complex.h
19628 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
19629 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
19630 with appropriate macros defined and undefined.
19631 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
19632 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19633 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
19634 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19635 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
19636 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19637 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
19638 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19639 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
19640 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
19641
19642 * math/complex.h
19643 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
19644 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
19645 that for long double. Do not condition define and undefine of
19646 _Mdouble_complex_ on [__CFLOAT128].
19647
19648 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
19649
19650 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
19651 of <sysdeps/generic/sysdep.h>.
19652 (ALIGNARG): Removed.
19653 (ASM_SIZE_DIRECTIVE): Likewise.
19654 (ENTRY): Likewise.
19655 (END): Likewise.
19656 (ENTRY_CHK): Likewise.
19657 (END_CHK): Likewise.
19658 (syscall_error): Likewise.
19659 (mcount): Likewise.
19660 (PSEUDO_END): Likewise.
19661 (L): Likewise.
19662 (atom_text_section): Likewise.
19663 * sysdeps/x86/sysdep.h: New file.
19664 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
19665 of <sysdeps/generic/sysdep.h>.
19666 (ALIGNARG): Removed.
19667 (ASM_SIZE_DIRECTIVE): Likewise.
19668 (ENTRY): Likewise.
19669 (END): Likewise.
19670 (ENTRY_CHK): Likewise.
19671 (END_CHK): Likewise.
19672 (syscall_error): Likewise.
19673 (mcount): Likewise.
19674 (PSEUDO_END): Likewise.
19675 (L): Likewise.
19676 (atom_text_section): Likewise.
19677
19678 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
19679
19680 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
19681 category of LC_CTYPE set to "i18n:2012".
19682 * localedata/locales/i18n_ctype: Regenerate.
19683
19684 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
19685
19686 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
19687 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
19688 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
19689 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
19690
19691 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
19692 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
19693 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
19694 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
19695
19696 2017-10-31 Joseph Myers <joseph@codesourcery.com>
19697
19698 * math/complex.h
19699 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
19700 New macro.
19701 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
19702 Likewise.
19703 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
19704 Likewise.
19705 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19706 (CMPLXF32X): Likewise.
19707 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19708 (CMPLXF64X): Likewise.
19709 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19710 (CMPLXF128X): Likewise.
19711
19712 * math/math.h
19713 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
19714 (__MATH_EVAL_FMT2): Define to add 0.0f.
19715
19716 2017-10-31 Alan Modra <amodra@gmail.com>
19717
19718 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
19719 include sysdep.h.
19720 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
19721 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
19722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
19723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
19724 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
19725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
19726 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
19727 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
19728 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
19729 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
19730 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
19731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
19732 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
19733 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
19734 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
19735 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
19736 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
19737 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
19738 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
19739 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
19740 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
19741 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
19742 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
19743 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
19744 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
19745 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
19746 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
19747 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
19748 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
19749 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
19750 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
19751 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
19752 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
19753 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
19754 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
19755 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
19756 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
19757 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
19758 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
19759 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
19760 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
19761 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
19762 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
19763 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
19764 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
19765 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
19766 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
19767 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
19768 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
19769 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
19770 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
19771 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
19772 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
19773 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
19774 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
19775 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
19776 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
19777 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
19778 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
19779 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
19780 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
19781 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
19782 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
19783 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
19784 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
19785 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
19786 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
19787 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
19788 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
19789
19790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
19791 include sysdep.h and math_ldbl_opt.h.
19792
19793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
19794 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
19795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
19796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
19797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
19798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
19799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
19800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
19801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
19802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
19803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
19804 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
19805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
19806 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
19807 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
19808 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
19809 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
19810 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
19811 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
19812 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
19813 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
19814 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
19815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
19816 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
19817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
19818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
19819
19820 2017-10-31 Alan Modra <amodra@gmail.com>
19821
19822 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
19823 string/strncase_l.c, not string/strncase.c.
19824 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
19825 (libc_hidden_def): Redefine.
19826
19827 2017-10-31 Alan Modra <amodra@gmail.com>
19828
19829 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
19830 (__STRCMP, STRCMP, __strcasecmp_l): Define.
19831 (__strcasecmp): Don't define.
19832
19833 2017-10-31 Alan Modra <amodra@gmail.com>
19834
19835 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
19836 IS_IN (libc).
19837 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
19838 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
19839 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
19840
19841 2017-10-31 Alan Modra <amodra@gmail.com>
19842
19843 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
19844 USE_AS_STPNCPY.
19845
19846 2017-10-31 Alan Modra <amodra@gmail.com>
19847
19848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
19849 Redefine only when SHARED.
19850
19851 2017-10-30 Joseph Myers <joseph@codesourcery.com>
19852
19853 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
19854 Include <bits/math-finite.h> with appropriate macros defined and
19855 undefined.
19856 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
19857 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
19858 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
19859 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
19860 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
19861
19862 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
19863 [!_Mlong_double_] (_Mlong_double_): Likewise.
19864 [!_Mfloat16_] (_Mfloat16_): Likewise.
19865 [!_Mfloat32_] (_Mfloat32_): Likewise.
19866 [!_Mfloat64_] (_Mfloat64_): Likewise.
19867 [!_Mfloat128_] (_Mfloat128_): Likewise.
19868 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
19869 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
19870 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
19871 (_Mdouble_): Define without indirection through those macros.
19872 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
19873 [!_Mfloat128_] (_Mfloat128_): Likewise.
19874 [_Mlong_double_] (_Mlong_double_): Likewise.
19875 (_Mdouble_): Define without indirection through those macros.
19876 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
19877 not add -D_Mlong_double_=double.
19878 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
19879 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
19880
19881 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
19882
19883 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
19884
19885 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
19886
19887 * sysdeps/x86/libc-start.c: Reformat.
19888
19889 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
19890
19891 [BZ #22353]
19892 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
19893 (1): Renamed to ...
19894 (L(Src0)): This.
19895 (L(Src1)): New.
19896 (L(Src2)): Likewise.
19897 (L(1)): Renamed to ...
19898 (L(Src3)): This.
19899
19900 2017-10-30 Joseph Myers <joseph@codesourcery.com>
19901
19902 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
19903 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
19904 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
19905 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
19906 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
19907 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
19908 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
19909 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
19910 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
19911 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
19912 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
19913 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
19914 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
19915 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
19916 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
19917 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
19918 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
19919 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
19920 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
19921 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
19922 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
19923 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
19924 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
19925 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
19926 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
19927 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
19928 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
19929 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
19930 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
19931 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
19932 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
19933 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
19934 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
19935 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
19936 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
19937 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
19938 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
19939 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
19940 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
19941 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
19942 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
19943 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
19944 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
19945 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
19946 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
19947 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
19948 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
19949 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
19950 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
19951 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
19952 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
19953 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
19954 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
19955 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
19956 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
19957 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
19958 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
19959 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
19960 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
19961 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
19962 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
19963 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
19964 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
19965 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
19966 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
19967 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
19968
19969 2017-10-30 Florian Weimer <fweimer@redhat.com>
19970
19971 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
19972 always defined.
19973 * io/tst-mkdirat.c (do_test): Likewise.
19974 * io/tst-mkfifoat.c (do_test): Likewise.
19975 * io/tst-mknodat.c (do_test): Likewise.
19976 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
19977 * locale/programs/locale.c (select_dirs): Likewise.
19978 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
19979 * posix/bug-glob2.c (my_readdir): Likewise.
19980 * posix/tst-dir.c (main): Likewise.
19981 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
19982 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
19983
19984 2017-10-30 Florian Weimer <fweimer@redhat.com>
19985
19986 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
19987 just __USE_GNU.
19988
19989 2017-10-30 Florian Weimer <fweimer@redhat.com>
19990
19991 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
19992 Convert to support/test-driver.c.
19993 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
19994 New macro parameters.
19995 (PRINTF): Remove macro. Use test_verbose conditionals instead.
19996 * posix/tst-gnuglob.c: New file.
19997 * posix/tst-gnuglob64.c: Likewise.
19998 * posix/Makefile (tests): Add tst-gnuglob64.
19999
20000 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
20001
20002 [BZ #19485]
20003 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
20004 and use a better translation for March in “mon”.
20005 * localedata/locales/csb_PL: Use more ASCII to improve the
20006 readability of the source.
20007
20008 2017-10-30 Mike FABIAN <mfabian@redhat.com>
20009
20010 [BZ #13953]
20011 * localedata/locales/km_KH: Use ASCII as much
20012 as possible for better readability of the source and
20013 remove useless comments.
20014 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
20015 was commented out and apparently wrong anyway because it was
20016 using Lao characters. If Buddhist era should be used
20017 for km_KH, a native speaker should write the correct formaat
20018 for Khmer.
20019 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
20020 (According to CLDR, the first weekday for Cambodia is Sunday).
20021 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
20022 (These were using Lao characters which must be wrong. If we get
20023 the correct data from a native speaker, we could add it back, until
20024 then it is better not to have name_mr and name_mrs at all than
20025 having it wrong).
20026
20027 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
20028
20029 * locale/loadlocale.c: Correct size of
20030 _nl_value_type_LC_<category> arrays.
20031
20032 2017-10-27 Joseph Myers <joseph@codesourcery.com>
20033
20034 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
20035 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
20036 with appropriate macros defined and undefined.
20037 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
20038 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
20039 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
20040 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
20041 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
20042
20043 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
20044
20045 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20046 "-O2 -march=i586".
20047
20048 2017-10-27 Mike FABIAN <mfabian@redhat.com>
20049
20050 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
20051 with lowercase letters to make it agree with CLDR.
20052
20053 2017-10-27 Mike FABIAN <mfabian@redhat.com>
20054
20055 [BZ #15260]
20056 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
20057 first letters of yesstr and nostr in yesexpr and noexpr,
20058 not for the full words.
20059 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
20060 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
20061 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
20062 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
20063 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
20064 first letters of yesstr and nostr in yesexpr and noexpr,
20065 until now only English was matched in yesexpr and noexpr.
20066 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
20067 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
20068 fil but not for tl. As tl and fil are very similar, using fil
20069 is probably better than using English.
20070
20071 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
20072
20073 [BZ #21706]
20074 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
20075 in yesstr and nostr.
20076
20077 2017-10-26 Joseph Myers <joseph@codesourcery.com>
20078
20079 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20080 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
20081 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
20082 Likewise.
20083 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
20084 Likewise.
20085 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
20086 Likewise.
20087 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
20088 Likewise.
20089 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20090 (SNANF128X): Likewise.
20091
20092 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20093 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
20094 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20095 (HUGE_VAL_F32): Likewise.
20096 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20097 (HUGE_VAL_F64): Likewise.
20098 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20099 (HUGE_VAL_F32X): Likewise.
20100 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20101 (HUGE_VAL_F64X): Likewise.
20102 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20103 (HUGE_VAL_F128X): Likewise.
20104
20105 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20106
20107 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
20108 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
20109 for the br_FR locale.
20110
20111 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20112
20113 [BZ #21706]
20114 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
20115
20116 2017-10-25 Carlos O'Donell <carlos@redhat.com>
20117
20118 * locale/programs/record-status.h: Define globals, and function
20119 prototypes. Move function bodies...
20120 * locale/programs/record-status.c: ... to here. New file.
20121 * iconv/Makefile (iconv_prog-modules): Add record-status.
20122 * locale/Makefile (lib-modules): Likewise.
20123 * iconv/iconv_prog.c: Remove verbose.
20124 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
20125 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
20126 record a warning about ASCII compatibility.
20127 * locale/programs/ld-monetary.c (monetary_finish): If
20128 warn_int_curr_symbol is true then record a warning about the symbol
20129 not being in our ISO 4217 list.
20130 * locale/programs/locale.c: Include record-status.h. Remove verbose.
20131 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
20132 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
20133 (OPT_NO_WARN): Define.
20134 (OPT_WARN): Define.
20135 (options): Add entry for --no-warnings, and --warnings.
20136 (set_warnings): New function to enable/disable warnings.
20137 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
20138 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
20139 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
20140 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
20141 Pass flags to generate_locale.
20142 (generate_locale): Accept new flag argument and pass it to localedef
20143 invocation.
20144 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
20145 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
20146
20147 * localedata/Makefile (test-input-data): Use full file name.
20148 * localedata/da_DK.in: Rename to...
20149 * localedata/da_DK.ISO-8859-1.in: ...this.
20150 * localedata/de_DE.in: Rename to...
20151 * localedata/de_DE.ISO-8859-1.in: ...this.
20152 * localedata/en_US.in: Rename to...
20153 * localedata/en_US.ISO-8859-1.in: ...this.
20154 * localedata/fr_FR.in: Rename to...
20155 * localedata/fr_FR.UTF-8.in: ... this.
20156 * localedata/hr_HR.in: Rename to...
20157 * localedata/hr_HR.ISO-8859-2.in: ...this.
20158 * localedata/hu_HU.in: Rename to...
20159 * localedata/hu_HU.UTF-8.in: ...this.
20160 * localedata/si_LK.in: Rename to...
20161 * localedata/si_LK.UTF-8.in: ...this.
20162 * localedata/sv_SE.in: Rename to...
20163 * localedata/sv_SE.ISO-8859-1.in: ...this.
20164 * localedata/tr_TR.in: Rename to...
20165 * localedata/tr_TR.UTF-8.in: ...this.
20166 * localedata/uk_UA.in: Rename to...
20167 * localedata/uk_UA.UTF-8.in: ...this.
20168 * localedata/sort-test.sh: Test file is locale name with the
20169 suffix.
20170
20171 * localedata/unicode-gen/Makefile (check_i18n): Rename to
20172 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
20173 file.
20174 * localedata/locales/i18n_ctype: Regenerate.
20175 * localedata/locales/tr_TR: Likewise.
20176 * localedata/locales/translit_circle: Likewise.
20177 * localedata/locales/translit_cjk_compat: Likewise.
20178 * localedata/locales/translit_combining: Likewise.
20179 * localedata/locales/translit_compat: Likewise.
20180 * localedata/locales/translit_font: Likewise.
20181 * localedata/locales/translit_fraction: Likewise.
20182
20183 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20184
20185 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
20186 lxvd2x/stxvd2x with lvx/stvx.
20187 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
20188
20189 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
20190
20191 * include/alloc_buffer.h: Replace "if if " with "if " in
20192 comments.
20193 * sysdeps/mips/memcpy.S: Likkewise.
20194 * sysdeps/mips/memset.S: Likewise.
20195 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
20196 Likewise.
20197 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
20198 Likewise.
20199 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
20200 Likewise.
20201
20202 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20203
20204 [BZ #15261]
20205 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
20206 yesexpr and noexpr.
20207 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
20208 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
20209 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
20210 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
20211 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
20212 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
20213 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
20214
20215 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20216
20217 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
20218 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
20219 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
20220 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
20221 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
20222 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
20223 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
20224 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
20225 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
20226 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
20227 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
20228 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
20229
20230 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20231
20232 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
20233 as possible for better readability of the source.
20234 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
20235 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
20236 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
20237 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
20238 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
20239 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
20240 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
20241 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
20242 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
20243 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
20244 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
20245 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
20246 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
20247 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
20248 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
20249 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
20250 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
20251 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
20252 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
20253 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
20254 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
20255 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
20256 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
20257 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
20258 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
20259 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
20260 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
20261 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
20262 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
20263 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
20264 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
20265 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
20266 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
20267 * localedata/locales/en_US (LC_MESSAGES): Likewise.
20268 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
20269 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
20270 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
20271 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
20272 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
20273 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
20274 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
20275 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
20276 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
20277 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
20278 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
20279 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
20280 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
20281 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
20282 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
20283 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
20284 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
20285 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
20286 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
20287 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
20288 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
20289 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
20290 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
20291 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
20292 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
20293 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
20294 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
20295 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
20296 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
20297 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
20298 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
20299 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
20300 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
20301 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
20302 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
20303 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
20304 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
20305 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
20306 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
20307 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
20308 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
20309 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
20310 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
20311 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
20312 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
20313 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
20314 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
20315 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
20316 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
20317 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
20318 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
20319 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
20320 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
20321 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
20322 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
20323 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
20324 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
20325 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
20326 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
20327 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
20328 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
20329 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
20330 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
20331 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
20332 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
20333 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
20334 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
20335 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
20336 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
20337 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
20338 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
20339 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
20340 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
20341 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
20342 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
20343 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
20344 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
20345 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
20346 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
20347 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
20348 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
20349 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
20350 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
20351 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
20352 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
20353 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
20354 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
20355 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
20356 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
20357 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
20358 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
20359 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
20360 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
20361 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
20362 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
20363 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
20364 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
20365 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
20366 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
20367 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
20368 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
20369 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
20370 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
20371 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
20372 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
20373 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
20374 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
20375 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
20376 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
20377 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
20378 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
20379 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
20380 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
20381 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
20382 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
20383 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
20384 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
20385 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
20386 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
20387 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
20388 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
20389 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
20390 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
20391 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
20392 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
20393 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
20394 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
20395 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
20396 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
20397 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
20398 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
20399 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
20400 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
20401 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
20402 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
20403 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
20404 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
20405 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
20406 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
20407 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
20408
20409 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20410
20411 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
20412 (Use first letters of yesstr and nostr correctly instead of using
20413 full words).
20414
20415 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20416
20417 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
20418 (Use first letters of yesstr and nostr correctly).
20419
20420 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20421
20422 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
20423 also check for the first characters of yesstr and nostr.
20424 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
20425 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
20426
20427 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20428
20429 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
20430 also check for Chinese characters.
20431
20432 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20433
20434 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
20435 match also for the contents of yesstr and nostr. As the first letter
20436 of yesstr and nostr is equal, checking only for the first letter
20437 is not enough.
20438
20439 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20440
20441 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
20442 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
20443
20444 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20445
20446 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
20447 of main contributor.
20448
20449 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20450
20451 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
20452 instead of using English.
20453
20454 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20455
20456 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
20457 by including the first letters of nostr and yesexpr in the regexp.
20458 Also make it more readable by using ASCII where possible.
20459
20460 2017-10-25 Mike FABIAN <mfabian@redhat.com>
20461
20462 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
20463 the first letter of nostr in the regexp. It agrees with CLDR now.
20464 Also make it more readable by using ASCII where possible.
20465
20466 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20467
20468 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
20469 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
20470 these strings contain a U+17D6 (which somewhat looks like a colon)
20471 instead of a real colon to separate the full words for “yes”
20472 and “no” from the single letter responses.
20473
20474 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20475
20476 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
20477 it agree with CLDR (include the first letter of yesstr).
20478 Also make it more readable by using ASCII where possible.
20479
20480 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20481
20482 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
20483 and improve yesexpr and noexpr. The yesstr and nostr apparently
20484 came from CLDR. And CLDR has a bug there: these strings contain
20485 a U+0903 (which looks like a colon) instead of a real colon
20486 to separate the full words for “yes” and “no” from the single
20487 letter responses.
20488
20489 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20490
20491 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
20492 letters of the full yesstr and nostr in yesexpr and noexpr.
20493
20494 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20495
20496 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
20497 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
20498 * localedata/locales/an_ES: Make source more readable by using ASCII
20499 where possible.
20500
20501 2017-10-24 Mike FABIAN <mfabian@redhat.com>
20502
20503 [BZ #20952]
20504 * localedata/locales/yuw_PG: New file.
20505 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
20506 * locale/iso-639.def: Add Yau (Uruwa).
20507
20508 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
20509
20510 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
20511
20512 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
20513
20514 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
20515 (__libc_realloc): Likewise.
20516 (_mid_memalign): Likewise.
20517 (__libc_calloc): Likewise.
20518
20519 2017-10-23 Mike FABIAN <mfabian@redhat.com>
20520
20521 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
20522 by adding the generic +1 and -0 as in all other locales.
20523 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
20524 day names and make it more readable by using ASCII where possible.
20525
20526 2017-10-24 Joseph Myers <joseph@codesourcery.com>
20527
20528 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
20529 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
20530
20531 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20532
20533 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
20534 WNOHANG in waitpid call.
20535
20536 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
20537
20538 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
20539 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
20540
20541 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
20542 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
20543 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
20544 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
20545 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
20546 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
20547 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
20548 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
20549 variables.
20550
20551 2017-10-23 Michael Collison <michael.collison@arm.com>
20552
20553 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
20554 with __builtin_sqrt.
20555 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
20556 with __builtin_sqrtf.
20557 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
20558 with __builtin_ceil.
20559 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
20560 with __builtin_ceilf.
20561 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
20562 with __builtin_floor.
20563 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
20564 with __builtin_floorf.
20565 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
20566 with __builtin_fma.
20567 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
20568 with __builtin_fmaf.
20569 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
20570 with __builtin_fmax.
20571 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
20572 with __builtin_fmaxf.
20573 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
20574 with __builtin_fmin.
20575 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
20576 with __builtin_fminf.
20577 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
20578 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
20579 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
20580 with builtin_rint and conversion to int.
20581 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
20582 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
20583 with builtin_llround.
20584 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
20585 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
20586 with builtin_rint and conversion to long int.
20587 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
20588 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
20589 with builtin_lround.
20590 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
20591 with builtin_lroundf.
20592 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
20593 statements with __builtin_nearbyint.
20594 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
20595 statements with __builtin_nearbyintf.
20596 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
20597 with __builtin_rint.
20598 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
20599 with __builtin_rintf.
20600 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
20601 with __builtin_round.
20602 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
20603 with __builtin_roundf.
20604 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
20605 with __builtin_trunc.
20606 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
20607 with __builtin_truncf.
20608 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
20609 and s_l[l]round[f].c too.
20610
20611 2017-10-23 Alan Modra <amodra@gmail.com>
20612
20613 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
20614 Adjust stack after restoring regs. Add missing LR cfi_restore.
20615
20616 2017-10-23 Alan Modra <amodra@gmail.com>
20617
20618 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
20619 Move LR save and frame setup/teardown and LR restore to
20620 immediately around memset call. Provide cfi.
20621
20622 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20623
20624 * sysdeps/i386/fpu/e_powf.S: Removed.
20625 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
20626 * sysdeps/i386/fpu/w_powf.c: Likewise.
20627 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
20628 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20629 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20630 Add e_powf-sse2.
20631 (CFLAGS-e_powf-sse2.c): New.
20632 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
20633 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
20634
20635 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20636
20637 * sysdeps/i386/fpu/e_log2f.S: Removed.
20638 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
20639 * sysdeps/i386/fpu/w_log2f.c: Likewise.
20640 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
20641 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20642 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20643 Add e_log2f-sse2.
20644 (CFLAGS-e_log2f-sse2.c): New.
20645 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
20646 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
20647
20648 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20649
20650 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20651 Add e_powf-fma.
20652 (CFLAGS-e_powf-fma.c): New.
20653 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
20654 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
20655
20656 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20657
20658 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20659 Add e_log2f-fma.
20660 (CFLAGS-e_log2f-fma.c): New.
20661 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
20662 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
20663
20664 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20665
20666 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20667 Add e_logf-fma.
20668 (CFLAGS-e_logf-fma.c): New.
20669 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
20670 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
20671
20672 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20673
20674 * sysdeps/i386/fpu/e_logf.S: Removed.
20675 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
20676 * sysdeps/i386/fpu/w_logf.c: Likewise.
20677 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
20678 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
20679 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20680 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20681 Add e_logf-sse2.
20682 (CFLAGS-e_logf-sse2.c): New.
20683 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
20684 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
20685
20686 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20687
20688 * sysdeps/i386/fpu/e_exp2f.S: Removed.
20689 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
20690 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
20691 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20692 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20693 Add e_exp2f-sse2.
20694 (CFLAGS-e_exp2f-sse2.c): New.
20695 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
20696 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
20697
20698 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20699
20700 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20701 Add e_exp2f-fma.
20702 (CFLAGS-e_exp2f-fma.c): New.
20703 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
20704 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
20705
20706 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20707
20708 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
20709 * sysdeps/i386/fpu/e_expf.S: Likewise.
20710 * sysdeps/i386/fpu/math_errf.c: Likewise.
20711 * sysdeps/i386/fpu/w_expf.c: Likewise.
20712 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
20713 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
20714 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
20715 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
20716 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20717 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
20718 Remove e_expf-ia32.
20719 (CFLAGS-e_expf-sse2.c): New.
20720 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
20721 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
20722
20723 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
20724
20725 * sysdeps/x86_64/fpu/e_expf.S: Removed.
20726 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
20727 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
20728 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
20729 e_expf.c.
20730 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
20731 New.
20732 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
20733 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
20734 Renamed to ...
20735 (__redirect_expf): This.
20736 (SYMBOL_NAME): Changed to expf.
20737 (__ieee754_expf): Renamed to ...
20738 (__expf): This.
20739 (__GI___expf): This.
20740 (__ieee754_expf): Add strong_alias.
20741 (__expf_finite): Likewise.
20742 (__expf): New.
20743 Include <sysdeps/ieee754/flt-32/e_expf.c>.
20744
20745 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
20746
20747 [BZ #22332]
20748 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
20749 unescaping.
20750
20751 2017-10-21 Florian Weimer <fweimer@redhat.com>
20752
20753 * posix/Makefile (tests): Add tst-glob-tilde.
20754 (tests-special): Add tst-glob-tilde-mem.out
20755 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
20756 (tst-glob-tilde-mem.out): Add mtrace check.
20757 * posix/tst-glob-tilde.c: New file.
20758
20759 2017-10-20 Joseph Myers <joseph@codesourcery.com>
20760
20761 * bits/floatn-common.h: New file.
20762 * math/Makefile (headers): Add bits/floatn-common.h.
20763 * bits/floatn.h: Include <bits/floatn-common.h>.
20764 * sysdeps/ia64/bits/floatn.h: Likewise.
20765 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
20766 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
20767 * sysdeps/powerpc/bits/floatn.h: Likewise.
20768 * sysdeps/x86/bits/floatn.h: Likewise.
20769
20770 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20771
20772 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
20773 indicates whether compiler emits an warning for alias for
20774 functions with incompatible types.
20775
20776 [BZ #22273]
20777 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
20778 the auxiliary process is terminated by a signal before calling _exit
20779 or execve.
20780
20781 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
20782
20783 [BZ #21265]
20784 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
20785 New.
20786 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
20787 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
20788 and bit_arch_XSAVEC_Usable if needed.
20789 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
20790 and bit_arch_Use_dl_runtime_resolve_opt.
20791 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
20792 Removed.
20793 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
20794 (bit_arch_Prefer_No_AVX512): Updated.
20795 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
20796 (bit_arch_XSAVEC_Usable): New.
20797 (STATE_SAVE_OFFSET): Likewise.
20798 (STATE_SAVE_MASK): Likewise.
20799 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
20800 (cpu_features): Add xsave_state_size and xsave_state_full_size.
20801 (index_arch_Use_dl_runtime_resolve_opt): Removed.
20802 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
20803 (index_arch_XSAVEC_Usable): New.
20804 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
20805 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
20806 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
20807 is enabled.
20808 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
20809 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
20810 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
20811 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
20812 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
20813 _dl_runtime_resolve_xsavec.
20814 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
20815 Removed.
20816 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
20817 instead of VEC_SIZE.
20818 (REGISTER_SAVE_BND0): Removed.
20819 (REGISTER_SAVE_BND1): Likewise.
20820 (REGISTER_SAVE_BND3): Likewise.
20821 (REGISTER_SAVE_RAX): Always defined to 0.
20822 (VMOV): Removed.
20823 (_dl_runtime_resolve_avx): Likewise.
20824 (_dl_runtime_resolve_avx_slow): Likewise.
20825 (_dl_runtime_resolve_avx_opt): Likewise.
20826 (_dl_runtime_resolve_avx512): Likewise.
20827 (_dl_runtime_resolve_avx512_opt): Likewise.
20828 (_dl_runtime_resolve_sse): Likewise.
20829 (_dl_runtime_resolve_sse_vex): Likewise.
20830 (USE_FXSAVE): New.
20831 (_dl_runtime_resolve_fxsave): Likewise.
20832 (USE_XSAVE): Likewise.
20833 (_dl_runtime_resolve_xsave): Likewise.
20834 (USE_XSAVEC): Likewise.
20835 (_dl_runtime_resolve_xsavec): Likewise.
20836 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
20837 Removed.
20838 (_dl_runtime_resolve_avx512_opt): Likewise.
20839 (_dl_runtime_resolve_avx): Likewise.
20840 (_dl_runtime_resolve_avx_opt): Likewise.
20841 (_dl_runtime_resolve_sse): Likewise.
20842 (_dl_runtime_resolve_sse_vex): Likewise.
20843 (_dl_runtime_resolve_fxsave): New.
20844 (_dl_runtime_resolve_xsave): Likewise.
20845 (_dl_runtime_resolve_xsavec): Likewise.
20846
20847 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
20848
20849 [BZ #22320]
20850 CVE-2017-15670
20851 * posix/glob.c (__glob): Fix one-byte overflow.
20852
20853 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
20854
20855 * malloc/malloc.c (sysdep-cancel.h): Add include.
20856
20857 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
20858
20859 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
20860
20861 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
20862
20863 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
20864 (tests): Remove $(objpfx)ga_test depdendency.
20865 * resolv/ga_test.c: Remove file.
20866
20867 2017-10-20 Mike FABIAN <mfabian@redhat.com>
20868
20869 [BZ #18812]
20870 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
20871 * localedata/locales/kab_DZ: New file.
20872
20873 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
20874
20875 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
20876 _dl_relocate_static_pie instead of _dl_start to compute load
20877 address in static PIE.
20878
20879 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
20880
20881 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
20882
20883 2017-10-20 Mike FABIAN <mfabian@redhat.com>
20884
20885 [BZ #13605]
20886 * localedata/SUPPORTED: Add shn_MM/UTF-8.
20887 * localedata/locales/shn_MM: New file.
20888
20889 2017-10-20 Florian Weimer <fweimer@redhat.com>
20890
20891 [BZ #22321]
20892 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
20893 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
20894 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
20895 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
20896 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
20897 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
20898
20899 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
20900
20901 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
20902
20903 2017-10-19 Joseph Myers <joseph@codesourcery.com>
20904
20905 * sysdeps/mips/ieee754/bits/floatn.h: New file.
20906
20907 [BZ #22322]
20908 * sysdeps/mips/bits/long-double.h: Move to ....
20909 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
20910
20911 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
20912
20913 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
20914
20915 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
20916 H.J. Lu <hongjiu.lu@intel.com>
20917
20918 [BZ #22299]
20919 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
20920 GLRO(dl_platform) to NULL.
20921 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
20922 (modules-names): Add tst-platformmod-1 and
20923 x86_64/tst-platformmod-2.
20924 (CFLAGS-tst-platform-1.c): New.
20925 (CFLAGS-tst-platformmod-1.c): Likewise.
20926 (CFLAGS-tst-platformmod-2.c): Likewise.
20927 (LDFLAGS-tst-platformmod-2.so): Likewise.
20928 ($(objpfx)tst-platform-1): Likewise.
20929 ($(objpfx)tst-platform-1.out): Likewise.
20930 (tst-platform-1-ENV): Likewise.
20931 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
20932 * sysdeps/x86_64/tst-platform-1.c: New file.
20933 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
20934 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
20935
20936 2017-10-19 Mike FABIAN <mfabian@redhat.com>
20937
20938 [BZ #13994]
20939 * locale/iso-639.def: Add Karbi.
20940 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
20941 * localedata/locales/mjw_IN: New file.
20942
20943 2017-10-18 Joseph Myers <joseph@codesourcery.com>
20944
20945 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
20946 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
20947 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
20948 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
20949 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
20950 (libm_alias_ldouble_other_r): Also create _Float128 alias.
20951 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
20952 <bits/floatn.h>.
20953 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
20954 (libm_alias_ldouble_other_r): Also create _Float128 alias.
20955 * manual/math.texi (Mathematics): Document additional architecture
20956 support for _Float128.
20957 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20958 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20959 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20960 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20961 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20962 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20963 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20964 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20965 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20966 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20967 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20968 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20969 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20970 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20971 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20972
20973 2017-10-18 Renlin Li <renlin.li@arm.com>
20974
20975 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
20976 _DYNAMIC symbol to calculate load address.
20977
20978 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
20979
20980 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
20981 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
20982 summary bits.
20983 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
20984 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
20985
20986 2017-10-18 Mike FABIAN <mfabian@redhat.com>
20987
20988 [BZ #16777]
20989 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
20990 and improve readability by using more ASCII.
20991 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
20992 and improve readability by using more ASCII.
20993
20994 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
20995
20996 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
20997 not all targets support atomics on bool.
20998
20999 2017-10-17 Joseph Myers <joseph@codesourcery.com>
21000
21001 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
21002 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
21003 __f128.
21004 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21005 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
21006 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21007 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
21008 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21009 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
21010
21011 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21012
21013 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
21014 defines.
21015
21016 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21017
21018 [BZ #22159]
21019 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
21020 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
21021 (do_check_remalloced_chunk): Fix build bug.
21022 (do_check_malloc_state): Add assert that checks arena->top.
21023 (malloc_consolidate): Remove initialization.
21024 (int_mallinfo): Remove call to malloc_consolidate.
21025 (__libc_mallopt): Clarify why malloc_consolidate is needed.
21026
21027 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21028
21029 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
21030 (have_fastchunks): Remove.
21031 (clear_fastchunks): Remove.
21032 (set_fastchunks): Remove.
21033 (malloc_state): Add have_fastchunks.
21034 (malloc_init_state): Use have_fastchunks.
21035 (do_check_malloc_state): Remove incorrect invariant checks.
21036 (_int_malloc): Use have_fastchunks.
21037 (_int_free): Likewise.
21038 (malloc_consolidate): Likewise.
21039
21040 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21041
21042 * malloc/malloc.c (tcache_put): Inline.
21043 (tcache_get): Inline.
21044
21045 2017-10-17 Jordi Mallach <jordi@gnu.org>
21046
21047 Aurelien Jarno <aurelien@aurel32.net>
21048 [BZ #2522]
21049 * localedata/locales/ca_ES@valencia: New file.
21050 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
21051
21052 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
21053
21054 [BZ #22296]
21055 * math/math.h: Let signbit use the builtin in C++ mode with gcc
21056 < 6.x
21057
21058 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21059
21060 * scripts/build-many-glibcs.py (Context.add_all_configs):
21061 Add arm-linux-gnueabihf multiarch extra_glibcs.
21062
21063 * sysdeps/generic/ifunc-init.h: New file.
21064 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
21065
21066 2017-10-17 Mike FABIAN <mfabian@redhat.com>
21067
21068 [BZ #22019]
21069 * localedata/locales/el_GR: Set n_cs_precedes to 0.
21070 * localedata/locales/el_CY: copy "el_GR" because it is identical.
21071 * stdlib/tst-strfmon_l.c: adapt test case.
21072
21073 2017-10-16 Joseph Myers <joseph@codesourcery.com>
21074
21075 * sysdeps/generic/float128-abi.h: New file.
21076 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
21077 non-__prefixed symbols to ....
21078 * math/Versions: ... here. Include <float128-abi.h>.
21079 * stdlib/Versions ... and here. Include <float128-abi.h>
21080
21081 2017-10-16 Florian Weimer <fweimer@redhat.com>
21082
21083 * version.h (VERSION): Switch to ".9000" as the development
21084 version suffix.
21085
21086 2017-10-16 Florian Weimer <fweimer@redhat.com>
21087
21088 [BZ #22050]
21089 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
21090 compat_symbol_reference to access non-default version.
21091
21092 2017-10-16 Florian Weimer <fweimer@redhat.com>
21093
21094 * malloc/Makefile (others-extras): Set to mcheck-init.o.
21095
21096 2017-10-16 Carlos O'Donell <carlos@redhat.com>
21097
21098 * include/shlib-compat.h (compat_symbol_reference): Update
21099 comment.
21100
21101 2017-10-16 Joseph Myers <joseph@codesourcery.com>
21102
21103 * math/Makefile (test-types): Add
21104 $(type-float128-$(float128-alias-fcts)).
21105 * math/test-float128.h (TYPE_STR): Define conditional on
21106 [FLT128_MANT_DIG == LDBL_MANT_DIG].
21107 (ULP_IDX): Likewise.
21108 (ULP_I_IDX): Likewise.
21109
21110 * stdlib/strtold.c: Include <bits/floatn.h>
21111 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
21112 and later undefine as macro. Define as weak alias if
21113 [!USE_WIDE_CHAR].
21114 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
21115 and later undefine as macro. Define as weak alias if
21116 [USE_WIDE_CHAR].
21117 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
21118 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
21119 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21120 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21121 Define and later undefine as macro. Define as weak alias if
21122 [USE_WIDE_CHAR].
21123 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
21124 <bits/floatn.h>.
21125 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
21126 Define and later undefine as macro. Define as weak alias if
21127 [!USE_WIDE_CHAR].
21128 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21129 Define and later undefine as macro. Define as weak alias if
21130 [USE_WIDE_CHAR].
21131
21132 2017-10-15 Carlos O'Donell <carlos@redhat.com>
21133
21134 * localedata/collate-test.c (allocate_arrays): Don't use \n in
21135 record_verbose messages.
21136
21137 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
21138
21139 [BZ #22052]
21140 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
21141 to silence -O3 -Wall warning with GCC 7.
21142
21143 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
21144
21145 * Makeconfig (+link-static-before-libc): Use the first of
21146 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
21147 * gmon/Makefile (tests): Add tst-gmon-static.
21148 (tests-static): Likewise.
21149 (CFLAGS-tst-gmon-static.c): New.
21150 (CRT-tst-gmon-static): Likewise.
21151 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
21152 (tst-gmon-static-ENV): Likewise.
21153 (tests-special): Likewise.
21154 ($(objpfx)tst-gmon-static.out): Likewise.
21155 (clean-tst-gmon-static-data): Likewise.
21156 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
21157 * gmon/tst-gmon-static-gprof.sh: New file.
21158 * gmon/tst-gmon-static.c: Likewise.
21159
21160 2017-10-13 Carlos O'Donell <carlos@redhat.com>
21161
21162 [BZ #22295]
21163 * locale/programs/linereader.c (get_string): Don't warn on
21164 non-symbolic character.
21165
21166 [BZ #22294]
21167 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
21168 int_curr_symbol.
21169
21170 [BZ #22292]
21171 * locale/programs/record-status.h: New file
21172 * locale/programs/locale.c: Add comment.
21173 * locale/programs/charmap-dir.c: Don't include error.h.
21174 (charmap_opendir): Use record_error.
21175 * locale/programs/charmap.c: Don't include error.h.
21176 (charmap_read): Use record_error, and record_warning.
21177 (parse_charmap): Likewise.
21178 * locale/programs/ld-address.c: Don't include error.h.
21179 (address_finish): Use record_error, and record_warning.
21180 * locale/programs/ld-collate.c: Don't include error.h.
21181 (collate_finish): Use record_error, and record_error_at_line.
21182 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
21183 (ctype_class_new): Likewise.
21184 (ctype_map_new): Likewise.
21185 (set_one_default): Likewise.
21186 (set_class_defaults): Likewise.
21187 (translit_flatten): Likewise.
21188 (allocate_arrays): Use record_error, and record_verbose.
21189 * locale/programs/ld-identification.c: Don't include error.h.
21190 (indentation_finish): Use record_error and record_warning.
21191 * locale/programs/ld-measurement.c: Don't include error.h.
21192 (measurement_finish): Use record_error.
21193 * locale/programs/ld-messages.c
21194 (message_finish): Likewise.
21195 * locale/programs/ld-monetary.c
21196 (monetary_finish): Likewise.
21197 * locale/programs/ld-name.c (name_finish): Use record_error
21198 and record_warning.
21199 * locale/programs/ld-numeric.c
21200 (numeric_finish): Use record_error.
21201 * locale/programs/ld-paper.c: Don't include error.h.
21202 (paper_finish): Use record_error.
21203 * locale/programs/ld-telephone.c: Don't include error.h.
21204 (telephone_finish): Use record_error.
21205 * locale/programs/ld-time.c (time_finish): Likewise.
21206 * locale/programs/linereader.h (lr_error): Make inline func.
21207 * locale/programs/localedef.c: Define recorded_warning_count,
21208 and recorded_error_count.
21209 (main): Use record_error. Use recorded_error_count and
21210 recorded_warning_count to issue correct error returns.
21211 (add_to_readlist): Use record_error.
21212 (find_locale): Likewise.
21213 (load_locale): Likewise.
21214 * locale/programs/localedef.h: Remove be_quiet
21215 and WITH_CUR_LOCALE.
21216 * locale/programs/locarchive.c (compare_from_file): Use
21217 record_error.
21218 * locale/programs/locfile.c (write_locale_data): Use
21219 record_error.
21220 * locale/programs/repertoire.c: Dont include error.h.
21221 (repertoire_complain): Use record_error.
21222 * localedata/tst-fmon.sh: Expect failures from localedef.
21223 * localedata/tst-locale.sh: Likewise.
21224 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
21225
21226 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
21227 (REPORTS): Likewise.
21228 (check): Likewise.
21229 (i18n): Rename to...
21230 (i18n_ctype): ...this.
21231 (i18n-report): Rename to...
21232 (i18n_ctype-report): ...this.
21233 * localedata/locales/i18n_ctype: Regenerate.
21234 * localedata/locales/i18n: copy i18n_ctype.
21235
21236 2017-10-13 Joseph Myers <joseph@codesourcery.com>
21237
21238 * stdlib/strfroml.c: Include <bits/floatn.h>.
21239 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
21240 Define before include of <stdlib.h> and undefine afterwards, then
21241 define as weak alias.
21242
21243 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
21244 Undefine and restore default definition. Use
21245 libm_alias_ldouble_other.
21246
21247 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
21248
21249 [BZ #22153]
21250 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
21251 in coredumps.
21252
21253 2017-10-13 James Clarke <jrtc27@jrtc27.com>
21254
21255 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
21256 Assign sym_map to be map for local symbols, as TLS relocations
21257 use sym_map to determine whether the symbol is defined and to
21258 extract the TLS information.
21259 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
21260 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
21261
21262 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21263
21264 [BZ #22189]
21265 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
21266 (math_force_eval): Add powerpc version.
21267
21268 [BZ #22142]
21269 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
21270 -DBL_MAX.
21271 (do_test): Likewise.
21272 * stdio-common/tst-printf.sh: Likewise.
21273 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
21274 ifdef clause in order to set the carry bit right. Replace r0 by
21275 0 without changing the behavior.
21276
21277 2017-10-13 Joseph Myers <joseph@codesourcery.com>
21278
21279 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
21280 <libm-alias-ldouble.h>.
21281 (fabsl): Define using libm_alias_ldouble.
21282 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
21283 <libm-alias-ldouble.h>.
21284 (fabsl): Define using libm_alias_ldouble.
21285
21286 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
21287 Remove conditional code.
21288
21289 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
21290 Rename to __clog10_internal_l.
21291 (__clog10_internal_l): Define aliases using
21292 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
21293 with __clog10.
21294
21295 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21296
21297 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
21298 * benchtests/sincosf-inputs: New file.
21299 * benchtests/cosf-inputs: New file.
21300 * benchtests/sinf-inputs: New file.
21301
21302 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21303
21304 * posix/tst-spawn.c (do_test): Wait for both children.
21305
21306 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
21307
21308 [BZ #22284]
21309 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
21310 tests-pie): Add tst-gmon-pie.
21311 (CFLAGS-tst-gmon-pie.c): New.
21312 (CRT-tst-gmon-pie): Likewise.
21313 (tst-gmon-pie-ENV): Likewise.
21314 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
21315 ($(objpfx)tst-gmon-pie.out): Likewise.
21316 (clean-tst-gmon-pie-data): Likewise.
21317 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
21318 * gmon/gmon.c [PIC]: Include <link.h>.
21319 [PIC] (callback): New function.
21320 (write_hist): Add an argument for load address. Subtract load
21321 address from PCs.
21322 (write_call_graph): Likewise.
21323 (write_gmon): Call __dl_iterate_phdr to get load address, pass
21324 it to write_hist and write_call_graph.
21325 * gmon/tst-gmon-pie.c: New file.
21326
21327 2017-10-11 Joseph Myers <joseph@codesourcery.com>
21328
21329 * math/Makefile (test-types-basic): New variable.
21330 (test-types): Likewise.
21331 (libm-test-support): Use $(test-types) instead of $(types).
21332 (libm-tests-base-normal): Likewise.
21333 (libm-tests-base-finite): Likewise.
21334 (libm-tests-base-inline): Likewise.
21335 (generated): Likewise.
21336 ($(objpfx)libm-test-support-$(t).c): Likewise.
21337 (libm-tests-for-type iterator): Likewise.
21338 (libm-test-support iterator): Likewise.
21339 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
21340 (ulp_idx): Use ULP_IDX.
21341 * math/test-ldouble.h: Include <float.h>.
21342 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
21343 (ULP_IDX): New macro.
21344 (ULP_I_IDX): Likewise.
21345 * math/test-double.h (ULP_IDX): Likewise.
21346 (ULP_I_IDX): Likewise.
21347 * math/test-float.h (ULP_IDX): Likewise.
21348 (ULP_I_IDX): Likewise.
21349 * math/test-float128.h (ULP_IDX): Likewise.
21350 (ULP_I_IDX): Likewise.
21351
21352 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21353
21354 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
21355 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
21356 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
21357 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
21358 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
21359 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
21360 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
21361 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
21362 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
21363 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
21364 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
21365 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
21366 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
21367 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21368 (SINGLE_THREAD_BY_GLOBAL): Define.
21369 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21370 Likewise.
21371 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21372 Likewise.
21373 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21374 Likewise.
21375 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21376 Likewise.
21377 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
21378 (SINGLE_THREAD_BY_GLOBAL): Likewise.
21379 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
21380 Likewise.
21381
21382 2017-10-11 Andreas Schwab <schwab@suse.de>
21383
21384 * nis/Makefile (aux): Remove.
21385 * nscd/Makefile (aux): Add nscd_hash.
21386 (nscd-modules): Likewise.
21387 ($(objpfx)nscd): Don't depend on libnsl.
21388 * nscd/nscd_hash.c: New file.
21389 * nscd/nscd_hash.h: Likewise.
21390 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
21391 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
21392 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
21393 instead of <nis/rpcsvc/nis.h>.
21394 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
21395
21396 2017-10-11 Florian Weimer <fweimer@redhat.com>
21397
21398 [BZ #22078]
21399 Avoid large NSS buffers with many addresses, aliases.
21400 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
21401 using dynarrays and struct alloc_buffer.
21402 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
21403 (tst-nss-files-hosts-multi): Link with -ldl.
21404 * nss/tst-nss-files-hosts-multi.c: New file.
21405
21406 2017-10-11 Florian Weimer <fweimer@redhat.com>
21407
21408 [BZ #18023]
21409 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
21410 scratch_buffer. Eliminate gotos.
21411
21412 2017-10-11 Joseph Myers <joseph@codesourcery.com>
21413
21414 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
21415 libm_alias_ldouble_other.
21416 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
21417 undefine and redefine.
21418 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
21419 (exp10l): Do not define here.
21420 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
21421 (weak_alias): Undefine and redefine.
21422 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
21423 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
21424 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
21425 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
21426
21427 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
21428 [!__fma] (fma): Define using libm_alias_double.
21429 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
21430 [!__fmaf] (fmaf): Define using libm_alias_float.
21431 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
21432 (fmal): Define using libm_alias_ldouble.
21433
21434 2017-10-10 Joseph Myers <joseph@codesourcery.com>
21435
21436 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
21437 New macro.
21438 (libm_alias_double_other): Likewise.
21439 (libm_alias_double_r): Use libm_alias_double_other_r.
21440 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
21441 New macro.
21442 (libm_alias_float_other): Likewise.
21443 (libm_alias_float_r): Use libm_alias_float_other_r.
21444 * sysdeps/generic/libm-alias-float128.h
21445 (libm_alias_float128_other_r): New macro.
21446 (libm_alias_float128_other): Likewise.
21447 (libm_alias_float128_r): Use libm_alias_float128_other_r.
21448 * sysdeps/generic/libm-alias-ldouble.h
21449 (libm_alias_ldouble_other_r): New macro.
21450 (libm_alias_ldouble_other): Likewise.
21451 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
21452 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21453 (libm_alias_double_other_r): New macro.
21454 (libm_alias_double_other): Likewise.
21455 (libm_alias_double_r): Use libm_alias_double_other_r.
21456 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21457 (libm_alias_ldouble_other_r): New macro.
21458 (libm_alias_ldouble_other): Likewise.
21459 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
21460 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
21461 [!USE_AS_COMPAT]: Use libm_alias_double_other.
21462 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
21463 [!USE_AS_COMPAT]: Use libm_alias_float_other.
21464 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
21465 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
21466 * math/w_exp2f.c: Use libm_alias_float_other.
21467 * math/w_expf.c: Likewise.
21468 * math/w_log2f.c: Likewise.
21469 * math/w_logf.c: Likewise.
21470 * math/w_powf.c: Likewise.
21471 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
21472 [!__exp2f]: Use libm_alias_float_other.
21473 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
21474 [!__expf]: Use libm_alias_float_other.
21475 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
21476 [!__log2f]: Use libm_alias_float_other.
21477 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
21478 [!__logf]: Use libm_alias_float_other.
21479 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
21480 [!__powf]: Use libm_alias_float_other.
21481
21482 2017-10-10 Florian Weimer <fweimer@redhat.com>
21483
21484 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
21485 function.
21486 (_nss_files_gethostbyname3_r): Call it.
21487
21488 2017-10-09 Joseph Myers <joseph@codesourcery.com>
21489
21490 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
21491 error. Remove default definition of declare_mgen_alias.
21492 [!declare_mgen_alias_r]: Likewise.
21493 * sysdeps/generic/math-type-macros-double.h
21494 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
21495 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
21496 (declare_mgen_alias_r): Likewise.
21497 * sysdeps/generic/math-type-macros-float128.h
21498 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
21499 * sysdeps/generic/math-type-macros-ldouble.h
21500 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
21501 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
21502 macro.
21503 (declare_mgen_alias_r_s): Likewise.
21504 (declare_mgen_alias_r): Likewise.
21505 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
21506 (lgamma_r): Define using libm_alias_double_r.
21507 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
21508 (lgammaf_r): Define using libm_alias_float_r.
21509 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
21510 (lgammal_r): Define using libm_alias_ldouble_r.
21511 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
21512 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
21513
21514 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21515
21516 * lib/glob.c (__glob_pattern_type): Remove now-spurious
21517 extern declaration.
21518
21519 2017-10-09 Joseph Myers <joseph@codesourcery.com>
21520
21521 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
21522
21523 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
21524
21525 [BZ #21326]
21526 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
21527 [__cplusplus >= 201103] (__USE_ISOC99): Define.
21528 * math/Makefile (test-math-cxx11): New test.
21529 * math/test-math-cxx11.cc: New file.
21530
21531 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
21532
21533 * login/openpty.c (openpty): Close slave pty file descriptor on error.
21534
21535 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
21536 call to allocate the slave pty file descriptor.
21537
21538 2017-10-06 Joseph Myers <joseph@codesourcery.com>
21539
21540 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
21541 [!__fma] (fma): Define using libm_alias_double.
21542 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
21543 [!__fma] (fma): Define using libm_alias_double.
21544
21545 * sysdeps/ieee754/float128/float128_private.h: Include
21546 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
21547 (libm_alias_ldouble_r): Undefine and redefine.
21548 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
21549 <libm-alias-ldouble.h>.
21550 (asinhl): Define using libm_alias_ldouble.
21551 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
21552 <libm-alias-ldouble.h>.
21553 (atanl): Define using libm_alias_ldouble.
21554 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
21555 <libm-alias-ldouble.h>.
21556 (cbrtl): Define using libm_alias_ldouble.
21557 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
21558 <libm-alias-ldouble.h>.
21559 (ceill): Define using libm_alias_ldouble.
21560 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
21561 <libm-alias-ldouble.h>.
21562 (copysignl): Define using libm_alias_ldouble.
21563 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
21564 <libm-alias-ldouble.h>.
21565 (cosl): Define using libm_alias_ldouble.
21566 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
21567 <libm-alias-ldouble.h>.
21568 (erfl): Define using libm_alias_ldouble.
21569 (erfcl): Likewise.
21570 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
21571 <libm-alias-ldouble.h>.
21572 (expm1l): Define using libm_alias_ldouble.
21573 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
21574 <libm-alias-ldouble.h>.
21575 (fabsl): Define using libm_alias_ldouble.
21576 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
21577 <libm-alias-ldouble.h>.
21578 (floorl): Define using libm_alias_ldouble.
21579 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
21580 <libm-alias-ldouble.h>.
21581 (fmal): Define using libm_alias_ldouble.
21582 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
21583 <libm-alias-ldouble.h>.
21584 (frexpl): Define using libm_alias_ldouble.
21585 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
21586 libm_alias_ldouble.
21587 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
21588 <libm-alias-ldouble.h>.
21589 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
21590 libm_alias_ldouble.
21591 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
21592 <libm-alias-ldouble.h>.
21593 (getpayloadl): Define using libm_alias_ldouble.
21594 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
21595 <libm-alias-ldouble.h>.
21596 (llrintl): Define using libm_alias_ldouble.
21597 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
21598 <libm-alias-ldouble.h>.
21599 (llroundl): Define using libm_alias_ldouble.
21600 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
21601 <libm-alias-ldouble.h>.
21602 (logbl): Define using libm_alias_ldouble.
21603 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
21604 <libm-alias-ldouble.h>.
21605 (lrintl): Define using libm_alias_ldouble.
21606 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
21607 <libm-alias-ldouble.h>.
21608 (lroundl): Define using libm_alias_ldouble.
21609 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
21610 <libm-alias-ldouble.h>.
21611 (modfl): Define using libm_alias_ldouble.
21612 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
21613 <libm-alias-ldouble.h>.
21614 (nearbyintl): Define using libm_alias_ldouble.
21615 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
21616 <libm-alias-ldouble.h>.
21617 (nextafterl): Define using libm_alias_ldouble.
21618 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
21619 <libm-alias-ldouble.h>.
21620 (nextupl): Define using libm_alias_ldouble.
21621 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
21622 <libm-alias-ldouble.h>.
21623 (remquol): Define using libm_alias_ldouble.
21624 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
21625 <libm-alias-ldouble.h>.
21626 (rintl): Define using libm_alias_ldouble.
21627 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
21628 <libm-alias-ldouble.h>.
21629 (roundevenl): Define using libm_alias_ldouble.
21630 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
21631 <libm-alias-ldouble.h>.
21632 (roundl): Define using libm_alias_ldouble.
21633 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
21634 using libm_alias_ldouble.
21635 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
21636 <libm-alias-ldouble.h>.
21637 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
21638 Define using libm_alias_ldouble.
21639 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
21640 <libm-alias-ldouble.h>.
21641 (sincosl): Define using libm_alias_ldouble.
21642 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
21643 <libm-alias-ldouble.h>.
21644 (sinl): Define using libm_alias_ldouble.
21645 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
21646 <libm-alias-ldouble.h>.
21647 (tanhl): Define using libm_alias_ldouble.
21648 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
21649 <libm-alias-ldouble.h>.
21650 (tanl): Define using libm_alias_ldouble.
21651 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
21652 <libm-alias-ldouble.h>.
21653 (totalorderl): Define using libm_alias_ldouble.
21654 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
21655 <libm-alias-ldouble.h>.
21656 (totalordermagl): Define using libm_alias_ldouble.
21657 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
21658 <libm-alias-ldouble.h>.
21659 (truncl): Define using libm_alias_ldouble.
21660 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
21661 libm_alias_ldouble.
21662 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
21663 libm_alias_ldouble.
21664 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
21665 <libm-alias-ldouble.h>.
21666 (weak_alias): Do not undefine and redefine.
21667 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21668 (copysignl): Define with long_double_symbol only if [IS_IN
21669 (libc)].
21670 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
21671 <libm-alias-ldouble.h>.
21672 (weak_alias): Do not undefine and redefine.
21673 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21674 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
21675 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
21676 <libm-alias-ldouble.h>.
21677 (weak_alias): Do not undefine and redefine.
21678 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
21679 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
21680 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
21681 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
21682 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
21683 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
21684 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
21685 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
21686 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
21687 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
21688 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
21689 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
21690 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
21691 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
21692 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
21693 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
21694 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
21695 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
21696 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
21697 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
21698 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
21699 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
21700 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
21701 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
21702 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
21703 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
21704
21705 2017-10-06 Carlos O'Donell <carlos@redhat.com>
21706
21707 [BZ #22111]
21708 * malloc/malloc.c (tcache_shutting_down): Use bool type.
21709 (tcache_thread_freeres): Set tcache_shutting_down before
21710 freeing the tcache.
21711 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
21712 * malloc/tst-malloc-tcache-leak.c: New file.
21713
21714 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21715
21716 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
21717 back to powerpc32 file.
21718 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
21719 (memrchr): Add __memrchr_power8 to ifunc list.
21720 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
21721 extra bytes for unaligned inputs.
21722
21723 2017-10-06 Joseph Myers <joseph@codesourcery.com>
21724
21725 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
21726 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
21727 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
21728 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
21729 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
21730
21731 2017-10-05 Joseph Myers <joseph@codesourcery.com>
21732
21733 * sysdeps/arm/libm-test-ulps: Update.
21734
21735 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
21736 <libm-alias-ldouble.h>.
21737 (asinhl): Define using libm_alias_ldouble.
21738 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
21739 <libm-alias-ldouble.h>.
21740 (cbrtl): Define using libm_alias_ldouble.
21741 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
21742 <libm-alias-ldouble.h>.
21743 (copysignl): Define using libm_alias_ldouble.
21744 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
21745 <libm-alias-ldouble.h>.
21746 (cosl): Define using libm_alias_ldouble.
21747 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
21748 <libm-alias-ldouble.h>.
21749 (erfl): Define using libm_alias_ldouble.
21750 (erfcl): Likewise.
21751 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
21752 <libm-alias-ldouble.h>.
21753 (fmal): Define using libm_alias_ldouble.
21754 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
21755 <libm-alias-ldouble.h>.
21756 (frexpl): Define using libm_alias_ldouble.
21757 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
21758 libm_alias_ldouble.
21759 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
21760 <libm-alias-ldouble.h>.
21761 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
21762 libm_alias_ldouble.
21763 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
21764 <libm-alias-ldouble.h>.
21765 (getpayloadl): Define using libm_alias_ldouble.
21766 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
21767 <libm-alias-ldouble.h>.
21768 (llrintl): Define using libm_alias_ldouble.
21769 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
21770 <libm-alias-ldouble.h>.
21771 (llroundl): Define using libm_alias_ldouble.
21772 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
21773 <libm-alias-ldouble.h>.
21774 (lrintl): Define using libm_alias_ldouble.
21775 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
21776 <libm-alias-ldouble.h>.
21777 (lroundl): Define using libm_alias_ldouble.
21778 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
21779 <libm-alias-ldouble.h>.
21780 (modfl): Define using libm_alias_ldouble.
21781 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
21782 <libm-alias-ldouble.h>.
21783 (nextupl): Define using libm_alias_ldouble.
21784 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
21785 <libm-alias-ldouble.h>.
21786 (remquol): Define using libm_alias_ldouble.
21787 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
21788 <libm-alias-ldouble.h>.
21789 (roundevenl): Define using libm_alias_ldouble.
21790 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
21791 <libm-alias-ldouble.h>.
21792 (roundl): Define using libm_alias_ldouble.
21793 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
21794 using libm_alias_ldouble.
21795 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
21796 <libm-alias-ldouble.h>.
21797 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
21798 <libm-alias-ldouble.h>.
21799 (setpayloadsigl): Define using libm_alias_ldouble.
21800 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
21801 <libm-alias-ldouble.h>.
21802 (sincosl): Define using libm_alias_ldouble.
21803 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
21804 <libm-alias-ldouble.h>.
21805 (sinl): Define using libm_alias_ldouble.
21806 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
21807 <libm-alias-ldouble.h>.
21808 (tanhl): Define using libm_alias_ldouble.
21809 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
21810 <libm-alias-ldouble.h>.
21811 (tanl): Define using libm_alias_ldouble.
21812 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
21813 <libm-alias-ldouble.h>.
21814 (totalorderl): Define using libm_alias_ldouble.
21815 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
21816 <libm-alias-ldouble.h>.
21817 (totalordermagl): Define using libm_alias_ldouble.
21818 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
21819 libm_alias_ldouble.
21820 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
21821 libm_alias_ldouble.
21822
21823 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
21824
21825 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
21826 memmove_falkor.
21827 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21828 (__libc_ifunc_impl_list): Likewise.
21829 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
21830 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
21831
21832 * benchtests/bench-memmove-walk.c: New file.
21833 * benchtests/Makefile (string-benchset): Add it.
21834
21835 * benchtests/bench-memset-walk.c: New file.
21836 * benchtests/Makefile (string-benchset): Add it.
21837
21838 * benchtests/bench-memcpy-walk.c: New file.
21839 * benchtests/Makefile (string-benchset): Add it.
21840
21841 2017-10-05 Florian Weimer <fweimer@redhat.com>
21842
21843 nscd: Eliminate compilation time dependency in the build output.
21844 * nscd/nscd_stat.c (STATDATA_VERSION)
21845 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
21846 (STATDATA_VERSION_FULL): New macro definitions.
21847 (compilation): Remove.
21848 (struct statdata): Adjust version member.
21849 (send_stats): Set version from STATDATA_VERSION_FULL.
21850 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
21851
21852 2017-10-05 Joseph Myers <joseph@codesourcery.com>
21853
21854 * configure.ac (--enable-add-ons): Remove option.
21855 (machine): Do not mention add-ons in comment.
21856 (LIBC_PRECONFIGURE): Likewise.
21857 (add_ons): Remove variable and sanity checks and logic to locate
21858 add-ons.
21859 (add_ons_automatic): Remove variable.
21860 (configured_add_ons): Likewise.
21861 (add_ons_sfx): Likewise.
21862 (add_ons_pfx): Likewise.
21863 (add_on_subdirs): Likewise.
21864 (sysnames_add_ons): Likewise. Remove loop over add-ons and
21865 consideration of add-ons in Implies handling.
21866 (sysdeps_add_ons): Likewise.
21867 * configure: Regenerated.
21868 * libidn/configure.ac: Remove.
21869 * libidn/configure: Likewise.
21870 * sysdeps/unix/inet/configure.ac: New file.
21871 * sysdeps/unix/inet/configure: New generated file.
21872 * sysdeps/unix/inet/Subdirs: Add libidn.
21873 * Makeconfig (sysdeps-srcdirs): Remove variable.
21874 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
21875 ($(common-objpfx)config.status): Do not depend on add-on files.
21876 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
21877 comment.
21878 (all-subdirs): Do not include $(add-on-subdirs).
21879 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
21880 * config.make.in (add-ons): Remove variable.
21881 (add-on-subdirs): Likewise.
21882 (sysdeps-add-ons): Likewise.
21883 * manual/Makefile (add-chapters): Remove.
21884 ($(objpfx)texis): Do not depend on $(add-chapters).
21885 (nonexamples): Do not handle $(add-chapters).
21886 (examples): Do not handle $(add-ons).
21887 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
21888 libc-texinfo.sh.
21889 * manual/install.texi (Installation): Do not mention add-ons.
21890 (--enable-add-ons): Do not document configure option.
21891 * INSTALL: Regenerated.
21892 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
21893 * manual/maint.texi (Hierarchy Conventions): Do not mention
21894 add-ons.
21895 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
21896 --enable-add-ons.
21897 * scripts/gen-sorted.awk: Do not handle Subdirs files from
21898 add-ons.
21899 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
21900 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
21901
21902 2017-10-05 Andreas Schwab <schwab@suse.de>
21903
21904 [BZ #15142]
21905 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
21906 (_IO_flush_all_lockp): Always lock list_all_lock.
21907 (_IO_flush_all_linebuffered): Likewise.
21908 (_IO_unbuffer_all): Likewise.
21909
21910 2017-10-05 Florian Weimer <fweimer@redhat.com>
21911
21912 [BZ #15436]
21913 Do not flush stdio streams on abort.
21914 * stdlib/abort.c (fflush): Remove macro definition.
21915 (abort): Remove stages related to stdio flushing.
21916
21917 2017-10-05 Florian Weimer <fweimer@redhat.com>
21918
21919 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
21920
21921 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
21922
21923 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21924
21925 2017-10-05 Florian Weimer <fweimer@redhat.com>
21926
21927 * support/support_format_hostent.c (support_format_hostent): Add
21928 more error information for NETDB_INTERNAL.
21929
21930 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
21931
21932 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
21933 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
21934 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
21935 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
21936 AC_DEFINE if multi-arch is enabled.
21937 * sysdeps/i386/configure: Regenerated.
21938
21939 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
21940
21941 * Makeconfig (+link-static-before-libc): Use
21942 $(DEFAULT-LDFLAGS-$(@F)).
21943 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
21944 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
21945 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
21946
21947 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
21948
21949 * elf/Makefile (tests): Add tst-main1.
21950 (modules-names): Add tst-main1mod.
21951 ($(objpfx)tst-main1): New.
21952 (CRT-tst-main1): Likewise.
21953 (LDFLAGS-tst-main1): Likewise.
21954 (LDLIBS-tst-main1): Likewise.
21955 (tst-main1mod.so-no-z-defs): Likewise.
21956 * elf/tst-main1.c: New file.
21957 * elf/tst-main1mod.c: Likewise.
21958
21959 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
21960
21961 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
21962
21963 2017-10-04 Joseph Myers <joseph@codesourcery.com>
21964
21965 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
21966 (fma): Define using libm_alias_double.
21967 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
21968 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
21969 <math_ldbl_opt.h>.
21970 (fmal): Do not define as compat symbol here.
21971 * sysdeps/alpha/fpu/s_fma.c: New file.
21972
21973 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
21974
21975 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
21976
21977 2017-10-04 Joseph Myers <joseph@codesourcery.com>
21978
21979 [BZ #22229]
21980 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21981 <math_ldbl_opt.h>
21982 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
21983 and libc.
21984 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
21985 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21986 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
21987 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
21988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21989 Include <math_ldbl_opt.h>
21990 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
21991 and libc.
21992 (compat_symbol): Undefine and redefine.
21993 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21994 <math_ldbl_opt.h>
21995 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21996 (compat_symbol): Undefine and redefine.
21997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
21998 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
21999 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
22000 GLIBC_2_1 for libm.
22001 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
22002 GLIBC_2.0 copysignl symbol.
22003 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
22004 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
22005
22006 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
22007
22008 2017-10-04 Florian Weimer <fweimer@redhat.com>
22009
22010 * scripts/check-local-headers.sh: Ignore nspr4 header file
22011 directory in addition to nspr.
22012
22013 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
22014
22015 [BZ #17956]
22016 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
22017 * configure: Regenerate.
22018 * crypt/Makefile (nss-cpp-flags): New variable.
22019 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
22020 (CPPFLAGS-md5-crypt.c): Use it.
22021 * scripts/check-local-headers.sh: Ignore nspr header file
22022 directory.
22023
22024 2017-10-04 Andreas Schwab <schwab@suse.de>
22025
22026 * nis/Makefile (services): Remove compat.
22027 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
22028 ($(objpfx)libnss_compat.so): Remove rule.
22029 * nis/Versions (libnss_compat): Remove.
22030 * nss/Makefile (services): Add compat.
22031 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
22032 * nss/Versions (libnss_compat): Define.
22033 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
22034 Don't include <rpc/types.h>. Replace bool_t by bool.
22035 * nss/nss_compat/compat-initgroups.c: Likewise.
22036 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
22037 instead of <rpcsrv/ypclnt.h>.
22038 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
22039 yp_get_default_domain.
22040 * nss/nss_compat/compat-pwd.c: Likewise.
22041 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
22042 yp_get_default_domain.
22043 * nss/nss_compat/nisdomain.c: New file.
22044 * nss/nss_compat/nisdomain.h: Likewise.
22045
22046 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22047
22048 [BZ #22244]
22049 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
22050 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
22051
22052 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22053
22054 [BZ #22243]
22055 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
22056 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
22057
22058 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22059
22060 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
22061 "movl main@GOTOFF(%ebx), %eax".
22062
22063 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22064
22065 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
22066 allow undefined _DYNAMIC in PIE libc.a.
22067 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
22068 Likewse.
22069
22070 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22071
22072 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
22073 check _DYNAMIC.
22074
22075 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22076
22077 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
22078 check _DYNAMIC.
22079
22080 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22081
22082 * math/test-math-iscanonical.cc (error): Replace bool with int.
22083
22084 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22085
22086 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
22087 (modf): Define using libm_alias_double, only if [!__modf].
22088 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
22089 <libm-alias-double.h>.
22090 (modf): Define using libm_alias_double, only if [!__modf].
22091 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
22092 compat symbol here.
22093 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
22094 (weak_alias): Do not undefine and redefine.
22095 (strong_alias): Likewise.
22096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
22097 (weak_alias): Likewise.
22098 (strong_alias): Likewise.
22099
22100 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
22101 (logb): Define using libm_alias_double, only if [!__logb].
22102 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
22103 <libm-alias-double.h>.
22104 (logb): Define using libm_alias_double, only if [!__logb].
22105 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
22106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
22107 (weak_alias): Do not undefine and redefine.
22108 (strong_alias): Likewise.
22109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
22110 (weak_alias): Likewise.
22111 (strong_alias): Likewise.
22112
22113 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22114
22115 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
22116 Check SHARED instead PIC.
22117
22118 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22119
22120 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
22121 [!__fmaf] (fmaf): Define using libm_alias_float.
22122
22123 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
22124 (frexp): Define using libm_alias_double.
22125 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
22126 <libm-alias-double.h>.
22127 (frexp): Define using libm_alias_double.
22128 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
22129 compat symbol here.
22130
22131 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
22132
22133 [BZ #22235]
22134 * math/math.h: Trivial fix for unbalanced parentheses in comment.
22135 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
22136 (CFLAGS-test-math-iscanonical.cc): New variable.
22137 * math/test-math-iscanonical.cc: New file.
22138 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
22139 Provide a C++ implementation based on function overloading,
22140 rather than using __MATH_TG, which uses C-only builtins.
22141 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
22142 Likewise.
22143 * sysdeps/powerpc/powerpc64le/Makefile
22144 (CFLAGS-test-math-iscanonical.cc): New variable.
22145
22146 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22147
22148 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
22149 (ceil): Define using libm_alias_double.
22150 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
22151 (floor): Define using libm_alias_double.
22152 * sysdeps/ieee754/dbl-64/s_llround.c: Include
22153 <libm-alias-double.h>.
22154 (llround): Define using libm_alias_double.
22155 * sysdeps/ieee754/dbl-64/s_lround.c: Include
22156 <libm-alias-double.h>.
22157 (lround): Define using libm_alias_double.
22158 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
22159 <libm-alias-double.h>.
22160 (nearbyint): Define using libm_alias_double.
22161 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
22162 <libm-alias-double.h>.
22163 (remquo): Define using libm_alias_double.
22164 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
22165 (rint): Define using libm_alias_double.
22166 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
22167 (round): Define using libm_alias_double.
22168 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
22169 (trunc): Define using libm_alias_double.
22170 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
22171 <libm-alias-double.h>.
22172 (ceil): Define using libm_alias_double.
22173 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
22174 <libm-alias-double.h>.
22175 (floor): Define using libm_alias_double.
22176 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
22177 <libm-alias-double.h>.
22178 (llround): Define using libm_alias_double.
22179 [_LP64] (lround): Likewise.
22180 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
22181 <libm-alias-double.h>.
22182 [!_LP64] (lround): Define using libm_alias_double.
22183 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
22184 <libm-alias-double.h>.
22185 (nearbyint): Define using libm_alias_double.
22186 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
22187 <libm-alias-double.h>.
22188 (remquo): Define using libm_alias_double.
22189 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
22190 <libm-alias-double.h>.
22191 (rint): Define using libm_alias_double.
22192 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
22193 <libm-alias-double.h>.
22194 (round): Define using libm_alias_double.
22195 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
22196 <libm-alias-double.h>.
22197 (trunc): Define using libm_alias_double.
22198 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
22199 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
22200 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
22201 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
22202 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
22203 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
22204 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
22205 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
22206 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
22207
22208 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22209
22210 * math/w_remainder.c: New file.
22211 * math/w_remainderf.c: New file.
22212 * math/w_remainderl.c: New file.
22213
22214 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22215
22216 * elf/rtld.c (BOOTSTRAP_MAP): New.
22217 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
22218 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22219 Likewise.
22220 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22221 Likewise.
22222 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
22223 Likewise.
22224
22225 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
22226
22227 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
22228 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
22229 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
22230 rtld_hidden_data_ver): Define to empty.
22231 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
22232 __assert_perror_fail): Likewise.
22233 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22234 (__rewinddir): Likewise.
22235 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22236 (__profile_frequency): Likewise.
22237 * include/setjmp.h (__sigsetjmp): Likewise.
22238 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
22239 __libc_sigaction): Likewise.
22240 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
22241 not set hidden attribute.
22242 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
22243 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
22244 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
22245 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
22246 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
22247 __fxstatat64): Likewise.
22248 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22249 (__uname): Likewise.
22250 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
22251 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
22252 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
22253 (NO_RTLD_HIDDEN): Set.
22254 * sysdeps/mach/hurd/configure: Refresh.
22255 * config.h.in: Refresh.
22256
22257 2017-10-02 Joseph Myers <joseph@codesourcery.com>
22258
22259 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
22260 (atan): Define using libm_alias_double.
22261 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
22262 (tan): Define using libm_alias_double.
22263 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
22264 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
22265
22266 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
22267 define as weak alias of __atan. Do not define any aliases if
22268 [__atan].
22269 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
22270 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
22271 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
22272 as weak alias of __tan. Do not define any aliases if [__tan].
22273 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
22274 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
22275 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
22276 __atan.
22277 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
22278 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
22279 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
22280 and define as weak alias of __atan.
22281 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
22282 __atan.
22283 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
22284 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
22285 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
22286 define as weak alias of __tan.
22287
22288 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22289
22290 * math/w_lgamma.c: New file.
22291 * math/w_lgammaf.c: New file.
22292 * math/w_lgammal.c: New file.
22293
22294 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22295
22296 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
22297 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
22298 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
22299 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
22300 * sysdeps/ieee754/flt-32/w_logf.c: New file.
22301 * sysdeps/ieee754/flt-32/w_powf.c: New file.
22302 * sysdeps/i386/fpu/w_log2f.c: New file.
22303 * sysdeps/i386/fpu/w_logf.c: New file.
22304 * sysdeps/i386/fpu/w_powf.c: New file.
22305 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
22306 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
22307 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
22308
22309 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22310 H.J. Lu <hongjiu.lu@intel.com>
22311
22312 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
22313 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
22314 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
22315 * sysdeps/ieee754/flt-32/w_expf.c: New file.
22316 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
22317 the new expf code.
22318 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
22319 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
22320 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
22321 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
22322 * sysdeps/i386/fpu/w_exp2f.c: New file.
22323 * sysdeps/i386/fpu/w_expf.c: New file.
22324 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
22325 * sysdeps/x86_64/fpu/w_expf.c: New file.
22326
22327 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22328
22329 * math/Versions (logf): New libm symbol at GLIBC_2.27.
22330 (log2f): Likewise.
22331 (powf): Likewise.
22332 * math/w_log2f.c: New file.
22333 * math/w_logf.c: New file.
22334 * math/w_powf.c: New file.
22335 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
22336 * math/w_logf_compat.c (__logf_compat): Likewise.
22337 * math/w_powf_compat.c (__powf_compat): Likewise.
22338 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
22339 * sysdeps/ia64/fpu/e_logf.S: Likewise.
22340 * sysdeps/ia64/fpu/e_powf.S: Likewise.
22341 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
22342 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22343 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22344 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22345 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22346 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22347 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22348 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22349 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22350 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22351 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22352 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22354 Likewise.
22355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22356 Likewise.
22357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22358 Likewise.
22359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22360 Likewise.
22361 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22362 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22363 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22364 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22365 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22366 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22367 Likewise.
22368 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22369 Likewise.
22370 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22371 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22372 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22373
22374 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22375
22376 * sysdeps/powerpc/powerpc64/multiarch/Makefile
22377 (sysdep_routines): Add memrchr_power8.
22378 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
22379 (memrchr): Add __memrchr_power8 to list of memrchr functions.
22380 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
22381 New file.
22382 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
22383 (memrchr): Add __memrchr_power8 to ifunc list.
22384 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
22385
22386 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22387
22388 [BZ #18822]
22389 * sysdeps/unix/sysv/linux/posix_fadvise64.c
22390 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
22391 libc_hidden_def.
22392 * sysdeps/unix/sysv/linux/posix_fallocate64.c
22393 (__posix_fallocate64_l64): Likewise.
22394
22395 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22396
22397 [BZ #18822]
22398 * sysdeps/unix/sysv/linux/sched_setaffinity.c
22399 (__sched_setaffinity_new): Add libc_hidden_proto and
22400 libc_hidden_def.
22401
22402 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22403
22404 [BZ #18822]
22405 * include/glob.h (__glob64): Add libc_hidden_proto.
22406 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
22407 libc_hidden_def.
22408
22409 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22410
22411 [BZ #18822]
22412 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
22413 attribute_hidden.
22414
22415 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22416
22417 [BZ #18822]
22418 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
22419
22420 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22421
22422 [BZ #18822]
22423 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
22424 libc_hidden_def.
22425
22426 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22427
22428 [BZ #18822]
22429 * csu/version.c (__libc_print_version): Add attribute_hidden.
22430
22431 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22432
22433 [BZ #18822]
22434 * include/libc-internal.h (__init_misc): Add attribute_hidden.
22435
22436 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22437
22438 [BZ #18822]
22439 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
22440
22441 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22442
22443 [BZ #18822]
22444 * nscd/nscd_helper.c (__nis_hash): New prototype.
22445
22446 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22447
22448 [BZ #18822]
22449 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
22450 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
22451 libc_hidden_def.
22452 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22453 * termios/tcgetattr.c (__tcgetattr): Likewise.
22454
22455 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22456
22457 [BZ #18822]
22458 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
22459 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
22460 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
22461 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
22462 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
22463
22464 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22465
22466 [BZ #18822]
22467 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
22468
22469 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22470
22471 [BZ #18822]
22472 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
22473 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
22474
22475 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22476
22477 [BZ #18822]
22478 * intl/hash-string.h (__hash_string): Add attribute_hidden.
22479
22480 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22481
22482 [BZ #18822]
22483 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
22484 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
22485
22486 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22487
22488 [BZ #18822]
22489 * include/ifreq.h: New file.
22490 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
22491 (__ifreq): Likewise.
22492 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
22493 (__ifreq): Likewise.
22494
22495 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22496
22497 [BZ #18822]
22498 * include/idna.h: New file.
22499 * inet/getnameinfo.c: Include <idna.h> instead of
22500 <libidn/idna.h>.
22501 (__idna_to_unicode_lzlz): Removed.
22502 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
22503 <libidn/idna.h>.
22504 (__idna_to_ascii_lz): Removed.
22505 (__idna_to_unicode_lzlz): Likewise.
22506
22507 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22508
22509 [BZ #18822]
22510 * include/plural-exp.h: New file.
22511 * intl/plural-exp.c: Include <plural-exp.h> instead of
22512 "plural-exp.h".
22513
22514 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22515
22516 [BZ #18822]
22517 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
22518 "getsourcefilter.h".
22519 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
22520 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
22521 "getsourcefilter.h".
22522 (__get_sol): Removed.
22523
22524 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22525
22526 [BZ #18822]
22527 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
22528 to ...
22529 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
22530
22531 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22532
22533 [BZ #18822]
22534 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
22535 attribute_hidden.
22536
22537 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22538
22539 [BZ #18822]
22540 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
22541
22542 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22543
22544 [BZ #18822]
22545 * include/search.h (__tdestroy): Add libc_hidden_proto.
22546 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
22547
22548 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22549
22550 [BZ #18822]
22551 * include/assert.h (__assert_fail_base): Add attribute_hidden.
22552
22553 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22554
22555 [BZ #18822]
22556 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
22557 attribute_hidden.
22558
22559 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22560
22561 [BZ #18822]
22562 * include/signal.h (__kill): Add libc_hidden_proto.
22563 (__sigblock): Likewise.
22564 (__sigprocmask): Likewise.
22565 (__sigaltstack): Likewise.
22566 * signal/kill.c (__kill): Add libc_hidden_def.
22567 * signal/sigblock.c (__sigblock): Likewise.
22568 * signal/sigprocmask.c (__sigprocmask): Likewise.
22569 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
22570 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22571 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22572 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22573 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
22574 Likewise.
22575 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22576 Likewise.
22577 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22578 (__sigprocmask): Likewise.
22579 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
22580 Likewise.
22581 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22582 (__sigprocmask): Likewise.
22583 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22584 Likewise.
22585
22586 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22587
22588 [BZ #18822]
22589 * include/string.h (__strsep): Add libc_hidden_proto.
22590 * string/strsep.c (__strsep): Add libc_hidden_def.
22591
22592 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22593
22594 [BZ #18822]
22595 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
22596 attribute_hidden.
22597 (__spawni): Likewise.
22598
22599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22600
22601 [BZ #18822]
22602 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
22603 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
22604 libc_hidden_def.
22605
22606 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22607
22608 [BZ #18822]
22609 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
22610
22611 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22612
22613 [BZ #18822]
22614 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
22615 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
22616 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
22617 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
22618 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
22619 Likewise.
22620 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
22621 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
22622
22623 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22624
22625 [BZ #18822]
22626 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
22627 (__dcigettext): Likewise.
22628
22629 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22630
22631 [BZ #18822]
22632 * include/sys/sysinfo.h (__get_nprocs_conf): Add
22633 libc_hidden_proto.
22634 (__get_nprocs): Likewise.
22635 (__get_phys_pages): Likewise.
22636 (__get_avphys_pages): Likewise.
22637 (__get_child_max): Add attribute_hidden.
22638 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
22639 (__get_nprocs): Likewise.
22640 (__get_phys_pages): Likewise.
22641 (__get_avphys_pages): Likewise.
22642 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
22643 libc_hidden_def.
22644 (__get_nprocs): Likewise.
22645 (__get_phys_pages): Likewise.
22646 (__get_avphys_pages): Likewise.
22647 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
22648 libc_hidden_def.
22649 (__get_nprocs_conf): Likewise.
22650 (__get_phys_pages): Likewise.
22651 (__get_avphys_pages): Likewise.
22652
22653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22654
22655 [BZ #18822]
22656 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
22657 attribute_hidden.
22658 (__netlink_close): Likewise.
22659 (__netlink_free_handle): Likewise.
22660 (__netlink_request): Likewise.
22661
22662 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22663
22664 [BZ #18822]
22665 * include/rpc/rpc.h (__rpc_thread_variables): Add
22666 attribute_hidden.
22667 (__rpc_thread_svc_cleanup): Likewise.
22668 (__rpc_thread_clnt_cleanup): Likewise.
22669 (__rpc_thread_key_cleanup): Likewise.
22670
22671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22672
22673 [BZ #18822]
22674 * include/sys/uio.h (__readv): Add libc_hidden_proto.
22675 (__writev): Likewise.
22676 * misc/readv.c (__readv): Add libc_hidden_def.
22677 * misc/writev.c (__writev): Likewise.
22678 * sysdeps/posix/readv.c (__readv): Likewise.
22679 * sysdeps/posix/writev.c (__writev): Likewise.
22680 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
22681 (__readv): Likewise.
22682 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
22683 (__writev): Likewise.
22684
22685 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22686
22687 [BZ #18822]
22688 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
22689 (__regcomp): Add libc_hidden_proto.
22690 (__regexec): Likewise.
22691 (__regfree): Likewise.
22692 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
22693 (__regfree): Likewise.
22694 * posix/regexec.c (__regexec): Likewise.
22695
22696 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22697
22698 [BZ #18822]
22699 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
22700 (__getutent): Likewise.
22701 (__getutid): Likewise.
22702 (__getutline): Likewise.
22703 (__pututline): Likewise.
22704 (__getutent_r): Likewise.
22705 (__getutid_r): Likewise.
22706 (__getutline_r): Likewise.
22707 (__utmpname): Add attribute_hidden.
22708 (__setutent): Likewise.
22709 (__endutent): Likewise.
22710 * login/getutent.c (__getutent): Add libc_hidden_def.
22711 * login/getutent_r.c (__getutent_r): Likewise.
22712 (__pututline): Likewise.
22713 * login/getutid.c (__getutid): Likewise.
22714 * login/getutid_r.c (__getutid_r): Likewise.
22715 * login/getutline.c (__getutline): Likewise.
22716 * login/getutline_r.c (__getutline_r): Likewise.
22717 * login/updwtmp.c (__updwtmp): Likewise.
22718
22719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22720
22721 [BZ #18822]
22722 * include/dirent.h (__opendir): Always add attribute_hidden.
22723 (__fdopendir): Likewise.
22724 (__closedir): Likewise.
22725 (__readdir): Likewise.
22726 (__readdir64): Add libc_hidden_proto.
22727 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
22728 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
22729 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
22730 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
22731 New alias.
22732
22733 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22734
22735 [BZ #18822]
22736 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
22737 * include/netdb.h (__gethostbyaddr_r): Likewise.
22738 (__gethostbyname_r): Likewise.
22739 (__gethostbyname2_r): Likewise.
22740 (__getnetbyaddr_r): Likewise.
22741 (__getnetbyname_r): Likewise.
22742 (__getservbyname_r): Likewise.
22743 (__getservbyport_r): Likewise.
22744 (__getprotobyname_r): Likewise.
22745 (__getprotobynumber_r): Likewise.
22746 (__getnetgrent_r): Likewise.
22747 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
22748 (__getrpcbynumber_r): Likewise.
22749 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
22750
22751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22752
22753 [BZ #18822]
22754 * include/stdio.h (__fcloseall): Add attribute_hidden.
22755 (__getline): Likewise.
22756 (__path_search): Likewise.
22757 (__gen_tempname): Likewise.
22758 (__libc_message): Likewise.
22759 (__flockfile): Likewise.
22760 (__funlockfile): Likewise.
22761 (__fxprintf): Likewise.
22762 (__fxprintf_nocancel): Likewise.
22763
22764 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22765
22766 [BZ #18822]
22767 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
22768 (__sgetsgent_r): Likewise.
22769
22770 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22771
22772 [BZ #18822]
22773 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
22774 (__statfs64): Likewise.
22775 (__fstatfs64): Likewise.
22776 * include/sys/statvfs.h (__statvfs64): Likewise.
22777 (__fstatvfs64): Likewise.
22778 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
22779 (__statfs_filesize_max): Likewise.
22780 (__statfs_symlinks): Likewise.
22781 (__statfs_chown_restricted): Likewise.
22782
22783 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22784
22785 [BZ #18822]
22786 * include/time.h (__tzstring): Add attribute_hidden.
22787 (__tzfile_read): Likewise.
22788 (__tzfile_compute): Likewise.
22789 (__tzfile_default): Likewise.
22790 (__tzset_parse_tz): Likewise.
22791 (__offtime): Likewise.
22792 (__asctime_r): Likewise.
22793 (__tzset): Likewise.
22794 (__tz_convert): Likewise.
22795 (__getdate_r): Likewise.
22796 (__getclktck): Likewise.
22797
22798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22799
22800 [BZ #18822]
22801 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
22802 (__nscd_unmap): Likewise.
22803 (__nscd_cache_search): Likewise.
22804 (__nscd_get_nl_timestamp): Likewise.
22805 (__nscd_getpwnam_r): Likewise.
22806 (__nscd_getpwuid_r): Likewise.
22807 (__nscd_getgrnam_r): Likewise.
22808 (__nscd_getgrgid_r): Likewise.
22809 (__nscd_gethostbyname_r): Likewise.
22810 (__nscd_gethostbyname2_r): Likewise.
22811 (__nscd_gethostbyaddr_r): Likewise.
22812 (__nscd_getai): Likewise.
22813 (__nscd_getgrouplist): Likewise.
22814 (__nscd_getservbyname_r): Likewise.
22815 (__nscd_getservbyport_r): Likewise.
22816 (__nscd_innetgr): Likewise.
22817 (__nscd_setnetgrent): Likewise.
22818
22819 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22820
22821 [BZ #18822]
22822 * include/gmp.h: Declare internal functions only if _ISOMAC is
22823 undefined.
22824 (__mpn_extract_double): Add attribute_hidden.
22825 (__mpn_extract_long_double): Likewise.
22826 (__mpn_extract_float128): Likewise.
22827 (__mpn_construct_float): Likewise.
22828 (__mpn_construct_double): Likewise.
22829 (__mpn_construct_long_double): Likewise.
22830 (__mpn_construct_float128): Likewise.
22831 (mpn_add_1): Likewise.
22832 (mpn_addmul_1): Likewise.
22833 (mpn_add_n): Likewise.
22834 (mpn_cmp): Likewise.
22835 (mpn_divrem): Likewise.
22836 (mpn_lshift): Likewise.
22837 (mpn_mul): Likewise.
22838 (mpn_mul_1): Likewise.
22839 (mpn_rshift): Likewise.
22840 (mpn_sub_1): Likewise.
22841 (mpn_submul_1): Likewise.
22842 (mpn_sub_n): Likewise.
22843
22844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22845
22846 [BZ #18822]
22847 * include/wchar.h (__wcsnlen): Add attribute_hidden.
22848 (__wcscat): Likewise.
22849 (__btowc): Likewise.
22850 (__wcrtomb): Likewise.
22851 (__mbsrtowcs): Likewise.
22852 (__wcsrtombs): Likewise.
22853 (__mbsnrtowcs): Likewise.
22854 (__wcsnrtombs): Likewise.
22855 (__wcsncpy): Likewise.
22856 (__wcpncpy): Likewise.
22857 (__wmemcpy): Likewise.
22858 (__wmempcpy): Likewise.
22859 (__wmemmove): Likewise.
22860 (__wcschrnul): Likewise.
22861 (__vfwscanf): Likewise.
22862 (__vswprintf): Likewise.
22863 (__fwprintf): Likewise.
22864 (__vfwprintf): Likewise.
22865
22866 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22867
22868 [BZ #18822]
22869 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
22870 (__getgrgid_r): Likewise.
22871 (__getgrnam_r): Likewise.
22872 * include/pwd.h (__getpwuid_r): Likewise.
22873 (__getpwnam_r): Likewise.
22874 (__fgetpwent_r): Likewise.
22875 * include/shadow.h (__getspnam_r): Likewise.
22876 (__sgetspent_r): Likewise.
22877 (__fgetspent_r): Likewise.
22878
22879 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22880
22881 [BZ #18822]
22882 * include/unistd.h (__access): Add attribute_hidden.
22883 (__lseek64): Likewise.
22884 (__libc_pread64): Likewise.
22885 (__pipe2): Likewise.
22886 (__sleep): Likewise.
22887 (__chdir): Likewise.
22888 (__fchdir): Likewise.
22889 (__getcwd): Likewise.
22890 (__rmdir): Likewise.
22891 (__execvpe): Likewise.
22892 (__execve): Likewise.
22893 (__setsid): Likewise.
22894 (__getuid): Likewise.
22895 (__geteuid): Likewise.
22896 (__getgid): Likewise.
22897 (__getegid): Likewise.
22898 (__getgroups): Likewise.
22899 (__group_member): Likewise.
22900 (__ttyname_r): Likewise.
22901 (__isatty): Likewise.
22902 (__readlink): Likewise.
22903 (__unlink): Likewise.
22904 (__gethostname): Likewise.
22905 (__profil): Likewise.
22906 (__getdtablesize): Likewise.
22907 (__brk): Likewise.
22908 (__ftruncate): Likewise.
22909 (__ftruncate64): Likewise.
22910
22911 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22912
22913 [BZ #18822]
22914 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
22915 * argp/argp-fs-xinl.c: Likewise.
22916 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
22917 * argp/argp-parse.c: Include <argp.h>.
22918 * argp/argp-xinl.c: Likewise.
22919 * include/argp-fmtstream.h: New file.
22920 * include/argp.h (__argp_error): Add attribute_hidden.
22921 (__argp_failure): Likewise.
22922 (__argp_input): Likewise.
22923 (__argp_state_help): Likewise.
22924
22925 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22926
22927 [BZ #18822]
22928 * include/wchar.h (____wcstof_l_internal): New prototype.
22929 (____wcstod_l_internal): Likewise.
22930 (____wcstold_l_internal): Likewise.
22931 (____wcstol_l_internal): Likewise.
22932 (____wcstoul_l_internal): Likewise.
22933 (____wcstoll_l_internal): Likewise.
22934 (____wcstoull_l_internal): Likewise.
22935 (____wcstof128_l_internal): Likewise.
22936 * sysdeps/ieee754/float128/wcstof128.c
22937 (____wcstof128_l_internal): Removed.
22938 * sysdeps/ieee754/float128/wcstof128_l.c
22939 (____wcstof128_l_internal): Likewise.
22940 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
22941 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
22942 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
22943 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
22944 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
22945 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
22946 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
22947 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
22948 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
22949 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
22950
22951 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22952
22953 [BZ #18822]
22954 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
22955 instead of <sys/statvfs.h>.
22956 (__internal_statvfs): Removed.
22957 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
22958 instead of <sys/statvfs.h>.
22959 (__internal_statvfs64): Removed.
22960 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
22961 "internal_statvfs.h" instead of <sys/statvfs.h>.
22962 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
22963 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
22964 instead of <sys/statvfs.h>.
22965 (__internal_statvfs): Removed.
22966 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
22967 instead of <sys/statvfs.h>.
22968 (__internal_statvfs64): Removed.
22969
22970 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
22971
22972 [BZ #18822]
22973 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
22974 (__gconv_close): Likewise.
22975 (__gconv): Likewise.
22976 (__gconv_find_transform): Likewise.
22977 (__gconv_lookup_cache): Likewise.
22978 (__gconv_compare_alias_cache): Likewise.
22979 (__gconv_load_cache): Likewise.
22980 (__gconv_get_path): Likewise.
22981 (__gconv_close_transform): Likewise.
22982 (__gconv_release_cache): Likewise.
22983 (__gconv_find_shlib): Likewise.
22984 (__gconv_release_shlib): Likewise.
22985 (__gconv_get_builtin_trans): Likewise.
22986 (__gconv_compare_alias): Likewise.
22987 * include/dlfcn.h (_dlerror_run): Likewise.
22988 * include/stdio.h (__fortify_fail_abort): Likewise.
22989 * include/time.h (__tz_compute): Likewise.
22990 (__strptime_internal): Likewise.
22991 * intl/gettextP.h (_nl_find_domain): Likewise.
22992 (_nl_load_domain): Likewise.
22993 (_nl_find_msg): Likewise.
22994 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
22995 (EXTRACT_PLURAL_EXPRESSION): Likewise.
22996 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
22997 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
22998 (__gai_find_request): Likewise.
22999 (__gai_remove_request): Likewise.
23000 (__gai_notify): Likewise.
23001 (__gai_notify_only): Likewise.
23002 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
23003 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
23004 (_dl_non_dynamic_init): Likewise.
23005 (_dl_aux_init): Likewise.
23006 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
23007 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
23008 Likewise.
23009 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
23010 (__wcsmbs_clone_conv): Likewise.
23011 (__wcsmbs_named_conv): Likewise.
23012
23013 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23014
23015 [BZ #18822]
23016 * include/stdlib.h (__random): Add attribute_hidden.
23017 (__random_r): Likewise.
23018 (__srandom_r): Likewise.
23019 (__initstate_r): Likewise.
23020 (__setstate_r): Likewise.
23021 (__erand48_r): Likewise.
23022 (__nrand48_r): Likewise.
23023 (__jrand48_r): Likewise.
23024 (__srand48_r): Likewise.
23025 (__seed48_r): Likewise.
23026 (__lcong48_r): Likewise.
23027 (__drand48_iterate): Likewise.
23028 (__setenv): Likewise.
23029 (__unsetenv): Likewise.
23030 (__clearenv): Likewise.
23031 (__ptsname_r): Likewise.
23032 (__posix_openpt): Likewise.
23033 (__add_to_environ): Likewise.
23034 (__realpath): Add libc_hidden_proto.
23035 (__ecvt_r): Likewise.
23036 (__fcvt_r): Likewise.
23037 (__qecvt_r): Likewise.
23038 (__qfcvt_r): Likewise.
23039 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
23040 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
23041
23042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23043
23044 [BZ #18822]
23045 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
23046 * include/time.h (__mktime_internal): Likewise.
23047 * libio/iolibio.h (__fopen_internal): Likewise.
23048
23049 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
23050
23051 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
23052 pointer in frame.
23053 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
23054 Correct offset used to restore PIC register.
23055
23056 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
23057
23058 [BZ libc/22165]
23059 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
23060 code to load address of __getcontext_ret when generating PIC code.
23061
23062 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
23063
23064 * elf/Makefile (tests-static-internal): Add
23065 tst-tls1-static-non-pie.
23066 (LDFLAGS-tst-tls1-static-non-pie): New.
23067 * elf/tst-tls1-static-non-pie.c: New file.
23068
23069 2017-09-29 Joseph Myers <joseph@codesourcery.com>
23070
23071 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
23072 (asinh): Define using libm_alias_double.
23073 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
23074 (cbrt): Define using libm_alias_double.
23075 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
23076 <libm-alias-double.h>.
23077 (copysign): Define using libm_alias_double.
23078 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
23079 (erf): Define using libm_alias_double.
23080 (erfc): Likewise.
23081 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
23082 (expm1): Define using libm_alias_double.
23083 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
23084 (fabs): Define using libm_alias_double.
23085 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
23086 libm_alias_double.
23087 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
23088 <libm-alias-double.h>.
23089 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
23090 libm_alias_double.
23091 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
23092 <libm-alias-double.h>.
23093 (getpayload): Define using libm_alias_double.
23094 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
23095 <libm-alias-double.h>.
23096 (llrint): Define using libm_alias_double.
23097 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
23098 (lrint): Define using libm_alias_double.
23099 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
23100 <libm-alias-double.h>.
23101 (nextup): Define using libm_alias_double.
23102 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
23103 <libm-alias-double.h>.
23104 (roundeven): Define using libm_alias_double.
23105 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
23106 libm_alias_double.
23107 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
23108 <libm-alias-double.h>.
23109 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
23110 using libm_alias_double.
23111 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
23112 (cos): Define using libm_alias_double.
23113 (sin): Likewise.
23114 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
23115 <libm-alias-double.h>.
23116 (sincos): Define using libm_alias_double.
23117 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
23118 (tanh): Define using libm_alias_double.
23119 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
23120 <libm-alias-double.h>.
23121 (totalorder): Define using libm_alias_double.
23122 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
23123 <libm-alias-double.h>.
23124 (totalordermag): Define using libm_alias_double.
23125 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
23126 libm_alias_double.
23127 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
23128 libm_alias_double.
23129 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
23130 <libm-alias-double.h>.
23131 (getpayload): Define using libm_alias_double.
23132 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
23133 <libm-alias-double.h>.
23134 (roundeven): Define using libm_alias_double.
23135 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
23136 <libm-alias-double.h>.
23137 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
23138 <libm-alias-double.h>.
23139 (totalorder): Define using libm_alias_double.
23140 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
23141 <libm-alias-double.h>.
23142 (totalordermag): Define using libm_alias_double.
23143 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
23144 libc compat symbol here.
23145 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
23146 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
23147 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
23148 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
23149 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
23150 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
23151 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
23152 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
23153 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
23154 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
23155
23156 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23157
23158 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
23159 _dl_relocate_static_pie instead of _dl_start to compute load
23160 address in static PIE. Return 0 if _DYNAMIC is undefined for
23161 static executable.
23162
23163 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23164
23165 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
23166 _DYNAMIC is undefined for static executable.
23167
23168 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23169
23170 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
23171
23172 2017-09-29 Joseph Myers <joseph@codesourcery.com>
23173
23174 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23175
23176 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23177
23178 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
23179 (__ieee754_lgamma_r): Use fabs rather than __fabs.
23180 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
23181 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
23182 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
23183 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
23184 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
23185 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
23186 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
23187 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23188 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
23189 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
23190 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
23191 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23192 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
23193 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
23194 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
23195
23196 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23197
23198 * math/bits/cmathcalls.h (cimag): Remove inline.
23199 (creal): Remove inline.
23200 (conj): Remove inline.
23201
23202 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23203
23204 * math/Makefile (type-float-routines): Add e_powf_log2_data.
23205 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
23206 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
23207 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
23208 (issignalingf_inline): Likewise.
23209 (POWF_LOG2_TABLE_BITS): Likewise.
23210 (POWF_LOG2_POLY_ORDER): Likewise.
23211 (POWF_SCALE_BITS): Likewise.
23212 (POWF_SCALE): Likewise.
23213 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
23214 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
23215 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
23216
23217 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23218
23219 * math/Makefile (type-float-routines): Add e_log2f_data.
23220 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
23221 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
23222 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
23223 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
23224 * sysdeps/i386/fpu/e_log2f_data.c: New file.
23225 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
23226 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
23227
23228 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
23229
23230 * math/Makefile (type-float-routines): Add e_logf_data.
23231 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
23232 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
23233 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
23234 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
23235 * sysdeps/i386/fpu/e_logf_data.c: New file.
23236 * sysdeps/ia64/fpu/e_logf_data.c: New file.
23237 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
23238
23239 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
23240
23241 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
23242 undefined _DYNAMIC in PIE libc.a.
23243 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
23244 Likewse.
23245
23246 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
23247
23248 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
23249 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
23250 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
23251 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
23252 (__signbit): Remove.
23253 (__signbitl): Remove.
23254 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
23255 (__signbit): Remove.
23256 (__signbitl): Remove.
23257 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
23258 (__signbit): Remove.
23259 (__signbitl): Remove.
23260 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
23261 (__signbit): Remove.
23262 (__signbitl): Remove.
23263 * sysdeps/tile/bits/mathinline.h: Delete file.
23264 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
23265 (__signbit): Remove.
23266 (__signbitl): Remove.
23267
23268 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
23269
23270 * math/math.h: Improve handling of C99 isgreater macros.
23271 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
23272 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
23273 * sysdeps/powerpc/bits/mathinline.h: Likewise.
23274 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
23275 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
23276
23277 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
23278
23279 * sysdeps/aarch64/libm-test-ulps: Update.
23280
23281 2017-09-28 Joseph Myers <joseph@codesourcery.com>
23282
23283 [BZ #22225]
23284 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
23285 math_opt_barrier on argument when doing arithmetic on it.
23286 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
23287 Likewise. Use math_force_eval not math_opt_barrier after
23288 arithmetic.
23289 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
23290 math_opt_barrier on argument when doing arithmetic on it.
23291 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
23292 Likewise.
23293
23294 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
23295
23296 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
23297 libc_hidden_def.
23298 (__freeifaddrs): Likewise.
23299
23300 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
23301
23302 * include/dirent.h (__dirfd): New declaration.
23303 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
23304 alias.
23305 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
23306 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
23307 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
23308 * include/unistd.h (__revoke): New declaration.
23309 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
23310 alias.
23311 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
23312 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
23313 revoke.
23314 * include/dirent.h (__seekdir): New declaration.
23315 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
23316 redefine as weak alias.
23317 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
23318 of seekdir.
23319 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
23320 and use libc_hidden_def on them.
23321 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
23322 them.
23323 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
23324 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
23325 instead of getifaddrs and freeifaddrs.
23326
23327 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
23328
23329 [BZ #18822]
23330 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
23331 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
23332 (__dso_handle): Remove declaration.
23333 * dlfcn/tstatexit.c (__dso_handle): Removed.
23334 (main): Don't check __dso_handle.
23335 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
23336 (main): Don't check __dso_handle.
23337 * include/dso_handle.h: New file.
23338 * malloc/mtrace.c: Include <dso_handle.h>.
23339 (mtrace): Pass __dso_handle directly.
23340 * nptl/pthread_atfork.c: Include <dso_handle.h>.
23341 (__dso_handle): Remove declaration.
23342 (__pthread_atfork): Pass __dso_handle directly.
23343 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
23344 (__dso_handle): Removed.
23345 * posix/wordexp-test.c: Include <dso_handle.h>.
23346 (__dso_handle): Remove declaration.
23347 (__app_register_atfork): Pass __dso_handle directly.
23348 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
23349 (__dso_handle): Remove declaration.
23350 (at_quick_exit): Pass __dso_handle directly.
23351 * stdlib/atexit.c: Include <dso_handle.h>.
23352 (__dso_handle): Remove declaration.
23353 (atexit): Pass __dso_handle directly.
23354 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
23355 (__dso_handle): Removed.
23356
23357 2017-09-26 Joseph Myers <joseph@codesourcery.com>
23358
23359 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
23360 using VDSO.
23361
23362 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
23363
23364 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
23365 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
23366 values to correct default value for given type.
23367
23368 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
23369
23370 [BZ #22101]
23371 * elf/Makefile (tests): Add tst-debug1.
23372 ($(objpfx)tst-debug1): New.
23373 ($(objpfx)tst-debug1.out): Likewise.
23374 ($(objpfx)tst-debug1mod1.so): Likewise.
23375 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
23376 with p_filesz == 0.
23377 * elf/tst-debug1.c: New file.
23378
23379 2017-09-26 Joseph Myers <joseph@codesourcery.com>
23380
23381 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
23382 Define using __ifunc.
23383
23384 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23385
23386 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
23387 exp2f() values.
23388
23389 2017-09-26 Joseph Myers <joseph@codesourcery.com>
23390
23391 [BZ #22156]
23392 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
23393
23394 2017-09-26 Florian Weimer <fweimer@redhat.com>
23395
23396 * resolv/Makefile (tests-internal): Fix typo in comment.
23397
23398 2017-09-26 Florian Weimer <fweimer@redhat.com>
23399
23400 * resolv/nss_dns/dns-host.c: Fix typo in comment.
23401
23402 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23403
23404 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
23405 Use an union instead of a max_align_t array for __space,
23406 so that __space is the same size on all platforms.
23407 * malloc/scratch_buffer_grow_preserve.c
23408 (__libc_scratch_buffer_grow_preserve): Likewise.
23409
23410 [BZ #22183]
23411 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
23412 version to 2.
23413 * posix/Makefile (routines): Add glob-lstat-compat and
23414 glob64-lstat-compat.
23415 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
23416 * posix/glob-lstat-compat.c: New file.
23417 * posix/glob64-lstat-compat.c: Likewise.
23418 * posix/tst-glob_lstat_compat.c: Likewise.
23419 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
23420 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
23421 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
23422 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
23423 Likewise.
23424 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
23425 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
23426 * posix/glob.c (glob_lstat): New function.
23427 (glob): Rename to __glob and add versioned symbol to 2.27.
23428 (glob_in_dir): Use glob_lstat.
23429 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
23430 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
23431 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
23432 2.27.
23433 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
23434 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
23435 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
23436 gl_lstat on glob call.
23437 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
23438 and glob64 symbols.
23439 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23440 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
23441 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23442 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23443 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
23444 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
23445 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
23446 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
23447 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
23448 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23449 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23450 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
23451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
23452 Likewise.
23453 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
23454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
23455 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23456 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23457 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
23458 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23459 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23460 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
23461 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
23462 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23463 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23464 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23465
23466 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
23467
23468 * configure.ac (AS): Require binutils 2.25 or later.
23469 * configure: Regenerated.
23470
23471 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
23472
23473 [BZ #22207]
23474 * stdlib/test-atexit-race-common.c (do_test): Minimize required
23475 VM size.
23476
23477 2017-09-25 DJ Delorie <dj@redhat.com>
23478
23479 [BZ #22161]
23480 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
23481 resetting timeout.
23482
23483 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
23484
23485 * sysdeps/ieee754/dbl-64/sincos32.h
23486 [SINCCOS32_H]: Remove define.
23487 [SINCOS32_H]: Define.
23488
23489 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
23490
23491 * math/Versions (expf): New libm symbol at GLIBC_2.27.
23492 (exp2f): Likewise.
23493 * math/w_exp2f.c: New file.
23494 * math/w_expf.c: New file.
23495 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
23496 * math/w_expf_compat.c (__expf_compat): Likewise.
23497 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
23498 * sysdeps/ia64/fpu/e_expf.S: Likewise.
23499 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
23500 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23501 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
23502 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
23503 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23504 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23505 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
23506 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
23507 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
23508 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
23509 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23510 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
23511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
23512 Likewise.
23513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
23514 Likewise.
23515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23516 Likewise.
23517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
23518 Likewise.
23519 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23520 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23521 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
23522 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23523 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23524 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
23525 Likewise.
23526 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23527 Likewise.
23528 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23529 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23530 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23531
23532 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
23533
23534 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
23535 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
23536 (roundtoint, converttoint): Likewise.
23537 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
23538 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
23539 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
23540 * sysdeps/ieee754/flt-32/math_config.h: New file.
23541 * sysdeps/ieee754/flt-32/math_errf.c: New file.
23542 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
23543 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
23544 * sysdeps/i386/fpu/math_errf.c: New file.
23545 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
23546 * sysdeps/ia64/fpu/math_errf.c: New file.
23547 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
23548 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
23549
23550 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23551
23552 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
23553 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
23554 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
23555 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
23556 to make sure that these symbols are defined.
23557 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
23558 of <limits.h>
23559 (__need_NULL): Do not define.
23560 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
23561 alignment.
23562 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
23563 CMGROUP_MAX, cmsgcred): Do not define.
23564 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
23565 NULL.
23566 * bits/socket.h: Likewise.
23567 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
23568 __gettimeofday instead of gettimeofday.
23569 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
23570 instead of settimeofday.
23571
23572 2017-09-22 Joseph Myers <joseph@codesourcery.com>
23573
23574 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
23575 (asinhf): Define using libm_alias_float.
23576 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
23577 (atanf): Define using libm_alias_float.
23578 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
23579 (cbrtf): Define using libm_alias_float.
23580 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
23581 (ceilf): Define using libm_alias_float.
23582 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
23583 <libm-alias-float.h>.
23584 (copysignf): Define using libm_alias_float.
23585 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
23586 (cosf): Define using libm_alias_float.
23587 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
23588 (erff): Define using libm_alias_float.
23589 (erfcf): Likewise.
23590 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
23591 (expm1f): Define using libm_alias_float.
23592 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
23593 (fabsf): Define using libm_alias_float.
23594 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
23595 (floorf): Define using libm_alias_float.
23596 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
23597 (frexpf): Define using libm_alias_float.
23598 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
23599 libm_alias_float.
23600 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
23601 <libm-alias-float.h>.
23602 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
23603 libm_alias_float.
23604 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
23605 <libm-alias-float.h>.
23606 (getpayloadf): Define using libm_alias_float.
23607 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
23608 <libm-alias-float.h>.
23609 (llrintf): Define using libm_alias_float.
23610 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
23611 <libm-alias-float.h>.
23612 (llroundf): Define using libm_alias_float.
23613 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
23614 (logbf): Define using libm_alias_float.
23615 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
23616 (lrintf): Define using libm_alias_float.
23617 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
23618 (lroundf): Define using libm_alias_float.
23619 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
23620 (modff): Define using libm_alias_float.
23621 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
23622 <libm-alias-float.h>.
23623 (nearbyintf): Define using libm_alias_float.
23624 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
23625 <libm-alias-float.h>.
23626 (nextafterf): Define using libm_alias_float.
23627 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
23628 <libm-alias-float.h>.
23629 (nextupf): Define using libm_alias_float.
23630 * sysdeps/ieee754/flt-32/s_remquof.c: Include
23631 <libm-alias-float.h>.
23632 (remquof): Define using libm_alias_float.
23633 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
23634 (rintf): Define using libm_alias_float.
23635 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
23636 <libm-alias-float.h>.
23637 (roundevenf): Define using libm_alias_float.
23638 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
23639 (roundf): Define using libm_alias_float.
23640 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
23641 using libm_alias_float.
23642 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
23643 <libm-alias-float.h>.
23644 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
23645 Define using libm_alias_float.
23646 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
23647 <libm-alias-float.h>.
23648 (sincosf): Define using libm_alias_float.
23649 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
23650 (sinf): Define using libm_alias_float.
23651 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
23652 (tanf): Define using libm_alias_float.
23653 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
23654 (tanhf): Define using libm_alias_float.
23655 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
23656 <libm-alias-float.h>.
23657 (totalorderf): Define using libm_alias_float.
23658 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
23659 <libm-alias-float.h>.
23660 (totalordermagf): Define using libm_alias_float.
23661 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
23662 (truncf): Define using libm_alias_float.
23663 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
23664 libm_alias_float.
23665 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
23666 libm_alias_float.
23667
23668 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23669
23670 [BZ #22146]
23671 math/math.h: Let fpclassify use the builtin in C++ mode, even
23672 when optimazing for size.
23673
23674 2017-09-22 Joseph Myers <joseph@codesourcery.com>
23675
23676 * csu/Makefile (generated): Do not add version-info.h.
23677 (before-compile): Likewise.
23678 (all-Banner-files): Remove variable.
23679 ($(objpfx)version-info.h): Remove rule.
23680 * csu/version.c (banner): Do not include "version-info.h".
23681 * libidn/Banner: Remove.
23682 * manual/contrib.texi (Simon Josefsson): New entry.
23683
23684 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23685
23686 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
23687 Remove conditionals on LDBL_MANT_DIG.
23688 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
23689 (__ieee754_lgammal_r): Likewise.
23690
23691 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23692
23693 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
23694 _Float128 and L().
23695 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
23696 _Float128 and L(). Replace _Float128 with long double and L(x)
23697 with xL, throughout the file.
23698 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
23699 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
23700 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
23701 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
23702
23703 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23704
23705 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
23706 sysdeps/ieee754/ldbl-128ibm.
23707 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
23708 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
23709 of including it. Keep _Float128 and L() intact. These will be
23710 reviewed by a separate patch.
23711 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
23712 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
23713 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
23714 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
23715
23716 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23717
23718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
23719 (__finitef128): Define to __redirect___finitef128.
23720 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
23721 (__isinff128): Define to __redirect___isinff128.
23722 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
23723 (__isnanf128): Define to __redirect___isnanf128.
23724
23725 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23726
23727 * sysdeps/powerpc/powerpc64le/Makefile
23728 (CFLAGS-tst-strtod-nan-locale.c): New variable.
23729 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
23730
23731 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
23732 Carlos O'Donell <carlos@redhat.com>
23733
23734 [BZ #22180]
23735 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
23736 * stdlib/test-dlclose-exit-race.c: New file.
23737 * stdlib/test-dlclose-exit-race-helper.c: New file.
23738 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
23739
23740 2017-09-21 Joseph Myers <joseph@codesourcery.com>
23741
23742 * crypt/Banner: Remove file.
23743 * nptl/Banner: Likewise.
23744 * resolv/Banner: Likewise.
23745 * soft-fp/Banner: Likewise.
23746 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
23747 ($(objpfx)version.d): Remove dependency on banner.h.
23748 ($(objpfx)version.os): Likewise.
23749 * nptl/version.c (banner): Do not include banner.h.
23750 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
23751 Jelinek and BIND code.
23752
23753 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
23754 Carlos O'Donell <carlos@redhat.com>
23755
23756 * support/xdlfcn.h: New file.
23757 * support/xdlfcn.c: New file.
23758 * support/Makefile (libsupport-routines): Add xdlfcn.
23759 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
23760
23761 2017-09-20 Joseph Myers <joseph@codesourcery.com>
23762
23763 [BZ #20142]
23764 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23765 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
23766 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
23767 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
23768 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
23769 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
23770 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
23771 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
23772
23773 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
23774 Ricky Zhou <rickyz@google.com>
23775 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
23776
23777 [BZ #14333]
23778 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
23779 Remove atomics.
23780 (__new_exitfn): Fail registration when we finished at_exit processing.
23781 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
23782 * stdlib/on_exit.c (__on_exit): Likewise.
23783 * stdlib/exit.c (__exit_funcs_done): New variable.
23784 (__run_exit_handlers): Use __exit_funcs_lock.
23785 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
23786 declarations.
23787 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
23788 (test-cxa_atexit-race, test-on_exit-race): New tests.
23789 * stdlib/test-atexit-race-common.c: New file.
23790 * stdlib/test-atexit-race.c: New file.
23791 * stdlib/test-at_quick_exit-race.c: New file.
23792 * stdlib/test-cxa_atexit-race.c: New file.
23793 * stdlib/test-on_exit-race.c: New file.
23794
23795 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23796
23797 * benchtests/Makefile: Add exp2f and log2f benchmarks.
23798 * benchtests/exp2f-inputs: Copy of expf-inputs.
23799 * benchtests/log2f-inputs: Copy of logf-inputs.
23800
23801 2017-09-19 Joseph Myers <joseph@codesourcery.com>
23802
23803 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
23804 Explicitly take address of first element of array arguments in
23805 call to INLINE_SYSCALL.
23806
23807 2017-09-19 Andreas Schwab <schwab@suse.de>
23808
23809 [BZ #22134]
23810 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
23811 execveat first.
23812 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
23813 unimplemented.
23814 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
23815 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
23816 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
23817 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
23818 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
23819 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
23820 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
23821 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
23822 * posix/Makefile (tests): Add tst-fexecve.
23823 * posix/tst-fexecve.c: New file.
23824
23825 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
23826
23827 * benchtests/Makefile: Add logf benchmark.
23828 * benchtests/logf-inputs: Add reduced trace from wrf_r.
23829
23830 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
23831
23832 * benchtests/Makefile: Add expf benchmark.
23833 * benchtests/expf-inputs: Add reduced trace from wrf_r.
23834
23835 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
23836
23837 * csu/Makefile: Add -funwind-tables to libc-start.c.
23838 * debug/Makefile: Add -funwind-tables to backtrace.c.
23839 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
23840 * sysdeps/arm/Makefile: Likewise.
23841 * sysdeps/i386/Makefile: Likewise.
23842 * sysdeps/m68k/Makefile: Likewise.
23843 * sysdeps/mips/Makefile: Likewise.
23844 * sysdeps/nios2/Makefile: Likewise.
23845 * sysdeps/sh/Makefile: Likewise.
23846 * sysdeps/sparc/Makefile: Likewise.
23847
23848 2017-09-19 Joseph Myers <joseph@codesourcery.com>
23849
23850 * benchtests/Makefile (bench-math): Add trunc and truncf.
23851 (CFLAGS-bench-trunc.c): New variable.
23852 (CFLAGS-bench-truncf.c): Likewise.
23853 * benchtests/trunc-inputs: New file.
23854 * benchtests/truncf-inputs: Likewise.
23855
23856 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23857
23858 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
23859
23860 2017-09-18 Joseph Myers <joseph@codesourcery.com>
23861
23862 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
23863 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
23864 redefine.
23865 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
23866 (exp10l): Define as weak alias.
23867 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
23868 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
23869 and redefine.
23870 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
23871 (remainderl): Define as weak alias.
23872
23873 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
23874 (fmal): Define using libm_alias_ldouble.
23875 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
23876 (acoshl): Define using libm_alias_ldouble.
23877 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
23878 (acosl): Define using libm_alias_ldouble.
23879 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
23880 (asinl): Define using libm_alias_ldouble.
23881 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
23882 (atan2l): Define using libm_alias_ldouble.
23883 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
23884 (atanhl): Define using libm_alias_ldouble.
23885 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
23886 (coshl): Define using libm_alias_ldouble.
23887 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
23888 (exp10l): Define using libm_alias_ldouble.
23889 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
23890 (exp2l): Define using libm_alias_ldouble.
23891 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
23892 (expl): Define using libm_alias_ldouble.
23893 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
23894 (fmodl): Define using libm_alias_ldouble.
23895 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
23896 (hypotl): Define using libm_alias_ldouble.
23897 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
23898 (j0l): Define using libm_alias_ldouble.
23899 (y0l): Likewise.
23900 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
23901 (j1l): Define using libm_alias_ldouble.
23902 (y1l): Likewise.
23903 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
23904 (jnl): Define using libm_alias_ldouble.
23905 (ynl): Likewise.
23906 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
23907 (log10l): Define using libm_alias_ldouble.
23908 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
23909 (log2l): Define using libm_alias_ldouble.
23910 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
23911 (logl): Define using libm_alias_ldouble.
23912 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
23913 (powl): Define using libm_alias_ldouble.
23914 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
23915 (remainderl): Define using libm_alias_ldouble.
23916 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
23917 (sinhl): Define using libm_alias_ldouble.
23918 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
23919 (sqrtl): Define using libm_alias_ldouble.
23920 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
23921 (tgammal): Define using libm_alias_ldouble.
23922 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
23923 (exp10l): Do not use long_double_symbol here.
23924 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
23925 [LIBM_SVID_COMPAT] (remainderl): Likewise.
23926 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
23927 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
23928 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
23929 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
23930 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
23931 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
23932 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
23933 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
23934 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
23935 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
23936 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
23937 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
23938 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
23939 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
23940 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
23941 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
23942 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
23943 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
23944 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
23945 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
23946
23947 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
23948
23949 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
23950 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
23951
23952 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
23953
23954 * io/read.c (read): Add libc_hidden_weak.
23955 * sysdeps/mach/hurd/read.c (read): Likewise.
23956 * io/write.c (write): Likewise.
23957 * sysdeps/mach/hurd/write.c (write): Likewise.
23958 * io/pread64.c (__pread64): Likewise.
23959 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
23960 * posix/pread64.c (__pread64): Add libc_hidden_def.
23961
23962 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
23963
23964 * benchtests/scripts/compare_strings.py: New option -g.
23965 (draw_graph): Print a message that a graph is being generated.
23966 (process_results): Generate graph only if -g is passed.
23967 (main): Process option -g.
23968
23969 * benchtests/scripts/compare_strings.py (process_results):
23970 Better spacing for output.
23971
23972 * benchtests/scripts/compare_strings.py: Use argparse.
23973 * benchtests/README: Document existence of compare_strings.py.
23974
23975 2017-09-15 Joseph Myers <joseph@codesourcery.com>
23976
23977 * math/s_fma.c: Include <libm-alias-double.h>.
23978 (fma): Define using libm_alias_double.
23979 * math/s_nextafter.c: Include <libm-alias-double.h>.
23980 (nextafter): Define using libm_alias_double.
23981 * math/w_acos_compat.c: Include <libm-alias-double.h>.
23982 (acos): Define using libm_alias_double.
23983 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
23984 (aocsh): Define using libm_alias_double.
23985 * math/w_asin_compat.c: Include <libm-alias-double.h>.
23986 (asin): Define using libm_alias_double.
23987 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
23988 (atan2): Define using libm_alias_double.
23989 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
23990 (atanh): Define using libm_alias_double.
23991 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
23992 (cosh): Define using libm_alias_double.
23993 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
23994 (exp10): Define using libm_alias_double.
23995 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
23996 (exp2): Define using libm_alias_double.
23997 * math/w_exp_compat.c: Include <libm-alias-double.h>.
23998 (exp): Define using libm_alias_double.
23999 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
24000 (fmod): Define using libm_alias_double.
24001 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
24002 (hypot): Define using libm_alias_double.
24003 * math/w_j0_compat.c: Include <libm-alias-double.h>.
24004 (j0): Define using libm_alias_double.
24005 (y0): Likewise.
24006 * math/w_j1_compat.c: Include <libm-alias-double.h>.
24007 (j1): Define using libm_alias_double.
24008 (y1): Likewise.
24009 * math/w_jn_compat.c: Include <libm-alias-double.h>.
24010 (jn): Define using libm_alias_double.
24011 (yn): Likewise.
24012 * math/w_log10_compat.c: Include <libm-alias-double.h>.
24013 (log10): Define using libm_alias_double.
24014 * math/w_log2_compat.c: Include <libm-alias-double.h>.
24015 (log2): Define using libm_alias_double.
24016 * math/w_log_compat.c: Include <libm-alias-double.h>.
24017 (log): Define using libm_alias_double.
24018 * math/w_pow_compat.c: Include <libm-alias-double.h>.
24019 (pow): Define using libm_alias_double.
24020 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
24021 (remainder): Define using libm_alias_double.
24022 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
24023 (sinh): Define using libm_alias_double.
24024 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
24025 (sqrt): Define using libm_alias_double.
24026 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
24027 (tgamma): Define using libm_alias_double.
24028 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
24029 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
24030 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
24031 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
24032 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
24033 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
24034 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
24035 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
24036 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
24037 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
24038 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
24039 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
24040 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
24041 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
24042 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
24043 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
24044 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
24045 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
24046 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
24047 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
24048 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
24049 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
24050 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
24051 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
24052 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
24053
24054 * math/e_acoshl.c: Remove.
24055 * math/e_acosl.c: Likewise.
24056 * math/e_asinl.c: Likewise.
24057 * math/e_atan2l.c: Likewise.
24058 * math/e_atanhl.c: Likewise.
24059 * math/e_coshl.c: Likewise.
24060 * math/e_expl.c: Likewise.
24061 * math/e_fmodl.c: Likewise.
24062 * math/e_gammal_r.c: Likewise.
24063 * math/e_hypotl.c: Likewise.
24064 * math/e_j0l.c: Likewise.
24065 * math/e_j1l.c: Likewise.
24066 * math/e_jnl.c: Likewise.
24067 * math/e_lgammal_r.c: Likewise.
24068 * math/e_log10l.c: Likewise.
24069 * math/e_log2l.c: Likewise.
24070 * math/e_logl.c: Likewise.
24071 * math/e_powl.c: Likewise.
24072 * math/e_rem_pio2l.c: Likewise.
24073 * math/e_sinhl.c: Likewise.
24074 * math/e_sqrtf128.c: Likewise.
24075 * math/e_sqrtl.c: Likewise.
24076 * math/k_cosl.c: Likewise.
24077 * math/k_sinl.c: Likewise.
24078 * math/k_tanl.c: Likewise.
24079 * math/s_asinhl.c: Likewise.
24080 * math/s_atanl.c: Likewise.
24081 * math/s_cbrtl.c: Likewise.
24082 * math/s_erfl.c: Likewise.
24083 * math/s_expm1l.c: Likewise.
24084 * math/s_log1pl.c: Likewise.
24085 * math/s_tanhl.c: Likewise.
24086
24087 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24088
24089 [BZ #21745]
24090 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
24091 [$(subdir) = math] (sysdep_calls): New variable. Has the
24092 previous contents of sysdep_routines, but re-sorted..
24093 [$(subdir) = math] (sysdep_routines): Re-use the contents from
24094 sysdep_calls.
24095 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
24096 defined in sysdep_calls and replace by the respective m_* names.
24097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
24098 (compat_symbol): Undefine to avoid duplicated compat symbols in
24099 libc.
24100
24101 2017-09-15 Joseph Myers <joseph@codesourcery.com>
24102
24103 * math/s_fmaf.c: Include <libm-alias-float.h>.
24104 (fmaf): Define using libm_alias_float.
24105 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
24106 (acosf): Define using libm_alias_float.
24107 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
24108 (acoshf): Define using libm_alias_float.
24109 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
24110 (asinf): Define using libm_alias_float.
24111 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
24112 (atan2f): Define using libm_alias_float.
24113 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
24114 (atanhf): Define using libm_alias_float.
24115 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
24116 (coshf): Define using libm_alias_float.
24117 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
24118 (exp10f): Define using libm_alias_float.
24119 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
24120 (fmodf): Define using libm_alias_float.
24121 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
24122 (hypotf): Define using libm_alias_float.
24123 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
24124 (j0f): Define using libm_alias_float.
24125 (y0f): Likewise.
24126 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
24127 (j1f): Define using libm_alias_float.
24128 (y1f): Likewise.
24129 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
24130 (jnf): Define using libm_alias_float.
24131 (ynf): Likewise.
24132 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
24133 (log10f): Define using libm_alias_float.
24134 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
24135 (log2f): Define using libm_alias_float.
24136 * math/w_logf_compat.c: Include <libm-alias-float.h>.
24137 (logf): Define using libm_alias_float.
24138 * math/w_powf_compat.c: Include <libm-alias-float.h>.
24139 (powf): Define using libm_alias_float.
24140 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
24141 (remainderf): Define using libm_alias_float.
24142 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
24143 (sinhf): Define using libm_alias_float.
24144 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
24145 (sqrtf): Define using libm_alias_float.
24146 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
24147 (tgammaf): Define using libm_alias_float.
24148
24149 2017-09-14 Joseph Myers <joseph@codesourcery.com>
24150
24151 * include/math.h (roundeven): Change hidden_proto call to
24152 __roundeven.
24153 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
24154 alias.
24155 [NO_LONG_DOUBLE] (__j0l): New strong alias.
24156 (y0): Rename to __y0 and define as weak alias.
24157 [NO_LONG_DOUBLE] (__y0l): New strong alias.
24158 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
24159 alias.
24160 (y0f): Rename to __y0f and define as weak alias.
24161 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
24162 alias.
24163 [NO_LONG_DOUBLE] (__j1l): New strong alias.
24164 (y1): Rename to __y1 and define as weak alias.
24165 [NO_LONG_DOUBLE] (__y1l): New strong alias.
24166 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
24167 alias.
24168 (y1f): Rename to __y1f and define as weak alias.
24169 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
24170 alias.
24171 [NO_LONG_DOUBLE] (__jnl): New strong alias.
24172 (yn): Rename to __yn and define as weak alias.
24173 [NO_LONG_DOUBLE] (__ynl): New strong alias.
24174 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
24175 alias.
24176 (ynf): Rename to __ynf and define as weak alias.
24177 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
24178 (fromfp): Define as weak alias.
24179 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
24180 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
24181 (fromfpx): Define as weak alias.
24182 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
24183 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
24184 __getpayload and define as weak alias.
24185 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
24186 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
24187 __roundeven and define as weak alias.
24188 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
24189 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
24190 __setpayload.
24191 (setpayload): Define as weak alias.
24192 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
24193 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
24194 __setpayloadsig.
24195 (setpayloadsig): Define as weak alias.
24196 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
24197 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
24198 __totalorder and define as weak alias.
24199 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
24200 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
24201 to __totalordermag and define as weak alias.
24202 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
24203 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
24204 (ufromfp): Define as weak alias.
24205 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
24206 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
24207 __ufromfpx.
24208 (ufromfpx): Define as weak alias.
24209 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
24210 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
24211 Rename to __getpayload and define as weak alias.
24212 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
24213 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
24214 Rename to __roundeven and define as weak alias.
24215 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
24216 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
24217 Rename to __totalorder and define as weak alias.
24218 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
24219 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
24220 (totalordermag): Rename to __totalordermag and define as weak
24221 alias.
24222 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
24223 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
24224 macro.
24225 (__roundevenl): Likewise.
24226 (__totalorderl): Likewise.
24227 (__totalordermagl): Likewise
24228 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
24229 __fromfpf128.
24230 (fromfpf128): Define as weak alias.
24231 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
24232 __fromfpxf128.
24233 (fromfpxf128): Define as weak alias.
24234 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
24235 __setpayloadf128.
24236 (setpayloadf128): Define as weak alias.
24237 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
24238 __setpayloadsigf128.
24239 (setpayloadsigf128): Define as weak alias.
24240 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
24241 __ufromfpf128.
24242 (ufromfpf128): Define as weak alias.
24243 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
24244 __ufromfpxf128.
24245 (ufromfpxf128): Define as weak alias.
24246 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
24247 (fromfpf): Define as weak alias.
24248 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
24249 __fromfpxf.
24250 (fromfpxf): Define as weak alias.
24251 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
24252 __getpayloadf and define as weak alias.
24253 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
24254 __roundevenf and define as weak alias.
24255 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
24256 __setpayloadf.
24257 (setpayloadf): Define as weak alias.
24258 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
24259 __setpayloadsigf.
24260 (setpayloadsigf): Define as weak alias.
24261 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
24262 __totalorderf and define as weak alias.
24263 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
24264 Rename to __totalordermagf and define as weak alias.
24265 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
24266 __ufromfpf.
24267 (ufromfpf): Define as weak alias.
24268 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
24269 __ufromfpxf.
24270 (ufromfpxf): Define as weak alias.
24271 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
24272 __fromfpl.
24273 (fromfpl): Define as weak alias.
24274 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
24275 __fromfpxl.
24276 (fromfpxl): Define as weak alias.
24277 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
24278 to __getpayloadl and define as weak alias.
24279 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
24280 __roundevenl and define as weak alias.
24281 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
24282 __setpayloadl.
24283 (setpayloadl): Define as weak alias.
24284 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
24285 __setpayloadsigl.
24286 (setpayloadsigl): Define as weak alias.
24287 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
24288 to __totalorderl and define as weak alias.
24289 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
24290 Rename to __totalordermagl and define as weak alias.
24291 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
24292 __ufromfpl.
24293 (ufromfpl): Define as weak alias.
24294 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
24295 __ufromfpxl.
24296 (ufromfpxl): Define as weak alias.
24297 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
24298 __fromfpl.
24299 (fromfpl): Define as weak alias.
24300 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
24301 __fromfpxl.
24302 (fromfpxl): Define as weak alias.
24303 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
24304 Rename to __getpayloadl and define as weak alias.
24305 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
24306 to __roundevenl and define as weak alias. Call __roundeven
24307 instead of roundeven.
24308 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
24309 __setpayloadl.
24310 (setpayloadl): Define as weak alias.
24311 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
24312 __setpayloadsigl.
24313 (setpayloadsigl): Define as weak alias.
24314 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
24315 Rename to __totalorderl and define as weak alias.
24316 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
24317 Rename to __totalordermagl and define as weak alias.
24318 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
24319 __ufromfpl.
24320 (ufromfpl): Define as weak alias.
24321 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
24322 __ufromfpxl.
24323 (ufromfpxl): Define as weak alias.
24324 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
24325 __fromfpl.
24326 (fromfpl): Define as weak alias.
24327 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
24328 __fromfpxl.
24329 (fromfpxl): Define as weak alias.
24330 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
24331 __getpayloadl and define as weak alias.
24332 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
24333 __roundevenl and define as weak alias.
24334 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
24335 __setpayloadl.
24336 (setpayloadl): Define as weak alias.
24337 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
24338 __setpayloadsigl.
24339 (setpayloadsigl): Define as weak alias.
24340 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
24341 __totalorderl and define as weak alias.
24342 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
24343 Rename to __totalordermagl and define as weak alias.
24344 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
24345 __ufromfpl.
24346 (ufromfpl): Define as weak alias.
24347 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
24348 __ufromfpxl.
24349 (ufromfpxl): Define as weak alias.
24350
24351 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24352
24353 * benchtests/bench-string.h (realloc_bufs): New function.
24354 (test_init): Call it.
24355 * benchtests/bench-memset-large.c (do_test): Likewise.
24356 * benchtests/bench-memset.c (do_test): Likewise.
24357
24358 * benchtests/bench-memset-large.c: Print output in JSON
24359 format.
24360 * benchtests/bench-memset.c: Likewise.
24361
24362 2017-09-14 Mike FABIAN <mfabian@redhat.com>
24363
24364 [BZ #21084]
24365 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
24366 * iconvdata/Makefile: Add IBM858.
24367 * iconvdata/gconv-modules: Likewise.
24368 * iconvdata/tst-tables.sh: Likewise.
24369 * iconvdata/ibm858.c: New file.
24370 * localedata/charmaps/IBM858: Likewise.
24371
24372 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
24373
24374 [BZ #22023]
24375 * locales/niu_NZ (LC_TIME): copy "niu_NU".
24376 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
24377
24378 2017-09-14 Mike FABIAN <mfabian@redhat.com>
24379
24380 [BZ #22112]
24381 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
24382 and add tel_int_fmt.
24383
24384 2017-09-14 Joseph Myers <joseph@codesourcery.com>
24385
24386 * sysdeps/generic/libm-alias-float128.h: New file.
24387 * sysdeps/generic/math-type-macros-float128.h: Include
24388 <libm-alias-float128.h>.
24389 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
24390
24391 2017-09-13 Joseph Myers <joseph@codesourcery.com>
24392
24393 * sysdeps/generic/libm-alias-ldouble.h: New file.
24394 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
24395 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
24396 * sysdeps/generic/math-type-macros-ldouble.h: Include
24397 <libm-alias-ldouble.h>.
24398 [!declare_mgen_alias] (declare_mgen_alias): Define to use
24399 libm_alias_ldouble.
24400
24401 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
24402
24403 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
24404 * math/w_exp_compat.c: ... here.
24405 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
24406 * math/w_expf_compat.c: ... here.
24407 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
24408 * math/w_expl_compat.c: ... here.
24409 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
24410 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
24411 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
24412 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
24413
24414 2017-09-13 Joseph Myers <joseph@codesourcery.com>
24415
24416 * math/w_scalbln_template.c (strong_alias): Do not undefine and
24417 redefine.
24418 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
24419 macro.
24420 (ldexpl): Only define as compat symbol for libc, not libm.
24421 (scalbnl): Define as compat symbol for libc here.
24422 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
24423 define for [IS_IN (libc)].
24424 (__ldexpl_2): Remove alias.
24425 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
24426 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
24427 name in long_double_symbol call.
24428 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
24429 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24430 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24431 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
24432 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
24433 Remove macro.
24434 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
24435 Define as compat symbol.
24436
24437 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24438
24439 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
24440 * sysdeps/unix/sysv/linux/alpha/Makefile
24441 [$(subdir) = csu] (sysdep_routines): Remove rule.
24442
24443 2017-09-13 Joseph Myers <joseph@codesourcery.com>
24444
24445 * sysdeps/generic/libm-alias-double.h: New file.
24446 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
24447 * sysdeps/generic/math-type-macros-double.h: Include
24448 <libm-alias-double.h>.
24449 [declare_mgen_alias] (declare_mgen_alias): Define to use
24450 libm_alias_double.
24451 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
24452 (M_LIBM_NEED_COMPAT): Remove macro.
24453 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
24454 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
24455 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
24456 code.
24457 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24458 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24459 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24460 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24461 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24462 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24463 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24464 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24465 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24466 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24467 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24468 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24469 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24470 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24471 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24472 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24473 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24474 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24475 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24476 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24477 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24478 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24479 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24480 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24481 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24482 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24483 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
24484 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
24485 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
24486 macro.
24487 (declare_mgen_alias): New macro.
24488 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
24489 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
24490 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
24491 (M_LIBM_NEED_COMPAT): Remove macro.
24492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
24493 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
24494 <first-versions.h>.
24495 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
24496 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
24497
24498 2017-09-12 Joseph Myers <joseph@codesourcery.com>
24499
24500 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
24501 (declare_mgen_alias_2): Remove.
24502 * sysdeps/generic/math-type-macros-double.h
24503 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
24504 Likewise.
24505 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
24506 alias.
24507 (ldexp): Define with declare_mgen_alias.
24508 (scalbn): Likewise.
24509
24510 2017-09-12 Steve Ellcey <sellcey@cavium.com>
24511
24512 * grp/initgroups.c: Include config.h.
24513 (DEFAULT_CONFIG): New macro.
24514 (internal_getgrouplist): Use DEFAULT_CONFIG.
24515 * nscd/initgrcache.c (addinitgroupsX): Likewise.
24516 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
24517 (DEFAULT_DEFCONFIG): New macro.
24518 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
24519 * nss/grp-lookup.c: Include config.h
24520 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
24521 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
24522 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
24523 * manual/nss.texi: Update default values section.
24524
24525 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
24526
24527 [BZ #21967]
24528 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
24529 New.
24530 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
24531 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24532 Handle MathVec_Prefer_No_AVX512.
24533 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
24534 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
24535 is set.
24536
24537 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
24538
24539 * posix/sched_primax.c (__sched_get_priority_max): Add
24540 libc_hidden_def.
24541 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
24542 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
24543 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
24544 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
24545 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
24546 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
24547 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
24548 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
24549 Add aliases.
24550
24551 2017-09-11 Joseph Myers <joseph@codesourcery.com>
24552
24553 * sysdeps/generic/libm-alias-float.h: New file.
24554 * sysdeps/generic/math-type-macros-float.h: Include
24555 <libm-alias-float.h>.
24556 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
24557
24558 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
24559
24560 [BZ #22093]
24561 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
24562 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
24563 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
24564 (HWCAP_IMPORTANT): Likewise.
24565 (HWCAP_X86_64): New enum.
24566 (HWCAP_X86_AVX512_1): Updated.
24567 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
24568 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
24569 (modules-names): Add x86_64/tst-x86_64mod-1.
24570 (LDFLAGS-tst-x86_64mod-1.so): New.
24571 ($(objpfx)tst-x86_64-1): Likewise.
24572 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
24573 (tst-x86_64-1-clean): Likewise.
24574 * sysdeps/x86_64/tst-x86_64-1.c: New file.
24575 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
24576
24577 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
24578
24579 * po/sv.po: Update translations.
24580 * po/fr.po: Likewise.
24581
24582 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
24583
24584 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
24585 seconds.
24586 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
24587 seconds.
24588 * elf/rtld-Rules: Fix $(error) use.
24589
24590 2017-09-09 Mike FABIAN <mfabian@redhat.com>
24591
24592 [BZ #14925]
24593 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
24594 * locale/iso-639.def: Change “Bengali” to “Bangla”.
24595 * localedata/locales/bn_BD: “Bengali” was still used in some
24596 comments. Change it to “Bangla”.
24597
24598 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
24599
24600 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
24601
24602 2017-09-08 Steve Ellcey <sellcey@cavium.com>
24603
24604 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
24605 thunderx2t99p1 to list of cpu names.
24606 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
24607 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
24608
24609 2017-09-08 Steve Ellcey <sellcey@cavium.com>
24610
24611 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
24612 Use strcmp instead of tunable_is_name.
24613
24614 2017-09-08 Joseph Myers <joseph@codesourcery.com>
24615
24616 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
24617 (F_GET_RW_HINT): New macro.
24618 [__USE_GNU] (F_SET_RW_HINT): Likewise.
24619 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
24620 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
24621 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
24622 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
24623 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
24624 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
24625 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
24626 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
24627
24628 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
24629 (F_ADD_SEALS): New macro.
24630 [__USE_GNU] (F_GET_SEALS): Likewise.
24631 [__USE_GNU] (F_SEAL_SEAL): Likewise.
24632 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
24633 [__USE_GNU] (F_SEAL_GROW): Likewise.
24634 [__USE_GNU] (F_SEAL_WRITE): Likewise.
24635
24636 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24637
24638 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
24639 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
24640 * posix/glob_internal.h (__glob_pattern_type):
24641 * posix/glob.c (glob):
24642 * posix/glob_pattern_p.c (__glob_pattern_p):
24643 Use them.
24644
24645 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
24646 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
24647 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
24648 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
24649 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
24650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
24651 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
24652 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
24653 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
24654 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
24655 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
24656 * sysdeps/wordsize-64/glob.c: Likewise.
24657 * sysdeps/wordsize-64/glob64.c: Likewise.
24658 * sysdeps/wordsize-64/globfree.c: Likewise.
24659 * sysdeps/wordsize-64/globfree64.c: Likewise.
24660 * sysdeps/unix/sysv/linux/glob.c: New file.
24661 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
24662 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
24663 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
24664 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
24665 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
24666 adds !GLOB_NO_OLD_VERSION as an extra condition.
24667 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
24668 using relative path instead of absolute one.
24669 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
24670 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
24671 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
24672 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
24673 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
24674 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
24675
24676 [BZ #1062]
24677 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
24678 (glob): Use the same scratch buffer for both getlogin_r and
24679 getpwnam_r. Don’t require preallocation of the login name. This
24680 simplifies storage allocation, and corrects the handling of
24681 long login names.
24682
24683 [BZ #1062]
24684 * posix/glob.c (glob): Port recent patches to platforms
24685 lacking getpwnam_r.
24686 (glob): Fix longstanding misuse of errno after getpwnam_r, which
24687 returns an error number rather than setting errno.
24688
24689 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
24690 instead of GCC extension.
24691 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
24692 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
24693 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
24694
24695 [BZ #866]
24696 [BZ #1062]
24697 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
24698 * posix/bug-glob1.c: Remove file.
24699 * posix/tst-glob_symlinks.c: New file.
24700 * posix/glob.c (__lstat64): New macro.
24701 (is_dir): New function.
24702 (glob, glob_in_dir): Match symlinks even if they are dangling.
24703 (link_stat, link_exists_p): Remove. All uses removed.
24704
24705 [BZ #1062]
24706 [BZ #19971]
24707 * posix/glob.c (struct readdir_result): Remove skip_entry member.
24708 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
24709 All uses removed.
24710
24711 [BZ #1062]
24712 CVE-2017-15671
24713 * posix/Makefile (routines): Add globfree, globfree64, and
24714 glob_pattern_p.
24715 * posix/flexmember.h: New file.
24716 * posix/glob_internal.h: Likewise.
24717 * posix/glob_pattern_p.c: Likewise.
24718 * posix/globfree.c: Likewise.
24719 * posix/globfree64.c: Likewise.
24720 * sysdeps/gnu/globfree64.c: Likewise.
24721 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
24722 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
24723 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
24724 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
24725 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
24726 * sysdeps/wordsize-64/globfree.c: Likewise.
24727 * sysdeps/wordsize-64/globfree64.c: Likewise.
24728 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
24729 [NDEBUG): Remove comments.
24730 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
24731 (dirent_type): New type. Use uint_fast8_t not
24732 uint8_t, as C99 does not require uint8_t.
24733 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
24734 (struct readdir_result): Use dirent_type. Do not define skip_entry
24735 unless it is needed; this saves a byte on platforms lacking d_ino.
24736 (readdir_result_type, readdir_result_skip_entry):
24737 New functions, replacing ...
24738 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
24739 these functions, which were removed. This makes the callers
24740 easier to read. All callers changed.
24741 (D_INO_TO_RESULT): Now empty if there is no d_ino.
24742 (size_add_wrapv, glob_use_alloca): New static functions.
24743 (glob, glob_in_dir): Check for size_t overflow in several places,
24744 and fix some size_t checks that were not quite right.
24745 Remove old code using SHELL since Bash no longer
24746 uses this.
24747 (glob, prefix_array): Separate MS code better.
24748 (glob_in_dir): Remove old Amiga and VMS code.
24749 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
24750 separate files.
24751 (glob_in_dir): Do not rely on undefined behavior in accessing
24752 struct members beyond their bounds. Use a flexible array member
24753 instead
24754 (link_stat): Rename from link_exists2_p and return -1/0 instead of
24755 0/1. Caller changed.
24756 (glob): Fix memory leaks.
24757 * posix/glob64 (globfree64): Move to separate file.
24758 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
24759 (globfree64): Remove hidden alias.
24760 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
24761 oldglob.
24762 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
24763 separate file.
24764 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
24765 define.
24766 Move compat code to separate file.
24767 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
24768 separate file.
24769
24770 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
24771
24772 * resolv/tst-resolv-qtypes.c (domain): Changed to
24773 "const char domain[] =".
24774
24775 2017-09-07 Joseph Myers <joseph@codesourcery.com>
24776
24777 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
24778 version to 3.1.6.
24779
24780 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
24781 (TCP_MD5SIG_EXT): Likewise.
24782 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
24783 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
24784 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
24785
24786 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
24787
24788 2017-09-07 Mike FABIAN <mfabian@redhat.com>
24789
24790 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
24791
24792 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
24793
24794 [BZ #22100]
24795 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
24796
24797 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
24798
24799 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
24800 before assuming that the file is empty. Avoid testing buffer content
24801 when nread == 0.
24802
24803 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24804
24805 [BZ #18858]
24806 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
24807 Remove define.
24808 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
24809 Likewise.
24810 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
24811 Likewise.
24812 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
24813 Likewise.
24814 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
24815 Likewise.
24816 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
24817 Likewise.
24818 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
24819 Likewise.
24820
24821 2017-09-06 Florian Weimer <fweimer@redhat.com>
24822
24823 * malloc/dynarray_emplace_enlarge.c
24824 (__libc_dynarray_emplace_enlarge): Add missing else.
24825
24826 2017-09-06 Florian Weimer <fweimer@redhat.com>
24827
24828 [BZ #22096]
24829 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
24830 case of failure to obtain the global conf object.
24831
24832 2017-09-06 Florian Weimer <fweimer@redhat.com>
24833
24834 [BZ #22095]
24835 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
24836 dynarray allocation failure.
24837
24838 2017-09-06 Florian Weimer <fweimer@redhat.com>
24839
24840 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
24841 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
24842 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
24843 New functions.
24844 (response): Call them. Add 'p', '6' flag processing.
24845 (test_reverse): New function.
24846 (test_get2_any): Call it.
24847 (test_no_inet6): Add 'p' test.
24848 (test_inet6): Likewise.
24849
24850 2017-09-06 Florian Weimer <fweimer@redhat.com>
24851
24852 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
24853 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
24854 the QNAME.
24855 (test_gai): Adjust query names. Add additional tests.
24856 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
24857 test_get2. Adjust query names. Add additional tests.
24858 (test_no_inet6): New function, extracted from threadfunc.
24859 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
24860 Add additional tests.
24861
24862 2017-09-06 Mike FABIAN <mfabian@redhat.com>
24863
24864 [BZ #22070]
24865 * localedata/unicode-gen/utf8_gen.py: Set the width for
24866 characters with Prepended_Concatenation_Mark property to 1
24867 * localedata/charmaps/UTF-8: Updated using the improved script.
24868
24869 2017-09-06 Mike FABIAN <mfabian@redhat.com>
24870
24871 [BZ #21750]
24872 * localedata/unicode-gen/utf8_gen.py: Improve the script to
24873 use the range notation for all ranges of neighbouring characters
24874 with the same width.
24875
24876 2017-09-05 Joseph Myers <joseph@codesourcery.com>
24877
24878 * sysdeps/generic/math-type-macros-double.h: Include
24879 <math-svid-compat.h>.
24880 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24881 * sysdeps/generic/math-type-macros-float.h: Include
24882 <math-svid-compat.h>.
24883 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24884 * sysdeps/generic/math-type-macros-ldouble.h: Include
24885 <math-svid-compat.h>.
24886 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
24887 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
24888 condition.
24889 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
24890 * math/w_acosf_compat.c: Likewise.
24891 * math/w_acosh_compat.c: Likewise.
24892 * math/w_acoshf_compat.c: Likewise.
24893 * math/w_acoshl_compat.c: Likewise.
24894 * math/w_acosl_compat.c: Likewise.
24895 * math/w_asin_compat.c: Likewise.
24896 * math/w_asinf_compat.c: Likewise.
24897 * math/w_asinl_compat.c: Likewise.
24898 * math/w_atan2_compat.c: Likewise.
24899 * math/w_atan2f_compat.c: Likewise.
24900 * math/w_atan2l_compat.c: Likewise.
24901 * math/w_atanh_compat.c: Likewise.
24902 * math/w_atanhf_compat.c: Likewise.
24903 * math/w_atanhl_compat.c: Likewise.
24904 * math/w_cosh_compat.c: Likewise.
24905 * math/w_coshf_compat.c: Likewise.
24906 * math/w_coshl_compat.c: Likewise.
24907 * math/w_exp10_compat.c: Likewise.
24908 * math/w_exp10f_compat.c: Likewise.
24909 * math/w_exp10l_compat.c: Likewise.
24910 * math/w_exp2_compat.c: Likewise.
24911 * math/w_exp2f_compat.c: Likewise.
24912 * math/w_exp2l_compat.c: Likewise.
24913 * math/w_fmod_compat.c: Likewise.
24914 * math/w_fmodf_compat.c: Likewise.
24915 * math/w_fmodl_compat.c: Likewise.
24916 * math/w_hypot_compat.c: Likewise.
24917 * math/w_hypotf_compat.c: Likewise.
24918 * math/w_hypotl_compat.c: Likewise.
24919 * math/w_j0_compat.c: Likewise.
24920 * math/w_j0f_compat.c: Likewise.
24921 * math/w_j0l_compat.c: Likewise.
24922 * math/w_j1_compat.c: Likewise.
24923 * math/w_j1f_compat.c: Likewise.
24924 * math/w_j1l_compat.c: Likewise.
24925 * math/w_jn_compat.c: Likewise.
24926 * math/w_jnf_compat.c: Likewise.
24927 * math/w_jnl_compat.c: Likewise.
24928 * math/w_lgamma_r_compat.c: Likewise.
24929 * math/w_lgammaf_r_compat.c: Likewise.
24930 * math/w_lgammal_r_compat.c: Likewise.
24931 * math/w_log10_compat.c: Likewise.
24932 * math/w_log10f_compat.c: Likewise.
24933 * math/w_log10l_compat.c: Likewise.
24934 * math/w_log2_compat.c: Likewise.
24935 * math/w_log2f_compat.c: Likewise.
24936 * math/w_log2l_compat.c: Likewise.
24937 * math/w_log_compat.c: Likewise.
24938 * math/w_logf_compat.c: Likewise.
24939 * math/w_logl_compat.c: Likewise.
24940 * math/w_pow_compat.c: Likewise.
24941 * math/w_powf_compat.c: Likewise.
24942 * math/w_powl_compat.c: Likewise.
24943 * math/w_remainder_compat.c: Likewise.
24944 * math/w_remainderf_compat.c: Likewise.
24945 * math/w_remainderl_compat.c: Likewise.
24946 * math/w_sinh_compat.c: Likewise.
24947 * math/w_sinhf_compat.c: Likewise.
24948 * math/w_sinhl_compat.c: Likewise.
24949 * math/w_sqrt_compat.c: Likewise.
24950 * math/w_sqrtf_compat.c: Likewise.
24951 * math/w_sqrtl_compat.c: Likewise.
24952 * math/w_tgamma_compat.c: Likewise.
24953 * math/w_tgammaf_compat.c: Likewise.
24954 * math/w_tgammal_compat.c: Likewise.
24955 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
24956 [LIBM_SVID_COMPAT].
24957 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
24958 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
24959 [LIBM_SVID_COMPAT].
24960 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
24961 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
24962 [LIBM_SVID_COMPAT].
24963 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
24964 * sysdeps/i386/fpu/w_sqrt.c: New file.
24965 * sysdeps/ia64/fpu/w_acos.c: Likewise.
24966 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
24967 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
24968 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
24969 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
24970 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
24971 * sysdeps/ia64/fpu/w_asin.c: Likewise.
24972 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
24973 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
24974 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
24975 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
24976 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
24977 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
24978 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
24979 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
24980 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
24981 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
24982 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
24983 * sysdeps/ia64/fpu/w_exp.c: Likewise.
24984 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
24985 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
24986 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
24987 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
24988 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
24989 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
24990 * sysdeps/ia64/fpu/w_expf.c: Likewise.
24991 * sysdeps/ia64/fpu/w_expl.c: Likewise.
24992 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
24993 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
24994 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
24995 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
24996 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
24997 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
24998 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
24999 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
25000 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
25001 * sysdeps/ia64/fpu/w_log.c: Likewise.
25002 * sysdeps/ia64/fpu/w_log10.c: Likewise.
25003 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
25004 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
25005 * sysdeps/ia64/fpu/w_log2.c: Likewise.
25006 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
25007 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
25008 * sysdeps/ia64/fpu/w_logf.c: Likewise.
25009 * sysdeps/ia64/fpu/w_logl.c: Likewise.
25010 * sysdeps/ia64/fpu/w_pow.c: Likewise.
25011 * sysdeps/ia64/fpu/w_powf.c: Likewise.
25012 * sysdeps/ia64/fpu/w_powl.c: Likewise.
25013 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
25014 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
25015 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
25016 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
25017 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
25018 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
25019 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
25020 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
25021 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
25022 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
25023 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
25024 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
25025 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
25026 [LIBM_SVID_COMPAT].
25027 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
25028 * sysdeps/ieee754/k_standard.c: Likewise.
25029 * sysdeps/ieee754/k_standardf.c: Likewise.
25030 * sysdeps/ieee754/k_standardl.c: Likewise.
25031 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
25032 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
25033 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
25034 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
25035 long_double_symbol call on [LIBM_SVID_COMPAT].
25036 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
25037 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
25038 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
25039 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
25040 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
25041 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
25042 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
25043 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
25044 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
25045 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
25046 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
25047 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25048 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
25049 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
25050 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
25051 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
25052 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
25053 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
25054 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
25055 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
25056 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
25057 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
25058
25059 2017-09-05 Steve Ellcey <sellcey@cavium.com>
25060
25061 * include/shlib-compat.h (TEST_COMPAT): New Macro.
25062 * malloc/tst-mallocstate.c: Convert from test-skeleton
25063 to test-driver. Ifdef code using TEST_COMPAT macro.
25064 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
25065 * math/test-matherr.c: Likewise.
25066
25067 2017-09-05 Joseph Myers <joseph@codesourcery.com>
25068
25069 [BZ #22086]
25070 * debug/pcprofiledump.c (main): Use byte-swapped mask when
25071 comparing word with byte-swapped constant.
25072
25073 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
25074
25075 [BZ #20498]
25076 * locale/iso-639.def: add Miskito.
25077 * localedata/SUPPORTED: Add miq_NI/UTF-8.
25078 * localedata/locales/miq_NI: New file.
25079
25080 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
25081
25082 [BZ #18822]
25083 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
25084 (__mkdir): Likewise.
25085 * io/chmod.c (__chmod): Add libc_hidden_def.
25086 * io/mkdir.c (__mkdir): Likewise.
25087 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
25088 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
25089 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
25090 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
25091
25092 2017-09-04 Joseph Myers <joseph@codesourcery.com>
25093
25094 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
25095 version to 4.13.
25096
25097 [BZ #22082]
25098 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
25099 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
25100
25101 2017-09-04 Florian Weimer <fweimer@redhat.com>
25102
25103 * math/math.h: Issue warning if log is defined.
25104
25105 2017-09-04 Joseph Myers <joseph@codesourcery.com>
25106
25107 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25108 kernel version to 4.13.
25109
25110 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25111
25112 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
25113 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
25114 parameter.
25115 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
25116 just <bits/types.h>.
25117 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
25118 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
25119 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
25120 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
25121 * misc/preadv2.c: Include <errno.h>.
25122 * misc/preadv64v2.c: Include <errno.h>.
25123 * misc/pwritev2.c: Include <errno.h>.
25124 * misc/pwritev64v2.c: Include <errno.h>.
25125 * sysdeps/posix/preadv2.c: Include <errno.h>.
25126 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
25127 Fix <unistd.h> inclusion.
25128 * sysdeps/posix/pwritev2.c: Include <errno.h>.
25129 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
25130 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
25131 __strtoul_internal): New functions.
25132 * sysdeps/posix/pause.c: Include <sigsetops.h>.
25133 * sysdeps/posix/system.c: Include <sigsetops.h>.
25134 * sysdeps/mach/hurd/i386/Makefile
25135 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
25136 [$(subdir) = csu] (sysdep-only-routines): Likewise.
25137 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
25138 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
25139 __feraiseexcept_renamed to feraiseexcept instead of
25140 __GI_feraiseexcept.
25141 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
25142 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
25143 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
25144 RWF_NOWAIT): Define to 0 if undefined already.
25145 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
25146 boils down to 0.
25147 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
25148 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
25149
25150 2017-09-01 Joseph Myers <joseph@codesourcery.com>
25151
25152 * manual/math.texi (pow10): Do not document.
25153 (pow10f): Likewise.
25154 (pow10l): Likewise.
25155 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
25156 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
25157 * math/libm-test-exp10.inc (pow10_test): Remove.
25158 (do_test): Do not call pow10.
25159 * math/w_exp10_compat.c (pow10): Make into compat symbol.
25160 [NO_LONG_DOUBLE] (pow10l): Likewise.
25161 * math/w_exp10f_compat.c (pow10f): Likewise.
25162 * math/w_exp10l_compat.c (pow10l): Likewise.
25163 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
25164 (pow10): Make into compat symbol.
25165 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
25166 (pow10f): Make into compat symbol.
25167 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
25168 (pow10l): Make into compat symbol.
25169 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
25170 pow10.
25171 (CFLAGS-nldbl-pow10.c): Remove variable..
25172 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
25173 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
25174 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
25175 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
25176 Undefine and redefine.
25177 (pow10l): Make into compat symbol.
25178 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
25179 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
25180 * sysdeps/arm/libm-test-ulps: Likewise.
25181 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
25182 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25183 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25184 * sysdeps/microblaze/libm-test-ulps: Likewise.
25185 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25186 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25187 * sysdeps/nios2/libm-test-ulps: Likewise.
25188 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25189 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
25190 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
25191 * sysdeps/sh/libm-test-ulps: Likewise.
25192 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
25193 * sysdeps/tile/libm-test-ulps: Likewise.
25194 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25195
25196 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
25197
25198 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
25199
25200 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25201
25202 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
25203 "../ChangeLog.old/ChangeLog.8".
25204 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
25205 "../ChangeLog.old/ChangeLog.14".
25206
25207 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25208
25209 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
25210 Threads Library.
25211
25212 2017-09-01 Joseph Myers <joseph@codesourcery.com>
25213
25214 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
25215
25216 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
25217
25218 * csu/version.c (banner): Remove "by Roland McGrath et al.".
25219 * nptl/Banner: Remove "by Ulrich Drepper et al.".
25220
25221 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
25222
25223 * stdlib/tst-atexit-common.c (do_test): Test support for at least
25224 32 atexit handlers.
25225
25226 2017-09-01 Zack Weinberg <zackw@panix.com>
25227
25228 * math/math.h (HUGE_VAL): Improve commentary.
25229
25230 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25231 Andreas Schwab <schwab@suse.de>
25232
25233 [BZ #21530]
25234 * include/stdio.h (__gen_tempfd): New function.
25235 * stdio-common/Makefile (routines): Add gentempfd.
25236 * stdio-common/gentempfd.c: New file.
25237 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
25238 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
25239 unnamed file first.
25240
25241 2017-09-01 Florian Weimer <fweimer@redhat.com>
25242
25243 [BZ #21915]
25244 [BZ #21922]
25245 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
25246 result to determine success or failure, not the errno value.
25247 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
25248 (tst-nss-files-hosts-erange): Link with -ldl.
25249 * nss/tst-nss-files-hosts-erange.c: New file.
25250 * nss/tst-resolv-basic.c (response): Handle nodata.example.
25251 (do_test): Add NO_DATA tests.
25252 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
25253 (do_test): Call it.
25254
25255 2017-09-01 Florian Weimer <fweimer@redhat.com>
25256
25257 [BZ #21922]
25258 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
25259 coming from gethostbyname2_r.
25260
25261 2017-09-01 Florian Weimer <fweimer@redhat.com>
25262
25263 * support/namespace.h (struct support_chroot_configuration): Add
25264 hosts, host_conf.
25265 (struct support_chroot): Add path_hosts, path_host_conf.
25266 * support/support_chroot.c (write_file): New function.
25267 (support_chroot_create): Call it to process /etc/resolv.conf,
25268 /etc/hosts, /etc/host.conf.
25269 (support_chroot_free): Update.
25270
25271 2017-09-01 Florian Weimer <fweimer@redhat.com>
25272
25273 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
25274 status indicates it is set.
25275
25276 2017-09-01 Florian Weimer <fweimer@redhat.com>
25277
25278 [BZ #20532]
25279 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
25280 function lookup failures more reliable.
25281
25282 2017-09-01 Florian Weimer <fweimer@redhat.com>
25283
25284 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
25285 (getcanonname): Likewise.
25286 (gaih_inet): Likewise.
25287
25288 2017-09-01 Florian Weimer <fweimer@redhat.com>
25289
25290 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
25291 (getcanonname): Likewise.
25292 (gaih_inet): Likewise.
25293
25294 2017-08-31 Steve Ellcey <sellcey@cavium.com>
25295 Richard Henderson <rth@twiddle.net>
25296
25297 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
25298 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
25299 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
25300 (IREG_SIZE, OREG_SIZE): New macros.
25301 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
25302 (IREG_SIZE, OREG_SIZE): New macros.
25303 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
25304 (IREG_SIZE): New macro.
25305 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
25306 (IREG_SIZE): New macro.
25307 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
25308 New includes.
25309 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
25310 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
25311 (__CONCATX): Handle exceptions correctly on large values that may
25312 set FE_INVALID.
25313 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
25314 Initialize if not already set.
25315 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
25316
25317 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25318
25319 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
25320 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
25321 Likewise.
25322 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
25323 Likewise.
25324 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
25325 Likewise.
25326 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
25327 Likewise.
25328 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
25329 Likewise.
25330 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
25331 Likewise.
25332 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
25333 Likewise.
25334 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
25335 (NO_CANCELLATION): Likewise.
25336 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
25337 Likewise.
25338 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
25339 Likewise.
25340 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
25341 Likewise.
25342 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
25343 (NO_CANCELLATION): Likewise.
25344 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
25345 (NO_CANCELLATION): Likewise.
25346 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
25347 Likewise
25348 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
25349 Likewise.
25350 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
25351 Likewise.
25352 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
25353 Likewise.
25354 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
25355 hidden prototype.
25356 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
25357 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
25358
25359 2017-08-31 Steve Ellcey <sellcey@cavium.com>
25360
25361 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
25362 in resolver call.
25363
25364 2017-08-31 Florian Weimer <fweimer@redhat.com>
25365
25366 * include/libc-symbols.h (internal_function): Remove.
25367
25368 2017-08-31 Florian Weimer <fweimer@redhat.com>
25369
25370 * stdlib/fmtmsg.c (internal_addseverity): Remove
25371 internal_function.
25372
25373 2017-08-31 Florian Weimer <fweimer@redhat.com>
25374
25375 * stdio-common/printf_fp.c (group_number): Remove
25376 internal_function.
25377 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
25378
25379 2017-08-31 Florian Weimer <fweimer@redhat.com>
25380
25381 * posix/fnmatch.c (internal_function): Remove definition.
25382 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
25383 * posix/regcomp.c (peek_token, init_word_char)
25384 (duplicate_node_closure, fetch_token, peek_token)
25385 (peek_token_bracket, build_range_exp, build_collating_symbol):
25386 Likewise.
25387 * posix/regex_internal.c (re_string_construct_common)
25388 (create_ci_newstate, create_cd_newstate, re_string_allocate)
25389 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
25390 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
25391 (re_string_translate_buffer, re_string_reconstruct)
25392 (re_string_peek_byte_case, re_string_fetch_byte_case)
25393 (re_string_destruct, re_string_context_at, re_node_set_alloc)
25394 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
25395 (re_node_set_add_intersect, re_node_set_init_union)
25396 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
25397 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
25398 (re_dfa_add_node, calc_state_hash, re_acquire_state)
25399 (re_acquire_state_context): Likewise.
25400 * posix/regex_internal.h (internal_function): Remove definition.
25401 (re_string_realloc_buffers, build_wcs_buffer)
25402 (build_wcs_upper_buffer, build_upper_buffer)
25403 (re_string_translate_buffer, re_string_context_at)
25404 (re_string_char_size_at, re_string_wchar_at)
25405 (re_string_elem_size_at): Likewise.
25406 * posix/regexec.c (match_ctx_init, match_ctx_clean)
25407 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
25408 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
25409 (re_search_internal, re_search_2_stub, re_search_stub)
25410 (re_copy_regs, prune_impossible_nodes, check_matching)
25411 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
25412 (free_fail_stack_return, sift_states_iter_mb)
25413 (sift_states_backward, build_sifted_states)
25414 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
25415 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
25416 (check_subexp_limits, sift_states_bkref, merge_state_array)
25417 (find_recover_state, transit_state, merge_state_with_log)
25418 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
25419 (transit_state_mb, transit_state_bkref, get_subexp)
25420 (get_subexp_sub, find_subexp_node, check_arrival)
25421 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
25422 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
25423 (check_node_accept_bytes, find_collation_sequence_value)
25424 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
25425 (acquire_init_state_context, check_halt_node_context)
25426 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
25427 (sub_epsilon_src_nodes): Likewise.
25428 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
25429 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
25430 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
25431 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
25432 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
25433 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
25434 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
25435 * sysdeps/posix/ttyname.c (getttyname): Likewise.
25436 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
25437 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
25438 (PREADV): Likewise.
25439 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
25440 (PREADV): Likewise.
25441 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
25442 (PWRITEV): Likewise.
25443 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
25444 (PWRITEV): Likewise.
25445 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
25446 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
25447
25448 2017-08-31 Florian Weimer <fweimer@redhat.com>
25449
25450 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
25451 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
25452 Remove internal_function.
25453 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
25454 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
25455 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
25456 (__deallocate_stack, __libc_pthread_init)
25457 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
25458 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
25459 (__libc_disable_asynccancel, __librt_disable_asynccancel):
25460 Likewise.
25461 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
25462 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
25463 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
25464 Likewise.
25465 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
25466 (__pthread_mutex_unlock_usercnt): Likewise.
25467
25468 2017-08-31 Florian Weimer <fweimer@redhat.com>
25469
25470 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
25471 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
25472 (fts_safe_changedir): Remove internal_function.
25473 * io/ftw.c (internal_function): Remove definition.
25474 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
25475
25476 2017-08-31 Florian Weimer <fweimer@redhat.com>
25477
25478 * inet/deadline.c (__deadline_current_time)
25479 (__deadline_from_timeval, __deadline_to_ms): Remove
25480 internal_function.
25481 * inet/getnameinfo.c (nrl_domainname): Likewise.
25482 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
25483 * inet/inet6_option.c (add_pad): Likewise.
25484 * inet/net-internal.h (__deadline_current_time)
25485 (__deadline_from_timeval, __deadline_to_ms): Likewise.
25486 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
25487 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
25488 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
25489
25490 2017-08-31 Joseph Myers <joseph@codesourcery.com>
25491
25492 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
25493 include <bits/nan.h>.
25494 * math/Makefile (headers): Remove bits/nan.h.
25495 * bits/nan.h: Remove.
25496 * sysdeps/ieee754/bits/nan.h: Likewise.
25497 * sysdeps/mips/bits/nan.h: Likewise.
25498
25499 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
25500 not include <bits/inf.h>.
25501 * math/Makefile (headers): Remove bits/inf.h.
25502 * bits/inf.h: Remove.
25503 * sysdeps/ieee754/bits/inf.h: Likewise.
25504
25505 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
25506 bits/huge_vall.h or bits/huge_val_flt128.h.
25507 (HUGE_VAL): Define directly here.
25508 [__USE_ISOC99] (HUGE_VALF): Likewise.
25509 [__USE_ISOC99] (HUGE_VALL): Likewise.
25510 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25511 (HUGE_VAL_F128): Likewise.
25512 * math/Makefile (headers): Remove bits/huge_val.h,
25513 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
25514 * bits/huge_val.h: Remove.
25515 * bits/huge_val_flt128.h: Likewise.
25516 * bits/huge_valf.h: Likewise.
25517 * bits/huge_vall.h: Likewise.
25518 * sysdeps/ia64/bits/huge_vall.h: Likewise.
25519 * sysdeps/ieee754/bits/huge_val.h: Likewise.
25520 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
25521 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
25522 * sysdeps/sh/bits/huge_val.h: Likewise.
25523 * sysdeps/sparc/bits/huge_vall.h: Likewise.
25524 * sysdeps/x86/bits/huge_vall.h: Likewise.
25525
25526 2017-08-31 Florian Weimer <fweimer@redhat.com>
25527
25528 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
25529 internal_function.
25530 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
25531 Likewise.
25532 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
25533 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
25534 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
25535 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
25536 * elf/dl-fini.c (_dl_sort_fini): Likewise.
25537 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
25538 * elf/dl-libc.c (dlerror_run): Likewise.
25539 * elf/dl-load.c (add_name_to_object, decompose_rpath)
25540 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
25541 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
25542 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
25543 Likewise.
25544 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
25545 (_dl_higher_prime_number, _dl_strtoul): Likewise.
25546 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
25547 * elf/dl-profile.c (_dl_start_profile): Likewise.
25548 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
25549 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
25550 Likewise.
25551 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
25552 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
25553 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
25554 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
25555 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
25556 (_dl_allocate_tls_storage): Likewise.
25557 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
25558 (_dl_check_all_versions): Likewise.
25559 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
25560 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
25561 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
25562 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25563 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
25564 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
25565 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
25566 internal_function from __dl_start.
25567 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
25568 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
25569 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
25570 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
25571 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
25572 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
25573 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
25574 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
25575 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
25576 (_dl_next_ld_env_entry, _dl_important_hwcaps)
25577 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
25578 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
25579 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
25580 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
25581 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
25582 Likewise.
25583 (struct rtld_global_ro): Remove internal_function from the
25584 _dl_lookup_symbol_x member.
25585 (_dl_symbol_value): Remove. No longer defined anywhere.
25586 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
25587 internal_function.
25588 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25589 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
25590 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
25591 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
25592 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
25593 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
25594 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
25595 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
25596 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
25597 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
25598 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
25599 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
25600
25601 2017-08-31 Florian Weimer <fweimer@redhat.com>
25602
25603 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
25604 Remove internal_function.
25605 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
25606 Likewise.
25607 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
25608 Likewise.
25609
25610 2017-08-31 Florian Weimer <fweimer@redhat.com>
25611
25612 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
25613 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
25614 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
25615
25616 2017-08-31 Florian Weimer <fweimer@redhat.com>
25617
25618 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
25619 (__gai_enqueue_request): Remove internal_function.
25620 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
25621 (__gai_remove_request, __gai_notify, __gai_notify_only)
25622 (__gai_sigqueue): Likewise.
25623 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
25624 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
25625 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
25626 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
25627 Likewise.
25628
25629 2017-08-31 Florian Weimer <fweimer@redhat.com>
25630
25631 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
25632 * include/dirent.h (__opendirat, __getdents, __getdents64)
25633 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
25634 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
25635 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
25636 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
25637 Likewise.
25638 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
25639
25640 2017-08-31 Florian Weimer <fweimer@redhat.com>
25641
25642 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
25643 internal_function.
25644 (GETCWD_RETURN_TYPE): Likewise.
25645
25646 2017-08-31 Florian Weimer <fweimer@redhat.com>
25647
25648 * include/time.h (__tz_compute, __strptime_internal): Remove
25649 internal_function.
25650 * time/strptime_l.c (__strptime_internal): Likewise.
25651 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
25652
25653 2017-08-31 Florian Weimer <fweimer@redhat.com>
25654
25655 * iconv/gconv.c (__gconv): Remove internal_function.
25656 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
25657 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
25658 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
25659 (__gconv_release_cache): Likewise.
25660 * iconv/gconv_close.c (__gconv_close): Likewise.
25661 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
25662 (read_conf_file, __gconv_get_path): Likewise.
25663 * iconv/gconv_db.c (derivation_lookup, add_derivation)
25664 (__gconv_release_step, gen_steps, increment_counter)
25665 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
25666 (__gconv_close_transform, free_modules_db): Likewise.
25667 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
25668 Likewise.
25669 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
25670 (__gconv_find_transform, __gconv_lookup_cache)
25671 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
25672 (__gconv_close_transform, __gconv_release_cache)
25673 (__gconv_loaded_object, __gconv_release_shlib)
25674 (__gconv_compare_alias): Likewise.
25675 * iconv/gconv_open.c (__gconv_open): Likewise.
25676 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
25677 * iconv/iconvconfig.c (add_module): Likewise.
25678 * intl/dcigettext.c (plural_lookup, guess_category_value)
25679 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
25680 * intl/eval-plural.h (plural_eval): Likewise.
25681 * intl/finddomain.c (_nl_find_domain): Likewise.
25682 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
25683 (_nl_load_domain, _nl_find_msg): Likewise.
25684 (internal_function): Remove definition.
25685 * intl/loadinfo.h (internal_function): Likewise.
25686 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
25687 internal_function.
25688 * intl/localealias.c (internal_function): Remove definition.
25689 (read_alias_file): Remove internal_function.
25690 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
25691 * intl/plural-exp.h (internal_function): Remove definition.
25692 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
25693 internal_function.
25694 * intl/plural.c: Regenerate.
25695 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
25696 * locale/coll-lookup.c (__collidx_table_lookup)
25697 (__collseq_table_lookup): Likewise.
25698 * locale/coll-lookup.h (__collidx_table_lookup)
25699 (__collseq_table_lookup): Likewise.
25700 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
25701 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
25702 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
25703 (_nl_unload_locale): Likewise.
25704 * locale/localeinfo.h (struct __locale_data): Remove
25705 internal_function from cleanup member.
25706 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
25707 (_nl_remove_locale, _nl_load_locale_from_archive)
25708 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
25709 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
25710 (_nl_cleanup_time): Remove internal_function.
25711 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
25712 (_nl_parse_alt_digit): Likewise.
25713 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
25714 (_nl_select_era_entry): Likewise.
25715 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
25716 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
25717 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
25718 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
25719 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
25720
25721 2017-08-31 Florian Weimer <fweimer@redhat.com>
25722
25723 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
25724 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
25725 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
25726 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
25727 Likewise.
25728 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
25729 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
25730 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
25731 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
25732 Likewise.
25733 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
25734
25735 2017-08-31 Florian Weimer <fweimer@redhat.com>
25736
25737 * misc/getttyent.c (skip, value): Remove internal_function.
25738 * misc/syslog.c (openlog_internal): Likewise.
25739 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
25740
25741 2017-08-31 Florian Weimer <fweimer@redhat.com>
25742
25743 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
25744 (__nss_rewrite_field): Remove internal_function.
25745 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25746 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
25747 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
25748 * nss/nsswitch.c (nss_parse_file, nss_getline)
25749 (nss_parse_service_list, nss_new_service): Likewise.
25750 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
25751 * nss/valid_field.c (__nss_valid_field): Likewise.
25752 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
25753
25754 2017-08-31 Florian Weimer <fweimer@redhat.com>
25755
25756 * malloc/arena.c (__malloc_fork_lock_parent)
25757 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
25758 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
25759 internal_function from defintions.
25760 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
25761 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
25762 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
25763 internal_function from declarations.
25764 * malloc/malloc.c (internal_function): Do not define.
25765 (mem2mem_check): Remove internal_function from declaration.
25766 (munmap_chunk, mremap_chunk): Remove internal_function.
25767 * malloc/mtrace.c (tr_where): Likewise.
25768
25769 2017-08-31 Florian Weimer <fweimer@redhat.com>
25770
25771 * include/rpc/pmap_clnt.h (__get_socket): Remove
25772 internal_function.
25773 * sunrpc/auth_des.c (synchronize): Likewise.
25774 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
25775 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
25776 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
25777 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
25778 (key_call): Likewise.
25779 * sunrpc/pm_getport.c (__get_socket): Likewise.
25780 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
25781 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
25782 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
25783 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
25784 (invalidate): Likewise.
25785 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
25786 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
25787 (set_input_fragment, get_input_bytes): Likewise.
25788
25789 2017-08-31 Florian Weimer <fweimer@redhat.com>
25790
25791 * malloc/malloc.c (_int_free): Remove locked variable and related
25792 asserts.
25793
25794 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
25795
25796 [BZ #22051]
25797 * Makerules (build-module-helper-objlist): Filter out
25798 $(elf-objpfx)sofini.os.
25799 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
25800 needed.
25801
25802 2017-08-31 Florian Weimer <fweimer@redhat.com>
25803
25804 * libio/fcloseall.c: Assume weak_alias is defined.
25805 * libio/feof.c: Likewise.
25806 * libio/fileno.c: Likewise.
25807 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
25808 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
25809 definitions.
25810 (_IO_file_open): Call __open directly.
25811 (_IO_new_file_sync): Assume ESPIPE is defined.
25812 (_IO_file_seekoff_maybe_mmap): Call __read directly.
25813 (_IO_new_file_write): Call __write directly.
25814 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
25815 * libio/ftello64.c (__ftello64): Assume EIO is defined.
25816 * libio/genops.c: Assume _LIBC is defined.
25817 (save_for_backup): Remove internal_function.
25818 * libio/getc.c: Assume weak_alias is defined.
25819 * libio/getwc.c: Likewise.
25820 * libio/iofclose.c: Assume _LIBC is defined.
25821 * libio/iofdopen.c: Likewise.
25822 (_IO_fcntl): Remove macro definition.
25823 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
25824 Call __fcntl directly.
25825 * libio/iofflush.c: Assume weak_alias is defined.
25826 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
25827 defined.
25828 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
25829 * libio/iofgets.c: Likewise.
25830 * libio/iofopen.c: Assume _LIBC is defined.
25831 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
25832 * libio/iofputs.c: Assume weak_alias is defined.
25833 * libio/iofread.c: Likewise.
25834 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
25835 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
25836 * libio/ioftell.c: Assume weak_alias is defined.
25837 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
25838 * libio/iofwide.c: Assume _LIBC is defined.
25839 (_IO_fwide): Drop SHARED conditional because it is implied by
25840 SHLIB_COMPAT.
25841 * libio/iofwrite.c: Assume weak_alias is defined.
25842 * libio/iogetdelim.c: Likewise.
25843 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
25844 * libio/iogetwline.c (wmemcpy): Remove macro definition.
25845 (_IO_getwline): Call __wmemcpy directly.
25846 * libio/iopopen.c: Assume _LIBC is defined.
25847 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
25848 (_IO_close): Remove macro definitions.
25849 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
25850 _exit directly.
25851 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
25852 directly.
25853 * libio/ioputs.c: Assume weak_alias is defined.
25854 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
25855 * libio/iosetbuffer.c: Assume weak_alias is defined.
25856 * libio/iosetvbuf.c: Likewise.
25857 * libio/ioungetc.c: Likewise.
25858 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
25859 libc_hidden_def, libc_hidden_weak, NULL are defined.
25860 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
25861 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
25862 defined.
25863 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
25864 definitions.
25865 (_IO_old_file_init_internal): Drop SHARED conditional because it
25866 is implied by SHLIB_COMPAT.
25867 (_IO_old_file_fopen): Call __open directly.
25868 (_IO_old_file_sync): Assume ESPIPE is defined.
25869 (_IO_old_file_write): Call __write directly.
25870 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
25871 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
25872 Call __fcntl directly.
25873 * libio/oldiofgetpos.c: Assume weak_alias is defined.
25874 (_IO_old_fgetpos): Assume EIO is defined.
25875 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
25876 (_IO_old_fgetpos64): Assume EIO is defined.
25877 * libio/oldiofsetpos.c: Assume weak_alias is defined.
25878 (_IO_old_fsetpos): Assume EIO is defined.
25879 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
25880 (_IO_old_fsetpos64): Assume EIO is defined.
25881 * libio/oldiopopen.c: Assume _LIBC is defined.
25882 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
25883 (_IO_close): Remove macro definitions.
25884 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
25885 directly.
25886 (_IO_old_proc_close): Call __close, __waitpid directly.
25887 * libio/put.c: Assume weak_alias is defined.
25888 * libio/stdfiles.c: Assume _LIBC is defined.
25889 * libio/stdio.c: Likewise.
25890 * libio/wfileops.c: Likewise.
25891 (_IO_wfile_sync): Assume ESPIPE is defined.
25892 * libio/wgenops.c: Assume _LIBC is defined.
25893 (save_for_wbackup): Remove internal_function.
25894
25895 2017-08-31 Florian Weimer <fweimer@redhat.com>
25896
25897 * malloc/malloc.c (top_check): Change return type to void. Remove
25898 internal_function.
25899 * malloc/hooks.c (top_check): Likewise.
25900 (malloc_check, realloc_check, memalign_check): Adjust.
25901
25902 2017-08-30 Joseph Myers <joseph@codesourcery.com>
25903
25904 [BZ #21457]
25905 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
25906 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
25907 sigcontext and namespace requirements.
25908 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
25909 * sysdeps/m68k/sys/ucontext.h: Likewise.
25910 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
25911 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
25912 <bits/sigcontext.h>.
25913 (__ctx): Define earlier.
25914 (mcontext_t): Define structure contents rather than using struct
25915 sigcontext.
25916 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
25917 __glibc_reserved1 instead of __reserved.
25918 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
25919 <bits/sigcontext.h>.
25920 (__ctx): Define earlier.
25921 (mcontext_t): Define structure contents rather than using struct
25922 sigcontext.
25923 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
25924 mcontext_t instead of struct sigcontext.
25925 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
25926 <bits/sigcontext.h>.
25927 (__ctx): Define earlier.
25928 (mcontext_t): Define structure contents rather than using struct
25929 sigcontext.
25930 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
25931 <bits/sigcontext.h>.
25932 (__ctx): Define earlier.
25933 (mcontext_t): Define structure contents rather than using struct
25934 sigcontext.
25935 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
25936 mcontext_t instead of struct sigcontext.
25937 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
25938 mcontext_t instead of struct sigcontext.
25939 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
25940 <bits/sigcontext.h>.
25941 (__ctx): New macro.
25942 (struct __ia64_fpreg_mcontext): New type.
25943 (mcontext_t): Define structure contents rather than using struct
25944 sigcontext.
25945 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
25946 (uc_sigmask): Define using __ctx.
25947 (uc_stack): Likewise.
25948 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
25949 <bits/sigcontext.h>.
25950 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
25951 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
25952 <bits/sigcontext.h>.
25953 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
25954 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
25955 <bits/sigcontext.h>.
25956 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
25957 <bits/sigcontext.h>.
25958 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
25959 <bits/sigcontext.h>.
25960 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
25961 <bits/sigcontext.h>.
25962 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
25963 <bits/sigcontext.h>.
25964 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
25965 <bits/sigcontext.h>.
25966 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
25967 <bits/sigcontext.h>.
25968 (__ctx): Define earlier.
25969 (mcontext_t): Define structure contents rather than using struct
25970 sigcontext.
25971 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
25972 <bits/sigcontext.h>. Include <bits/types.h>.
25973 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
25974 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
25975 (test-xfail-XPG42/ucontext.h/conform): Likewise.
25976 (test-xfail-UNIX98/signal.h/conform): Likewise.
25977 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
25978 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
25979 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
25980 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
25981 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
25982 (test-xfail-POSIX2008/signal.h/conform): Likewise.
25983 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
25984 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
25985 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
25986
25987 2017-08-30 Florian Weimer <fweimer@redhat.com>
25988
25989 * malloc/dynarray_emplace_enlarge.c
25990 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
25991 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
25992 * malloc/tst-dynarray.c (test_long_overflow): New function.
25993 (do_test): Call it.
25994
25995 2017-08-30 Florian Weimer <fweimer@redhat.com>
25996
25997 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
25998 (set_arena_corrupt): Remove definitions.
25999 (mtrim): Do not check for corrupt arena.
26000 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
26001 Likewise.
26002
26003 2017-08-30 Florian Weimer <fweimer@redhat.com>
26004
26005 [BZ #21754]
26006 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
26007 check_action.
26008 (ptmalloc_init): Do not set or use check_action.
26009 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
26010 call to malloc_printerr. Remove return statement.
26011 (free_check): Likewise. Remove arena unlock.
26012 (top_check): Update comment. Adjust call to malloc_printerr.
26013 Remove heap repair code.
26014 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
26015 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
26016 (sysmalloc): Adjust call to malloc_printerr.
26017 (munmap_chunk, __libc_realloc): Likewise. Remove return
26018 statement.
26019 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
26020 Remove errout label and corresponding gotos.
26021 (_int_free): Likewise. Remove arena unlock.
26022 (do_set_mallopt_check): Do not set check_action.
26023 (malloc_printerr): Adjust parameter list. Do not mark arena as
26024 corrupt.
26025 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
26026 comment.
26027 * manual/probes.texi (Memory Allocation Probes): Remove
26028 memory_mallopt_check_action.
26029
26030 2017-08-30 Steve Ellcey <sellcey@cavium.com>
26031
26032 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
26033 Use pointer to uint64_t instead of long int for sp.
26034
26035 2017-08-30 Florian Weimer <fweimer@redhat.com>
26036
26037 [BZ #21754]
26038 * malloc/malloc.c (malloc_printerr): Always terminate the process,
26039 without printing a backtrace. Do not leak any information in the
26040 error message.
26041 * manual/memory.texi (Heap Consistency Checking): Update.
26042 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
26043
26044 2017-08-30 Florian Weimer <fweimer@redhat.com>
26045
26046 Do not scale NPTL tests with available number of CPUs.
26047 * nptl/tst-cond16.c (count): Set to constant value of 8.
26048 * nptl/tst-cond18.c (count): Likewise.
26049
26050 2017-08-29 Joseph Myers <joseph@codesourcery.com>
26051
26052 [BZ #22035]
26053 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
26054 Define to take a second argument that is a macro that
26055 concatentates a suffix, not the suffix itself.
26056 (__CONCAT_d): New macro.
26057 (__CONCAT_f): Likewise.
26058 (__CONCAT_l): Likewise.
26059
26060 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
26061
26062 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
26063 by child.
26064
26065 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26066 Aurelien Jarno <aurelien@aurel32.net>
26067 Maciej W. Rozycki <macro@imgtec.com>
26068
26069 [BZ #21956]
26070 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
26071 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
26072 `mips16-syscall6' and `mips16-syscall7'.
26073 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
26074 (CFLAGS-mips16-syscall7.c): Remove.
26075 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
26076 Remove `__mips16_syscall5', `__mips16_syscall6' and
26077 `__mips16_syscall7'.
26078 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
26079 (__mips16_syscall0): Rename `__mips16_syscall_return' to
26080 `__mips_syscall_return'.
26081 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
26082 (__mips16_syscall1): Likewise.
26083 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
26084 (__mips16_syscall2): Likewise.
26085 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
26086 (__mips16_syscall3): Likewise.
26087 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
26088 (__mips16_syscall4): Likewise.
26089 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
26090 Remove.
26091 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
26092 Remove.
26093 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
26094 Remove.
26095 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
26096 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
26097 `__mips16_syscall5'. Remove prototype.
26098 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
26099 `__mips16_syscall6'. Remove prototype.
26100 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
26101 `__mips16_syscall7'. Remove prototype.
26102 (__nomips16, __mips16_syscall_return): Move to...
26103 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
26104 (__nomips16, __mips_syscall_return): ... here.
26105 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
26106 `__mips16_syscall_return' to `__mips_syscall_return'.
26107 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
26108 `internal_syscall##nr'.
26109 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
26110 `internal_syscall##nr'.
26111 (FORCE_FRAME_POINTER): Remove.
26112 (__mips_syscall5): New prototype.
26113 (internal_syscall5): Rewrite to call `__mips_syscall5'.
26114 (__mips_syscall6): New prototype.
26115 (internal_syscall6): Rewrite to call `__mips_syscall6'.
26116 (__mips_syscall7): New prototype.
26117 (internal_syscall7): Rewrite to call `__mips_syscall7'.
26118 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
26119 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
26120 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
26121 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
26122 (sysdep_routines): Add libc-do-syscall.
26123 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
26124 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
26125
26126 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26127
26128 [BZ #21672]
26129 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
26130 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
26131 (advise_stack_range): New function.
26132 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
26133 stack non required to advise_stack_range at allocatestack.c
26134
26135 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26136
26137 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
26138
26139 2017-08-29 Florian Weimer <fweimer@redhat.com>
26140
26141 [BZ #22026]
26142 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
26143 __end_fct. Mangle __end_fct after setting it to NULL.
26144 * iconv/Makefile (tests): Add tst-gconv-init-failure.
26145 (modules-names, modules-names-tests): Add
26146 tst-gconv-init-failure-mod.
26147 (gconv-modules): New target.
26148 (tst-gconv-init-failure-mod.so): Link against libsupport.
26149 (tst-gconv-init-failure): Depend on gconv-modules,
26150 tst-gconv-init-failure-mod.so.
26151 * iconv/tst-gconv-init-failure-mod.c: New file.
26152 * iconv/tst-gconv-init-failure.c: Likewise.
26153 * iconv/test-gconv-modules: Likewise.
26154
26155 2017-08-29 Florian Weimer <fweimer@redhat.com>
26156
26157 [BZ #22025]
26158 * iconv/gconv_db.c (free_derivation): Remove redundant
26159 parentheses.
26160 (gen_steps): Unconditionally mangle __btowc_fct after
26161 initialization.
26162 (increment_counter): Likewise. Do not call init_fct for internal
26163 modules.
26164
26165 2017-08-29 Joseph Myers <joseph@codesourcery.com>
26166
26167 [BZ #22028]
26168 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26169 (_MSUF_): Remove macro.
26170 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
26171 Likewise.
26172 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26173 (__REDIRFROM_X): New macro.
26174 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
26175 Likewise.
26176 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
26177 (__REDIRTO_X): Likewise.
26178 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
26179 arguments.
26180 (__MATH_REDIRCALL_2): Likewise.
26181 (__MATH_REDIRCALL_INTERNAL): Likewise.
26182 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
26183 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
26184 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
26185 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
26186 * math/test-finite-macros.c: New file.
26187 * math/Makefile (tests): Add test-finite-macros.
26188 (CFLAGS-test-finite-macros.c): New variable.
26189
26190 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
26191 Jeff Law <law@redhat.com>
26192
26193 [BZ #22025]
26194 Mangle NULL pointers in iconv/gconv.
26195 * iconv/gconv_cache.c (find_module): Demangle init_fct before
26196 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
26197 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
26198 is non-NULL before demangling the end_fct. Check for NULL
26199 end_fct after demangling.
26200 (__gconv_release_step): Demangle the end_fct before checking
26201 it for NULL. Remove assert on __shlibc_handle != NULL.
26202 (gen_steps): Don't check btowc_fct for NULL before mangling.
26203 Demangle init_fct before checking for NULL.
26204 (increment_counter): Likewise.
26205 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
26206 end_fct for NULL before mangling.
26207 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
26208 for NULL.
26209
26210 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
26211
26212 [BZ #21971]
26213 * locale/iso-639.def: add Morisyen.
26214
26215 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26216
26217 [BZ #21930]
26218 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
26219 (iszero): New C++ implementation that does not use
26220 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
26221 signaling nans are enabled, since __builtin_types_compatible_p
26222 is a C-only feature.
26223 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
26224 defined, include ieee754_float128.h for access to the union and
26225 member ieee854_float128.ieee.
26226 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
26227 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
26228 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
26229 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
26230 options of test-math-zero on powerpc64le.
26231
26232 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
26233
26234 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26235 Change double to float.
26236
26237 2017-08-28 Joseph Myers <joseph@codesourcery.com>
26238
26239 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
26240 unconditional.
26241 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
26242 conditional code; define contents only for [LIBM_SVID_COMPAT].
26243
26244 2017-08-28 Florian Weimer <fweimer@redhat.com>
26245
26246 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
26247 (abi-lp64_be-options): Remove.
26248 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
26249 (abi-hard-options): Likewise.
26250 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
26251 (abi-o32_hard-options, abi-o32_soft_2008-options)
26252 (abi-o32_hard_2008-options, abi-n32_soft-options)
26253 (abi-n32_hard-options, abi-n32_soft_2008-options)
26254 (abi-n32_hard_2008-options, abi-n64_soft-options)
26255 (abi-n64_hard-options, abi-n64_soft_2008-options)
26256 (abi-n64_hard_2008-options): Likewise.
26257 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
26258 (abi-64-v1-options, abi-64-v2-options): Likewise.
26259 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
26260 (abi-64-options): Likewise.
26261 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
26262 (abi-64-options): Likewise.
26263 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
26264 (abi-64-options): Likewise.
26265 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
26266 (abi-64-options, abi-x32-options): Likewise.
26267
26268 2017-08-28 Florian Weimer <fweimer@redhat.com>
26269
26270 Store supported list of SYS_* system calls in the source tree.
26271 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
26272 (bits/syscall.h): Generate from list file.
26273 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
26274 [$(subdir) = misc] (tests): Add tst-syscall-list.
26275 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
26276 [$(subdir) = misc] (tst-syscall-list-macros.list)
26277 [$(subdir) = misc] (tst-syscall-list-nr.list)
26278 (tst-syscall-list-sys.list): Helper targets for new
26279 tst-syscall-list test.
26280 [$(subdir) = misc] (tst-syscall-list.out): Run test script
26281 tst-syscall-list.sh.
26282 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
26283 target. Do not include bits/syscall.d.
26284 [$(subdir) = misc] (generated): Do not update.
26285 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
26286 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
26287 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
26288 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
26289
26290 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
26291
26292 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
26293 (tst-cxa_atexit, tst-on_exit): Likewise.
26294 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
26295 tst-cxa_atexit, and tst-on_exit.
26296 * stdlib/tst-atexit-common.c: New file.
26297 * stdlib/tst-atexit.c: New file.
26298 * stdlib/tst-at_quick_exit.c: New file.
26299 * stdlib/tst-cxa_atexit.c: New file.
26300 * stdlib/tst-on_exit.c: New file.
26301
26302 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26303
26304 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
26305 * mach/stack_chk_fail_local.c: New file.
26306 * hurd/stack_chk_fail_local.c: New file.
26307 * mach/Machrules ($(interface-library)-routines): Add
26308 stack_chk_fail_local.
26309 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
26310 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
26311 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
26312 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
26313 * hurd/Makefile (CFLAGS-hurdstartup.o,
26314 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
26315
26316 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
26317
26318 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
26319 (index_cpu_*, index_arch_*): Removed.
26320
26321 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26322
26323 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
26324 Use uint64_t instead of unsigned long.
26325
26326 2017-08-25 Joseph Myers <joseph@codesourcery.com>
26327
26328 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
26329 [__HAVE_DISTINCT_FLOAT128].
26330
26331 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
26332 of <bits/math-finite.h>.
26333 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
26334 inclusion of <bits/math-finite.h>.
26335 * math/bits/math-finite.h (__REDIRTO_X): Do not define
26336 conditionally on [__MATH_DECLARING_LDOUBLE && defined
26337 __NO_LONG_DOUBLE_MATH].
26338 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
26339 (__MATH_REDIRCALL_2): Likewise.
26340 (__MATH_REDIRCALL_INTERNAL): Likewise.
26341 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
26342 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
26343 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
26344
26345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
26346 Remove file.
26347 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
26348 Likewise.
26349 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
26350 Likewise.
26351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
26352 Likewise.
26353 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
26354 Likewise.
26355 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
26356 Likewise.
26357 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
26358 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
26359 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
26360 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
26361 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
26362 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
26363 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
26364 w_sqrtf_compat-ppc32.
26365
26366 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26367
26368 * math/math.h [defined __cplusplus] (issignaling): In the long
26369 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
26370 is not defined. Call __issignaling, otherwise.
26371
26372 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26373
26374 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
26375 syscall definitions and replace __builtin_expect with __glibc_likely.
26376 * sysdeps/unix/syscall-template.S: Update comment about cancellable
26377 syscall.
26378 (SYSCALL_CANCELLABLE): Removedefinition
26379 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
26380 definition.
26381 (PSEUDO_END): Likewise.
26382 [IS_IN (libpthread)] (CENABLE): Likewise.
26383 [IS_IN (libpthread)] (CDISABLE): Likewise.
26384 [IS_IN (libc)] (CENABLE): Likewise.
26385 [IS_IN (libc)] (CENABLE): Likewise.
26386 [IS_IN (librt)] (CDISABLE): Likewise.
26387 [IS_IN (librt)] (CDISABLE): Likewise.
26388 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26389 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
26390 definition.
26391 (PSEUDO_END): Likewise.
26392 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
26393 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
26394 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
26395 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
26396 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
26397 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
26398 (CENABLE): Likewise.
26399 (CDISABLE): Likewise.
26400 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26401 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
26402 defintion.
26403 (PSEUDO_END): Likewise.
26404 [IS_IN (libpthread)] (CENABLE): Likewise.
26405 [IS_IN (libpthread)] (CDISABLE): Likewise.
26406 [IS_IN (libc)] (CENABLE): Likewise.
26407 [IS_IN (libc)] (CENABLE): Likewise.
26408 [IS_IN (librt)] (CDISABLE): Likewise.
26409 [IS_IN (librt)] (CDISABLE): Likewise.
26410 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26411 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
26412 definition.
26413 (PSEUDO_END): Likewise.
26414 [IS_IN (libpthread)] (CENABLE): Likewise.
26415 [IS_IN (libpthread)] (CDISABLE): Likewise.
26416 [IS_IN (libc)] (CENABLE): Likewise.
26417 [IS_IN (libc)] (CENABLE): Likewise.
26418 [IS_IN (librt)] (CDISABLE): Likewise.
26419 [IS_IN (librt)] (CDISABLE): Likewise.
26420 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26421 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
26422 definition.
26423 (PSEUDO_END): Likewise.
26424 [IS_IN (libpthread)] (CENABLE): Likewise.
26425 [IS_IN (libpthread)] (CDISABLE): Likewise.
26426 [IS_IN (libc)] (CENABLE): Likewise.
26427 [IS_IN (libc)] (CENABLE): Likewise.
26428 [IS_IN (librt)] (CDISABLE): Likewise.
26429 [IS_IN (librt)] (CDISABLE): Likewise.
26430 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26431 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
26432 definition.
26433 (PSEUDO_END): Likewise.
26434 [IS_IN (libpthread)] (CENABLE): Likewise.
26435 [IS_IN (libpthread)] (CDISABLE): Likewise.
26436 [IS_IN (libc)] (CENABLE): Likewise.
26437 [IS_IN (libc)] (CENABLE): Likewise.
26438 [IS_IN (librt)] (CDISABLE): Likewise.
26439 [IS_IN (librt)] (CDISABLE): Likewise.
26440 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26441 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
26442 definition.
26443 (PSEUDO_END): Likewise.
26444 [IS_IN (libpthread)] (CENABLE): Likewise.
26445 [IS_IN (libpthread)] (CDISABLE): Likewise.
26446 [IS_IN (libc)] (CENABLE): Likewise.
26447 [IS_IN (libc)] (CENABLE): Likewise.
26448 [IS_IN (librt)] (CDISABLE): Likewise.
26449 [IS_IN (librt)] (CDISABLE): Likewise.
26450 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26451 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
26452 definition.
26453 (PSEUDO_END): Likewise.
26454 [IS_IN (libpthread)] (CENABLE): Likewise.
26455 [IS_IN (libpthread)] (CDISABLE): Likewise.
26456 [IS_IN (libc)] (CENABLE): Likewise.
26457 [IS_IN (libc)] (CENABLE): Likewise.
26458 [IS_IN (librt)] (CDISABLE): Likewise.
26459 [IS_IN (librt)] (CDISABLE): Likewise.
26460 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26461 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
26462 Remove definition.
26463 (PSEUDO_END): Likewise.
26464 [IS_IN (libpthread)] (CENABLE): Likewise.
26465 [IS_IN (libpthread)] (CDISABLE): Likewise.
26466 [IS_IN (libc)] (CENABLE): Likewise.
26467 [IS_IN (libc)] (CENABLE): Likewise.
26468 [IS_IN (librt)] (CDISABLE): Likewise.
26469 [IS_IN (librt)] (CDISABLE): Likewise.
26470 (SINGLE_THREAD_P): Likewise.
26471 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
26472 definition.
26473 (PSEUDO_END): Likewise.
26474 [IS_IN (libpthread)] (CENABLE): Likewise.
26475 [IS_IN (libpthread)] (CDISABLE): Likewise.
26476 [IS_IN (libc)] (CENABLE): Likewise.
26477 [IS_IN (libc)] (CENABLE): Likewise.
26478 [IS_IN (librt)] (CDISABLE): Likewise.
26479 [IS_IN (librt)] (CDISABLE): Likewise.
26480 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26481 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
26482 definition.
26483 (PSEUDO_END): Likewise.
26484 [IS_IN (libpthread)] (CENABLE): Likewise.
26485 [IS_IN (libpthread)] (CDISABLE): Likewise.
26486 [IS_IN (libc)] (CENABLE): Likewise.
26487 [IS_IN (libc)] (CENABLE): Likewise.
26488 [IS_IN (librt)] (CDISABLE): Likewise.
26489 [IS_IN (librt)] (CDISABLE): Likewise.
26490 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26491 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
26492 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
26493 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
26494 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
26495 definition.
26496 (PSEUDO_END): Likewise.
26497 [IS_IN (libpthread)] (CENABLE): Likewise.
26498 [IS_IN (libpthread)] (CDISABLE): Likewise.
26499 [IS_IN (libc)] (CENABLE): Likewise.
26500 [IS_IN (libc)] (CENABLE): Likewise.
26501 [IS_IN (librt)] (CDISABLE): Likewise.
26502 [IS_IN (librt)] (CDISABLE): Likewise.
26503 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26504 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
26505 definition.
26506 (PSEUDO_END): Likewise.
26507 [IS_IN (libpthread)] (CENABLE): Likewise.
26508 [IS_IN (libpthread)] (CDISABLE): Likewise.
26509 [IS_IN (libc)] (CENABLE): Likewise.
26510 [IS_IN (libc)] (CENABLE): Likewise.
26511 [IS_IN (librt)] (CDISABLE): Likewise.
26512 [IS_IN (librt)] (CDISABLE): Likewise.
26513 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26514 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
26515 definition.
26516 (PSEUDO_END): Likewise.
26517 [IS_IN (libpthread)] (CENABLE): Likewise.
26518 [IS_IN (libpthread)] (CDISABLE): Likewise.
26519 [IS_IN (libc)] (CENABLE): Likewise.
26520 [IS_IN (libc)] (CENABLE): Likewise.
26521 [IS_IN (librt)] (CDISABLE): Likewise.
26522 [IS_IN (librt)] (CDISABLE): Likewise.
26523 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26524 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
26525 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
26526 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
26527 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
26528 definition.
26529 (PSEUDO_END): Likewise.
26530 [IS_IN (libpthread)] (CENABLE): Likewise.
26531 [IS_IN (libpthread)] (CDISABLE): Likewise.
26532 [IS_IN (libc)] (CENABLE): Likewise.
26533 [IS_IN (libc)] (CENABLE): Likewise.
26534 [IS_IN (librt)] (CDISABLE): Likewise.
26535 [IS_IN (librt)] (CDISABLE): Likewise.
26536 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26537 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
26538 definition.
26539 (PSEUDO_END): Likewise.
26540 [IS_IN (libpthread)] (CENABLE): Likewise.
26541 [IS_IN (libpthread)] (CDISABLE): Likewise.
26542 [IS_IN (libc)] (CENABLE): Likewise.
26543 [IS_IN (libc)] (CENABLE): Likewise.
26544 [IS_IN (librt)] (CDISABLE): Likewise.
26545 [IS_IN (librt)] (CDISABLE): Likewise.
26546 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
26547
26548 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
26549
26550 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
26551
26552 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26553
26554 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
26555
26556 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 [BZ #21982]
26559 * string/stratcliff.c (do_test): Declare size, nchars, inner,
26560 middle and outer with size_t instead of int. Repleace %d and
26561 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
26562 "MAX (outer, nchars - 64)" to support unsigned outer and
26563 nchars. Also exit loop when outer == 0.
26564
26565 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26566
26567 * include/fcntl.h (__fcntl_nocancel): Remove definition.
26568 * include/signal.h (__sigsuspend_nocancel): Likewise.
26569 * include/time.h (__nanosleep_nocancel): Likewise.
26570 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
26571 * login/utmp_file.c: Include non cancellable syscall header.
26572 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
26573 prototype.
26574
26575 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
26576
26577 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
26578 .byte sequences with AVX512F instructions.
26579 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
26580 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
26581 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
26582 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
26583 Likewise.
26584 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26585 Likewise.
26586
26587 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26588 Steve Ellcey <sellcey@cavium.com>
26589
26590 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
26591 Use PTR_REG macro in cmp instruction.
26592
26593 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26594
26595 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
26596 Change the return type of the ifunc resolver to match the return
26597 type of the target function.
26598
26599 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26600
26601 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
26602 (preadv64): Likewise.
26603 (pwrite64(: Likewise.
26604 (pwritev64): Likewise.
26605
26606 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
26607 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
26608 (LOAD_ARGS_0): Likewise.
26609 (LOAD_ARGS_1): Likewise.
26610 (LOAD_ARGS_2): Likewise.
26611 (LOAD_ARGS_3): Likewise.
26612 (LOAD_ARGS_4): Likewise.
26613 (LOAD_ARGS_5): Likewise.
26614 (LOAD_ARGS_6): Likewise.
26615 (LOAD_REGS_0): Likewise.
26616 (LOAD_REGS_1): Likewise.
26617 (LOAD_REGS_2): Likewise.
26618 (LOAD_REGS_3): Likewise.
26619 (LOAD_REGS_4): Likewise.
26620 (LOAD_REGS_5): Likewise.
26621 (LOAD_REGS_6): Likewise.
26622 (ASM_ARGS_0): Likewise.
26623 (ASM_ARGS_1): Likewise.
26624 (ASM_ARGS_2): Likewise.
26625 (ASM_ARGS_3): Likewise.
26626 (ASM_ARGS_4): Likewise.
26627 (ASM_ARGS_5): Likewise.
26628 (ASM_ARGS_6): Likewise.
26629 (LOAD_ARGS_TYPES_1): Likewise.
26630 (LOAD_ARGS_TYPES_2): Likewise.
26631 (LOAD_ARGS_TYPES_3): Likewise.
26632 (LOAD_ARGS_TYPES_4): Likewise.
26633 (LOAD_ARGS_TYPES_5): Likewise.
26634 (LOAD_ARGS_TYPES_6): Likewise.
26635 (LOAD_REGS_TYPES_1): Likewise.
26636 (LOAD_REGS_TYPES_2): Likewise.
26637 (LOAD_REGS_TYPES_3): Likewise.
26638 (LOAD_REGS_TYPES_4): Likewise.
26639 (LOAD_REGS_TYPES_5): Likewise.
26640 (LOAD_REGS_TYPES_6): Likewise.
26641 (TYPEFY): New define.
26642 (ARGIFY): Likewise.
26643 (internal_syscall0): Likewise.
26644 (internal_syscall1): Likewise.
26645 (internal_syscall2): Likewise.
26646 (internal_syscall3): Likewise.
26647 (internal_syscall4): Likewise.
26648 (internal_syscall5): Likewise.
26649 (internal_syscall6): Likewise.
26650 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
26651 (INTERNAL_SYSCALL_NCS): Remove define.
26652 (internal_syscall1): Add define.
26653
26654 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26655
26656 * math/w_remainder_compat.c: Remove duplicate inclusion of
26657 math-svid-compat.h.
26658 * math/w_remainderf_compat.c: Likewise.
26659 * math/w_remainderl_compat.c: Likewise.
26660
26661 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26662
26663 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26664
26665 2017-08-22 Joseph Myers <joseph@codesourcery.com>
26666
26667 [BZ #21684]
26668 * math/tgmath.h (__floating_type): Simplify definitions.
26669 (__real_integer_type): New macro.
26670 (__complex_integer_type): Likewise.
26671 (__expr_is_real): Likewise.
26672 (__tgmath_real_type_sub): Update comment to describe handling of
26673 complex types.
26674 (__tgmath_complex_type_sub): New macro.
26675 (__tgmath_complex_type): Likewise.
26676 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26677 (__TGMATH_CF128): Use __expr_is_real.
26678 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
26679 __expr_is_real.
26680 (__TGMATH_BINARY_REAL_IMAG): Likewise.
26681 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
26682 * math/gen-tgmath-tests.py (Type.create_type): Create complex
26683 integer types.
26684
26685 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26686
26687 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
26688 macro.
26689 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
26690 alias.
26691 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
26692 Likewise.
26693
26694 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
26695 nanosleep_not_cancel with __nanosleep_nocancel.
26696 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
26697 (__nanosleep_nocancel): New macro.
26698 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
26699 function.
26700 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
26701 macro.
26702 (__nanosleep_nocancel): New prototype.
26703
26704 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
26705 pause_not_cancel with __pause_nocancel.
26706 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
26707 (__pause_nocancel): New macro.
26708 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
26709 macro.
26710 (__pause_nocancel): New prototype.
26711 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
26712
26713 2017-08-22 Martin Sebor <msebor@redhat.com>
26714
26715 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
26716 to return a pointer to the same type as the target function.
26717
26718 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
26719
26720 [BZ #18822]
26721 [BZ #21986]
26722 * include/printf.h (__printf_fphex): Add attribute_hidden.
26723 (__guess_grouping): New prototype.
26724 * stdio-common/printf_fp.c (__guess_grouping): Removed.
26725 * stdio-common/reg-printf.c (__register_printf_specifier): Add
26726 libc_hidden_proto and libc_hidden_def.
26727 * stdlib/strfmon_l.c (__guess_grouping): Removed.
26728 (__vstrfmon_l): Remove the third argument passed to
26729 __guess_grouping.
26730
26731 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
26732
26733 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
26734 definition for issignaling that does not rely on __MATH_TG,
26735 since __MATH_TG uses __builtin_types_compatible_p, which is only
26736 available in C mode.
26737 (CFLAGS-test-math-issignaling.cc): New variable.
26738 * math/Makefile [CXX] (tests): Add test-math-issignaling.
26739 * math/test-math-issignaling.cc: New test for C++ implementation
26740 of type-generic issignaling.
26741 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
26742 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
26743 options of test-math-issignaling on powerpc64le.
26744
26745 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
26746
26747 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
26748 building libc.a.
26749 (hidden_proto): Likewise.
26750 (hidden_tls_proto): Likewise.
26751 (__hidden_proto): Likewise.
26752
26753 2017-08-22 Florian Weimer <fweimer@redhat.com>
26754
26755 math: Statically link tests of internal functionality.
26756 * math/Makefile (tests): Remove atest-exp, atest-sincos,
26757 atest-exp2.
26758 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
26759 (gmp-objs): Remove assignment.
26760 (atest-exp, atest-sincos, atest-exp2): Remove targets.
26761
26762 2017-08-22 Joseph Myers <joseph@codesourcery.com>
26763
26764 [BZ #21987]
26765 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
26766 and copy to ...
26767 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
26768 ... here.
26769 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
26770 ... and here.
26771
26772 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
26773 variable definitions above inclusion of ../Rules.
26774
26775 2017-08-21 Joseph Myers <joseph@codesourcery.com>
26776
26777 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
26778 case calling __builtin_unreachable.
26779
26780 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26781
26782 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
26783 __waitpid_nocancel.
26784 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
26785 (__waitpid_nocancel): New macro.
26786 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
26787 macro.
26788 (__waitpid_nocancel): Replace macro with a function.
26789 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
26790 function.
26791
26792 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
26793 __fcntl_nocancel.
26794 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
26795 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
26796
26797 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
26798 __writev_nocancel_nostatus.
26799 (write_call_graph): Likewise.
26800 (write_bb_counts): Likewise.
26801 * resolv/herror.c (herror): Likewise.
26802 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
26803 macro.
26804 (__writev_nocancel_nostatus): New macro.
26805 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
26806 Remove macro.
26807 (__writev_nocancel_nostatus): New function.
26808
26809 2017-08-21 Joseph Myers <joseph@codesourcery.com>
26810
26811 Revert:
26812 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
26815 building libc.a.
26816 (hidden_proto): Likewise.
26817 (hidden_tls_proto): Likewise.
26818 (__hidden_proto): Likewise.
26819
26820 [BZ #21973]
26821 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
26822 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
26823 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
26824 Likewise.
26825 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
26826 Likewise.
26827 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
26828 Likewise.
26829 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
26830 Likewise.
26831 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
26832 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
26833 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
26834 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
26835 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26836 GLIBC_2.0 sqrtl symbol.
26837
26838 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
26839 [__USE_MISC] (_LIB_VERSION): Likewise.
26840 [__USE_MISC] (struct exception): Likewise.
26841 [__USE_MISC] (matherr): Likewise.
26842 [__USE_MISC] (DOMAIN): Likewise.
26843 [__USE_MISC] (SING): Likewise.
26844 [__USE_MISC] (OVERFLOW): Likewise.
26845 [__USE_MISC] (UNDERFLOW): Likewise.
26846 [__USE_MISC] (TLOSS): Likewise.
26847 [__USE_MISC] (PLOSS): Likewise.
26848 [__USE_MISC] (HUGE): Likewise.
26849 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
26850 * math/math-svid-compat.h: New file.
26851 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
26852 and matherrl.
26853 * include/math.h [!_ISOMAC] (__matherr): Remove.
26854 * manual/arith.texi (FP Exceptions): Do not document matherr.
26855 * math/Makefile (tests): Change test-matherr to test-matherr-3.
26856 (tests-internal): New variable.
26857 (install-lib): Do not add libieee.a.
26858 (non-lib.a): Likewise.
26859 (extra-objs): Do not add libieee.a and ieee-math.o.
26860 (CPPFLAGS-s_lib_version.c): Remove variable.
26861 ($(objpfx)libieee.a): Remove rule.
26862 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
26863 * math/ieee-math.c: Remove.
26864 * math/libm-test-support.c (matherr): Remove.
26865 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
26866 and license notices. Include <math-svid-compat.h> and
26867 <shlib-compat.h>.
26868 (matherr): Undefine as macro. Use compat_symbol_reference.
26869 (_LIB_VERSION): Likewise.
26870 * math/test-matherr-2.c: New file.
26871 * math/test-matherr-3.c: Likewise.
26872 * sysdeps/generic/math_private.h (__kernel_standard): Remove
26873 declaration.
26874 (__kernel_standard_f): Likewise.
26875 (__kernel_standard_l): Likewise.
26876 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
26877 <math_private.h>. Include <math-svid-compat.h>.
26878 (_LIB_VERSION): Undefine as macro.
26879 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
26880 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
26881 [LIBM_SVID_COMPAT], use compat_symbol.
26882 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
26883 <math_private.h>. Include <math-svid-compat.h>.
26884 (matherr): Undefine as macro.
26885 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
26886 compat_symbol.
26887 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
26888 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
26889 compat_symbol_reference.
26890 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
26891 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
26892 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
26893 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
26894 (MATHERR_D): Remove declaration.
26895 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
26896 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
26897 [LIBM_BUILD] (pmatherrf): Likewise.
26898 [LIBM_BUILD] (pmatherr): Likewise.
26899 [LIBM_BUILD] (pmatherrl): Likewise.
26900 (DOMAIN): Likewise.
26901 (SING): Likewise.
26902 (OVERFLOW): Likewise.
26903 (UNDERFLOW): Likewise.
26904 (TLOSS): Likewise.
26905 (PLOSS): Likewise.
26906 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
26907 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
26908 compat_symbol.
26909 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
26910 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
26911 compat_symbol.
26912 * math/lgamma-compat.h: Include <math-svid-compat.h>.
26913 * math/w_acos_compat.c: Likewise.
26914 * math/w_acosf_compat.c: Likewise.
26915 * math/w_acosh_compat.c: Likewise.
26916 * math/w_acoshf_compat.c: Likewise.
26917 * math/w_acoshl_compat.c: Likewise.
26918 * math/w_acosl_compat.c: Likewise.
26919 * math/w_asin_compat.c: Likewise.
26920 * math/w_asinf_compat.c: Likewise.
26921 * math/w_asinl_compat.c: Likewise.
26922 * math/w_atan2_compat.c: Likewise.
26923 * math/w_atan2f_compat.c: Likewise.
26924 * math/w_atan2l_compat.c: Likewise.
26925 * math/w_atanh_compat.c: Likewise.
26926 * math/w_atanhf_compat.c: Likewise.
26927 * math/w_atanhl_compat.c: Likewise.
26928 * math/w_cosh_compat.c: Likewise.
26929 * math/w_coshf_compat.c: Likewise.
26930 * math/w_coshl_compat.c: Likewise.
26931 * math/w_exp10_compat.c: Likewise.
26932 * math/w_exp10f_compat.c: Likewise.
26933 * math/w_exp10l_compat.c: Likewise.
26934 * math/w_exp2_compat.c: Likewise.
26935 * math/w_exp2f_compat.c: Likewise.
26936 * math/w_exp2l_compat.c: Likewise.
26937 * math/w_fmod_compat.c: Likewise.
26938 * math/w_fmodf_compat.c: Likewise.
26939 * math/w_fmodl_compat.c: Likewise.
26940 * math/w_hypot_compat.c: Likewise.
26941 * math/w_hypotf_compat.c: Likewise.
26942 * math/w_hypotl_compat.c: Likewise.
26943 * math/w_j0_compat.c: Likewise.
26944 * math/w_j0f_compat.c: Likewise.
26945 * math/w_j0l_compat.c: Likewise.
26946 * math/w_j1_compat.c: Likewise.
26947 * math/w_j1f_compat.c: Likewise.
26948 * math/w_j1l_compat.c: Likewise.
26949 * math/w_jn_compat.c: Likewise.
26950 * math/w_jnf_compat.c: Likewise.
26951 * math/w_jnl_compat.c: Likewise.
26952 * math/w_lgamma_main.c: Likewise.
26953 * math/w_lgamma_r_compat.c: Likewise.
26954 * math/w_lgammaf_main.c: Likewise.
26955 * math/w_lgammaf_r_compat.c: Likewise.
26956 * math/w_lgammal_main.c: Likewise.
26957 * math/w_lgammal_r_compat.c: Likewise.
26958 * math/w_log10_compat.c: Likewise.
26959 * math/w_log10f_compat.c: Likewise.
26960 * math/w_log10l_compat.c: Likewise.
26961 * math/w_log2_compat.c: Likewise.
26962 * math/w_log2f_compat.c: Likewise.
26963 * math/w_log2l_compat.c: Likewise.
26964 * math/w_log_compat.c: Likewise.
26965 * math/w_logf_compat.c: Likewise.
26966 * math/w_logl_compat.c: Likewise.
26967 * math/w_pow_compat.c: Likewise.
26968 * math/w_powf_compat.c: Likewise.
26969 * math/w_powl_compat.c: Likewise.
26970 * math/w_remainder_compat.c: Likewise.
26971 * math/w_remainderf_compat.c: Likewise.
26972 * math/w_remainderl_compat.c: Likewise.
26973 * math/w_scalb_compat.c: Likewise.
26974 * math/w_scalbf_compat.c: Likewise.
26975 * math/w_scalbl_compat.c: Likewise.
26976 * math/w_sinh_compat.c: Likewise.
26977 * math/w_sinhf_compat.c: Likewise.
26978 * math/w_sinhl_compat.c: Likewise.
26979 * math/w_sqrt_compat.c: Likewise.
26980 * math/w_sqrtf_compat.c: Likewise.
26981 * math/w_sqrtl_compat.c: Likewise.
26982 * math/w_tgamma_compat.c: Likewise.
26983 * math/w_tgammaf_compat.c: Likewise.
26984 * math/w_tgammal_compat.c: Likewise.
26985 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
26986 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
26987 * sysdeps/ieee754/k_standard.c: Likewise.
26988 * sysdeps/ieee754/k_standardf.c: Likewise.
26989 * sysdeps/ieee754/k_standardl.c: Likewise.
26990 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
26991 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
26992 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
26993 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
26994 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
26995 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
26996 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
26997 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
26998 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
26999 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
27000 Likewise.
27001 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
27002 Likewise.
27003 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
27004 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
27005 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
27006 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
27007
27008 2017-08-21 Florian Weimer <fweimer@redhat.com>
27009
27010 [BZ #21864]
27011 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
27012 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
27013 Move before inclusion of ../Rules.
27014
27015 2017-08-21 Florian Weimer <fweimer@redhat.com>
27016
27017 [BZ #21972]
27018 * assert/assert.h (assert): Use static_cast (bool) for C++.
27019 Use the ternary operator in the warning branch for GNU C.
27020 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
27021 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
27022 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
27023 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
27024 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
27025
27026 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27027
27028 [BZ #18822]
27029 * sysdeps/unix/sysv/linux/x86_64/init-first.c
27030 (__syscall_clock_gettime): Add attribute_hidden.
27031 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
27032 (__start_context): Likewise.
27033
27034 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27035
27036 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27037 building libc.a.
27038 (hidden_proto): Likewise.
27039 (hidden_tls_proto): Likewise.
27040 (__hidden_proto): Likewise.
27041
27042 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27043
27044 * include/libc-symbols.h (attribute_hidden): Enable hidden
27045 visibility in libc.a compiled with PIE.
27046
27047 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27048
27049 [BZ #18822]
27050 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
27051 Add attribute_hidden.
27052
27053 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27054
27055 [BZ #21864]
27056 * Makerules (all-nonlib): Add $(others-extras).
27057 * catgets/Makefile (others-extras): New.
27058 * elf/Makefile (others-extras): Likewise.
27059 * nss/Makefile (others-extras): Likewise.
27060
27061 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27062
27063 [BZ #18822]
27064 * csu/libc-start.c (__libc_multiple_libcs): Removed.
27065 * elf/dl-open.c: Include <libc-internal.h>.
27066 (__libc_multiple_libcs): Removed.
27067 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
27068 <hp-timing.h>.
27069 * include/libc-internal.h (__libc_multiple_libcs): New.
27070 * misc/sbrk.c: Include <libc-internal.h>.
27071 (__libc_multiple_libcs): Removed.
27072
27073 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27074
27075 [BZ #18822]
27076 * grp/initgroups.c (__nss_group_database): Removed.
27077 (__nss_initgroups_database): Likewise.
27078 * nscd/gai.c (__nss_hosts_database): Likewise.
27079 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
27080 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
27081 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
27082 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
27083 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
27084 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
27085 attribute_hidden.
27086 * nss/nsswitch.c (__nss_database_custom): Define only if
27087 USE_NSCD is defined.
27088 (__nss_configure_lookup): Use __nss_database_custom only if
27089 USE_NSCD is defined.
27090 * nss/nsswitch.h (__nss_database_custom): Declare only if
27091 USE_NSCD is defined. Add attribute_hidden.
27092 (__nss_setent): Add attribute_hidden.
27093 (__nss_endent): Likewise.
27094 (__nss_getent_r): Likewise.
27095 (__nss_getent): Likewise.
27096 (DEFINE_DATABASE): Declare __nss_##arg##_database.
27097
27098 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27099
27100 [BZ #18822]
27101 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
27102 libc_hidden_proto and libc_hidden_def.
27103
27104 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27105
27106 [BZ #18822]
27107 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
27108 Add libc_hidden_proto.
27109 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
27110 Add libc_hidden_def.
27111
27112 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27113
27114 [BZ #21974]
27115 * gmon/Makefile (routines): Remove bb_init_func and
27116 bb_exit_func.
27117 (elide-routines.os): Removed.
27118 * gmon/bb_exit_func.c: Likewise.
27119 * gmon/bb_init_func.c: Likewise.
27120 * include/sys/gmon.h (__bb): Likewise.
27121 (__bb_init_func): Likewise.
27122 (__bb_exit_func): Likewise.
27123 * sysdeps/alpha/bb_init_func.S: Likewise.
27124
27125 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27126
27127 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
27128 * include/setjmp.h (____longjmp_chk): Here. Add
27129 attribute_hidden.
27130
27131 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
27132
27133 [BZ #18822]
27134 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
27135 attribute_hidden.
27136 (__strspn_sse2): Likewise.
27137
27138 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27139
27140 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
27141 (close_not_cancel_no_status): Likewise.
27142 (__close_nocancel): New macro.
27143 (__close_nocancel_nostatus): Likewise.
27144 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
27145 macro.
27146 (close_not_cancel): Likewise.
27147 (close_not_cancel_no_status): Likewise.
27148 (__close_nocancel): New prototype.
27149 (__close_nocancel_nostatus): New function.
27150 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
27151 * catgets/open_catalog.c (__open_catalog): Replace
27152 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
27153 * gmon/gmon.c (write_gmon): Likewise.
27154 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
27155 * intl/loadmsgcat.c (close): Likewise.
27156 * io/ftw.c (open_dir_stream): Likewise.
27157 (ftw_startup): Likewise.
27158 * libio/fileops.c (_IO_file_open): Likewise.
27159 (_IO_file_close_mmap): Likewise.
27160 (_IO_file_close): Likewise.
27161 * libio/iopopen.c (_IO_dup2): Likewise.
27162 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
27163 * locale/loadlocale.c (_nl_load_locale): Likewise.
27164 * login/utmp_file.c (pututline_file): Likewise.
27165 (endutent_file): Likewise.
27166 * misc/daemon.c (daemon): Likewise.
27167 * nscd/nscd_getai.c (__nscd_getai): Likewise.
27168 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
27169 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
27170 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
27171 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27172 * nscd/nscd_helper.c (open_socket): Likewise.
27173 (__nscd_open_socket): Likewise.
27174 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
27175 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
27176 (__nscd_innetgr): Likewise.
27177 * nss/nss_db/db-open.c (internal_setent): Likewise.
27178 * resolv/res-close.c (__res_iclose): Likewise.
27179 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
27180 * sysdeps/posix/closedir.c (__closedir): Likewise.
27181 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
27182 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27183 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
27184 (opendir_tail): Likewise.
27185 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27186 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
27187 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
27188 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
27189 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27190 (gethostid): Likewise.
27191 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27192 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27193 Likewise.
27194 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
27195 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
27196 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27197 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27198 Likewise.
27199 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
27200 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
27201 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27202 Likewise.
27203 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
27204 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27205 Likewise.
27206 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27207 Likewise.
27208 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
27209 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27210 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27211 __close_nocancel.
27212
27213 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
27214 (openat_not_cancel_3): Likewise.
27215 (openat64_not_cancel_3): Likewise).
27216 (openat_not_cancel_3): Likewise).
27217 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
27218 macro.
27219 (openat_not_cancel_3): Likewise.
27220 (openat64_not_cancel): Likewise.
27221 (openat64_not_cancel_3): Likewise.
27222 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
27223 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
27224 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
27225 __open{64}_nocancel.
27226 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
27227 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27228 * sysdeps/posix/opendir.c (__opendirat): Likewise.
27229
27230 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27231
27232 [BZ #18822]
27233 * include/argz.h (__argz_create_sep): New function prototype.
27234 (__argz_append): Likewise.
27235 (__argz_add): Likewise.
27236 (__argz_add_sep): Likewise.
27237 (__argz_delete): Likewise.
27238 (__argz_insert): Likewise.
27239 (__argz_replace): Likewise.
27240 * string/argz.h (__argz_create_sep): Removed.
27241 (__argz_append): Likewise.
27242 (__argz_add): Likewise.
27243 (__argz_add_sep): Likewise.
27244 (__argz_delete): Likewise.
27245 (__argz_insert): Likewise.
27246 (__argz_replace): Likewise.
27247
27248 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27249
27250 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
27251 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
27252 (GNU_PROPERTY_STACK_SIZE): Likewie.
27253 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
27254 (GNU_PROPERTY_LOPROC): Likewise.
27255 (GNU_PROPERTY_HIPROC): Likewise.
27256 (GNU_PROPERTY_LOUSER): Likewise.
27257 (GNU_PROPERTY_HIUSER): Likewise.
27258 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
27259 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
27260 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
27261 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
27262 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
27263 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
27264 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
27265 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
27266 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
27267 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
27268 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
27269 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
27270 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
27271 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
27272 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
27273 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
27274 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
27275 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
27276 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
27277 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
27278 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
27279 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
27280 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
27281
27282 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27283
27284 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
27285 in C++ mode.
27286
27287 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27288
27289 [BZ #21930]
27290 * math/math.h (isinf): Check if in C or C++ mode before using
27291 __builtin_types_compatible_p, since this is a C mode feature.
27292
27293 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27294
27295 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
27296 (__write_nocancel): New macro.
27297 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
27298 Rewrite as a function prototype.
27299 (write_not_cancel): Remove macro.
27300 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
27301 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
27302 (write_gmon): Likewise.
27303 * libio/fileops.c (_IO_new_file_write): Likewise.
27304 * login/utmp_file.c (pututline_file): Likewise.
27305 (updwtmp_file): Likewise.
27306 * stdio-common/psiginfo.c (psiginfo): Likewise.
27307 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27308 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27309 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27310 Likewise.
27311 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27312 Likewise.
27313
27314 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
27315 (__read_nocancel): New macro.
27316 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27317 __read_nocancel.
27318 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
27319 macro.
27320 (__read_nocancel): New prototype.
27321 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
27322 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
27323 with __read_nocancel.
27324 * intl/loadmsgcat.c (read): Likewise.
27325 * libio/fileops.c (_IO_file_read): Likewise.
27326 * locale/loadlocale.c (_nl_load_locale): Likewise.
27327 * login/utmp_file.c (getutent_r_file): Likewise.
27328 (internal_getut_r): Likewise.
27329 (getutline_r_file): Likewise.
27330 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
27331 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
27332 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27333 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27334 Likewise.
27335 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
27336 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27337 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27338 Likewise.
27339 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27340 Likewise.
27341 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27342 Likewise.
27343 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27344 Likewise.
27345 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27346
27347 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
27348
27349 [BZ #21966]
27350 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
27351 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
27352 usable.
27353
27354 2017-08-17 DJ Delorie <dj@redhat.com>
27355
27356 * bug17079.c: Update to new test harness.
27357 * test-digits-dots.c: Likewise.
27358 * test-netdb.c: Likewise.
27359 * tst-field.c: Likewise.
27360 * tst-nss-getpwent.c: Likewise.
27361 * tst-nss-static.c: Likewise.
27362 * tst-nss-test1.c: Likewise.
27363 * tst-nss-test2.c: Likewise.
27364 * tst-nss-test3.c: Likewise.
27365 * tst-nss-test4.c: Likewise.
27366 * tst-nss-test5.c: Likewise.
27367
27368 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27369
27370 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
27371 (open_not_cancel_2): Likewise.
27372 (open_nocancel): New macro.
27373 (open64_nocancel): Likewise.
27374 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
27375 (open_not_cancel_2): Likewise.
27376 (__open_nocancel): New prototype.
27377 (__open64_nocancel): Likewise.
27378 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
27379 __open_nocancel.
27380 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
27381 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
27382 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
27383 with __open_nocancel.
27384 * csu/check_fds.c (check_one_fd): Likewise.
27385 * gmon/gmon.c (write_gmon): Likewise.
27386 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
27387 * intl/loadmsgcat.c (open): Likewise.
27388 * libio/fileops.c (_IO_file_open): Likewise.
27389 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
27390 * locale/loadlocale.c (_nl_load_locale): Likewise.
27391 * login/utmp_file.c (setutent_file): Likewise.
27392 * misc/daemon.c (daemon): Likewise.
27393 * nss/nss_db/db-open.c (internal_setent): Likewise.
27394 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
27395 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
27396 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
27397 (__opendir): Likewise.
27398 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27399 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
27400 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27401 (gethostid): Likewise.
27402 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27403 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27404 Likewise.
27405 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
27406 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
27407 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27408 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27409 Likewise.
27410 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
27411 Likewise.
27412 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
27413 Likewise.
27414 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
27415 Likewise.
27416 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
27417 Likewise.
27418 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
27419 Likewise.
27420 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
27421 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
27422
27423 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
27424
27425 * benchtests/bench-skeleton.c (main): Add support for
27426 latency benchmarking.
27427 * benchtests/scripts/bench.py: Add support for latency benchmarking.
27428
27429 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
27430
27431 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
27432 the startup object.
27433
27434 2017-08-17 Florian Weimer <fweimer@redhat.com>
27435
27436 * include/sys/socket.h (__opensock): Remove internal_function.
27437 * socket/opensock.c (__opensock): Likewise.
27438 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
27439
27440 2017-08-16 Joseph Myers <joseph@codesourcery.com>
27441
27442 [BZ #21944]
27443 * signal/bits/types/__sigval_t.h: New file.
27444 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
27445 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
27446 and define sigval_t using __sigval_t.
27447 * include/bits/types/__sigval_t.h: New file.
27448 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
27449 instead of <bits/types/__sigval_t.h>.
27450 (struct sigevent): Use __sigval_t instead of sigval_t.
27451 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
27452 instead of <bits/types/__sigval_t.h>.
27453 (siginfo_t): Use __sigval_t instead of sigval_t.
27454 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
27455 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
27456 (struct sigevent): Use __sigval_t instead of sigval_t.
27457 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
27458 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
27459 (siginfo_t): Use __sigval_t instead of sigval_t.
27460 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
27461
27462 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27463
27464 * NEWS: Remove "[Add new features here]" for 2.27.
27465
27466 2017-08-16 Joseph Myers <joseph@codesourcery.com>
27467
27468 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
27469 libc.so.
27470
27471 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27472
27473 * NEWS: Mention x86-64 FMA optimization.
27474
27475 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
27476
27477 [BZ #21912]
27478 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27479 Add e_expf-fma.
27480 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
27481 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
27482 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
27483
27484 2017-08-16 Andreas Schwab <schwab@suse.de>
27485
27486 [BZ #16750]
27487 CVE-2009-5064
27488 * elf/ldd.bash.in: Never run file directly.
27489
27490 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
27491
27492 [BZ #21955]
27493 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
27494 (L(SP_INF_0)): Likewise.
27495
27496 2017-08-15 Florian Weimer <fweimer@redhat.com>
27497
27498 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
27499 run-built-tests.
27500
27501 2017-08-15 Florian Weimer <fweimer@redhat.com>
27502
27503 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
27504 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
27505 BROKEN_THREAD_SIGNALS code.
27506 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
27507 request_list): Remove caller_pid member used for
27508 BROKEN_THREAD_SIGNALS.
27509 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
27510 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
27511 Remove BROKEN_THREAD_SIGNALS support.
27512 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
27513 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
27514
27515 2017-08-15 Florian Weimer <fweimer@redhat.com>
27516
27517 * gmon/Makefile (tests): Add tst-gmon.
27518 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
27519 Set.
27520 (tests-special): Add tst-gmon-prof.out.
27521 (tst-gmon.out): Depend on clean-tst-gmon-data.
27522 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
27523 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
27524 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
27525 startup object.
27526 * aclocal.m4 (GPROF): Set and substitute.
27527 * config.amke.in (GPROF): Set.
27528 * configure: Regenerate.
27529
27530 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
27531
27532 * elf/elf.h A (NT_PPC_TAR): New macro.
27533 (NT_PPC_PPR): Likewise.
27534 (NT_PPC_DSCR): Likewise.
27535 (NT_PPC_EBB): Likewise.
27536 (NT_PPC_PMU): Likewise.
27537 (NT_PPC_TM_CGPR): Likewise.
27538 (NT_PPC_TM_CFPR): Likewise.
27539 (NT_PPC_TM_CVMX): Likewise.
27540 (NT_PPC_TM_CVSX): Likewise.
27541 (NT_PPC_TM_SPR): Likewise.
27542 (NT_PPC_TM_CTAR): Likewise.
27543 (NT_PPC_TM_CPPR): Likewise.
27544 (NT_PPC_TM_CDSCR): Likewise.
27545
27546 2017-08-15 Florian Weimer <fweimer@redhat.com>
27547
27548 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
27549 regparm (2) instead of internal_function.
27550 (_MCOUNT_DECL): Adjust.
27551
27552 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
27553
27554 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
27555 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
27556
27557 2017-08-14 Joseph Myers <joseph@codesourcery.com>
27558
27559 * conform/data/sys/wait.h-data (si_value): Do not expect for
27560 XPG42.
27561
27562 2017-08-14 Florian Weimer <fweimer@redhat.com>
27563
27564 [BZ #21962]
27565 NSS: Create stubs for accidentally exported lookup functions.
27566 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
27567 Remove declaration.
27568 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
27569 (ether_hostton): Call __nss_ethers_lookup2 instead.
27570 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
27571 (ether_ntohost): Call __nss_ethers_lookup2 instead.
27572 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
27573 (setup): Call __nss_netgroup_lookup2 instead.
27574 * nss/Makefile (routines): Add compat-lookup.
27575 * nss/Versions (GLIBC_2.27): Add symbol version.
27576 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
27577 (DB_COMPAT_FCT): Remove.
27578 * nss/compat-lookup.c: New file.
27579 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
27580 from databases.def.
27581 * nss/service-lookup.c (NO_COMPAT): Remove definition.
27582 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
27583 (netname2user): Call __nss_publickey_lookup2 instead.
27584 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
27585 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
27586 instead.
27587
27588 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27589 Sergei Trofimovich <slyfox@inbox.ru>
27590
27591 [BZ #21908]
27592 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
27593 Rename to MMAP2_PAGE_UNIT.
27594 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
27595 __OFF_T_MATCHES_OFF64_T is not defined.
27596 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
27597 uint64_t.
27598 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
27599 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
27600
27601 2017-08-14 Florian Weimer <fweimer@redhat.com>
27602
27603 i386: Do not set internal_function.
27604 * config.h.in (USE_REGPARMS, internal_function): Remove.
27605 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
27606 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
27607
27608 2017-08-14 Florian Weimer <fweimer@redhat.com>
27609
27610 * elf/dl-init.c (_dl_init): Remove internal_function.
27611 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
27612 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
27613
27614 2017-08-14 Florian Weimer <fweimer@redhat.com>
27615
27616 * elf/rtld.c (_dl_start): Remove internal_function.
27617 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
27618 _dl_start.
27619
27620 2017-08-14 Florian Weimer <fweimer@redhat.com>
27621
27622 * elf/dl-fini.c (_dl_fini): Remove internal_function
27623 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27624
27625 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
27626
27627 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
27628 (bit_cpu_SHSTK): Likewise.
27629 (index_cpu_IBT): Likewise.
27630 (index_cpu_SHSTK): Likewise.
27631 (reg_IBT): Likewise.
27632 (reg_SHSTK): Likewise.
27633 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27634 Handle index_cpu_IBT and index_cpu_SHSTK.
27635
27636 2017-08-14 Mike FABIAN <mfabian@redhat.com>
27637
27638 [BZ #19982]
27639 * po/fr.po: Fix spelling mistake.
27640
27641 2017-08-13 Florian Weimer <fweimer@redhat.com>
27642
27643 * elf/dl-addr.c (_dl_addr): Remove internal_function.
27644 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
27645 (_dl_catch_error, _dl_receive_error): Likewise.
27646 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
27647 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
27648 (_dl_deallocate_tls): Likewise.
27649 * include/dlfcn.h (_dl_addr): Likewise.
27650 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
27651 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
27652 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
27653 Likewise.
27654
27655 2017-08-13 Florian Weimer <fweimer@redhat.com>
27656
27657 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
27658 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
27659 internal_function.
27660 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
27661
27662 2017-08-13 Florian Weimer <fweimer@redhat.com>
27663
27664 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
27665 internal_function.
27666 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
27667 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
27668 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
27669 internal_function from _dl_make_stack_executable_hook member.
27670 (_dl_make_stack_executable): Remove internal_function.
27671 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
27672 Likewise.
27673 * sysdeps/unix/sysv/linux/dl-execstack.c
27674 (_dl_make_stack_executable): Likewise.
27675
27676 2017-08-13 Florian Weimer <fweimer@redhat.com>
27677
27678 * sysdeps/unix/sysv/linux/netlinkaccess.h
27679 (__netlink_assert_response): Remove internal_function.
27680 * sysdeps/unix/sysv/linux/netlink_assert_response.c
27681 (__netlink_assert_response): Likewise.
27682
27683 2017-08-13 Florian Weimer <fweimer@redhat.com>
27684
27685 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
27686 internal_function.
27687 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
27688
27689 2017-08-13 Florian Weimer <fweimer@redhat.com>
27690
27691 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
27692 internal_function.
27693 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
27694 * inet/netgroup.h (__internal_setnetgrent)
27695 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
27696 * inet/getnetgrent_r.c (__internal_setnetgrent)
27697 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
27698 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
27699 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
27700 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
27701 * nss/nsswitch.h (db_lookup_function): Likewise.
27702
27703 2017-08-13 Florian Weimer <fweimer@redhat.com>
27704
27705 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
27706 Remove internal_function.
27707 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
27708 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
27709 message argument on the stack.
27710 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
27711 Likeweise.
27712
27713 2017-08-12 Mike FABIAN <mfabian@redhat.com>
27714
27715 Adapt test case data to the changes in the thousands
27716 separators.
27717
27718 [BZ #20756]
27719 * localedata/tst-langinfo.sh: Adapt test case data.
27720 * stdlib/tst-strfmon_l.c: Likewise.
27721 * stdlib/tst-strtod4.c: Likewise.
27722 * stdlib/tst-strtod5i.c: Likewise.
27723
27724 2017-08-11 Florian Weimer <fweimer@redhat.com>
27725
27726 [BZ #21242]
27727 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
27728 Suppress pedantic warning resulting from statement expression.
27729 (__ASSERT_FUNCTION): Add missing __extension__.
27730
27731 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27732
27733 * benchtests/bench-memmove-large.c: Print output in JSON
27734 format.
27735 * benchtests/bench-memmove.c: Likewise.
27736
27737 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
27738 * benchtests/bench-memchr.c (do_one_test): Likewise.
27739 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
27740 * benchtests/bench-memcpy.c (do_one_test): Likewise.
27741 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
27742 * benchtests/bench-memmove.c (do_one_test): Likewise.
27743 * benchtests/bench-memset-large.c (do_one_test): Likewise.
27744 * benchtests/bench-memset.c (do_one_test): Likewise.
27745 * benchtests/bench-string.h (test_init): Remove memsets.
27746
27747 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
27748
27749 * manual/lang.texi
27750 (Computing the Width of an Integer Data Type): Rename section to
27751 "Width of an Integer Type". Remove inaccurate statement regarding
27752 lack of C language facilities for determining width of integer
27753 types, and reorder content to improve flow and context of
27754 discussion.
27755
27756 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
27757
27758 * lang.texi (va_copy): Change standard from ISO to C99.
27759 (__va_copy): Add standard and header annotation.
27760 Update description for clarity of origins and current use.
27761
27762 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27763
27764 [BZ #21941]
27765 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
27766 xssqrtqp requires operands to be in Vector Registers
27767 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
27768 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
27769 (__ieee754_sqrtf128): Likewise.
27770
27771 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
27772
27773 * sysdeps/aarch64/memcmp.S (memcmp):
27774 Rewrite of optimized memcmp.
27775
27776 2017-08-10 Florian Weimer <fweimer@redhat.com>
27777
27778 Introduce ld.so exceptions.
27779 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
27780 (_dl_exception_create, _dl_exception_create_format)
27781 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
27782 (_dl_catch_exception): Declare.
27783 (_dl_catch_error): Update comment.
27784 * elf/dl-error-skeleton.c (struct catch): Replace objname,
27785 errstring, malloced members with exception member.
27786 (_dl_out_of_memory): Remove.
27787 (fatal_error): New function, extracted from _dl_signal_error.
27788 (_dl_signal_exception, _dl_signal_cexception): New functions.
27789 (_dl_signal_error): Call _dl_exception_create to allocate an
27790 exception object.
27791 (_dl_catch_exception): New function, based on _dl_catch_error.
27792 (_dl_catch_error): Implement using _dl_catch_exception.
27793 * elf/dl-exception.c: New file.
27794 * elf/Makefile (dl-routines): Add dl-exception.
27795 (elide-routines.os): Likewise.
27796 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
27797 _dl_exception_create_format, _dl_exception_free.
27798 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
27799 _dl_signal_exception.
27800 * elf/dl-lookup.c (make_string): Remove.
27801 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
27802 _dl_signal_cexception, _dl_exception_free.
27803 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
27804 _dl_signal_exception.
27805 * elf/dl-sym.c (do_sym): Likewise.
27806 * elf/dl-version.c (make_string): Remove.
27807 (match_symbol): Use _dl_exception_create_format,
27808 _dl_signal_cexception, _dl_exception_free.
27809 (_dl_check_map_versions): Likewise.
27810 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
27811 _dl_catch_exception.
27812 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
27813 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
27814 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
27815 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
27816 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
27817 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
27818 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
27819 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
27820 Likewise.
27821 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
27822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
27823 (ld.so): Likewise.
27824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
27825 (ld.so): Likewise.
27826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
27827 Likewise.
27828 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
27829 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
27830 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
27831 Likewise.
27832 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
27833 Likewise.
27834 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
27835
27836 2017-08-10 Florian Weimer <fweimer@redhat.com>
27837
27838 * inet/net-internal.h (__inet6_scopeid_pton): Remove
27839 attribute_hidden, internal_function.
27840 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
27841 internal_function.
27842
27843 2017-08-10 Florian Weimer <fweimer@redhat.com>
27844
27845 * malloc/malloc.c (get_max_fast): Reimplement as an inline
27846 function which calls __builtin_unreachable.
27847
27848 2017-08-10 Mike FABIAN <mfabian@redhat.com>
27849
27850 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
27851 Indian monetary formatting
27852 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
27853 test cases.
27854
27855 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
27856
27857 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
27858 Fix typo in comment.
27859
27860 [BZ #21928]
27861 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
27862 PTRACE_SEIZE_DEVEL): Remove.
27863 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
27864 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
27865 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
27866 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
27867 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
27868
27869 2017-08-09 Joseph Myers <joseph@codesourcery.com>
27870
27871 * posix/bits/types.h (__qaddr_t): Remove.
27872
27873 [BZ #21457]
27874 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
27875 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27876 __glibc_reserved1.
27877 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
27878 (ucontext_t): Use __ctx with uc_flags.
27879 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
27880 (__ctxt): Likewise.
27881 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27882 __glibc_reserved1.
27883 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
27884 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27885 __glibc_reserved1.
27886 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
27887 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27888 __glibc_reserved1.
27889 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
27890 macro.
27891 (ucontext_t): Use __ctx with uc_flags.
27892 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
27893 (ucontext_t): Use __ctx with uc_flags.
27894 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
27895 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
27896 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
27897 (ucontext_t): Use __ctx with uc_flags.
27898 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
27899 undefine further down.
27900 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
27901 __glibc_reserved1.
27902 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
27903 undefine further down.
27904 (ucontext_t): Use __ctx with uc_flags.
27905 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
27906 undefine further down.
27907 (ucontext_t): Use __ctx with uc_flags.
27908 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
27909 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
27910 Rename uc_pad to __glibc_reserved1.
27911 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
27912 undefine further down.
27913 (ucontext_t): Use __ctx with uc_flags.
27914 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
27915 further down.
27916 (ucontext_t): Use __ctx with uc_flags.
27917 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
27918 __ctx with uc_flags.
27919 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
27920 (ucontext_t): Use __ctx with uc_flags.
27921 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
27922 __ctx with uc_flags.
27923
27924 2017-08-09 Florian Weimer <fweimer@redhat.com>
27925
27926 [BZ #21932]
27927 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
27928 before early return.
27929
27930 2017-08-09 Andreas Schwab <schwab@suse.de>
27931
27932 [BZ #21041]
27933 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
27934 renamed alias.
27935
27936 [BZ #21041]
27937 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
27938 tst-compat-forwarder.
27939 (modules-names): Add tst-compat-forwarder-mod.
27940 ($(objpfx)tst-compat-forwarder): Depend on
27941 $(objpfx)tst-compat-forwarder-mod.so.
27942 * nptl/tst-compat-forwarder.c: New file.
27943 * nptl/tst-compat-forwarder-mod.c: New file.
27944
27945 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
27946
27947 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
27948 comments.
27949
27950 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
27951 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27952 memcpy_falkor.
27953 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
27954 Bump.
27955 (__libc_ifunc_impl_list): Add __memcpy_falkor.
27956 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
27957 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
27958 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27959 Add falkor.
27960 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
27961 New macro.
27962
27963 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27964
27965 [BZ #759]
27966 * manual/setjmp.texi (getcontex): Document uc_stack value
27967 compatibility differences.
27968
27969 2017-08-08 Joseph Myers <joseph@codesourcery.com>
27970
27971 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
27972 (old_malloc_hook): Likewise.
27973 (old_memalign_hook): Likewise.
27974 (old_realloc_hook): Likewise.
27975 (struct hdr): Likewise.
27976 (flood): Likewise.
27977 (freehook): Likewise.
27978 (mallochook): Likewise.
27979 (memalignhook): Likewise.
27980 (reallochook): Likewise.
27981 (mprobe): Likewise.
27982 * malloc/mtrace.c (mallwatch): Likewise.
27983 (tr_old_free_hook): Likewise.
27984 (tr_old_malloc_hook): Likewise.
27985 (tr_old_realloc_hook): Likewise.
27986 (tr_old_memalign_hook): Likewise.
27987 (tr_where): Likewise.
27988 (lock_and_info): Likewise.
27989 (tr_freehook): Likewise.
27990 (tr_mallochook): Likewise.
27991 (tr_reallochook): Likewise.
27992 (tr_memalignhook): Likewise.
27993 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
27994 * misc/mmap.c (__mmap): Likewise.
27995 * misc/mmap64.c (__mmap64): Likewise.
27996 * misc/mprotect.c (__mprotect): Likewise.
27997 * misc/msync.c (msync): Likewise.
27998 * misc/munmap.c (__munmap): Likewise.
27999 * posix/posix_madvise.c (posix_madvise): Likewise.
28000 * socket/send.c (__send): Likewise.
28001 * socket/sendto.c (__sendto): Likewise.
28002 * socket/setsockopt.c (__setsockopt): Likewise.
28003 * string/memcmp.c (__ptr_t): Remove macro.
28004 (MEMCMP): Use void * instead of ptr_t.
28005 * string/memrchr.c (__ptr_t): Remove macro.
28006 (__memrchr): Use void * instead of ptr_t.
28007 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
28008 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28009 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28010 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
28011 * sysdeps/mach/msync.c (msync): Likewise.
28012 * sysdeps/mach/munmap.c (__munmap): Likewise.
28013 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
28014 Likewise.
28015 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
28016 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
28017 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
28018 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
28019 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
28020 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
28021 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
28022 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
28023 Likewise.
28024 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
28025 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
28026 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
28027 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
28028 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
28029 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
28030 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
28031 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
28032 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
28033 Likewise.
28034 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
28035 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
28036 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
28037 (MEMCMP): Use void * instead of ptr_t.
28038 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
28039 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
28040
28041 2017-08-08 Florian Weimer <fweimer@redhat.com>
28042
28043 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
28044 return statement.
28045
28046 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
28047
28048 [BZ #21913]
28049 * csu/libc-tls.c: Include <startup.h> first.
28050 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
28051 * elf/dl-tunables.c: Include <startup.h> first.
28052 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
28053 * sysdeps/generic/startup.h: New file.
28054 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
28055 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
28056 (I386_USE_SYSENTER): New. Defined to 0.
28057
28058 2017-08-08 Andreas Schwab <schwab@suse.de>
28059
28060 [BZ #21041]
28061 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
28062 * nptl/pt-system.c (system): Likewise.
28063
28064 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28065
28066 [BZ #21780]
28067 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
28068 EOPNOTSUPP.
28069 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
28070 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
28071 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
28072 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
28073 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
28074 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
28075 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
28076
28077 2017-08-07 Joseph Myers <joseph@codesourcery.com>
28078
28079 [BZ #21899]
28080 * bits/sigaction.h (struct sigaction): Define sa_handler and
28081 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
28082 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28083 [__USE_XOPEN_EXTENDED].
28084 (SA_RESTART): Likewise.
28085 (SA_NODEFER): Likewise.
28086 (SA_RESETHAND): Likewise.
28087 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
28088 (struct sigaction): Define sa_handler and sa_sigaction using union
28089 also for [__USE_XOPEN_EXTENDED].
28090 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28091 [__USE_XOPEN_EXTENDED].
28092 (SA_RESTART): Likewise.
28093 (SA_NODEFER): Likewise.
28094 (SA_RESETHAND): Likewise.
28095 * sysdeps/unix/sysv/linux/bits/sigaction.h
28096 (struct sigaction): Define sa_handler and sa_sigaction using union
28097 also for [__USE_XOPEN_EXTENDED].
28098 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28099 [__USE_XOPEN_EXTENDED].
28100 (SA_RESTART): Likewise.
28101 (SA_NODEFER): Likewise.
28102 (SA_RESETHAND): Likewise.
28103 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
28104 (struct sigaction): Define sa_handler and sa_sigaction using union
28105 also for [__USE_XOPEN_EXTENDED].
28106 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28107 [__USE_XOPEN_EXTENDED].
28108 (SA_RESTART): Likewise.
28109 (SA_NODEFER): Likewise.
28110 (SA_RESETHAND): Likewise.
28111 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
28112 (struct sigaction): Define sa_handler and sa_sigaction using union
28113 also for [__USE_XOPEN_EXTENDED].
28114 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28115 [__USE_XOPEN_EXTENDED].
28116 (SA_RESTART): Likewise.
28117 (SA_NODEFER): Likewise.
28118 (SA_RESETHAND): Likewise.
28119 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28120 (struct sigaction): Define sa_handler and sa_sigaction using union
28121 also for [__USE_XOPEN_EXTENDED].
28122 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28123 [__USE_XOPEN_EXTENDED].
28124 (SA_RESTART): Likewise.
28125 (SA_NODEFER): Likewise.
28126 (SA_RESETHAND): Likewise.
28127 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
28128 (struct sigaction): Define sa_handler and sa_sigaction using union
28129 also for [__USE_XOPEN_EXTENDED].
28130 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28131 [__USE_XOPEN_EXTENDED].
28132 (SA_RESTART): Likewise.
28133 (SA_NODEFER): Likewise.
28134 (SA_RESETHAND): Likewise.
28135 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
28136 (struct sigaction): Define sa_handler and sa_sigaction using union
28137 also for [__USE_XOPEN_EXTENDED].
28138 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28139 [__USE_XOPEN_EXTENDED].
28140 (SA_RESTART): Likewise.
28141 (SA_NODEFER): Likewise. Define directly rather than as alias.
28142 (SA_RESETHAND): Likewise.
28143 (SA_INTERRUPT): Define only for [__USE_MISC].
28144 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
28145 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
28146 [__USE_MISC].
28147 (SA_STACK): Define only for [__USE_MISC].
28148 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
28149 (struct sigaction): Define sa_handler and sa_sigaction using union
28150 also for [__USE_XOPEN_EXTENDED].
28151 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28152 [__USE_XOPEN_EXTENDED].
28153 (SA_RESTART): Likewise.
28154 (SA_NODEFER): Likewise.
28155 (SA_RESETHAND): Likewise.
28156 (SA_NOPTRACE): Define only for [__USE_MISC].
28157
28158 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
28159 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
28160 (struct catalog_info): Likewise.
28161 * inet/htontest.c (lo): Likewise.
28162 (foo): Likewise.
28163 * inet/inet_lnaof.c (inet_lnaof): Likewise.
28164 * inet/inet_net.c (inet_network): Likewise.
28165 * inet/inet_netof.c (inet_netof): Likewise.
28166 * inet/rcmd.c (__ivaliduser): Likewise.
28167 (iruserok): Likewise.
28168 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
28169 * locale/programs/locale-spec.c (locale_special): Likewise.
28170 * nis/nis_findserv.c (struct findserv_req): Likewise.
28171 (__nis_findfastest_with_timeout): Likewise.
28172 * nss/test-netdb.c (test_network): Likewise.
28173 * resolv/inet_neta.c (inet_neta): Likewise.
28174 * resolv/ns_date.c (ns_datetosecs): Likewise.
28175 (SECS_PER_DAY): Likewise.
28176 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
28177 Likewise.
28178 * resolv/res_comp.c (__putlong): Likewise.
28179 (__putshort): Likewise.
28180 (_getlong): Likewise.
28181 (_getshort): Likewise.
28182 * resolv/res_debug.c (p_time): Likewise.
28183 (precsize_ntoa): Likewise.
28184 (precsize_aton): Likewise.
28185 (latlon2ul): Likewise.
28186 (loc_aton): Likewise.
28187 (loc_ntoa): Likewise.
28188 * resolv/res_hconf.c (struct netaddr): Likewise.
28189 (_res_hconf_reorder_addrs): Likewise.
28190 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
28191 (clnttcp_control): Likewise.
28192 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
28193 (clntudp_control): Likewise.
28194 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
28195 (clntunix_control): Likewise.
28196 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
28197 * sunrpc/rpc/auth.h (union des_block): Likewise.
28198 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
28199 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
28200 (xdrrec_create): Likewise.
28201 (xdrrec_endofrecord): Likewise.
28202 (flush_out): Likewise.
28203 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
28204 (xdrstdio_putlong): Likewise.
28205 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
28206 Likewise.
28207
28208 * misc/sys/cdefs.h (__long_double_t): Remove.
28209 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
28210 instead of __long_double_t,
28211 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
28212
28213 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
28214
28215 * benchtests/scripts/compare_strings.py: Avoid display error when
28216 running on a text terminal.
28217
28218 * benchtests/scripts/compare_strings.py (main): Add an
28219 optional -base option.
28220 (process_results): New argument base_func.
28221
28222 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
28223 hardcoding memcpy.
28224 * benchtests/bench-memcpy-large.c (test_name): Likewise.
28225 * benchtests/bench-memcpy-random.c (test_name): Likewise.
28226
28227 2017-08-07 Andreas Schwab <schwab@suse.de>
28228
28229 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
28230 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
28231 * intl/Makefile ($(objpfx)tst-gettext.out)
28232 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
28233 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
28234 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
28235 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
28236 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
28237 * posix/Makefile ($(objpfx)globtest.out)
28238 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
28239 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
28240 ($(objpfx)tst-printf.out): Likewise.
28241 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
28242 ($(objpfx)tst-setcontext3.out): Likewise.
28243
28244 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
28245
28246 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28247 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
28248 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
28249 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
28250 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
28251 and mptan-fma.
28252 (CFLAGS-doasin-fma.c): New.
28253 (CFLAGS-dosincos-fma.c): Likewise.
28254 (CFLAGS-e_asin-fma.c): Likewise.
28255 (CFLAGS-e_atan2-fma.c): Likewise.
28256 (CFLAGS-e_exp-fma.c): Likewise.
28257 (CFLAGS-e_log-fma.c): Likewise.
28258 (CFLAGS-e_pow-fma.c): Likewise.
28259 (CFLAGS-halfulp-fma.c): Likewise.
28260 (CFLAGS-mpa-fma.c): Likewise.
28261 (CFLAGS-mpatan-fma.c): Likewise.
28262 (CFLAGS-mpatan2-fma.c): Likewise.
28263 (CFLAGS-mpexp-fma.c): Likewise.
28264 (CFLAGS-mplog-fma.c): Likewise.
28265 (CFLAGS-mpsqrt-fma.c): Likewise.
28266 (CFLAGS-mptan-fma.c): Likewise.
28267 (CFLAGS-s_atan-fma.c): Likewise.
28268 (CFLAGS-sincos32-fma.c): Likewise.
28269 (CFLAGS-slowexp-fma.c): Likewise.
28270 (CFLAGS-slowpow-fma.c): Likewise.
28271 (CFLAGS-s_sin-fma.c): Likewise.
28272 (CFLAGS-s_tan-fma.c): Likewise.
28273 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
28274 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
28275 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
28276 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
28277 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
28278 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
28279 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
28280 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
28281 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
28282 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
28283 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
28284 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
28285 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
28286 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
28287 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
28288 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
28289 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
28290 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
28291 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
28292 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
28293 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
28294 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
28295 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
28296 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
28297 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28298 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28299 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28300 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
28301 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28302 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28303 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28304
28305 2017-08-04 Joseph Myers <joseph@codesourcery.com>
28306
28307 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
28308 (min_of_type_f): New macro.
28309 (min_of_type_): Likewise.
28310 (min_of_type_l): Likewise.
28311 (min_of_type_f128): Likewise.
28312 (min_of_type): Define using __MATH_TG and taking an expression
28313 argument.
28314 (math_check_force_underflow): Pass expression instead of type to
28315 min_of_type.
28316 (math_check_force_underflow_nonneg): Likewise.
28317
28318 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28319
28320 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
28321 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
28322 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
28323
28324 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28325
28326 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28327 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
28328 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
28329 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
28330 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
28331 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
28332 memcpy_chk-nonshared, mempcpy_chk-nonshared,
28333 memmove_chk-nonshared and memset_chk-nonshared
28334 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
28335 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
28336 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
28337 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
28338 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
28339 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
28340 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
28341 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
28342 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
28343 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
28344 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
28345 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
28346 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
28347 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
28348 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
28349 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
28350 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
28351 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
28352 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
28353 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
28354 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
28355 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
28356 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
28357 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
28358 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
28359 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
28360 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
28361 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
28362 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
28363 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
28364 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
28365 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
28366 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
28367 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
28368 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
28369 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
28370 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
28371 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
28372 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
28373 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
28374 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
28375 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
28376 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
28377 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
28378 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
28379 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
28380 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
28381 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
28382 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
28383 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
28384 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
28385 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
28386 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
28387 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
28388 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
28389 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
28390 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
28391 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
28392 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
28393 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
28394 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
28395 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
28396 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
28397 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
28398 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
28399 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
28400 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
28401 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
28402 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
28403 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
28404 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
28405 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
28406 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
28407 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
28408 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28409 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28410 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28411 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28412 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28413 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28414 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
28415 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
28416 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
28417 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
28418 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
28419 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
28420 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
28421 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
28422 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
28423 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
28424 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
28425 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
28426 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
28427 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
28428 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
28429 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
28430 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
28431 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
28432 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
28433 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
28434 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
28435 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
28436 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
28437 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
28438 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
28439 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
28440 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
28441 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
28442
28443 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28444
28445 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
28446 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
28447 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
28448 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
28449 svml_d_log2_core-sse2, svml_d_log4_core-sse,
28450 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
28451 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
28452 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
28453 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
28454 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
28455 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
28456 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
28457 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
28458 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
28459 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
28460 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
28461 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
28462 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
28463 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
28464 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
28465 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
28466 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
28467 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
28468 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
28469 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
28470 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
28471 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
28472 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
28473 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
28474 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
28475 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
28476 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
28477 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
28478 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
28479 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
28480 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
28481 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
28482 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
28483 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
28484 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
28485 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
28486 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
28487 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
28488 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
28489 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
28490 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
28491 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
28492 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
28493 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
28494 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
28495 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
28496 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
28497 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
28498 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
28499 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
28500 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
28501 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
28502 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
28503 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
28504 ...
28505 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
28506 Don't include <sysdep.h> nor <init-arch.h>.
28507 (_ZGVbN2v_cos): Removed.
28508 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
28509 ...
28510 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
28511 Don't include <sysdep.h> nor <init-arch.h>.
28512 (_ZGVdN4v_cos): Removed.
28513 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
28514 ...
28515 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
28516 Don't include <sysdep.h> nor <init-arch.h>.
28517 (_ZGVeN8v_cos): Removed.
28518 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
28519 ...
28520 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
28521 Don't include <sysdep.h> nor <init-arch.h>.
28522 (_ZGVbN2v_exp): Removed.
28523 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
28524 ...
28525 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
28526 Don't include <sysdep.h> nor <init-arch.h>.
28527 (_ZGVdN4v_exp): Removed.
28528 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
28529 ...
28530 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
28531 Don't include <sysdep.h> nor <init-arch.h>.
28532 (_ZGVeN8v_exp): Removed.
28533 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
28534 ...
28535 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
28536 Don't include <sysdep.h> nor <init-arch.h>.
28537 (_ZGVbN2v_log): Removed.
28538 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
28539 ...
28540 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
28541 Don't include <sysdep.h> nor <init-arch.h>.
28542 (_ZGVdN4v_log): Removed.
28543 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
28544 ...
28545 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
28546 Don't include <sysdep.h> nor <init-arch.h>.
28547 (_ZGVeN8v_log): Removed.
28548 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
28549 ...
28550 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
28551 Don't include <sysdep.h> nor <init-arch.h>.
28552 (_ZGVbN2vv_pow): Removed.
28553 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
28554 ...
28555 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
28556 Don't include <sysdep.h> nor <init-arch.h>.
28557 (_ZGVdN4vv_pow): Removed.
28558 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
28559 ...
28560 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
28561 Don't include <sysdep.h> nor <init-arch.h>.
28562 (_ZGVeN8vv_pow): Removed.
28563 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
28564 ...
28565 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
28566 Don't include <sysdep.h> nor <init-arch.h>.
28567 (_ZGVbN2v_sin): Removed.
28568 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
28569 ...
28570 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
28571 Don't include <sysdep.h> nor <init-arch.h>.
28572 (_ZGVbN4v_sin): Removed.
28573 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
28574 ...
28575 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
28576 Don't include <sysdep.h> nor <init-arch.h>.
28577 (_ZGVbN8v_sin): Removed.
28578 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
28579 ...
28580 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
28581 Don't include <sysdep.h> nor <init-arch.h>.
28582 (_ZGVbN2vvv_sincos): Removed.
28583 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
28584 ...
28585 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
28586 Don't include <sysdep.h> nor <init-arch.h>.
28587 (_ZGVdN4vvv_sincos): Removed.
28588 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
28589 ...
28590 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
28591 Don't include <sysdep.h> nor <init-arch.h>.
28592 (_ZGVeN8vvv_sincos): Removed.
28593 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
28594 ...
28595 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
28596 Don't include <sysdep.h> nor <init-arch.h>.
28597 (_ZGVeN16v_cosf): Removed.
28598 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
28599 ...
28600 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
28601 Don't include <sysdep.h> nor <init-arch.h>.
28602 (_ZGVbN4v_cosf): Removed.
28603 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
28604 ...
28605 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
28606 Don't include <sysdep.h> nor <init-arch.h>.
28607 (_ZGVdN8v_cosf): Removed.
28608 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
28609 ...
28610 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
28611 Don't include <sysdep.h> nor <init-arch.h>.
28612 (_ZGVeN16v_expf): Removed.
28613 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
28614 ...
28615 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
28616 Don't include <sysdep.h> nor <init-arch.h>.
28617 (_ZGVbN4v_expf): Removed.
28618 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
28619 ...
28620 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
28621 Don't include <sysdep.h> nor <init-arch.h>.
28622 (_ZGVdN8v_expf): Removed.
28623 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
28624 ...
28625 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
28626 Don't include <sysdep.h> nor <init-arch.h>.
28627 (_ZGVeN16v_logf): Removed.
28628 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
28629 ...
28630 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
28631 Don't include <sysdep.h> nor <init-arch.h>.
28632 (_ZGVbN4v_logf): Removed.
28633 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
28634 ...
28635 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
28636 Don't include <sysdep.h> nor <init-arch.h>.
28637 (_ZGVdN8v_logf): Removed.
28638 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
28639 ...
28640 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
28641 Don't include <sysdep.h> nor <init-arch.h>.
28642 (_ZGVeN16vv_powf): Removed.
28643 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
28644 ...
28645 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
28646 Don't include <sysdep.h> nor <init-arch.h>.
28647 (_ZGVbN4vv_powf): Removed.
28648 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
28649 ...
28650 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
28651 Don't include <sysdep.h> nor <init-arch.h>.
28652 (_ZGVdN8vv_powf): Removed.
28653 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
28654 ...
28655 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
28656 Don't include <sysdep.h> nor <init-arch.h>.
28657 (_ZGVeN16vvv_sincosf): Removed.
28658 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
28659 ...
28660 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
28661 Don't include <sysdep.h> nor <init-arch.h>.
28662 (_ZGVbN4vvv_sincosf): Removed.
28663 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
28664 ...
28665 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
28666 Don't include <sysdep.h> nor <init-arch.h>.
28667 (_ZGVdN8vvv_sincosf): Removed.
28668 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
28669 ...
28670 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
28671 Don't include <sysdep.h> nor <init-arch.h>.
28672 (_ZGVeN16v_sinf): Removed.
28673 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
28674 ...
28675 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
28676 Don't include <sysdep.h> nor <init-arch.h>.
28677 (_ZGVbN4v_sinf): Removed.
28678 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
28679 ...
28680 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
28681 Don't include <sysdep.h> nor <init-arch.h>.
28682 (_ZGVdN8v_sinf): Removed.
28683
28684 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28685
28686 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28687 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
28688 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
28689 s_rint-sse4_1 and s_rintf-sse4_1.
28690 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
28691 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
28692 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
28693 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
28694 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
28695 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
28696 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
28697 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
28698 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
28699 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
28700 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
28701 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28702 (__ceil): Removed.
28703 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
28704 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
28705 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28706 (__ceilf): Removed.
28707 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
28708 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
28709 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28710 (__floor): Removed.
28711 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
28712 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
28713 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28714 (__floorf): Removed.
28715 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
28716 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
28717 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28718 (__nearbyint): Removed.
28719 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
28720 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
28721 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28722 (__nearbyintf): Removed.
28723 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
28724 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
28725 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28726 (__rint): Removed.
28727 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
28728 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
28729 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
28730 (__rintf): Removed.
28731
28732 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28733
28734 * sysdeps/i386/start.S (_start): Check Check PIC instead of
28735 SHARED. Avoid dynamic relocation against main in static PIE.
28736
28737 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28738
28739 [BZ #21815]
28740 * elf/Makefile (CFLAGS-tst-prelink.c): New.
28741 (LDFLAGS-tst-prelink): Likewise.
28742
28743 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28744
28745 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
28746 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
28747 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
28748 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
28749 (INTERNAL_SYSCALL_NCS): Likewise.
28750 (LOADARGS_1): Likewise.
28751 (LOADARGS_5): Likewise.
28752 (RESTOREARGS_1): Likewise.
28753 (RESTOREARGS_5): Likewise.
28754
28755 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28756
28757 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
28758 (MEMPCPY_SYMBOL): Likewise.
28759 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
28760 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
28761 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
28762 in libc.a.
28763 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
28764 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
28765 Likewise.
28766 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
28767 (__hidden_ver1): Don't use in libc.a.
28768 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
28769 (__mempcpy): Don't create a weak alias in libc.a.
28770 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
28771 libc.a.
28772 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
28773 (__hidden_ver1): Don't use in libc.a.
28774
28775 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28776
28777 * config.make.in (have-insert): New.
28778 * configure.ac (libc_cv_insert): New. Set to yes if linker
28779 supports INSERT in linker script.
28780 (AC_SUBST(libc_cv_insert): New.
28781 * configure: Regenerated.
28782 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
28783 if $(have-insert) == yes.
28784
28785 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28786
28787 * elf/Makefile (tests): Add vismain only if
28788 $(have-protected-data) == yes.
28789 (tests-pie): Likewise.
28790
28791 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28792
28793 [BZ #21871]
28794 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
28795 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
28796
28797 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
28798
28799 [BZ #21790]
28800 * sysdeps/i386/i586/memset.S
28801 (__memset_zero_constant_len_parameter): Removed.
28802 * sysdeps/i386/i686/memset.S
28803 (__memset_zero_constant_len_parameter): Likewise.
28804 * sysdeps/i386/i686/multiarch/memset_chk.S
28805 (__memset_zero_constant_len_parameter): Likewise.
28806 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
28807 Likewise.
28808
28809 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
28810
28811 * stdlib/getentropy.c (getentropy): Change return type to int.
28812
28813 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
28814
28815 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
28816
28817 2017-08-03 Joseph Myers <joseph@codesourcery.com>
28818
28819 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
28820 u_intN_t.
28821 * math/s_nexttowardf.c (__nexttowardf): Likewise.
28822 * sysdeps/generic/math_private.h (ieee_double_shape_type):
28823 Likewise.
28824 (ieee_float_shape_type): Likewise.
28825 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
28826 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
28827 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
28828 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
28829 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
28830 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
28831 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
28832 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
28833 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
28834 Likewise.
28835 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
28836 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
28837 (__ieee754_yn): Likewise.
28838 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28839 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28840 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
28841 Likewise.
28842 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
28843 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
28844 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
28845 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
28846 (__erfc): Likewise.
28847 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
28848 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
28849 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
28850 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
28851 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
28852 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
28853 Likewise.
28854 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
28855 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
28856 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
28857 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
28858 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
28859 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
28860 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
28861 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
28862 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
28863 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
28864 (__issignaling): Likewise.
28865 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
28866 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
28867 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
28868 Likewise.
28869 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28870 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28871 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
28872 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
28873 Likewise.
28874 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
28875 Likewise.
28876 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
28877 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
28878 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
28879 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
28880 (__erfcf): Likewise.
28881 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
28882 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
28883 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
28884 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
28885 Likewise.
28886 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
28887 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
28888 Likewise.
28889 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
28890 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
28891 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
28892 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
28893 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
28894 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
28895 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
28896 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
28897 Likewise.
28898 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
28899 Likewise.
28900 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
28901 Likewise.
28902 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
28903 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
28904 Likewise.
28905 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
28906 Likewise.
28907 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
28908 (__ieee754_ynl): Likewise.
28909 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
28910 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
28911 Likewise.
28912 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
28913 Likewise.
28914 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
28915 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
28916 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
28917 Likewise.
28918 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
28919 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
28920 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
28921 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
28922 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
28923 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
28924 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
28925 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
28926 Likewise.
28927 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
28928 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
28929 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
28930 Likewise.
28931 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
28932 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
28933 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
28934 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
28935 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
28936 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
28937 Likewise.
28938 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
28939 Likewise.
28940 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
28941 Likewise.
28942 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
28943 Likewise.
28944 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
28945 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
28946 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
28947 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
28948 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
28949 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
28950 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
28951 Likewise.
28952 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
28953 Likewise.
28954 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
28955 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
28956 Likewise.
28957 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
28958 (__ieee754_remainderl): Likewise.
28959 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
28960 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
28961 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
28962 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
28963 Likewise.
28964 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
28965 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
28966 Likewise.
28967 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
28968 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
28969 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
28970 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
28971 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
28972 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
28973 Likewise.
28974 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
28975 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
28976 (__ieee754_y0l): Likewise.
28977 (pzero): Likewise.
28978 (qzero): Likewise.
28979 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
28980 (__ieee754_y1l): Likewise.
28981 (pone): Likewise.
28982 (qone): Likewise.
28983 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
28984 (__ieee754_ynl): Likewise.
28985 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
28986 (__ieee754_lgammal_r): Likewise.
28987 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
28988 Likewise.
28989 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
28990 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
28991 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
28992 (__erfcl): Likewise.
28993 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
28994 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
28995 Likewise.
28996 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
28997 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
28998 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
28999 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
29000 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
29001 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
29002 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
29003 Likewise.
29004 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
29005 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
29006 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
29007 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
29008 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
29009 Likewise.
29010 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
29011 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
29012 Likewise.
29013 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
29014 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
29015 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
29016 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
29017 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
29018
29019 2017-08-03 Florian Weimer <fweimer@redhat.com>
29020
29021 [BZ #21885]
29022 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
29023 on memory allocation failure.
29024
29025 2017-08-03 Alan Modra <amodra@gmail.com>
29026
29027 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
29028 tst-tlsopt-powerpc.c with function name change and no test harness.
29029 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
29030 Call tls_get_addr_opt_test.
29031 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
29032 (modules-names): Add mod-tlsopt-powerpc.
29033 (mod-tlsopt-powerpc.so-no-z-defs): Define.
29034 (tst-tlsopt-powerpc): Depend on .so.
29035 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
29036 define. Expand use in TLS_GD and TLS_LD.
29037
29038 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29039
29040 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
29041 function.
29042 * sysdeps/posix/shm_open.c: Include <pthread.h>.
29043
29044 2017-08-02 Joseph Myers <joseph@codesourcery.com>
29045
29046 [BZ #21686]
29047 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
29048 comparing size with that of double.
29049 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29050 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29051 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29052 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29053 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29054 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
29055 unsigned __int128 types.
29056
29057 2017-08-02 Steve Ellcey <sellcey@cavium.com>
29058
29059 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
29060 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
29061 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
29062 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
29063 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
29064
29065 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29066
29067 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
29068
29069 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29070
29071 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
29072 of SHARED.
29073 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
29074 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29075 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29076 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29077 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29078 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29079 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29080
29081 2017-08-02 Joseph Myers <joseph@codesourcery.com>
29082
29083 [BZ #21685]
29084 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
29085 bit-field expressions passed to sizeof or typeof.
29086 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29087 (__TGMATH_F128): Likewise.
29088 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29089 (__TGMATH_CF128): Likewise.
29090 (__TGMATH_UNARY_REAL_ONLY): Likewise.
29091 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
29092 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
29093 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
29094 (__TGMATH_BINARY_REAL_ONLY): Likewise.
29095 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29096 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29097 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29098 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29099 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
29100 (__TGMATH_UNARY_REAL_IMAG): Likewise.
29101 (__TGMATH_UNARY_IMAG): Likewise.
29102 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
29103 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29104 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
29105 type.
29106 (define_vars_for_type): Handle bit_field type specially.
29107 (Tests.__init__): Declare structure with bit-field element.
29108
29109 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29110
29111 [BZ #21791]
29112 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
29113 (MEMCPY_CHK): Define only if SHARED is defined.
29114 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
29115 Likewise.
29116 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
29117 Likewise.
29118
29119 See ChangeLog.18 for earlier changes.