]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
powerpc: generic nearbyint/nearbyintf
[thirdparty/glibc.git] / ChangeLog
1 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4 NEARBYINT handling.
5 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
6 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
7 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
8 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
9 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
10 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
11
12 2019-05-28 mansayk <6688000@gmail.com>
13
14 [BZ #24370]
15 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
16
17 2019-05-28 mansayk <6688000@gmail.com>
18
19 [BZ #24369]
20 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
21 (abmon): Likewise, but remove the trailing dots.
22
23 2019-05-28 Joseph Myers <joseph@codesourcery.com>
24
25 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
26
27 2019-05-27 Florian Weimer <fweimer@redhat.com>
28
29 * nptl/nptl-init.c: Add comment.
30
31 2019-05-24 Florian Weimer <fweimer@redhat.com>
32
33 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
34 struct in_addr/struct in6_addr alignment.
35
36 2019-05-23 Joseph Myers <joseph@codesourcery.com>
37
38 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
39 (F_SEAL_FUTURE_WRITE): New macro.
40
41 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
42
43 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
44 * elf/tst-ldconfig-bad-aux-cache.c: New file.
45 * elf/tst-ldconfig_aux-cache.root: New directory.
46 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
47 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
48 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
49
50 2019-05-22 Zack Weinberg <zackw@panix.com>
51
52 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
53 host type.
54 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
55 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
56
57 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
58 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
59 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
60 Delete.
61
62 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
63 Issue an #error if used with a compiler in SPE-float mode.
64 * sysdeps/powerpc/powerpc32/__longjmp_common.S
65 * sysdeps/powerpc/powerpc32/setjmp_common.S
66 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
67 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
68 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
69 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
70 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
71 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
72 Remove code to preserve SPE register state.
73
74 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
75 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
76 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
77 Remove __SPE__ ifndefs.
78
79 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
80
81 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
82 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
83 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
84 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
85 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
86 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
87 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
88 (INNER_LOOP_ITERS_MEDIUM): New define.
89 (INNER_LOOP_ITERS_SMALL): New define.
90 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
91 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
92 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
93 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
94 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
95
96 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
97
98 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
99 New define.
100 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
101 (SEMTIMEDOP_IPC_ARGS): Likewise.
102
103 2019-05-21 Florian Weimer <fweimer@redhat.com>
104
105 [BZ #24584]
106 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
107 before updating __counter field and release it afterwards. Add
108 overflow check.
109 * iconv/gconv.h (struct __gconv_step): Mention synchronization
110 requirement for __counter member.
111
112 2019-05-21 Florian Weimer <fweimer@redhat.com>
113
114 [BZ #24583]
115 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
116 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
117 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
118 instead of __gconv_release_step.
119 * libio/Makefile (tests): Add tst-wfile-gconv.
120 (tests-container): Add tst-wfile-ascii.
121 (tst-wfile-gconv-ENV): Enable mtrace.
122 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
123 (tests-special): Add tst-wfile-gconv-mem.out.
124 (tst-wfile-gconv.out): Depend on locales.
125 (tst-wfile-gconv-mem.out): Add mtrace rule.
126 * libio/tst-wfile-ascii.c: New file.
127 * libio/tst-wfile-gconv.c: Likewise.
128
129 2019-05-20 Florian Weimer <fweimer@redhat.com>
130
131 [BZ #24588]
132 libio: Remove codecvt vtable.
133 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
134 __libio_codecvt.
135 * libio/iofgetpos.c (_IO_new_fgetpos): Call
136 __libio_codecvt_encoding.
137 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
138 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
139 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
140 * libio/iofwide.c (__libio_codecvt): Remove variable.
141 (_IO_fwide): Do not copy __libio_codecvt.
142 (__libio_codecvt_out): Rename from do_out and export.
143 (do_unshift): Remove function.
144 (__libio_codecvt_in): Rename from do_in and export.
145 (__libio_codecvt_encoding): Rename from do_encoding and export.
146 (do_always_noconv): Remove function.
147 (__libio_codecvt_length): Rename from do_length and export.
148 (do_max_length): Remove function.
149 * libio/libio.h (enum __codecvt_result): Remove definition; moved
150 to libioP.h.
151 (struct _IO_codecvt): Remove fields __codecvt_destr,
152 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
153 __codecvt_do_encoding, __codecvt_do_always_noconv,
154 __codecvt_do_length, __codecvt_do_max_length.
155 * libio/libioP.h (enum __codecvt_result): Define; moved from
156 libio.h.
157 (__libio_codecvt_out, __libio_codecvt_in)
158 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
159 functions.
160 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
161 (_IO_wfile_underflow): Call __libio_codecvt_in.
162 (_IO_wfile_underflow): Likewise.
163 (_IO_wfile_underflow_mmap): Likewise.
164 (_IO_wfile_sync): Call __libio_codecvt_encoding,
165 __libio_codecvt_length.
166 (adjust_wide_data): Call __libio_codecvt_encoding,
167 __libio_codecvt_in.
168 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
169 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
170 __libio_codecvt_length.
171
172 2019-05-20 Florian Weimer <fweimer@redhat.com>
173
174 * support/support.h (support_sbindir_prefix): Declare.
175 (support_install_rootsbindir): Update comment.
176 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
177 * support/support_paths.c (support_sbindir_prefix): Define.
178
179 2019-05-20 Mike Crowe <mac@mcrowe.com>
180
181 * support/timespec.c: Add backslash to correct newline in failure
182 message.
183
184 * support/timespec.h: Correct confusing comment.
185
186 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
187
188 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
189 define.
190 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
191 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
192 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
193 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
194
195 [BZ #24570]
196 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
197 usage.
198
199 2019-05-20 Joseph Myers <joseph@codesourcery.com>
200
201 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
202 (NT_ARM_PACG_KEYS): Likewise.
203
204 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
205
206 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
207 (tcache_put): Remove redundant assert.
208 (tcache_get): Remove redundant asserts.
209 (__libc_malloc): Check tcache count is not zero.
210 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
211
212 2019-05-17 Florian Weimer <fweimer@redhat.com>
213
214 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
215
216 2019-05-16 Joseph Myers <joseph@codesourcery.com>
217
218 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
219 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
220 0x050100].
221 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
222 Likewise.
223 * sysdeps/unix/sysv/linux/sh/kernel-features.h
224 (__ASSUME_STATX): Likewise.
225
226 2019-05-16 Florian Weimer <fweimer@redhat.com>
227
228 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
229 flags argument.
230 (LINE_PARSER): Do not map IPv4 addresses.
231 (internal_nis_gethostent_r): Remove flags argument. Adjust call
232 to parse_line.
233 (_nss_nis_gethostent_r): Always pass AF_INET to
234 internal_nis_gethostent_r.
235 (internal_gethostbyname2_r): Remove flags argument. Adjust call
236 to parse_line.
237 (_nss_nis_gethostbyname2_r): Adjust call to
238 internal_nis_gethostent_r.
239 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
240 call to internal_nis_gethostent_r.
241 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
242 from parse_line.
243 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
244 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
245 Remove flags argument. Do not map IPv4 addresses.
246 (internal_nisplus_gethostent_r): Adjust call to
247 _nss_nisplus_parse_hostent.
248 (internal_gethostbyname2_r): Remove flags argument. Adjust call
249 to _nss_nisplus_parse_hostent.
250 (_nss_nisplus_gethostbyname2_r): Adjust call to
251 internal_gethostbyname2_r.
252 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
253 Adjust call to internal_gethostbyname2_r.
254 (_nss_nisplus_gethostbyaddr_r): Adjust call to
255 _nss_nisplus_parse_hostent.
256 (_nss_nisplus_gethostbyname4_r): Adjust call to
257 internal_gethostbyname2_r.
258
259 2019-05-16 Florian Weimer <fweimer@redhat.com>
260
261 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
262 Remove flags.
263 (LINE_PARSER): Remove address mapping.
264 (EXTRA_ARGS_VALUE): Remove flags argument.
265 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
266 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
267 gethostbyname3_multi.
268 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
269 _nss_files_gethostbyname3_r.
270 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
271
272 2019-05-16 Florian Weimer <fweimer@redhat.com>
273
274 * support/support_test_compare_blob.c (report_blob): Report
275 incorrect NULL blobs.
276
277 2019-05-15 Mark Wielaard <mark@klomp.org>
278
279 [BZ# 24476]
280 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
281 __libc_once_get (once) and static_buf == NULL.
282 (__dlerror): Check we have a valid key, set result to static_buf
283 otherwise.
284
285 2019-05-15 Andreas Schwab <schwab@suse.de>
286
287 [BZ #20568]
288 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
289 __codecvt_do_length.
290 * libio/Makefile (tests): Add tst-wfile-sync.
291 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
292 * libio/tst-wfile-sync.c: New file.
293 * libio/tst-wfile-sync.input: New file.
294
295 2019-05-15 Florian Weimer <fweimer@redhat.com>
296
297 nss: Turn __nss_database_lookup into a compatibility symbol.
298 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
299 __nss_database_lookup.
300 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
301 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
302 __nss_database_lookup.
303 (__nss_next): Move to …
304 * nss/compat-lookup.c (nss_next): … here. Change it to fail
305 unconditionally.
306 (__nss_database_lookup): New function.
307 * nss/Versions (GLIBC_2.0): Update comment.
308 (GLIBC_PRIVATE): Export __nss_database_lookup2.
309 * grp/initgroups.c (internal_getgrouplist): Call
310 __nss_database_lookup2 instead of __nss_database_lookup.
311 * nscd/aicache.c (addhstaiX): Likewise.
312 * nscd/initgrcache.c (addinitgroupsX): Likewise.
313 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
314 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
315 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
316 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
317 Likewise.
318 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
319 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
320 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
321
322 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
323
324 * support/support.h (support_install_rootsbindir): New variable.
325 * support/support_paths.c: Likewise.
326 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
327
328 2019-05-15 Florian Weimer <fweimer@redhat.com>
329
330 * iconv/gconv.h (__gconv_transliterate): Move declaration …
331 * iconv/gconv_int.h (__gconv_transliterate): … here.
332 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
333 * iconv/skeleton.c: Likewise.
334
335 2019-05-14 Florian Weimer <fweimer@redhat.com>
336
337 Linux: Add the tgkill function.
338 * bits/signal_ext.h: New file.
339 * manual/signal.texi (Signaling Another Process): Document tgkill.
340 * signal/Makefile (headers): Add bits/signal_ext.h.
341 * signal/signal.h: Include <bits/signal_ext.h>.
342 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
343 (tst-tgkill): Link with libpthread.
344 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
345 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
346 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
347 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
348 tgkill.
349 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
350 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
351 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
352 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
353 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
354 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
355 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
356 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
357 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
358 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
359 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
360 Likewise.
361 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
362 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
363 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
365 Likewise.
366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
367 Likewise.
368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
369 Likewise.
370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
371 Likewise.
372 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
373 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
374 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
375 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
376 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
377 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
378 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
379 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
380
381 2019-05-14 Carlos O'Donell <carlos@redhat.com>
382
383 * manual/search.texi (Tree Search Function): Adjust twalk_r
384 documentation.
385
386 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
387
388 [BZ #24544]
389 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
390 pre-defined value.
391
392 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
393 * support/support.h (support_bindir_prefix): New variable.
394 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
395
396 * config.make.in (bindir): New variable.
397
398 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
399 (lll_trylock): Call __lll_trylock.
400 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
401 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
402 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
403 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
404 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
405 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
406 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
407 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
408 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
409 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
410 lowlevellock-futex.h.
411
412 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
413 initialization for LLL_LOCK_INITIALIZER different than 0.
414 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
415 Assume LLL_LOCK_INITIALIZER being 0.
416 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
417 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
418 Likewise.
419 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
420 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
421
422 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
423 Optimize futex call and add systemtap probe.
424
425 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
426 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
427 __libc_disable_asynccancel, __librt_enable_asynccancel,
428 __libc_disable_asynccancel, __librt_enable_asynccancel,
429 __librt_disable_asynccancel): Move to ...
430 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
431 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
432 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
433 * sysdeps/generic/single-thread.h: New file.
434 * sysdeps/unix/sysdep.h: Include single-thread.h.
435 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
436 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
437
438 2019-05-08 Mike FABIAN <mfabian@redhat.com>
439
440 [BZ #24535]
441 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
442 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
443 Unicode 12.1.0.
444 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
445 * localedata/unicode-gen/PropList.txt: Likewise.
446 * localedata/unicode-gen/UnicodeData.txt: Likewise.
447 * localedata/charmaps/UTF-8: Regenerate.
448 * localedata/locales/i18n_ctype: Likewise.
449 * localedata/locales/tr_TR: Likewise.
450 * localedata/locales/translit_circle: Likewise.
451 * localedata/locales/translit_cjk_compat: Likewise.
452 * localedata/locales/translit_combining: Likewise.
453 * localedata/locales/translit_compat: Likewise.
454 * localedata/locales/translit_font: Likewise.
455 * localedata/locales/translit_fraction: Likewise.
456
457 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
458
459 [BZ #24531]
460 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
461 (do_set_tcache_count): Only update if count is small enough.
462 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
463
464 2019-05-10 Florian Weimer <fweimer@redhat.com>
465
466 * nptl/sem_close.c (struct walk_closure): Define.
467 (walker): Adjust for __twalk_r.
468 (sem_close): Call __twalk_r.
469
470 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
471
472 * support/timespec.c (test_timespec_before_impl,
473 test_timespec_equal_or_after_impl): print timespec member as intmax_t
474 insted of long int.
475
476 2019-05-09 Mike Crowe <mac@mcrowe.com>
477
478 * nptl/tst-abstime.c: Use libsupport.
479
480 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
481 small bug where only tv.tv_usec was checked which could cause an
482 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
483 than a second.
484
485 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
486 libsupport.
487
488 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
489 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
490
491 * nptl/tst-cond11.c: Use libsupport.
492
493 * support/timespec.h: New file. Provide timespec helper functions
494 along with macros in the style of those in check.h.
495 * support/timespec.c: New file. Implement check functions declared
496 in support/timespec.h.
497 * support/timespec-add.c: New file from gnulib containing
498 timespec_add implementation that handles overflow.
499 * support/timespec-sub.c: New file from gnulib containing
500 timespec_sub implementation that handles overflow.
501 * support/README: Mention timespec.h.
502
503 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
504
505 [BZ #24537]
506 * nptl/Makefile: Move tst-eintr1 to xtests.
507
508 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
509
510 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
511 TRUNC handling.
512 (round_mode): Add definition for TRUNC.
513 * sysdeps/powerpc/fpu/s_trunc.c: New file.
514 * sysdeps/powerpc/fpu/s_truncf.c: New file.
515 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
516 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
517 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
518 Likewise.
519 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
520 Likewise.
521 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
522 Likewise.
523 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
524 Likewise.
525 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
526 file.
527 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
528 Likewise.
529 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
530 Likewise.
531 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
532 Likewise.
533 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
534 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
535 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
536 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
537 s_truncf-power5+, and s_truncf-ppc64.
538 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
539 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
540 file.
541 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
543 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
544 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
545 file.
546 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
547 Likewise.
548 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
549 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
550 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
551 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
552 s_truncf-power5+, and s_truncf-ppc64.
553 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
554 file.
555 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
556 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
557 Likewise.
558 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
559 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
560 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
561 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
562 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
563
564 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
565 ROUND handling.
566 (round_mode): Add definition for ROUND.
567 (round_to_integer_float): Likewise.
568 * sysdeps/powerpc/fpu/s_round.c: New file.
569 * sysdeps/powerpc/fpu/s_roundf.c: New file.
570 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
571 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
572 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
573 Likewise.
574 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
575 Likewise.
576 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
577 Likewise.
578 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
579 Likewise.
580 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
581 file.
582 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
583 Likewise.
584 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
585 Likewise.
586 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
587 Likewise.
588 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
589 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
590 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
591 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
592 s_roundf-power5+, and s_roundf-ppc64.
593 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
594 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
595 file.
596 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
598 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
599 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
600 file.
601 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
602 Likewise.
603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
604 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
605 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
606 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
607 s_roundf-power5+, and s_roundf-ppc64.
608 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
609 file.
610 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
611 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
612 Likewise.
613 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
614 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
615 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
616 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
617 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
618
619 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
620 Add FLOOR option.
621 (round_mode): Add definition for FLOOR.
622 * sysdeps/powerpc/fpu/s_floor.c: New file.
623 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
624 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
625 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
627 Remove file.
628 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
629 Likewise
630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
631 Likewise.
632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
633 Likewise.
634 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
635 New file.
636 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
637 Likewise.
638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
639 Likewise.
640 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
641 Likewise.
642 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
643 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
644 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
645 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
646 s_floorf-power5+, and s_floorf-ppc64.
647 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
648 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
649 file.
650 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
652 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
653 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
654 file.
655 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
656 Likewise.
657 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
658 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
659 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
660 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
661 s_floorf-power5+, and s_floorf-ppc64.
662 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
663 file.
664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
665 file.
666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
667 Likewise.
668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
669 Likewise.
670 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
671 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
672 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
673 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
674
675 2019-05-08 Mike Crowe <mac@mcrowe.com>
676
677 * support/xclock_gettime.c (xclock_gettime): New file. Provide
678 clock_gettime wrapper for use in tests that fails the test rather
679 than returning failure.
680
681 * support/xtime.h: New file to declare xclock_gettime.
682
683 * support/Makefile: Add xclock_gettime.c.
684
685 * support/README: Mention xtime.h.
686
687 2019-05-08 Florian Weimer <fweimer@redhat.com>
688
689 malloc/tst-mallocfork2: Use process-shared barriers.
690 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
691 (signal_count, sigusr1_sender_pid): Remove.
692 (iterations): Define constant.
693 (shared): New variable.
694 (sigusr1_received): Update comment.
695 (sigusr1_handler): Do not send SIGSTOP to the sender process.
696 (signal_sender): Optional use barriers to avoid sending signals
697 during irrelevant times.
698 (do_it): Initialize variable shared. Use xfork for error
699 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
700 the iteration count, independent of signal delivery. Check for
701 deadlocks in fork. Introduce barriers for reducing signal
702 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
703 replaced by the barriers. Count signals during fork/free/malloc
704 and report them.
705 * malloc/Makefile (tst-mallocfork): Link with libpthread.
706
707 2019-05-07 Joseph Myers <joseph@codesourcery.com>
708
709 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
710 version to 5.1.
711 (clock_adjtime64) New syscall.
712 (clock_getres_time64) Likewise.
713 (clock_gettime64) Likewise.
714 (clock_nanosleep_time64) Likewise.
715 (clock_settime64) Likewise.
716 (futex_time64) Likewise.
717 (io_pgetevents_time64) Likewise.
718 (io_uring_enter) Likewise.
719 (io_uring_register) Likewise.
720 (io_uring_setup) Likewise.
721 (mq_timedreceive_time64) Likewise.
722 (mq_timedsend_time64) Likewise.
723 (pidfd_send_signal) Likewise.
724 (ppoll_time64) Likewise.
725 (pselect6_time64) Likewise.
726 (recvmmsg_time64) Likewise.
727 (rt_sigtimedwait_time64) Likewise.
728 (sched_rr_get_interval_time64) Likewise.
729 (semtimedop_time64) Likewise.
730 (timer_gettime64) Likewise.
731 (timer_settime64) Likewise.
732 (timerfd_gettime64) Likewise.
733 (timerfd_settime64) Likewise.
734 (utimensat_time64) Likewise.
735
736 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
737 version to 9 branch.
738
739 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
740
741 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
742 __memmove_thunderx2 to the list of implementations
743 * sysdeps/aarch64/multiarch/memmove.c: Likewise
744 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
745 (__memmove_thunderx2): Rewritten using SIMD ld/st
746 (__memcpy_thunderx2): Fixed handling overlapping cases.
747 Used ldp/stp instead of ldr/str if possible. Made loops
748 tails branchless.
749
750 2019-05-03 Florian Weimer <fweimer@redhat.com>
751
752 * misc/tst-tsearch.c (walk_tree): Add more error checking.
753
754 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
755
756 [BZ #24506]
757 * elf/tst-pldd.c (in_str_list): New function.
758 (do_test): Add default names for ld and libc as one option.
759
760 2019-05-02 Florian Weimer <fweimer@redhat.com>
761
762 misc: Add twalk_r function.
763 * include/search.h (__twalk_r): Declare.
764 * manual/examples/twalk.c: New file.
765 * manual/search.texi (Tree Search Function): Document twalk_r.
766 * misc/Versions (2.30): Export twalk_r.
767 (GLIBC_PRIVATE): Export __twalk_r.
768 * misc/search.h [__USE_GNU] (twalk_r): Declare.
769 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
770 (twalk_r): Add weak alias.
771 * misc/tst-tsearch.c (struct walk_trace_element): Define.
772 (walk_trace): New variable.
773 (struct twalk_with_twalk_r_closure): Define.
774 (twalk_with_twalk_r_action): New function.
775 (twalk_with_twalk_r): Likewise.
776 (walk_action): Call walk_trace_add.
777 (walk_tree_with): Rename from walk_tree. Add walk argument.
778 (walk_tree): New function.
779 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
780 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
781 Likewise.
782 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
783 Likewise.
784 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
785 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
786 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
787 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
788 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
789 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
790 Likewise.
791 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
792 Likewise.
793 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
794 Likewise.
795 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
796 (GLIBC_2.30): Likewise.
797 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
798 (GLIBC_2.30): Likewise.
799 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
800 (GLIBC_2.30): Likewise.
801 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
802 (GLIBC_2.30): Likewise.
803 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
804 Likewise.
805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
806 (GLIBC_2.30): Likewise.
807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
808 (GLIBC_2.30): Likewise.
809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
810 (GLIBC_2.30): Likewise.
811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
812 (GLIBC_2.30): Likewise.
813 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
814 Likewise.
815 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
816 Likewise.
817 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
818 Likewise.
819 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
820 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
821 Likewise.
822 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
823 Likewise.
824 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
825 Likewise.
826 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
827 Likewise.
828
829 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
830
831 Make mktime etc. compatible with __time64_t
832 Keep these functions compatible with Gnulib while adding
833 __time64_t support. The basic idea is to move private API
834 declarations from include/time.h to time/mktime-internal.h, since
835 the former file cannot easily be shared with Gnulib whereas the
836 latter can.
837 Also, do some other minor cleanup while in the neighborhood.
838 * include/time.h: Include stdbool.h, time/mktime-internal.h.
839 (__mktime_internal): Move this prototype to time/mktime-internal.h,
840 since Gnulib needs it.
841 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
842 Move these macros to time/mktime-internal.h, since Gnulib needs them.
843 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
844 (in_time_t_range): New static function.
845 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
846 so that glibc users are not tempted to use __time64_t.
847 * time/mktime-internal.h: Rewrite so that it does both glibc
848 and Gnulib work. Include time.h if not _LIBC.
849 (mktime_offset_t) [!_LIBC]: Define for gnulib.
850 (__time64_t): New type or macro, moved here from
851 posix/bits/types.h.
852 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
853 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
854 from include/time.h.
855 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
856 New macros, taken from GNulib.
857 (__mktime_internal): New prototype, moved here from include/time.h.
858 * time/mktime.c (mktime_min, mktime_max, convert_time)
859 (ranged_convert, __mktime_internal, __mktime64):
860 * time/timegm.c (__timegm64):
861 Use __time64_t, not time_t.
862 * time/mktime.c: Stop worrying about whether time_t is floating-point.
863 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
864 Rename from mktime.
865 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
866 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
867 for libc_hidden_def.
868 Include errno.h.
869 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
870 Rename from timegm.
871 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
872
873 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
874
875 [BZ #19444]
876 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
877 from `-Wmaybe-uninitialized'.
878 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
879
880 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
881
882 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
883 function.
884 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
885 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
886 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
887 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
888 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
889 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
890 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
891 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
892 Remove file.
893 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
894 Likewise.
895 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
896 Likewise.
897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
898 Likewise.
899 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
900 New file.
901 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
902 Likewise.
903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
904 Likewise.
905 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
906 Likewise.
907 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
908 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
909 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
910 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
911 Likewise.
912 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
913 Likewise.
914 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
915 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
916 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
917 file.
918 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
919 Likewise.
920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
921 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
922 * here.
923 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
924 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
925 s_ceilf-power5+, and s_ceilf-ppc64.
926 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
927 file.
928 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
929 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
930 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
931 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
932 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
933 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
934 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
935
936 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
937 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
938 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
939
940 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
941
942 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
943 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
944 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
945 (sem_getvalue): Likewise.
946
947 2019-04-26 Florian Weimer <fweimer@redhat.com>
948
949 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
950 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
951
952 2019-04-26 Florian Weimer <fweimer@redhat.com>
953
954 Makeconfig: Move -Wl,-rpath-link options before library references.
955 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
956 (link-libc): Remove $(link-libc-rpath-link).
957
958 2019-04-25 Florian Weimer <fweimer@redhat.com>
959
960 * Makeconfig (+link-pie-before-libc): Remove $(CC).
961 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
962 (+link-static-before-libc): Remove $(CC).
963 (+link-static, +link-static-tests): Add $(CC).
964 (+link-before-libc): Remove $(CC).
965 (+link, +link-pie, +link-pie-printers): Add $(CC).
966
967 2019-04-26 Florian Weimer <fweimer@redhat.com>
968
969 * Makeconfig (+link-pie-before-libc): Remove $(CC).
970 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
971 (+link-static-before-libc): Remove $(CC).
972 (+link-static, +link-static-tests): Add $(CC).
973 (+link-before-libc): Remove $(CC).
974 (+link, +link-pie, +link-pie-printers): Add $(CC).
975
976 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
977
978 [BZ#24484]
979 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
980
981 2019-04-25 Florian Weimer <fweimer@redhat.com>
982
983 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
984 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
985 (bench-link-targets): New variable.
986 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
987
988 2019-04-25 Florian Weimer <fweimer@redhat.com>
989
990 Also enable BIND_NOW for programs if --enable-bind-now.
991 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
992 (+link-pie): Use $(link-extra-flags).
993 (+link-static): Likewise.
994 [! $(build-pie-default)] (+link): Likewise.
995 * manual/install.texi (Configuring and compiling): Update
996 --enable-bind-now description.
997 * INSTALL: Regenerated.
998
999 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1000
1001 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1002 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1003
1004 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1005
1006 [BZ #18465]
1007 * malloc/Makefile (others): Add memusagestat.
1008 ($(objpfx)memusagestat): Delete rule.
1009 (LDLIBS-memusagestat): New variable.
1010
1011 2019-04-24 Florian Weimer <fweimer@redhat.com>
1012
1013 * locale/Makefile (tests-special): Guard setting by
1014 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1015 to run while cross-compiling.
1016
1017 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1018
1019 [BZ #18035]
1020 * elf/Makefile (tests-container): Add tst-pldd.
1021 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1022 (E(find_maps)): Avoid use alloca, use default read file operations
1023 instead of explicit LFS names, and fix infinite loop.
1024 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1025 (get_process_info): Use _Static_assert instead of assert, use default
1026 directory operations instead of explicit LFS names, and free some
1027 leadek pointers.
1028 * elf/tst-pldd.c: New file.
1029
1030 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 * malloc/arena.c (do_set_mallopt_check): Removed.
1033
1034 2019-04-23 Florian Weimer <fweimer@redhat.com>
1035
1036 locale: Add LOCPATH diagnostics to the locale program.
1037 * locale/programs/locale.c (setlocale_failed): New variable.
1038 (try_setlocale): New function.
1039 (quote_string): Likewise.
1040 (setlocale_diagnostics): Likewise.
1041 (main): Call try_setlocale instead of setlocale. Call
1042 setlocale_diagnostics.
1043 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1044 (tst-locale-locpath.out): New target.
1045 * locale/tst-locale-locpath.sh: New file.
1046
1047 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1048
1049 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1050 to 2.30 notes.
1051
1052 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1053
1054 [BZ #23741]
1055 * malloc/hooks.c (malloc_check, realloc_check): Use
1056 __builtin_add_overflow on overflow check and adapt to
1057 checked_request2size change.
1058 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1059 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1060 allocation size to PTRDIFF_MAX.
1061 (REQUEST_OUT_OF_RANGE): Remove macro.
1062 (checked_request2size): Change to inline function and limit maximum
1063 requested size to PTRDIFF_MAX.
1064 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1065 maximum allocation size to PTRDIFF_MAX.
1066 (_mid_memalign): Use _int_memalign call for overflow check.
1067 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1068 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1069 limit maximum requested size to PTRDIFF_MAX.
1070 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1071 valloc, pvalloc): Add __attribute_alloc_size__.
1072 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1073 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1074 larger than PTRDIFF_MAX.
1075 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1076 around tests of malloc with negative sizes.
1077 * malloc/tst-posix_memalign.c (do_test): Likewise.
1078 * malloc/tst-pvalloc.c (do_test): Likewise.
1079 * malloc/tst-valloc.c (do_test): Likewise.
1080 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1081 with resulting size allocation larger than PTRDIFF_MAX with
1082 reallocarray_nowarn.
1083 (reallocarray_nowarn): New function.
1084 * NEWS: Mention the malloc function semantic change.
1085
1086 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1087
1088 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1089 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1090
1091 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1092 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1093 * sysdeps/powerpc/fpu/s_fma.c: New file.
1094 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1095
1096 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1097 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1098
1099 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1100 the magic flag store.
1101 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1102 Likewise.
1103 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1104 Likewise.
1105 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1106 Remove rt_sigreturn call.
1107
1108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1109 Remove rt_sigreturn call.
1110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1111 Likewise.
1112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1114
1115 * support/Makefile (libsupport-routines): Add support_subprocess,
1116 xposix_spawn, xposix_spawn_file_actions_addclose, and
1117 xposix_spawn_file_actions_adddup2.
1118 (tst-support_capture_subprocess-ARGS): New rule.
1119 * support/capture_subprocess.h (support_capture_subprogram): New
1120 prototype.
1121 * support/support_capture_subprocess.c (support_capture_subprocess):
1122 Refactor to use support_subprocess and support_capture_poll.
1123 (support_capture_subprogram): New function.
1124 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1125 str_to_write_mode, test_common, parse_int, handle_restart,
1126 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1127 (do_test): Add support_capture_subprogram tests.
1128 * support/subprocess.h: New file.
1129 * support/support_subprocess.c: Likewise.
1130 * support/xposix_spawn.c: Likewise.
1131 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1132 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1133 * support/xspawn.h: Likewise.
1134
1135 2019-04-17 Mike Gerow <gerow@google.com>
1136
1137 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1138 groups limit.
1139
1140 2019-04-11 Florian Weimer <fweimer@redhat.com>
1141
1142 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1143 domain with empty string.
1144 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1145
1146 2019-04-11 Florian Weimer <fweimer@redhat.com>
1147
1148 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1149 comment.
1150 (alloc_buffer_next): Change return type to non-const. Update
1151 comment.
1152
1153 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1154
1155 * manual/time.texi (Formatting Calendar Time): Add missing percent
1156 sign to conversion specifier.
1157
1158 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1159 Kwok Cheung Yeung <kcy@codesourcery.com>
1160
1161 [BZ #16573]
1162 * malloc/mtrace.c: Define prototypes for all hooks.
1163 (set_default_hooks): New function.
1164 (set_trace_hooks): Likewise.
1165 (save_default_hooks): Likewise.
1166 (tr_freehook): Use new s*_hooks functions.
1167 (tr_mallochook): Likewise.
1168 (tr_reallochook): Likewise.
1169 (tr_memalignhook): Likewise.
1170 (mtrace): Likewise.
1171 (muntrace): Likewise.
1172
1173 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1174
1175 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1176 (generic_stpcpy): New function.
1177 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1178 (generic_stpncpy): New function.
1179 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1180 (generic_strcat): New function.
1181 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1182 (generic_strcpy): New function.
1183 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1184 (STUPID_STRNCAT): Remove function.
1185 (generic_strncat): New function.
1186 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1187 (STUPID_STRNCPY): Remove function.
1188 (generic_strncpy): New function.
1189 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1190 (generic_strnlen): New function.
1191 (memchr_strnlen): New function.
1192 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1193 (memchr_strlen): Likewise.
1194
1195 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1196
1197 * benchtests/bench-strstr.c (input): Add realistic input text.
1198 (stupid_strstr): Remove function.
1199 (basic_strstr): Add function.
1200 (twoway_strstr): Add function.
1201 (do_one_test): Add result checking.
1202 (do_test): Use new input text. Remove accidental early matches.
1203 (test_main): Improve range of tests, reduce unaligned cases.
1204
1205 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1206
1207 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1208 (basic_memmem): Add function.
1209 (twoway_memmem): Add function.
1210
1211 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1212
1213 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1214 * benchtests/bench-malloc-thread.c: Likewise.
1215 * benchtests/bench-skeleton.c: Likewise.
1216 * benchtests/bench-strtod.c: Likewise.
1217 * benchtests/bench-timing.h: Likewise.
1218
1219 2019-04-08 Florian Weimer <fweimer@redhat.com>
1220
1221 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1222 definitions.
1223 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1224 RES_INSECURE2 security checks.
1225 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1226 RES_INSECURE2 handling.
1227
1228 2019-04-08 Florian Weimer <fweimer@redhat.com>
1229
1230 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1231 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1232 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1233 GETHOSTBYNAME.
1234 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1235 (tests-internal): Update justification for tst-resolv-res_init,
1236 tst-resolv-res_init-thread.
1237 (tst-res_use_inet6): Remove target.
1238 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1239 * resolv/res_debug.c (p_option): Remove "inet6" support.
1240 * resolv/res_init.c (res_setoptions): Likewise.
1241 * resolv/res_use_inet6.h: Remove file.
1242 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1243 definition.
1244 (res_use_inet6): Always return false.
1245 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1246 * resolv/resolv_context.h: Adjust file comment.
1247 (struct resolv_context): Update comment on __next field.
1248 (__resolv_context_put): Update comment.
1249 * resolv/tst-res_use_inet6.c: Remove file.
1250 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1251 "inet6" support.
1252 (test_cases): Adjust test case.
1253 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1254 (thread_byname2_af_inet6): Use old byname_inet6 code.
1255 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1256 (gai): Remove do_inet6 argument.
1257 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1258 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1259 (thread_gai_unspec_inet6): Remove functions.
1260 (do_test): Adjust thread_funcs.
1261 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1262 RES_USE_INET6 flag.
1263 (gaih_inet): Do not disable RES_USE_INET6 flag.
1264
1265 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1266
1267 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1268 and remove redundant code.
1269
1270 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1271
1272 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1273 New rule.
1274 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1275 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1276 Likewise.
1277 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1278 Likewise.
1279 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1280 Likewise.
1281 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1282 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1283 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1284 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1285 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1286 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1287 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1288 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1289 wcsrchr-power7.
1290 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1291 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1292 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1293 Remove wcsrchr optimizations.
1294 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1295
1296 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1297 the loop unroll.
1298
1299 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1300 New rule.
1301 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1302 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1303 Likewise.
1304 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1305 Likewise.
1306 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1307 Likewise.
1308 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1309 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1310 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1311 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1312 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1313 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1314 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1315 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1316 wcschr-power7.
1317 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1318 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1319 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1320 Remove wcschr optimizations.
1321 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1322
1323 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1324 the loop unroll.
1325
1326 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1327 New rule.
1328 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1329 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1330 Likewise.
1331 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1332 Likewise.
1333 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1334 Likewise.
1335 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1336 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1337 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1338 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1339 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1340 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1341 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1342 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1343 wcscpy-power7.
1344 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1345 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1346 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1347 Remove wcscpy optimizations.
1348 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1349
1350 * include/loop_unroll.h: New file.
1351 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1352 besides generic implementation.
1353
1354 2019-04-03 DJ Delorie <dj@redhat.com>
1355
1356 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1357 snprintf truncating output.
1358
1359 2019-04-02 DJ Delorie <dj@redhat.com>
1360
1361 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1362 warning.
1363
1364 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1365
1366 [BZ #22964]
1367 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1368 era.
1369 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1370 (mkreftable): Add rules for the new Japanese era and the new dates.
1371
1372 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1373 Rafal Luzynski <digitalfreak@lingonborough.com>
1374
1375 * time/tst-strftime2.c (date_t): Explicitly define the type.
1376 (dates): Use natural month and year numbers to express a date.
1377 (is_before): New function to compare dates.
1378 (mkreftable): Minor improvements to simplify maintenance.
1379 (do_test): Reflect the changes in dates array.
1380
1381 [BZ #24293]
1382 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1383 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1384 * time/tst-strftime2.c (locales): Likewise.
1385 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1386 2010-04-01, and 2011-04-01.
1387 (mkreftable): Add rules for the new locales and the new dates.
1388
1389 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1390
1391 * localedata/locales/ja_JP: Add comments to era entries.
1392
1393 2019-04-01 DJ Delorie <dj@redhat.com>
1394
1395 [BZ #24394]
1396 * time/strptime_l.c (%Ey): Fix fencepost error.
1397 * time/tst-strftime3.c: New.
1398 * time/Makefile (tests): Add tst-strftime3.
1399
1400 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1401
1402 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1403 conditional branch to DIVBYZERO. Fix unwind info.
1404 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1405 excb after conditional branch to $powerof2. Add missing unop
1406 instructions and .align directives and reorder instructions to
1407 match __divqu.
1408
1409 2019-04-01 Richard Henderson <rth@twiddle.net>
1410
1411 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1412 Do not redefine.
1413 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1414 Do not redefine.
1415
1416 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1417
1418 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1419 $libc_cv_riscv_float_abi in `test' invocation.
1420 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1421
1422 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1423
1424 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1425 asm with builtin.
1426 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1427 Likewise.
1428 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1429 (_GET_SI_FPSCR): Likewise.
1430 (_SET_SI_FPSCR): Likewise.
1431
1432 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1433
1434 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1435 clang 2.8.
1436 (signbit): Use builtin for clang 3.3.
1437 (isinf): Use builtin for clang 3.7.
1438
1439 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1440
1441 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1442
1443 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1444
1445 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1446 quote in printf.
1447
1448 2019-03-25 Mike Crowe <mac@mcrowe.com>
1449
1450 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1451 pthread_rwlock_timedrdlock with calls to
1452 pthread_rwlock_timedwrlock to ensure that the latter is tested
1453 too. Use new function name in diagnostic messages too.
1454
1455 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1456 (do_test) Use libsupport test macros rather than hand-coded
1457 conditionals and error messages. Ensure that sem_init returns zero
1458 rather than not -1. Use <support/test-driver.c> rather than
1459 test-skeleton.c.
1460
1461 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1462 test macros rather than hand-coded conditionals and error messages.
1463 Use <support/test-driver.c> rather than test-skeleton.c.
1464
1465 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1466
1467 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1468
1469 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1470 (NT_MIPS_MSA): Likewise.
1471
1472 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1473
1474 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1475 * benchtests/README: Update description.
1476 * benchtests/bench-timing.h: Default to hp-timing.
1477 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1478 HP_TIMING_PRINT): Remove.
1479 (HP_TIMING_NOW): Add generic implementation.
1480 (hp_timing_t): Change to uint64_t.
1481
1482 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1483 HP_TIMING_INLINE.
1484 * nptl/descr.h: Likewise.
1485 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1486 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1487 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1488 Abstract hp-timing usage with RTLD_* macros.
1489 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1490 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1491 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1492 HP_TIMING_NONAVAIL): Likewise.
1493 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1494 Likewise.
1495 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1496 HP_SMALL_TIMING_AVAIL): Likewise.
1497 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1498 HP_SMALL_TIMING_AVAIL): Likewise.
1499 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1500 HP_SMALL_TIMING_AVAIL): Likewise.
1501 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1502 HP_SMALL_TIMING_AVAIL): Likewise.
1503 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1504 Likewise.
1505 * sysdeps/generic/hp-timing-common.h: Update comment with
1506 HP_TIMING_AVAIL removal.
1507
1508 * include/random-bits.h: New file.
1509 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1510 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1511 random_bits.
1512 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1513 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1514 Likewise.
1515
1516 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1517 * rt/Makefile (clock-routines): Remove get_clockfreq.
1518 * rt/get_clockfreq.c: Remove file.
1519 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1520 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1521 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1522 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1523 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1524
1525 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1526 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1527 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1528 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1529 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1530
1531 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1532 pthread_clock_settime.
1533 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1534 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1535 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1536 * elf/rtld.c (_dl_start_final): Likewise.
1537 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1538 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1539 Remove.
1540 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1541 (_dl_cpuclock_offset): Remove.
1542 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1543 cpuclock_offset_ununsed.
1544 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1545 cpuclock_offset set.
1546 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1547 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1548 * nptl/pthread_clock_gettime.c: Remove file.
1549 * nptl/pthread_clock_settime.c: Likewise.
1550 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1551 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1552 and CLOCK_PROCESS_CPUTIME_ID support.
1553 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1554 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1555 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1556 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1557 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1558 Likewise.
1559 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1560
1561 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1562
1563 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1564 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1565 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1566 New defines.
1567 * sysdeps/s390/memmem-arch13.S: New file.
1568 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1569 if it is only used as fallback.
1570 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1571 * sysdeps/s390/multiarch/ifunc-impl-list.c
1572 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1573
1574 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1575
1576 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1577 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1578 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1579 New defines.
1580 * sysdeps/s390/multiarch/ifunc-impl-list.c
1581 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1582 * sysdeps/s390/strstr-arch13.S: New file.
1583 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1584 if it is only used as fallback.
1585 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1586
1587 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1588
1589 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1590 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1591 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1592 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1593 ifunc selector.
1594 * sysdeps/s390/multiarch/ifunc-impl-list.c
1595 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1596 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1597 S390_IS_ARCH13_MIE3): New defines.
1598
1599 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1600
1601 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1602 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1603 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1604 * sysdeps/s390/configure: Regenerated.
1605
1606 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1607
1608 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1609 Add vxe2, vxp, dflt, sort flags.
1610 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1611 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1612 capabilities.
1613 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1614 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1615 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1616 HWCAP_S390_DFLT): Define.
1617
1618 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1619
1620 [BZ #24372]
1621 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1622 of compiler warning.
1623 * locale/programs/ld-collate.c (collate_output): Likewise.
1624
1625 2019-03-21 DJ Delorie <dj@redhat.com>
1626
1627 [BZ #24372]
1628 * iconv/iconvconfig.c (write_output): Replace floating point math
1629 with integer math to avoid imprecise results.
1630 * locale/programs/ld-collate.c (collate_output): Likewise.
1631
1632 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1633
1634 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1635 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1636
1637 2019-03-20 mansayk <6688000@gmail.com>
1638
1639 [BZ #24296]
1640 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1641 (abday): Likewise, but remove the trailing dots.
1642
1643 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1644
1645 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1646 macro.
1647 (HWCAP_PACA): Likewise.
1648 (HWCAP_PACG): Likewise.
1649 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1650 Increase to 32.
1651 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1652
1653 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1654
1655 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1656 should be handled.
1657
1658 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1659
1660 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1661 version to 5.0.
1662 (old_getpagesize): New syscall.
1663
1664 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1665
1666 [BZ #24293]
1667 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1668 * localedata/locales/cmn_TW (era): Likewise.
1669 * localedata/locales/hak_TW (era): Likewise.
1670 * localedata/locales/lzh_TW (era): Likewise.
1671 * localedata/locales/nan_TW (era): Likewise.
1672
1673 2019-03-14 Adam Maris <amaris@redhat.com>
1674
1675 * malloc/malloc.c (_int_malloc): Check for large bin list
1676 corruption when inserting unsorted chunk.
1677
1678 2019-03-14 Florian Weimer <fweimer@redhat.com>
1679
1680 Remove obsolete, never-implemented XSI STREAMS declarations.
1681 * manual/terminal.texi (Allocation): Remove portability note and
1682 adjust example.
1683 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1684 _SC_STREAMS.
1685 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1686 * sysdeps/unix/inet/Subdirs (streams): Remove.
1687 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1688 (conformtest-headers-UNIX98): Likewise.
1689 (conformtest-headers-XOPEN2K): Likewise.
1690 (conformtest-headers-POSIX2008): Likewise.
1691 * posix/compat-streams.c: New file.
1692 * posix/Makefile (routines): Add it.
1693 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1694 getpmsg, isastream, putmsg, putpmsg.
1695 (GLIBC_2.30): New section.
1696 * bits/stropts.h: Remove file.
1697 * bits/xtitypes.h: Likewise.
1698 * conform/data/stropts.h-data: Likewise.
1699 * include/stropts.h: Likewise.
1700 * include/sys/stropts.h: Likewise.
1701 * include/xtitypes.h: Likewise.
1702 * streams/Makefile: Likewise.
1703 * streams/fattach.c: Likewise.
1704 * streams/fdetach.c: Likewise.
1705 * streams/getmsg.c: Likewise.
1706 * streams/getpmsg.c: Likewise.
1707 * streams/isastream.c: Likewise.
1708 * streams/putmsg.c: Likewise.
1709 * streams/putpmsg.c: Likewise.
1710 * streams/stropts.h: Likewise.
1711 * streams/sys/stropts.h: Likewise.
1712 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1713 * sysdeps/s390/bits/xtitypes.h: Likewise.
1714 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1715 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1716 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1717 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1718 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1719 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1720 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1721 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1722 * sysdeps/x86/bits/xtitypes.h: Likewise.
1723
1724 2019-03-14 Florian Weimer <fweimer@redhat.com>
1725
1726 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1727 libnss_files.
1728 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1729 but not with libnss_files.
1730 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1731
1732 2019-03-14 Zack Weinberg <zackw@panix.com>
1733
1734 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1735 Specify encoding="utf-8" when opening headers to check.
1736
1737 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1738
1739 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1740 version to 5.0.
1741 (Context.checkout_tar): Handle variable major version for Linux
1742 kernel.
1743
1744 2019-03-13 Florian Weimer <fweimer@redhat.com>
1745
1746 [BZ #24047]
1747 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1748
1749 2019-03-13 Zack Weinberg <zackw@panix.com>
1750
1751 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1752 Move to stdlib.
1753 * include/inttypes.h: Adjust to match.
1754 * include/stdint.h: New wrapper.
1755
1756 2019-03-13 Zack Weinberg <zackw@panix.com>
1757
1758 * scripts/check-obsolete-constructs.py: New test script.
1759 * scripts/check-installed-headers.sh: Remove tests for
1760 obsolete typedefs, superseded by check-obsolete-constructs.py.
1761 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1762 as a special test. Update commentary.
1763 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1764 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1765 Update commentary.
1766 * posix/sys/types.h (__u_intN_t): Remove.
1767 (u_int8_t): Typedef using __uint8_t.
1768 (u_int16_t): Typedef using __uint16_t.
1769 (u_int32_t): Typedef using __uint32_t.
1770 (u_int64_t): Typedef using __uint64_t.
1771
1772 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1773
1774 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1775 call _dl_procinfo.
1776 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1777 Ignore types other than AT_HWCAP.
1778 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1779 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1780 Likewise.
1781 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1782 in the case of falling back to generic output mechanism.
1783 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1784 Likewise.
1785
1786 2019-03-12 Florian Weimer <fweimer@redhat.com>
1787
1788 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1789
1790 2019-03-12 Florian Weimer <fweimer@redhat.com>
1791
1792 [BZ #24047]
1793 resolv: Enable full ICMP errors for UDP DNS sockets
1794 * resolv/res_enable_icmp.c: New file.
1795 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1796 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1797 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1798 socket.
1799
1800 2019-03-11 Mao Han <han_mao@c-sky.com>
1801
1802 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1803 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1804
1805 2019-03-11 Mao Han <han_mao@c-sky.com>
1806
1807 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1808 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1809 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1810
1811 2019-03-11 Mao Han <han_mao@c-sky.com>
1812
1813 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1814 directly.
1815 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1816 definition.
1817
1818 2019-03-11 Mao Han <han_mao@c-sky.com>
1819
1820 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1821 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1822 in mcontext_t
1823
1824 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1825
1826 [BZ #24307]
1827 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1828 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1829 Unicode 12.0.0.
1830 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1831 * localedata/unicode-gen/PropList.txt: Likewise.
1832 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1833 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1834 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1835 * localedata/charmaps/UTF-8: Regenerate.
1836 * localedata/locales/i18n_ctype: Likewise.
1837 * localedata/locales/tr_TR: Likewise.
1838 * localedata/locales/translit_circle: Likewise.
1839 * localedata/locales/translit_cjk_compat: Likewise.
1840 * localedata/locales/translit_combining: Likewise.
1841 * localedata/locales/translit_compat: Likewise.
1842 * localedata/locales/translit_font: Likewise.
1843 * localedata/locales/translit_fraction: Likewise.
1844
1845 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1846
1847 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1848 than after operators.
1849 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1850 (setitimer_locked): Likewise.
1851 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1852 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1853 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1854 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1855 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1856 (PPC_CPU_SUPPORTED): Likewise.
1857 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1858 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1859 (stat_overflow): Likewise.
1860 (statfs_overflow): Likewise.
1861 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1862 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1863 (eq_ttyname_r): Likewise.
1864 (run_chroot_tests): Likewise.
1865
1866 2019-03-07 Florian Weimer <fweimer@redhat.com>
1867
1868 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1869 header check.
1870
1871 2019-03-07 Martin Liska <mliska@suse.cz>
1872
1873 * math/Makefile: Change location where math-vector-fortran.h is
1874 installed.
1875 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1876 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1877 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1878 * scripts/check-installed-headers.sh: Skip Fortran header files.
1879 * scripts/check-wrapper-headers.py: Likewise.
1880
1881 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1882
1883 * nptl/nptl-init.c (__have_futex_clock_realtime,
1884 __have_futex_clock_realtime): Remove definition.
1885 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1886 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1887 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1888 __ASSUME_FUTEX_CLOCK_REALTIME support.
1889 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1890 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1891 * sysdeps/unix/sysv/linux/kernel-features.h
1892 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1893 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1894 Adjust comment.
1895
1896 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1897
1898 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1899 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1900 __GI___wcscpy and wcscpy.
1901
1902 2019-03-04 Florian Weimer <fweimer@redhat.com>
1903
1904 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1905 declaration.
1906 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1907 defined.
1908
1909 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1910
1911 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1912 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1913
1914 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1915
1916 [BZ #24162]
1917 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1918 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1919
1920 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1921
1922 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1923 tests.
1924 (do_test): Likewise.
1925 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1926 (do_test_call_varg): Likewise.
1927 (do_test_call_rarg): Likewise.
1928 * sysdeps/ieee754/ldbl-opt/Makefile
1929 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1930 tst-nldbl-error.
1931 ($(objpfx)tst-nldbl-warn.c): New rule.
1932 ($(objpfx)tst-nldbl-error.c): Likewise.
1933 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1934 New variables.
1935
1936 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1937
1938 [BZ #23984]
1939 * include/bits/error-ldbl.h: New file.
1940 * include/error.h: Include stdarg.h. Declare internal functions
1941 __error_internal and __error_at_line_internal.
1942 * misc/Makefile (headers): Add bits/error-ldbl.h.
1943 * misc/bits/error-ldbl.h: New file.
1944 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1945 avoid the inclusion of bits/error.h.
1946 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1947 and __nldbl_error_at_line.
1948 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1949 (__nldbl_error, __ndlbl_error_at_line): New functions.
1950 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1951 Redirect error and error_at_line.
1952 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1954 Likewise.
1955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1956 Likewise.
1957 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1958 Likewise.
1959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1960 Likewise.
1961 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1962 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1963 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1964
1965 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1966
1967 [BZ #23984]
1968 * include/bits/err-ldbl.h: New file.
1969 * include/err.h: Add prototypes for the internal functions:
1970 __vwarnx_internal and __vwarn_internal.
1971 * misc/Makefile (headers): Add bits/err-ldbl.h.
1972 * misc/bits/err-ldbl.h: New file.
1973 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1974 defined, i.e.: when -mlong-double-64 is in use.
1975 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1976 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1977 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1978 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1979 (VA_CALL): New macro.
1980 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1981 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1982 functions.
1983 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1984 declare prototypes for the new functions.
1985 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1987 Likewise.
1988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1989 Likewise.
1990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1991 Likewise.
1992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1993 Likewise.
1994 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1995 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1996 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1997
1998 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1999
2000 * sysdeps/ieee754/ldbl-opt/Makefile
2001 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2002 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2003 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2004
2005 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2006
2007 [BZ #23983]
2008 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2009 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2010 * argp/bits/argp-ldbl.h: New file.
2011 * include/argp.h: Include stdarg.h. Add prototypes for internal
2012 functions: __argp_error_internal and __argp_failure_internal.
2013 * include/bits/argp-ldbl.h: New file.
2014 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2015 __nldbl_argp_error and __nldbl_argp_failure.
2016 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2017 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2018 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2019 Redirect argp_error and argp_failure calls.
2020 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2021 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2022 Likewise.
2023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2024 Likewise.
2025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2026 Likewise.
2027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2028 Likewise.
2029 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2030 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2031 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2032
2033 2019-03-01 Florian Weimer <fweimer@redhat.com>
2034
2035 [BZ #20419]
2036 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2037 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2038 code, to avoid creating an ABI tag note.
2039 (modules-names-nobuild): Add tst-big-note-lib.
2040
2041 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2042
2043 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2044 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2045
2046 2019-03-01 Florian Weimer <fweimer@redhat.com>
2047
2048 [BZ #20271]
2049 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2050 (__netlink_assert_response): Add additional missing newlines.
2051
2052 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2053
2054 * sysdeps/powerpc/powerpc32/dl-machine.c
2055 (__elf_machine_fixup_plt): Use space before '('.
2056 (__process_machine_rela): Likewise.
2057 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2058 Likewise.
2059 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2060 Likewise.
2061 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2062 Likewise.
2063 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2064 (pattern): Likewise.
2065 (delta): Likewise.
2066 (check_result): Likewise.
2067 (check_excepts): Likewise.
2068 (check_op): Likewise.
2069 (fail_xr): Likewise.
2070 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2071 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2072 (SCNHSZ): Likewise.
2073 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2074 Likewise.
2075 (ARGS): Likewise.
2076 (__makecontext): Likewise.
2077 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2078 Likewise.
2079
2080 2019-02-28 Florian Weimer <fweimer@redhat.com>
2081
2082 [BZ #23937]
2083 elf: Add test with a local IFUNC resolver.
2084 * elf/ifuncmain9.c: New file.
2085 * elf/ifuncmain9pic.c: Likewise.
2086 * elf/ifuncmain9picstatic.c: Likewise.
2087 * elf/ifuncmain9pie.c: Likewise.
2088 * elf/ifuncmain9static.c: Likewise.
2089 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2090 ifuncmain9static, ifuncmain9picstatic.
2091 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2092 Add ifuncmain9, ifuncmain9pic.
2093 * elf/Makefile [multi-arch && build-shared && have-fpie]
2094 (ifunc-pie-tests): Add ifuncmain9pie.
2095 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2096 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2097 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2098
2099 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2100
2101 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2102 * configure: Regenerated.
2103 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2104
2105 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2106
2107 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2108 symbol as __wcspcy instead of wcscpy.
2109
2110 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2111
2112 * include/stdio.h (__renameat2): New hidden prototype.
2113 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2114 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2115 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2116 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2117
2118 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2119
2120 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2121 if statement.
2122
2123 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2124 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2125 * benchtests/bench-strlen.c (do_test): Likewise.
2126 (test_main): Likewise.
2127 * catgets/gencat.c (read_old): Likewise.
2128 * elf/cache.c (load_aux_cache): Likewise.
2129 * iconvdata/bug-iconv8.c (do_test): Likewise.
2130 * math/test-tgmath-ret.c (do_test): Likewise.
2131 * nis/nis_call.c (rec_dirsearch): Likewise.
2132 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2133 * nptl/tst-audit-threads.c (do_test): Likewise.
2134 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2135 * nss/nss_test1.c (init): Likewise.
2136 * nss/test-netdb.c (test_hosts): Likewise.
2137 * posix/execvpe.c (maybe_script_execute): Likewise.
2138 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2139 * stdio-common/tst-printf.c (do_test): Likewise.
2140 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2141 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2142 * stdlib/qsort.c (STACK_SIZE): Likewise.
2143 * stdlib/test-canon.c (do_test): Likewise.
2144 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2145 * string/memcmp.c (OPSIZ): Likewise.
2146 * string/test-strcpy.c (do_test): Likewise.
2147 (do_random_tests): Likewise.
2148 * string/test-strlen.c (do_test): Likewise.
2149 (test_main): Likewise.
2150 * string/test-strrchr.c (do_test): Likewise.
2151 (do_random_tests): Likewise.
2152 * string/tester.c (test_memrchr): Likewise.
2153 (test_memchr): Likewise.
2154 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2155 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2156 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2157 (read_encoded_value_with_base): Likewise.
2158 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2159 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2160 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2161 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2162 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2163 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2164 Likewise.
2165 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2166 Likewise.
2167 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2168 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2169 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2170 Likewise.
2171 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2172 Likewise.
2173 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2174 Likewise.
2175 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2176 Likewise.
2177 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2178 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2179 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2180 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2181 * time/test_time.c (main): Likewise.
2182
2183 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2184
2185 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2186
2187 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2188 wmemcpy.
2189
2190 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2191 wmemcpy.
2192
2193 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2194
2195 * include/wchar.h (__wcscpy): New prototype.
2196 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2197 (__wcscpy): Route internal symbol to generic implementation.
2198 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2199 Add internal __wcscpy alias.
2200 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2201 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2202 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2203 * wcsmbs/wcscpy.c (wcscpy): Add
2204 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2205 use generic implementation.
2206 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2207
2208 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2209 wmemset.
2210
2211 * sysdeps/m68k/wcpcpy.c: Remove file.
2212 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2213
2214 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2215
2216 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2217 than after operators.
2218 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2219 * sysdeps/mach/hurd/getcwd.c
2220 (__hurd_canonicalize_directory_name_internal): Likewise.
2221 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2222 (pthread_mutex_consistent): Likewise.
2223 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2224 Likewise.
2225 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2226 (__pthread_mutex_transfer_np): Likewise.
2227 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2228 (__pthread_mutex_unlock): Likewise.
2229 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2230 (mtx_owned_p): Likewise.
2231 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2232 (pthread_mutexattr_getrobust): Likewise.
2233 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2234 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2235 Likewise.
2236 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2237 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2238 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2239 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2240 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2241 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2242 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2243 Likewise.
2244 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2245 Likewise.
2246 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2247 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2248 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2249 (____longjmp_chk): Likewise.
2250 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2251 Likewise.
2252 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2253 (INTERNAL_SYSCALL): Likewise.
2254 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2255 (INTERNAL_SYSCALL): Likewise.
2256 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2257 (__get_clockfreq_via_cpuinfo): Likewise.
2258
2259 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2260 comments.
2261 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2262 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2263 (WORD_COPY_BWD): Likewise.
2264 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2265 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2266 Likewise.
2267 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2268 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2269 comment.
2270 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2271
2272 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2273
2274 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2275 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2276 rather than after operators.
2277 * elf/cache.c (print_cache): Likewise.
2278 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2279 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2280 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2281 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2282 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2283 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2284 (reauth_proc): Likewise.
2285 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2286 (__file_name_split_at): Likewise.
2287 (__directory_name_split_at): Likewise.
2288 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2289 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2290 * iconv/gconv_dl.c (do_print): Likewise.
2291 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2292 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2293 * locale/setlocale.c (new_composite_name): Likewise.
2294 * malloc/memusagestat.c (main): Likewise.
2295 * misc/fstab.c (fstab_convert): Likewise.
2296 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2297 Likewise.
2298 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2299 (getgrent_next_file): Likewise.
2300 (internal_getgrnam_r): Likewise.
2301 (internal_getgrgid_r): Likewise.
2302 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2303 Likewise.
2304 (internal_getgrent_r): Likewise.
2305 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2306 (getpwent_next_nss): Likewise.
2307 (getpwent_next_file): Likewise.
2308 (internal_getpwnam_r): Likewise.
2309 (internal_getpwuid_r): Likewise.
2310 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2311 Likewise.
2312 (getspent_next_nss): Likewise.
2313 (internal_getspnam_r): Likewise.
2314 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2315 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2316 * string/strchr.c (STRCHR): Likewise.
2317 * string/strchrnul.c (STRCHRNUL): Likewise.
2318 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2319 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2320 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2321 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2322 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2323 Likewise.
2324 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2325 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2326 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2327 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2328 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2329 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2330 (open_file): Likewise.
2331 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2332 (pthread_mutexattr_setprotocol): Likewise.
2333 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2334 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2335 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2336 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2337 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2338 Likewise.
2339 (elf_machine_rela): Likewise.
2340 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2341 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2342 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2343 * sysdeps/posix/rename.c (rename): Likewise.
2344 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2345 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2346 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2347 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2348 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2349 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2350 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2351 Likewise.
2352 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2353 Likewise.
2354 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2355 * time/tzfile.c (__tzfile_compute): Likewise.
2356
2357 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2358
2359 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2360 rather than after operators.
2361 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2362 * crypt/md5.c (md5_finish_ctx): Likewise.
2363 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2364 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2365 * elf/cache.c (load_aux_cache): Likewise.
2366 * elf/dl-load.c (open_verify): Likewise.
2367 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2368 * elf/readelflib.c (process_elf_file): Likewise.
2369 * elf/rtld.c (dl_main): Likewise.
2370 * elf/sprof.c (generate_call_graph): Likewise.
2371 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2372 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2373 * hurd/dtable.c (reauth_dtable): Likewise.
2374 * hurd/getdport.c (__getdport): Likewise.
2375 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2376 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2377 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2378 Likewise.
2379 * hurd/hurdioctl.c (fioctl): Likewise.
2380 * hurd/hurdselect.c (_hurd_select): Likewise.
2381 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2382 (STOPSIGS): Likewise.
2383 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2384 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2385 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2386 * hurd/msgportdemux.c (msgport_server): Likewise.
2387 * hurd/setauth.c (_hurd_setauth): Likewise.
2388 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2389 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2390 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2391 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2392 * login/tst-utmp.c (do_check): Likewise.
2393 (simulate_login): Likewise.
2394 * mach/lowlevellock.h (lll_lock): Likewise.
2395 (lll_trylock): Likewise.
2396 * math/test-fenv.c (ALL_EXC): Likewise.
2397 * math/test-fenvinline.c (ALL_EXC): Likewise.
2398 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2399 * nis/nis_call.c (__do_niscall3): Likewise.
2400 * nis/nis_callback.c (cb_prog_1): Likewise.
2401 * nis/nis_defaults.c (searchaccess): Likewise.
2402 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2403 * nis/nis_ismember.c (internal_ismember): Likewise.
2404 * nis/nis_local_names.c (nis_local_principal): Likewise.
2405 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2406 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2407 Likewise.
2408 * nis/ypclnt.c (yp_match): Likewise.
2409 (yp_first): Likewise.
2410 (yp_next): Likewise.
2411 (yp_master): Likewise.
2412 (yp_order): Likewise.
2413 * nscd/hstcache.c (cache_addhst): Likewise.
2414 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2415 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2416 (internal_getpwuid_r): Likewise.
2417 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2418 * posix/glob.h (__GLOB_FLAGS): Likewise.
2419 * posix/regcomp.c (peek_token): Likewise.
2420 (peek_token_bracket): Likewise.
2421 (parse_expression): Likewise.
2422 * posix/regexec.c (sift_states_iter_mb): Likewise.
2423 (check_node_accept_bytes): Likewise.
2424 * posix/tst-spawn3.c (do_test): Likewise.
2425 * posix/wordexp-test.c (testit): Likewise.
2426 * posix/wordexp.c (parse_tilde): Likewise.
2427 (exec_comm): Likewise.
2428 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2429 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2430 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2431 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2432 * stdio-common/tst-fileno.c (do_test): Likewise.
2433 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2434 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2435 * stdlib/strtod_l.c (round_and_return): Likewise.
2436 (____STRTOF_INTERNAL): Likewise.
2437 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2438 * string/strcspn.c (STRCSPN): Likewise.
2439 * string/test-memmem.c (simple_memmem): Likewise.
2440 * termios/tcsetattr.c (tcsetattr): Likewise.
2441 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2442 * time/asctime.c (asctime_internal): Likewise.
2443 * time/strptime_l.c (__strptime_internal): Likewise.
2444 * time/sys/time.h (timercmp): Likewise.
2445 * time/tzfile.c (__tzfile_compute): Likewise.
2446
2447 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2448
2449 [BZ #21915]
2450 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2451
2452 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2453
2454 * argp/argp-help.c (__argp_error_internal): New function,
2455 renamed from __argp_error, but that takes a 'mode_flags'
2456 parameter to control the format of long double parameters.
2457 (__argp_error): Converted into a call __argp_error_internal.
2458 (__argp_failure_internal): New function, renamed from
2459 __argp_failure, but that takes a 'mode_flags' parameter.
2460 (__argp_failure): Converted into a call __argp_failure_internal.
2461 * misc/err.c (__vwarnx_internal): New function, renamed from
2462 vwarnx, but that takes a 'mode_flags' parameter.
2463 (vwarnx): Converted into a call to __vwarnx_internal.
2464 (__vwarn_internal): New function, renamed from vwarn, but that
2465 takes a 'mode_flags' parameter.
2466 (vwarn): Converted into a call to __vwarn_internal.
2467 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2468 call to __vfxprintf with 'mode_flags'.
2469 (__error_internal): New function, renamed from error, but that
2470 takes a 'mode_flags' parameter.
2471 (error): Converted into a call to __error_internal.
2472 (__error_at_line_internal): New function, renamed from
2473 error_at_line, but that takes a 'mode_flags' parameter.
2474 (error_at_line): Converted into a call to
2475 __error_at_line_internal.
2476 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2477 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2478 Likewise.
2479
2480 2019-02-20 Martin Liska <mliska@suse.cz>
2481
2482 * math/Makefile: Install math-vector-fortran.h.
2483 * bits/math-vector-fortran.h: New file.
2484 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2485
2486 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2487
2488 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2489 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2490
2491 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2492
2493 * nptl/pthread_mutex_trylock.c: Fix comment.
2494
2495 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2496
2497 * nptl/pthread_tryjoin.c: Fix comment.
2498
2499 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2500
2501 [BZ #24231]
2502 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2503 after R_SPARC_H34 case.
2504
2505 2019-02-18 Florian Weimer <fweimer@redhat.com>
2506
2507 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2508 (getanswer): Do not call Dprintf.
2509 (res_gethostbyname2_context): Likewise.
2510 (res_gethostbyaddr_context): Likewise.
2511
2512 2019-02-18 Florian Weimer <fweimer@redhat.com>
2513
2514 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2515 declaration.
2516 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2517 Remove definitions.
2518 * libio/stdfiles.c: Update comment.
2519 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2520 set _IO_stdin, _IO_stdout, _IO_stderr.
2521 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2522 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2523 inline function.
2524 (_IO_deallocate_file): New inline function.
2525 * libio/iolibio.h (_IO_vprintf): Remove definition.
2526 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2527 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2528 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2529 _IO_legacy_file.
2530 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2531 __builtin_expect. Use _IO_legacy_file.
2532
2533 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2534
2535 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2536 Initialize ctid with a known value and remove update of ctid
2537 after clone.
2538 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2539 as assumed current value of ctid_ptr.
2540
2541 2019-02-16 Florian Weimer <fweimer@redhat.com>
2542
2543 Check that non-sysdeps headers have wrapper headers.
2544 * scripts/check-wrapper-headers.py: New file.
2545 * Makefile (tests-special): Add check-wrapper-headers.out.
2546 (check-wrapper-headers.out): New target.
2547 * Rules (tests-special): Add check-wrapper-headers.out.
2548 (check-wrapper-headers.out): New target.
2549
2550 2019-02-16 Florian Weimer <fweimer@redhat.com>
2551
2552 Add missing header wrappers under include/.
2553 * include/ar.h: New file.
2554 * include/bits/mqueue2.h: Likewise.
2555 * include/bits/stdio.h: Likewise.
2556 * include/bits/stdio2.h: Likewise.
2557 * include/fstab.h: Likewise.
2558 * include/fts.h: Likewise.
2559 * include/lastlog.h: Likewise.
2560 * include/netinet/icmp6.h: Likewise.
2561 * include/netinet/igmp.h: Likewise.
2562 * include/netinet/ip6.h: Likewise.
2563 * include/re_comp.h: Likewise.
2564 * include/regexp.h: Likewise.
2565 * include/rpcsvc/bootparam.h: Likewise.
2566 * include/rpcsvc/yp_prot.h: Likewise.
2567 * include/sys/random.h: Likewise.
2568 * include/sys/stropts.h: Likewise.
2569 * include/sys/ttychars.h: Likewise.
2570 * include/sys/vfs.h: Likewise.
2571 * include/wait.h: Likewise.
2572
2573 2019-02-16 Florian Weimer <fweimer@redhat.com>
2574
2575 * nptl_db/proc_service.h: Move to ...
2576 * sysdeps/nptl/proc_service.h: ... here.
2577 * nptl_db/thread_db.h: Move to ...
2578 * sysdeps/nptl/thread_db.h: ... here.
2579 * nptl/descr.h: Include <thread_db.h>.
2580
2581 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2582
2583 * io/Makefile (tests): Add tst-lockf.
2584 * io/lockf.c (lockf): Use __fcntl and only define for
2585 !__OFF_T_MATCHES_OFF64_T.
2586 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2587 __OFF_T_MATCHES_OFF64_T case.
2588 * io/tst-lockf.c: New file.
2589 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2590 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2591 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2592 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2593 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2595 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2596 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2597 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2598
2599 2019-02-15 Florian Weimer <fweimer@redhat.com>
2600
2601 [BZ #24211]
2602 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2603 pd->result after the thread descriptor has been freed.
2604
2605 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2606
2607 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2608 from function return type.
2609
2610 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2611
2612 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2613
2614 * scripts/test_printers_common.py: Set TERM to a known harmless
2615 value.
2616
2617 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2618
2619 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2620 (xdr_u_int): Likewise.
2621 (xdr_enum): Likewise.
2622 (xdr_bytes): Reword fall-through comment.
2623 (xdr_string): Likewise.
2624
2625 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2626
2627 [BZ #2421]
2628 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2629 (tests): Add tst-join8 tst-join9.
2630 * nptl/lll_timedwait_tid.c: Remove file.
2631 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2632 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2633 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2634 * nptl/pthread_join_common.c (timedwait_tid): New function.
2635 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2636 is set.
2637 * nptl/tst-join5.c (thread_join): New function.
2638 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2639 check.
2640 * nptl/tst-join8.c: New file.
2641 * nptl/tst-join9.c: Likewise.
2642 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2643 lll_futex_timed_wait_cancel): Add generic macros.
2644 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2645 Remove definitions.
2646 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2647 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2648 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2649 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2650 Remove function.
2651 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2652 Likewise.
2653 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2654 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2655 (lll_futex_timed_wait_cancel): New macro.
2656
2657 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2658
2659 * benchtests/Makefile: Add malloc-simple benchmark.
2660 * benchtests/bench-malloc-simple.c: New benchmark.
2661
2662 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2663
2664 * benchtests/bench-memmove.c (do_one_test): Remove unused
2665 ORIG_SRC.
2666 (do_test): Adjust.
2667 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2668 ORIG_SRC.
2669 (do_test): Adjust.
2670
2671 2019-01-13 Jim Wilson <jimw@sifive.com>
2672
2673 [BZ #24040]
2674 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2675 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2676 (func): New.
2677 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2678 call func directly.
2679 * nptl/Makefile (tests): Add tst-unwind-thread.
2680 (CFLAGS-tst-unwind-thread.c): Define.
2681 * nptl/tst-unwind-thread.c: New file.
2682 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2683 as undefined.
2684
2685 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2686
2687 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2688 comment wording.
2689 * nis/nis_call.c (__do_niscall3): Likewise.
2690
2691 * catgets/gencat.c (normalize_line): Use braces around empty
2692 'else' body.
2693 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2694 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2695 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2696 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2697 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2698 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2699 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2700 definition.
2701
2702 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2703 execlp returns.
2704
2705 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2706
2707 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2708 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2709 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2710 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2711 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2712 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2713 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2714 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2715 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2716 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2717 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2718 * benchtests/bench-bcopy.c: Delete file.
2719 * benchtests/bench-bzero.c: Likewise.
2720 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2721 (simple_memccpy): Remove.
2722 (generic_memccpy): Add function.
2723 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2724 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2725 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2726 (generic_mempcpy): Add new function.
2727 * benchtests/bench-memset.c (simple_bzero): Remove.
2728 (builtin_bzero): Remove.
2729 (builtin_memset): Remove.
2730 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2731 (generic_rawmemchr): Add new function.
2732
2733 2019-02-12 Florian Weimer <fweimer@redhat.com>
2734
2735 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2736
2737 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2738
2739 [BZ #24122]
2740 * elf/Makefile (tests): Add tst-audit13.
2741 (modules-names): Add tst-audit13mod1.
2742 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2743 rule.
2744 * elf/tst-audit13.c: New file.
2745 * elf/tst-audit13mod1.c: Likewise.
2746
2747 2019-02-12 Florian Weimer <fweimer@redhat.com>
2748
2749 [BZ #24122]
2750 * elf/rtld.c (unload_audit_module): New function.
2751 (report_audit_module_load_error): Likewise.
2752 (load_audit_module): Likewise. Extracted from dl_main. Call
2753 _dl_close if the laversion symbol cannot be found. Use early
2754 returns for error handling. Add malloc error check. Check for a
2755 zero return value from la_version. Remove spurious comment about
2756 static TLS initialization. Remove useless casts.
2757 (notify_audit_modules_of_loaded_object): New function. Extracted
2758 from dl_main.
2759 (load_audit_module): Likewise.
2760 (dl_main): Call load_audit_modules.
2761
2762 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2763
2764 * elf/dl-exception.c (_dl_exception_create_format): Add
2765 fall-through comments.
2766 * elf/ldconfig.c (parse_conf_include): Likewise.
2767 * elf/rtld.c (print_statistics): Likewise.
2768 * locale/programs/charmap.c (parse_charmap): Likewise.
2769 * misc/mntent_r.c (__getmntent_r): Likewise.
2770 * posix/wordexp.c (parse_arith): Likewise.
2771 (parse_backtick): Likewise.
2772 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2773 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2774 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2775
2776 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2777
2778 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2779 Use float instead of double.
2780
2781 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2782
2783 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2784
2785 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2786
2787 * sysdeps/powerpc/bits/mathinline.h: Remove.
2788
2789 2019-02-08 Florian Weimer <fweimer@redhat.com>
2790
2791 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2792 * math/bits/math-finite.h: Move to ...
2793 * bits/math-finite.h: ... here.
2794
2795 2019-02-08 Florian Weimer <fweimer@redhat.com>
2796
2797 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2798 * bits/unistd_ext.h: here.
2799
2800 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2801
2802 [BZ #21915]
2803 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2804 * nss/tst-nss-files-hosts-long.c: New file.
2805 * nss/tst-nss-files-hosts-long.root: New directory.
2806 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2807 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2808
2809 2019-02-08 Florian Weimer <fweimer@redhat.com>
2810
2811 * include/bits/unistd_ext.h: Remove file.
2812 * posix/bits/unistd_ext.h: Move to ...
2813 * sysdeps/generic/bits/unistd_ext.h: ... here.
2814
2815 2019-02-08 Florian Weimer <fweimer@redhat.com>
2816
2817 * include/bits/unistd_ext.h: New file.
2818
2819 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2820
2821 * time/tst-strftime2.c: Use array_length macros instead of magic
2822 numbers.
2823
2824 2019-02-08 Florian Weimer <fweimer@redhat.com>
2825
2826 [BZ #24161]
2827 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2828 argument.
2829 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2830 locking if the new do_locking argument is true.
2831 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2832 __run_fork_handlers.
2833
2834 2019-02-08 Florian Weimer <fweimer@redhat.com>
2835
2836 [BZ #6399]
2837 Linux: Add gettid system call wrapper.
2838 * posix/Makefile (headers): Add bits/unistd_ext.h.
2839 * posix/bits/unistd_ext.h: New file.
2840 * posix/unistd.h: Include it.
2841 * manual/process.texi (Process Identification): Document gettid.
2842 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2843 tst-gettid, tst-gettid-kill.
2844 (tst-gettid): Link with $(shared-thread-library).
2845 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2846 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2847 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2848 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2849 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2850 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2851 Add gettid.
2852 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2853 Likewise.
2854 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2855 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2856 Likewise.
2857 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2858 Likewise.
2859 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2860 Likewise.
2861 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2862 Likewise.
2863 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2864 Likewise.
2865 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2866 Likewise.
2867 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2868 Likewise.
2869 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2870 (GLIBC_2.30): Likewise.
2871 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2872 (GLIBC_2.30): Likewise.
2873 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2874 (GLIBC_2.30): Likewise.
2875 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2876 (GLIBC_2.30): Likewise.
2877 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2878 Likewise.
2879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2880 (GLIBC_2.30): Likewise.
2881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2882 (GLIBC_2.30): Likewise.
2883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2884 (GLIBC_2.30): Likewise.
2885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2886 (GLIBC_2.30): Likewise.
2887 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2888 Likewise.
2889 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2890 Likewise.
2891 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2892 Likewise.
2893 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2894 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2895 Likewise.
2896 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2897 Likewise.
2898 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2899 Likewise.
2900 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2901 Likewise.
2902 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2903
2904 2019-02-08 Florian Weimer <fweimer@redhat.com>
2905
2906 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2907 compatibility symbols.
2908
2909 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2910
2911 [BZ #24180]
2912 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2913 Add compiler barriers and comments.
2914
2915 2019-02-07 Florian Weimer <fweimer@redhat.com>
2916
2917 * include/array_length.h (array_length): Do not use a statement
2918 expression and _Static_assert, so that array_length can be used at
2919 file scope and as a constant expression.
2920
2921 2019-02-07 Florian Weimer <fweimer@redhat.com>
2922
2923 * support/xdlfcn.h (xdlmopen): Declare.
2924 * support/xdlmopen.c: New file.
2925 * support/Makefile (libsupport-routines): Add xdlmopen.
2926
2927 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2928
2929 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2930 before return type, without separate inline.
2931 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2932 * elf/dl-tunables.h (tunable_is_name): Likewise.
2933 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2934 (do_set_top_pad): Likewise.
2935 (do_set_mmap_threshold): Likewise.
2936 (do_set_mmaps_max): Likewise.
2937 (do_set_mallopt_check): Likewise.
2938 (do_set_perturb_byte): Likewise.
2939 (do_set_arena_test): Likewise.
2940 (do_set_arena_max): Likewise.
2941 (do_set_tcache_max): Likewise.
2942 (do_set_tcache_count): Likewise.
2943 (do_set_tcache_unsorted_limit): Likewise.
2944 * nis/nis_subr.c (count_dots): Likewise.
2945 * nptl/allocatestack.c (advise_stack_range): Likewise.
2946 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2947 (do_sin): Likewise.
2948 (reduce_sincos): Likewise.
2949 (do_sincos): Likewise.
2950 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2951 (do_set_elision_enable): Likewise.
2952 (TUNABLE_CALLBACK_FNDECL): Likewise.
2953
2954 2019-02-06 Florian Weimer <fweimer@redhat.com>
2955
2956 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2957 (xdlsym): Use dlerror to detect a NULL symbol.
2958
2959 2019-02-06 Florian Weimer <fweimer@redhat.com>
2960
2961 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2962 <stap-probe.h>.
2963 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2964
2965 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2966
2967 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2968
2969 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2970
2971 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2972 __wmemcmp and weak alias to wmemcmp.
2973
2974 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2975
2976 [BZ #23403]
2977 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2978 TLS_TCB_AT_TP tls variant.
2979 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2980 Add alignment checks.
2981 * support/Makefile (libsupport-routines): Add xposix_memalign and
2982 xpthread_setstack.
2983 * support/support.h: Add xposix_memalign.
2984 * support/xthread.h: Add xpthread_attr_setstack.
2985 * support/xposix_memalign.c: New File.
2986 * support/xpthread_attr_setstack.c: Likewise.
2987
2988 2019-02-05 Florian Weimer <fweimer@redhat.com>
2989
2990 [BZ #24164]
2991 arm: Use "nr" constraint for Systemtap probes, to avoid the
2992 compiler using memory operands for constants, due to the "o"
2993 alternative in the default "nor" constraint.
2994 * include/stap-probe.h [USE_STAP_PROBE]: Include
2995 <stap-probe-machine.h>
2996 * sysdeps/generic/stap-probe-machine.h: New file.
2997 * sysdeps/arm/stap-probe-machine.h: Likewise.
2998
2999 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3000
3001 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3002 with 0, not tcache->entries[tc_idx].
3003
3004 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3005 once.
3006
3007 2019-02-04 Andreas Schwab <schwab@suse.de>
3008
3009 [BZ #16976]
3010 [BZ #17396]
3011 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3012 looking up collating elements match against (wide) character
3013 sequence instead of name. Correct alignment adjustment.
3014 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3015 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3016 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3017 (LOCALES): Add cs_CZ.ISO-8859-2.
3018 * posix/tst-fnmatch4.c: New file.
3019 * posix/tst-fnmatch5.c: New file.
3020 * include/wchar.h (__wmemcmp): Declare.
3021 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3022 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3023 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3024 * sysdeps/s390/wmemcmp.c: Likewise.
3025
3026 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3027
3028 [BZ #24155]
3029 CVE-2019-7309
3030 * NEWS: Updated for CVE-2019-7309.
3031 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3032 upper 32 bits of RDX register for x32. Use unsigned Jcc
3033 instructions, instead of signed.
3034 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3035 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3036
3037 2019-02-04 Florian Weimer <fweimer@redhat.com>
3038
3039 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3040 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3041 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3042 Likewise.
3043 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3044 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3045 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3046 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3047 Likewise.
3048 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3049 Likewise.
3050 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3051 Likewise.
3052 (posix_spawn_file_actions_addopen): Likewise.
3053 (posix_spawn_file_actions_addclose): Likewise.
3054 (posix_spawn_file_actions_adddup2): Likewise.
3055 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3056 qualifiers.
3057 (posix_spawn_file_actions_addfchdir_np): Likewise.
3058
3059 2019-02-04 David Newall <glibc@davidnewall.com>
3060
3061 elf: Implement --preload option for the dynamic linker.
3062 * elf/rtld.c (preloadarg): New variable.
3063 (handle_preload_list): Pass through “where” argument to
3064 do_preload.
3065 (dl_main): Handle "--preload" and add second call to
3066 handle_preload_list.
3067 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3068 (tst-rtld-preload-OBJS): Set variable.
3069 (tst-rtld-preload.out): New target.
3070 * elf/tst-rtld-preload.sh: New file.
3071
3072 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3073
3074 * Makefile (testrun.sh): Exit in case of incorrect argument.
3075
3076 2019-02-04 Florian Weimer <fweimer@redhat.com>
3077
3078 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3079 alignment gaps.
3080
3081 2019-02-03 Florian Weimer <fweimer@redhat.com>
3082
3083 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3084 implicit overflow checks.
3085
3086 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3087
3088 * stdlib/isomac.c: Include <unistd.h>.
3089
3090 2019-02-03 Florian Weimer <fweimer@redhat.com>
3091
3092 * include/time.h (__tzfile_default): Use int, not long int, for
3093 the GMT offsets.
3094 * time/tzfile.c (struct ttinfo): Change type of the offset member
3095 to int.
3096 (__tzfile_read): Remove useless cast.
3097 (__tzfile_default): Adjust prototype.
3098 * time/tzset.c (tz_rule): Change type of the offset member to int.
3099 (parse_offset): Change the type of the sign variable to int.
3100
3101 2019-02-03 Florian Weimer <fweimer@redhat.com>
3102
3103 [BZ #24153]
3104 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3105 * libio/getchar.c (getchar): Likewise.
3106 * libio/getchar_u.c (getchar_unlocked): Likewise.
3107 * libio/getwchar.c (getwchar): Likewise.
3108 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3109 * libio/iogets.c (_IO_gets): Likewise.
3110 * libio/vscanf.c (_IO_vscanf): Likewise.
3111 * libio/vwscanf.c (__vwscanf): Likewise.
3112 * libio/tst-bz24153.c: New file.
3113 * libio/Makefile (tests): Add it.
3114
3115 2019-02-02 Florian Weimer <fweimer@redhat.com>
3116
3117 [BZ #14829]
3118 * manual/resource.texi (Basic Scheduling Functions): Add
3119 portability note. Change process to task throughout the section.
3120 Remove incorrect comment about sched_yield as it affects
3121 tasks/threads, not entire processes.
3122 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3123 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3124
3125 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3126
3127 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3128 * configure: Regenerated.
3129 * manual/install.texi (Tools for Compilation): Update minimum GCC
3130 version.
3131 * INSTALL: Regenerated.
3132
3133 2019-02-01 Florian Weimer <fweimer@redhat.com>
3134
3135 * support/support_test_compare_string.c
3136 (support_test_compare_string): Use "string" in error message.
3137 * support/tst-test_compare_string.c (do_test): Adjust.
3138
3139 2019-02-01 Florian Weimer <fweimer@redhat.com>
3140
3141 * support/support_format_address_family.c
3142 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3143
3144 2019-02-01 Florian Weimer <fweimer@redhat.com>
3145
3146 * manual/socket.texi (Internet Address Formats): Clarify the byte
3147 order of struct sockaddr_in, struct sockaddr_in6. Document
3148 sin6_flowinfo and sin6_scope_id.
3149
3150 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3151
3152 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3153 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3154 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3155 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3156 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3157 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3158
3159 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3160
3161 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3162 [!MEMCHR](MEMCHR): Set to __memchr.
3163 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3164 Add memchr_generic and memchr_nosimd.
3165 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3166 (__libc_ifunc_impl_list): Add memchr ifuncs.
3167 * sysdeps/aarch64/multiarch/memchr.c: New file.
3168 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3169 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3170
3171 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3172
3173 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3174 Add memset_emag.
3175 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3176 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3177 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3178 Add IS_EMAG check for ifunc dispatch.
3179 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3180 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3181
3182 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3183
3184 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3185 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3186 Add emag.
3187 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3188 New macro.
3189
3190 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3191
3192 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3193
3194 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3195
3196 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3197 syscall-template file.
3198
3199 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3200 Torvald Riegel <triegel@redhat.com>
3201 Rik Prohaska <prohaska7@gmail.com>
3202
3203 [BZ# 23844]
3204 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3205 tst-rwlock-trywrlock-stall.
3206 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3207 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3208 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3209 Set __wrphase_fute to 1 only if we started the write phase.
3210 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3211 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3212 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3213 * support/xpthread_rwlock_destroy.c: New file.
3214 * support/xthread.h: Declare xpthread_rwlock_destroy.
3215
3216 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3217
3218 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3219 version to 4.0.2.
3220
3221 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3222
3223 [BZ #24051]
3224 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3225 * libio/fileops.c (_IO_new_file_underflow): Likewise
3226 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3227 * libio/putchar.c (putchar): Likewise.
3228 * libio/putchar_u.c (putchar_unlocked): Likewise.
3229 * libio/putwchar.c (putchar): Likewise.
3230 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3231 * libio/tst-bz24051.c: New test.
3232 * libio/Makefile (tests): Add tst-bz24051
3233
3234 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3235
3236 CVE-2019-9169
3237 regex: fix read overrun [BZ #24114]
3238 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3239 https://debbugs.gnu.org/34140
3240 * posix/regexec.c (proceed_next_node):
3241 Do not read past end of input buffer.
3242
3243 2019-01-31 Florian Weimer <fweimer@redhat.com>
3244
3245 [BZ #24059]
3246 * nss/nss_files/files-alias.c (get_next_alias): Handle
3247 continuation line without newline at the end.
3248 * nss/tst-nss-files-alias-truncated.c: New file.
3249 * nss/Makefile [$(build-shared)] (tests): Add
3250 tst-nss-files-alias-truncated.
3251 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3252 * support/namespace.h (struct support_chroot_configuration): Add
3253 aliases member.
3254 (struct support_chroot): Add path_aliases member.
3255 * support/support_chroot.c (support_chroot_create): Handle
3256 aliases.
3257 (support_chroot_free): Free path_aliases.
3258
3259 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3260
3261 * version.h (RELEASE): Set to "development".
3262 (VERSION): Set to "2.29.9000".
3263 * NEWS: Add section for 2.30.
3264
3265 * version.h (RELEASE): Set to "stable".
3266 (VERSION): Set to "2.29".
3267 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3268
3269 * NEWS: Add the list of bugs fixed in 2.29.
3270 * manual/contrib.texi: Update contributors list with some more
3271 names.
3272 * manual/install.texi: Update latest versions of packages
3273 tested.
3274 * INSTALL: Regenerated.
3275
3276 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3277
3278 * po/be.po: Update translations.
3279 * po/bg.po: Likewise.
3280 * po/ca.po: Likewise.
3281 * po/cs.po: Likewise.
3282 * po/da.po: Likewise.
3283 * po/de.po: Likewise.
3284 * po/el.po: Likewise.
3285 * po/eo.po: Likewise.
3286 * po/es.po: Likewise.
3287 * po/fi.po: Likewise.
3288 * po/fr.po: Likewise.
3289 * po/gl.po: Likewise.
3290 * po/hr.po: Likewise.
3291 * po/hu.po: Likewise.
3292 * po/ia.po: Likewise.
3293 * po/id.po: Likewise.
3294 * po/it.po: Likewise.
3295 * po/ja.po: Likewise.
3296 * po/ko.po: Likewise.
3297 * po/lt.po: Likewise.
3298 * po/nb.po: Likewise.
3299 * po/nl.po: Likewise.
3300 * po/pl.po: Likewise.
3301 * po/pt_BR.po: Likewise.
3302 * po/ru.po: Likewise.
3303 * po/rw.po: Likewise.
3304 * po/sk.po: Likewise.
3305 * po/sl.po: Likewise.
3306 * po/sv.po: Likewise.
3307 * po/tr.po: Likewise.
3308 * po/uk.po: Likewise.
3309 * po/vi.po: Likewise.
3310 * po/zh_CN.po: Likewise.
3311 * po/zh_TW.po: Likewise.
3312
3313 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3314
3315 [BZ #24130]
3316 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3317 of $f3 register on $y_is_neg path.
3318
3319 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3320
3321 [BZ #24110]
3322 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3323 sigaltstack.ss_flags.
3324
3325 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3326
3327 [BZ #23758]
3328 * manual/time.texi (strftime): Document "%Ey".
3329 * time/strftime_l.c (__strftime_internal): Set the default width
3330 padding with zero of "%Ey" to 2.
3331
3332 [BZ #24096]
3333 * manual/time.texi (strftime): Document "%EC" and "%EY".
3334 * time/Makefile (tests): Add tst-strftime2.
3335 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3336 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3337 override padding for "%Ey".
3338 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3339 "%Ey" in the subformat as if decorated with that flag.
3340 * time/tst-strftime2.c: New file.
3341
3342 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3343
3344 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3345 are not defined.
3346
3347 [BZ #24122]
3348 * elf/Makefile (tests): Add tst-audit13.
3349 (modules-names): Add tst-audit13mod1.
3350 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3351 rule.
3352 * elf/rtld.c (dl_main): Handle invalid audit module version.
3353 * elf/tst-audit13.c: New file.
3354 * elf/tst-audit13mod1.c: Likewise.
3355
3356 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3357
3358 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3359 returned by __hurd_at_flags.
3360 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3361 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3362 directly instead of __hurd_file_name_lookup.
3363
3364 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3365
3366 * scripts/build-many-glibcs.py (Context.checkout): Default
3367 binutils version to 2.32 branch.
3368
3369 2019-01-21 Florian Weimer <fweimer@redhat.com>
3370
3371 [BZ #20018]
3372 CVE-2016-10739
3373 resolv: Reject trailing characters in host names
3374 * include/arpa/inet.h (__inet_aton_exact): Declare.
3375 (inet_aton): Remove hidden prototype. No longer used internally.
3376 * nscd/gai.c (__inet_aton): Do not define.
3377 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3378 * nss/digits_dots.c (__inet_aton): Likewise.
3379 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3380 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3381 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3382 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3383 (tst-resolv-trailing): Likewise.
3384 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3385 libc.
3386 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3387 Make static. Add endp parameter.
3388 (__inet_aton_exact): New function.
3389 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3390 (__inet_addr): Call inet_aton_end.
3391 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3392 not just IPv6. Call __inet_aton_exact.
3393 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3394 (tests): Make const. Add additional test cases with trailing
3395 characters.
3396 (do_test): Use array_length.
3397 * resolv/tst-inet_aton_exact.c: New file.
3398 * resolv/tst-resolv-trailing.c: Likewise.
3399 * resolv/tst-resolv-nondecimal.c: Likewise.
3400 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3401
3402 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3403
3404 [BZ# 24097]
3405 CVE-2019-6488
3406 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3407 Clear the upper 32 bits of RSI register.
3408 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3409 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3410 and tst-size_t-wcsnlen.
3411 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3412 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3413
3414 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3415
3416 [BZ# 24097]
3417 CVE-2019-6488
3418 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3419 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3420 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3421 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3422 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3423
3424 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3425
3426 [BZ# 24097]
3427 CVE-2019-6488
3428 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3429 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3430 * sysdeps/x86_64/strcmp.S: Likewise.
3431 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3432 tst-size_t-strncmp and tst-size_t-wcsncmp.
3433 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3434 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3435 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3436
3437 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3438
3439 [BZ# 24097]
3440 CVE-2019-6488
3441 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3442 RDX_LP for length. Clear the upper 32 bits of RDX register.
3443 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3444 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3445 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3446 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3447
3448 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3449
3450 [BZ# 24097]
3451 CVE-2019-6488
3452 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3453 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3454 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3455 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3456
3457 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3458
3459 [BZ# 24097]
3460 CVE-2019-6488
3461 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3462 length. Clear the upper 32 bits of RDX register.
3463 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3464 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3465 Likewise.
3466 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3467 Likewise.
3468 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3469 tst-size_t-wmemchr.
3470 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3471
3472 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3473
3474 [BZ# 24097]
3475 CVE-2019-6488
3476 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3477 length. Clear the upper 32 bits of RDX register.
3478 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3479 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3480 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3481 tst-size_t-wmemcmp.
3482 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3483 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3484
3485 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3486
3487 [BZ# 24097]
3488 CVE-2019-6488
3489 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3490 upper 32 bits of RDX register.
3491 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3492 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3493 tst-size_t-wmemchr.
3494 * sysdeps/x86_64/x32/test-size_t.h: New file.
3495 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3496 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3497
3498 2019-01-18 Florian Weimer <fweimer@redhat.com>
3499
3500 [BZ #24112]
3501 resolv: Do not send queries for non-host-names in nss_dns.
3502 * resolv/nss_dns/dns-host.c (check_name): New function.
3503 (_nss_dns_gethostbyname2_r): Use it.
3504 (_nss_dns_gethostbyname_r): Likewise.
3505 (_nss_dns_gethostbyname4_r): Likewise.
3506
3507 2019-01-21 Florian Weimer <fweimer@redhat.com>
3508
3509 * resolv/inet_addr.c: Reformat to GNU style.
3510 (__inet_addr, __inet_aton): Update comment.
3511
3512 2019-01-18 Florian Weimer <fweimer@redhat.com>
3513
3514 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3515 ("malloc: Use current (C11-style) atomics for fastbin access").
3516 This commit introduces a substantial performance regression on
3517 POWER and Aarch64.
3518 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3519 (REMOVE_FB): Define.
3520 (_int_malloc): Use it and reindent.
3521 (_int_free): Use CAS loop with
3522 catomic_compare_and_exchange_val_rel.
3523 (malloc_consolidate): Use atomic_exchange_acq.
3524
3525
3526 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3527
3528 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3529 -Wl,-z,now.
3530 (LDFLAGS-tst-minsigstksz-2): Likewise.
3531 (LDFLAGS-tst-minsigstksz-3): Likewise.
3532 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3533 (LDFLAGS-tst-minsigstksz-4): Likewise.
3534
3535 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3536
3537 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3538 than "alternate".
3539
3540 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3541
3542 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3543
3544 2019-01-16 Zack Weinberg <zackw@panix.com>
3545
3546 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3547 (xget_sigstack_location): New test support functions.
3548 * support/xsigstack.c: New file, implementing them.
3549 * support/tst-xsigstack.c: New test for them.
3550 * support/Makefile: Update.
3551
3552 * signal/tst-minsigstksz-1.c
3553 * signal/tst-minsigstksz-2.c
3554 * signal/tst-minsigstksz-3.c
3555 * signal/tst-minsigstksz-3a.c
3556 * signal/tst-minsigstksz-4.c: New tests.
3557 * signal/Makefile: Run them.
3558
3559 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3560
3561 * po/libc.pot: Regenerate.
3562
3563 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3564
3565 * math/libm-test-fma.inc (fma_test_data): Set
3566 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3567
3568 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3569
3570 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3571 (do_test): Changed __vector __int128_t to __vector unsigned int.
3572
3573 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3574
3575 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3576 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3577 stpcpy-avx2 and stpncpy-avx2.
3578 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3579 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3580 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3581 and __stpncpy_avx2.
3582 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3583 ifunc-strcpy.h}: rename header for a more generic name.
3584 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3585 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3586 AVX unaligned load is fast and vzeroupper is preferred.
3587 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3588 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3589 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3590 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3591 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3592 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3593
3594 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3595
3596 * argp/argp-help.c: Fix typo in comment.
3597 * misc/sys/cdefs.h: Likewise.
3598 * posix/regexec.c (sift_states_iter_mb): Likewise.
3599 * socket/sockatmark.c: Likewise.
3600 * socket/sys/socket.h: Likewise.
3601 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3602 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3603 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3604 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3605 * sysdeps/unix/sockatmark.c: Likewise.
3606 * time/strptime_l.c: Likewise.
3607
3608 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3609
3610 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3611 missing space after the cast of "_NL_CURRENT".
3612
3613 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3614
3615 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3616 ifdef to fix read of VSCR.
3617 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3618 tst-ucontext-ppc64-vscr.c to test list.
3619 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3620
3621 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3622
3623 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3624 fall-through.
3625
3626 2019-01-09 Jim Wilson <jimw@sifive.com>
3627
3628 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3629
3630 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3631
3632 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3633 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3634 __memcpy_falkor for ares.
3635 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3636 Add new define.
3637 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3638 Add ares cpu.
3639
3640 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3641
3642 [BZ #24066]
3643 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3644 4_FP_W_TYPEs are used for IEEE quad precision.
3645 * soft-fp/extendhftf2.c: Likewise.
3646 * soft-fp/extendsftf2.c: Likewise.
3647 * soft-fp/extendxftf2.c: Likewise.
3648 * soft-fp/trunctfdf2.c: Likewise.
3649 * soft-fp/trunctfhf2.c: Likewise.
3650 * soft-fp/trunctfsf2.c: Likewise.
3651 * soft-fp/trunctfxf2.c: Likewise.
3652 * sysdeps/alpha/ots_cvttx.c: Likewise.
3653 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3654 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3655 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3656 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3657 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3658 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3659 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3660 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3661 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3662 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3663 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3664 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3665 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3666 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3667 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3668 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3669 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3670
3671 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3672
3673 [BZ #24024]
3674 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3675 code with -fmath-errno.
3676 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3677 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3678 * string/test-strerror-errno.c: New file.
3679
3680 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3681
3682 [BZ #24046]
3683 * localedata/locales/en_US (date_fmt): Add, set to
3684 "%a %d %b %Y %r %Z".
3685
3686 2019-01-07 Florian Weimer <fweimer@redhat.com>
3687
3688 [BZ #24063]
3689 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3690 instead of @var{errno}.
3691 (Parsing of Integers): Likewise.
3692 (Parsing of Floats): Likewise.
3693 * manual/filesys.texi (Working with Directory Trees): Likewise.
3694 (Temporary Files): Likewise.
3695 * manual/job.texi (Terminal Access Functions): Likewise.
3696 * manual/llio.texi (Synchronizing I/O): Likewise.
3697 * manual/math.texi (SVID Random): Likewise.
3698 * manual/message.texi (The catgets Functions): Likewise.
3699 (Translation with gettext): Likewise.
3700 (Locating gettext catalog): Likewise.
3701 (Charset conversion in gettext): Likewise.
3702 * manual/nss.texi (NSS Module Function Internals): Likewise.
3703 * manual/search.texi (Hash Search Function): Likewise.
3704 * manual/setjmp.texi (System V contexts): Likewise.
3705 * manual/time.texi (Sleeping): Likewise.
3706 * manual/users.texi (Lookup User): Likewise.
3707 (Lookup Group): Likewise.
3708
3709 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3710
3711 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3712 fix typo.
3713
3714 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3715
3716 [BZ #19444]
3717 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3718 __builtin_unreachable for default case in switch.
3719 (__ieee754_yn): Likewise.
3720 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3721 (__ieee754_ynl): Likewise.
3722 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3723 (__ieee754_ynl): Likewise.
3724 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3725 (__ieee754_ynl): Likewise.
3726
3727 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3728
3729 * manual/maint.texi: Use @{ and @}.
3730
3731 2019-01-04 Florian Weimer <fweimer@redhat.com>
3732
3733 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3734 function.
3735 (do_in_chroot_1): Call it.
3736 (run_chroot_tests):
3737 Improve error reporting in case it is not possible to create a
3738 collision for the PTY name required by the test.
3739
3740 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3741
3742 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3743 lll_wait_tid with timeout.
3744 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3745 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3746 futex_reltimed_wait_cancelable for cancelabla mode.
3747 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3748 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3749 macros.
3750 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3751 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3752 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3753 SYSCALL_CANCEL_NCS): New macro.
3754 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3755 (lll_timedwait_tid): Remove macro.
3756 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3757 Likewise.
3758 (lll_timedwait_tid): Likewise.
3759 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3760 Likewise.
3761 (lll_timedwait_tid): Likewise.
3762 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3763 Likewise.
3764 (lll_timedwait_tid): Likewise.
3765 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3766 Use INTERNAL_SYSCALL_CANCEL.
3767 * sysdeps/unix/sysv/linux/futex-internal.h
3768 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3769 instead of __pthread_{enable,disable}_asynccancel.
3770 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3771 (lll_futex_wait_cancel): New macro.
3772
3773 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3774 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3775
3776 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3777 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3778
3779 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3780 in backtrace analysis.
3781 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3782 side-effects.
3783 (tf_send): Likewise.
3784
3785 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3786 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3787 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3788 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3789 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3790 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3791 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3792 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3793 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3794 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3795 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3796 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3797 Likewise.
3798 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3799 tst-cancel-wrappers.sh.
3800 (generated): Remove tst-cancel-wrappers.out.
3801 (tst-cancel-wrappers.out): Remove rule.
3802 * nptl/tst-cancel-wrappers.sh: Remove file.
3803
3804 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3805
3806 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3807 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3808 Update.
3809
3810 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3811
3812 [BZ #23640]
3813 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3814 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3815 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3816 close-on-exec reset for adddup2 file action.
3817 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3818
3819 2019-01-03 Zack Weinberg <zackw@panix.com>
3820
3821 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3822 parameter. Only use deprecated scanf when __USE_GNU is defined
3823 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3824 than 201103L, whichever is relevant for the language being compiled.
3825
3826 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3827 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3828 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3829 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3830 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3831
3832 * libio/iovsscanf.c
3833 * libio/fwscanf.c
3834 * libio/iovswscanf.c
3835 * libio/swscanf.c
3836 * libio/vscanf.c
3837 * libio/vwscanf.c
3838 * libio/wscanf.c
3839 * stdio-common/fscanf.c
3840 * stdio-common/scanf.c
3841 * stdio-common/vfscanf.c
3842 * stdio-common/vfwscanf.c
3843 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3844 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3845 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3846 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3847 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3848 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3849 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3850 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3851 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3852 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3853 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3854 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3855 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3856 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3857 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3858
3859 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3860 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3861 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3862 not sscanf.
3863 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3864 with a preprocessor macro.
3865
3866 * stdio-common/bug21.c, stdio-common/scanf14.c:
3867 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3868 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3869 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3870 to xscanf, xfscanf, xsscanf.
3871
3872 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3873 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3874 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3875 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3876 xfscanf, xsscanf.
3877 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3878 override feature selection macros or provide definitions of u_char etc.
3879 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3880 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3881 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3882 with -std=gnu89.
3883
3884 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3885
3886 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3887 bits/termios-misc.h.
3888 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3889 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3890 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3891 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3892 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3893 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3894
3895 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3896 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3897 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3898 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3899 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3900 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3901 termios-misc.h.
3902 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3903 (sysdep_headers): Add termios-misc.h.
3904
3905 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3906 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3907 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3908
3909 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3910 termios-tcflow.h.
3911 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3912 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3913 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3914 TCSAFLUSH): Move to termios-tcflow.h.
3915 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3916 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3917 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3918 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3919
3920 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3921 termios-c_lflag.h.
3922 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3923 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3924 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3925 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3926 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3927 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3928 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3929 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3930 Likewise.
3931 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3932 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3933 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3934 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3935
3936 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3937 termios-c_cflag.h.
3938 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3939 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3940 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3941 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3942 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3943 termios-c_cflag.h.
3944 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3945 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3946 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3947 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3948
3949 [BZ #23783]
3950 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3951 termios-baud.h.
3952 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3953 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3954 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3955 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3956 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3957 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3958 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3959 __MAX_BAUD): Move to termios-baud.h.
3960 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3961 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3962 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3963 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3964 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3965
3966 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3967 termios-c_oflag.h.
3968 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3969 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3970 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3971 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3972 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3973 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3974 termios-c_oflag.h.
3975 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3976 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3977 FFR1): Likewise.
3978 [USE_MISC] (XTABS): Likewise.
3979 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3980 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3981 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3982 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3983
3984 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3985 termios-c_iflag.h.
3986 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3987 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3988 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3989 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3990 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3991 IUTF8): Move to termios-c_iflag.h.
3992 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3993 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3994 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3995 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3996
3997 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3998 termios-cc.h.
3999 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4000 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4001 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4002 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4003 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4004 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4005 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4006 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4007 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4008 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4009 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4010 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4011
4012 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4013 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4014 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4015 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4016 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4017 termios-struct.h.
4018 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4019 termios-struct.h.
4020 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4021 Likewise.
4022 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4023 Likewise.
4024 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4025 Likewise.
4026 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4027 Likewise.
4028 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4029 _HAVE_C_OSPEED): Define.
4030 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4031 _HAVE_C_OSPEED): Likewise.
4032 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4033 _HAVE_C_OSPEED): Likewise.
4034 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4035 (cfsetospeed): Check for define value instead of existence.
4036 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4037 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4038 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4039 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4040 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4041
4042 [BZ #17783]
4043 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4044 Define.
4045 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4046 (TIOCSER_TEMT): Likewise.
4047 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4048 (TEOCSER_TEMT): Likewise.
4049
4050 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4051
4052 [BZ #24011]
4053 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4054
4055 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4056
4057 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4058
4059 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4060
4061 * sysdeps/htl/pt-barrierattr-setpshared.c
4062 (pthread_barrierattr_setpshared): Add stub warning.
4063 * sysdeps/htl/pt-condattr-setpshared.c
4064 (pthread_condattr_setpshared): Likewise.
4065 * sysdeps/htl/pt-mutexattr-setpshared.c
4066 (pthread_mutexattr_setpshared): Likewise.
4067 * sysdeps/htl/pt-rwlockattr-setpshared.c
4068 (pthread_rwlockattr_setpshared): Likewise.
4069 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4070 (pthread_mutexattr_setpshared): Likewise.
4071
4072 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4073
4074 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4075 constants to match with Linux 4.20.
4076
4077 * sysdeps/mips/mips32/libm-test-ulps: Update.
4078 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4079
4080 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4081
4082 [BZ #24034]
4083 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4084 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4085 than __typeof (...) for the a_ptr variable.
4086
4087 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4088
4089 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4090 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4091 * libio/Makefile (tests): Add tst-sprintf-ub and
4092 tst-sprintf-chk-ub.
4093 (CFLAGS-tst-sprintf-ub.c): New variable.
4094 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4095 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4096 destination buffer and check for overflows in fortified mode.
4097 * libio/libioP.h (PRINTF_CHK): New macro.
4098 * libio/tst-sprintf-chk-ub.c: New file.
4099 * libio/tst-sprintf-ub.c: Likewise.
4100
4101 2019-01-02 Florian Weimer <fweimer@redhat.com>
4102
4103 [BZ #24018]
4104 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4105 failure.
4106
4107 2019-01-02 Florian Weimer <fweimer@redhat.com>
4108
4109 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4110
4111 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4112
4113 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4114 macro.
4115
4116 * sysdeps/unix/sysv/linux/netpacket/packet.h
4117 (PACKET_IGNORE_OUTGOING): New macro.
4118
4119 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4120 macro.
4121
4122 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4123 version to 4.20.
4124 (riscv_flush_icache): New syscall.
4125
4126 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4127 trailing whitespace removed.
4128 * scripts/config.guess: Update to version 2019-01-01.
4129 * scripts/config.sub: Update to version 2019-01-01.
4130 * scripts/move-if-change: Update from gnulib.
4131
4132 * NEWS: Update copyright dates.
4133 * catgets/gencat.c (print_version): Likewise.
4134 * csu/version.c (banner): Likewise.
4135 * debug/catchsegv.sh: Likewise.
4136 * debug/pcprofiledump.c (print_version): Likewise.
4137 * debug/xtrace.sh (do_version): Likewise.
4138 * elf/ldconfig.c (print_version): Likewise.
4139 * elf/ldd.bash.in: Likewise.
4140 * elf/pldd.c (print_version): Likewise.
4141 * elf/sotruss.sh: Likewise.
4142 * elf/sprof.c (print_version): Likewise.
4143 * iconv/iconv_prog.c (print_version): Likewise.
4144 * iconv/iconvconfig.c (print_version): Likewise.
4145 * locale/programs/locale.c (print_version): Likewise.
4146 * locale/programs/localedef.c (print_version): Likewise.
4147 * login/programs/pt_chown.c (print_version): Likewise.
4148 * malloc/memusage.sh (do_version): Likewise.
4149 * malloc/memusagestat.c (print_version): Likewise.
4150 * malloc/mtrace.pl: Likewise.
4151 * manual/libc.texinfo: Likewise.
4152 * nptl/version.c (banner): Likewise.
4153 * nscd/nscd.c (print_version): Likewise.
4154 * nss/getent.c (print_version): Likewise.
4155 * nss/makedb.c (print_version): Likewise.
4156 * posix/getconf.c (main): Likewise.
4157 * scripts/test-installation.pl: Likewise.
4158 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4159
4160 * All files with FSF copyright notices: Update copyright dates
4161 using scripts/update-copyrights.
4162 * locale/programs/charmap-kw.h: Regenerated.
4163 * locale/programs/locfile-kw.h: Likewise.
4164
4165 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4166
4167 * timezone/zdump.c: Update from tzcode 2018i.
4168 * timezone/zic.c: Likewise.
4169
4170 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4171
4172 regex: improve Gnulib port to AIX
4173 From the glibc point of view, this removes duplicate macro
4174 definitions and is obviously safe.
4175 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4176 * posix/regex_internal.h:
4177 (__attribute__, __attribute_warn_unused_result__):
4178 Remove; already defined elsewhere.
4179
4180 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4181
4182 [BZ #24027]
4183 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4184 copying operation. (ncopies had the wrong type, resulting in an
4185 integer wraparound and too few elements being copied.)
4186
4187 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4188
4189 [BZ #24022]
4190 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4191 <asm/syscalls.h> exists with __has_include__ before including it.
4192
4193 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4194
4195 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4196 version to 4.20.
4197
4198 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4199
4200 * hurd/lookup-retry: Include <unistd.h>.
4201 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4202 Release it on return. Handle "pid" magical lookup retry.
4203
4204 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4205
4206 [BZ #10496]
4207 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4208 (t_fmt_ampm): Likewise.
4209 * localedata/locales/aa_ER (t_fmt): Likewise.
4210 (t_fmt_ampm): Likewise.
4211 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4212 (t_fmt_ampm): Likewise.
4213 * localedata/locales/aa_ET (t_fmt): Likewise.
4214 (t_fmt_ampm): Likewise.
4215 * localedata/locales/am_ET (t_fmt): Likewise.
4216 (t_fmt_ampm): Likewise.
4217 * localedata/locales/byn_ER (t_fmt): Likewise.
4218 (t_fmt_ampm): Likewise.
4219 * localedata/locales/om_ET (t_fmt): Likewise.
4220 (t_fmt_ampm): Likewise.
4221 * localedata/locales/sid_ET (t_fmt): Likewise.
4222 (t_fmt_ampm): Likewise.
4223 * localedata/locales/so_DJ (t_fmt): Likewise.
4224 (t_fmt_ampm): Likewise.
4225 * localedata/locales/so_ET (t_fmt): Likewise.
4226 (t_fmt_ampm): Likewise.
4227 * localedata/locales/so_SO (t_fmt): Likewise.
4228 (t_fmt_ampm): Likewise.
4229 * localedata/locales/ti_ER (t_fmt): Likewise.
4230 (t_fmt_ampm): Likewise.
4231 * localedata/locales/ti_ET (t_fmt): Likewise.
4232 (t_fmt_ampm): Likewise.
4233 * localedata/locales/tig_ER (t_fmt): Likewise.
4234 (t_fmt_ampm): Likewise.
4235 * localedata/locales/wal_ET (t_fmt): Likewise.
4236 (t_fmt_ampm): Likewise.
4237
4238 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4239 * localedata/locales/ar_IN (t_fmt): Likewise.
4240 * localedata/locales/bhb_IN (t_fmt): Likewise.
4241 * localedata/locales/bho_IN (t_fmt): Likewise.
4242 * localedata/locales/bi_VU (t_fmt): Likewise.
4243 * localedata/locales/bn_BD (t_fmt): Likewise.
4244 * localedata/locales/bn_IN (t_fmt): Likewise.
4245 * localedata/locales/brx_IN (t_fmt): Likewise.
4246 * localedata/locales/doi_IN (t_fmt): Likewise.
4247 * localedata/locales/en_HK (t_fmt): Likewise.
4248 (t_fmt_ampm): Likewise.
4249 * localedata/locales/en_IN (t_fmt): Likewise.
4250 * localedata/locales/en_PH (t_fmt): Likewise.
4251 * localedata/locales/gu_IN (t_fmt): Likewise.
4252 * localedata/locales/hi_IN (t_fmt): Likewise.
4253 * localedata/locales/hif_FJ (t_fmt): Likewise.
4254 * localedata/locales/hne_IN (t_fmt): Likewise.
4255 * localedata/locales/kn_IN (t_fmt): Likewise.
4256 * localedata/locales/kok_IN (t_fmt): Likewise.
4257 * localedata/locales/ks_IN (t_fmt): Likewise.
4258 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4259 * localedata/locales/mag_IN (t_fmt): Likewise.
4260 * localedata/locales/mai_IN (t_fmt): Likewise.
4261 * localedata/locales/mjw_IN (t_fmt): Likewise.
4262 * localedata/locales/ml_IN (t_fmt): Likewise.
4263 * localedata/locales/mni_IN (t_fmt): Likewise.
4264 * localedata/locales/mr_IN (t_fmt): Likewise.
4265 * localedata/locales/ms_MY (t_fmt): Likewise.
4266 * localedata/locales/pa_IN (t_fmt): Likewise.
4267 * localedata/locales/raj_IN (t_fmt): Likewise.
4268 * localedata/locales/sa_IN (t_fmt): Likewise.
4269 * localedata/locales/sat_IN (t_fmt): Likewise.
4270 * localedata/locales/sd_IN (t_fmt): Likewise.
4271 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4272 * localedata/locales/tcy_IN (t_fmt): Likewise.
4273 * localedata/locales/the_NP (t_fmt): Likewise.
4274 * localedata/locales/to_TO (t_fmt): Likewise.
4275 * localedata/locales/ur_IN (t_fmt): Likewise.
4276
4277 * localedata/locales/hif_FJ (d_t_fmt): Set to
4278 "%A %d %b %Y %I:%M:%S %p".
4279 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4280
4281 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4282 * localedata/locales/ar_BH (t_fmt): Likewise.
4283 * localedata/locales/ar_DZ (t_fmt): Likewise.
4284 * localedata/locales/ar_EG (t_fmt): Likewise.
4285 * localedata/locales/ar_IQ (t_fmt): Likewise.
4286 * localedata/locales/ar_JO (t_fmt): Likewise.
4287 * localedata/locales/ar_KW (t_fmt): Likewise.
4288 * localedata/locales/ar_LB (t_fmt): Likewise.
4289 * localedata/locales/ar_LY (t_fmt): Likewise.
4290 * localedata/locales/ar_OM (t_fmt): Likewise.
4291 * localedata/locales/ar_QA (t_fmt): Likewise.
4292 * localedata/locales/ar_SD (t_fmt): Likewise.
4293 * localedata/locales/ar_SS (t_fmt): Likewise.
4294 * localedata/locales/ar_SY (t_fmt): Likewise.
4295 * localedata/locales/ar_TN (t_fmt): Likewise.
4296 * localedata/locales/ar_YE (t_fmt): Likewise.
4297
4298 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4299 (t_fmt_ampm): Likewise.
4300 * localedata/locales/gez_ET (t_fmt): Likewise.
4301 (t_fmt_ampm): Likewise.
4302
4303 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4304 (t_fmt_ampm): Likewise.
4305 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4306
4307 * localedata/locales/zh_HK (t_fmt):
4308 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4309
4310 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4311 because this locale does not use the 12-hour clock.
4312 (t_fmt): Set to "%Z %H:%M:%S".
4313 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4314
4315 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4316 because this locale does not use the 12-hour clock.
4317 (t_fmt): Set to "%H:%M:%S %Z".
4318 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4319
4320 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4321 because this locale does not use the 12-hour clock.
4322 (t_fmt): Set to "%T".
4323 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4324 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4325
4326 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4327 because this locale does not use the 12-hour clock.
4328 (t_fmt): Set to "%H:%M:%S %Z".
4329 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4330
4331 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4332 because this locale does not use the 12-hour clock.
4333 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4334 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4335
4336 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4337
4338 [BZ #10496]
4339 [BZ #23724]
4340 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4341 (t_fmt_ampm): Likewise.
4342 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4343 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4344 (d_fmt): Set to "%-d.%-m.%y".
4345
4346 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4347
4348 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4349 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4350 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4351 Likewise.
4352 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4353 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4354 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4355 function.
4356 * support/blob_repeat.c (check_mul_overflow_size_t,
4357 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4358
4359 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4360
4361 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4362
4363 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4364
4365 regex: simplify Gnulib port
4366 This simplifies the code, by removing stuff intended for porting
4367 to Gnulib but no longer needed there.
4368 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4369 uses of libc_hidden_def, weak_alias.
4370 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4371 _Restrict_ except for public-facing headers.
4372 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4373 Remove; already defined elsewhere.
4374 * posix/regex.c, posix/regex_internal.h:
4375 Use __GNUC_PREREQ instead of rolling our own.
4376 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4377
4378 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4379
4380 * benchtests/bench-strlen.c (generic_strlen): New function.
4381 (memchr_strlen): New function.
4382
4383 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4384
4385 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4386 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4387 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4388
4389 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4390
4391 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4392
4393 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4394
4395 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4396 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4397 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4398 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4399 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4400 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4401 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4402
4403 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4404
4405 [BZ #24023]
4406 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4407 PLT reference in libc.so.
4408 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4409 _Q_lltoq and _Q_qtod PLT references in libc.so.
4410
4411 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4412
4413 * benchtests/bench-memchr.c: Cleanup defines.
4414 * benchtests/bench-memcmp.c: Likewise.
4415 * benchtests/bench-memset.c: Likewise.
4416 * benchtests/bench-memset-large.c: Likewise.
4417 * benchtests/bench-memset-walk.c: Likewise.
4418 * benchtests/bench-stpcpy.c: Likewise.
4419 * benchtests/bench-stpncpy.c: Likewise.
4420 * benchtests/bench-strcat.c: Likewise.
4421 * benchtests/bench-strchr.c: Likewise.
4422 * benchtests/bench-strcmp.c: Likewise.
4423 * benchtests/bench-strcpy.c: Likewise.
4424 * benchtests/bench-strcspn.c: Likewise.
4425 * benchtests/bench-string.h: Likewise.
4426 * benchtests/bench-strlen.c: Likewise.
4427 * benchtests/bench-strncat.c: Likewise.
4428 * benchtests/bench-strncmp.c: Likewise.
4429 * benchtests/bench-strncpy.c: Likewise.
4430 * benchtests/bench-strnlen.c: Likewise.
4431 * benchtests/bench-strpbrk.c: Likewise.
4432 * benchtests/bench-strrchr.c: Likewise.
4433 * benchtests/bench-strspn.c: Likewise.
4434
4435 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4436
4437 * stdlib/longlong.h: Update from GCC.
4438
4439 [BZ #23993]
4440 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4441 * configure: Regenerated.
4442 * manual/install.texi (Tools for Compilation): Update minimum GCC
4443 version.
4444 * INSTALL: Regenerated.
4445
4446 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4447
4448 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4449
4450 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4451
4452 * malloc/malloc.c (mremap_chunk): Additional checks.
4453
4454 2018-12-21 Mao Han <han_mao@c-sky.com>
4455
4456 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4457 * scripts/build-many-glibcs.py: Add C-SKY targets.
4458 * sysdeps/csky/Implies: New file.
4459 * sysdeps/csky/Makefile: Likewise.
4460 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4461 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4462 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4463 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4464 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4465 * sysdeps/csky/abiv2/memmove.S: Likewise.
4466 * sysdeps/csky/abiv2/memset.S: Likewise.
4467 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4468 * sysdeps/csky/abiv2/start.S: Likewise.
4469 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4470 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4471 * sysdeps/csky/abiv2/strlen.S: Likewise.
4472 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4473 * sysdeps/csky/abort-instr.h: Likewise.
4474 * sysdeps/csky/atomic-machine.h: Likewise.
4475 * sysdeps/csky/bits/endian.h: Likewise.
4476 * sysdeps/csky/bits/fenv.h: Likewise.
4477 * sysdeps/csky/bits/link.h: Likewise.
4478 * sysdeps/csky/bits/setjmp.h: Likewise.
4479 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4480 * sysdeps/csky/bsd-setjmp.S: Likewise.
4481 * sysdeps/csky/configure: Likewise.
4482 * sysdeps/csky/configure.ac: Likewise.
4483 * sysdeps/csky/dl-machine.h: Likewise.
4484 * sysdeps/csky/dl-procinfo.c: Likewise.
4485 * sysdeps/csky/dl-procinfo.h: Likewise.
4486 * sysdeps/csky/dl-sysdep.h: Likewise.
4487 * sysdeps/csky/dl-tls.h: Likewise.
4488 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4489 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4490 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4491 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4492 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4493 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4494 * sysdeps/csky/fpu/fegetround.c: Likewise.
4495 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4496 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4497 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4498 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4499 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4500 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4501 * sysdeps/csky/fpu/fesetround.c: Likewise.
4502 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4503 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4504 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4505 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4506 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4507 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4508 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4509 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4510 * sysdeps/csky/fpu_control.h: Likewise.
4511 * sysdeps/csky/gccframe.h: Likewise.
4512 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4513 * sysdeps/csky/ldsodefs.h: Likewise.
4514 * sysdeps/csky/libc-tls.c: Likewise.
4515 * sysdeps/csky/linkmap.h: Likewise.
4516 * sysdeps/csky/machine-gmon.h: Likewise.
4517 * sysdeps/csky/memusage.h: Likewise.
4518 * sysdeps/csky/nofpu/Implies: Likewise.
4519 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4520 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4521 * sysdeps/csky/nptl/Makefile: Likewise.
4522 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4523 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4524 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4525 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4526 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4527 * sysdeps/csky/nptl/tls.h: Likewise.
4528 * sysdeps/csky/preconfigure: Likewise.
4529 * sysdeps/csky/sfp-machine.h: Likewise.
4530 * sysdeps/csky/sotruss-lib.c: Likewise.
4531 * sysdeps/csky/stackinfo.h: Likewise.
4532 * sysdeps/csky/sysdep.h: Likewise.
4533 * sysdeps/csky/tininess.h: Likewise.
4534 * sysdeps/csky/tst-audit.h: Likewise.
4535 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4536 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4537 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4538 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4539 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4540 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4541 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4542 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4543 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4544 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4545 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4546 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4547 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4548 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4549 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4550 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4551 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4552 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4553 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4554 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4555 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4556 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4557 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4558 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4559 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4560 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4561 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4562 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4563 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4564 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4565 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4566 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4567 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4568 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4569 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4570 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4571 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4572 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4573 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4574 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4575 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4576 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4577 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4578 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4579
4580 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4581
4582 * include/time.h (__difftime64): Add.
4583 * time/difftime.c (subtract): convert to 64-bit time.
4584 * time/difftime.c (__difftime64): Add.
4585 * time/difftime.c (__difftime): Wrap around __difftime64.
4586
4587 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4588
4589 * manual/examples/add.c: Remove redundant "if not".
4590 * manual/examples/argp-ex1.c: Likewise.
4591 * manual/examples/argp-ex2.c: Likewise.
4592 * manual/examples/argp-ex3.c: Likewise.
4593 * manual/examples/argp-ex4.c: Likewise.
4594 * manual/examples/atexit.c: Likewise.
4595 * manual/examples/db.c: Likewise.
4596 * manual/examples/dir.c: Likewise.
4597 * manual/examples/dir2.c: Likewise.
4598 * manual/examples/execinfo.c: Likewise.
4599 * manual/examples/filecli.c: Likewise.
4600 * manual/examples/filesrv.c: Likewise.
4601 * manual/examples/fmtmsgexpl.c: Likewise.
4602 * manual/examples/genpass.c: Likewise.
4603 * manual/examples/inetcli.c: Likewise.
4604 * manual/examples/inetsrv.c: Likewise.
4605 * manual/examples/isockad.c: Likewise.
4606 * manual/examples/longopt.c: Likewise.
4607 * manual/examples/memopen.c: Likewise.
4608 * manual/examples/memstrm.c: Likewise.
4609 * manual/examples/mkdirent.c: Likewise.
4610 * manual/examples/mkfsock.c: Likewise.
4611 * manual/examples/mkisock.c: Likewise.
4612 * manual/examples/mygetpass.c: Likewise.
4613 * manual/examples/pipe.c: Likewise.
4614 * manual/examples/popen.c: Likewise.
4615 * manual/examples/rprintf.c: Likewise.
4616 * manual/examples/search.c: Likewise.
4617 * manual/examples/select.c: Likewise.
4618 * manual/examples/setjmp.c: Likewise.
4619 * manual/examples/sigh1.c: Likewise.
4620 * manual/examples/sigusr.c: Likewise.
4621 * manual/examples/stpcpy.c: Likewise.
4622 * manual/examples/strdupa.c: Likewise.
4623 * manual/examples/strftim.c: Likewise.
4624 * manual/examples/subopt.c: Likewise.
4625 * manual/examples/swapcontext.c: Likewise.
4626 * manual/examples/termios.c: Likewise.
4627 * manual/examples/testopt.c: Likewise.
4628 * manual/examples/testpass.c: Likewise.
4629 * manual/examples/timeval_subtract.c: Likewise.
4630
4631 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4632
4633 * sysdeps/x86/fpu/math_private.h: New file.
4634 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4635
4636 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4637 definition.
4638 (cosh): Likewise.
4639 (tanh): Likewise.
4640
4641 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4642
4643 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4644 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4645 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4646 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4647 fields.
4648 (_dl_show_auxv): Give a special treatment to
4649 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4650 and AT_L3_CACHEGEOMETRY.
4651 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4652 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4653 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4654 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4655
4656 2018-12-19 Andreas Schwab <schwab@suse.de>
4657
4658 * nscd/connections.c (check_use): Don't abort on invalid len.
4659
4660 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4661
4662 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4663 values in the 64bit value cases.
4664
4665 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4666
4667 * include/time.h
4668 (__ctime64_r): Add.
4669 * time/ctime_r.c
4670 (__ctime64_r): Add.
4671 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4672
4673 * include/time.h
4674 (__ctime64): Add.
4675 * time/gmtime.c
4676 (__ctime64): Add.
4677 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4678
4679 * include/time.h
4680 (__gmtime64_r): Add.
4681 * time/gmtime.c
4682 (__gmtime64_r): Add.
4683 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4684
4685 * include/time.h
4686 (__gmtime64): Add.
4687 * time/gmtime.c
4688 (__gmtime64): Add.
4689 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4690
4691 * include/time.h
4692 (__localtime64_r): Add.
4693 * time/localtime.c
4694 (__localtime64_r): Add.
4695 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4696
4697 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4698
4699 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4700 kernel_sigction definition.
4701
4702 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4703
4704 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4705
4706 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4707 __syscall_rt_sigaction.
4708 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4709 (kernel_sigaction): Use Linux generic defintion.
4710 (STUB): Define.
4711 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4712 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4713 (__syscall_rt_sigaction): Remove implementation.
4714 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4715 hidden.
4716 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4717 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4718 INTERNAL_SYSCALL): Remove definitions.
4719 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4720 action and signal set size.
4721 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4722 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4723
4724 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4725 James Clarke <jrtc27@jrtc27.com>
4726
4727 [BZ #23967]
4728 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4729 Define if SA_RESTORER is defined.
4730 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4731 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4732 already defined.
4733 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4734 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4735 definitions.
4736 (HAS_SA_RESTORER): Define.
4737 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4738 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4739 (HAS_SA_RESTORER): Define.
4740 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4741 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4742 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4743 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4744 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4745
4746 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4747
4748 * sysdeps/unix/sysv/linux/kernel-features.h
4749 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4750 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4751 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4752 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4753 (__ASSUME_ST_INO_64_BIT): Likewise.
4754 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4755 <kernel-features.h>.
4756 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4757 Remove conditional code.
4758 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4759 <kernel-features.h>.
4760 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4761 Remove conditional code.
4762 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4763 <kernel-features.h>.
4764 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4765 Remove conditional code.
4766 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4767 <kernel-features.h>.
4768 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4769 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4770
4771 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4772
4773 * sysdeps/s390/multiarch/ifunc-resolve.h
4774 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4775 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4776 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4777 Delete macro definition.
4778 (s390_libc_ifunc_init): Rename to
4779 s390_libc_ifunc_expr_stfle_init.
4780 * sysdeps/s390/bzero: Use
4781 s390_libc_ifunc_expr_stfle_init instead of
4782 s390_libc_ifunc_init.
4783 * sysdeps/s390/memcmp.c: Likewise.
4784 * sysdeps/s390/memcpy.c: Likewise.
4785 * sysdeps/s390/mempcpy.c: Likewise.
4786 * sysdeps/s390/memset.c: Likewise.
4787
4788 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4789
4790 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4791 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4792
4793 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4794
4795 * sysdeps/s390/multiarch/Makefile
4796 (sysdep_routines): Remove wmemcmp variants.
4797 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4798 * sysdeps/s390/multiarch/ifunc-impl-list.c
4799 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4800 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4801 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4802 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4803 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4804 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4805 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4806 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4807
4808 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4809
4810 * sysdeps/s390/multiarch/Makefile
4811 (sysdep_routines): Remove wmemset variants.
4812 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4813 * sysdeps/s390/multiarch/ifunc-impl-list.c
4814 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4815 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4816 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4817 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4818 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4819 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4820 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4821 * sysdeps/s390/ifunc-wmemset.h: New file.
4822
4823 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4824
4825 * sysdeps/s390/multiarch/Makefile
4826 (sysdep_routines): Remove wmemchr variants.
4827 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4828 * sysdeps/s390/multiarch/ifunc-impl-list.c
4829 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4830 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4831 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4832 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4833 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4834 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4835 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4836 * sysdeps/s390/ifunc-wmemchr.h: New file.
4837
4838 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4839
4840 * sysdeps/s390/multiarch/Makefile
4841 (sysdep_routines): Remove wcscspn variants.
4842 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4843 * sysdeps/s390/multiarch/ifunc-impl-list.c
4844 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4845 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4846 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4847 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4848 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4849 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4850 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4851 * sysdeps/s390/ifunc-wcscspn.h: New file.
4852
4853 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4854
4855 * sysdeps/s390/multiarch/Makefile
4856 (sysdep_routines): Remove wcspbrk variants.
4857 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4858 * sysdeps/s390/multiarch/ifunc-impl-list.c
4859 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4860 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4861 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4862 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4863 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4864 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4865 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4866 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4867
4868 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4869
4870 * sysdeps/s390/multiarch/Makefile
4871 (sysdep_routines): Remove wcsspn variants.
4872 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4873 * sysdeps/s390/multiarch/ifunc-impl-list.c
4874 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4875 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4876 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4877 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4878 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4879 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4880 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4881 * sysdeps/s390/ifunc-wcsspn.h: New file.
4882
4883 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4884
4885 * sysdeps/s390/multiarch/Makefile
4886 (sysdep_routines): Remove wcsrchr variants.
4887 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4888 * sysdeps/s390/multiarch/ifunc-impl-list.c
4889 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4890 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4891 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4892 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4893 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4894 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4895 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4896 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4897
4898 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4899
4900 * sysdeps/s390/multiarch/Makefile
4901 (sysdep_routines): Remove wcschrnul variants.
4902 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4903 * sysdeps/s390/multiarch/ifunc-impl-list.c
4904 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4905 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4906 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4907 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4908 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4909 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4910 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4911 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4912
4913 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4914
4915 * sysdeps/s390/multiarch/Makefile
4916 (sysdep_routines): Remove wcschr variants.
4917 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4918 * sysdeps/s390/multiarch/ifunc-impl-list.c
4919 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4920 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4921 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4922 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4923 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4924 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4925 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4926 * sysdeps/s390/ifunc-wcschr.h: New file.
4927
4928 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4929
4930 * sysdeps/s390/multiarch/Makefile
4931 (sysdep_routines): Remove wcsncmp variants.
4932 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4933 * sysdeps/s390/multiarch/ifunc-impl-list.c
4934 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4935 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4936 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4937 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4938 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4939 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4940 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4941 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4942
4943 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4944
4945 * sysdeps/s390/multiarch/Makefile
4946 (sysdep_routines): Remove wcscmp variants.
4947 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4948 * sysdeps/s390/multiarch/ifunc-impl-list.c
4949 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4950 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4951 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4952 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4953 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4954 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4955 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4956 * sysdeps/s390/ifunc-wcscmp.h: New file.
4957
4958 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4959
4960 * sysdeps/s390/multiarch/Makefile
4961 (sysdep_routines): Remove wcsncat variants.
4962 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4963 * sysdeps/s390/multiarch/ifunc-impl-list.c
4964 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4965 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4966 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4967 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4968 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4969 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4970 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4971 * sysdeps/s390/ifunc-wcsncat.h: New file.
4972
4973 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4974
4975 * sysdeps/s390/multiarch/Makefile
4976 (sysdep_routines): Remove wcscat variants.
4977 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4978 * sysdeps/s390/multiarch/ifunc-impl-list.c
4979 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4980 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4981 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4982 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4983 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4984 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4985 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4986 * sysdeps/s390/ifunc-wcscat.h: New file.
4987
4988 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4989
4990 * sysdeps/s390/multiarch/Makefile
4991 (sysdep_routines): Remove wcpncpy variants.
4992 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4993 * sysdeps/s390/multiarch/ifunc-impl-list.c
4994 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4995 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4996 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4997 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4998 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4999 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5000 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5001 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5002
5003 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5004
5005 * sysdeps/s390/multiarch/Makefile
5006 (sysdep_routines): Remove wcsncpy variants.
5007 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5008 * sysdeps/s390/multiarch/ifunc-impl-list.c
5009 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5010 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5011 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5012 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5013 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5014 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5015 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5016 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5017
5018 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5019
5020 * sysdeps/s390/multiarch/Makefile
5021 (sysdep_routines): Remove wcpcpy variants.
5022 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5023 * sysdeps/s390/multiarch/ifunc-impl-list.c
5024 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5025 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5026 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5027 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5028 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5029 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5030 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5031 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5032
5033 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5034
5035 * sysdeps/s390/multiarch/Makefile
5036 (sysdep_routines): Remove wcscpy variants.
5037 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5038 * sysdeps/s390/multiarch/ifunc-impl-list.c
5039 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5040 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5041 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5042 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5043 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5044 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5045 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5046 * sysdeps/s390/ifunc-wcscpy.h: New file.
5047
5048 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5049
5050 * sysdeps/s390/multiarch/Makefile
5051 (sysdep_routines): Remove wcsnlen variants.
5052 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5053 * sysdeps/s390/multiarch/ifunc-impl-list.c
5054 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5055 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5056 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5057 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5058 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5059 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5060 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5061 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5062
5063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5064
5065 * sysdeps/s390/multiarch/Makefile
5066 (sysdep_routines): Remove wcslen variants.
5067 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5068 * sysdeps/s390/multiarch/ifunc-impl-list.c
5069 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5070 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5071 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5072 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5073 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5074 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5075 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5076 * sysdeps/s390/ifunc-wcslen.h: New file.
5077
5078 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5079
5080 * sysdeps/s390/multiarch/Makefile
5081 (sysdep_routines): Remove memrchr variants.
5082 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5083 * sysdeps/s390/multiarch/ifunc-impl-list.c
5084 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5085 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5086 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5087 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5088 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5089 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5090 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5091 * sysdeps/s390/ifunc-memrchr.h: New file.
5092
5093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5094
5095 * sysdeps/s390/multiarch/Makefile
5096 (sysdep_routines): Remove memccpy variants.
5097 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5098 * sysdeps/s390/multiarch/ifunc-impl-list.c
5099 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5100 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5101 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5102 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5103 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5104 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5105 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5106 * sysdeps/s390/ifunc-memccpy.h: New file.
5107
5108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5109
5110 * sysdeps/s390/multiarch/Makefile
5111 (sysdep_routines): Remove rawmemchr variants.
5112 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5113 * sysdeps/s390/multiarch/ifunc-impl-list.c
5114 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5115 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5116 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5117 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5118 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5119 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5120 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5121 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5122
5123 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5124
5125 * sysdeps/s390/multiarch/Makefile
5126 (sysdep_routines): Remove memchr variants.
5127 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5128 * sysdeps/s390/multiarch/ifunc-impl-list.c
5129 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5130 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5131 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5132 * sysdeps/s390/multiarch/memchr.c: Move to ...
5133 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5134 * sysdeps/s390/ifunc-memchr.h: New file.
5135 * sysdeps/s390/s390-64/memchr.S: Move to ...
5136 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5137 for 31/64bit and ifunc handling.
5138 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5139 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5140 * sysdeps/s390/s390-32/memchr.S: Likewise.
5141
5142 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5143
5144 * sysdeps/s390/multiarch/Makefile
5145 (sysdep_routines): Remove strcspn variants.
5146 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5147 * sysdeps/s390/multiarch/ifunc-impl-list.c
5148 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5149 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5150 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5151 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5152 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5153 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5154 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5155 * sysdeps/s390/ifunc-strcspn.h: New file.
5156
5157 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5158
5159 * sysdeps/s390/multiarch/Makefile
5160 (sysdep_routines): Remove strpbrk variants.
5161 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5162 * sysdeps/s390/multiarch/ifunc-impl-list.c
5163 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5164 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5165 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5166 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5167 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5168 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5169 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5170 * sysdeps/s390/ifunc-strpbrk.h: New file.
5171
5172 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5173
5174 * sysdeps/s390/multiarch/Makefile
5175 (sysdep_routines): Remove strspn variants.
5176 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5177 * sysdeps/s390/multiarch/ifunc-impl-list.c
5178 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5179 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5180 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5181 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5182 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5183 * sysdeps/s390/multiarch/strspn.c: Move to ...
5184 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5185 * sysdeps/s390/ifunc-strspn.h: New file.
5186
5187 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5188
5189 * sysdeps/s390/multiarch/Makefile
5190 (sysdep_routines): Remove strrchr variants.
5191 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5192 * sysdeps/s390/multiarch/ifunc-impl-list.c
5193 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5194 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5195 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5196 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5197 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5198 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5199 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5200 * sysdeps/s390/ifunc-strrchr.h: New file.
5201
5202 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5203
5204 * sysdeps/s390/multiarch/Makefile
5205 (sysdep_routines): Remove strchrnul variants.
5206 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5207 * sysdeps/s390/multiarch/ifunc-impl-list.c
5208 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5209 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5210 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5211 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5212 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5213 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5214 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5215 * sysdeps/s390/ifunc-strchrnul.h: New file.
5216
5217 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5218
5219 * sysdeps/s390/multiarch/Makefile
5220 (sysdep_routines): Remove strchr variants.
5221 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5222 * sysdeps/s390/multiarch/ifunc-impl-list.c
5223 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5224 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5225 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5226 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5227 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5228 * sysdeps/s390/multiarch/strchr.c: Move to ...
5229 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5230 * sysdeps/s390/ifunc-strchr.h: New file.
5231
5232 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5233
5234 * sysdeps/s390/multiarch/Makefile
5235 (sysdep_routines): Remove strncmp variants.
5236 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5237 * sysdeps/s390/multiarch/ifunc-impl-list.c
5238 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5239 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5240 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5241 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5242 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5243 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5244 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5245 * sysdeps/s390/ifunc-strncmp.h: New file.
5246
5247 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5248
5249 * sysdeps/s390/multiarch/Makefile
5250 (sysdep_routines): Remove strcmp variants.
5251 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5252 * sysdeps/s390/multiarch/ifunc-impl-list.c
5253 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5254 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5255 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5256 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5257 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5258 * sysdeps/s390/ifunc-strcmp.h: New file.
5259 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5260 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5261 for 31/64bit and ifunc handling.
5262 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5263 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5264 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5265
5266 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5267
5268 * sysdeps/s390/multiarch/Makefile
5269 (sysdep_routines): Remove strncat variants.
5270 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5271 * sysdeps/s390/multiarch/ifunc-impl-list.c
5272 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5273 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5274 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5275 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5276 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5277 * sysdeps/s390/multiarch/strncat.c: Move to ...
5278 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5279 * sysdeps/s390/ifunc-strncat.h: New file.
5280
5281 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5282
5283 * sysdeps/s390/multiarch/Makefile
5284 (sysdep_routines): Remove strcat variants.
5285 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5286 * sysdeps/s390/multiarch/ifunc-impl-list.c
5287 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5288 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5289 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5290 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5291 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5292 * sysdeps/s390/multiarch/strcat.c: Move to ...
5293 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5294 * sysdeps/s390/ifunc-strcat.h: New file.
5295
5296 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5297
5298 * sysdeps/s390/multiarch/Makefile
5299 (sysdep_routines): Remove stpncpy variants.
5300 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5301 * sysdeps/s390/multiarch/ifunc-impl-list.c
5302 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5303 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5304 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5305 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5306 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5307 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5308 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5309 * sysdeps/s390/ifunc-stpncpy.h: New file.
5310
5311 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5312
5313 * sysdeps/s390/multiarch/Makefile
5314 (sysdep_routines): Remove strncpy variants.
5315 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5316 * sysdeps/s390/multiarch/ifunc-impl-list.c
5317 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5318 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5319 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5320 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5321 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5322 * sysdeps/s390/ifunc-strncpy.h: New file.
5323 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5324 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5325 and adjust ifunc handling.
5326 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5327 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5328 and adjust ifunc handling.
5329 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5330 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5331
5332 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5333
5334 * sysdeps/s390/multiarch/Makefile
5335 (sysdep_routines): Remove stpcpy variants.
5336 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5337 * sysdeps/s390/multiarch/ifunc-impl-list.c
5338 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5339 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5340 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5341 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5342 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5343 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5344 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5345 * sysdeps/s390/ifunc-stpcpy.h: New file.
5346
5347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5348
5349 * sysdeps/s390/multiarch/Makefile
5350 (sysdep_routines): Remove strcpy variants.
5351 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5352 * sysdeps/s390/multiarch/ifunc-impl-list.c
5353 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5354 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5355 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5356 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5357 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5358 * sysdeps/s390/ifunc-strcpy.h: New file.
5359 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5360 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5361 for 31/64bit and ifunc handling.
5362 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5363 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5364 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5365
5366 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5367
5368 * sysdeps/s390/multiarch/Makefile
5369 (sysdep_routines): Remove strnlen variants.
5370 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5371 * sysdeps/s390/multiarch/ifunc-impl-list.c
5372 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5373 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5374 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5375 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5376 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5377 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5378 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5379 * sysdeps/s390/ifunc-strnlen.h: New file.
5380
5381 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5382
5383 * sysdeps/s390/multiarch/Makefile
5384 (sysdep_routines): Remove strlen variants.
5385 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5386 * sysdeps/s390/multiarch/ifunc-impl-list.c
5387 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5388 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5389 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5390 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5391 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5392 * sysdeps/s390/multiarch/strlen.c: Move to ...
5393 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5394 * sysdeps/s390/ifunc-strlen.h: New file.
5395
5396 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5397
5398 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5399 * sysdeps/s390/multiarch/ifunc-impl-list.c
5400 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5401 * sysdeps/s390/ifunc-memmem.h: New file.
5402 * sysdeps/s390/memmem.c: Likewise.
5403 * sysdeps/s390/memmem-c.c: Likewise.
5404 * sysdeps/s390/memmem-vx.c: Likewise.
5405
5406 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5407
5408 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5409 * sysdeps/s390/multiarch/ifunc-impl-list.c
5410 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5411 * sysdeps/s390/ifunc-strstr.h: New file.
5412 * sysdeps/s390/strstr.c: Likewise.
5413 * sysdeps/s390/strstr-c.c: Likewise.
5414 * sysdeps/s390/strstr-vx.c: Likewise.
5415
5416 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5417
5418 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5419 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5420 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5421 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5422 New defines.
5423 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5424 * sysdeps/s390/memmove-c.c: New file.
5425 * sysdeps/s390/memmove.c: Likewise.
5426 * sysdeps/s390/multiarch/ifunc-impl-list.c
5427 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5428
5429 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5430
5431 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5432 * sysdeps/s390/configure.ac: Add check for z13 support.
5433 * sysdeps/s390/configure: Regenerated.
5434
5435 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5436
5437 * sysdeps/s390/memcopy.h: New file.
5438
5439 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5440
5441 * sysdeps/s390/s390-32/bcopy.S: Remove.
5442 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5443
5444 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5445
5446 * sysdeps/s390/ifunc-memcpy.h: New File.
5447 * sysdeps/s390/memcpy.S: Move to ...
5448 * sysdeps/s390/memcpy-z900.S ... here.
5449 Move implementations from memcpy-s390x.s to here.
5450 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5451 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5452 Remove memcpy/mempcpy variants.
5453 * sysdeps/s390/Makefile (sysdep_routines):
5454 Add memcpy/mempcpy variants.
5455 * sysdeps/s390/multiarch/ifunc-impl-list.c
5456 (__libc_ifunc_impl_list): Adjust ifunc variants for
5457 memcpy and mempcpy.
5458 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5459 to ...
5460 * sysdeps/s390/memcpy.c: ... here.
5461 Adjust ifunc variants for memcpy.
5462 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5463 * sysdeps/s390/mempcpy.c: ... here.
5464 Adjust ifunc variants for mempcpy.
5465 * sysdeps/s390/mempcpy.S: Delete file.
5466
5467 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5468
5469 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5470 * sysdeps/s390/memcpy.S: ... here.
5471 Adjust to be usable for 31/64bit.
5472 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5473 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5474 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5475 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5476 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5477 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5478 Adjust to be usable for 31/64bit.
5479 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5480 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5481 * sysdeps/s390/multiarch/memcpy.c: ... here.
5482 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5483
5484 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5485
5486 * sysdeps/s390/ifunc-memcmp.h: New File.
5487 * sysdeps/s390/memcmp.S: Move to ...
5488 * sysdeps/s390/memcmp-z900.S ... here.
5489 Move implementations from memcmp-s390x.s to here.
5490 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5491 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5492 Remove memcmp variants.
5493 * sysdeps/s390/Makefile (sysdep_routines):
5494 Add memcmp variants.
5495 * sysdeps/s390/multiarch/ifunc-impl-list.c
5496 (__libc_ifunc_impl_list): Adjust ifunc variants for
5497 memcmp.
5498 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5499 to ...
5500 * sysdeps/s390/memcmp.c: ... here.
5501 Adjust ifunc variants for memcmp.
5502
5503 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5504
5505 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5506 * sysdeps/s390/memcmp.S: ... here.
5507 Adjust to be usable for 31/64bit.
5508 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5509 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5510 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5511 Remove memcmp.
5512 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5513 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5514 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5515 Adjust to be usable for 31/64bit.
5516 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5517 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5518 * sysdeps/s390/multiarch/memcmp.c: ... here.
5519 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5520
5521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5522
5523 * sysdeps/s390/s390-32/bzero.S: Delete file.
5524 * sysdeps/s390/s390-64/bzero.S: Likewise.
5525 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5526 * sysdeps/s390/bzero.c: New file.
5527 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5528 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5529 * sysdeps/s390/multiarch/ifunc-impl-list.c
5530 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5531
5532 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5533
5534 * sysdeps/s390/ifunc-memset.h: New File.
5535 * sysdeps/s390/memset.S: Move to ...
5536 * sysdeps/s390/memset-z900.S ... here.
5537 Move implementations from memset-s390x.s to here.
5538 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5539 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5540 Remove memset variants.
5541 * sysdeps/s390/Makefile (sysdep_routines):
5542 Add memset variants.
5543 * sysdeps/s390/multiarch/ifunc-impl-list.c
5544 (__libc_ifunc_impl_list): Adjust ifunc variants for
5545 memset.
5546 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5547 to ...
5548 * sysdeps/s390/memset.c: ... here.
5549 Adjust ifunc variants for memset.
5550
5551 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5552
5553 * sysdeps/s390/s390-64/memset.S: Move to ...
5554 * sysdeps/s390/memset.S: ... here.
5555 Adjust to be usable for 31/64bit.
5556 * sysdeps/s390/s390-32/memset.S: Delete File.
5557 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5558 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5559 Remove memset.
5560 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5561 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5562 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5563 Adjust to be usable for 31/64bit.
5564 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5565 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5566 * sysdeps/s390/multiarch/memset.c: ... here.
5567 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5568
5569 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5570
5571 * sysdeps/s390/multiarch/ifunc-resolve.h
5572 (s390_libc_ifunc_init, s390_libc_ifunc,
5573 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5574
5575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5576
5577 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5578 * sysdeps/s390/configure.ac: Add check for z10 support.
5579 * sysdeps/s390/configure: Regenerated.
5580
5581 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5582
5583 * sysdeps/i386/atomic-machine.h: Merged with ...
5584 * sysdeps/x86_64/atomic-machine.h: To ...
5585 * sysdeps/x86/atomic-machine.h: This. New file.
5586
5587 2018-12-18 Florian Weimer <fweimer@redhat.com>
5588
5589 Rewrite locale/gen-translit.pl in Python.
5590 * locale/Makefile (generated): Add C-translit.h.
5591 (before-compile): Add $(objpfx)C-translit.h.
5592 (C-translit.h): Move to $(objpfx). Create target directory.
5593 Build using Python script.
5594 * locale/gen-translit.py: New file.
5595 * locale/gen-translit.pl: Remove file.
5596 * locale/C-translit.h.in: Change comment character to '#' for
5597 easier parsing without a C preprocessor.
5598 * locale/C-translit.h: Remove generated file.
5599 * manual/install.texi (Tools for Compilation): Do not mention
5600 C-translit.h.
5601 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5602 Remove locale/C-translit.h.
5603 * scripts/update-copyrights: Likewise.
5604 * INSTALL: Regenerate.
5605
5606 2018-12-18 Florian Weimer <fweimer@redhat.com>
5607
5608 [BZ #23995]
5609 * localedata/locales/bi_VU: Remove executable bit from file.
5610
5611 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5612
5613 * include/time.h
5614 (__localtime64): Add.
5615 * manual/maint.texi: Document Y2038 symbol handling.
5616 * time/localtime.c
5617 (__localtime64): Add.
5618 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5619
5620 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5621
5622 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5623 Do not clobber r12.
5624
5625 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5626 to allow extra macros from first or second sources.
5627 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5628 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5629 (tests-special): Add $(objpfx)tst-mman-consts.out.
5630 ($(objpfx)tst-mman-consts.out): New makefile target.
5631
5632 2018-12-17 Mao Han <han_mao@c-sky.com>
5633
5634 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5635 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5636 without stat64 system call support.
5637 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5638 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5639 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5640 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5641 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5642 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5643 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5644 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5645 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5646 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5647 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5648
5649 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5650
5651 regex: fix storage-exhaustion error
5652 [BZ #18040]
5653 * posix/regexec.c (get_subexp):
5654 Do not continue if storage is exhausted.
5655
5656 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5657
5658 regex: fix heap-use-after-free error
5659 [BZ #18040]
5660 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5661 https://debbugs.gnu.org/32592
5662 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5663 call extend_buffers which reallocates the re_string_t internal buffer.
5664 Local variable 'buf' was not updated in such case, resulting in
5665 use-after-free.
5666 * posix/regexec.c (get_subexp): Update 'buf' after call to
5667 get_subexp_sub.
5668
5669 2018-12-15 Florian Weimer <fweimer@redhat.com>
5670
5671 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5672 (minimum_stride_size): Use it.
5673 (support_blob_repeat_allocate): Likewise.
5674
5675 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5676
5677 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5678 definition.
5679 (acosh): Likewise.
5680 (atanh): Likewise.
5681
5682 2018-12-14 Florian Weimer <fweimer@redhat.com>
5683
5684 * manual/process.texi (Process Creation Concepts): Remove
5685 documentation of process (ID) lifetime. List more process
5686 creation functions. Reference Process Identification section.
5687 (Process Identification): Add information about process ID
5688 lifetime. Describe Linux thread/task IDs.
5689 * manual/signal.texi (Signaling Another Process): Mention that the
5690 signal is always sent to the process.
5691
5692 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5693
5694 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5695 and tst-ldbl-efgcvt.
5696 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5697 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5698 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5699 (fcvt_tests, output_error, output_r_error, do_test): Use the
5700 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5701 select the type of floating-point variables and arguments; to
5702 produce extra tests for double and conversion specifiers for
5703 printf; and to set the names of called functions.
5704 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5705 in tst-efgcvt-template.c.
5706 * misc/tst-ldbl-efgcvt.c: Likewise.
5707
5708 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5709
5710 * nss/Makefile (tst-nss-test3.out): New rule.
5711
5712 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5713
5714 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5715 clobber sp.
5716
5717 2018-12-13 fanjinke <fanjinke@hygon.cn>
5718
5719 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5720 "HygonGenuine".
5721
5722 2018-12-13 Andreas Schwab <schwab@suse.de>
5723
5724 [BZ #23861]
5725 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5726 (__pthread_rwlock_rdlock_full): Update expected value for
5727 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5728 * nptl/tst-rwlock-pwn.c: New file.
5729 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5730
5731 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5732
5733 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5734 definition.
5735
5736 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5737
5738 * benchtests/scripts/compare_bench.py (do_compare): write to
5739 stderr in casestat is not present.
5740 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5741 stderr in case timings field is not present. Also string showing
5742 the output filename goes into the stderr.
5743
5744 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5745
5746 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5747 and ZeroDivisorError exceptions.
5748 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5749 argument to loop through user provided statistics.
5750 * benchtests/scripts/compare_bench.py (main): Include the --stats
5751 argument.
5752
5753 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5754
5755 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5756 instead of return.
5757
5758 2018-12-12 Florian Weimer <fweimer@redhat.com>
5759
5760 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5761 clause to copyright header.
5762
5763 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5764
5765 [BZ #23614]
5766 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5767 registers saved in the stack frame.
5768 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5769 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5770
5771 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5772
5773 * include/bits/monetary-ldbl.h: New file.
5774 * include/bits/printf-ldbl.h: Likewise.
5775 * include/bits/stdio-ldbl.h: Likewise.
5776 * include/bits/stdlib-ldbl.h: Likewise.
5777 * include/bits/syslog-ldbl.h: Likewise.
5778 * include/bits/wchar-ldbl.h: Likewise.
5779
5780 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5781
5782 * libio/libio.h: Remove redirection for _IO_vfprintf.
5783
5784 2018-12-11 Andreas Schwab <schwab@suse.de>
5785
5786 * Makerules: Remove all references to abilist-pattern.
5787 (update-all-abi): Simplify find expression.
5788
5789 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5790
5791 [BZ #23961]
5792 * math/auto-libm-test-in: Add new test case.
5793 * math/auto-libm-test-out-pow: Regenerated.
5794 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5795
5796 2018-12-10 DJ Delorie <dj@redhat.com>
5797
5798 [BZ #23948]
5799 * support/test-container.c: Move postclean step to before we
5800 change namespaces.
5801
5802 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5803
5804 * scripts/gen-as-const.py (main): Handle --python option.
5805 * scripts/gen-py-const.awk: Remove.
5806 * Makerules (py-const-script): Use gen-as-const.py.
5807 ($(py-const)): Likewise.
5808 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5809 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5810 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5811 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5812 ~PTHREAD_MUTEX_NO_ELISION_NP.
5813 * manual/README.pretty-printers: Update reference to
5814 gen-py-const.awk.
5815
5816 * scripts/glibcextract.py: New file.
5817 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5818 or tempfile. Import glibcexctract.
5819 (compute_c_consts): Remove. Moved to glibcextract.py.
5820 (gen_test): Update reference to compute_c_consts.
5821 (main): Likewise.
5822 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5823 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5824 * sysdeps/unix/sysv/linux/Makefile
5825 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5826 Redirect stderr as well as stdout.
5827
5828 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5829
5830 [BZ #19767]
5831 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5832 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5833 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5834 ALWAYS_USE_VSYSCALL.
5835 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5836 ALWAYS_USE_VSYSCALL.
5837 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5838 ALWAYS_USE_VSYSCALL.
5839
5840 2018-12-10 Florian Weimer <fweimer@redhat.com>
5841
5842 [BZ #23972]
5843 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5844 offset instead of count for clarity. Fix typo in comment.
5845 (__old_getdents64): Keep track of previous offset. Use it to call
5846 handle_overflow.
5847 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5848 that d_off is never zero.
5849
5850 2018-12-10 Andreas Schwab <schwab@suse.de>
5851
5852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5853 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5855 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5856 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5857
5858 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5859
5860 * timezone/private.h: Update from tzcode 2018g.
5861 * timezone/tzfile.h: Likewise.
5862 * timezone/tzselect.ksh: Likewise.
5863 * timezone/zdump.c: Likewise.
5864 * timezone/zic.c: Likewise.
5865
5866 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5867
5868 [BZ #23490]
5869 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5870 (do_test): Adjust buffer size and fix format.
5871
5872 2018-12-07 DJ Delorie <dj@redhat.com>
5873
5874 [BZ #23907]
5875 * malloc/tst-tcfree3.c: New.
5876 * malloc/Makefile: Add it.
5877
5878 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5879
5880 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5881
5882 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5883
5884 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5885 used as a mask for the mode argument of __vfscanf_internal and
5886 __vfwscanf_internal.
5887 * stdio-common/vfscanf-internal.c
5888 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5889 (__strtof128_internal): Define to __wcstof128_internal.
5890 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5891 __strtof128_internal or __wcstof128_internal when the format of
5892 long double is the same as _Float128.
5893
5894 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5895
5896 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5897 * posix/confstr.c (confstr): Rename to __confstr.
5898 (__confstr): Add hidden def.
5899 (confstr): Add weak alias for __confstr.
5900 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5901 confstr.
5902
5903 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5904
5905 * NEWS: Mention getcpu.
5906 * include/sched.h (__getcpu): New libc_hidden_proto.
5907 * manual/resource.texi: Document getcpu.
5908 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5909 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5910 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5911 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5912 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5913 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5914 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5915 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5916 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5917 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5918 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5919 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5920 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5921 Likewise.
5922 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5923 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5924 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5926 Likewise.
5927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5928 Likewise.
5929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5930 Likewise.
5931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5932 Likewise.
5933 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5934 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5935 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5936 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5937 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5938 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5939 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5940 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5941 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5942 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5943 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5944 Also check getcpu.
5945
5946 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5947
5948 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5949 functions.
5950 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5951
5952 2018-12-07 Florian Weimer <fweimer@redhat.com>
5953
5954 [BZ #17405]
5955 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5956 * posix/Versions (GLIBC_2.29): Export
5957 posix_spawn_file_actions_addfchdir_np.
5958 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5959 * posix/spawn_faction_destroy.c
5960 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5961 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5962 and the field action.fchdir_action.
5963 * posix/tst-spawn-chdir.c (add_chdir): New function.
5964 (do_test): Add do_fchdir loop. Call add_chdir.
5965 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5966 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5967 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5968 posix_spawn_file_actions_addfchdir_np.
5969 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5970 Likewise.
5971 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5972 Likewise.
5973 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5974 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5975 Likewise.
5976 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5977 Likewise.
5978 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5979 Likewise.
5980 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5981 Likewise.
5982 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5983 Likewise.
5984 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5985 Likewise.
5986 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5987 (GLIBC_2.29): Likewise.
5988 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5989 (GLIBC_2.29): Likewise.
5990 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5991 (GLIBC_2.29): Likewise.
5992 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5993 (GLIBC_2.29): Likewise.
5994 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5995 Likewise.
5996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5997 (GLIBC_2.29): Likewise.
5998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5999 (GLIBC_2.29): Likewise.
6000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6001 (GLIBC_2.29): Likewise.
6002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6003 (GLIBC_2.29): Likewise.
6004 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6005 Likewise.
6006 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6007 Likewise.
6008 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6009 Likewise.
6010 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6011 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6012 Likewise.
6013 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6014 Likewise.
6015 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6016 Likewise.
6017 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6018 Likewise.
6019
6020 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6021
6022 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6023 trailing whitespace removed.
6024 * scripts/config.guess: Update to version 2018-11-28.
6025 * scripts/config.sub: Update to version 2018-11-28.
6026 * scripts/install-sh: Update to version 2018-03-11.20.
6027 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6028 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6029
6030 2018-12-07 Florian Weimer <fweimer@redhat.com>
6031
6032 [BZ #23927]
6033 CVE-2018-19591
6034 * inet/tst-if_index-long.c: New file.
6035 * inet/Makefile (tests): Add tst-if_index-long.
6036
6037 2018-12-07 Florian Weimer <fweimer@redhat.com>
6038
6039 * support/check.h (support_record_failure_is_failed): Declare.
6040 * support/descriptors.h: New file.
6041 * support/support_descriptors.c: Likewise.
6042 * support/tst-support_descriptors.c: Likewise.
6043 * support/support_record_failure.c
6044 (support_record_failure_is_failed): New function.
6045 * support/Makefile (libsupport-routines): Add support_descriptors.
6046 (tests): Add tst-support_descriptors.
6047
6048 2018-12-05 Zack Weinberg <zackw@panix.com>
6049 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6050
6051 * stdio-common/vfprintf-internal.c
6052 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6053 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6054 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6055 and __no_long_double.
6056 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6057 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6058 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6059 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6060 and __nldbl_*syslog* functions.
6061 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6062 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6063 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6064 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6065 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6066 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6067 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6068 (__nldbl_vwprintf, __nldbl_wprintf):
6069 Directly call the appropriate __v*printf_internal routine, passing
6070 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6071 variable names.
6072 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6073 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6074 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6075 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6076 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6077 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6078 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6079 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6080 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6081 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6082 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6083 (__nldbl_syslog, __nldbl_vsyslog):
6084 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6085 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6086 appropriate.
6087 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6088 appropriate.
6089
6090 2018-12-05 Zack Weinberg <zackw@panix.com>
6091 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6092
6093 [BZ #11319]
6094 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6095 Moved here from debug/vsprintf_chk.c.
6096 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6097 and completion logic for the strfile to match exactly what
6098 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6099 _IO_str_init_static_internal instead of maxlen-1.
6100 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6101 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6102 __vsprintf_internal.
6103
6104 * debug/vsprintf_chk.c (__vsprintf_chk)
6105 * debug/sprintf_chk.c (__sprintf_chk):
6106 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6107 'flags' argument is positive, and slen as maxlen. No need to lock
6108 the FILE and/or construct a temporary FILE. Minimize and normalize
6109 header inclusions and variable names. Do not libc_hidden_def anything.
6110
6111 * debug/asprintf_chk.c (__asprintf_chk)
6112 * debug/dprintf_chk.c (__dprintf_chk)
6113 * debug/fprintf_chk.c (__fprintf_chk)
6114 * debug/fwprintf_chk.c (__fwprintf_chk)
6115 * debug/printf_chk.c (__printf_chk)
6116 * debug/snprintf_chk.c (__snprintf_chk)
6117 * debug/swprintf_chk.c (__swprintf_chk)
6118 * debug/vasprintf_chk.c (__vasprintf_chk)
6119 * debug/vdprintf_chk.c (__vdprintf_chk)
6120 * debug/vfprintf_chk.c (__vfprintf_chk)
6121 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6122 * debug/vprintf_chk.c (__vprintf_chk)
6123 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6124 * debug/vswprintf_chk.c (__vswprintf_chk)
6125 * debug/vwprintf_chk.c (__vwprintf_chk)
6126 * debug/wprintf_chk.c (__wprintf_chk):
6127 Directly call the corresponding vxxprintf_internal function, passing
6128 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6129 the FILE and/or construct a temporary FILE. Minimize and normalize
6130 header inclusions and variable names. Do not libc_hidden_def anything.
6131
6132 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6133 __obstack_vprintf_internal.
6134 (__obstack_vprintf_chk): Convert into a wrapper that calls
6135 __obstack_vprintf_internal (these two functions already had the
6136 same code) and move to new file...
6137 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6138 file.
6139 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6140 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6141 * debug/Makefile (routines): Add vobprintf_chk.
6142
6143 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6144 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6145 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6146 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6147 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6148 (__nldbl___obstack_vfprintf_chk):
6149 Directly call the corresponding vxxprintf_internal function,
6150 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6151 duplicate comparison of slen with 0 or maxlen from the corresponding
6152 non-__nldbl function.
6153
6154 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6155 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6156 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6157 Remove libc_hidden_proto.
6158
6159 * stdio-common/vfprintf-internal.c
6160 (__vfprintf_internal, __vfwprintf_internal):
6161 Do not check _IO_FLAGS2_FORTIFY.
6162 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6163 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6164 a comment explaining why it has the maxlen argument.
6165 (_IO_acquire_lock_clear_flags2_fct): Remove.
6166 (_IO_acquire_lock_clear_flags2): Remove.
6167 (_IO_release_lock): Remove conditional statement which will
6168 now never execute.
6169 (_IO_acquire_lock): Remove variable which is now unused.
6170 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6171 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6172
6173 * stdio-common/Makefile (tests): Add tst-bz11319 and
6174 tst-bz11319-fortify2.
6175 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6176 * stdio-common/tst-bz11319-fortify2.c: New file.
6177 * stdio-common/tst-bz11319.c: Likewise.
6178
6179 2018-12-05 Zack Weinberg <zackw@panix.com>
6180 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6181
6182 * misc/syslog.c: Include libioP.h, not iolibio.h.
6183 (__vsyslog_internal): New function with the former body of
6184 __vsyslog_chk; takes mode_flags argument same as
6185 __v*printf_internal. Call __vfprintf_internal directly.
6186
6187 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6188 Remove libc_hidden_def.
6189 (__syslog, __syslog_chk): Use __vsyslog_internal.
6190 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6191
6192 * include/sys/syslog.h: Add multiple inclusion guard.
6193 Add prototype for __vsyslog_internal.
6194 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6195
6196 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6197 Use __vsyslog_internal.
6198
6199 2018-12-05 Zack Weinberg <zackw@panix.com>
6200 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6201
6202 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6203 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6204 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6205 New functions.
6206 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6207 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6208
6209 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6210 Include wctype.h here if COMPILE_WPRINTF is defined.
6211 Define __vfprintf_internal or __vfwprintf_internal, depending
6212 on COMPILE_WPRINTF.
6213 Temporarily, on entry to this function, update mode_flags
6214 according to the environmental settings corresponding to
6215 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6216 Throughout, check mode_flags instead of __ldbl_is_dbl and
6217 _IO_FLAGS2_FORTIFY on the destination FILE.
6218 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6219 Include vfprintf-internal.c. Don't include wctype.h.
6220 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6221 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6222 and vfprintf.
6223 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6224 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6225 and vfwprintf.
6226 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6227
6228 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6229 and add mode_flags argument; use __vfprintf_internal.
6230 (__vdprintf): New function. Alias vdprintf to this.
6231 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6232 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6233 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6234 (__obstack_printf): Use __obstack_printf_internal.
6235 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6236 public aliases __vsnprintf and vsnprintf.
6237 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6238 called internally.
6239 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6240 public aliases _IO_vsprintf and vsprintf.
6241 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6242 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6243 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6244 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6245 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6246
6247 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6248 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6249 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6250 * stdio-common/printf.c: Use __vfprintf_internal.
6251
6252 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6253 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6254 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6255
6256 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6257 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6258 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6259 __vfwprintf_internal.
6260
6261 * libio/libio.h: Remove libc_hidden_proto and declaration for
6262 _IO_vfprintf.
6263 Remove declaration of _IO_vfwprintf.
6264 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6265 _IO_vsprintf.
6266 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6267 _IO_obstack_printf.
6268 * include/stdio.h: Add prototype for __vasprintf.
6269 (__vsnprintf): Remove declaration, because there are no more
6270 internal calls.
6271 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6272 declaration, because there are no more internal calls.
6273
6274 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6275 __vsnprintf_internal, instead of _IO_vsnprintf.
6276 * argp/argp-help.c (__argp_error, __argp_failure): Use
6277 __vasprintf_internal, instead of _IO_vasprintf.
6278 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6279 redefine, because there are no more internal calls.
6280
6281 2018-12-05 Zack Weinberg <zackw@panix.com>
6282 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6283
6284 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6285 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6286 Include libio/strfile.h instead of libioP.h.
6287 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6288 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6289 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6290 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6291 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6292 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6293 necessary. Do not set __no_long_double. Normalize variable names.
6294 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6295 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6296 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6297 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6298 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6299 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6300 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6301 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6302 Do not set __no_long_double. Normalize variable names.
6303
6304 2018-12-05 Zack Weinberg <zackw@panix.com>
6305 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6306
6307 * stdio-common/isoc99_scanf.c
6308 * stdio-common/isoc99_fscanf.c
6309 * stdio-common/isoc99_sscanf.c
6310 * stdio-common/isoc99_vscanf.c
6311 * stdio-common/isoc99_vfscanf.c
6312 * stdio-common/isoc99_vsscanf.c
6313 * wcsmbs/isoc99_wscanf.c
6314 * wcsmbs/isoc99_fwscanf.c
6315 * wcsmbs/isoc99_swscanf.c
6316 * wcsmbs/isoc99_vwscanf.c
6317 * wcsmbs/isoc99_vfwscanf.c
6318 * wcsmbs/isoc99_vswscanf.c:
6319 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6320 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6321 No need to lock and unlock the FILE passed to that function.
6322
6323 * stdio-common/vfscanf-internal.c
6324 (__vfscanf_internal, __vfwscanf_internal):
6325 Don't look at _IO_FLAGS2_SCANF_STD.
6326 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6327 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6328 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6329
6330 2018-12-05 Zack Weinberg <zackw@panix.com>
6331 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6332
6333 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6334 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6335 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6336 * libio/strfile.h: Add multiple inclusion guard.
6337 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6338
6339 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6340 consistency with the other version of this file.
6341 (ldbl_compat_symbol): New macro.
6342 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6343 New macro.
6344
6345 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6346 Define __vfscanf_internal or __vfwscanf_internal, depending on
6347 COMPILE_WSCANF; don't define any other public symbols.
6348 Remove errval and code to set errp.
6349 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6350 as the mode_flags argument.
6351 (encode_error, conv_error, input_error): Don't set errval.
6352 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6353 Include vfscanf-internal.c.
6354 * stdio-common/vfscanf.c: New file defining the public entry
6355 point vfscanf, which calls __vfscanf_internal.
6356 * stdio-common/vfwscanf.c: New file defining the public entry
6357 point vfwscanf, which calls __vfwscanf_internal.
6358
6359 * stdio-common/iovfscanf.c: New file.
6360 * stdio-common/iovfwscanf.c: Likewise.
6361
6362 * stdio-common/Makefile (routines): Add vfscanf-internal,
6363 vfwscanf-internal, iovfscanf, iovfwscanf.
6364 * stdio-common/Versions: Mention GLIBC_2.29, so that
6365 it can be used in SHLIB_COMPAT expressions.
6366 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6367 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6368 Call __vfscanf_internal, instead of _IO_vfscanf.
6369 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6370 _IO_vfscanf.
6371 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6372 _IO_vfwscanf.
6373
6374 * libio/iovsscanf.c: Clean up includes, when possible. Use
6375 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6376 __vfscanf_internal or __vfwscanf_internal directly.
6377 * libio/iovswscanf.c: Likewise.
6378 * libio/swscanf.c: Likewise.
6379 * libio/vscanf.c: Likewise.
6380 * libio/vwscanf.c: Likewise.
6381 * libio/wscanf.c: Likewise.
6382 * stdio-common/isoc99_fscanf.c: Likewise.
6383 * stdio-common/isoc99_scanf.c: Likewise.
6384 * stdio-common/isoc99_sscanf.c: Likewise.
6385 * stdio-common/isoc99_vfscanf.c: Likewise.
6386 * stdio-common/isoc99_vscanf.c: Likewise.
6387 * stdio-common/isoc99_vsscanf.c: Likewise.
6388 * stdio-common/scanf.c: Likewise.
6389 * stdio-common/sscanf.c: Likewise.
6390 * wcsmbs/isoc99_fwscanf.c: Likewise.
6391 * wcsmbs/isoc99_swscanf.c: Likewise.
6392 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6393 * wcsmbs/isoc99_vswscanf.c: Likewise.
6394 * wcsmbs/isoc99_vwscanf.c: Likewise.
6395 * wcsmbs/isoc99_wscanf.c: Likewise.
6396
6397 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6398
6399 * include/time.h
6400 (__tz_compute): Replace time_t with __time64_t.
6401 (__tz_convert): Replace time_t* with __time64_t.
6402 (__offtime): Replace time_t* with __time64_t.
6403 * time/gmtime.c
6404 (__gmtime_r): Adjust call to __tz_convert.
6405 (gmtime): Likewise.
6406 * time/localtime.c
6407 (__localtime_r): Likewise.
6408 (localtime): Likewise.
6409 * time/offtime.c: Replace time_t with __time64_t.
6410 * time/tzset.c: Likewise.
6411
6412 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6413
6414 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6415 dynamic linker unless [$(run-built-tests) = yes].
6416
6417 2018-12-03 DJ Delorie <dj@delorie.com>
6418
6419 * support/test-container.c (check_for_unshare_hints): New.
6420 (main): Call it if unshare fails. Add support for "su" scriptlet
6421 command.
6422
6423 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6424
6425 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6426 'START' to indicate that start text should be output.
6427 (gen_test): Likewise.
6428 (main): Generate 'START' for first symbol or '--' line, or at end
6429 of input if not previously generated.
6430
6431 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6432
6433 [BZ #19767]
6434 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6435 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6436 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6437 ALWAYS_USE_VSYSCALL.
6438
6439 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6440
6441 [BZ #23913]
6442 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6443 new_argv by one.
6444
6445 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6446
6447 [BZ #23923]
6448 * locale/programs/localedef.c: Declare boolean hard_links default true.
6449 (options): Add --no-hard-links option.
6450 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6451 * locale/programs/localedef.h: Declare prototype for hard_links.
6452 * locale/programs/locfile.c (write_locale_data): Don't use hard
6453 links if hard_links is false.
6454
6455 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6456
6457 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6458 cpu_features_basic.
6459 (__cache_sysconf): Likewise.
6460 (init_cacheinfo): Likewise.
6461 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6462 populate COMMON_CPUID_INDEX_80000007 and
6463 COMMON_CPUID_INDEX_80000008.
6464 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6465 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6466 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6467 (init_cpu_features): Use _Static_assert on
6468 index_arch_Fast_Unaligned_Load.
6469 __get_cpuid_registers and __get_arch_feature. Updated for
6470 cpu_features_basic. Set stepping in cpu_features.
6471 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6472 (FEATURE_INDEX_2): New.
6473 (FEATURE_INDEX_MAX): Changed to enum.
6474 (COMMON_CPUID_INDEX_D_ECX_1): New.
6475 (COMMON_CPUID_INDEX_80000007): Likewise.
6476 (COMMON_CPUID_INDEX_80000008): Likewise.
6477 (cpuid_registers): Likewise.
6478 (cpu_features_basic): Likewise.
6479 (CPU_FEATURE_USABLE): Likewise.
6480 (bit_arch_XXX_Usable): Likewise.
6481 (cpu_features): Use cpuid_registers and cpu_features_basic.
6482 (bit_arch_XXX): Reweritten.
6483 (bit_cpu_XXX): Likewise.
6484 (index_cpu_XXX): Likewise.
6485 (reg_XXX): Likewise.
6486 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6487 <support/check.h>.
6488 (CHECK_CPU_FEATURE): New.
6489 (CHECK_CPU_FEATURE_USABLE): Likewise.
6490 (cpu_kinds): Likewise.
6491 (do_test): Print vendor, family, model and stepping. Check
6492 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6493 (TEST_FUNCTION): Removed.
6494 Include <support/test-driver.c> instead of
6495 "../../test-skeleton.c".
6496 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6497 Check POPCNT instead of POPCOUNT.
6498 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6499
6500 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6501
6502 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6503 there is no element in `consts'.
6504
6505 2018-12-01 Florian Weimer <fweimer@redhat.com>
6506
6507 * support/support_capture_subprocess.c
6508 (support_capture_subprocess): Check that pipe descriptors have
6509 expected values. Close original pipe descriptors in subprocess.
6510
6511 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6512
6513 [BZ #23032]
6514 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6515 attr with __pthread_default_barrierattr.
6516 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6517 attr with __pthread_default_condattr.
6518 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6519 attr with __pthread_default_mutexattr.
6520 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6521 attr with __pthread_default_rwlockattr.
6522
6523 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6524
6525 * manual/tunables.texi (POSIX Thread Tunables): New node.
6526 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6527 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6528 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6529 __pthread_tunables_init.
6530 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6531 (max_adaptive_count): Define.
6532 * nptl/pthread_mutex_conf.c: New file.
6533 * nptl/pthread_mutex_conf.h: New file.
6534 * sysdeps/generic/adaptive_spin_count.h: New file.
6535 * sysdeps/nptl/dl-tunables.list: New file.
6536 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6537 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6538 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6539 Likewise.
6540
6541 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6542
6543 [BZ #20544]
6544 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6545 * stdlib/on_exit.c (__on_exit): Likewise.
6546 * stdlib/Makefile (tests): Add tst-bz20544.
6547 * stdlib/tst-bz20544.c: New test.
6548
6549 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6550
6551 [BZ #19767]
6552 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6553 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6554 New.
6555
6556 2018-11-30 Florian Weimer <fweimer@redhat.com>
6557
6558 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6559 Extend error logging.
6560 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6561 symbol.
6562
6563 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6564
6565 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6566 __sigismember instead of sigismember.
6567 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6568 cancel_handler): New definitions.
6569 (do_system): Use posix_spawn instead of fork and execl and remove
6570 reentracy code.
6571 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6572 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6573 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6574 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6575 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6576 * sysdeps/unix/sysv/linux/system.c: Likewise.
6577
6578 [BZ #22834]
6579 [BZ #17490]
6580 * NEWS: Add new semantic for atfork with popen and system.
6581 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6582 fork and execl.
6583
6584 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6585
6586 [BZ #23690]
6587 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6588 modification order when accessing reloc_result->addr.
6589 * include/link.h (reloc_result): Add field init.
6590 * nptl/Makefile (tests): Add tst-audit-threads.
6591 (modules-names): Add tst-audit-threads-mod1 and
6592 tst-audit-threads-mod2.
6593 Add rules to build tst-audit-threads.
6594 * nptl/tst-audit-threads-mod1.c: New file.
6595 * nptl/tst-audit-threads-mod2.c: Likewise.
6596 * nptl/tst-audit-threads.c: Likewise.
6597 * nptl/tst-audit-threads.h: Likewise.
6598
6599 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6600
6601 * scripts/gen-as-const.py: New file.
6602 * scripts/gen-as-const.awk: Remove.
6603 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6604 gen-as-const.py.
6605 ($(objpfx)test-as-const-%.c): Likewise.
6606
6607 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6608
6609 * elf/dl-exception.c: Include <_itoa.h>.
6610
6611 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6612
6613 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6614 returned by __f_setlk.
6615
6616 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6617 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6618
6619 * elf/Makefile (tests-internal): Add tst-create_format1.
6620 * elf/dl-exception.c (_dl_exception_create_format): Support
6621 %x, %lx and %zx.
6622 * elf/tst-create_format1.c: New file.
6623
6624 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6625
6626 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6627 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6628 gnulib.)
6629 * argp/argp-help.c (__argp_failure): Likewise.
6630
6631 2018-11-29 Mao Han <han_mao@c-sky.com>
6632
6633 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6634 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6635 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6636 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6637 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6638 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6639 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6640 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6641 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6642 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6643 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6644 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6645 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6646 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6647 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6648 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6649 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6650 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6651 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6652 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6653 (R_CKCORE_TLS_TPOFF32): New defines.
6654
6655 2018-11-29 Florian Weimer <fweimer@redhat.com>
6656
6657 * posix/Makefile (before-compile): Remove testcases.h and
6658 ptestcases.h.
6659 (generated): Add testcases.h and ptestcases.h.
6660 (testcases.h, ptestcases.h): Move to $(objpfx).
6661 (runtests.o): Add dependency on testcases.h.
6662 (runptests.o): Add dependency on ptestcases.h.
6663 * posix/testcases.h, posix/ptestcases.h: Remove files.
6664 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6665 not touch posix/testcases.h and posix/ptestcases.h.
6666
6667 2018-11-28 Florian Weimer <fweimer@redhat.com>
6668
6669 support: Add signal support to support_capture_subprocess_check.
6670 * support/capture_subprocess.h (support_capture_subprocess_check):
6671 Adjust comment and rename parameter.
6672 * support/support_capture_subprocess_check.c
6673 (print_actual_status): New function.
6674 (support_capture_subprocess_check): Support negative
6675 status_or_signal. Call print_actual_status.
6676 * support/tst-support_capture_subprocess.c (do_test): Call
6677 support_capture_subprocess_check.
6678 * libio/tst-vtables-common.c (termination_status)
6679 (init_termination_status): Remove.
6680 (check_for_termination): Adjust support_capture_subprocess_check
6681 call.
6682 (do_test): Remove call to init_termination_status.
6683
6684 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6685
6686 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6687 source directory instead of a copy.
6688 (CommandList.create_copy_dir): Remove.
6689
6690 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6691
6692 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6693
6694 2018-11-28 Florian Weimer <fweimer@redhat.com>
6695
6696 * support/support.h (support_quote_string): Do not use str
6697 parameter name.
6698
6699 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6700
6701 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6702 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6703
6704 2018-11-27 Florian Weimer <fweimer@redhat.com>
6705
6706 * support/support.h (support_quote_string): Declare.
6707 * support/support_quote_string.c: New file.
6708 * support/tst-support_quote_string.c: Likewise.
6709 * support/Makefile (libsupport-routines): Add
6710 support_quote_string.
6711 (tests): Add tst-support_quote_string.
6712
6713 2018-11-27 Florian Weimer <fweimer@redhat.com>
6714
6715 [BZ #23927]
6716 CVE-2018-19591
6717 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6718 descriptor leak in case of ENODEV error.
6719
6720 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6721
6722 [BZ #19767]
6723 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6724 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6725 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6726
6727 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6728
6729 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6730 Error for unknown lines.
6731
6732 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6733
6734 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6735 Touch additional files.
6736
6737 2018-11-26 Florian Weimer <fweimer@redhat.com>
6738
6739 [BZ #23907]
6740 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6741 double-frees.
6742
6743 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6744
6745 [BZ #19767]
6746 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6747 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6748 SHARED. Include sysdep.h.
6749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6750 ALWAYS_USE_VSYSCALL.
6751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6752 ALWAYS_USE_VSYSCALL.
6753
6754 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6755
6756 [BZ #19767]
6757 * nptl/Makefile (tests-static): Add tst-cond11-static.
6758 (tests): Likewise.
6759 * nptl/tst-cond11-static.c: New File.
6760 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6761 tst-affinity-static.
6762 (tests): Likewise.
6763 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6764 instead of SHARED.
6765 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6766 (USE_VSYSCALL): Likewise.
6767 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6768 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6769 instead of SHARED.
6770 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6771 SHARED.
6772 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6773 New.
6774
6775 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6776
6777 [BZ #23915]
6778 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6779 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6780 Undefine.
6781
6782 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6783
6784 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6785 (tst-cet-legacy-1a-ARGS): New.
6786 ($(objpfx)tst-cet-legacy-1a): New target.
6787 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6788
6789 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6790
6791 * conform/conformtest.py (CompileSubTest.__init__): Set
6792 self.run_early to False.
6793 (ExecuteSubTest.__init__): Likewise.
6794 (HeaderTests.run): Try running all non-optional, non-XFAILed
6795 compilation tests in a single execution of the compiler.
6796
6797 * conform/conformtest.py (CompileSubTest): New class.
6798 (ExecuteSubTest): Likewise.
6799 (ElementTest.run): Rename to gen_subtests. Append tests to
6800 self.subtests instead of running them.
6801 (ConstantTest.run): Likewise.
6802 (SymbolTest.run): Likewise.
6803 (TypeTest.run): Likewise.
6804 (TagTest.run): Likewise.
6805 (FunctionTest.run): Likewise.
6806 (VariableTest.run): Likewise.
6807 (MacroFunctionTest.run): Likewise.
6808 (MacroStrTest.run): Likewise.
6809 (HeaderTests.handle_test_line): Generate subtests for tests.
6810 (HeaderTests.run): Run subtests for tests.
6811
6812 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6813
6814 * math/Versions (GLIBC_2.29): Add pow.
6815 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6816 symbol.
6817 * math/w_pow.c: New file.
6818 * sysdeps/i386/fpu/w_pow.c: New file.
6819 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6820 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6821 and add necessary aliases.
6822 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6823 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6824 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6825 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6826 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6827 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6828 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6829 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6830 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6831 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6832 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6833 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6834 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6835 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6836 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6841 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6842 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6843 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6844 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6845 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6846 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6847 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6848 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6849 __pow.
6850 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6851 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6852 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6853
6854 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6855
6856 * math/Versions (GLIBC_2.29): Add log2.
6857 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6858 symbol.
6859 * math/w_log2.c: New file.
6860 * sysdeps/i386/fpu/w_log2.c: New file.
6861 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6862 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6863 and add necessary aliases.
6864 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6865 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6866 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6867 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6868 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6869 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6870 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6871 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6872 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6873 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6874 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6875 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6876 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6877 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6878 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6883 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6884 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6885 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6886 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6887 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6888 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6889 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6890
6891 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6892
6893 * math/Versions (GLIBC_2.29): Add log.
6894 * math/w_log_compat.c (__log_compat): Change to versioned compat
6895 symbol.
6896 * math/w_log.c: New file.
6897 * sysdeps/i386/fpu/w_log.c: New file.
6898 * sysdeps/ia64/fpu/e_log.S: Update.
6899 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6900 and add necessary aliases.
6901 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6902 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6903 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6904 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6905 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6906 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6907 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6908 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6909 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6910 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6911 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6912 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6913 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6914 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6915 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6920 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6921 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6922 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6923 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6924 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6925 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6926 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6927 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6928 __log.
6929 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6930 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6931 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6932 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6933
6934 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6935
6936 * math/Versions (GLIBC_2.29): Add exp and exp2.
6937 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6938 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6939 * math/w_exp_compat.c (__exp_compat): Likewise.
6940 * math/w_exp.c: New file.
6941 * math/w_exp2.c: New file.
6942 * sysdeps/i386/fpu/w_exp.c: New file.
6943 * sysdeps/i386/fpu/w_exp2.c: New file.
6944 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6945 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6946 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6947 and add necessary aliases.
6948 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6949 and add necessary aliases.
6950 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6951 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6952 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6953 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6954 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6955 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6956 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6957 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6958 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6959 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6960 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6961 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6962 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6963 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6964 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6965 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6966 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6967 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6971 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6972 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6973 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6974 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6975 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6976 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6977 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6978 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6979 (__ieee754_exp): Rename to __exp.
6980 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6981 (__ieee754_exp): Rename to __exp.
6982 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6983 (__ieee754_exp): Rename to __exp.
6984 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6985 __exp.
6986 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6987
6988 2018-11-20 DJ Delorie <dj@redhat.com>
6989
6990 * malloc/malloc.c (tcache_entry): Add key field.
6991 (tcache_put): Set it.
6992 (tcache_get): Likewise.
6993 (_int_free): Check for double free in tcache.
6994 * malloc/tst-tcfree1.c: New.
6995 * malloc/tst-tcfree2.c: New.
6996 * malloc/Makefile: Run the new tests.
6997 * manual/probes.texi: Document memory_tcache_double_free probe.
6998
6999 * dlfcn/dlerror.c (check_free): Prevent double frees.
7000
7001 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7002
7003 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7004
7005 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7006
7007 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7008 in tests. Use names for format arguments.
7009 (ConstantTest.run): Likewise.
7010 (SymbolTest.run): Likewise.
7011 (TypeTest.run): Likewise.
7012 (TagTest.run): Likewise.
7013 (FunctionTest.run): Likewise.
7014 (VariableTest.run): Likewise.
7015 (MacroFunctionTest.run): Likewise.
7016 (MacroStrTest.run): Likewise.
7017 (HeaderTests.__init__): Set self.num_tests.
7018 (HeaderTests.handle_test_line): Set test.num. Increment
7019 self.num_tests.
7020
7021 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7022
7023 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7024 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7025 SEEK_SET.
7026
7027 2018-11-19 Mao Han <han_mao@c-sky.com>
7028
7029 * scripts/config.guess: Update to version 2018-08-29.
7030 * scripts/config.sub: Update to version 2018-08-29.
7031
7032 2018-11-19 Florian Weimer <fweimer@redhat.com>
7033
7034 support: Print timestamps in timeout handler.
7035 * support/support_test_main.c (print_timestamp): New function.
7036 (signal_handler): Use it to print the termination time and the
7037 time of the last write to standard output.
7038
7039 2018-11-16 Zack Weinberg <zackw@panix.com>
7040 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7041
7042 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7043 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7044 argument.
7045 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7046 and add flags argument. Check flags instead of __ldbl_is_dbl when
7047 deciding whether to set is_long_double.
7048 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7049 passing zero for flags argument.
7050 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7051
7052 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7053 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7054 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7055 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7056 variable names. Remove libc_hidden_def/libc_hidden_proto from
7057 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7058 longer called from within the library.
7059 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7060 for __nldbl___vstrfmon_l, declare it explicitly.
7061
7062 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7063
7064 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7065
7066 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7067 macros
7068 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7069 F_SETLK64, F_SETLKW64, respectively.
7070 * sysdeps/mach/hurd/f_setlk.c: New file.
7071 * sysdeps/mach/hurd/f_setlk.h: New file.
7072 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7073 f_setlk.
7074 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7075 (__libc_fcntl): Move non-flock operations to...
7076 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7077 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7078
7079 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7080
7081 mktime: DEBUG_MKTIME cleanup
7082 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7083 And it’s no longer needed now that glibc and Gnulib both have
7084 their own testing mechanisms for mktime.
7085 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7086
7087 mktime: fix non-EOVERFLOW errno handling
7088 [BZ#23789]
7089 mktime was not properly reporting failures when the underlying
7090 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7091 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7092 The problem could happen on non-glibc platforms, with Gnulib.
7093 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7094 (tm_diff): ... this simpler function, which does not change errno.
7095 All callers changed to deal with errno themselves.
7096 (ranged_convert, __mktime_internal): Return failure immediately if
7097 the underlying function reports any failure other than EOVERFLOW.
7098 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7099 gap code fails.
7100
7101 mktime: fix bug with Y2038 DST transition
7102 [BZ#23789]
7103 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7104 mishandle a DST transition that jumps over the Y2038 boundary.
7105 No such DST transitions are known so this is only a theoretical
7106 bug, but we might as well do things right.
7107
7108 mktime: make more room for overflow
7109 [BZ#23789]
7110 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7111 This is so that we can add tm_diff results to a previous guess,
7112 which will be useful in a later patch.
7113
7114 mktime: simplify offset guess
7115 [BZ#23789]
7116 * time/mktime.c (__mktime_internal): Omit excess precision.
7117
7118 mktime: new test for mktime failure
7119 [BZ#23789]
7120 Based on a test suggested by Albert Aribaud in:
7121 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7122 * time/Makefile (tests): Add bug-mktime4.
7123 * time/bug-mktime4.c: New file.
7124
7125 mktime: fix EOVERFLOW bug
7126 [BZ#23789]
7127 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7128 Include libc-config.h, not config.h, for __set_errno.
7129 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7130
7131 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7132
7133 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7134 __attribute_copy__ to copy attributes from name. Drop static qualifier
7135 to avoid warnings about leaf attribute not having effect on static
7136 functions.
7137
7138 2018-11-13 Florian Weimer <fweimer@redhat.com>
7139
7140 * malloc/malloc.c (fastbin_push_entry): New function.
7141 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7142 (REMOVE_FB): Remove macro.
7143 (_int_malloc): Use fastbin_pop_entry and reindent.
7144 (_int_free): Use fastbin_push_entry.
7145 (malloc_consolidate): Use atomic_exchange_acquire.
7146
7147 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7148
7149 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7150 alias attribute, not with strong_alias.
7151
7152 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7153 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7154 with additional parameter thread.
7155 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7156 in terms of __hidden_ver2.
7157 (hidden_tls_def): New macro.
7158 (libc_hidden_tls_def): Likewise.
7159 (rtld_hidden_tls_def): Likewise.
7160 (libm_hidden_tls_def): Likewise.
7161 (libmvec_hidden_tls_def): Likewise.
7162 (libresolv_hidden_tls_def): Likewise.
7163 (librt_hidden_tls_def): Likewise.
7164 (libdl_hidden_tls_def): Likewise.
7165 (libnss_files_hidden_tls_def): Likewise.
7166 (libnsl_hidden_tls_def): Likewise.
7167 (libnss_nisplus_hidden_tls_def): Likewise.
7168 (libutil_hidden_tls_def): Likewise.
7169 (libutil_hidden_tls_def): Likweise.
7170 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7171 libc_hidden_tls_def.
7172 (__sim_disabled_exceptions_thread): Likewise.
7173 (__sim_round_mode_thread): Likewise.
7174
7175 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7176 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7177 copy attributes from name.
7178
7179 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7180
7181 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7182 Use __attribute_copy__ to copy attributes from name.
7183
7184 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7185 with __hidden_ver1 call.
7186 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7187 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7188 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7189 (__cosf): Do not declare here.
7190 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7191 (__sincosf): Do not declare here.
7192 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7193 (__sinf): Do not declare here.
7194
7195 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7196 (__BIG_ENDIAN): Likewise.
7197 (__BYTE_ORDER): Likewise.
7198 (strong_alias): Likewise.
7199 (_strong_alias): Likewise.
7200
7201 2018-11-12 Florian Weimer <fweimer@redhat.com>
7202
7203 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7204 function. Move after the definition of in_smallbin_range. Do not
7205 use __builtin_expect for paths that lead to a noreturn function.
7206 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7207 because it is unclear whether this is in fact an unlikely
7208 condition.
7209 (_int_malloc, _int_free): Adjust.
7210 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7211 variables.
7212 * malloc/arena.c (heap_trim): Likewise.
7213
7214 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7215
7216 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7217 it, free it if needed.
7218 (reauthenticate): Test and use ccwdir.
7219 (child_init_port): In non-resetids case, test and use ccwdir.
7220 (child_chdir): New nested function to set ccwdir.
7221 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7222 * hurd/hurd/port.h (_hurd_port_move): New function.
7223 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7224 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7225 * hurd/Versions (_hurd_port_move): Export function.
7226 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7227 symbol.
7228 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7229 of dtablesize for allocating dtable_cloexec.
7230
7231 2018-11-09 Martin Sebor <msebor@redhat.com>
7232
7233 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7234 it's already defined.
7235 (_strong_alias): Use __attribute_copy__.
7236 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7237 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7238 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7239 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7240 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7241 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7242 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7243 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7244 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7245 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7246 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7247 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7248 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7249 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7250 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7251 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7252 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7253 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7254 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7255
7256 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7257
7258 * misc/tst-efgcvt.c: Include support/check.h and
7259 support/test-driver.c. Do not include test-skeleton.c.
7260 (error_count): Remove.
7261 (output_error): Replace increments to error_count with calls to
7262 support_record_failure.
7263 (output_r_error): Likewise.
7264 (special): Likewise.
7265 (do_test): Unconditionally return zero.
7266 (TEST_FUNCTION): Remove.
7267
7268 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7269
7270 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7271 not $(@D)/scratch.
7272 ($(linknamespace-header-tests)): Likewise.
7273
7274 * conform/conformtest.py: New file.
7275 * conform/conformtest.pl: Remove.
7276 * conform/GlibcConform.pm: Likewise.
7277 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7278 (KEYWORDS_C99): Likewise.
7279 (KEYWORDS): Likewise.
7280 * conform/Makefile ($(conformtest-header-tests)): Use
7281 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7282 option. Use --header instead of --headers.
7283 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7284 function entries.
7285 * conform/data/spawn.h-data: Likewise.
7286 * conform/data/fcntl.h-data (openat): Add space after function
7287 name.
7288 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7289 (wcscasecmp_l): Likewise.
7290 * conform/data/termios.h-data (c_cc): Add space after element
7291 name.
7292
7293 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7294
7295 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7296 instead of manually comparing and reporting mismatching strings.
7297 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7298 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7299
7300 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7301
7302 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7303 __ASSUME_SOCKETCALL.
7304 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7305 (__ASSUME_SOCKETCALL): Remove.
7306 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7307 (__ASSUME_SOCKETCALL): Likewise.
7308 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7309 (__ASSUME_SOCKETCALL): Likewise.
7310 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7311 (__ASSUME_SOCKETCALL): Likewise.
7312 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7313 (__ASSUME_SOCKETCALL): Likewise.
7314 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7315 (__ASSUME_SOCKETCALL): Likewise.
7316 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7317 (__ASSUME_SOCKETCALL): Likewise.
7318
7319 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7320
7321 [BZ #23509]
7322 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7323 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7324 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7325 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7326 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7327 lc_unknown.
7328
7329 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7330
7331 [BZ #17630]
7332 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7333
7334 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7335
7336 [BZ #23867]
7337 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7338 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7339 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7340 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7341
7342 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7343
7344 * support/support_test_compare_string.c
7345 (support_test_compare_string): Fix printf format.
7346
7347 2018-11-07 Florian Weimer <fweimer@redhat.com>
7348
7349 Implement TEST_COMPARE_STRING.
7350 * support/check.h (TEST_COMPARE_STRING): Define.
7351 (support_test_compare_string): Declare.
7352 * support/Makefile (libsupport-routines): Add
7353 support_test_compare_string.
7354 (tests): Add tst-test_compare_string.
7355 * support/support_test_compare_string.c: New file.
7356 * support/tst-test_compare_string.c: Likewise.
7357
7358 2018-11-07 Andreas Schwab <schwab@suse.de>
7359
7360 [BZ #23864]
7361 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7362 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7363 Undef.
7364
7365 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7366
7367 [BZ #23862]
7368 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7369 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7370 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7371 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7372 Likewise.
7373
7374 2018-11-06 Florian Weimer <fweimer@redhat.com>
7375
7376 [BZ #17405]
7377 * posix/Makefile (routines): Add spawn_faction_addchdir.
7378 (tests): Add tst-spawn-chdir.
7379 * posix/Versions (GLIBC_2.29): Add
7380 posix_spawn_file_actions_addchdir_np.
7381 * posix/spawn_faction_addchdir.c: New file.
7382 * posix/spawn_faction_destroy.c
7383 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7384 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7385 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7386 chdir_action.
7387 * posix/tst-spawn-chdir.c: New file.
7388 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7389 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7390 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7391 posix_spawn_file_actions_addchdir_np.
7392 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7393 Likewise.
7394 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7395 Likewise.
7396 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7397 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7398 Likewise.
7399 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7400 Likewise.
7401 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7402 Likewise.
7403 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7404 Likewise.
7405 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7406 Likewise.
7407 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7408 Likewise.
7409 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7410 (GLIBC_2.29): Likewise.
7411 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7412 (GLIBC_2.29): Likewise.
7413 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7414 (GLIBC_2.29): Likewise.
7415 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7416 (GLIBC_2.29): Likewise.
7417 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7418 Likewise.
7419 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7420 (GLIBC_2.29): Likewise.
7421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7422 (GLIBC_2.29): Likewise.
7423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7424 (GLIBC_2.29): Likewise.
7425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7426 (GLIBC_2.29): Likewise.
7427 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7428 Likewise.
7429 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7430 Likewise.
7431 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7432 Likewise.
7433 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7434 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7435 Likewise.
7436 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7437 Likewise.
7438 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7439 Likewise.
7440 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7441 Likewise.
7442
7443 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7444
7445 * misc/Makefile (tests): Add tst-ldbl-error.
7446 * misc/tst-ldbl-error.c: New file.
7447
7448 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7449
7450 * misc/Makefile (tests): Add tst-ldbl-warn.
7451 * misc/tst-ldbl-warn.c: New file.
7452
7453 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7454
7455 * argp/Makefile (tests): Add tst-ldbl-argp.
7456 * argp/tst-ldbl-argp.c: New file.
7457
7458 2018-11-05 Arjun Shankar <arjun@redhat.com>
7459
7460 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7461 __gconv_path_elem and call __gconv_get_path unconditionally.
7462
7463 2018-11-05 Andreas Schwab <schwab@suse.de>
7464
7465 [BZ #22927]
7466 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7467 creating the first helper thread failed.
7468
7469 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7470
7471 * sysdeps/mach/hurd/msync.c: New file.
7472
7473 2018-11-02 Florian Weimer <fweimer@redhat.com>
7474
7475 * support/shell-container.c (copy_func): Call
7476 support_copy_file_range instead of copy_file_range to support
7477 cross-device copies.
7478
7479 2018-11-02 Florian Weimer <fweimer@redhat.com>
7480
7481 * support/test-container.c: Include <libc-pointer-arith.h> for
7482 ALIGN_UP.
7483
7484 2018-11-01 Zong Li <zong@andestech.com>
7485
7486 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7487 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7488 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7489 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7490
7491 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7492 variable to avoid overlap arguments.
7493
7494 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7495
7496 * posix/bug-regex22.c (main): Use puts with distinct error
7497 messages for unexpected success of re_compile_pattern, not printf
7498 with NULL argument to %s.
7499
7500 * stdio-common/bug22.c: Include <libc-diag.h>.
7501 (do_test): Disable -Wformat-overflow= warnings around fprintf
7502 calls outputting more than INT_MAX characters.
7503 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7504 around printf call with NULL %s argument.
7505
7506 [BZ #23848]
7507 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7508 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7509 Undefine.
7510 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7511 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7512 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7513 (__ASSUME_SENDTO_SYSCALL): Likewise.
7514 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7515 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7516 [!__arch64__].
7517 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7518 (__ASSUME_CONNECT_SYSCALL): Likewise.
7519 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7520 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7521 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7522 Define.
7523 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7524 Likewise.
7525 [__LINUX_KERNEL_VERSION >= 0x040400]
7526 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7527 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7528 Remove.
7529 (listen): Likewise.
7530 (setsockopt): Likewise.
7531
7532 2018-11-01 Fredrik Noring <noring@nocrew.org>
7533
7534 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7535 with the ISA override.
7536
7537 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7538
7539 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7540 #endif.
7541
7542 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7543
7544 * manual/errno.texi (EIEIO): Document how translators should
7545 translate the error message.
7546 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7547 printing trailing whitespaces refused by git.
7548 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7549 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7550 * hurd/Makefile (user-interfaces): Add pci.
7551
7552 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7553
7554 * conform/linknamespace.py: New file.
7555 * conform/linknamespace.pl: Remove file.
7556 * conform/Makefile ($(linknamespace-header-tests)): Use
7557 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7558 option.
7559
7560 2018-10-30 Florian Weimer <fweimer@redhat.com>
7561
7562 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7563 memory leaks.
7564
7565 2018-10-30 Florian Weimer <fweimer@redhat.com>
7566
7567 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7568
7569 2018-10-30 Florian Weimer <fweimer@redhat.com>
7570
7571 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7572 support_blob_repeat.
7573
7574 2018-10-30 Florian Weimer <fweimer@redhat.com>
7575
7576 Avoid spurious test failures in stdlib/test-bz22786.
7577 * support/Makefile (libsupport-routines): Add blob_repeat.
7578 (tests): Add tst-support_blob_repeat.
7579 * support/blob_repeat.h: New file.
7580 * support/blob_repeat.c: Likewise.
7581 * support/tst-support_blob_repeat.c: Likewise.
7582 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7583 support_blob_repeat_allocate.
7584
7585 2018-10-30 Andreas Schwab <schwab@suse.de>
7586
7587 [BZ #23125]
7588 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7589 Don't use tail call.
7590 * elf/tst-unwind-main.c: New file.
7591 * elf/Makefile (tests): Add tst-unwind-main.
7592 (CFLAGS-tst-unwind-main.c): Define.
7593
7594 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7595
7596 [BZ #23791]
7597 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7598 n_cs_precedes to 0.
7599 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7600
7601 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7602
7603 * conform/glibcconform.py: Do not import shutil.
7604 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7605 of mkdtemp.
7606
7607 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7608 critic_missing for versions before 3.4.
7609 * configure: Regenerated.
7610 * manual/install.texi (Tools for Compilation): Document
7611 requirement for Python to build glibc.
7612 * INSTALL: Regenerated.
7613 * Rules [PYTHON]: Make code unconditional.
7614 * benchtests/Makefile [PYTHON]: Likewise.
7615 * conform/Makefile [PYTHON]: Likewise.
7616 * manual/Makefile [PYTHON]: Likewise.
7617 * math/Makefile [PYTHON]: Likewise.
7618
7619 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7620
7621 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7622 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7623 answer to interrupt_operation, return EIEIO instead of EINTR.
7624 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7625 _hurd_intr_rpc_msg_about_to global point to start of controlled
7626 assembly snippet. Make it check canceled flag.
7627 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7628 the _hurd_intr_rpc_msg_about_to point.
7629 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7630 issue, remove cancel flag check.
7631
7632 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7633
7634 * scripts/build-many-glibcs.py: Remove compatibility for missing
7635 os.cpu_count and re.fullmatch.
7636
7637 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7638
7639 [BZ #23822]
7640 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7641 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7642 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7643
7644 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7645
7646 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7647 macro.
7648
7649 2018-10-25 Florian Weimer <fweimer@redhat.com>
7650
7651 [BZ #23562]
7652 [BZ #23821]
7653 XFAIL siginfo_t si_band conform test on sparc64.
7654 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7655 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7656 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7657 (conformtest-xfail-conds): Add sparc64-linux.
7658 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7659 sparc64.
7660 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7661
7662 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7663
7664 * elf/elf.h (NT_MIPS_DSP): New macro.
7665 (NT_MIPS_FP_MODE): Likewise.
7666
7667 2018-10-25 Zong Li <zong@andestech.com>
7668
7669 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7670 name by adding the file extension (.so).
7671
7672 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7673
7674 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7675 (test-xfail-ISO11/threads.h/linknamespace,
7676 test-xfail-ISO11/threads.h/conform): Add.
7677
7678 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7679
7680 * math/gen-libm-test.py: Import os.
7681 (ALL_FLOATS_MANUAL): New constant.
7682 (ALL_FLOATS_SUFFIX): Likewise.
7683 (Ulps.all_functions): New function.
7684 (real_all_ulps): Likewise.
7685 (generate_err_table_sub): Likewise.
7686 (generate_err_table): Likewise.
7687 (main): Handle -s and -m options.
7688 * manual/libm-err-tab.pl: Remove.
7689 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7690 instead of libm-err-tab.pl.
7691 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7692 != no].
7693 * manual/install.texi (Tools for Compilation): Document
7694 requirement for Python to build manual.
7695 * INSTALL: Regenerated.
7696
7697 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7698
7699 * bits/time64.h: New file.
7700 * include/time.h: Replace internal_time_t with __time64_t.
7701 * posix/bits/types (__time64_t): Add.
7702 * stdlib/Makefile: Add bits/time64.h to includes.
7703 * time/tzfile.c: Replace internal_time_t with __time64_t.
7704
7705 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7706
7707 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7708 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7709 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7710 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7711 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7712 prototype.
7713 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7714 * posix/spawn_faction_addclose.c
7715 (__posix_spawn_file_actions_addclose): Add hidden definition.
7716 * posix/spawn_faction_adddup2.c
7717 (__posix_spawn_file_actions_adddup2): Likewise.
7718 * posix/spawn_faction_destroy.c
7719 (__posix_spawn_file_actions_destroy): Likewise.
7720 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7721 Likewise.
7722 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7723 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7724 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7725 Likewise.
7726 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7727 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7728 Likewise.
7729
7730 2018-10-24 Andreas Schwab <schwab@suse.de>
7731
7732 [BZ #18093]
7733 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7734 format cache.
7735 * elf/cache.c (print_cache): Likewise.
7736
7737 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7738
7739 * bits/timesize.h: New file.
7740 * stdlib/Makefile (headers): Add bits/timesize.h.
7741 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7742 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7743 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7744 (__SEM_PAD_AFTER_TIME): Likewise.
7745 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7746 (__SHM_PAD_AFTER_TIME): Likewise.
7747 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7748 (__MSQ_PAD_BEFORE_TIME): Likewise.
7749 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7750 (__SEM_PAD_BEFORE_TIME): Likewise.
7751 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7752 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7753 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7754 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7755 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7756 (__MSQ_PAD_BEFORE_TIME): Likewise.
7757 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7758 (__SEM_PAD_BEFORE_TIME): Likewise.
7759 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7760 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7761 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7762 (__MSQ_PAD_BEFORE_TIME): Likewise.
7763 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7764 (__SEM_PAD_BEFORE_TIME): Likewise.
7765 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7766 (__SHM_PAD_BEFORE_TIME): Likewise.
7767 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7768 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7769 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7770
7771 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7772
7773 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7774 USE_RDTSCP is defined.
7775 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7776 USE_RDTSCP is defined.
7777
7778 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7779
7780 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7781 defined.
7782
7783 [BZ #23709]
7784 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7785 independently of other flags.
7786
7787 2018-10-23 Florian Weimer <fweimer@redhat.com>
7788
7789 * time/tst-mktime2.c (N_STRINGS): Remove.
7790 (set_timezone): New function.
7791 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7792 (mktime_test1): Report localtime failure and check errno value.
7793 Use TEST_COMPARE.
7794 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7795 (do_test): Remove alarm call. Use set_timezone and array_length.
7796
7797 2018-10-23 Andreas Schwab <schwab@suse.de>
7798
7799 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7800 (__start_context): Use END instead of PSEUDO_END.
7801
7802 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7803
7804 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7805 version to 4.19.
7806
7807 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7808 version to 4.19.
7809
7810 [BZ #23793]
7811 * wcsmbs/c32rtomb.c: New file.
7812 * wcsmbs/mbrtoc32.c: Likewise.
7813 * wcsmbs/tst-c32-state.c: Likewise.
7814 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7815 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7816 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7817 (tests): Add tst-c32-state.
7818 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7819 $(gen-locales).
7820
7821 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7822
7823 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7824 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7825
7826 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7827
7828 [BZ #23794]
7829 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7830 pair and return 0 in that case, and use saved character to
7831 interpret following character.
7832 * wcsmbs/tst-c16-surrogate.c: New file.
7833 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7834 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7835 Depend on $(gen-locales)
7836
7837 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7838
7839 [BZ #23562]
7840 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7841 (struct siginfo_t): Use correct type for si_band.
7842
7843 2018-10-19 Florian Weimer <fweimer@redhat.com>
7844
7845 [BZ #23689]
7846 * resource/bits/types/struct_rusage.h (struct rusage): Update
7847 comment on struct. Remove extraneous field comment.
7848
7849 2018-10-18 David S. Miller <davem@davemloft.net>
7850
7851 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7852 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7853 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7854 sysdep_routines in subdir elf.
7855 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7856 version for __vdso_clock_gettime.
7857 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7858 Define.
7859 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7860 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7861
7862 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7863
7864 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7865
7866 * sysdeps/i386/init-arch.h: Removed.
7867 * sysdeps/i386/i586/init-arch.h: Likewise.
7868 * sysdeps/i386/i686/init-arch.h: Likewise.
7869 * sysdeps/i386/i686/hp-timing.h: Likewise.
7870 * sysdeps/x86_64/hp-timing.h: Likewise.
7871 * sysdeps/i386/isa.h: New file.
7872 * sysdeps/i386/i586/isa.h: Likewise.
7873 * sysdeps/i386/i686/isa.h: Likewise.
7874 * sysdeps/x86_64/isa.h: Likewise.
7875 * sysdeps/x86/hp-timing.h: New file.
7876 * sysdeps/x86/init-arch.h: Include <isa.h>.
7877
7878 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7879
7880 * math/libm-test-pow.inc (pow_test_data): Do not allow
7881 divide-by-zero exception for pow(+/- 0, -Inf).
7882
7883 2018-10-17 Zack Weinberg <zackw@panix.com>
7884
7885 * manual/job.texi (Job Control is Optional): Remove node, as
7886 job control has not been optional in quite some time.
7887 (Job Control): Mention briefly that systems older than
7888 POSIX.1-2001 might not support job control.
7889 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7890 defined on systems conforming to POSIX.1-2001.
7891
7892 2018-10-17 Arjun Shankar <arjun@redhat.com>
7893
7894 [BZ #22062]
7895 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7896 indentation.
7897 * (__gconv_read_conf): Mark function static.
7898 * (once): New static variable.
7899 * (__gconv_load_conf): New function.
7900 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7901 * iconv/gconv_db.c (once): Remove static variable.
7902 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7903 __gconv_read_conf.
7904 * (__gconv_find_transform): Likewise.
7905 * iconv/tst-iconv-mt.c: New test.
7906 * iconv/Makefile: Add tst-iconv_mt.
7907
7908 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7909
7910 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7911 bits/shm-pad.h.
7912 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7913 (shmatt_t): Define as __syscall_ulong_t.
7914 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7915 and [__SHM_PAD_AFTER_TIME].
7916 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7917 Define shm_segsz and associated padding based on
7918 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7919 Use __syscall_ulong_t instead of unsigned long int.
7920 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7921 unsigned long int.
7922 [__USE_MISC] (struct shm_info): Likewise.
7923 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7924 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7925 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7926 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7927 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7928 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7929 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7930 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7931 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7932 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7933 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7934
7935 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7936 bits/shmlba.h.
7937 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7938 (SHMLBA): Remove macro.
7939 (__getpagesize): Remove function declaration.
7940 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7941 <bits/shmlba.h>.
7942 (SHMLBA): Remove macro.
7943 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7944 <bits/shmlba.h>.
7945 (SHMLBA): Remove macro.
7946 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7947 <bits/shmlba.h>.
7948 (SHMLBA): Remove macro.
7949 (__getpagesize): Remove function declaration.
7950 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7951 <bits/shmlba.h>.
7952 (SHMLBA): Remove macro.
7953 (__getshmlba): Remove function declaration.
7954 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7955 (SHMLBA): Remove macro.
7956 (__getpagesize): Remove function declaration.
7957 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7958 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7959 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7960 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7961 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7962 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7963 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7964 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7965 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7966 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7967
7968 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7969
7970 [BZ #23275]
7971 * nptl/tst-mutex10.c: New File.
7972 * nptl/Makefile (tests): Add tst-mutex10.
7973 (tst-mutex10-ENV): New variable.
7974 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7975 Ensure that elision path is used if elision is available.
7976 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7977 Likewise.
7978 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7979 Likewise.
7980 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7981 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7982 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7983 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7984 Likewise.
7985 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7986 (__pthread_mutex_cond_lock_adjust): Likewise.
7987 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7988 Likewise.
7989 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7990 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7991 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7992 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7993 Add comments.
7994 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7995 Use atomic_load_relaxed and atomic_store_relaxed.
7996 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7997 Use atomic_store_relaxed.
7998
7999 2018-10-17 Andreas Schwab <schwab@suse.de>
8000
8001 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8002 * crypt/badsalttest.c (TIMEOUT): Likewise.
8003 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8004 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8005 * io/test-lfs.c (TIMEOUT): Likewise.
8006 * libio/tst-atime.c (TIMEOUT): Likewise.
8007 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8008 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8009 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8010 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8011 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8012 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8013 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8014 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8015 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8016 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8017 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8018 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8019 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8020 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8021 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8022 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8023 * nptl/tst-once2.c (TIMEOUT): Likewise.
8024 * nptl/tst-once3.c (TIMEOUT): Likewise.
8025 * nptl/tst-once4.c (TIMEOUT): Likewise.
8026 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8027 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8028 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8029 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8030 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8031 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8032 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8033 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8034 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8035 * posix/tst-chmod.c (TIMEOUT): Likewise.
8036 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8037 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8038 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8039 * posix/tst-regex2.c (TIMEOUT): Likewise.
8040 * posix/tst-waitid.c (TIMEOUT): Likewise.
8041 * rt/tst-aio.c (TIMEOUT): Likewise.
8042 * rt/tst-aio10.c (TIMEOUT): Likewise.
8043 * rt/tst-aio4.c (TIMEOUT): Likewise.
8044 * rt/tst-aio5.c (TIMEOUT): Likewise.
8045 * rt/tst-aio6.c (TIMEOUT): Likewise.
8046 * rt/tst-aio64.c (TIMEOUT): Likewise.
8047 * rt/tst-aio7.c (TIMEOUT): Likewise.
8048 * rt/tst-aio9.c (TIMEOUT): Likewise.
8049 * rt/tst-clock.c (TIMEOUT): Likewise.
8050 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8051 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8052 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8053 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8054 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8055 * rt/tst-timer4.c (TIMEOUT): Likewise.
8056 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8057 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8058 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8059 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8060 * time/tst-ftime.c (TIMEOUT): Likewise.
8061 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8062
8063 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8064
8065 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8066 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8067 for thunderX2.
8068
8069 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8070
8071 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8072 bits/sem-pad.h.
8073 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8074 instead of <bits/wordsize.h>.
8075 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8076 and [__SEM_PAD_AFTER_TIME].
8077 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8078 __syscall_ulong_t instead of unsigned long int.
8079 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8080 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8081 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8082 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8083 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8084 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8085 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8086 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8087 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8088 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8089 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8090
8091 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8092
8093 regex: simplify by using intprops.h
8094 [BZ#23744]
8095 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8096 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8097 intprops.h defines them.
8098
8099 regex: __builtin_expect → __glibc_unlikely
8100 [BZ#23744]
8101 This refactoring was prompted by a problem when the regex code is
8102 used as part of Gnulib and when the builder’s compiler does not grok
8103 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8104 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8105 Although this refactoring does not fix the problem directly,
8106 we might as well have Gawk use the now-preferred glibc style for when
8107 __builtin_expect is unavailable.
8108 * posix/regex_internal.h (BE): Remove.
8109 All uses replaced by __glibc_unlikely or __glibc_likely.
8110
8111 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8112
8113 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8114 bits/msq-pad.h.
8115 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8116 instead of <bits/wordsize.h>.
8117 (msgqnum_t): Define as __syscall_ulong_t.
8118 (msglen_t): Likewise.
8119 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8120 and [__MSQ_PAD_AFTER_TIME].
8121 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8122 __syscall_ulong_t instead of unsigned long int.
8123 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8124 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8125 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8126 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8127 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8128 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8129 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8130 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8131 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8132 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8133 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8134
8135 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8136
8137 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8138 (struct shmid_ds): Condition padding after time fields on
8139 [__WORDSIZE == 32].
8140 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8141 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8142 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8143
8144 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8145 (struct semid_ds): Condition padding after time fields on
8146 [__WORDSIZE == 32].
8147 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8148 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8149 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8150 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8151
8152 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8153 (struct msqid_ds): Condition padding after time fields on
8154 [__WORDSIZE == 32].
8155 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8156 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8157 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8158 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8159
8160 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8161
8162 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8163
8164 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8165
8166 * libio/tst-readline.c (TIMEOUT): Define.
8167
8168 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8169
8170 mktime fix for Gnulib + coreutils
8171 [BZ#23745]
8172 This fix affects only Gnulib. Problem discovered when
8173 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8174 * time/mktime.c:
8175 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8176 Do not define since it is not used. Defining an unused static
8177 function prompts a warning from GCC when Coreutils is configured
8178 with --enable-gcc-warnings.
8179
8180 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8181
8182 * benchtests/scripts/compare_bench.py (main): set float type on
8183 threshold argument.
8184
8185 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8186
8187 [BZ #23740]
8188 * localedata/locales/kl_GL (mon): Update, the relative case.
8189 (alt_mon): Add, fill with month names in the nominative case.
8190 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8191 (d_fmt): Set to "%b %d %Y".
8192
8193 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8194
8195 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8196 <bits/mman-linux.h>.
8197 (PROT_READ): Don't define here.
8198 (PROT_WRITE): Likewise.
8199 (PROT_EXEC): Likewise.
8200 (PROT_NONE): Likewise.
8201 (PROT_GROWSDOWN): Likewise.
8202 (PROT_GROWSUP): Likewise.
8203 (MAP_SHARED): Likewise.
8204 (MAP_PRIVATE): Likewise.
8205 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8206 [__USE_MISC] (MAP_FILE): Likewise.
8207 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8208 [__USE_MISC] (MAP_ANON): Likewise.
8209 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8210 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8211 (MCL_CURRENT): Likewise.
8212 (MCL_FUTURE): Likewise.
8213 (MCL_ONFAULT): Likewise.
8214 [__USE_MISC] (MADV_NORMAL): Likewise.
8215 [__USE_MISC] (MADV_RANDOM): Likewise.
8216 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8217 [__USE_MISC] (MADV_WILLNEED): Likewise.
8218 [__USE_MISC] (MADV_DONTNEED): Likewise.
8219 [__USE_MISC] (MADV_FREE): Likewise.
8220 [__USE_MISC] (MADV_REMOVE): Likewise.
8221 [__USE_MISC] (MADV_DONTFORK): Likewise.
8222 [__USE_MISC] (MADV_DOFORK): Likewise.
8223 [__USE_MISC] (MADV_HWPOISON): Likewise.
8224 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8225 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8226 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8227 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8228 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8229 (__MAP_ANONYMOUS): New macro.
8230 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8231 <bits/mman-linux.h> inclusion.
8232 (MAP_FIXED): Likewise.
8233 (MS_SYNC): Likewise.
8234 (MS_ASYNC): Likewise.
8235 (MS_INVALIDATE): Likewise.
8236 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8237 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8238 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8239 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8240 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8241 [__USE_MISC] (MADV_DODUMP): Likewise.
8242 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8243 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8244
8245 [BZ #23735]
8246 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8247 Define.
8248 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8249 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8250 Add test-nldbl-redirect.
8251 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8252 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8253 $(objpfx)libnldbl_nonshared.a.
8254
8255 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8256
8257 * support/support.h (support_objdir_elf_ldso): New variable.
8258 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8259 * support/Makefile (CFLAGS-support_paths.c): Add definition
8260 for OBJDIR_ELF_LDSO_PATH.
8261 * support/test-container.c (main): Search for the ld.so
8262 which is also used by the testsuite.
8263
8264 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8265
8266 [BZ #20209]
8267 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8268 should be "sap" rather than "sab".
8269 (day): Fix spelling of Sunday, should be "sapaat" rather than
8270 "sabaat".
8271
8272 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8273
8274 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8275
8276 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8277
8278 [BZ #19444]
8279 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8280 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8281 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8282
8283 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8284
8285 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8286
8287 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8288
8289 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8290 Add -mrtm.
8291 (CFLAGS-elision-unlock.c): Likewise.
8292 (CFLAGS-elision-timed.c): Likewise.
8293 (CFLAGS-elision-trylock.c): Likewise.
8294 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8295
8296 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8297
8298 [BZ #21037]
8299 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8300 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8301 new fd_to_filename interface.
8302 * libio/freopen64.c (freopen64): Likewise.
8303 * libio/tst-memstream.h: New file.
8304 * libio/tst-memstream4.c: Likewise.
8305 * libio/tst-wmemstream4.c: Likewise.
8306 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8307 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8308 and remove internal dynamic allocation.
8309
8310 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8311
8312 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8313 (MREMAP_MAYMOVE): Do not define here.
8314 [__USE_GNU] (MREMAP_FIXED): Likewise.
8315 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8316 (MREMAP_MAYMOVE): Define here instead.
8317 [__USE_GNU] (MREMAP_FIXED): Likewise.
8318 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8319 (MREMAP_MAYMOVE): Remove.
8320 [__USE_GNU] (MREMAP_FIXED): Likewise.
8321
8322 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8323
8324 * math/fromfp.h: Do not include <math_private.h>.
8325 * math/s_cacosh_template.c: Likewise.
8326 * math/s_casin_template.c: Likewise.
8327 * math/s_casinh_template.c: Likewise.
8328 * math/s_ccos_template.c: Likewise.
8329 * math/s_cproj_template.c: Likewise.
8330 * math/s_fdim_template.c: Likewise.
8331 * math/s_fmaxmag_template.c: Likewise.
8332 * math/s_fminmag_template.c: Likewise.
8333 * math/s_iseqsig_template.c: Likewise.
8334 * math/s_ldexp_template.c: Likewise.
8335 * math/s_nextdown_template.c: Likewise.
8336 * math/w_log1p_template.c: Likewise.
8337 * math/w_scalbln_template.c: Likewise.
8338 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8339 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8340 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8341 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8342 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8343 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8344 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8345 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8346 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8347 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8348 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8349 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8350 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8351 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8352 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8353 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8354 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8355 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8356 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8357 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8358 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8359 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8360 * sysdeps/ieee754/k_standardf.c: Likewise.
8361 * sysdeps/ieee754/k_standardl.c: Likewise.
8362 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8363 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8364 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8365 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8366 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8367 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8368 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8369 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8370 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8371 * sysdeps/ieee754/s_signgam.c: Likewise.
8372 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8373 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8374 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8375 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8376 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8377 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8378 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8379 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8380 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8381 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8382 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8383 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8384 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8385 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8386 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8387 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8388 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8389 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8390 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8391 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8392 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8393 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8394 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8395 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8396 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8397 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8398 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8399 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8400 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8401 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8402 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8403 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8404 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8405 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8406 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8407 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8408 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8409 <math_private.h>.
8410 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8411
8412 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8413
8414 [BZ #23716]
8415 * sysdeps/i386/dl-cet.c: Removed.
8416 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8417 prototype.
8418 (_dl_runtime_profile_shstk): Likewise.
8419 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8420 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8421
8422 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8423
8424 [BZ #23579]
8425 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8426 do_test_with_invalid_iov): New tests.
8427 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8428 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8429 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8430 errno is ENOSYS.
8431 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8432 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8433 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8434
8435 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8436
8437 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8438 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8439 (MATH_REDIRECT_BINARY_ARGS): New macro.
8440 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8441 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8442 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8443 header inclusion.
8444 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8445 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8446 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8447 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8448 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8449 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8450 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8451 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8452 Likewise.
8453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8454 Likewise.
8455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8457 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8458 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8459 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8460 Likewise.
8461 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8462 Likewise.
8463 * sysdeps/generic/math_private_calls.h
8464 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8465 Do not declare and define as an inline function.
8466 * math/divtc3.c (__divtc3): Use copysign functions instead of
8467 __copysign variants.
8468 * math/multc3.c (__multc3): Likewise.
8469 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8470 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8471 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8472 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8473 Likewise.
8474 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8475 (__ieee754_yn): Likewise.
8476 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8477 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8478 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8479 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8480 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8481 (__sin): Likewise.
8482 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8483 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8484 Likewise.
8485 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8486 Likewise.
8487 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8488 Likewise.
8489 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8490 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8491 Likewise.
8492 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8493 (__ieee754_ynf): Likewise.
8494 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8495 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8496 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8497 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8498 Likewise.
8499 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8500 (__ieee754_ynl): Likewise.
8501 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8502 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8503 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8504 Likewise.
8505 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8506 (__ieee754_ynl): Likewise.
8507 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8508 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8509 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8510 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8511 Likewise.
8512 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8513 (__ieee754_ynl)
8514 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8515 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8516 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8517 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8518 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8519
8520 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8521 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8522 using MATH_REDIRECT.
8523 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8524 header inclusion.
8525 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8526 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8527 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8528 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8529 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8530 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8531 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8532 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8534 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8536 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8537 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8538 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8539 (round): Redirect to __round.
8540 (__roundl): Call round instead of __round.
8541 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8542 Remove macro.
8543 [_ARCH_PWR5X] (__roundf): Likewise.
8544 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8545 functions instead of __round variants.
8546 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8547 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8548 Likewise.
8549 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8550 Likewise.
8551 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8552 Likewise.
8553 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8554 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8555 __lroundl.
8556 (__ieee754_expl): Call roundl instead of __roundl.
8557
8558 2018-09-27 Andreas Schwab <schwab@suse.de>
8559
8560 [BZ #23717]
8561 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8562 (do_test): Make st1 static.
8563
8564 2018-09-26 Andreas Schwab <schwab@suse.de>
8565
8566 [BZ #23707]
8567 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8568 * elf/Makefile (tests): Add tst-unwind-ctor.
8569 (modules-names): Add tst-unwind-ctor-lib.
8570 ($(objpfx)tst-unwind-ctor): Depend on
8571 $(objpfx)tst-unwind-ctor-lib.so.
8572
8573 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8574
8575 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8576 file. Most contents moved from ....
8577 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8578 and include <bits/mman-map-flags-generic.h>.
8579 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8580 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8581 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8582 <bits/mman-map-flags-generic.h>.
8583 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8584 macros defined in <bits/mman-map-flags-generic.h>.
8585 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8586 <bits/mman-map-flags-generic.h>.
8587 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8588 defined in <bits/mman-map-flags-generic.h>.
8589
8590 2018-09-26 Andreas Schwab <schwab@suse.de>
8591
8592 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8593 output.
8594
8595 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8596 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8597 Fangrui Song <maskray@google.com>
8598
8599 [BZ #20480]
8600 * config.make.in (have-textrel_ifunc): New define.
8601 * configure.ac: Add check if linker supports textrel relocation with
8602 ifunc.
8603 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8604 tst-ifunc-textrel.
8605 (CFLAGS-tst-ifunc-textrel.c): New rule.
8606 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8607 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8608 * elf/tst-ifunc-textrel.c: New file.
8609
8610 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8611
8612 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8613 <bits/procfs-prregset.h>.
8614 (prgregset_t): Define using __prgregset_t.
8615 (prfpregset_t): Define using __prfpregset_t.
8616 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8617 (sysdep_headers): Add bits/procfs-prregset.h.
8618 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8619 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8620 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8621 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8622
8623 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8624 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8625 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8626 pr_uid and pr_gid.
8627 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8628 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8629 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8630 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8631 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8632 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8633 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8634 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8635 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8636 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8637 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8638 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8639 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8640 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8641 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8642 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8643 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8644 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8645 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8646 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8647 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8648 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8649 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8650 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8651
8652 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8653 AArch64 version. Include <bits/procfs.h>.
8654 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8655 (sysdep_headers): Add bits/procfs.h.
8656 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8657 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8658 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8659 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8660 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8661 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8662 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8663 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8664 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8665 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8666 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8667 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8668 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8669 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8670 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8671 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8672 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8673
8674 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8675
8676 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8677 Use libsupport.
8678
8679 2018-09-25 Arjun Shankar <arjun@redhat.com>
8680
8681 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8682 (__gconv_max_path_elem_len): Likewise.
8683 (__gconv_nmodules): Likewise.
8684 (__gconv_get_path): Likewise.
8685 (path_elem): Move to ...
8686 * iconv/gconv_conf.c: ... here.
8687 (__gconv_get_path): Mark function static.
8688 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8689 * iconv/gconv_open.c: ... here.
8690
8691 2018-09-24 Andreas Schwab <schwab@suse.de>
8692
8693 * scripts/haveversions.awk: New file.
8694 * Makerules ($(common-objpfx)Versions.def)
8695 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8696 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8697 Move rules ...
8698 * Makeconfig ($(common-objpfx)Versions.def)
8699 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8700 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8701 ... here.
8702 ($(common-objpfx)Versions.mk): New rule. Include it.
8703 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8704 Emit error if build-obsolete-nsl = yes.
8705 * manual/install.texi (Configuring and compiling): Describe
8706 --enable-obsolete-nsl as unavaiable after version 2.28.
8707 * INSTALL: Regenerate.
8708
8709 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8710
8711 * NEWS: Add note about new TLE support on powerpc64le.
8712 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8713 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8714 __ununsed1.
8715 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8716 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8717 * sysdeps/powerpc/powerpc32/sysdep.h,
8718 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8719 ABORT_TRANSACTION): Remove macros.
8720 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8721 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8722 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8724 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8725 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8726 usage.
8727 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8728
8729 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8730
8731 [BZ #10425]
8732 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8733 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8734 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8735 which is the same as in it_IT.
8736 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8737 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8738
8739 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8740
8741 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8742 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8743 using MATH_REDIRECT.
8744 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8745 header inclusion.
8746 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8747 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8748 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8749 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8750 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8751 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8752 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8753 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8756 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8757 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8758 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8759 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8760 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8761 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8762 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8763 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8764 (ceil): Redirect to __ceil.
8765 (floor): Redirect to __floor.
8766 (trunc): Redirect to __trunc.
8767 (__truncl): Call trunc instead of __trunc.
8768 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8769 Remove macro.
8770 [_ARCH_PWR5X] (__truncf): Likewise.
8771 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8772 trunc functions instead of __trunc variants.
8773 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8774 Likewise.
8775 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8776 Likewise.
8777 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8778 Likewise.
8779 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8780 Likewise.
8781
8782 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8783 [__i586__ || __pentium__].
8784 [__i486__]: Handle explicitly.
8785 (HAS_CPUID): Define to 1 if above macros are undefined.
8786 (HAS_I586): Likewise.
8787 (HAS_I686): Likewise.
8788
8789 2018-09-20 Florian Weimer <fweimer@redhat.com>
8790
8791 * misc/tst-gethostid.c: New file.
8792 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8793 (tst-gethostid): Link with -ldl.
8794
8795 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8796
8797 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8798 value from gethostbyname_r.
8799
8800 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8801
8802 * stdlib/tst-setcontext9.c (f1): Rename to...
8803 (f1a): ... this.
8804 (f1b): New function implementing lower half of f1 in alternate stack.
8805
8806 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8807
8808 Fix mktime localtime offset confusion
8809 [BZ #23603]
8810 * include/time.h (__mktime_internal): The localtime offset is now
8811 of type long int instead of time_t. This is the longstanding type
8812 in glibc, and it is more than enough to represent difference
8813 between localtime and gmtime even if it is 32 bits and time_t is
8814 64. Changing it now will let us avoid an unnecessary change when
8815 time_t is widened to 64 bits on 32-bit platforms.
8816 * time/mktime-internal.h (mktime_offset_t): Now long int.
8817
8818 Merge mktime, timegm from upstream Gnulib
8819 [BZ #23603][BZ #16346]
8820 This fixes some obscure problems with integer overflow.
8821 Although it looks scary, it is almost all a byte-for-byte copy
8822 from Gnulib, and the Gnulib code has been tested reasonably well.
8823 * include/intprops.h: New file, copied from Gnulib.
8824 * include/verify.h, time/mktime-internal.h:
8825 New tiny files, simplified from Gnulib.
8826 * time/mktime.c: Copy from Gnulib. This has the following changes:
8827 Do not include config.h if DEBUG_MKTIME is nonzero.
8828 Include stdbool.h, intprops.h, verify.h.
8829 Include string.h only if needed.
8830 Include stdlib.h on MS-Windows.
8831 Include mktime-internal.h.
8832 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8833 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8834 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8835 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8836 simplify later conditionals; default the others to zero. Use
8837 these conditionals to express only the code needed on the current
8838 platform. In uses of these conditionals, explicitly spell out how
8839 _LIBC affects things, so it’s easier to review from a glibc
8840 viewpoint.
8841 (WRAPV): Remove; no longer needed now that we have
8842 systematic overflow checking.
8843 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8844 compartmentalize tzset issues. Move system-dependent tzsettish
8845 code here from mktime.
8846 (verify): Remove; now done by verify.h. All uses changed.
8847 (long_int): Use a more-conservative definition, to avoid
8848 integer overflow.
8849 (SHR): Remove, replacing with ...
8850 (shr): New function, which means we needn’t worry about side
8851 effects in args, and conversion analysis is simpler.
8852 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8853 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8854 (time_t_avg, time_t_add_ok): Remove.
8855 (mktime_min, mktime_max): New constants.
8856 (leapyear, isdst_differ): Use bool for booleans.
8857 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8858 Use long_int, not time_t, for mktime differences.
8859 (long_int_avg): New function, replacing time_t_avg.
8860 INT_ADD_WRAPV replaces time_t_add_ok.
8861 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8862 All uses changed.
8863 (convert_time): New function.
8864 (ranged_convert): Use it.
8865 (__mktime_internal): Last arg now points to mktime_offset_t, not
8866 time_t. All uses changed. This is a no-op on glibc, where
8867 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8868 offset guess. Directly check for integer overflow instead of
8869 using a heuristic that works only 99.9...% of the time.
8870 Access *OFFSET only once, to avoid an unlikely race if the
8871 compiler delays a load and if this cascades into a signed integer
8872 overflow.
8873 (mktime): Move tzsettish code to my_tzset, and move
8874 localtime_offset to within mktime so that it doesn’t
8875 need a separate ifdef.
8876 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8877 instead of localtime.
8878 * time/timegm.c: Copy from Gnulib. This has the following changes:
8879 Include mktime-internal.h.
8880 [!_LIBC]: Include config.h and time.h. Do not include
8881 timegm.h or time_r.h. Make __mktime_internal a macro,
8882 and include mktime-internal.h to get its declaration.
8883 (timegm): Temporary is now mktime_offset_t, not time_t.
8884 This affects only Gnulib.
8885
8886 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8887
8888 [BZ #23637]
8889 * string/test-strstr.c (pr23637): New function.
8890 (test_main): Add tests with longer needles.
8891 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8892 * string/strstr.c (AVAILABLE): Likewise.
8893
8894 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8895
8896 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8897
8898 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8899
8900 * NEWS: Mention pow improvements.
8901 * math/Makefile (type-double-routines): Add e_pow_log_data.
8902 * sysdeps/generic/math_private.h (__exp1): Remove.
8903 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8904 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8905 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8906 contraction.
8907 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8908 (exp_inline): Remove.
8909 (__ieee754_exp): Only single double input is handled.
8910 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8911 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8912 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8913 (__pow_log_data): Define.
8914 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8915 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8916 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8917 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8918 contraction.
8919 (CFLAGS-e_pow-fma4.c): Likewise.
8920
8921 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8922
8923 Simplify tzfile fstat failure code
8924 [BZ #21716]
8925 * time/tzfile.c (__tzfile_read): Simplify slightly.
8926
8927 Fix tzfile low-memory assertion failure
8928 [BZ #21716]
8929 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8930 when registering time zone abbreviations.
8931
8932 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8933
8934 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8935 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8936 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8937 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8938 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8939 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8940 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8941 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8942 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8943
8944 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8945 __ceil.
8946 (__ceill): Call ceil instead of __ceil.
8947 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8948 __floor.
8949 (__floorl): Call floor instead of __floor.
8950
8951 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8952
8953 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8954 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8955 using MATH_REDIRECT.
8956 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8957 header inclusion.
8958 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8959 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8960 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8961 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8962 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8963 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8964 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8965 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8966 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8967 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8970 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8971 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8972 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8973 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8974 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8975 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8976 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8977 Remove macro.
8978 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8979 functions instead of __ceil variants.
8980 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8981 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8982 Likewise.
8983 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8984 Likewise.
8985 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8986 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8987 Likewise.
8988 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8989 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8990
8991 [BZ #21286]
8992 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8993 constant.
8994 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8995 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8996 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8997 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8998 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8999 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9000 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9001 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9002 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9003 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9004 (ILL_BADIADDR): Remove constant.
9005 (TRAP_BRANCH): Likewise.
9006 (TRAP_HWBKPT): Likewise.
9007
9008 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9009
9010 [BZ #23656]
9011 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9012 Remove [_MIPS_SIM = _ABIN32] conditional case.
9013 (struct elf_prpsinfo): Likewise.
9014
9015 [BZ #23649]
9016 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9017 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9018 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9019 Likewise.
9020 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9021 elf_prpsinfo): Likewise.
9022 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9023 elf_prpsinfo): Likewise.
9024 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9025 Likewise.
9026
9027 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9028 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9029 using MATH_REDIRECT.
9030 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9031 header inclusion.
9032 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9033 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9034 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9035 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9036 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9037 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9038 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9039 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9040 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9041 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9042 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9043 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9044 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9045 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9046 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9047 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9048 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9049 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9050 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9051 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9053 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9054 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9055 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9056 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9057 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9058 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9059 __rint variants.
9060 * math/e_scalbf.c (invalid_fn): Likewise.
9061 * math/e_scalbl.c (invalid_fn): Likewise.
9062 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9063 Likewise.
9064 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9065 Likewise.
9066 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9067 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9068 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9069 Likewise.
9070 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9071 Likewise.
9072 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9073 Likewise.
9074 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9075 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9076
9077 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9078 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9079 New macro.
9080 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9081 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9082 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9083 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9084 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9085 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9086 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9087 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9088 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9089 && !NO_MATH_REDIRECT] (floor): Likewise.
9090 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9091 header inclusion.
9092 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9093 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9094 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9095 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9096 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9097 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9098 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9099 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9100 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9101 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9104 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9105 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9106 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9107 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9108 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9109 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9110 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9111 Remove macro.
9112 [_ARCH_PWR5X] (__floorf): Likewise.
9113 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9114 inline function.
9115 [__SSE4_1__] (__floorf): Likewise.
9116 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9117 instead of __floor variants.
9118 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9119 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9120 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9121 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9122 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9123 * math/w_tgamma_compat.c (__tgamma): Likewise.
9124 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9125 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9126 * math/w_tgammal_compat.c (__tgammal): Likewise.
9127 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9128 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9129 Likewise.
9130 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9131 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9132 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9133 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9134 Likewise.
9135 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9136 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9137 Likewise.
9138 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9139 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9140 Likewise.
9141 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9142 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9143 Likewise.
9144 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9145 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9146 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9147 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9148 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9149 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9150
9151 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9152
9153 * elf/Makefile (modules-names-tests): New variable.
9154
9155 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9156
9157 * NEWS: Mention log2 improvements.
9158 * math/Makefile (type-double-routines): Add e_log2_data.
9159 * sysdeps/i386/fpu/e_log2_data.c: New file.
9160 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9161 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9162 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9163 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9164 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9165 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9166
9167 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9168
9169 * NEWS: Mention log improvement.
9170 * math/Makefile (type-double-routines): Add e_log_data.
9171 * sysdeps/i386/fpu/e_log_data.c: New file.
9172 * sysdeps/ia64/fpu/e_log_data.c: New file.
9173 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9174 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9175 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9176 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9177 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9178 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9179
9180 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9181 Xuepeng Guo <xuepeng.guo@intel.com>
9182
9183 [BZ #23606]
9184 * sysdeps/i386/start.S: Include <sysdep.h>
9185 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9186 enabled. Add cfi_undefined (eip).
9187
9188 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9189
9190 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9191 (MOVQ): Likewise.
9192 (EXTRACT_WORDS64): Likewise.
9193 (INSERT_WORDS64): Likewise.
9194 (GET_FLOAT_WORD): Likewise.
9195 (SET_FLOAT_WORD): Likewise.
9196
9197 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9198 argument.
9199 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9200 build, but not for second build if --full-gcc. Use
9201 --enable-languages=all for second build if --full-gcc.
9202 (get_parser): Add --full-gcc option.
9203 (main): Update call to Context.
9204
9205 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9206
9207 [BZ #10797]
9208 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9209 Single Quotation Mark).
9210 (thousands_sep): Likewise.
9211 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9212 * localedata/locales/it_IT (thousands_sep): Use ".".
9213 (grouping): Use "3;3".
9214
9215 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9216
9217 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9218 x86_64 and i686 configs using --enable-obsolete-rpc
9219 --enable-obsolete-nsl.
9220
9221 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9222
9223 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9224
9225 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9226
9227 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9228 Increment size of new_argv by one.
9229
9230 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9231
9232 [BZ #17426]
9233 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9234 * localedata/locales/ar_IN (d_fmt): Likewise.
9235 * localedata/locales/bhb_IN (d_fmt): Likewise.
9236 * localedata/locales/bho_IN (d_fmt): Likewise.
9237 * localedata/locales/bn_BD (d_fmt): Likewise.
9238 * localedata/locales/bn_IN (d_fmt): Likewise.
9239 * localedata/locales/doi_IN (d_fmt): Likewise.
9240 * localedata/locales/gu_IN (d_fmt): Likewise.
9241 * localedata/locales/hi_IN (d_fmt): Likewise.
9242 * localedata/locales/hne_IN (d_fmt): Likewise.
9243 * localedata/locales/kn_IN (d_fmt): Likewise.
9244 * localedata/locales/mag_IN (d_fmt): Likewise.
9245 * localedata/locales/mai_IN (d_fmt): Likewise.
9246 * localedata/locales/mjw_IN (d_fmt): Likewise.
9247 * localedata/locales/ml_IN (d_fmt): Likewise.
9248 * localedata/locales/mni_IN (d_fmt): Likewise.
9249 * localedata/locales/mr_IN (d_fmt): Likewise.
9250 * localedata/locales/pa_IN (d_fmt): Likewise.
9251 * localedata/locales/raj_IN (d_fmt): Likewise.
9252 * localedata/locales/sat_IN (d_fmt): Likewise.
9253 * localedata/locales/sd_IN (d_fmt): Likewise.
9254 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9255 * localedata/locales/ta_IN (d_fmt): Likewise.
9256 * localedata/locales/ta_LK (d_fmt): Likewise.
9257 * localedata/locales/tcy_IN (d_fmt): Likewise.
9258 * localedata/locales/ur_IN (d_fmt): Likewise.
9259
9260 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9261 * localedata/locales/ks_IN (d_fmt): Likewise.
9262 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9263
9264 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9265 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9266 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9267 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9268
9269 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9270
9271 * NEWS: Mention exp and exp2 improvements.
9272 * math/Makefile (libm-support): Remove t_exp.
9273 (type-double-routines): Add math_err and e_exp_data.
9274 * sysdeps/aarch64/libm-test-ulps: Update.
9275 * sysdeps/arm/libm-test-ulps: Update.
9276 * sysdeps/i386/fpu/e_exp_data.c: New file.
9277 * sysdeps/i386/fpu/math_err.c: New file.
9278 * sysdeps/i386/fpu/t_exp.c: Remove.
9279 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9280 * sysdeps/ia64/fpu/math_err.c: New file.
9281 * sysdeps/ia64/fpu/t_exp.c: Remove.
9282 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9283 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9284 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9285 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9286 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9287 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9288 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9289 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9290 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9291 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9292 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9293 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9294 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9295 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9296 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9297 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9298
9299 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9300
9301 * sysdeps/alpha/fpu/math_private.h: Remove.
9302
9303 * sysdeps/generic/math_private.h
9304 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9305 Move this inline function ....
9306 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9307 * include/math.h [!_ISOMAC]: To here....
9308
9309 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9310
9311 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9312 code ....
9313 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9314 * include/fenv.h [!_ISOMAC]: ... to here.
9315 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9316 (feraiseexcept): Likewise.
9317 * math/fromfp.h: Do not include <fenv_private.h>.
9318 * math/s_cexp_template.c: Likewise.
9319 * math/s_csin_template.c: Likewise.
9320 * math/s_csinh_template.c: Likewise.
9321 * math/s_ctan_template.c: Likewise.
9322 * math/s_ctanh_template.c: Likewise.
9323 * math/s_iseqsig_template.c: Likewise.
9324 * math/w_acos_compat.c: Likewise.
9325 * math/w_acosf_compat.c: Likewise.
9326 * math/w_acosl_compat.c: Likewise.
9327 * math/w_asin_compat.c: Likewise.
9328 * math/w_asinf_compat.c: Likewise.
9329 * math/w_asinl_compat.c: Likewise.
9330 * math/w_j0_compat.c: Likewise.
9331 * math/w_j0f_compat.c: Likewise.
9332 * math/w_j0l_compat.c: Likewise.
9333 * math/w_j1_compat.c: Likewise.
9334 * math/w_j1f_compat.c: Likewise.
9335 * math/w_j1l_compat.c: Likewise.
9336 * math/w_jn_compat.c: Likewise.
9337 * math/w_jnf_compat.c: Likewise.
9338 * math/w_log10_compat.c: Likewise.
9339 * math/w_log10f_compat.c: Likewise.
9340 * math/w_log10l_compat.c: Likewise.
9341 * math/w_log2_compat.c: Likewise.
9342 * math/w_log2f_compat.c: Likewise.
9343 * math/w_log2l_compat.c: Likewise.
9344 * math/w_log_compat.c: Likewise.
9345 * math/w_logf_compat.c: Likewise.
9346 * math/w_logl_compat.c: Likewise.
9347 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9348 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9349 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9350 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9351 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9352 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9353 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9354 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9355 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9356 * sysdeps/ieee754/k_standardl.c: Likewise.
9357 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9358 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9359 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9360 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9361 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9362 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9363 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9364 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9365 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9366 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9367 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9368 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9369 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9370 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9371 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9372 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9373 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9374 * math/w_ilogb_template.c: Include <fenv.h> instead of
9375 <fenv_private.h>.
9376 * math/w_llogb_template.c: Likewise.
9377 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9378 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9379
9380 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9381
9382 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9383 * math/fromfp.h: Include <fenv_private.h>.
9384 * math/math-narrow.h: Likewise.
9385 * math/s_cexp_template.c: Likewise.
9386 * math/s_csin_template.c: Likewise.
9387 * math/s_csinh_template.c: Likewise.
9388 * math/s_ctan_template.c: Likewise.
9389 * math/s_ctanh_template.c: Likewise.
9390 * math/s_iseqsig_template.c: Likewise.
9391 * math/w_acos_compat.c: Likewise.
9392 * math/w_acosf_compat.c: Likewise.
9393 * math/w_acosl_compat.c: Likewise.
9394 * math/w_asin_compat.c: Likewise.
9395 * math/w_asinf_compat.c: Likewise.
9396 * math/w_asinl_compat.c: Likewise.
9397 * math/w_ilogb_template.c: Likewise.
9398 * math/w_j0_compat.c: Likewise.
9399 * math/w_j0f_compat.c: Likewise.
9400 * math/w_j0l_compat.c: Likewise.
9401 * math/w_j1_compat.c: Likewise.
9402 * math/w_j1f_compat.c: Likewise.
9403 * math/w_j1l_compat.c: Likewise.
9404 * math/w_jn_compat.c: Likewise.
9405 * math/w_jnf_compat.c: Likewise.
9406 * math/w_llogb_template.c: Likewise.
9407 * math/w_log10_compat.c: Likewise.
9408 * math/w_log10f_compat.c: Likewise.
9409 * math/w_log10l_compat.c: Likewise.
9410 * math/w_log2_compat.c: Likewise.
9411 * math/w_log2f_compat.c: Likewise.
9412 * math/w_log2l_compat.c: Likewise.
9413 * math/w_log_compat.c: Likewise.
9414 * math/w_logf_compat.c: Likewise.
9415 * math/w_logl_compat.c: Likewise.
9416 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9417 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9418 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9419 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9420 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9421 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9422 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9423 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9424 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9425 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9426 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9427 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9428 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9429 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9430 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9431 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9432 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9433 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9434 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9435 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9436 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9437 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9438 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9439 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9440 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9441 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9442 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9443 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9444 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9445 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9446 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9447 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9448 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9449 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9450 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9451 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9452 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9453 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9454 * sysdeps/ieee754/k_standardl.c: Likewise.
9455 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9456 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9457 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9458 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9459 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9460 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9461 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9462 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9463 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9464 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9465 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9466 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9467 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9468 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9469 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9470 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9471 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9472 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9473 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9474 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9475 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9476 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9477 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9478 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9479 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9480 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9481 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9482 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9483 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9484 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9485 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9486 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9487 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9488 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9489 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9490 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9491 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9492 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9493 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9494 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9495 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9496 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9497 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9498 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9499 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9500 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9501 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9502 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9503 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9504 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9505 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9506 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9507 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9508 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9509 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9510 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9511 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9512 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9513 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9514 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9515 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9516 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9517 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9518 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9519 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9520 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9521 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9522 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9523 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9524 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9525 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9526
9527 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9528
9529 [BZ #20271]
9530 * include/stdio.h (__libc_fatal): Mention newline in comment.
9531 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9532 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9533 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9534 * nss/nsswitch.c (__nss_next2): Likewise.
9535 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9536 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9537 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9538 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9539 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9540 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9541 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9542 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9543 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9544 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9545 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9546 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9547 (__netlink_assert_response): Likewise.
9548
9549 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9550
9551 * conform/glibcconform.py: New file.
9552 * conform/list-header-symbols.py: Likewise.
9553 * conform/list-header-symbols.pl: Remove.
9554 * conform/Makefile (tests-special): Only add linknamespace tests
9555 if [PYTHON].
9556 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9557
9558 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9559
9560 [BZ #23597]
9561 * support/Makefile (libsupport-routines): Add
9562 support_copy_file_range and xcopy_file_range.
9563 * support/support.h: Include <sys/types.h>.
9564 (support_copy_file_range): New prototype.
9565 * support/support_copy_file_range.c: New file. Copied and
9566 modified from io/copy_file_range-compat.c.
9567 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9568 instead of copy_file_range.
9569 * support/xcopy_file_range.c: New file.
9570 * support/xunistd.h (xcopy_file_range): New prototype.
9571
9572 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9573
9574 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9575 xpthread_create and xpthread_join.
9576
9577 2018-08-30 Florian Weimer <fweimer@redhat.com>
9578
9579 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9580
9581 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9582
9583 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9584 if malloc fails.
9585
9586 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9587
9588 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9589 and minus_oflow as non-finite.
9590
9591 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9592
9593 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9594 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9595 moved to fenv_private.h except for ...
9596 (TOINT_INTRINSICS): Kept in math_private.h.
9597 (roundtoint): Likewise.
9598 (converttoint): Likewise.
9599 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9600 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9601 * sysdeps/arm/math_private.h: Remove.
9602 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9603 ....
9604 * sysdeps/generic/math_private.h: ... this file. Include
9605 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9606 Include <fenv_private.h>. Remove functions and macros moved to
9607 fenv_private.h.
9608 * sysdeps/i386/fpu/math_private.h: Remove.
9609 * sysdeps/mips/math_private.h: Move to ....
9610 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9611 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9612 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9613 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9614 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9615 * sysdeps/powerpc/fpu/math_private.h: Do not include
9616 <fenv_private.h>.
9617 * sysdeps/riscv/rvf/math_private.h: Move to ....
9618 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9619 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9620 <fenv_private.h>.
9621 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9622 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9623 * sysdeps/sparc/fpu/math_private.h: Remove.
9624 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9625 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9626 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9627 <fenv_private.h>.
9628 * sysdeps/x86_64/fpu/math_private.h: Do not include
9629 <sysdeps/i386/fpu/fenv_private.h>.
9630
9631 2018-08-28 Florian Weimer <fweimer@redhat.com>
9632
9633 [BZ #23578]
9634 * posix/tst-regcomp-truncated.c: New file.
9635 * posix/Makefile (tests): Add it.
9636 (tst-regcomp-truncated.out): Depend on generated locales.
9637
9638 2018-08-28 Florian Weimer <fweimer@redhat.com>
9639
9640 * support/test-container.c (main): Treat unshare failure with
9641 EPERM as an unsupported test.
9642
9643 2018-08-28 Florian Weimer <fweimer@redhat.com>
9644
9645 [BZ #23520]
9646 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9647 * nscd/netgroupcache.c
9648 (addgetnetgrentX): Add tofreep parameter. Do not free
9649 heap-allocated buffer.
9650 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9651 (addgetnetgrentX_ignore): New function.
9652 (addgetnetgrent): Call it.
9653 (readdgetnetgrent): Likewise.
9654
9655 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9656
9657 * string/memmem.c: Use memcmp for first match.
9658
9659 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9660
9661 [BZ #17426]
9662 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9663
9664 2018-08-27 DJ Delorie <dj@redhat.com>
9665
9666 * support/Makefile (others): Don't list programs explicitly as a
9667 dependency of "others".
9668
9669 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9670
9671 * sysdeps/generic/math-tests-trap-force.h: New file.
9672 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9673 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9674 * sysdeps/powerpc/math-tests.h: Remove file.
9675 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9676
9677 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9678 Torvald Riegel <triegel@redhat.com>
9679
9680 [BZ #23538]
9681 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9682 Update r to include the set wake-request flag if waiters are
9683 remaining after spinning.
9684
9685 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9686
9687 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9688
9689 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9690
9691 [BZ #23578]
9692 regex: fix uninitialized memory access
9693 I introduced this bug into gnulib in commit
9694 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9695 eventually it was merged into glibc. The bug was found by
9696 project-repo <bugs@feusi.co> and reported here:
9697 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9698 Diagnosis and draft fix reported by Assaf Gordon here:
9699 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9700 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9701 * posix/regex_internal.c (build_wcs_upper_buffer):
9702 Fix bug when mbrtowc returns 0.
9703
9704 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9705
9706 * po/be.po: Update translation.
9707
9708 2018-08-24 DJ Delorie <dj@delorie.com>
9709
9710 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9711 $(libunwind).
9712
9713 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9714
9715 [BZ #23400]
9716 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9717 create temporary files in source tree.
9718
9719 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9720
9721 * sysdeps/generic/math-tests-trap.h: New file.
9722 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9723 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9724 * sysdeps/aarch64/math-tests.h: Remove file.
9725 * sysdeps/arm/math-tests.h: Likewise.
9726 * sysdeps/riscv/math-tests.h: Likewise.
9727 * sysdeps/aarch64/math-tests-trap.h: New file.
9728 * sysdeps/arm/math-tests-trap.h: Likewise.
9729 * sysdeps/riscv/math-tests-trap.h: Likewise.
9730
9731 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9732
9733 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9734 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9735 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9736 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9737 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9738 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9739 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9740 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9741 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9742 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9743 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9744 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9745 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9746 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9747 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9748 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9749 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9750 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9751
9752 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9753
9754 * sysdeps/generic/math-tests-exceptions.h: New file.
9755 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9756 (EXCEPTION_TESTS_float): Do not define here.
9757 (EXCEPTION_TESTS_double): Likewise.
9758 (EXCEPTION_TESTS_long_double): Likewise.
9759 (EXCEPTION_TESTS_float128): Likewise.
9760 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9761 Likewise.
9762 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9763 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9764 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9765 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9766 * sysdeps/mips/math-tests.h: Likewise.
9767 * sysdeps/nios2/math-tests.h: Likewise.
9768 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9769 (EXCEPTION_TESTS_float): Do not define here.
9770 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9771 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9772 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9773
9774 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9775
9776 * NEWS: Move optimized sinf entry to 2.29.
9777
9778 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9779
9780 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9781
9782 2018-08-22 DJ Delorie <dj@redhat.com>
9783
9784 * Makefile (testroot.pristine): New rules to initialize the
9785 test-in-container "testroot".
9786 * Makerules (all-testsuite): Add tests-container.
9787 * Rules (tests-expected): Add tests-container.
9788 (binaries-all-tests): Likewise.
9789 (tests-container): New, run these tests in the testroot container.
9790 * support/Makefile (others): Add *-container, support_paths.c,
9791 xmkdirp, and links-dso-program.
9792 * support/links-dso-program-c.c: New.
9793 * support/links-dso-program.cc: New.
9794 * support/test-container.c: New.
9795 * support/shell-container.c: New.
9796 * support/echo-container.c: New.
9797 * support/true-container.c: New.
9798 * support/xmkdirp.c: New.
9799 * support/xsymlink.c: New.
9800 * support/support_paths.c: New.
9801 * support/support.h: Add support paths prototypes.
9802 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9803
9804 * nss/tst-nss-test3.c: Convert to test-in-container.
9805 * nss/tst-nss-test3.root/: New.
9806
9807 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9808
9809 regex: port Gnulib code to z/OS POSIX environment
9810 Problem reported by Arnold Robbins in:
9811 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9812 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9813 Undef.
9814
9815 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9816
9817 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9818 (ROUNDING_TESTS_double): Remove.
9819 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9820 (ROUNDING_TESTS_double): Remove.
9821 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9822 (ROUNDING_TESTS_double): Remove.
9823 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9824 (ROUNDING_TESTS_float): Remove.
9825 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9826 (ROUNDING_TESTS_float): Remove.
9827 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9828 (ROUNDING_TESTS_float): Remove.
9829 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9830 !TEST_MATHVEC here.
9831 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9832 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9833
9834 * sysdeps/generic/math-tests-rounding.h: New file.
9835 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9836 (ROUNDING_TESTS_float): Do not define here.
9837 (ROUNDING_TESTS_double): Likewise.
9838 (ROUNDING_TESTS_long_double): Likewise.
9839 (ROUNDING_TESTS_float128): Likewise.
9840 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9841 (ROUNDING_TESTS_double): Undefine before defining.
9842 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9843 (ROUNDING_TESTS_double): Undefine before defining.
9844 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9845 (ROUNDING_TESTS_double): Undefine before defining.
9846 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9847 (ROUNDING_TESTS_float): Undefine before defining.
9848 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9849 (ROUNDING_TESTS_float): Undefine before defining.
9850 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9851 (ROUNDING_TESTS_float): Undefine before defining.
9852 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9853 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9854 not define here.
9855 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9856 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9857 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9858 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9859 (ROUNDING_TESTS_float): Do not define here.
9860 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9861 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9862 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9863 (ROUNDING_TESTS_float): Likewise.
9864 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9865 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9866 * sysdeps/mips/math-tests.h [__mips_soft_float]
9867 (ROUNDING_TESTS_float): Likewise.
9868 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9869 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9870 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9871 (ROUNDING_TESTS_double): Likewise.
9872 (ROUNDING_TESTS_long_double): Likewise.
9873
9874 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9875
9876 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9877 (PF_XDP): New macro.
9878 (AF_XDP): New macro.
9879 (SOL_XDP): New macro.
9880
9881 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9882
9883 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9884 (TCP_INQ): Likewise.
9885 (TCP_CM_INQ): Likewise.
9886 (TCP_REPAIR_ON): Likewise.
9887 (TCP_REPAIR_OFF): Likewise.
9888 (TCP_REPAIR_OFF_NO_WP): Likewise.
9889 (struct tcp_zerocopy_receive): New type.
9890
9891 2018-08-21 Florian Weimer <fweimer@redhat.com>
9892
9893 * support/support.h (support_descriptor_supports_holes): Declare.
9894 * support/Makefile (libsupport-routines): Add
9895 support_descriptor_supports_holes.
9896 * support/support_descriptor_supports_holes.c: New file.
9897 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9898 and stop testing if holes are not supported.
9899 * io/test-lfs.c (do_prepare): Likewise.
9900 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9901 Likewise.
9902 * timezone/tst-tzset.c (create_tz_file): Likewise.
9903 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9904 variable.
9905 (do_prepare): Set it.
9906 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9907
9908 2018-08-21 Florian Weimer <fweimer@redhat.com>
9909
9910 [BZ #17248]
9911 * Makeconfig (+cflags): Do not sort (and deduplicate).
9912
9913 2018-08-21 Florian Weimer <fweimer@redhat.com>
9914
9915 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9916 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9917
9918 2018-08-20 Florian Weimer <fweimer@redhat.com>
9919
9920 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9921 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9922
9923 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9924
9925 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9926 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9927 and ssi_arch members.
9928
9929 * elf/elf.c (NT_VMCOREDD): New macro.
9930 (AT_MINSIGSTKSZ): Likewise.
9931
9932 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9933
9934 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9935 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9936 s_cosf-ppc64 and s_cosf-power8.
9937 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9938 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9939 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9940 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9942 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9945 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9947 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9948 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9949
9950 2018-08-17 Florian Weimer <fweimer@redhat.com>
9951
9952 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9953
9954 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9955
9956 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9957
9958 2018-08-16 Florian Weimer <fweimer@redhat.com>
9959
9960 * configure.ac: Add --with-nonshared-cflags option.
9961 * config.make.in (extra-nonshared-cflags): Set variable.
9962 * Makeconfig (CFLAGS-.oS): Use it.
9963 * manual/install.texi (Configuring and compiling): Document
9964 --with-nonshared-cflags.
9965 * configure: Regenerate.
9966 * INSTALL: Likewise.
9967
9968 2018-08-16 Florian Weimer <fweimer@redhat.com>
9969
9970 * Makeconfig (ASFLAGS): Always append required assembler flags.
9971
9972 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9973
9974 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9975 (malloc_consolidate): Likewise.
9976
9977 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9978
9979 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9980
9981 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9982
9983 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9984 every strlen call.
9985
9986 * benchtests/bench-strlen.c: Print performance numbers in json.
9987
9988 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9989
9990 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9991 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9992 only for little endian.
9993 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9994 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9995 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9996 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9997 Add check for little endian.
9998 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9999 (__strcmp_power9): Add check for little endian.
10000 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10001 Add check for little endian.
10002 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10003 (__strncmp_power9): Add check for little endian.
10004 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10005 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10006 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10007 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10008 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10009
10010 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10011
10012 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10013 [!STRLEN](STRLEN): Set to __strlen.
10014 * sysdeps/aarch64/multiarch/strlen.c: New file.
10015 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10016 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10017 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10018 (__libc_ifunc_impl_list): Add strlen.
10019 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10020 strlen_generic and strlen_asimd.
10021
10022 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10023
10024 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10025 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10026 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10027
10028 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10029
10030 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10031
10032 2018-08-14 Florian Weimer <fweimer@redhat.com>
10033
10034 [BZ #23519]
10035 * include/stdio.h (__vfxprintf): Declare.
10036 * stdio-common/fxprintf.c (__vfxprintf): New function.
10037 (__fxprintf): Call it.
10038 * misc/err.c (convert_and_print): Remove function.
10039 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10040 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10041 * misc/Makefile (tests): Add tst-warn-wide.
10042 * misc/tst-warn-wide.c: New file.
10043
10044 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10045 Szabolcs Nagy <szabolcs.nagy@arm.com>
10046
10047 * NEWS: Mention sinf, cosf, sincosf.
10048 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10049 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10050 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10051 constants rather than including generic sincosf.h.
10052 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10053 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10054 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10055 (reduced_cos): Remove.
10056 (sinf_poly): New function.
10057 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10058
10059 2018-08-14 Florian Weimer <fweimer@redhat.com>
10060
10061 [BZ #23521]
10062 [BZ #23522]
10063 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10064 processing, bail out if no room, and close the stream before
10065 returning ERANGE.
10066 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10067 (tst-nss-files-alias-leak): Link with libdl.
10068 (tst-nss-files-alias-leak.out): Depend on nss_files.
10069
10070 * nss/tst-nss-files-alias-leak.c: New file.
10071
10072 2018-08-14 Florian Weimer <fweimer@redhat.com>
10073
10074 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10075 server_user, stat_user.
10076
10077 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10078
10079 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10080 version to 4.18.
10081 (io_pgetevents): New syscall.
10082 (rseq): Likewise.
10083
10084 * manual/install.texi (Configuring and compiling): Do not list
10085 tools used for testing pretty printers here.
10086 (Tools for Compilation): List Python, PExpect and GDB here.
10087 Update descriptions of uses of Perl and Python.
10088 * INSTALL: Regenerate.
10089
10090 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10091 version to 4.18.
10092
10093 2018-08-13 Florian Weimer <fweimer@redhat.com>
10094
10095 * misc/error.c (error): Add missing va_end call.
10096 (error_at_line): Likewise.
10097
10098 2018-08-13 Florian Weimer <fweimer@redhat.com>
10099
10100 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10101
10102 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10103
10104 * benchtests/scripts/benchout.schema.json (properties): Add
10105 new properties.
10106
10107 * benchtests/bench-skeleton.c (main): Add duration and
10108 iterations attributes.
10109
10110 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10111
10112 regex: Gnulib unibyte RRI uses bytes not chars
10113 Adjust the non-glibc code to agree with what Gawk needs for
10114 rational range interpretation (RRI) for regular expression ranges.
10115 In unibyte locales, Gawk wants ranges to use the underlying byte
10116 rather than the character code point. This change does not affect
10117 glibc proper.
10118 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10119 In unibyte locales, use the byte value rather than
10120 running it through btowc.
10121
10122 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10123
10124 * sysdeps/generic/math-tests-snan.h: New file.
10125 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10126 (SNAN_TESTS_float): Do not define here.
10127 (SNAN_TESTS_double): Likewise.
10128 (SNAN_TESTS_long_double): Likewise.
10129 (SNAN_TESTS_float128): Likewise.
10130 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10131 * sysdeps/i386/fpu/math-tests.h: Remove file.
10132 * sysdeps/ia64/math-tests-snan.h: New file.
10133 * sysdeps/ia64/math-tests.h: Remove file.
10134 * sysdeps/x86/math-tests.h: Likewise.
10135 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10136
10137 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10138 Szabolcs Nagy <szabolcs.nagy@arm.com>
10139
10140 * math/Makefile: Add s_sincosf_data.c.
10141 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10142 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10143 (sincosf_poly): Likewise.
10144 (reduce_small): Likewise.
10145 (reduce_large): Likewise.
10146 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10147 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10148 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10149 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10150
10151 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10152 Szabolcs Nagy <szabolcs.nagy@arm.com>
10153
10154 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10155 (converttoint): Use lround.
10156 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10157 document the semantics when TOINT_INTRINSICS is set.
10158 (converttoint): Likewise.
10159 (TOINT_RINT): Remove.
10160 (TOINT_SHIFT): Remove.
10161 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10162 path.
10163
10164 2018-08-10 Florian Weimer <fweimer@redhat.com>
10165
10166 [BZ #23497]
10167 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10168 function.
10169 (__old_getdents64): Use getdents64. Convert entries without
10170 moving them.
10171 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10172 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10173 tst-readdir64-compat.
10174
10175 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10176
10177 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10178 Fix unwind.
10179
10180 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10181
10182 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10183 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10184 code to s390x-mcount.h and #include it.
10185 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10186 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10187 (__fentry__): Add.
10188
10189 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10190
10191 * stdlib/Versions: Remove __fentry__.
10192 * sysdeps/i386/Versions: Add __fentry__.
10193 * sysdeps/x86_64/Versions: Add __fentry__.
10194
10195 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10196
10197 * sysdeps/s390/Makefile: Register the new tests.
10198 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10199 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10200 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10201 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10202 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10203 * sysdeps/s390/tst-dl-runtime.c: New file.
10204
10205 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10206
10207 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10208 Do not clobber R0.
10209
10210 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10211
10212 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10213 Do not clobber R0.
10214
10215 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10216
10217 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10218 Do not clobber R0.
10219
10220 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10221
10222 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10223 Do not clobber R0.
10224
10225 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10226
10227 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10228 Use symbolic offsets for stack variables.
10229
10230 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10231
10232 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10233 Use symbolic offsets for stack variables.
10234
10235 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10236
10237 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10238 Use symbolic offsets for stack variables.
10239
10240 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10241
10242 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10243 Use symbolic offsets for stack variables.
10244
10245 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10246
10247 * math/gen-libm-test.py: New file.
10248 * math/gen-libm-test.pl: Remove.
10249 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10250 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10251 gen-libm-test.pl.
10252 ($(libm-test-c-noauto-obj)): Likewise.
10253 ($(libm-test-c-auto-obj)): Likewise.
10254 ($(libm-test-c-narrow-obj)): Likewise.
10255 (regen-ulps): Likewise.
10256 * math/README.libm-test: Update references to gen-libm-test.pl.
10257 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10258 referencing gen-libm-test.pl.
10259 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10260 * math/libm-test-support.c: Likewise.
10261 * math/libm-test-support.h: Likewise.
10262 * sysdeps/generic/libm-test-ulps: Likewise.
10263
10264 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10265
10266 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10267 Fix value.
10268
10269 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10270
10271 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10272 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10273
10274 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10275
10276 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10277 symbols.
10278 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10279 __pthread_setspecific): Add hidden proto.
10280 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10281 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10282
10283 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10284
10285 * benchtests/bench-string.h (buf1_size, buf2_size): New
10286 variables.
10287 (init_sizes): New function.
10288 (test_init): Use it.
10289 (alloc_buf, exit_error): New functions.
10290 (alloc_bufs): Use ALLOC_BUF.
10291 (realloc_bufs): Remove.
10292 * benchtests/bench-memcmp.c (do_test): Adjust.
10293 * benchtests/bench-memset-large.c (do_test): Likewise.
10294 * benchtests/bench-memset-walk.c (do_test): Likewise.
10295 * benchtests/bench-memset.c (do_test): Likewise.
10296 * benchtests/bench-strncmp.c (do_test): Likewise.
10297
10298 2018-08-06 Andreas Schwab <schwab@suse.de>
10299
10300 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10301 of CONST_THREAD_AREA.
10302
10303 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10304
10305 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10306 (STATE_SAVE_MASK): Likewise.
10307 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10308 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10309 (STATE_SAVE_MASK): Likewise.
10310 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10311 instead of <cpu-features.h>.
10312
10313 2018-08-03 DJ Delorie <dj@redhat.com>
10314
10315 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10316 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10317
10318 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10319
10320 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10321
10322 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10323 after TEST_* calls.
10324 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10325 * math/libm-test-logb.inc (logb_test_data): Likewise.
10326
10327 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10328
10329 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10330 * string/strstr.c (AVAILABLE): Likewise.
10331
10332 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10333
10334 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10335 <init-arch.h>.
10336 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10337 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10338 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10339
10340 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10341
10342 * po/be.po: Update translation.
10343
10344 * po/be.po: Update translation.
10345
10346 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10347
10348 * sysdeps/x86/cpu-features-offsets.sym
10349 (rtld_global_ro_offsetof): Removed.
10350 (CPU_FEATURES_SIZE): Likewise.
10351 (CPUID_OFFSET): Likewise.
10352 (CPUID_SIZE): Likewise.
10353 (CPUID_EAX_OFFSET): Likewise.
10354 (CPUID_EBX_OFFSET): Likewise.
10355 (CPUID_ECX_OFFSET): Likewise.
10356 (CPUID_EDX_OFFSET): Likewise.
10357 (FAMILY_OFFSET): Likewise.
10358 (MODEL_OFFSET): Likewise.
10359 (FEATURE_OFFSET): Likewise.
10360 (FEATURE_SIZ): Likewise.
10361 (COMMON_CPUID_INDEX_1): Likewise.
10362 (COMMON_CPUID_INDEX_7): Likewise.
10363 (FEATURE_INDEX_1): Likewise.
10364 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10365
10366 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10367
10368 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10369 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10370 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10371 (install-locales): Depend on install-locale-archive.
10372 (install-locale-archive): Define.
10373 (install-locale-files): Define.
10374 (build-one-locale): Define macro.
10375 * manual/install.texi (Running make install): Document.
10376 * manual/INSTALL: Regenerate.
10377
10378 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10379
10380 * benchtests/scripts/compare_strings.py: Import traceback.
10381 (parse_file): Pretty-print error.
10382
10383 * NEWS: Mention the change.
10384 * elf/dl-tunables.list: Rename tune namespace to cpu.
10385 * sysdeps/powerpc/dl-tunables.list: Likewise.
10386 * sysdeps/x86/dl-tunables.list: Likewise.
10387 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10388 cpu.name.
10389 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10390 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10391 * manual/README.tunables: Likewise.
10392 * manual/tunables.texi: Likewise.
10393 * sysdeps/powerpc/cpu-features.c: Likewise.
10394 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10395 (init_cpu_features): Likewise.
10396 * sysdeps/x86/cpu-features.c: Likewise.
10397 * sysdeps/x86/cpu-features.h: Likewise.
10398 * sysdeps/x86/cpu-tunables.c: Likewise.
10399 * sysdeps/x86_64/Makefile: Likewise.
10400 * sysdeps/x86/dl-cet.c: Likewise.
10401
10402 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10403
10404 [BZ #23479]
10405 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10406 [__mips_hard_float].
10407 (FE_UNDERFLOW): Likewise.
10408 (FE_OVERFLOW): Likewise.
10409 (FE_DIVBYZERO): Likewise.
10410 (FE_INVALID): Likewise.
10411 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10412 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10413 (FE_UPWARD): Likewise.
10414 (FE_DOWNWARD): Likewise.
10415 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10416 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10417 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10418 [__mips_hard_float].
10419 (FP_ROUNDMODE): Likewise.
10420 (FP_RND_NEAREST): Likewise.
10421 (FP_RND_ZERO): Likewise.
10422 (FP_RND_PINF): Likewise.
10423 (FP_RND_MINF): Likewise.
10424 (FP_EX_INVALID): Likewise.
10425 (FP_EX_OVERFLOW): Likewise.
10426 (FP_EX_UNDERFLOW): Likewise.
10427 (FP_EX_DIVZERO): Likewise.
10428 (FP_EX_INEXACT): Likewise.
10429 (FP_INIT_ROUNDMODE): Likewise.
10430 * sysdeps/mips/nofpu/fesetenv.c: New file.
10431 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10432
10433 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10434
10435 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10436 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10437 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10438 conditional on [FE_UPWARD].
10439
10440 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10441
10442 regex: fix memory leak in Gnulib
10443 Problem and fix reported by Assaf Gordon in:
10444 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10445 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10446 range_ends members too, as they are defined in 'struct
10447 re_charset_t' even if not _LIBC. This affects only Gnulib.
10448
10449 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10450
10451 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10452 ...
10453 (get_common_indices): This.
10454 (init_cpu_features): Updated.
10455
10456 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10457
10458 * sysdeps/generic/math-tests-snan-payload.h: New file.
10459 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10460 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10461 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10462 * sysdeps/generic/math-tests.h: Include
10463 <math-tests-snan-payload.h>.
10464 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10465 * sysdeps/hppa/math-tests.h: Remove file.
10466 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10467 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10468 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10469 Likewise.
10470
10471 * sysdeps/generic/math-tests-snan-cast.h: New file.
10472 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10473 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10474 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10475 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10476
10477 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10478
10479 * version.h (RELEASE): Set to "development".
10480 (VERSION): Set to "2.28.9000".
10481 * NEWS (2.29): New section.
10482
10483 * version.h (RELEASE): Set to "stable".
10484 (VERSION): Set to "2.28".
10485 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10486 * NEWS: Add the list of bugs fixed in 2.28.
10487
10488 * po/ca.po: Update to latest version.
10489 * po/cs.po: Likewise
10490 * po/da.po: Likewise
10491 * po/el.po: Likewise
10492 * po/eo.po: Likewise
10493 * po/es.po: Likewise
10494 * po/fi.po: Likewise
10495 * po/fr.po: Likewise
10496 * po/gl.po: Likewise
10497 * po/hu.po: Likewise
10498 * po/ia.po: Likewise
10499 * po/id.po: Likewise
10500 * po/it.po: Likewise
10501 * po/ja.po: Likewise
10502 * po/ko.po: Likewise
10503 * po/lt.po: Likewise
10504 * po/nb.po: Likewise
10505 * po/nl.po: Likewise
10506 * po/pt_BR.po: Likewise
10507 * po/ru.po: Likewise
10508 * po/rw.po: Likewise
10509 * po/sk.po: Likewise
10510 * po/sl.po: Likewise
10511 * po/tr.po: Likewise
10512 * po/zh_CN.po: Likewise
10513 * po/zh_TW.po: Likewise
10514
10515 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10516
10517 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10518 initialization...
10519 (init): ... before initializing libpthread.
10520
10521 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10522 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10523 (__mach_setup_tls): ... new function.
10524 (mach_setup_tls): New alias.
10525 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10526 __mach_setup_thread.
10527 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10528 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10529 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10530 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10531
10532 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10533
10534 * manual/install.texi: Update versions.
10535 * INSTALL: Regenerate.
10536
10537 * manual/contrib.texi (Contributors): Update contributions.
10538
10539 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10540
10541 * po/be.po: Update translations.
10542
10543 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10544
10545 * sysdeps/sh/libm-test-ulps: Update.
10546
10547 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10548
10549 * po/bg.po: Update translations.
10550 * po/de.po: Likewise.
10551 * po/hr.po: Likewise.
10552 * po/pt_BR.po: Likewise.
10553 * po/sv.po: Likewise.
10554 * po/vi.po: Likewise.
10555
10556 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10557
10558 [BZ #23467]
10559 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10560 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10561 (CFLAGS-tst-cet-property-1.o): New.
10562 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10563 ($(objpfx)tst-cet-property-2): Likewise.
10564 ($(objpfx)tst-cet-property-2.out): Likewise.
10565 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10566 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10567 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10568 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10569 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10570
10571 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10572
10573 [BZ #23458]
10574 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10575
10576 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10577
10578 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10579 __sbrk): Do not set attribute_hidden.
10580 * sysdeps/mach/hurd/not-errno.h: New file.
10581 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10582 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10583
10584 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10585
10586 * po/uk.po: Update translations.
10587 * po/cs.po: Likewise.
10588 * po/pl.po: Likewise.
10589
10590 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10591
10592 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10593 parse beyond the note end.
10594
10595 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10596
10597 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10598 kernel does not support OFD locks.
10599 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10600
10601 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10602
10603 * sysdeps/mach/hurd/Versions (libc): Make __access and
10604 __access_noerrno external so they can override the ld symbols.
10605 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10606 __writev, __open64, __access_noerrno extern so they can be overrided.
10607 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10608 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10609
10610 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10611
10612 * po/libc.pot: Regenerate.
10613
10614 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10615
10616 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10617
10618 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10619
10620 [BZ #23459]
10621 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10622 function.
10623 (init_cpu_features): Call get_extended_indices for both Intel
10624 and AMD CPUs.
10625 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10626 Remove "for AMD" comment.
10627
10628 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10629
10630 [BZ # 23456]
10631 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10632 COMMON_CPUID_INDEX_80000001.
10633
10634 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10635
10636 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10637 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10638
10639 2018-07-26 Florian Weimer <fweimer@redhat.com>
10640
10641 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10642 aliases for symbols not in the implementation namespace.
10643
10644 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10645
10646 [BZ #23393]
10647 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10648 lowercase in LATIN script.
10649 * localedata/Makefile (test-input): Add en_US.UTF-8.
10650 * localedata/en_US.UTF-8.in: New file.
10651 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10652 and restore old tests.
10653 * posix/tst-regexloc.c (do_test): Add back range expression test.
10654
10655 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10656
10657 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10658
10659 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10660
10661 * nptl/threads.h: Move to ...
10662 * sysdeps/nptl/threads.h: ... here.
10663 * sysdeps/hurd/stdc-predef.h: New file.
10664
10665 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10666
10667 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10668 tst-cet-setcontext-1 if CET is enabled.
10669 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10670 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10671
10672 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10673
10674 * include/threads.h: Move to ...
10675 * sysdeps/nptl/threads.h: ... here.
10676 * sysdeps/htl/threads.h: New file.
10677 * conform/Makefile (linknamespace-libs-ISO11): Use
10678 static-thread-library instead of linking libpthread.
10679 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10680
10681 2018-07-25 Florian Weimer <fweimer@redhat.com>
10682
10683 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10684 nanoseconds into seconds.
10685 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10686 (do_test): Likewise.
10687 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10688 (do_test): Likewise. Avoid nanosecond overflow and spurious
10689 timeouts due to system load.
10690 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10691 (child_wait): Increment it.
10692 (do_test): Wait as long as necessary until all expected threads
10693 have arrived.
10694
10695 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10696 H.J. Lu <hongjiu.lu@intel.com>
10697
10698 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10699 __ssp.
10700 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10701 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10702 (__push___start_context): New.
10703 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10704 <asm/prctl.h>.
10705 (__getcontext): Record the current shadow stack base. Save the
10706 caller's shadow stack pointer and base.
10707 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10708 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10709 (__push___start_context): New prototype.
10710 (__makecontext): Call __push___start_context to allocate a new
10711 shadow stack, push __start_context onto the new stack as well
10712 as the new shadow stack.
10713 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10714 <asm/prctl.h>.
10715 (__setcontext): Restore the target shadow stack.
10716 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10717 <asm/prctl.h>.
10718 (__swapcontext): Record the current shadow stack base. Save
10719 the caller's shadow stack pointer and base. Restore the target
10720 shadow stack.
10721 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10722 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10723 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10724
10725 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10726
10727 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10728 tst-setcontext8 and tst-setcontext9.
10729 * stdlib/tst-setcontext6.c: New file.
10730 * stdlib/tst-setcontext7.c: Likewise.
10731 * stdlib/tst-setcontext8.c: Likewise.
10732 * stdlib/tst-setcontext9.c: Likewise.
10733
10734 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10735
10736 * stdlib/Makefile ((tests): Add tst-setcontext5.
10737 * stdlib/tst-setcontext5.c: New file.
10738
10739 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10740
10741 * stdlib/Makefile (tests): Add tst-setcontext4.
10742 * stdlib/tst-setcontext4.c: New file.
10743
10744 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10745
10746 * stdlib/Makefile (tests): Add tst-swapcontext1.
10747 * stdlib/tst-swapcontext1.c: New test.
10748
10749 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10750
10751 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10752 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10753 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10754 and tst-cet-legacy-4c.
10755 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10756 and tst-cet-legacy-mod-4.
10757 (CFLAGS-tst-cet-legacy-2.c): New.
10758 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10759 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10760 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10761 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10762 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10763 ($(objpfx)tst-cet-legacy-1): Likewise.
10764 ($(objpfx)tst-cet-legacy-2): Likewise.
10765 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10766 ($(objpfx)tst-cet-legacy-2a): Likewise.
10767 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10768 ($(objpfx)tst-cet-legacy-4): Likewise.
10769 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10770 ($(objpfx)tst-cet-legacy-4a): Likewise.
10771 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10772 (tst-cet-legacy-4a-ENV): Likewise.
10773 ($(objpfx)tst-cet-legacy-4b): Likewise.
10774 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10775 (tst-cet-legacy-4b-ENV): Likewise.
10776 ($(objpfx)tst-cet-legacy-4c): Likewise.
10777 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10778 (tst-cet-legacy-4c-ENV): Likewise.
10779 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10780 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10781 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10782 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10783 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10784 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10785 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10786 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10787 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10788 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10789 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10790
10791 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10792
10793 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10794 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10795 with ssp_base.
10796 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10797 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10798 with ssp_base.
10799
10800 2018-07-25 Andreas Schwab <schwab@suse.de>
10801
10802 [BZ #23442]
10803 * locale/weightwc.h (findidx): Handle the case where usrc is a
10804 prefix of cp but one character too short.
10805
10806 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10807
10808 * NEWS: Add ISO C threads addition.
10809
10810 2018-07-24 Florian Weimer <fweimer@redhat.com>
10811
10812 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10813 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10814 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10815 4.13.
10816
10817 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10818
10819 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10820 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10821 <sys/prctl.h> and <asm/prctl.h>.
10822 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10823 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10824 and <asm/prctl.h>.
10825 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10826 ARCH_CET_LEGACY_BITMAP.
10827 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10828 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10829 * sysdeps/x86/libc-start.c: Include <startup.h>.
10830
10831 2018-07-24 Florian Weimer <fweimer@redhat.com>
10832
10833 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10834 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10835
10836 2018-07-24 Rical Jasan <rj@2c3t.io>
10837 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10838 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10839
10840 [BZ #14092]
10841 * manual/debug.texi: Update adjacent chapter name.
10842 * manual/probes.texi: Likewise.
10843 * manual/threads.texi (ISO C Threads): New section.
10844 (POSIX Threads): Convert to a section.
10845
10846 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10847 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10848
10849 [BZ# 14092]
10850 * nptl/Makefile (tests): Add new test files.
10851 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10852 * nptl/tst-cnd-basic.c: Likewise.
10853 * nptl/tst-cnd-broadcast.c: Likewise.
10854 * nptl/tst-cnd-timedwait.c: Likewise.
10855 * nptl/tst-mtx-basic.c: Likewise.
10856 * nptl/tst-mtx-recursive.c: Likewise.
10857 * nptl/tst-mtx-timedlock.c: Likewise.
10858 * nptl/tst-mtx-trylock.c: Likewise.
10859 * nptl/tst-thrd-basic.c: Likewise.
10860 * nptl/tst-thrd-detach.c: Likewise.
10861 * nptl/tst-thrd-sleep.c: Likewise.
10862 * nptl/tst-tss-basic.c: Likewise.
10863
10864 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10865
10866 [BZ #14092]
10867 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10868 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10869 symbols.
10870 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10871 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10872 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10873 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10874 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10875 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10876 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10877 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10878 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10879 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10880 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10881 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10883 Likewise.
10884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10885 Likewise.
10886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10887 Likewise.
10888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10889 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10890 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10891 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10892 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10893 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10894 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10895 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10896 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10897 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10898 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10899 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10900 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10901 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10902 Likewise.
10903 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10904 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10905 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10906 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10907 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10908 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10909 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10910 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10911 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10912 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10913 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10914 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10915 ikewise.
10916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10917 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10918 Likewise.
10919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10920 Likewise.
10921 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10922 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10923 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10924 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10925 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10926 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10927 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10928 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10929
10930 [BZ #14092]
10931 * conform/data/threads.h-data (thread_local): New macro.
10932 (TSS_DTOR_ITERATIONS): Likewise.
10933 (tss_t): New type.
10934 (tss_dtor_t): Likewise.
10935 (tss_create): New function.
10936 (tss_get): Likewise.
10937 (tss_set): Likewise.
10938 (tss_delete): Likewise.
10939 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10940 tss_get, and tss_set objects.
10941 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10942 * nptl/tss_create.c: New file.
10943 * nptl/tss_delete.c: Likewise.
10944 * nptl/tss_get.c: Likewise.
10945 * nptl/tss_set.c: Likewise.
10946 * sysdeps/nptl/threads.h (thread_local): New define.
10947 (TSS_DTOR_ITERATIONS): Likewise.
10948 (tss_t): New typedef.
10949 (tss_dtor_t): Likewise.
10950 (tss_create): New prototype.
10951 (tss_get): Likewise.
10952 (tss_set): Likewise.
10953 (tss_delete): Likewise.
10954
10955 [BZ #14092]
10956 * conform/data/threads.h-data (cnd_t): New type.
10957 (cnd_init): New function.
10958 (cnd_signal): Likewise.
10959 (cnd_broadcast): Likewise.
10960 (cnd_wait): Likewise.
10961 (cnd_timedwait): Likewise.
10962 (cnd_destroy): Likewise.
10963 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10964 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10965 object.
10966 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10967 * nptl/cnd_broadcast.c: New file.
10968 * nptl/cnd_destroy.c: Likewise.
10969 * nptl/cnd_init.c: Likewise.
10970 * nptl/cnd_signal.c: Likewise.
10971 * nptl/cnd_timedwait.c: Likewise.
10972 * nptl/cnd_wait.c: Likewise.
10973 * sysdeps/nptl/threads.h (cnd_t): New type.
10974 (cnd_init): New prototype.
10975 (cnd_signa): Likewise.
10976 (cnd_broadcast): Likewise.
10977 (cnd_wait): Likewise.
10978 (cnd_timedwait): Likewise.
10979 (cnd_destroy): Likewise.
10980
10981 [BZ #14092]
10982 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10983 (once_flag): New type.
10984 (call_once): New function.
10985 * nptl/Makefile (libpthread-routines): Add call_once object.
10986 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10987 * nptl/call_once.c: New file.
10988 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10989 (once_flag): New type.
10990 (call_once): New prototype.
10991
10992 [BZ #14092]
10993 * conform/data/threads.h-data (mtx_plain): New constant.
10994 (mtx_recursive): Likewise.
10995 (mtx_timed): Likewise.
10996 (mtx_t): New type.
10997 (mtx_init): New function.
10998 (mtx_lock): Likewise.
10999 (mtx_timedlock): Likewise.
11000 (mtx_trylock): Likewise.
11001 (mtx_unlock): Likewise.
11002 (mtx_destroy): Likewise.
11003 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11004 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11005 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11006 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11007 * nptl/mtx_destroy.c: New file.
11008 * nptl/mtx_init.c: Likewise.
11009 * nptl/mtx_lock.c: Likewise.
11010 * nptl/mtx_timedlock.c: Likewise.
11011 * nptl/mtx_trylock.c: Likewise.
11012 * nptl/mtx_unlock.c: Likewise.
11013 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11014 (mtx_recursive): Likewise.
11015 (mtx_timed): Likewise.
11016 (mtx_t): New type.
11017 (mtx_init): New prototype.
11018 (mtx_lock): Likewise.
11019 (mtx_timedlock): Likewise.
11020 (mtx_trylock): Likewise.
11021 (mtx_unlock): Likewise.
11022 (mtx_destroy): Likewise.
11023
11024 [BZ #14092]
11025 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11026 (linknamespace-libs-ISO11): Add libpthread.a.
11027 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11028 functions.
11029 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11030 * nptl/Makefile (headers): Add threads.h.
11031 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11032 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11033 thrd_yield.
11034 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11035 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11036 thrd_join, thrd_sleep, and thrd_yield symbols.
11037 * nptl/descr.h (struct pthread): Add c11 field.
11038 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11039 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11040 routine with expected function prototype.
11041 (__pthread_create_2_1): Add C11 threads check based on attribute
11042 value.
11043 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11044 * nptl/thrd_create.c: New file.
11045 * nptl/thrd_current.c: Likewise.
11046 * nptl/thrd_detach.c: Likewise.
11047 * nptl/thrd_equal.c: Likewise.
11048 * nptl/thrd_exit.c: Likewise.
11049 * nptl/thrd_join.c: Likewise.
11050 * nptl/thrd_priv.h: Likewise.
11051 * nptl/thrd_sleep.c: Likewise.
11052 * nptl/thrd_yield.c: Likewise.
11053 * include/threads.h: Likewise.
11054
11055 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11056
11057 * bits/indirect-return.h: New file.
11058 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11059 * sysdeps/x86/bits/indirect-return.h: Likewise.
11060 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11061 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11062 (swapcontext): Add __INDIRECT_RETURN.
11063 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11064 (prepare_test_buffer): Use it.
11065
11066 2018-07-24 Andreas Schwab <schwab@suse.de>
11067
11068 [BZ #23448]
11069 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11070 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11071
11072 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11073
11074 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11075 Redefine if shadow stack is enabled.
11076 (SYSCALL_ERROR_LABEL): Likewise.
11077 (__vfork): Pop shadow stack and jump back to to caller directly
11078 when shadow stack is in use.
11079 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11080 Redefine if shadow stack is enabled.
11081 (SYSCALL_ERROR_LABEL): Likewise.
11082 (__vfork): Pop shadow stack and jump back to to caller directly
11083 when shadow stack is in use.
11084
11085 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11086
11087 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11088 enabled.
11089 (foo): Likewise.
11090 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11091 (foo): Likewise.
11092
11093 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11094
11095 * scripts/build-many-glibcs.py (Context.checkout): Default
11096 binutils version to 2.31 branch.
11097
11098 2018-07-20 Zong Li <zong@andestech.com>
11099
11100 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11101 URL of gcc's tarball.
11102
11103 2018-07-20 Florian Weimer <fweimer@redhat.com>
11104
11105 [BZ #23396]
11106 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11107 not compare an extra byte after the end of the weights.
11108
11109 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11110
11111 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11112 to 1.
11113 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11114 hidden prototypes.
11115 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11116 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11117 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11118 list of libraries whose stack executability is expected.
11119 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11120 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11121 variable.
11122 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11123 libc.so libpthread.so.
11124
11125 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11126
11127 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11128 SOCK_NONBLOCK.
11129 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11130 and SOCK_NONBLOCK.
11131 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11132 implement __pipe2.
11133 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11134
11135 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11136
11137 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11138 library to improve command line parsing.
11139 (__main__): make schema file as optional parameter (--schema),
11140 defaulting to benchtests/scripts/benchout.schema.json.
11141 (main): move out of the parsing stuff to __main_  and leave it
11142 only as caller of main comparison functions.
11143
11144 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11145
11146 * NEWS: Add a note for Intel CET status.
11147 * manual/install.texi: Likewise.
11148 * INSTALL: Regenerated.
11149
11150 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11151
11152 [BZ #23140]
11153 * localedata/locales/oc_FR (mon): Rename to...
11154 (alt_mon): This, then update October (typo fix).
11155 (mon): New content (genitive case, month names preceded by
11156 "de" or "d’").
11157
11158 [BZ #23422]
11159 * localedata/locales/oc_FR (abday): Update all items.
11160 (day): Update Wednesday and Saturday (typo fixes).
11161 (abmon): Update all items, except May.
11162 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11163 (LC_IDENTIFICATION): Bump the revision number and date.
11164 Keep the "category" entries in alphabetic order.
11165 (LC_ADDRESS): Remove no longer needed comment.
11166 (LC_COLLATE): Use “copy "ca_ES"”.
11167 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11168 "name_mrs".
11169
11170 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11171
11172 * grp/tst_fgetgrent.c: Include <unistd.h>.
11173 (main): Use mkstemp instead of tmpnam.
11174 * io/test-utime.c (main): Likewise.
11175 * posix/annexc.c (macrofile): Change to modifiable array.
11176 (main): Remove macrofile here.
11177 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11178 macrofile here.
11179 (check_header): Do not remove macrofile here.
11180 * posix/bug-getopt1.c: Include <stdlib.h>.
11181 (do_test): Use mkstemp instead of tmpnam.
11182 * posix/bug-getopt2.c: Include <stdlib.h>.
11183 (do_test): Use mkstemp instead of tmpnam.
11184 * posix/bug-getopt3.c: Include <stdlib.h>.
11185 (do_test): Use mkstemp instead of tmpnam.
11186 * posix/bug-getopt4.c: Include <stdlib.h>.
11187 (do_test): Use mkstemp instead of tmpnam.
11188 * posix/bug-getopt5.c: Include <stdlib.h>.
11189 (do_test): Use mkstemp instead of tmpnam.
11190 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11191 (main): Use mkstemp instead of tmpnam.
11192 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11193 (main): Use mkstemp instead of tmpnam.
11194 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11195 (main): use mkstemp instead of tmpnam.
11196 * stdlib/isomac.c (macrofile): Change to modifiable array.
11197 (main): Remove macrofile here.
11198 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11199 macrofile here.
11200 (check_header): Do not remove macrofile here.
11201
11202 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11203
11204 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11205 glibc.tune.x86_shstk.
11206
11207 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11208
11209 * NEWS: Mention --enable-cet.
11210 * manual/install.texi: Document --enable-cet.
11211 * INSTALL: Regenerated.
11212
11213 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11214
11215 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11216 Add _CET_NOTRACK before indirect jump to jump table.
11217
11218 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11219
11220 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11221 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11222 to jump table.
11223
11224 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11225
11226 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11227 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11228 to jump table.
11229
11230 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11231
11232 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11233 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11234 to jump table.
11235
11236 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11237
11238 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11239 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11240 to jump table.
11241
11242 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11243
11244 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11245 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11246 to jump table.
11247 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11248
11249 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11250
11251 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11252 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11253 to jump table.
11254
11255 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11256
11257 * sysdeps/i386/i686/multiarch/memset-sse2.S
11258 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11259 to jump table.
11260
11261 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11262
11263 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11264 indirect jump to jump table.
11265
11266 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11267
11268 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11269 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11270 to jump table.
11271 (MEMCPY): Likewise.
11272
11273 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11274
11275 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11276 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11277 to jump table.
11278 (MEMCPY): Likewise.
11279
11280 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11281
11282 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11283 _CET_NOTRACK before indirect jump to jump table.
11284
11285 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11286
11287 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11288 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11289 to jump table.
11290
11291 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11292
11293 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11294 indirect jump to jump table.
11295
11296 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11297
11298 [BZ #22241]
11299 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11300 (LOCALES): Likewise.
11301 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11302 * localedata/locales/sah_RU: New file.
11303 * localedata/sah_RU.UTF-8.in: New file.
11304
11305 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11306
11307 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11308 "sysdep.h".
11309 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11310 _CET_ENDBR to indirect jump targets and adjust jump destination
11311 for _CET_ENDBR.
11312 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11313 "sysdep.h".
11314 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11315 _CET_ENDBR to indirect jump targets and adjust jump destination
11316 for _CET_ENDBR.
11317 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11318 "sysdep.h".
11319 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11320 _CET_ENDBR to indirect jump targets and adjust jump destination
11321 for _CET_ENDBR.
11322
11323 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11324
11325 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11326 _CET_ENDBR.
11327
11328 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11329
11330 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11331 _CET_ENDBR.
11332 (_dl_tlsdesc_undefweak): Likewise.
11333 (_dl_tlsdesc_dynamic): Likewise.
11334 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11335 (_dl_tlsdesc_resolve_rel): Likewise.
11336 (_dl_tlsdesc_resolve_rela): Likewise.
11337 (_dl_tlsdesc_resolve_hold): Likewise.
11338 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11339 (_dl_tlsdesc_undefweak): Likewise.
11340 (_dl_tlsdesc_dynamic): Likewise.
11341 (_dl_tlsdesc_resolve_rela): Likewise.
11342 (_dl_tlsdesc_resolve_hold): Likewise.
11343
11344 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11345
11346 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11347 (_fini): Likewise.
11348 * sysdeps/x86_64/crti.S (_init): Likewise.
11349 (_fini): Likewise.
11350
11351 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11352
11353 [BZ #23140]
11354 * localedata/locales/os_RU (mon): Rename to...
11355 (alt_mon): This.
11356 (mon): Import from CLDR (genitive case).
11357
11358 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11359
11360 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11361 cet-tunables.h> when CET is enabled.
11362
11363 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11364
11365 [BZ #21598]
11366 * configure.ac: Add --enable-cet.
11367 * configure: Regenerated.
11368 * elf/Makefille (all-built-dso): Add a comment.
11369 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11370 Include <dl-prop.h>.
11371 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11372 segment.
11373 * elf/dl-open.c: Include <dl-prop.h>.
11374 (dl_open_worker): Call _dl_open_check.
11375 * elf/rtld.c: Include <dl-prop.h>.
11376 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11377 _rtld_main_check.
11378 * sysdeps/generic/dl-prop.h: New file.
11379 * sysdeps/i386/dl-cet.c: Likewise.
11380 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11381 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11382 * sysdeps/x86/cet-tunables.h: Likewise.
11383 * sysdeps/x86/check-cet.awk: Likewise.
11384 * sysdeps/x86/configure: Likewise.
11385 * sysdeps/x86/configure.ac: Likewise.
11386 * sysdeps/x86/dl-cet.c: Likewise.
11387 * sysdeps/x86/dl-procruntime.c: Likewise.
11388 * sysdeps/x86/dl-prop.h: Likewise.
11389 * sysdeps/x86/libc-start.h: Likewise.
11390 * sysdeps/x86/link_map.h: Likewise.
11391 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11392 _CET_ENDBR.
11393 (_dl_runtime_profile): Likewise.
11394 (_dl_runtime_resolve_shstk): New.
11395 (_dl_runtime_profile_shstk): Likewise.
11396 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11397 if CET is enabled.
11398 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11399 (CFLAGS-.os): Likewise.
11400 (CFLAGS-.op): Likewise.
11401 (CFLAGS-.oS): Likewise.
11402 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11403 is enabled.
11404 (tests-special): Add $(objpfx)check-cet.out.
11405 (cet-built-dso): New.
11406 (+$(cet-built-dso:=.note)): Likewise.
11407 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11408 ($(objpfx)check-cet.out): New.
11409 (generated): Add check-cet.out.
11410 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11411 <cet-tunables.h>.
11412 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11413 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11414 (init_cpu_features): Call get_cet_status to check CET status
11415 and update dl_x86_feature_1 with CET status. Call
11416 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11417 (set_x86_shstk). Disable and lock CET in libc.a.
11418 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11419 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11420 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11421 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11422 (_CET_ENDBR): Define if not defined.
11423 (ENTRY): Add _CET_ENDBR.
11424 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11425 x86_shstk.
11426 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11427 _CET_ENDBR.
11428 (_dl_runtime_profile): Likewise.
11429
11430 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11431
11432 [BZ #21895]
11433 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11434 restore r2 on longjmp.
11435 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11436 test list.
11437 Added rules to build test tst-setjmp-bug21895-static.
11438 Added module setjmp-bug21895 and rules to build a shared object from it.
11439 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11440 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11441
11442 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11443
11444 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11445 * benchtests/bench-strstr.c: Likewise.
11446 * string/memmem.c (FASTSEARCH): Define.
11447 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11448 Add support for FASTSEARCH.
11449 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11450 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11451 (FASTSEARCH): Define.
11452 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11453 * string/test-strstr.c: Likewise.
11454
11455 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11456
11457 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11458 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11459
11460 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11461 H.J. Lu <hongjiu.lu@intel.com>
11462
11463 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11464 (__longjmp): Restore shadow stack pointer if shadow stack is
11465 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11466 isn't defined for __longjmp_cancel.
11467 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11468 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11469 and SHADOW_STACK_POINTER_OFFSET is defined.
11470 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11471 (setjmp): Save shadow stack pointer if shadow stack is enabled
11472 and SHADOW_STACK_POINTER_OFFSET is defined.
11473 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11474 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11475 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11476 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11477 <jmp_buf-ssp.h>.
11478 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11479 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11480 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11481 Remove jmp_buf-ssp.sym.
11482 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11483 <jmp_buf-ssp.h>.
11484 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11485 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11486 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11487 jmp_buf-ssp.sym.
11488 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11489 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11490 (__longjmp): Restore shadow stack pointer if shadow stack is
11491 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11492 isn't defined for __longjmp_cancel.
11493 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11494 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11495 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11496
11497 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11498
11499 [BZ #22563]
11500 * nptl/pthread_create.c: Include <tls-setup.h>.
11501 (__pthread_create_2_1): Call tls_setup_tcbhead.
11502 * sysdeps/generic/tls-setup.h: New file.
11503 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11504 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11505 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11506 Likewise.
11507 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11508 to feature_1.
11509 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11510 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11511 (X86_FEATURE_1_SHSTK): Likewise.
11512 (CET_ENABLED): Likewise.
11513 (IBT_ENABLED): Likewise.
11514 (SHSTK_ENABLED): Likewise.
11515
11516 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11517
11518 [BZ #23208]
11519 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11520 (LOCALES): Likewise.
11521 * localedata/dsb_DE.UTF-8.in: New file.
11522 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11523
11524 2018-07-12 Florian Weimer <fweimer@redhat.com>
11525
11526 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11527 __mprotect, not mprotect.
11528
11529 2018-07-11 Florian Weimer <fweimer@redhat.com>
11530
11531 * io/Makefile (headers): Add bits/statx.h.
11532
11533 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11534
11535 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11536 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11537 and headers.
11538 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11539 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11540 for utf8_gen.py
11541
11542 2018-07-10 Florian Weimer <fweimer@redhat.com>
11543
11544 * io/Makefile (routines): Add statx.
11545 (tests-internal): Add tst-statx.
11546 * io/Versions (GLIBC_2.28): Export statx.
11547 * io/bits/statx.h: New file.
11548 * io/sys/stat.h [__USE_GNU]: Include it.
11549 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11550 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11551 Define.
11552 * io/statx.c: New file.
11553 * io/statx_generic.: Likewise.
11554 * io/tst-statx.: Likewise.
11555 * include/bits/statx.h: Likewise.
11556 * sysdeps/unix/sysv/linux/kernel-features.h
11557 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11558 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11559 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11560 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11561 Undefine.
11562 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11563 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11564 * sysdeps/unix/sysv/linux/statx.c: New file.
11565 * manual/filesys.texi: Note that statx is undocumented.
11566 * sysdeps/**/libc*.abilist: Update.
11567
11568 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11569
11570 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11571 a kernel issue which lead to test failure in some cases.
11572
11573 2018-07-10 Florian Weimer <fweimer@redhat.com>
11574
11575 [BZ #23036]
11576 * posix/regexec.c (check_node_accept_bytes): When comparing
11577 weights, do not compare an extra byte after the end of the
11578 weights.
11579
11580 2018-07-10 Florian Weimer <fweimer@redhat.com>
11581
11582 * libio/readline.c: Fix copyright year.
11583 * libio/tst-readline.c Likewise.
11584 * nss/tst-nss-files-hosts-getent.c: Likewise.
11585
11586 2018-07-06 Florian Weimer <fweimer@redhat.com>
11587
11588 [BZ #18991]
11589 * nss/nss_files/files-XXX.c (internal_getent): Use
11590 __libc_readline_unlocked. Seek back to the start of the line if
11591 parsing failes with ERANGE.
11592 (get_contents_ret, get_contents): Remove.
11593 * nss/tst-nss-files-hosts-getent.c: New file.
11594 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11595 (tst-nss-files-hosts-getent): Link with -ldl.
11596
11597 2018-07-06 Florian Weimer <fweimer@redhat.com>
11598
11599 * include/stdio.h (__libc_readline_unlocked): Declare.
11600 (__ftello64, __fseeko64): Declare aliases.
11601 * libio/readline.c: New file.
11602 * libio/tst-readline.c: Likewise.
11603 (routines): Add readline.
11604 (tests-internal): Add tst-readlime.
11605 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11606 __libc_readline_unlocked.
11607 * libio/fseeko.c (__fseeko): Rename from fseeko.
11608 (fseeko): Add alias.
11609 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11610 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11611 (fseeko64): Add alias.
11612 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11613 * libio/ftello64.c (__ftello64): Rename from ftello64.
11614 (ftello64): Add alias.
11615
11616 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11617
11618 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11619 HWCAP_ATOMICS.
11620
11621 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11622
11623 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11624 Use dl_hwcap without masking.
11625 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11626 Remove HWCAP_CPUID.
11627
11628 2018-07-06 Florian Weimer <fweimer@redhat.com>
11629
11630 * conform/conformtest.pl (checknamespace): Escape literal braces
11631 in regular expressions.
11632
11633 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11634
11635 * sysdeps/x86/cpu-features.c (get_common_indeces):
11636 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11637 * sysdeps/x86/cpu-features.c (init_cpu_features):
11638 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11639
11640 2018-07-05 Florian Weimer <fweimer@redhat.com>
11641
11642 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11643 protector.
11644 (CFLAGS-elf-init.oS): Likewise.
11645
11646 2018-07-05 Florian Weimer <fweimer@redhat.com>
11647 Carlos O'Donell <carlos@redhat.com>
11648
11649 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11650 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11651 with stack protector enabled because there is no risk of infinite
11652 recursion.
11653
11654 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11655
11656 [BZ #19818]
11657 [BZ #23307]
11658 * libc-abis (ABSOLUTE): New ABI.
11659 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11660 * NEWS: Mention the new ABI.
11661
11662 2018-07-05 Florian Weimer <fweimer@redhat.com>
11663
11664 [BZ # 17662]
11665 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11666 (RENAME_WHITEOUT): Define.
11667 [__USE_GNU] (renameat2): Declare.
11668 * stdio-common/Makefile (routines): Add renameat2.
11669 (tests): Add tst-renameat2.
11670 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11671 * stdio-common/renameat2.c: New file.
11672 * stdio-common/tst-renameat2.c: Likewise.
11673 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11674 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11675 undocumented.
11676 * sysdeps/unix/sysv/linux/kernel-features.h
11677 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11678 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11679 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11680 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11681 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11682 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11683 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11684 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11685 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11686 * include/stdio.h (__renameat): Add alias for renameat.
11687 * stdio-common/renameat.c (__renameat): Rename from renameat.
11688 Add hidden definition and alias.
11689 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11690 * sysdeps/mach/hurd/renameat.c: Likewise.
11691 * sysdeps/**/libc*.abilist: Add renameat2.
11692
11693 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11694
11695 * posix/bug-regex33.c: Fix build after regex sync.
11696
11697 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11698
11699 [BZ #23164]
11700 * localedata/tst-langinfo-setlocale.c: New file.
11701 * localedata/tst-langinfo-setlocale-static.c: New file.
11702 * localedata/tst-langinfo-newlocale.c: New file.
11703 * localedata/tst-langinfo-newlocale-static.c: New file.
11704 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11705 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11706 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11707 (tests-static): Remove tst-langinfo-static. Add
11708 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11709 (tests-special): Remove $(objpfx)tst-langinfo.out,
11710 $(objpfx)tst-langinfo-static.out. Add
11711 $(objpfx)tst-langinfo-setlocale.out,
11712 $(objpfx)tst-langinfo-newlocale.out,
11713 $(objpfx)tst-langinfo-setlocale-static.out,
11714 $(objpfx)tst-langinfo-newlocale-static.out.
11715 ($(objpfx)tst-langinfo.out): Remove.
11716 ($(objpfx)tst-langinfo-static.out): Remove.
11717 ($(objpfx)tst-langinfo-newlocale.out): New target.
11718 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11719 (test-xfail-tst-langinfo-newlocale-static): Add.
11720 ($(objpfx)tst-langinfo-setlocale.out): New target.
11721 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11722 * localedata/tst-langinfo.c: Call test_locale.
11723 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11724 data.
11725
11726 2018-07-04 Florian Weimer <fweimer@redhat.com>
11727
11728 testrun.sh: Implement --tool=strace, --tool=valgrind
11729 * Makefile (testrun-script): Define variable.
11730 (testrun.sh): Use variable.
11731 * manual/install.texi (Tools for Compilation): make 4.0 or later
11732 is required.
11733 * configure.ac: Check for make 4.0 or later.
11734 * INSTALL: Regenerate.
11735 * configure: Likewise.
11736
11737 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11738
11739 [BZ #23233]
11740 [BZ #21163]
11741 [BZ #18986]
11742 [BZ #13762]
11743 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11744 * posix/PCRE.tests: Remove invalid test.
11745 * posix/bug-regex28.c: Fix expected values for used syntax.
11746 * posix/bug-regex37.c: New file.
11747 * posix/bug-regex38.c: Likewise.
11748 * posix/regcomp.c: Sync with gnulib.
11749 * posix/regex.c: Likewise.
11750 * posix/regex.h: Likewise.
11751 * posix/regex_internal.c: Likewise.
11752 * posix/regex_internal.h: Likewise.
11753 * posix/regexec.c: Likewise.
11754
11755 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11756
11757 [BZ #23308]
11758 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11759 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11760 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11761 * localedata/unicode-gen/PropList.txt: likewise.
11762 * localedata/unicode-gen/UnicodeData.txt: likewise.
11763 * localedata/charmaps/UTF-8: Regenerate.
11764 * localedata/locales/i18n_ctype: likewise.
11765 * localedata/locales/tr_TR: likewise.
11766 * localedata/locales/translit_circle: likewise.
11767 * localedata/locales/translit_cjk_compat: likewise.
11768 * localedata/locales/translit_combining: likewise.
11769 * localedata/locales/translit_compat: likewise.
11770 * localedata/locales/translit_font: likewise.
11771 * localedata/locales/translit_fraction: likewise.
11772
11773 2018-07-03 Florian Weimer <fweimer@redhat.com>
11774
11775 [BZ #23363]
11776 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11777 * stdio-common/tst-printf.sh: Adjust expected output.
11778 * LICENSES: Update.
11779
11780 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11781
11782 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11783 symbol.
11784
11785 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11786
11787 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11788 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11789 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11790 * stdio-common/tst-printfsz-islongdouble.c: New file.
11791 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11792 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11793 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11794 [subdir == stdio-common] (tests-internal): Add
11795 test-printf-size-ieee128, and test-printf-size-ibm128.
11796 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11797 (CFLAGS-test-printf-size-ibm128.c): New variables.
11798 [subdir == stdio-common] (tests-special): Add
11799 $(objpfx)test-printf-size-ieee128.out and
11800 $(objpfx)test-printf-size-ibm128.out.
11801 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11802 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11803 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11804 __printf_sizeieee128.
11805 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11806 New file.
11807 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11808 Likewise.
11809 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11810 Likewise.
11811
11812 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11813
11814 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11815 (exp2f_inline): Likewise.
11816 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11817 (__math_uflowf): Likewise.
11818 (__math_may_uflowf): Likewise.
11819 (__math_divzerof): Likewise.
11820 (__math_invalidf): Likewise.
11821 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11822 (__math_oflowf): Likewise.
11823 (__math_uflowf): Likewise.
11824 (__math_may_uflowf): Likewise.
11825 (__math_divzerof): Likewise.
11826 (__math_invalidf): Likewise.
11827
11828 2018-06-29 DJ Delorie <dj@redhat.com>
11829 Carlos O'Donell <carlos@redhat.com>
11830
11831 [BZ #23329]
11832 * include/libc-symbols.h: Comment the freeres framework.
11833 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11834 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11835 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11836 * dlfcn/dlerror.c: Include libc-symbols.h
11837 (__dlerror_main_freeres): New function.
11838 * dlfcn/dlfreeres.c: New file.
11839 * dlfcn/sdlfreeres.c: New file.
11840 * include/dlfcn.h: Declare __dlerror_main_freeres.
11841 * malloc/set-freeres.c: Declare __libdl_freeres, and
11842 __libpthread_freeres.
11843 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11844 the releavant libraries are loaded.
11845 * malloc/thread-freeres.c: Add comments.
11846 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11847 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11848 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11849 (__free_stacks): Rename to...
11850 (free_stacks): ...this. Mark static.
11851 (queue_stack): Call free_stacks.
11852 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11853 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11854 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11855 ptr_freeres element from struct.
11856 (pthread_functions): Remove .ptr_freeres from struct initializer.
11857 [SHARED] (nptl_freeres): Remove.
11858 * nptl/nptlfreeres.c: New file.
11859 * nptl/pthreadP.h
11860 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11861 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11862 attribute_hidden.
11863 (__free_stacks): Rename to...
11864 (__nptl_stacks_freeres): ...this.
11865 (__shm_directory_freeres): Declare.
11866 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11867 (__nptl_unwind_freeres): ...this.
11868 * resolv/res-close.c: Add comment.
11869 * resolv/resolv_conf.c: Include libc-symbols.h.
11870 * string/strerror_l.c: Include libc-symbols.h.
11871 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11872 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11873 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11874 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11875
11876 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11877
11878 * stdlib/tst-strfmon_l.c: Add tests for long double.
11879
11880 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11881
11882 [BZ #23208]
11883 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11884 * localedata/locales/dsb_DE: New file.
11885
11886 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11887
11888 [BZ #23140]
11889 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11890 genitive case).
11891 (alt_mon): New entry, import from CLDR (nominative case).
11892
11893 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11894
11895 [BZ #22996]
11896 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11897
11898 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11899
11900 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11901 Use vector registers.
11902
11903 * sysdeps/aarch64/multiarch/memmove_falkor.S
11904 (__memcpy_falkor): Use vector registers.
11905
11906 2018-06-29 Martin Sebor <msebor@redhat.com>
11907
11908 * manual/stdio.texi (Customizing Printf): Mention interaction
11909 with GCC built-ins.
11910
11911 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11912
11913 [BZ #23307]
11914 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11915 `st_value' is 0 if `st_shndx' is SHN_ABS.
11916 * elf/tst-absolute-zero.c: New file.
11917 * elf/tst-absolute-zero-lib.c: New file.
11918 * elf/tst-absolute-zero-lib.lds: New file.
11919 * elf/Makefile (tests): Add `tst-absolute-zero'.
11920 (modules-names): Add `tst-absolute-zero-lib'.
11921 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11922 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11923 ($(objpfx)tst-absolute-zero: New dependency.
11924
11925 2018-06-29 Zack Weinberg <zackw@panix.com>
11926
11927 * configure.ac: New command-line option --disable-crypt.
11928 Force --disable-nss-crypt when --disable-crypt is given, with a
11929 warning if it was explicitly enabled.
11930 * configure: Regenerate.
11931 * config.make.in: New boolean substitution variable $(build-crypt).
11932 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11933 when $(build-crypt).
11934 * manual/install.texi: Document --disable-crypt.
11935 * INSTALL: Regenerate.
11936
11937 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11938 which is never set.
11939 * conform/Makefile: Only include libcrypt.a in
11940 linknamespace-libs-xsi and linknamespace-libs-XPG4
11941 when $(build-crypt).
11942 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11943 USE_CRYPT to 1 when $(build-crypt).
11944 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11945 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11946 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11947
11948 2018-06-29 Zack Weinberg <zackw@panix.com>
11949
11950 * crypt/crypt.h, posix/unistd.h: Update comments and
11951 prototypes for crypt and crypt_r.
11952
11953 * manual/crypt.texi (Cryptographic Functions): New initial
11954 exposition.
11955 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11956 (Unpredictable Bytes): Improve initial exposition. Clarify error
11957 behavior of getentropy and getrandom.
11958 * manual/examples/genpass.c: Generate a salt using getentropy
11959 instead of the current time. Use hash $5$ (SHA-2-256).
11960 * manual/examples/testpass.c: Demonstrate validation against
11961 hashes generated with three different one-way functions.
11962
11963 * manual/intro.texi: crypt.texi does not need an overview
11964 anymore.
11965
11966 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11967 * manual/terminal.texi: Consistently refer to "passphrases"
11968 * instead of "passwords", and to the "user database" instead
11969 * of the "password database".
11970 * manual/users.texi: Similarly. Add notes about how actual
11971 passphrase hashes are now stored in the shadow database.
11972 Remove 20-year-old junk todo note.
11973
11974 2018-06-29 Zack Weinberg <zackw@panix.com>
11975
11976 * manual/crypt.texi: Use a normal top-level @node declaration.
11977 Move most of the introductory text to the 'crypt' section.
11978 Move the example programs below the @deftypefun for 'crypt_r'.
11979 Move the 'getpass' section...
11980 * manual/terminal.texi: ...here.
11981
11982 2018-06-29 Zack Weinberg <zackw@panix.com>
11983 Florian Weimer <fweimer@redhat.com>
11984
11985 * posix/unistd.h: Do not declare encrypt.
11986 (_XOPEN_CRYPT): Remove macro definition.
11987 (crypt): Declare only for _USE_MISC.
11988 * stdlib/stdlib.h: Do not declare setkey.
11989 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11990 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11991
11992 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11993 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11994 into compat symbols. Don't define initial_perm if it's not
11995 going to be used.
11996 * crypt/cert.c: Link explicitly with the expected versions for
11997 setkey and encrypt. If they are not available at all, mark
11998 the test as unsupported.
11999
12000 * sunrpc/des_crypt.c: Unconditionally block linkage with
12001 cbc_crypt and ecb_crypt for new binaries.
12002 * sunrpc/des_soft.c: Unconditionally block linkage with
12003 des_setparity for new binaries.
12004
12005 * manual/crypt.texi: Remove the entire "DES Encryption"
12006 section. Also remove the paragraph talking about FIPS 140-2
12007 from the introduction.
12008 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12009 of libgcrypt for "real" encryption, not DES.
12010 * manual/conf.texi (Constants for Sysconf): Mention that
12011 _XOPEN_CRYPT is no longer impelemented.
12012
12013 * conform/data/unistd.h-data: Remove crypt function declaration.
12014
12015 2018-06-29 Florian Weimer <fweimer@redhat.com>
12016
12017 [BZ #23351]
12018 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12019 (disallow_malloc_check): Remove variable.
12020 (__malloc_check_init): Adjust.
12021 (malloc_set_state): Update comment.
12022 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12023 declarations.
12024
12025 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12026
12027 [BZ #23140]
12028 * localedata/locales/ast_ES (mon): Rename to...
12029 (alt_mon): This.
12030 (mon): Import from CLDR (genitive case).
12031
12032 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12033 Jakub Sitnicki <jkbs@redhat.com>
12034
12035 [BZ #21812]
12036 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12037 on NLM_F_DUMP_INTR.
12038
12039 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12040
12041 * manual/llio.texi: Remove spurious space.
12042
12043 2018-06-28 Florian Weimer <fweimer@redhat.com>
12044
12045 [BZ #23349]
12046 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12047 _STRUCT_TIMESPEC.
12048
12049 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12050
12051 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12052 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12053 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12054 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12055 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12056 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12057 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12058
12059 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12060
12061 [BZ #23266]
12062 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12063 Copy and null-terminate entries that are not terminated, in
12064 addition to empty ones.
12065
12066 2018-06-27 Florian Weimer <fweimer@redhat.com>
12067
12068 [BZ #18023]
12069 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12070 (extend_alloca_account): Remove.
12071 * manual/stdio.texi (Variable Arguments Output): Update comment.
12072
12073 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12074
12075 * nptl/sockperf.c: Remove file.
12076
12077 2018-06-27 Florian Weimer <fweimer@redhat.com>
12078
12079 [BZ #18023]
12080 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12081 scratch_buffer instead of extend_alloca.
12082
12083 2018-06-27 Florian Weimer <fweimer@redhat.com>
12084
12085 [BZ #18023]
12086 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12087 scratch_buffer instead of extend_alloca. Update comments.
12088
12089 2018-06-27 Florian Weimer <fweimer@redhat.com>
12090
12091 [BZ #18023]
12092 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12093 instead of extend_alloca.
12094
12095 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12096
12097 [BZ #13888]
12098 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12099 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12100 /tmp.
12101 * scripts/test-installation.pl: Put temporary files in build
12102 directory, not /tmp.
12103 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12104 (CFLAGS-bug4.c): Likewise.
12105 (CFLAGS-bug5.c): Likewise.
12106 (CFLAGS-test-fseek.c): Likewise.
12107 (CFLAGS-test-popen.c): Likewise.
12108 (CFLAGS-test_rdwr.c): Likewise.
12109 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12110 /tmp.
12111 * stdio-common/bug4.c (main): Likewise.
12112 * stdio-common/bug5.c (main): Likewise.
12113 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12114 * stdio-common/test-popen.c (do_test): Likewise.
12115 * stdio-common/test_rdwr.c (main): Likewise.
12116
12117 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12118
12119 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12120 (sem_open): Set sem.newsem.pad to zero for valgrind.
12121
12122 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12123
12124 [BZ #20251]
12125 * NEWS: Mention fcntl64 addition.
12126 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12127 * login/utmp_file.c: Likewise.
12128 * sysdeps/posix/fdopendir.c: Likewise.
12129 * sysdeps/posix/opendir.c: Likewise.
12130 * sysdeps/unix/pt-fcntl.c: Likewise.
12131 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12132 __fcntl64_nocancel_adjusted): New prototype.
12133 (__fcntl_nocancel_adjusted): Remove prototype.
12134 * io/Makefile (routines): Add fcntl64.
12135 (CFLAGS-fcntl64.c): New rule.
12136 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12137 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12138 * io/fcntl.h (fcntl64): Add prototype and redirect if
12139 __USE_FILE_OFFSET64 is defined.
12140 * io/fcntl64.c: New file.
12141 * manual/llio.text: Add a note for which commands fcntl acts a
12142 cancellation point.
12143 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12144 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12145 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12146 New symbols.
12147 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12148 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12149 non-LFS case.
12150 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12151 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12152 to __fcntl64_nocancel.
12153 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12154 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12155 to __fcntl64_nocancel.
12156 * sysdeps/generic/not-cancel.h: Likewise.
12157 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12158 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12159 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12160 (fcntl64): New symbol.
12161 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12162 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12163 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12166 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12167 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12168 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12169 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12170 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12171 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12172 fcntl64): Likewise.
12173 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12174 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12175 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12176 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12177 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12178 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12179 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12180 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12181 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12183 Likewise.
12184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12185 Likewise.
12186 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12187 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12188 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12189
12190 2018-06-26 Florian Weimer <fweimer@redhat.com>
12191
12192 Run thread shutdown functions in an explicit order.
12193 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12194 definition.
12195 (__libc_thread_freeres): Call thread shutdown functions
12196 explicitly.
12197 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12198 * include/string.h (__strerror_thread_freeres): Declare.
12199 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12200 arena_thread_freeres. No longer static. Remove thread shutdown
12201 hook registration.
12202 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12203 Declare.
12204 * resolv/res-close.c (__res_thread_freeres): Renamed from
12205 res_thread_freeres. No longer static. Remove thread shutdown
12206 hook registration.
12207 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12208 * resolv/resolv_conf.c (freeres): Remove incorrect section
12209 attribute and use libc_freeres_fn.
12210 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12211 strerror_thread_freeres. No longer static. Remove thread
12212 shutdown hook registration.
12213 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12214 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12215 shutdown hook registration.
12216 * Makerules (shlib.lds): Do not provide section boundary symbols
12217 for __libc_thread_subfreeres.
12218 * manual/memory.texi (Basic Allocation): Update comment.
12219
12220 2018-06-26 Florian Weimer <fweimer@redhat.com>
12221
12222 Remove always-defined _RPC_THREAD_SAFE_ macro.
12223 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12224 Do not define _RPC_THREAD_SAFE_.
12225 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12226 conditional.
12227 * sunrpc/clnt_perr.c: Likewise.
12228 * sunrpc/clnt_raw.c: Likewise.
12229 * sunrpc/clnt_simp.c: Likewise.
12230 * sunrpc/key_call.c: Likewise.
12231 * sunrpc/rpc_common.c: Likewise.
12232 * sunrpc/rpc_main.c: Likewise.
12233 * sunrpc/rpc_thread.c: Likewise.
12234 * sunrpc/svc.c: Likewise.
12235 * sunrpc/svc_raw.c: Likewise.
12236 * sunrpc/svc_simple.c: Likewise.
12237 * sumrpc/svcauth_des.c: Likewise.
12238
12239 2018-06-26 Florian Weimer <fweimer@redhat.com>
12240
12241 * libio/Makefile (tests-internal): Add tst-vtables,
12242 tst-vtables-interposed.
12243 * libio/tst-vtables.c: New file.
12244 * libio/tst-vtables-common.c: Likewise.
12245 * libio/tst-vtables-interposed.c: Likewise.
12246
12247 2018-06-26 Florian Weimer <fweimer@redhat.com>
12248
12249 * support/support_test_main.c (support_test_main): Only call
12250 setvbuf if not disables.
12251 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12252 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12253
12254 2018-06-26 Florian Weimer <fweimer@redhat.com>
12255
12256 [BZ #23313]
12257 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12258
12259 2018-06-25 Florian Weimer <fweimer@redhat.com>
12260
12261 [BZ #18023]
12262 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12263 Use struct scratch_buffer instead of extend_alloca.
12264
12265 2018-06-25 Florian Weimer <fweimer@redhat.com>
12266
12267 [BZ #18023]
12268 * nss/getent.c (initgroups_keys): Use dynarray instead of
12269 extend_alloca.
12270
12271 2018-06-25 Florian Weimer <fweimer@redhat.com>
12272
12273 [BZ #18023]
12274 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12275 Use struct scratch_buffer instead of extend_alloca.
12276
12277 2018-06-25 Florian Weimer <fweimer@redhat.com>
12278
12279 [BZ #18023]
12280 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12281 back to malloc directly, without stack allocations.
12282
12283 2018-06-25 Florian Weimer <fweimer@redhat.com>
12284
12285 [BZ #18023]
12286 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12287 of extend_alloca.
12288
12289 2018-06-25 Florian Weimer <fweimer@redhat.com>
12290
12291 [BZ #18023]
12292 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12293 of extend_alloca.
12294 * nscd/hstcache.c (addhstbyX): Likewise.
12295 * nscd/pwdcache.c (addpwbyX): Likewise.
12296 * nscd/servicescache.c (addservbyX): Likewise.
12297
12298 2018-06-25 Florian Weimer <fweimer@redhat.com>
12299
12300 [BZ #18023]
12301 * nscd/connections.c (read_cmdline): New function.
12302 (restart): Use it. Update comment.
12303
12304 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12305
12306 [BZ #23140]
12307 * localedata/locales/csb_PL (mon): Rename to...
12308 (alt_mon): This.
12309 (abmon): Rename to...
12310 (ab_alt_mon): This.
12311 (mon): Add with proper genitive forms, copy from Wikipedia.
12312 (abmon): Likewise.
12313
12314 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12315
12316 [BZ #19485]
12317 * localedata/locales/csb_PL (mon): Fix typos:
12318 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12319 (yesstr): Add, value is "jo".
12320 (nostr): Add, value is "nié".
12321
12322 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12323
12324 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12325 all log1p and significand functions on m680x0.
12326 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12327 of s_significand.c..
12328 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12329 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12330 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12331 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12332 s_log1p.c and include it..
12333
12334 2018-06-21 Vincent Chen <vincentc@andestech.com>
12335
12336 * elf/elf.h (R_NDS32_NONE): New define.
12337 (R_NDS32_32_RELA): Likewise.
12338 (R_NDS32_COPY): Likewise.
12339 (R_NDS32_GLOB_DAT): Likewise.
12340 (R_NDS32_JUMP_SLOT): Likewise.
12341 (R_NDS32_RELATIVE): Likewise.
12342 (R_NDS32_TLS_TPOFF): Likewise.
12343 (R_NDS32_TLS_DESC): Likewise.
12344
12345 2018-06-21 Mark Wielaard <mark@klomp.org>
12346
12347 * elf/elf.h (R_BPF_MAP_FD): Removed.
12348 (R_BPF_64_64, R_BPF_64_32): New.
12349
12350 2018-06-21 Florian Weimer <fweimer@redhat.com>
12351
12352 [BZ #23253]
12353 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12354 Renamed from libc_feholdsetround_ctx.
12355 (default_libc_feresetround_ctx): Renamed from
12356 libc_feresetround_ctx.
12357 (default_libc_feholdsetround_noex_ctx): Renamed from
12358 libc_feholdsetround_noex_ctx.
12359 (default_libc_feresetround_noex_ctx): Renamed from
12360 libc_feresetround_noex_ctx.
12361 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12362 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12363 forwardning to the old implementations under the new names.
12364 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12365 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12366 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12367 (libc_feresetround_ctx): Forward to default implements for i386
12368 and MATH_SET_BOTH_ROUNDING_MODES.
12369 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12370 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12371
12372 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12373
12374 * string/tst-cmp.c: Include <libc-diag.h>.
12375 (strncmp_max): Disable -Wstringop-overflow= around call to
12376 strncmp.
12377 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12378 strncasecmp.
12379
12380 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12381 (main): Disable -Wunused-value around call to strpbrk.
12382 * string/bug-strspn1.c: Include <libc-diag.h>.
12383 (main): Disable -Wunused-value around call to strspn.
12384
12385 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12386 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12387
12388 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12389 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12390
12391 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12392
12393 * math/Makefile (libm-calls): Move s_significandF to...
12394 (gen-libm-calls): ... here.
12395 * math/s_significand_template.c: New file.
12396 * math/s_significand.c: Removed.
12397 * math/s_significandf.c: Removed.
12398 * math/s_significandl.c: Removed.
12399 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12400 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12401
12402 * math/e_exp2_template.c (declare_mgen_finite_alias,
12403 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12404 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12405 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12406
12407 2018-06-20 Florian Weimer <fweimer@redhat.com>
12408
12409 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12410
12411 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12412
12413 [BZ #23280]
12414 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12415 floating-point number to strtod functions rather than possibly
12416 negating result of those functions.
12417 * stdio-common/tst-scanf-round.c: New file.
12418 * stdio-common/Makefile (tests): Add tst-scanf-round.
12419 ($(objpfx)tst-scanf-round): Depend on $(libm).
12420
12421 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12422
12423 * sysdeps/mach/hurd/localplt.data: Move to...
12424 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12425 R_386_GLOB_DAT like on Linux i386.
12426
12427 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12428
12429 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12430 (SHM_STAT_ANY): New macro.
12431 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12432 (SHM_STAT_ANY): Likewise.
12433 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12434 (SHM_STAT_ANY): Likewise.
12435 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12436 (SHM_STAT_ANY): Likewise.
12437 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12438 (SHM_STAT_ANY): Likewise.
12439 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12440 (SHM_STAT_ANY): Likewise.
12441 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12442 (SHM_STAT_ANY): Likewise.
12443 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12444 (SHM_STAT_ANY): Likewise.
12445 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12446 (SHM_STAT_ANY): Likewise.
12447 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12448 (SHM_STAT_ANY): Likewise.
12449 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12450 (SHM_STAT_ANY): Likewise.
12451 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12452 (SHM_STAT_ANY): Likewise.
12453
12454 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12455 (SEM_STAT_ANY): New macro.
12456 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12457 (SEM_STAT_ANY): Likewise.
12458 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12459 (SEM_STAT_ANY): Likewise.
12460 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12461 (SEM_STAT_ANY): Likewise.
12462 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12463 (SEM_STAT_ANY): Likewise.
12464 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12465 (SEM_STAT_ANY): Likewise.
12466 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12467 (SEM_STAT_ANY): Likewise.
12468 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12469 (SEM_STAT_ANY): Likewise.
12470 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12471 (SEM_STAT_ANY): Likewise.
12472 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12473 (SEM_STAT_ANY): Likewise.
12474
12475 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12476 (MSG_STAT_ANY): New macro.
12477 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12478 (MSG_STAT_ANY): Likewise.
12479 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12480 (MSG_STAT_ANY): Likewise.
12481 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12482 (MSG_STAT_ANY): Likewise.
12483 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12484 (MSG_STAT_ANY): Likewise.
12485 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12486 (MSG_STAT_ANY): Likewise.
12487 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12488 (MSG_STAT_ANY): Likewise.
12489 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12490 (MSG_STAT_ANY): Likewise.
12491 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12492 (MSG_STAT_ANY): Likewise.
12493 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12494 (MSG_STAT_ANY): Likewise.
12495
12496 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12497 (MAP_TYPE): Change value to 0x2b.
12498
12499 2018-06-18 Florian Weimer <fweimer@redhat.com>
12500
12501 [BZ #15722]
12502 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12503 socket with SOCK_CLOEXEC.
12504
12505 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12506
12507 [BZ #23303]
12508 * sysdeps/powerpc/powerpc64/le/Makefile
12509 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12510 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12511 (gnulib-tests): Also add $(f128-loader-link) for
12512 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12513
12514 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12515
12516 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12517 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12518 of sendfile.
12519 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12520 (sendfile64): New strong alias.
12521 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12522 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12523 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12524 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12525 attribute.
12526 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12527 ___pthread_get_cleanup_stack.
12528 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12529 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12530 * mach/shortcut.awk: Make syscall stubs include
12531 <mach-shortcuts-hidden.h> and add hidden definition.
12532 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12533 (__mach_msg): Add hidden prototype.
12534 * mach/msg.c: Include <mach.h>.
12535 (__mach_msg): Add hidden definition.
12536 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12537 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12538 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12539 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12540 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12541 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12542 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12543 prototype and definition.
12544 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12545 hidden target for _hurd_self_sigstate.
12546
12547 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12548
12549 [BZ #23007]
12550 * stdlib/tst-strtod-nan-sign-main.c: New file.
12551 * stdlib/tst-strtod-nan-sign.c: Likewise.
12552 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12553 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12554 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12555 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12556 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12557
12558 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12559
12560 [BZ #23007]
12561 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12562 appropriate sign.
12563
12564 2018-06-14 Florian Weimer <fweimer@redhat.com>
12565
12566 [BZ #23290]
12567 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12568 that the result stays within the ISO-8859-1 range.
12569 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12570 characters are defined in IBM273.
12571
12572 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12573
12574 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12575 __mach_task_self): Remove attribute_hidden.
12576
12577 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12578
12579 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12580 ignore -Wrestrict for one test.
12581
12582 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12583 Szabolcs Nagy <szabolcs.nagy@arm.com>
12584
12585 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12586
12587 2018-06-14 Florian Weimer <fweimer@redhat.com>
12588
12589 * scripts/update-abilist.sh: Accept empty list of files to patch.
12590
12591 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12592
12593 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12594 test-xfail-check-abi-libmachuser): Add.
12595 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12596 __libc_read and __libc_write to __read and __write.
12597 * sysdeps/hurd/include/hurd/port.h: New file.
12598 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12599 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12600 __thread_switch, __evc_wait): Move declarations to...
12601 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12602 attribute_hidden.
12603 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12604 use PLT to call _hurd_self_sigstate.
12605
12606 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12607
12608 [BZ #23279]
12609 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12610 MAX_EXP as overflowing.
12611 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12612 overflow flag.
12613 (round_str): Output also whether result overflows in each rounding
12614 mode.
12615 * stdlib/tst-strtod-round-data: Add more tests.
12616 * stdlib/tst-strtod-round-data.h: Regenerated.
12617 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12618 (TEST): Handle extra arguments for overflow flags.
12619 (struct test_overflow): New type.
12620 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12621 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12622 (test_in_one_mode): Take argument with overflow information.
12623 (do_test): Update calls to test_in_one_mode.
12624
12625 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12626
12627 * elf/dl-load (_dl_dst_substitute): Correct comment.
12628 (_dl_dst_count): Likewise.
12629
12630 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12631 lll_futex_timed_wait.
12632
12633 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12634
12635 [BZ #23277]
12636 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12637 attribute.
12638 * math/test-nan-const.c: New file.
12639 * math/Makefile (tests): Add test-nan-const.
12640 (CFLAGS-test-nan-const.c): New variable.
12641
12642 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12643
12644 * benchtests/scripts/compare_strings.py (process_results): Add
12645 funcs argument. Compare only functions which are selected.
12646 (main): Check if base function is among selected functions.
12647 Pass selected functions to process_results.
12648 (__main__): Add -f/--functions argument.
12649
12650 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12651 Hongbo Zhang <hongbo.zhang@linaro.org>
12652
12653 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12654 __memcpy_falkor for phecda core.
12655 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12656 __memmove_falkor for phecda core.
12657 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12658 __memset_falkor for phecda core.
12659 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12660 for phecda core.
12661 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12662 macro to identify phecda core.
12663
12664 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12665 Andreas Schwab <schwab@suse.de>
12666 Dmitry V. Levin <ldv@altlinux.org>
12667 Florian Weimer <fweimer@redhat.com>
12668
12669 [BZ #23102]
12670 [BZ #21942]
12671 [BZ #18018]
12672 [BZ #23259]
12673 CVE-2011-0536
12674 * elf/dl-dst.h: Remove DL_DST_COUNT.
12675 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12676 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12677 (is_dst): Comment. Support ELF gABI.
12678 (_dl_dst_count): Comment. Simplify and count DSTs.
12679 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12680 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12681 locals.
12682
12683 2018-06-12 Zack Weinberg <zackw@panix.com>
12684
12685 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12686 * sysdeps/unix/sysv/linux/dl-sysdep.c
12687 Include not-cancel.h. Use __close_nocancel instead of __close,
12688 __open64_nocancel instead of __open, __read_nocancel instead of
12689 __libc_read, and __write_nocancel instead of __libc_write.
12690
12691 * csu/check_fds.c (check_one_fd)
12692 * sysdeps/posix/fdopendir.c (__fdopendir)
12693 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12694 instead of __fcntl and/or __libc_fcntl.
12695
12696 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12697 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12698 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12699 Use __open64_nocancel instead of __open_nocancel.
12700
12701 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12702 hidden_proto declarations to the end and issue them if either
12703 IS_IN(libc) or IS_IN(rtld).
12704 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12705 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12706 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12707 read_nocancel, waitpid_nocancel, write_nocancel.
12708
12709 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12710 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12711 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12712
12713 * nptl/pt-fcntl.c: New file.
12714 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12715 (libpthread-routines): Add pt-fcntl.
12716 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12717 (__libc_fcntl): Remove attribute_hidden.
12718 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12719 __fcntl_nocancel_adjusted, not fcntl_common.
12720 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12721 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12722 to fcntl_nocancel.c.
12723 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12724 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12726 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12727
12728 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12729 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12730 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12731 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12732 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12733 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12734 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12735 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12736 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12737 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12738 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12739 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12740 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12741 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12742 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12743 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12744 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12745 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12746 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12747 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12748
12749 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12750 libpthread-routines.
12751 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12752 defines nothing.
12753
12754 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12755 __libc_read, and __write instead of __libc_write. Define
12756 __open64 in addition to __open.
12757
12758 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12759
12760 [BZ #23250]
12761 [BZ #10686]
12762 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12763 to _private_tm[3] and add __glibc_reserved2.
12764 Add _Static_assert of offset of __private_ss == 0x30.
12765 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12766 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12767
12768 2018-06-12 Florian Weimer <fweimer@redhat.com>
12769
12770 x86: Make strncmp usable from rtld.
12771 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12772 __strncmp_ia32 if in libc (and not in rtld).
12773 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12774 strncmp if not in libc (and not to __strncmp_sse2).
12775
12776 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12777
12778 [BZ #23140]
12779 * localedata/locales/gd_GB (mon): Rename to...
12780 (alt_mon): This.
12781 (mon): Import from CLDR (genitive case).
12782 * localedata/locales/hsb_DE (mon): Rename to...
12783 (alt_mon): This.
12784 (mon): Import from CLDR (genitive case).
12785 * localedata/locales/wa_BE (mon): Rename to...
12786 (alt_mon): This.
12787 (mon): Add, fill with the proper genitive forms, but CLDR data
12788 is incomplete; completed according to the comments in this file.
12789 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12790
12791 * localedata/locales/wa_BE (country_name): Reword
12792 "Beljike" -> "Beldjike".
12793
12794 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12795
12796 [BZ #23272]
12797 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12798 cases of non-finite arguments.
12799 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12800
12801 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12802
12803 [BZ #23174]
12804 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12805
12806 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12807
12808 [BZ #23264]
12809 * include/unistd.h (__execvpex): New prototype.
12810 * posix/Makefile (tests): Add tst-spawn4.
12811 (tests-internal): Add tst-spawn4-compat.
12812 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12813 * posix/tst-spawn4-compat.c: New file.
12814 * posix/tst-spawn4.c: Likewise.
12815 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12816 binaries as shell scripts.
12817 * sysdeps/posix/spawni.c (__spawni): Likewise.
12818
12819 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12820
12821 [BZ #23145]
12822 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12823 ($(all-built-dso:=.dynsym): New target.
12824 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12825 ($(objpfx)check-initfini.out): New target.
12826 (generated): Add check-initfini.out.
12827 * scripts/check-initfini.awk: New file.
12828 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12829 (_fini): Likewise.
12830 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12831 (_fini): Likewise.
12832 * sysdeps/arm/crti.S (_init): Mark as hidden.
12833 (_fini): Likewise.
12834 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12835 (_fini): Likewise.
12836 * sysdeps/i386/crti.S (_init): Mark as hidden.
12837 (_fini): Likewise.
12838 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12839 (_fini): Likewise.
12840 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12841 (_fini): Likewise.
12842 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12843 (_fini): Likewise.
12844 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12845 (_fini): Likewise.
12846 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12847 (_fini): Likewise.
12848 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12849 (_fini): Likewise.
12850 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12851 (_fini): Likewise.
12852 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12853 (_fini): Likewise.
12854 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12855 (_fini): Likewise.
12856 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12857 (_fini): Likewise.
12858 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12859 (_fini): Likewise.
12860 * sysdeps/sh/crti.S (_init): Mark as hidden.
12861 (_fini): Likewise.
12862 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12863 (_fini): Likewise.
12864 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12865 (_fini): Likewise.
12866
12867 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12868
12869 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12870 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12871 and TF redirection to KFtype and KF only when the default
12872 long double type is not the IEEE 128-bit floating point type.
12873
12874 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12875
12876 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12877 macro.
12878 (HWCAP_USCAT): Likewise.
12879 (HWCAP_ILRCPC): Likewise.
12880 (HWCAP_FLAGM): Likewise.
12881 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12882 Increase to 28.
12883 (_dl_aarch64_cap_flags): Add new flag names.
12884
12885 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12886 (MAP_FIXED_NOREPLACE): New macro.
12887 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12888 (MAP_FIXED_NOREPLACE): Likewise.
12889 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12890 (MAP_FIXED_NOREPLACE): Likewise.
12891 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12892 (MAP_FIXED_NOREPLACE): Likewise.
12893 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12894 (MAP_FIXED_NOREPLACE): Likewise.
12895 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12896 (MAP_FIXED_NOREPLACE): Likewise.
12897 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12898 (MAP_FIXED_NOREPLACE): Likewise.
12899 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12900 (MAP_FIXED_NOREPLACE): Likewise.
12901 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12902 (MAP_FIXED_NOREPLACE): Likewise.
12903 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12904 (MAP_FIXED_NOREPLACE): Likewise.
12905 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12906 (MAP_FIXED_NOREPLACE): Likewise.
12907 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12908 (MAP_FIXED_NOREPLACE): Likewise.
12909 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12910 (MAP_FIXED_NOREPLACE): Likewise.
12911 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12912 (MAP_FIXED_NOREPLACE): Likewise.
12913 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12914 (MAP_FIXED_NOREPLACE): Likewise.
12915
12916 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12917 version to 4.17.
12918
12919 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12920
12921 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12922 version to 4.17
12923
12924 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12925
12926 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12927 int.
12928 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12929
12930 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12931
12932 * benchtests/scripts/compare_string.py: (process_results) Catch
12933 exception in non-existent base_func and catch exception in
12934 non-existent attribute.
12935 (parse_file) Catch exception if input file does not exist.
12936
12937 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12938
12939 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12940 options to avoid diff calculation and omit header, respectively.
12941 (main): process --no-diff and --no-header
12942
12943 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12944 H.J. Lu <hongjiu.lu@intel.com>
12945
12946 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12947 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12948 wcsncmp-sse2.
12949 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12950 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12951 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12952 and __wcsncmp_sse2.
12953 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12954 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12955 AVX unaligned load is fast and vzeroupper is preferred.
12956 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12957 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12958 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12959 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12960 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12961 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12962 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12963 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12964 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12965 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12966 is undefined.
12967
12968 2018-06-01 Florian Weimer <fweimer@redhat.com>
12969
12970 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12971 configuring with --disable-multi-arch, building with
12972 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12973 Haswell-era CPU.
12974
12975 2018-06-01 Florian Weimer <fweimer@redhat.com>
12976
12977 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12978 results from building with “-march=x86-64 -mtune=generic
12979 -mfpmath=sse” and running on a Haswell-era CPU.
12980
12981 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12982
12983 [BZ #18473]
12984 * soft-fp/sqrttf2.c: Remove file.
12985 * soft-fp/sqrtdf2.c: Move to ....
12986 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12987 <shlib-compat.h>.
12988 (__sqrtdf2): Make conditional on
12989 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12990 symbol.
12991 * soft-fp/sqrtsf2.c: Move to ....
12992 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12993 <shlib-compat.h>.
12994 (__sqrtsf2): Make conditional on
12995 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12996 symbol.
12997 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12998 (gcc-double-routines): Remove sqrtdf2.
12999 (gcc-quad-routines): Remove sqrttf2.
13000 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13001 Do not filter out sqrtsf2 and sqrtdf2.
13002 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13003 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13004
13005 2018-06-01 Florian Weimer <fweimer@redhat.com>
13006
13007 * sysdeps/generic/libcidn.abilist: Remove file.
13008
13009 2018-06-01 Florian Weimer <fweimer@redhat.com>
13010
13011 [BZ #23236]
13012 * libio/strfile.h (struct _IO_str_fields): Rename members to
13013 discourage their use and add comment.
13014 (_IO_STR_DYNAMIC): Remove unused macro.
13015 * libio/strops.c (_IO_str_init_static_internal): Do not use
13016 callback pointers. Call malloc and free.
13017 (_IO_str_overflow): Do not use callback pointers. Call malloc
13018 and free.
13019 (enlarge_userbuf): Likewise.
13020 (_IO_str_finish): Call free.
13021 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13022 _allocate_buffer_unused.
13023 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13024 and free.
13025 (enlarge_userbuf): Likewise.
13026 (_IO_wstr_finish): Call free.
13027 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13028 _allocate_buffer_unused, _free_buffer_unused.
13029 * libio/memstream.c (__open_memstream): Likewise.
13030 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13031 * libio/wmemstream.c (open_wmemstream): Likewise.
13032
13033 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13034
13035 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13036 AMD Ryzen 7 1800X.
13037
13038 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13039
13040 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13041 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13042 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13043 New file.
13044 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13045 Likewise.
13046 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13047
13048 2018-05-29 Florian Weimer <fweimer@redhat.com>
13049
13050 * support/Makefile (libsupport-routines): Add
13051 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13052 xpthread_barrierattr_setpshared.
13053 * support/xpthread_barrierattr_destroy.c: New file.
13054 * support/xpthread_barrierattr_init.c: Likewise.
13055 * support/xpthread_barrierattr_setpshared.c: Likewise.
13056
13057 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13058
13059 [BZ #23206]
13060 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13061 _r_debug and update DT_DEBUG for debugger.
13062
13063 2018-05-29 Florian Weimer <fweimer@redhat.com>
13064
13065 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13066 (tst-strtod5i.out): Likewise.
13067
13068 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13069
13070 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13071 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13072 (sparc64-quad-routines): New variable. Moved from ....
13073 [$(subdir) = soft-fp] (sysdep_routines): Add
13074 $(sparc64-quad-routines). Moved from ....
13075 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13076 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13077 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13078 moved from ....
13079 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13080 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13081 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13082 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13083 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13084 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13085 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13086 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13087 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13088 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13089 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13090 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13091 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13092 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13093 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13094 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13095 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13096 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13097 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13098 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13099 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13100 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13101 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13102 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13103 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13104 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13105 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13106 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13107 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13108 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13109 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13110 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13111 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13112 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13113 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13114 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13115 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13116 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13117 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13118 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13119 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13120 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13121 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13122 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13123 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13124 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13125 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13126 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13127 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13128 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13129 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13130 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13131 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13132 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13133 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13134 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13135 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13136 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13137
13138 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13139 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13140 (sparc32-quad-routines): New variable. Moved from ....
13141 [$(subdir) = soft-fp] (sysdep_routines): Add
13142 $(sparc32-quad-routines). Moved from ....
13143 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13144 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13145 moved from ....
13146 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13147 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13148 * sysdeps/sparc/sparc32/q_add.c: ... here.
13149 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13150 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13151 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13152 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13153 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13154 * sysdeps/sparc/sparc32/q_div.c: ... here.
13155 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13156 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13157 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13158 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13159 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13160 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13161 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13162 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13163 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13164 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13165 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13166 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13167 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13168 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13169 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13170 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13171 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13172 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13173 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13174 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13175 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13176 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13177 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13178 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13179 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13180 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13181 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13182 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13183 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13184 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13185 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13186 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13187 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13188 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13189 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13190 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13191 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13192 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13193 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13194 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13195 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13196 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13197 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13198 * sysdeps/sparc/sparc32/q_util.c: ... here.
13199 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13200 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13201 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13202 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13203
13204 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13205 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13206
13207 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13208 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13209 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13210 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13211
13212 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13213
13214 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13215 powerpc/soft-fp.
13216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13217 Likewise.
13218 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13219 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13220
13221 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13222
13223 [BZ #23171]
13224 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13225 double version.
13226
13227 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13228
13229 * sysdeps/sh/Implies: Remove sh/soft-fp.
13230 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13231 * sysdeps/sh/sfp-machine.h: ... here.
13232
13233 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13234
13235 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13236 (__mempcpy_erms): Skip zero length.
13237 (__memmove_erms): Likewise.
13238 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13239 (__memset_erms): Likewise.
13240
13241 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13242
13243 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13244 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13245 Add functions moved from ....
13246 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13247 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13248 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13249 from ....
13250 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13251 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13252 * sysdeps/alpha/e_sqrtl.c: ... here.
13253 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13254 * sysdeps/alpha/local-soft-fp.h: ... here.
13255 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13256 * sysdeps/alpha/ots_add.c: ... here.
13257 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13258 * sysdeps/alpha/ots_cmp.c: ... here.
13259 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13260 * sysdeps/alpha/ots_cmpe.c: ... here.
13261 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13262 * sysdeps/alpha/ots_cvtqux.c: ... here.
13263 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13264 * sysdeps/alpha/ots_cvtqx.c: ... here.
13265 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13266 * sysdeps/alpha/ots_cvttx.c: ... here.
13267 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13268 * sysdeps/alpha/ots_cvtxq.c: ... here.
13269 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13270 * sysdeps/alpha/ots_cvtxt.c: ... here.
13271 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13272 * sysdeps/alpha/ots_div.c: ... here.
13273 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13274 * sysdeps/alpha/ots_mul.c: ... here.
13275 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13276 * sysdeps/alpha/ots_nintxq.c: ... here.
13277 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13278 * sysdeps/alpha/ots_sub.c: ... here.
13279 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13280 * sysdeps/alpha/sfp-machine.h: ... here.
13281
13282 2018-05-23 Florian Weimer <fweimer@redhat.com>
13283
13284 [BZ #19728]
13285 [BZ #19729]
13286 [BZ #22247]
13287 CVE-2016-6261
13288 CVE-2016-6263
13289 CVE-2017-14062
13290 Switch to extern IDNA implementation (libidn2).
13291 * libidn: Remove subdirectory.
13292 * LICENSES: Do not mention licensing conditions for the removed
13293 libidn code.
13294 * config.h.in (HAVE_LIBIDN): Remove.
13295 * include/dlfcn.h (__libc_dlopen): Update comment.
13296 * include/idna.h: Remove file.
13297 * inet/Makefile (routines): Add idna.
13298 (tests-static, tests-internal): Add tst-idna_name_classify.
13299 (LOCALES): Generate locales for tests.
13300 (tst-idna_name_classify.out): Depend on generated locales.
13301 * inet/idna_name_classify.c: New file.
13302 * inet/tst-idna_name_classify.c: Likewise.
13303 * inet/net-internal.h (__idna_to_dns_encoding)
13304 (__idna_from_dns_encoding): Declare.
13305 * inet/net-internal.h (enum idna_name_classification): Define.
13306 (__idna_name_classify): Declare.
13307 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13308 __idna_from_dns_encoding.
13309 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13310 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13311 name as a fallback in case of encoding errors.
13312 (getnameinfo): Use DEPRECATED_NI_IDN.
13313 * inet/idna.c: New file.
13314 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13315 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13316 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13317 (modules-names): Add tst-no-libidn2.
13318 (extra-test-objs): Add tst-no-libidn2.os.
13319 (LDFLAGS-tst-no-libidn2.so): Set soname.
13320 (LOCALES): Set, and generate locales.
13321 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13322 (tst-resolv-ai_idn-latin1): Likewise.
13323 (tst-resolv-ai_idn-nolibidn2): Likewise.
13324 (tst-resolv-ai_idn.out): Depend on locales.
13325 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13326 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13327 tst-no-libidn2.so.
13328 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13329 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13330 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13331 * resolv/tst-resolv-ai_idn.c: New file.
13332 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13333 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13334 * resolv/tst-no-libidn2.c: Likewise.
13335 * support/support_format_addrinfo.c (format_ai_flags): Do not
13336 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13337 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13338 (gaih_inet): Call __idna_to_dns_encoding and
13339 __idna_from_dns_encoding, and use the original (punycode) name if
13340 __idna_from_dns_encoding fails due to an encoding error.
13341 (getaddrinfo): Use DEPRECATED_AI_IDN.
13342 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13343 * sysdeps/unix/inet/configure: Remove file.
13344 * sysdeps/unix/inet/configure.ac: Likewise.
13345
13346 2018-05-23 Florian Weimer <fweimer@redhat.com>
13347
13348 Implement allocate_once.
13349 * include/allocate_once.h: New file.
13350 * misc/allocate_once.c: Likewise.
13351 * misc/tst-allocate_once.c: Likewise.
13352 * misc/Makefile (routines): Add allocate_once.
13353 (tests-internal): Add tst-allocate_once.
13354 (generated): Add tst-allocate_once.mtrace,
13355 tst-allocate_once-mem.out.
13356 (tests-special): Add tst-allocate_once-mem.out.
13357 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13358 (tst-allocate_once-mem.out): Call mtrace.
13359 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13360
13361 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13362
13363 [BZ #23196]
13364 * string/test-memcpy.c (do_test1): New function.
13365 (test_main): Call it.
13366
13367 2018-05-23 Andreas Schwab <schwab@suse.de>
13368
13369 [BZ #23196]
13370 CVE-2018-11237
13371 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13372 (L(preloop_large)): Save initial destination pointer in %r11 and
13373 use it instead of %rax after the loop.
13374 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13375
13376 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13377
13378 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13379 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13380 -I../soft-fp. Moved from ....
13381 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13382 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13383 * sysdeps/aarch64/e_sqrtl.c: ... here.
13384 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13385 * sysdeps/aarch64/sfp-machine.h: ... here.
13386
13387 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13388 -Wmaybe-uninitialized around access to fq[0].
13389 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13390 Likewise.
13391
13392 [BZ #18471]
13393 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13394 aliases for non-libc case of versioned symbols.
13395 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13396 (llseek): Define as compat symbol if
13397 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13398 with link warning.
13399 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13400 Make into a compat symbol, disabled for minimum symbol version
13401 GLIBC_2.28 and later.
13402 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13403
13404 2018-05-22 Florian Weimer <fweimer@redhat.com>
13405
13406 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13407 not add -mpreferred-stack-boundary=4.
13408 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13409 (stack-align-test-flags): Likewise.
13410 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13411 Likewise.
13412 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13413 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13414 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13415 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13416 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13417 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13418 (CFLAGS-tst-align2.c): Likewise.
13419
13420 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13421
13422 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13423 (index_arch_Prefer_FSRM): Likewise.
13424 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13425 Also check Prefer_FSRM.
13426 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13427 Also return OPTIMIZE (erms) for Prefer_FSRM.
13428
13429 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13430
13431 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13432 (index_cpu_FSRM): Likewise.
13433 (reg_FSRM): Likewise.
13434
13435 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13436
13437 * math/gen-tgmath-tests.py: Import sys.
13438 (Tests.__init__): Initialize macros_seen.
13439 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13440 if requested to do so for this macro.
13441 (Tests.add_all_tests): Take argument for macro for which to
13442 generate tests.
13443 (Tests.check_macro_list): New function.
13444 (main): Handle check-list argument and argument specifying macro
13445 for which to generate tests.
13446 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13447 [PYTHON] (tgmath3-macro-tests): Likewise.
13448 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13449 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13450 not test-tgmath3.c.
13451 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13452 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13453 to CFLAGS.
13454 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13455 [PYTHON] ($(foreach
13456 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13457 rule.
13458 [PYTHON] (tests-special): Add
13459 $(objpfx)test-tgmath3-macro-list.out.
13460 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13461
13462 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13463 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13464 later.
13465
13466 [BZ #22639]
13467 * time/tzset.c (SECSPERDAY): Cast to time_t.
13468 * time/tst-y2039.c: New file.
13469 * time/Makefile (tests): Add tst-y2039.
13470
13471 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13472
13473 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13474 (PREFETCH_ONE_SET): Remove duplicate line.
13475
13476 2018-05-17 Florian Weimer <fweimer@redhat.com>
13477
13478 * sysdeps/generic/math-type-macros-double.h: Include
13479 <math-nan-payload-double.h> after <libm-alias-double.h>.
13480 * sysdeps/generic/math-type-macros-float.h: Include
13481 <math-nan-payload-float.h> after <libm-alias-float.h>.
13482 * sysdeps/generic/math-type-macros-float128.h: Include
13483 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13484 * sysdeps/generic/math-type-macros-ldouble.h: Include
13485 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13486
13487 2018-05-17 Andreas Schwab <schwab@suse.de>
13488
13489 * resolv/res_send.c (__res_context_send): Don't set errno when
13490 returing error after malloc failure.
13491
13492 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13493
13494 * nptl/allocatestack.c (allocate_stack): Remove the
13495 !__ASSUME_PRIVATE_FUTEX paths.
13496 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13497 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13498 Likewise.
13499 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13500 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13501 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13502 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13503 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13504 !__ASSUME_PRIVATE_FUTEX path.
13505 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13506 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13507 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13508 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13509 !__ASSUME_PRIVATE_FUTEX macros.
13510 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13511 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13512 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13513 * sysdeps/unix/sysv/linux/kernel-features.h
13514 (__ASSUME_PRIVATE_FUTEX): Removed.
13515
13516 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13517
13518 * math/Makefile (libm-narrow-fns): Add div.
13519 (libm-test-funcs-narrow): Likewise.
13520 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13521 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13522 * math/gen-auto-libm-tests.c (test_functions): Add div.
13523 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13524 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13525 (NARROW_DIV_TRIVIAL): Likewise.
13526 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13527 macro.
13528 (__ddivl): Likewise.
13529 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13530 ddiv.
13531 (CFLAGS-nldbl-ddiv.c): New variable.
13532 (CFLAGS-nldbl-fdiv.c): Likewise.
13533 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13534 __nldbl_ddivl.
13535 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13536 prototype.
13537 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13538 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13539 * math/auto-libm-test-in: Add tests of div.
13540 * math/auto-libm-test-out-narrow-div: New generated file.
13541 * math/libm-test-narrow-div.inc: New file.
13542 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13543 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13544 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13545 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13546 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13547 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13548 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13549 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13550 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13551 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13552 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13553 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13554 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13555 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13556 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13557 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13558 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13559 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13560 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13561 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13562 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13563 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13564 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13565 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13566 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13567 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13568 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13569 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13570 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13571 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13572 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13573 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13575 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13578 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13579 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13580 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13581 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13582 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13583 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13584 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13585 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13586
13587 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13588
13589 [BZ #23178]
13590 * nscd/nscd-client.h (sendfileall): Remove prototype.
13591 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13592 (handle_request): Use writeall instead of sendfileall.
13593 * nscd/aicache.c (addhstaiX): Likewise.
13594 * nscd/grpcache.c (cache_addgr): Likewise.
13595 * nscd/hstcache.c (cache_addhst): Likewise.
13596 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13597 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13598 * nscd/pwdcache.c (cache_addpw): Likewise.
13599 * nscd/servicescache.c (cache_addserv): Likewise.
13600 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13601 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13602 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13603 Remove define.
13604
13605 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13606
13607 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13608 Include <string/strncat.c>.
13609 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13610 alias.
13611 (__GI___strncat): New hidden alias.
13612
13613 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13614
13615 * sysdeps/mips/mips32/libm-test-ulps: Update.
13616 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13617
13618 2018-05-16 Florian Weimer <fweimer@redhat.com>
13619
13620 * support/Makefile (libsupport-routines): Add support_quote_blob,
13621 support_test_compare_blob.
13622 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13623 * support/check.h (TEST_COMPARE_BLOB): Define.
13624 (support_test_compare_blob): Declare.
13625 * support/support.h (support_quote_blob): Declare.
13626 * support/support_quote_blob.c: New file.
13627 * support/support_test_compare_blob.c: Likewise.
13628 * support/tst-support_quote_blob.c: Likewise.
13629 * support/tst-test_compare_blob.c: Likewise.
13630
13631 2018-05-16 Florian Weimer <fweimer@redhat.com>
13632
13633 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13634 of <strtod_nan_double.h>.
13635 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13636 instead of SET_MANTISSA.
13637 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13638 of include <strtod_nan_float.h>.
13639 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13640 instead of <strtod_nan_ldouble.h>.
13641 * stdlib/strtod_nan_double.h: Move to ...
13642 * sysdeps/generic/math-nan-payload-double.h: ... here.
13643 (FLOAT): Remove definition.
13644 (SET_MANTISSA): Rename to ...
13645 (SET_NAN_PAYLOAD): ... this.
13646 * stdlib/strtod_nan_float.h: Move to ...
13647 * sysdeps/generic/math-nan-payload-float.h: ... here.
13648 (FLOAT): Remove definition.
13649 (SET_MANTISSA): Rename to ...
13650 (SET_NAN_PAYLOAD): ... this.
13651 * sysdeps/generic/math-type-macros-double.h: Include
13652 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13653 instead of <math-svid-compat.h>.
13654 * sysdeps/generic/math-type-macros-float.h: Include
13655 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13656 instead of <math-svid-compat.h>.
13657 * sysdeps/generic/math-type-macros-float128.h: Include
13658 <math-nan-payload-float128.h>.
13659 * sysdeps/generic/math-type-macros-ldouble.h: Include
13660 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13661 instead of <math-svid-compat.h>.
13662 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13663 check for definition.
13664 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13665 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13666 Include <ieee754_float128.h>.
13667 (FLOAT): Remove definition.
13668 (SET_MANTISSA): Rename to ...
13669 (SET_NAN_PAYLOAD): ... this.
13670 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13671 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13672 Do not include <float128_private.h>.
13673 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13674 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13675 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13676 (FLOAT): Remove definition.
13677 (SET_MANTISSA): Rename to ...
13678 (SET_NAN_PAYLOAD): ... this.
13679 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13680 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13681 (FLOAT): Remove definition.
13682 (SET_MANTISSA): Rename to ...
13683 (SET_NAN_PAYLOAD): ... this.
13684 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13685 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13686 (FLOAT): Remove definition.
13687 (SET_MANTISSA): Rename to ...
13688 (SET_NAN_PAYLOAD): ... this.
13689 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13690 of "../stdlib/strtod_nan_double.h".
13691 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13692 of "../stdlib/strtod_nan_float.h".
13693 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13694 instead of "../stdlib/strtod_nan_ldouble.h".
13695 * manual/arith.texi (Parsing of Floats): Adjust comment.
13696
13697 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13698
13699 * math/Makefile (libm-narrow-fns): Add mul.
13700 (libm-test-funcs-narrow): Likewise.
13701 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13702 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13703 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13704 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13705 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13706 (NARROW_MUL_TRIVIAL): Likewise.
13707 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13708 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13709 macro.
13710 (__dmull): Likewise.
13711 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13712 dmul.
13713 (CFLAGS-nldbl-dmul.c): New variable.
13714 (CFLAGS-nldbl-fmul.c): Likewise.
13715 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13716 __nldbl_dmull.
13717 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13718 prototype.
13719 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13720 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13721 * math/auto-libm-test-in: Add tests of mul.
13722 * math/auto-libm-test-out-narrow-mul: New generated file.
13723 * math/libm-test-narrow-mul.inc: New file.
13724 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13725 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13726 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13727 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13728 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13729 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13730 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13731 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13732 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13733 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13734 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13735 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13736 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13737 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13738 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13739 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13740 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13741 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13742 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13743 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13744 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13745 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13746 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13747 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13748 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13749 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13750 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13751 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13752 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13753 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13754 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13755 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13758 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13760 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13761 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13762 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13763 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13764 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13765 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13766 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13767 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13768
13769 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13770
13771 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13772 with *%eax in call.
13773
13774 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13775
13776 * sysdeps/i386/ldsodefs.h: Removed.
13777 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13778 * sysdeps/x86/ldsodefs.h: This.
13779 (La_i86_regs): New.
13780 (La_i86_retval): Likewise.
13781 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13782 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13783
13784 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13785
13786 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13787 unnecessary testl.
13788
13789 2018-05-13 Alan Modra <amodra@gmail.com>
13790
13791 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13792 R_PARISC_TLS_DTPOFF32 reloc addend.
13793
13794 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13795
13796 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13797 * math/math.h: Restrict the prototype definition for the functions
13798 issignaling(_Float128) and iszero(_Float128); and template
13799 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13800 __HAVE_FLOAT128_UNLIKE_LDBL.
13801 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13802 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13803 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13804 __f128() constants; define the type _Float128 as long double;
13805 and reuse long double in __CFLOAT128.
13806
13807 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13808
13809 * sysdeps/generic/math_private.h: Do not include
13810 <math-barriers.h>.
13811 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13812 <math_private.h>.
13813 * math/fromfp.h: Include <math-barriers.h>.
13814 * math/math-narrow.h: Likewise.
13815 * math/s_nextafter.c: Likewise.
13816 * math/s_nexttowardf.c: Likewise.
13817 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13818 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13819 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13820 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13821 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13822 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13823 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13824 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13825 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13826 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13827 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13828 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13829 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13830 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13831 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13832 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13833 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13834 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13835 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13836 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13837 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13838 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13839 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13840 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13841 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13842 * sysdeps/ieee754/k_standardl.c: Likewise.
13843 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13844 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13845 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13846 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13847 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13848 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13849 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13850 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13851 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13852 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13853 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13854 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13855 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13856 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13857 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13858 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13859 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13860 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13861 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13862 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13863 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13864 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13865
13866 2018-05-11 Florian Weimer <fweimer@redhat.com>
13867
13868 Use 64-bit epoch values in the time zone file parser.
13869 * include/time.h (internal_time_t): Define.
13870 (__tzfile_compute): Use it.
13871 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13872 member.
13873 (transitions): Switch to internal_time_t.
13874 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13875 types.
13876 (__tzfile_compute): Use internal_time_t for timer argument. Check
13877 for truncation before calling __offtime.
13878
13879 2018-05-11 Florian Weimer <fweimer@redhat.com>
13880
13881 [BZ #23166]
13882 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13883 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13884 Likewise.
13885 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13886 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13887 export without --enable-obsolete-rpc.
13888 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13889 symbol. This should not have been exported, ever.
13890
13891 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13892
13893 [BZ #23152]
13894 * localedata/locales/gd_GB (abmon): Fix typo in May:
13895 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13896
13897 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13898
13899 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13900 Use multiple registers to copy data in loop tail.
13901
13902 * sysdeps/aarch64/multiarch/memmove_falkor.S
13903 (__memmove_falkor): Use multiple registers to move data in
13904 loop tail.
13905
13906 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13907
13908 * math/math-underflow.h: New file.
13909 * sysdeps/generic/math_private.h: Do not include <float.h>.
13910 (fabs_tg): Remove macro. Moved to math-underflow.h.
13911 (min_of_type_f): Likewise.
13912 (min_of_type_): Likewise.
13913 (min_of_type_l): Likewise.
13914 (min_of_type_f128): Likewise.
13915 (min_of_type): Likewise.
13916 (math_check_force_underflow): Likewise.
13917 (math_check_force_underflow_nonneg): Likewise.
13918 (math_check_force_underflow_complex): Likewise.
13919 * math/e_exp2_template.c: Include <math-underflow.h>.
13920 * math/k_casinh_template.c: Likewise.
13921 * math/s_catan_template.c: Likewise.
13922 * math/s_catanh_template.c: Likewise.
13923 * math/s_ccosh_template.c: Likewise.
13924 * math/s_cexp_template.c: Likewise.
13925 * math/s_clog10_template.c: Likewise.
13926 * math/s_clog_template.c: Likewise.
13927 * math/s_csin_template.c: Likewise.
13928 * math/s_csinh_template.c: Likewise.
13929 * math/s_csqrt_template.c: Likewise.
13930 * math/s_ctan_template.c: Likewise.
13931 * math/s_ctanh_template.c: Likewise.
13932 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13933 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13934 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13935 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13936 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13937 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13938 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13939 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13940 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13941 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13942 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13943 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13944 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13945 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13946 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13947 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13948 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13949 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13950 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13951 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13952 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13953 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13954 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13955 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13956 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13957 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13958 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13959 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13960 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13961 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13962 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13963 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13964 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13965 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13966 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13967 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13968 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13969 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13970 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13971 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13972 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13973 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13974 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13975 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13976 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13977 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13978 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13979 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13980 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13981 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13982 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13983 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13984 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13985 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13986 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13987 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13988 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13989 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13990 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13991 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13992 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13993 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13994 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13995 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13996 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13997 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13998 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13999 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14000 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14001 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14002 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14003 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14004 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14005 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14006 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14007 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14008 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14009 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14010 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14011 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14012 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14013 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14014 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14015 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14016
14017 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14018
14019 * sysdeps/generic/math-barriers.h: New file.
14020 * sysdeps/generic/math_private.h [!math_opt_barrier]
14021 (math_opt_barrier): Move to math-barriers.h.
14022 [!math_opt_barrier] (math_force_eval): Likewise.
14023 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14024 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14025 math-barriers.h.
14026 (math_force_eval): Likewise.
14027 * sysdeps/alpha/fpu/math-barriers.h: New file.
14028 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14029 math-barriers.h.
14030 (math_force_eval): Likewise.
14031 * sysdeps/x86/fpu/math-barriers.h: New file.
14032 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14033 math-barriers.h.
14034 (math_force_eval): Likewise.
14035 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14036 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14037 multiple-include guard for rename.
14038 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14039 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14040 math-barriers.h.
14041 (math_force_eval): Likewise.
14042
14043 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14044
14045 [BZ #22786]
14046 CVE-2018-11236
14047 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14048 computation.
14049 * stdlib/Makefile (test-bz22786): New test.
14050 * stdlib/test-bz22786.c: New test.
14051
14052 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14053
14054 * include/math-narrow-eval.h: New file. Contents moved from ....
14055 * sysdeps/generic/math_private.h: ... here.
14056 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14057 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14058 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14059 * stdlib/strtod_l.c: Likewise.
14060 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14061 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14062 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14063 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14064 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14065 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14066 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14067 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14068 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14069 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14070 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14071 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14072 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14073 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14074 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14075 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14076 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14077 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14078 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14079 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14080 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14081 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14082 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14083 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14084 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14085 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14086 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14087 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14088 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14089
14090 2018-05-08 Andreas Schwab <schwab@suse.de>
14091
14092 * sysdeps/nptl/internaltypes.h: Fix comment.
14093
14094 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14095
14096 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14097 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14098 hidden.
14099
14100 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14101
14102 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14103 of I into loop header.
14104 * benchtests/bench-memmove-walk.c
14105 (test_main): Likewise.
14106
14107 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14108
14109 Revert:
14110 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14111 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14112
14113 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14114
14115 [BZ #20419]
14116 * elf/dl-load.c (open_verify): Fix stack overflow.
14117 * elf/Makefile (tst-big-note): New test.
14118 * elf/tst-big-note-lib.S: New.
14119 * elf/tst-big-note.c: New.
14120
14121 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14122
14123 * scripts/abilist.awk: Ignore absolute symbols.
14124 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14125 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14126 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14127 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14128 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14129 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14130 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14131 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14132 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14133 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14134 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14135 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14136 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14138 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14139 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14140 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14143 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14144 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14145 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14146 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14147 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14148 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14149 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14150 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14151 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14152 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14153 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14154 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14155 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14156 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14157 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14158 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14159 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14160 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14161 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14162 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14163 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14164 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14166 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14167 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14168 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14169 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14181 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14182 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14184 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14185 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14194 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14195 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14198 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14199 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14200 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14201 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14202 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14209 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14210 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14212 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14213 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14214 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14215 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14216 Likewise.
14217 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14218 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14219 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14220 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14221 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14222 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14223 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14224 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14225 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14226 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14227 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14228 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14229 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14230 Likewise.
14231 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14232 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14233 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14234 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14235 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14236 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14237 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14238 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14239 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14240 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14241 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14242 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14243 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14244 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14245 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14246 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14247 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14248 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14249 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14250 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14251 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14252 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14253 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14254 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14255 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14256 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14257 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14258 Likewise.
14259 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14260 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14261 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14262 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14263 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14264 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14265 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14266 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14267 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14268 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14269 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14270 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14271 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14272 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14273 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14274 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14275 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14276 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14277 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14278 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14279 Likewise.
14280 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14281 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14282 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14283 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14284 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14285 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14286 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14287 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14288 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14289 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14290 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14291 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14292 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14293 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14294 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14295 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14296 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14297 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14298 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14299 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14300 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14301 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14302 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14303 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14304 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14305 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14306 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14307 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14310 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14312 Likewise.
14313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14314 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14318 Likewise.
14319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14320 Likewise.
14321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14323 Likewise.
14324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14326 Likewise.
14327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14328 Likewise.
14329 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14332 Likewise.
14333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14334 Likewise.
14335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14336 Likewise.
14337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14339 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14341 Likewise.
14342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14348 Likewise.
14349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14351 Likewise.
14352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14353 Likewise.
14354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14355 Likewise.
14356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14357 Likewise.
14358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14361 Likewise.
14362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14363 Likewise.
14364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14365 Likewise.
14366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14369 Likewise.
14370 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14384 Likewise.
14385 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14389 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14391 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14394 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14395 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14396 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14397 Likewise.
14398 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14403 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14404 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14407 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14408 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14409 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14417 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14418 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14419 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14420 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14421 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14422 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14423 Likewise.
14424 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14425 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14427 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14428 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14429 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14430 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14432 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14433 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14437 Likewise.
14438 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14446 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14449 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14450 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14466 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14476
14477 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14478
14479 [BZ #23137]
14480 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14481 Use atomic_load_acquire to load __tid.
14482
14483 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14484
14485 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14486 Restore the pointer into %rdx, after syscall and use %rdx,
14487 instead of %rsi, to restore context.
14488
14489 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14490
14491 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14492 Pop the pointer into %rdx after syscall and use %rdx, instead
14493 of %rsi, to restore context.
14494
14495 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14496
14497 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14498 handlers after setjmp.
14499 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14500 defined.
14501 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14502 <libc-pointer-arith.h>.
14503 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14504 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14505 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14506 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14507 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14508 * sysdeps/x86/__longjmp_cancel.S: New file.
14509 * sysdeps/x86/longjmp.c: Likewise.
14510 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14511
14512 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14513
14514 * NEWS: Add ustat.h deprecation entry.
14515 * bits/ustat.h: Remove file.
14516 * misc/sys/ustat.h: Likewise.
14517 * misc/ustat.h: Likewise.
14518 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14519 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14520 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14521 compatibility mode.
14522 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14523 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14524 generic Linux implementation.
14525
14526 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14527
14528 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14529 * math/w_expl_compat.c: Likewise.
14530 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14531
14532 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14533
14534 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14535
14536 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14537
14538 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14539 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14540 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14541 Remove.
14542 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14544 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14545 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14546 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14547 and SYSCALL_LL64.
14548
14549 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14550
14551 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14552
14553 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14554 * math/w_asin_template.c: Likewise.
14555 * math/w_atanh_template.c: Likewise.
14556
14557 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14558
14559 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14560 to powerpc/powerpc64/be for big-endian.
14561 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14562 little-endian.
14563
14564 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14565 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14566 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14567 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14568 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14569 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14570 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14571 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14572 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14573 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14574 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14575 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14576 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14577 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14578 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14579 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14580 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14581 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14582 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14583 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14584 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14585 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14586 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14587 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14588 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14589 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14590 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14591 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14592 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14593 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14594 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14595 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14596
14597 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14598 adjusted to imply powerpc64 and older processors on powerpc64/be.
14599 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14600 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14601 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14602 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14603 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14604 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14605 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14606 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14607 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14608 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14609 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14610 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14611 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14612 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14613 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14614 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14615 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14616 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14617 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14618 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14619 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14620 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14621 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14622 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14623 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14624 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14625 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14626 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14627 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14628 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14629 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14630
14631 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14632 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14633 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14634 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14635
14636 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14637 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14638 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14639 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14640
14641 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14642 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14643 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14644 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14645 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14646 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14647 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14648 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14649 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14650 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14651 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14652
14653 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14654 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14655 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14656 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14657 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14658 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14659 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14660 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14661 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14662 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14663 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14664
14665 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14666 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14667 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14668 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14669 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14670 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14671 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14672 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14673 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14674 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14675 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14676 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14677
14678 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14679 and adjusted to imply olders processors.
14680 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14681 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14682 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14683 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14684 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14685 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14686 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14687 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14688 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14689 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14690 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14691
14692 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14693 powerpc64/le.
14694 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14695 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14696
14697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14698 powerpc64le.
14699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14701
14702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14703 powerpc64/be.
14704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14705 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14707
14708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14709 powerpc64 and adjusted.
14710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14711 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14713 Likewise.
14714
14715 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14716
14717 * sysdeps/tile: Remove.
14718 * sysdeps/unix/sysv/linux/tile: Likewise.
14719 * README (tilegx-*-linux-gnu): Remove from list of supported
14720 configurations.
14721 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14722 contribution of support for generic Linux kernel syscall
14723 interface.
14724 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14725 tilegx configurations.
14726 (Config.install_linux_headers): Do not handle tile.
14727 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14728 in comment.
14729 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14730 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14731 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14732 conditional undefine and redefine.
14733 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14734 in comment.
14735 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14736 conditional undefine and redefine.
14737
14738 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14739
14740 * signal/tst-sigaction.c: New file to test BZ #23069.
14741 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14742
14743 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14744
14745 [BZ #22766]
14746 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14747 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14748 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14749 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14750
14751 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14752
14753 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14754 _DIRENT_MATCHES_DIRENT64 is not defined.
14755 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14756 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14757 is defined.
14758 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14759 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14760
14761 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14762
14763 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14764 version to GCC 8 branch.
14765
14766 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14767
14768 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14769 (check_no_hidden): Use type of original function when declaring
14770 alias.
14771
14772 * sysdeps/unix/sysv/linux/sys/ptrace.h
14773 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14774 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14775 (struct __ptrace_seccomp_metadata): New type.
14776 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14777 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14778 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14779 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14780 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14781 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14782 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14783 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14784 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14785 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14786 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14787 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14788 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14789 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14790 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14791 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14792
14793 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14794
14795 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14796 defined.
14797 * dirent/versionsort.c (versionsort): Likewise.
14798 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14799 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14800 * dirent/versionsort64.c (versionsort64): Likewise.
14801 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14802 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14803 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14804 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14805 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14806 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14807 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14808 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14809 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14810 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14813 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14814 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14815
14816 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14817
14818 * elf/elf.h (NT_PPC_PKEY): New macro.
14819
14820 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14821
14822 [BZ #23094]
14823 * localedata/locales/hr_HR: fix thousands_sep and
14824 mon_thousands_sep
14825
14826 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14827
14828 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14829 (XTABS): Define to TAB3.
14830
14831 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14832
14833 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14834
14835 * dirent/scandir-tail-common.c: New file.
14836 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14837 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14838 * dirent/scandir.c: Use scandir-tail-common.c.
14839 * dirent/scandirat.c: Likewise.
14840 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14841 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14842 if _DIRENT_MATCHES_DIRENT64 is defined.
14843 * dirent/scandirat64.c (scandirat64): Likewise.
14844 * include/dirent.h (__scandir_tail): Only define iff
14845 _DIRENT_MATCHES_DIRENT64 is not defined.
14846 (__scandir64_tail): Define regardless.
14847 (__scandirat, scandirat64): Remove libc_hidden_proto.
14848 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14849 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14851 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14852 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14853 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14854 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14855
14856 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14857
14858 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14859 New macro.
14860 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14861 Increase to 24.
14862 (_dl_aarch64_cap_flags): Add asimdfhm.
14863
14864 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14865
14866 * sysdeps/nios2/libm-test-ulps: Update.
14867
14868 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14869
14870 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14871 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14872
14873 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14874 requirements.
14875 (_DIRENT_MATCHES_DIRENT64): Undef
14876 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14877 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14878 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14879 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14880 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14881 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14882 use getdents64 syscalls as base.
14883 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14884 symbol if required.
14885 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14886 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14887 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14888 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14889 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14890 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14891 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14892 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14893 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14894 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14895 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14896
14897 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14898
14899 * scripts/test_printers_common.py (init_test): Disable lock elision.
14900
14901 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14902
14903 * math/test-tgmath.c (count_double, count_float,
14904 count_ldouble, count_cdouble, count_cfloat,
14905 count_cldouble): Use volatile int.
14906
14907 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14908
14909 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14910 (conformtest-xfail-conds): Add i386-gnu.
14911 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14912 i386-gnu.
14913 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14914 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14915 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14916 msqid_ds.msg_lrpid): Likewise.
14917 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14918 Likewise.
14919 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14920 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14921 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14922 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14923 unsigned int.
14924 (struct statvfs64): Likewise.
14925 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14926 Likewise.
14927 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14928 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14929 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14930 instead of wait_queue.
14931 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14932 instead of vm_area_struct.
14933 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14934 struct sched_param definition to it.
14935 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14936 * bits/types/struct_sched_param.h: New file.
14937 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14938 <bits/types/struct_sched_param.h> instead of <sched.h>.
14939 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14940 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14941 generic version but include <bits/pthreadtypes.h> to make struct
14942 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14943 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14944 non-compliant.
14945 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14946 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14947 [__USE_XOPEN] (OFDEL): New macro.
14948 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14949 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14950 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14951 prototypes.
14952 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14953 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14954 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14955 non-compliant.
14956 * sysdeps/i386/sys/ucontext.h: Likewise.
14957 * sysdeps/m68k/sys/ucontext.h: Likewise.
14958 * sysdeps/mips/sys/ucontext.h: Likewise.
14959 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14960 * sysdeps/mach/hurd/i386/Makefile
14961 (test-xfail-POSIX/fcntl.h/conform): Add.
14962 (test-xfail-POSIX/signal.h/conform): Add.
14963 (test-xfail-POSIX/semaphore.h/conform): Add.
14964 (test-xfail-POSIX/regex.h/conform): Add.
14965 (test-xfail-POSIX/aio.h/conform): Add.
14966 (test-xfail-POSIX/mqueue.h/conform): Add.
14967 (test-xfail-POSIX/sys/types.h/conform): Add.
14968 (test-xfail-UNIX98/fcntl.h/conform): Add.
14969 (test-xfail-UNIX98/netdb.h/conform): Add.
14970 (test-xfail-UNIX98/signal.h/conform): Add.
14971 (test-xfail-UNIX98/semaphore.h/conform): Add.
14972 (test-xfail-UNIX98/regex.h/conform): Add.
14973 (test-xfail-UNIX98/aio.h/conform): Add.
14974 (test-xfail-UNIX98/ftw.h/conform): Add.
14975 (test-xfail-UNIX98/mqueue.h/conform): Add.
14976 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14977 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14978 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14979 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14980 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14981 (test-xfail-UNIX98/sys/types.h/conform): Add.
14982 (test-xfail-UNIX98/stdlib.h/conform): Add.
14983 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14984 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14985 (test-xfail-POSIX2008/netdb.h/conform): Add.
14986 (test-xfail-POSIX2008/signal.h/conform): Add.
14987 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14988 (test-xfail-POSIX2008/regex.h/conform): Add.
14989 (test-xfail-POSIX2008/aio.h/conform): Add.
14990 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14991 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14992 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14993 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14994 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14995 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14996 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14997 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14998 (test-xfail-XOPEN2K/signal.h/conform): Add.
14999 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15000 (test-xfail-XOPEN2K/regex.h/conform): Add.
15001 (test-xfail-XOPEN2K/aio.h/conform): Add.
15002 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15003 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15004 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15005 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15006 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15007 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15008 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15009 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15010 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15011 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15012 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15013 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15014 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15015 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15016 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15017 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15018 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15019 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15020 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15021 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15022 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15023 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15024 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15025 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15026 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15027 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15028 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15029 i386-gnu.
15030 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15031 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15032
15033 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15034
15035 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15036 --enable-obsolete for powerpc-linux-gnuspe.
15037
15038 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15039
15040 * conform/data/sys/un.h-data: Allow sun_ prefix.
15041 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15042 prototypes.
15043 * sysdeps/mach/include/mach.h: Likewise.
15044 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15045 * sysdeps/mach/include/mach_error.h: Likewise.
15046
15047 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15048
15049 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15050 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15051 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15052 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15053
15054 2018-04-16 Andreas Schwab <schwab@suse.de>
15055
15056 [BZ #19527]
15057 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15058
15059 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15060
15061 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15062 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15063
15064 2018-04-12 DJ Delorie <dj@redhat.com>
15065
15066 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15067 version to 4.16.
15068
15069 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15070
15071 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15072 (struct kernel_sigaction): Use the same definition on 31bit as is used
15073 on 64bit.
15074
15075 2018-04-09 Florian Weimer <fweimer@redhat.com>
15076
15077 [BZ #23037]
15078 * resolv/res_send.c (send_dg): Use designated initializers instead
15079 of assignment to zero-initialize other fields of struct mmsghdr.
15080
15081 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15082
15083 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15084 __READDIR_ALIAS): Undefine after usage.
15085 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15086 __READDIR_R_ALIAS): Likewise.
15087 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15088 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15089 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15090 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15091 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15092 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15093 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15094 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15095 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15096 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15097 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15098 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15099 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15100 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15101 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15102 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15103 * sysdeps/unix/sysv/linux/readdir.c: New file.
15104 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15105 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15106 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15107
15108 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15109
15110 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15111
15112 * manual/charset.texi (Converting a Character): Fix typo.
15113
15114 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15115
15116 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15117
15118 * sysdeps/arm/libm-test-ulps: Update.
15119
15120 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15121 as base implementation.
15122 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15123 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15124 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15125 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15126 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15127 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15128 remove unrequired definitions and update comments.
15129 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15130 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15131 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15132 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15133 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15134 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15135 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15136 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15137 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15138 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15139 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15140 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15141 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15142 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15143 and RESET_SA_RESTORER hooks.
15144
15145 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15146
15147 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15148
15149 2018-04-05 Florian Weimer <fweimer@redhat.com>
15150
15151 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15152 integer overflow, memory leak on error, and indeterminate errno
15153 value. Add a null wide character to terminate the result string.
15154 * manual/charset.texi (Converting a Character): Mention embedded
15155 null bytes in the mbrtowc input string. Explain what happens in
15156 the -2 result case. Do not claim that mbrtowc is simple or
15157 obvious to use. Adjust the description of the code example. Use
15158 @code, not @var, for concrete variables.
15159
15160 2018-04-05 Florian Weimer <fweimer@redhat.com>
15161
15162 * manual/examples/mbstouwcs.c: New file.
15163 * manual/charset.texi (Converting a Character): Include it.
15164
15165 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15166
15167 * include/dirent.h (dirfd): Add hidden proto.
15168 * dirent/dirfd.c (dirfd): Add hidden def.
15169 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15170 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15171
15172 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15173
15174 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15175 sin, cos and sincos to 1 ULP.
15176
15177 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15178
15179 [BZ #19818]
15180 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15181 symbols.
15182 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15183 * elf/tst-absolute-sym.c: New file.
15184 * elf/tst-absolute-sym-lib.c: New file.
15185 * elf/tst-absolute-sym-lib.lds: New file.
15186 * elf/Makefile (tests): Add `tst-absolute-sym'.
15187 (modules-names): Add `tst-absolute-sym-lib'.
15188 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15189 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15190 ($(objpfx)tst-absolute-sym): New dependency.
15191
15192 [BZ #19818]
15193 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15194 parameter.
15195 (SYMBOL_ADDRESS): New macro.
15196 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15197 SYMBOL_ADDRESS for symbol address calculation.
15198 * elf/dl-runtime.c (_dl_fixup): Likewise.
15199 (_dl_profile_fixup): Likewise.
15200 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15201 * elf/rtld.c (dl_main): Likewise.
15202 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15203 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15204 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15205 (elf_machine_rela): Likewise.
15206 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15207 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15208 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15209 (elf_machine_rela): Likewise.
15210 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15211 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15212 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15213 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15214 Likewise.
15215 (elf_machine_reloc): Likewise.
15216 (elf_machine_got_rel): Likewise.
15217 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15218 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15219 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15220 Likewise.
15221 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15222 Likewise.
15223 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15224 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15225 Likewise.
15226 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15227 Likewise.
15228 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15229 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15230 Likewise.
15231 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15232 Likewise.
15233 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15234 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15235
15236 2018-04-04 Zack Weinberg <zackw@panix.com>
15237
15238 * sysdeps/generic/internal-signals.h: Include signal.h,
15239 sigsetops.h, and stdbool.h.
15240 (__libc_signal_block_all): Actually block all signals.
15241 (__libc_signal_block_app): Likewise.
15242 (__libc_signal_restore_set): Actually restore the signal mask.
15243
15244 2018-04-04 Florian Weimer <fweimer@redhat.com>
15245
15246 inet: Actually build and run tst-deadline.
15247 * inet/Makefile (tests-internal): Add tst-deadline and do not
15248 overwrite the variable.
15249 (tests-static-internal): Remove variable.
15250
15251 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15252
15253 [BZ #22947]
15254 * bits/uio-ext.h (RWF_APPEND): New.
15255 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15256 * manual/llio.texi: Document RWF_APPEND.
15257 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15258 (RWF_SUPPORTED): Add RWF_APPEND.
15259
15260 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15261
15262 [BZ #22391]
15263 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15264 check for internal nptl signals.
15265 * nptl/sigaction.c (__sigaction): Likewise.
15266 * signal/sigaddset.c (sigaddset): Likewise.
15267 * signal/sigdelset.c (sigdelset): Likewise.
15268 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15269 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15270 value.
15271 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15272 to filter out internal nptl signals.
15273 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15274 also check realtime signals using standard macros.
15275 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15276 __is_internal_signal, __libc_signal_block_all,
15277 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15278 * sysdeps/nptl/sigfillset.c: Remove file.
15279 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15280 Change return to bool.
15281 (__clear_internal_signals): Remove SIGTIMER clean since it is
15282 equal to SIGCANEL on Linux.
15283 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15284 signal set was constructed using standard functions.
15285
15286 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15287
15288 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15289 ifname is too long.
15290 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15291 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15292 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15293 hidden def.
15294 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15295 * signal/sigaddset.c: Include <sigsetopts.h>.
15296 * signal/sigdelset.c: Likewise.
15297
15298 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15299
15300 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15301 (__cos): Likewise.
15302 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15303 logic as sin and cos.
15304
15305 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15306
15307 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15308 inputs. Return correct sign.
15309 (do_sincos): Remove small input check before do_sin, let do_sin set
15310 the sign.
15311 (__sin): Likewise.
15312 (__cos): Likewise.
15313
15314 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15315
15316 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15317 (do_cos_slow): Likewise.
15318 (do_sin_slow): Likewise.
15319 (reduce_and_compute): Likewise.
15320 (slow): Likewise.
15321 (slow1): Likewise.
15322 (slow2): Likewise.
15323 (sloww): Likewise.
15324 (sloww1): Likewise.
15325 (sloww2): Likewise.
15326 (bslow): Likewise.
15327 (bslow1): Likewise.
15328 (bslow2): Likewise.
15329 (cslow2): Likewise.
15330
15331 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15332
15333 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15334 (do_cos): Remove corp parameter and calculations.
15335 (do_sin): Likewise.
15336 (do_sincos): Remove cor variable.
15337 (__sin): Use do_sincos for huge inputs.
15338 (__cos): Likewise.
15339 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15340 (reduce_and_compute_sincos): Remove unused function.
15341
15342 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15343
15344 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15345 reduce_sincos, improve accuracy to 136 bits.
15346 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15347 (__sin): Use improved reduction and simplified do_sincos calculation.
15348 (__cos): Likewise.
15349 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15350
15351 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15352
15353 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15354 (do_sincos_2): Likewise.
15355 (__sin): Remove middle range reduction case.
15356 (__cos): Likewise.
15357 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15358 reduction case.
15359
15360 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15361
15362 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15363 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15364 inputs.
15365 (__cos): Likewise.
15366 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15367
15368 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15369
15370 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15371 version to 4.16
15372
15373 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15374
15375 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15376 Remove definitions.
15377 (opendir_oflags): Use O_DIRECTORY regardless.
15378 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15379 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15380
15381 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15382
15383 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15384 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15385 macros.
15386 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15387 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15388 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15389 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15390 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15391 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15392
15393 * htl/Makefile: Bump licence to LGPL 2.1+.
15394 * htl/alloca_cutoff.c: Likewise.
15395 * htl/cthreads-compat.c: Likewise.
15396 * htl/lockfile.c: Likewise.
15397 * htl/pt-alloc.c: Likewise.
15398 * htl/pt-cancel.c: Likewise.
15399 * htl/pt-cleanup.c: Likewise.
15400 * htl/pt-create.c: Likewise.
15401 * htl/pt-dealloc.c: Likewise.
15402 * htl/pt-detach.c: Likewise.
15403 * htl/pt-exit.c: Likewise.
15404 * htl/pt-getattr.c: Likewise.
15405 * htl/pt-initialize.c: Likewise.
15406 * htl/pt-internal.h: Likewise.
15407 * htl/pt-join.c: Likewise.
15408 * htl/pt-self.c: Likewise.
15409 * htl/pt-setcancelstate.c: Likewise.
15410 * htl/pt-setcanceltype.c: Likewise.
15411 * htl/pt-sigmask.c: Likewise.
15412 * htl/pt-spin-inlines.c: Likewise.
15413 * htl/pt-testcancel.c: Likewise.
15414 * htl/pt-yield.c: Likewise.
15415 * htl/tests/test-1.c: Likewise.
15416 * htl/tests/test-10.c: Likewise.
15417 * htl/tests/test-11.c: Likewise.
15418 * htl/tests/test-12.c: Likewise.
15419 * htl/tests/test-13.c: Likewise.
15420 * htl/tests/test-14.c: Likewise.
15421 * htl/tests/test-15.c: Likewise.
15422 * htl/tests/test-16.c: Likewise.
15423 * htl/tests/test-17.c: Likewise.
15424 * htl/tests/test-2.c: Likewise.
15425 * htl/tests/test-3.c: Likewise.
15426 * htl/tests/test-4.c: Likewise.
15427 * htl/tests/test-5.c: Likewise.
15428 * htl/tests/test-6.c: Likewise.
15429 * htl/tests/test-7.c: Likewise.
15430 * htl/tests/test-8.c: Likewise.
15431 * htl/tests/test-9.c: Likewise.
15432 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15433 * sysdeps/htl/bits/cancelation.h: Likewise.
15434 * sysdeps/htl/bits/pthread-np.h: Likewise.
15435 * sysdeps/htl/bits/pthread.h: Likewise.
15436 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15437 * sysdeps/htl/bits/semaphore.h: Likewise.
15438 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15439 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15440 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15441 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15442 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15443 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15444 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15445 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15446 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15447 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15448 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15449 * sysdeps/htl/old_pt-atfork.c: Likewise.
15450 * sysdeps/htl/pt-atfork.c: Likewise.
15451 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15452 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15453 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15454 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15455 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15456 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15457 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15458 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15459 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15460 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15461 * sysdeps/htl/pt-attr-init.c: Likewise.
15462 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15463 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15464 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15465 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15466 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15467 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15468 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15469 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15470 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15471 * sysdeps/htl/pt-attr.c: Likewise.
15472 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15473 * sysdeps/htl/pt-barrier-init.c: Likewise.
15474 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15475 * sysdeps/htl/pt-barrier.c: Likewise.
15476 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15477 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15478 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15479 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15480 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15481 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15482 * sysdeps/htl/pt-cond-init.c: Likewise.
15483 * sysdeps/htl/pt-cond-signal.c: Likewise.
15484 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15485 * sysdeps/htl/pt-cond-wait.c: Likewise.
15486 * sysdeps/htl/pt-cond.c: Likewise.
15487 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15488 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15489 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15490 * sysdeps/htl/pt-condattr-init.c: Likewise.
15491 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15492 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15493 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15494 * sysdeps/htl/pt-equal.c: Likewise.
15495 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15496 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15497 * sysdeps/htl/pt-getschedparam.c: Likewise.
15498 * sysdeps/htl/pt-getspecific.c: Likewise.
15499 * sysdeps/htl/pt-init-specific.c: Likewise.
15500 * sysdeps/htl/pt-key-create.c: Likewise.
15501 * sysdeps/htl/pt-key-delete.c: Likewise.
15502 * sysdeps/htl/pt-key.h: Likewise.
15503 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15504 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15505 * sysdeps/htl/pt-mutex-init.c: Likewise.
15506 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15507 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15508 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15509 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15510 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15511 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15512 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15513 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15514 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15515 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15516 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15517 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15518 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15519 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15520 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15521 * sysdeps/htl/pt-mutexattr.c: Likewise.
15522 * sysdeps/htl/pt-once.c: Likewise.
15523 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15524 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15525 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15526 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15527 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15528 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15529 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15530 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15531 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15532 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15533 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15534 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15535 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15536 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15537 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15538 * sysdeps/htl/pt-setschedparam.c: Likewise.
15539 * sysdeps/htl/pt-setschedprio.c: Likewise.
15540 * sysdeps/htl/pt-setspecific.c: Likewise.
15541 * sysdeps/htl/pt-spin.c: Likewise.
15542 * sysdeps/htl/pt-startup.c: Likewise.
15543 * sysdeps/htl/pthread.h: Likewise.
15544 * sysdeps/htl/sem-close.c: Likewise.
15545 * sysdeps/htl/sem-destroy.c: Likewise.
15546 * sysdeps/htl/sem-getvalue.c: Likewise.
15547 * sysdeps/htl/sem-init.c: Likewise.
15548 * sysdeps/htl/sem-open.c: Likewise.
15549 * sysdeps/htl/sem-post.c: Likewise.
15550 * sysdeps/htl/sem-timedwait.c: Likewise.
15551 * sysdeps/htl/sem-trywait.c: Likewise.
15552 * sysdeps/htl/sem-unlink.c: Likewise.
15553 * sysdeps/htl/sem-wait.c: Likewise.
15554 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15555 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15556 * sysdeps/mach/htl/pt-block.c: Likewise.
15557 * sysdeps/mach/htl/pt-spin.c: Likewise.
15558 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15559 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15560 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15561 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15562 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15563 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15564 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15565 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15566 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15567 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15568 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15569 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15570 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15571 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15572 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15573 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15574 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15575 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15576 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15577 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15578 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15579 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15580 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15581 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15582 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15583 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15584 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15585 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15586 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15587 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15588 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15589 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15590 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15591 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15592 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15593 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15594 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15595 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15596 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15597 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15598 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15599 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15600 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15601
15602 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15603 * README: Remove the mention of out-of-tree patches needed for
15604 GNU/Hurd.
15605
15606 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15607 (UTIME_NOW, UTIME_OMIT): Define macros.
15608
15609 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15610 instead of pthread_detach.
15611 (__cthread_fork): Call __pthread_create instead of pthread_create.
15612 (__cthread_keycreate): Call __pthread_key_create instead of
15613 pthread_key_create.
15614 (__cthread_getspecific): Call __pthread_getspecific instead of
15615 pthread_getspecific.
15616 (__cthread_setspecific): Call __pthread_setspecific instead of
15617 pthread_setspecific.
15618 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15619 __pthread_mutex_unlock instead of pthread_mutex_lock and
15620 pthread_mutex_unlock.
15621 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15622 ___pthread_get_cleanup_stack.
15623 (__pthread_get_cleanup_stack): New strong alias.
15624 * htl/pt-create.c: Include <pthreadP.h>.
15625 (entry_point): Call __pthread_exit instead of pthread_exit.
15626 (pthread_create): Rename to __pthread_create.
15627 (pthread_create): New strong alias.
15628 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15629 (pthread_detach): New strong alias.
15630 (__pthread_detach): Call __pthread_cond_broadcast instead of
15631 pthread_cond_broadcast.
15632 * htl/pt-exit.c: Include <pthreadP.h>.
15633 (__pthread_exit): Call __pthread_setcancelstate and
15634 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15635 __pthread_get_cleanup_stack.
15636 * htl/pt-testcancel.c: Include <pthreadP.h>.
15637 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15638 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15639 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15640 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15641 pthread_attr_getstacksize.
15642 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15643 Rename to __pthread_attr_getstackaddr.
15644 (pthread_attr_getstackaddr): New strong alias.
15645 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15646 Rename to __pthread_attr_getstacksize.
15647 (pthread_attr_getstacksize): New strong alias.
15648 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15649 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15650 (pthread_attr_setstack): New strong alias.
15651 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15652 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15653 pthread_attr_getstacksize, pthread_attr_setstacksize and
15654 pthread_attr_setstackaddr.
15655 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15656 Rename to __pthread_attr_setstackaddr.
15657 (pthread_attr_setstackaddr): New strong alias.
15658 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15659 Rename to __pthread_attr_setstacksize.
15660 (pthread_attr_setstacksize): New strong alias.
15661 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15662 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15663 pthread_exit.
15664 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15665 (__pthread_key_create): New hidden def.
15666 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15667 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15668 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15669 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15670 __pthread_setspecific, __pthread_setcancelstate,
15671 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15672 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15673 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15674 declarations.
15675 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15676 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15677 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15678 (pthread_attr_setstackaddr): New strong alias.
15679 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15680 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15681 (pthread_attr_setstacksize): New strong alias.
15682 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15683 (call_exit): Call __pthread_exit instead of pthread_exit.
15684 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15685 (_pthread_mutex_init): New hidden definition.
15686 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15687 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15688 instead of pthread_attr_init and pthread_attr_setstack.
15689
15690 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15691 __vm_deallocate instead of vm_allocate and vm_deallocate.
15692 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15693 setenv.
15694 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15695 of geteuid.
15696 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15697 strdup.
15698 * hurd/siginfo.c: Include <libioP.h>.
15699 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15700 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15701 munmap.
15702 * mach/devstream.c: Include <libioP.h>.
15703 (dealloc_ref): Call __mach_port_deallocate instead of
15704 mach_port_deallocate.
15705 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15706 Call __mach_port_deallocate instead of mach_port_deallocate.
15707 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15708 pathconf.
15709 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15710 munmap.
15711 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15712 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15713 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15714 of munmap.
15715 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15716 of close.
15717 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15718 instead of sysconf.
15719 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15720 __clock_gettime instead of clock_gettime.
15721 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15722 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15723 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15724 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15725 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15726 tcgetattr.
15727 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15728 __clock_gettime and __nanosleep instead of clock_gettime and
15729 nanosleep.
15730 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15731 __hurd_catch_signal.
15732 (hurd_catch_signal): New strong alias.
15733 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15734 __hurd_catch_signal instead of hurd_catch_signal.
15735 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15736 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15737 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15738 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15739 (_hurd_thread_sigstate): Add hidden def.
15740 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15741 mutex_unlock.
15742 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15743 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15744 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15745 __hurd_file_name_path_lookup.
15746 (hurd_file_name_path_lookup): New strong alias.
15747 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15748 hurd_file_name_path_lookup.
15749 * mach/errstring.c (mach_error_type): Add hidden def.
15750 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15751 * mach/mutex-init.c (__mutex_init): Add hidden def.
15752 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15753 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15754 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15755 * sysdeps/mach/hurd/getcwd.c
15756 (_hurd_canonicalize_directory_name_internal): Rename to
15757 __hurd_canonicalize_directory_name_internal.
15758 (_hurd_canonicalize_directory_name_internal): New strong alias.
15759 (__canonicalize_directory_name_internal, __getcwd): Call
15760 __hurd_canonicalize_directory_name_internal instead of
15761 _hurd_canonicalize_directory_name_internal.
15762 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15763 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15764 hidden defs.
15765 * sysdeps/hurd/include/hurd.h: New file.
15766 * sysdeps/hurd/include/hurd/fd.h: New file.
15767 * sysdeps/hurd/include/hurd/signal.h: New file.
15768 * sysdeps/mach/include/lock-intern.h: New file.
15769 * sysdeps/mach/include/mach.h: New file.
15770 * sysdeps/mach/include/mach/mig_support.h: New file.
15771 * sysdeps/mach/include/mach_error.h: New file.
15772 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15773 prototype.
15774 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15775 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15776 _HEADER_H_HIDDEN_DEF macro.
15777 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15778 _hurd_fd_error_signal): Add hidden prototype.
15779 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15780 hidden def.
15781 * libio/iolibio.h (_IO_puts): New hidden prototype.
15782 * libio/ioputs.c (_IO_puts): New hidden def.
15783 * sysdeps/mach/hurd/localplt.data: New file.
15784
15785 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15786 Amos Jeffries <squid3@treenet.co.nz>
15787 David Michael <fedora.dm0@gmail.com>
15788 Marco Gerards <marco@gnu.org>
15789 Marcus Brinkmann <marcus@gnu.org>
15790 Neal H. Walfield <neal@gnu.org>
15791 Pino Toscano <toscano.pino@tiscali.it>
15792 Richard Braun <rbraun@sceen.net>
15793 Roland McGrath <roland@gnu.org>
15794 Samuel Thibault <samuel.thibault@ens-lyon.org>
15795 Thomas DiModica <ricinwich@yahoo.com>
15796 Thomas Schwinge <tschwinge@gnu.org>
15797
15798 * htl: New directory.
15799 * sysdeps/htl: New directory.
15800 * sysdeps/hurd/htl: New directory.
15801 * sysdeps/i386/htl: New directory.
15802 * sysdeps/mach/htl: New directory.
15803 * sysdeps/mach/hurd/htl: New directory.
15804 * sysdeps/mach/hurd/i386/htl: New directory.
15805 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15806 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15807 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15808
15809 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15810
15811 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15812 signals in thread created for runing timers.
15813
15814 2018-04-01 Florian Weimer <fweimer@redhat.com>
15815
15816 * support/support_format_addrinfo.c (support_format_addrinfo):
15817 Include unknown error number in formatted result.
15818
15819 2018-03-29 Florian Weimer <fweimer@redhat.com>
15820
15821 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15822 capture SIGBUS.
15823
15824 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15825
15826 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15827 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15828 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15829 (__ASSUME_CLONE_BACKWARDS): Define.
15830
15831 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15832
15833 [BZ #23024]
15834 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15835 early when linux sentinel value is set.
15836
15837 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15838
15839 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15840
15841 2018-03-27 Andreas Schwab <schwab@suse.de>
15842
15843 [BZ #23005]
15844 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15845 allocation of private copy of nsaddr_list fails.
15846
15847 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15848
15849 [BZ #16552]
15850 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15851 * sysdeps/unix/sysv/linux/umount.c: ... here.
15852 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15853 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15854 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15855 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15857 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15858 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15859
15860 2018-03-26 Andreas Schwab <schwab@suse.de>
15861
15862 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15863 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15864 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15865 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15866 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15867 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15868 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15869 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15870 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15871 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15872 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15873 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15874 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15875 (R_RISCV_NUM): Define.
15876
15877 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15878
15879 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15880 TLS declaration of errno.
15881 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15882 __libc_setup_tls.
15883 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15884 (ARCH_SETUP_TLS): Likewise.
15885 * sysdeps/mach/hurd/libc-start.h: New file copied from
15886 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15887 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15888 instead of __libc_setup_tls.
15889 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15890 __libc_setup_tls before initializing libpthread and running _hurd_init
15891 which starts the signal thread.
15892 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15893 Declare function.
15894 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15895
15896 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15897
15898 [BZ #22998]
15899 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15900 after it is defined.
15901
15902 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15903 Max Horn <max@quendi.de>
15904
15905 [BZ #22644]
15906 CVE-2017-18269
15907 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15908 branch conditions.
15909 * string/test-memmove.c (do_test2): New testcase.
15910
15911 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15912
15913 * sysdeps/generic/frame.h: Remove file.
15914 * sysdeps/arm/frame.h: Likewise.
15915 * sysdeps/hppa/frame.h: Likewise.
15916 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15917 macro.
15918 (GET_FRAME): Likewise.
15919 (GET_STACK): Likewise.
15920 (CALL_SIGHANDLER): Likewise.
15921 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15922 Likewise.
15923 (GET_FRAME): Likewise.
15924 (GET_STACK): Likewise.
15925 (CALL_SIGHANDLER): Likewise.
15926 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15927 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15928 (GET_FRAME): Likewise.
15929 (GET_STACK): Likewise.
15930 (CALL_SIGHANDLER): Likewise.
15931 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15932 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15933 (GET_FRAME): Likewise.
15934 (GET_STACK): Likewise.
15935 (ADVANCE_STACK_FRAME): Likewise.
15936 (CALL_SIGHANDLER): Likewise.
15937 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15938 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15939 (GET_FRAME): Likewise.
15940 (GET_STACK): Likewise.
15941 (CALL_SIGHANDLER): Likewise.
15942 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15943 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15944 (GET_FRAME): Likewise.
15945 (GET_STACK): Likewise.
15946 (CALL_SIGHANDLER): Likewise.
15947 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15948 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15949 (GET_FRAME): Likewise.
15950 (GET_STACK): Likewise.
15951 (CALL_SIGHANDLER): Likewise.
15952 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15953 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15954 (GET_FRAME): Likewise.
15955 (GET_STACK): Likewise.
15956 (CALL_SIGHANDLER): Likewise.
15957 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15958 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15959 (GET_FRAME): Likewise.
15960 (GET_STACK): Likewise.
15961 (CALL_SIGHANDLER): Likewise.
15962 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15963 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15964 (GET_FRAME): Likewise.
15965 (GET_STACK): Likewise.
15966 (CALL_SIGHANDLER): Likewise.
15967 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15968 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15969 (GET_FRAME): Likewise.
15970 (GET_STACK): Likewise.
15971 (CALL_SIGHANDLER): Likewise.
15972 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15973 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15974 (GET_FRAME): Likewise.
15975 (GET_STACK): Likewise.
15976 (CALL_SIGHANDLER): Likewise.
15977 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15978 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15979 (GET_FRAME): Likewise.
15980 (GET_STACK): Likewise.
15981 (CALL_SIGHANDLER): Likewise.
15982 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15983 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15984 (FIRST_FRAME_POINTER): Likewise.
15985 (ADVANCE_STACK_FRAME): Likewise.
15986 (GET_STACK): Likewise.
15987 (GET_FRAME): Likewise.
15988 (CALL_SIGHANDLER): Likewise.
15989 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15990 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15991 (ADVANCE_STACK_FRAME): Likewise.
15992 (GET_STACK): Likewise.
15993 (GET_FRAME): Likewise.
15994 (CALL_SIGHANDLER): Likewise.
15995 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15996 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15997 (GET_FRAME): Likewise.
15998 (GET_STACK): Likewise.
15999 (CALL_SIGHANDLER): Likewise.
16000 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16001 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16002 (GET_FRAME): Likewise.
16003 (GET_STACK): Likewise.
16004 (CALL_SIGHANDLER): Likewise.
16005
16006 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16007
16008 * sysdeps/x86_64/backtrace.c: Move to ....
16009 * debug/backtrace.c: ... here.
16010 * sysdeps/aarch64/backtrace.c: Remove file.
16011 * sysdeps/alpha/backtrace.c: Likewise.
16012 * sysdeps/hppa/backtrace.c: Likewise.
16013 * sysdeps/ia64/backtrace.c: Likewise.
16014 * sysdeps/mips/backtrace.c: Likewise.
16015 * sysdeps/nios2/backtrace.c: Likewise.
16016 * sysdeps/riscv/backtrace.c: Likewise.
16017 * sysdeps/sh/backtrace.c: Likewise.
16018 * sysdeps/tile/backtrace.c: Likewise.
16019
16020 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16021
16022 [BZ #22987]
16023 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16024 function.
16025 (fdimf): Likewise.
16026 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16027
16028 [BZ #17343]
16029 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16030 possibly overflowing computations.
16031
16032 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16033
16034 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16035 values from Linux-specific section now that it is in the GNU section.
16036 * sysdeps/gnu/errlist.c: Regenerate.
16037
16038 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16039
16040 * math/Makefile (libm-narrow-fns): Add sub.
16041 (libm-test-funcs-narrow): Likewise.
16042 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16043 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16044 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16045 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16046 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16047 (NARROW_SUB_TRIVIAL): Likewise.
16048 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16049 macro.
16050 (__dsubl): Likewise.
16051 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16052 dsub.
16053 (CFLAGS-nldbl-dsub.c): New variable.
16054 (CFLAGS-nldbl-fsub.c): Likewise.
16055 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16056 __nldbl_dsubl.
16057 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16058 prototype.
16059 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16060 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16061 * math/auto-libm-test-in: Add tests of sub.
16062 * math/auto-libm-test-out-narrow-sub: New generated file.
16063 * math/libm-test-narrow-sub.inc: New file.
16064 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16065 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16066 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16067 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16068 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16069 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16070 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16071 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16072 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16073 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16074 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16075 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16076 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16077 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16078 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16079 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16080 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16081 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16082 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16083 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16084 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16085 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16086 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16087 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16088 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16089 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16090 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16091 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16092 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16093 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16094 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16095 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16099 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16100 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16101 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16102 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16103 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16104 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16105 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16106 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16107 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16108 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16109 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16110
16111 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16112
16113 [BZ #20079]
16114 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16115
16116 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16117
16118 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16119
16120 2018-03-18 Richard Braun <rbraun@sceen.net>
16121
16122 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16123 thread reference.
16124
16125 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16126
16127 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16128 (__libc_cleanup_fct): Define function.
16129 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16130 __libc_cleanup_end): Rewrite implementation using
16131 __attribute__ ((__cleanup__)).
16132 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16133 * hurd/Makefile (routines): Add hurdlock.
16134 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16135 interface.
16136 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16137 * hurd/hurdpid.c: Include <lowlevellock.h>
16138 (_S_msg_proc_newids): Use lll_wait to synchronize.
16139 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16140 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16141 * mach/Makefile (lock-headers): Remove machine-lock.h.
16142 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16143 <machine-lock.h>.
16144 (__spin_lock_t): New type.
16145 (__SPIN_LOCK_INITIALIZER): New macro.
16146 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16147 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16148 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16149 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16150 (__mutex_init): Initialize with lll.
16151 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16152 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16153 needing lll.
16154 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16155 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16156 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16157 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16158 (__setpgid): Use lll for synchronization.
16159 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16160 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16161 instead of <cthreads.h>.
16162 (_IO_lock_inexpensive): New macro
16163 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16164 (__libc_lock_self0): New declaration.
16165 (__libc_lock_owner_self): New macro.
16166 (__libc_key_t): Remove type.
16167 (_LIBC_LOCK_INITIALIZER): New macro.
16168 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16169 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16170 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16171 __libc_lock_define_initialized_recursive,
16172 __rtld_lock_define_initialized_recursive,
16173 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16174 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16175 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16176 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16177 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16178 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16179 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16180 New macros.
16181 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16182 * hurd/hurdlock.c: New file.
16183 * hurd/hurdlock.h: New file.
16184 * mach/lowlevellock.h: New file
16185
16186 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16187
16188 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16189 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16190 when opening a symlink with O_NOFOLLOW.
16191 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16192 path when flags contains O_NOFOLLOW.
16193 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16194 if flags contains O_DIRECTORY and the result is a directory.
16195 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16196 oneself when the pointer given in D is nul (as set by ext2fs).
16197 * sysdeps/mach/hurd/mlockall.c: New file.
16198 * sysdeps/mach/hurd/munlockall.c: New file.
16199
16200 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16201
16202 * hurd/hurdsig.c: Include <pthread.h>.
16203 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16204 get the signal thread stack layout.
16205 * hurd/Makefile (headers): Remove threadvar.h.
16206 (inline-headers): Remove threadvar.h.
16207 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16208 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16209 __hurd_threadvar_max, __hurd_errno_location.
16210 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16211 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16212 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16213 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16214 unless TLS is not initialized yet, in which case we do not need a
16215 critical section yet anyway.
16216 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16217 <machine-sp.h>.
16218 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16219 declarations.
16220 (__hurd_threadvar_index): Remove enum.
16221 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16222 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16223 inlines.
16224 (__hurd_reply_port0): New variable declaration.
16225 (__hurd_local_reply_port): New macro.
16226 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16227 (interrupted_reply_port_location): Add thread_t parameter. Use it
16228 with THREAD_TCB to access thread-local variables.
16229 (_hurdsig_abort_rpcs): Pass ss->thread to
16230 interrupted_reply_port_location.
16231 (_hurd_internal_post_signal): Likewise.
16232 (_hurdsig_init): Use presence of cthread_fork instead of
16233 __hurd_threadvar_stack_mask to start signal thread by hand.
16234 Remove signal thread threadvar initialization.
16235 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16236 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16237 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16238 of threadvar.
16239 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16240 __libc_lock_self0.
16241 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16242 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16243 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16244 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16245 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16246 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16247 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16248 define variables.
16249 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16250 <hurd/threadvar.h>.
16251 [IS_IN(rtld)] (rtld_errno): New variable.
16252 [IS_IN(rtld)] (__errno_location): New weak function.
16253 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16254 * sysdeps/mach/hurd/errno.c: Remove file.
16255 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16256 (__fork): Remove THREADVAR_SPACE macro and its use.
16257 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16258 variable.
16259 (init): Do not initialize threadvar.
16260 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16261 symbol.
16262 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16263 __hurd_local_reply_port instead of threadvar.
16264 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16265 _hurd_sigstate fields.
16266 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16267 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16268 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16269 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16270 instead of threadvar.
16271 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16272 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16273 (use_threadvar, global_reply_port): Remove variables.
16274 (__hurd_reply_port0): New variable.
16275 (__mig_get_reply_port): Use __hurd_local_reply_port and
16276 __hurd_reply_port0 instead of threadvar.
16277 (__mig_dealloc_reply_port): Likewise.
16278 (__mig_init): Do not initialize threadvar.
16279 * sysdeps/mach/hurd/profil.c: Fix comment.
16280 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16281 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16282 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16283 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16284 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16285 __cthread_setspecific.
16286 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16287 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16288 __cthread_t instead of cthread_fork, cthread_detach,
16289 pthread_getattr_np, pthread_attr_getstack.
16290 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16291 __cthread_keycreate.
16292 (cthread_getspecific): Rename to __cthread_getspecific.
16293 (cthread_setspecific): Rename to __cthread_setspecific.
16294 (__libc_getspecific): Use __cthread_getspecific instead of
16295 cthread_getspecific.
16296 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16297 __cthread_keycreate instead of cthread_keycreate.
16298 (__libc_setspecific): Use __cthread_setspecific instead of
16299 cthread_setspecific.
16300 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16301 Likewise.
16302 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16303 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16304 testing whether it is defined.
16305
16306 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16307
16308 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16309 Define macro.
16310 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16311 * sysdeps/mach/i386/thread_state.h
16312 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16313 i386_THREAD_STATE.
16314 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16315 i386_THREAD_STATE.
16316 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16317
16318 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16319 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16320
16321 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16322 macros.
16323 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16324 descriptor instead of creating a new one.
16325 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16326
16327 * mach/setup-thread.c: Include <ldsodefs.h>.
16328 (__mach_setup_thread): Call _dl_allocate_tls, pass
16329 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16330 MACHINE_THREAD_STATE_FLAVOR, before getting
16331 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16332 MACHINE_THREAD_STATE_FLAVOR with the result.
16333 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16334 MACHINE_THREAD_STATE_FIX_NEW.
16335 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16336 too. Add original thread parameter.
16337
16338 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16339
16340 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16341 Remove inline function.
16342
16343 * sysdeps/i386/fpu/libm-test-ulps: Update.
16344 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16345
16346 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16347
16348 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16349 commit.
16350
16351 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16352
16353 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16354 (__sincos_code): Remove define and undefine.
16355 [__FAST_MATH__] (__sincos): Remove inline function.
16356 [__FAST_MATH__] (__sincosf): Remove inline function.
16357 [__FAST_MATH__] (__sincosl): Remove inline function.
16358 (__atan2l): Remove inline functions.
16359 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16360 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16361 function.
16362 (floor): Remove inline function.
16363 (ceil): Likewise.
16364 [__FAST_MATH__] (__ldexp_code): Remove macro.
16365 [__FAST_MATH__] (ldexp): Remove inline function.
16366 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16367 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16368 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16369 [__USE_ISOC99] (__lrint_code): Remove macro.
16370 [__USE_ISOC99] (__llrint_code): Likewise.
16371 [__USE_ISOC99] (lrintf): Remove inline function.
16372 [__USE_ISOC99] (lrint): Likewise.
16373 [__USE_ISOC99] (lrintl): Likewise.
16374 [__USE_ISOC99] (llrint): Likewise.
16375 [__USE_ISOC99] (llrintf): Likewise.
16376 [__USE_ISOC99] (llrintl): Likewise.
16377
16378 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16379
16380 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16381 (__ieee754_sqrtf): Remove.
16382 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16383 (__ieee754_sqrtf): Remove.
16384 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16385 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16386 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16387 (__ieee754_sqrtf): Remove.
16388 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16389 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16390 (sqrtf): Remove.
16391 (sqrtl): Remove.
16392 (__ieee754_sqrt): Remove.
16393 (__ieee754_sqrtf): Remove.
16394 (__ieee754_sqrtl): Remove.
16395 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16396 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16397 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16398 (__ieee754_sqrtf): Remove.
16399 (__ieee754_sqrtl): Remove.
16400
16401 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16402
16403 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16404 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16405 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16406 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16407 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16408 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16409 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16410 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16411 Likewise.
16412 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16413 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16414 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16415 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16416 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16417 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16418 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16419 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16420 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16421 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16422 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16423 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16424 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16425 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16426 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16427 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16428 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16429 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16430 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16431 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16432 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16433 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16434 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16435 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16436 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16437 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16438 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16439 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16440 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16441 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16442 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16443 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16444 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16445 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16446 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16447 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16448 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16449 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16450 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16451 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16452
16453 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16454
16455 * include/math.h (sqrt): Declare with asm redirect.
16456 (sqrtf): Likewise.
16457 (sqrtl): Likewise.
16458 (sqrtf128): Likewise.
16459 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16460 nonlib and libnldbl with -fmath-errno.
16461 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16462 * math/w_sqrt_template.c: Likewise.
16463 * math/w_sqrtf_compat.c: Likewise.
16464 * math/w_sqrtl_compat.c: Likewise.
16465 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16466 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16467 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16468 complex.h.
16469
16470 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16471
16472 * benchtests/Makefile: Define _ISOMAC.
16473 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16474 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16475 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16476 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16477 * benchtests/bench-timing.h: Define attribute_hidden.
16478
16479 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16480
16481 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16482 mov + lsr.
16483
16484 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16485
16486 [BZ #22963]
16487 * localedata/locales/cs_CZ (mon): Rename to...
16488 (alt_mon): This.
16489 (mon): Import from CLDR (genitive case).
16490
16491 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16492
16493 [BZ #22937]
16494 * localedata/locales/el_CY (abmon): Rename to...
16495 (ab_alt_mon): This.
16496 (abmon): Import from CLDR (abbreviated genitive case).
16497 * localedata/locales/el_GR (abmon): Rename to...
16498 (ab_alt_mon): This.
16499 (abmon): Import from CLDR (abbreviated genitive case).
16500
16501 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16502
16503 [BZ #22932]
16504 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16505
16506 2018-03-15 Robert Buj <robert.buj@gmail.com>
16507
16508 [BZ #22848]
16509 * localedata/locales/ca_ES (abmon): Rename to...
16510 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16511 (mon): Rename to...
16512 (alt_mon): This.
16513 (abmon): Import from CLDR (genitive case, month names preceded by
16514 "de" or "d’").
16515 (mon): Likewise.
16516 (abday): Synchronize with CLDR.
16517 (d_t_fmt): Likewise.
16518 (d_fmt): Likewise.
16519 (am_pm): Likewise.
16520
16521 (LC_TIME): Improve indentation.
16522 (LC_TELEPHONE): Likewise.
16523 (LC_NAME): Likewise.
16524 (LC_ADDRESS): Likewise.
16525
16526 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16527
16528 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16529 (lrintf): Remove definitions used only with old GCC.
16530 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16531 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16532 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16533 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16534 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16535 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16536 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16537 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16538 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16539 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16540 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16541 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16542 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16543 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16544 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16545 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16546 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16547 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16548 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16549 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16550 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16551 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16552 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16553 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16554 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16555 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16556 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16557 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16558
16559 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16560
16561 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16562 instruction to unbreak builds with binutils 2.26 and older.
16563
16564 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16565
16566 * sysdeps/aarch64/strncmp.S (count): New macro.
16567 (strncmp): Store misaligned length in SRC1 in COUNT.
16568 (mutual_align): Adjust.
16569 (misaligned8): Load dword at a time when it is safe.
16570
16571 2018-03-12 Zack Weinberg <zackw@panix.com>
16572
16573 [BZ #1190]
16574 [BZ #19476]
16575 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16576 if the _IO_EOF_SEEN bit is already set; update commentary.
16577 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16578 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16579
16580 * support/support_openpty.c, support/tty.h: New files.
16581 * support/Makefile (libsupport-routines): Add support_openpty.
16582
16583 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16584 New test cases.
16585 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16586 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16587
16588 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16589
16590 * po/pt_BR.po: Update translations.
16591
16592 2018-03-12 David Michael <fedora.dm0@gmail.com>
16593
16594 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16595 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16596 get a port to the startup server.
16597
16598 2018-03-11 Zack Weinberg <zackw@panix.com>
16599
16600 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16601 before nldbl-compat.h.
16602
16603 2018-03-10 Zack Weinberg <zackw@panix.com>
16604
16605 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16606 math.h or math_private.h.
16607
16608 * sysdeps/alpha/fpu/s_isnan.c
16609 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16610 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16611 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16612 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16613 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16614 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16615 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16616 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16617 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16618 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16619 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16620 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16621 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16622 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16623 Include math_private.h.
16624
16625 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16626 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16627 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16628 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16629 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16630 * sysdeps/powerpc/power7/fpu/s_logb.c:
16631 Include math.h and math_private.h.
16632
16633 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16634 uses of $at in .set noat / .set at.
16635
16636 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16637
16638 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16639 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16640 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16641 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16642 Likewise.
16643
16644 2018-03-09 Florian Weimer <fweimer@redhat.com>
16645
16646 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16647 in comment.
16648
16649 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16650
16651 [BZ #22919]
16652 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16653 Add nop before __startcontext, add explaining comments.
16654
16655 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16656
16657 [BZ #22926]
16658 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16659 empty for __SPE__.
16660 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16661 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16662 Do not build hardware transactional code for __SPE__.
16663 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16664 (__lll_trylock_elision): Likewise.
16665 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16666 (__lll_unlock_elision): Likewise.
16667
16668 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16669 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16670 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16671 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16672 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16673 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16674 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16675 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16676 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16677 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16678 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16679 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16680 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16681 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16682 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16683 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16684 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16685 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16686 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16687 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16688 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16689 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16690 (__ASSUME_CLONE_BACKWARDS): Define.
16691 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16692 __clone2 if __NR_clone2 is defined.
16693 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16694 (__ASSUME_CLONE_BACKWARDS): Likewise.
16695 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16696 (__ASSUME_CLONE_BACKWARDS): Likewise.
16697 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16698 (__ASSUME_CLONE2): Likewise.
16699 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16700 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16701 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16702 variants and the define architecture can use.
16703 (__ASSUME_CLONE_DEFAULT): Define as default.
16704 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16705 (__ASSUME_CLONE_BACKWARDS): Likewise.
16706 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16707 (__ASSUME_CLONE_BACKWARDS): Likewise.
16708 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16709 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16710
16711 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16712
16713 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16714
16715 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16716 time.
16717
16718 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16719 (do_test_limit): Likewise.
16720
16721 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16722 for every implementation.
16723 (do_test): Likewise.
16724
16725 * benchtests/bench-strncmp.c: Convert output to json.
16726
16727 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16728
16729 * io/futimens.c: Add missing start-of-file descriptive comment.
16730 * io/utime.c: Likewise.
16731 * misc/futimesat.c: Likewise.
16732 * misc/utimes.c: Likewise.
16733 * sysdeps/mach/hurd/futimesat.c: Likewise.
16734 * sysdeps/mach/hurd/utimes.c: Likewise.
16735 * sysdeps/posix/utime.c: Likewise.
16736 * sysdeps/posix/utimes.c: Likewise.
16737 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16738 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16739 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16740 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16741
16742 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16743
16744 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16745 hurd_futimes.
16746 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16747 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16748 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16749 (__futimens): Move implementation to...
16750 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16751 utime_tvalue_from_tspec): ... new helper functions.
16752 (hurd_futimens): New function.
16753 * sysdeps/mach/hurd/futimesat.c: New file.
16754 * sysdeps/mach/hurd/utimensat.c: New file.
16755
16756 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16757
16758 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16759 UTIME_OMIT): New macros.
16760 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16761 before reverting to converting time spec to time value and calling
16762 __file_utimes.
16763 * sysdeps/mach/hurd/utime-helper.c: New file.
16764 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16765 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16766 reverting to utime_tvalue_from_tval and __file_utimes.
16767 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16768 (__lutimes): Just call hurd_futimens after lookup.
16769 * sysdeps/mach/hurd/utimes.c: Likewise.
16770
16771 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16772
16773 * bits/sigaction.h: Add include guard.
16774 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16775 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16776 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16777 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16778 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16779 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16780 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16781 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16782 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16783
16784 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16785
16786 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16787 -Wmaybe-uninitialized for -Os.
16788 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16789 this disabling.
16790
16791 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16792
16793 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16794 __INO_T_MATCHES_INO64_T is defined.
16795 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16796 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16797 of definition.
16798 * dirent/alphasort64.c: Likewise.
16799 * dirent/scandir.c: Likewise.
16800 * dirent/scandir64-tail.c: Likewise.
16801 * dirent/scandir64.c: Likewise.
16802 * dirent/scandirat.c: Likewise.
16803 * dirent/scandirat64.c: Likewise.
16804 * dirent/versionsort.c: Likewise.
16805 * dirent/versionsort64.c: Likewise.
16806 * include/dirent.h: Likewise.
16807
16808 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16809 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16810 for socketpair endpoint.
16811 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16812 WRITE_BUFFER_SIZE as buffer size for sending socket.
16813 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16814 issue on system where send is implemented with sendto syscall.
16815 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16816 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16817 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16818 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16819
16820 [BZ #21269]
16821 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16822 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16823 sa_restorer for vDSO case.
16824 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16825
16826 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16827
16828 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16829 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16830 * hurd/hurd/ioctl.h: Include <mach/port.h>
16831 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16832 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16833 <mach/mach_types.h> and <mach/message.h>.
16834 (headers): Move mach/param.h to bits/mach/param.h.
16835 * sysdeps/mach/i386/mach/param.h: Move file to ...
16836 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16837 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16838 of <mach/param.h>.
16839 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16840 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16841 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16842 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16843 trivial, for C++ conformity.
16844 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16845 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16846 Process mig output through $(migheadersed).
16847 * hurd/Makefile (migheadersed): Define variable.
16848 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16849 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16850 headers.
16851 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16852 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16853 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16854 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16855 <bits/types/sigset_t.h>.
16856 [!defined __USE_GNU]: Do not #error out.
16857 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16858 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16859 Include <stddef.h> and <bits/types/sigset_t.h>
16860 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16861 instead of sighandler_t.
16862 * stdlib/errno.h (error_t): Move definition to...
16863 * bits/types/error_t.h: ... new header.
16864 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16865 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16866 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16867 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16868 * hurd/hurd.h: Include <bits/types/error_t.h>
16869 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16870 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16871 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16872 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16873 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16874 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16875 * sysdeps/mach/hurd/futimens.c: New file.
16876
16877 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16878
16879 [BZ #22918]
16880 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16881 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16882 * nscd/gai.c (__nss_hosts_database): Readd definition.
16883 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16884 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16885 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16886
16887 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16888
16889 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16890 (ifunc_one): Likewise.
16891
16892 2018-03-01 DJ Delorie <dj@delorie.com>
16893
16894 [BZ #22342]
16895 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16896 key value.
16897
16898 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16899
16900 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16901 `match_pid' parameter.
16902 (td_ta_thr_iter): Update accordingly.
16903
16904 2018-03-01 Florian Weimer <fweimer@redhat.com>
16905
16906 * nptl/Makefile (install-lib-ldscripts): Remove.
16907 (install): Remove rule.
16908 ($(inst_libdir)/libpthread.so): Likewise.
16909
16910 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16911
16912 [BZ #22896]
16913 * localedata/locales/an_ES: update month and day names,
16914 improve d_fmt, improve postal_fmt, add country_post,
16915 add country_isbn
16916
16917 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16918
16919 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16920 Ukrainian instead of Bulgarian.
16921
16922 2018-03-01 Florian Weimer <fweimer@redhat.com>
16923
16924 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16925 reference.
16926
16927 2018-03-01 Florian Weimer <fweimer@redhat.com>
16928
16929 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16930 * nptl/Makefile (routines): Add pthread_atfork.
16931 (static-only-routines): Set to pthread_atfork.
16932 (libpthread-routines): Remove pthread_atfork.
16933 (libpthread-static-only-routines): Remove.
16934 (install): Update comment.
16935 (libpthread.so): Do not install libpthread_nonshared.a.
16936 (tests): Do not link with libpthread_nonshared.a.
16937 (generated): Remove libpthread_nonshared.a.
16938 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16939 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16940 with libpthread_nonshared.a.
16941
16942 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16943
16944 [BZ #22902]
16945 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16946 (libc_feholdexcept_setroundf128): New macro.
16947 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16948
16949 [BZ #15105]
16950 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16951 libc_hidden_def.
16952 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16953 * include/inttypes.h: New file.
16954
16955 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16956
16957 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16958 -Os in two more places.
16959
16960 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16961
16962 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16963 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16964 be sorted correctly at the moment because of a bug.
16965
16966 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16967
16968 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16969 treat ñ as a primary different character, sync the collation
16970 for Spanish with CLDR.
16971 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16972 * localedata/Makefile: Add new test files.
16973 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16974 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16975 collation order.
16976 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16977 * localedata/am_ET.UTF-8.in: New test file.
16978 * localedata/az_AZ.UTF-8.in: Likewise.
16979 * localedata/be_BY.UTF-8.in: Likewise.
16980 * localedata/ber_DZ.UTF-8.in: Likewise.
16981 * localedata/ber_MA.UTF-8.in: Likewise.
16982 * localedata/bg_BG.UTF-8.in: Likewise.
16983 * localedata/br_FR.UTF-8.in: Likewise.
16984 * localedata/cmn_TW.UTF-8.in: Likewise.
16985 * localedata/crh_UA.UTF-8.in: Likewise.
16986 * localedata/csb_PL.UTF-8.in: Likewise.
16987 * localedata/cv_RU.UTF-8.in: Likewise.
16988 * localedata/cy_GB.UTF-8.in: Likewise.
16989 * localedata/dz_BT.UTF-8.in: Likewise.
16990 * localedata/eo.UTF-8.in: Likewise.
16991 * localedata/es_ES.UTF-8.in: Likewise.
16992 * localedata/fa_IR.UTF-8.in: Likewise.
16993 * localedata/fi_FI.UTF-8.in: Likewise.
16994 * localedata/fil_PH.UTF-8.in: Likewise.
16995 * localedata/fur_IT.UTF-8.in: Likewise.
16996 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16997 * localedata/ha_NG.UTF-8.in: Likewise.
16998 * localedata/ig_NG.UTF-8.in: Likewise.
16999 * localedata/ik_CA.UTF-8.in: Likewise.
17000 * localedata/kk_KZ.UTF-8.in: Likewise.
17001 * localedata/ku_TR.UTF-8.in: Likewise.
17002 * localedata/ky_KG.UTF-8.in: Likewise.
17003 * localedata/ln_CD.UTF-8.in: Likewise.
17004 * localedata/mi_NZ.UTF-8.in: Likewise.
17005 * localedata/ml_IN.UTF-8.in: Likewise.
17006 * localedata/mn_MN.UTF-8.in: Likewise.
17007 * localedata/mr_IN.UTF-8.in: Likewise.
17008 * localedata/mt_MT.UTF-8.in: Likewise.
17009 * localedata/nb_NO.UTF-8.in: Likewise.
17010 * localedata/om_KE.UTF-8.in: Likewise.
17011 * localedata/os_RU.UTF-8.in: Likewise.
17012 * localedata/ps_AF.UTF-8.in: Likewise.
17013 * localedata/ro_RO.UTF-8.in: Likewise.
17014 * localedata/ru_RU.UTF-8.in: Likewise.
17015 * localedata/sc_IT.UTF-8.in: Likewise.
17016 * localedata/se_NO.UTF-8.in: Likewise.
17017 * localedata/sq_AL.UTF-8.in: Likewise.
17018 * localedata/sv_SE.UTF-8.in: Likewise.
17019 * localedata/szl_PL.UTF-8.in: Likewise.
17020 * localedata/tg_TJ.UTF-8.in: Likewise.
17021 * localedata/tk_TM.UTF-8.in: Likewise.
17022 * localedata/tt_RU.UTF-8.in: Likewise.
17023 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17024 * localedata/ug_CN.UTF-8.in: Likewise.
17025 * localedata/uz_UZ.UTF-8.in: Likewise.
17026 * localedata/vi_VN.UTF-8.in: Likewise.
17027 * localedata/yi_US.UTF-8.in: Likewise.
17028 * localedata/yo_NG.UTF-8.in: Likewise.
17029 * localedata/zh_CN.UTF-8.in: Likewise.
17030 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17031 file and fix bugs in the collation.
17032 * localedata/locales/az_AZ: Likewise.
17033 * localedata/locales/be_BY: Likewise.
17034 * localedata/locales/ber_DZ: Likewise.
17035 * localedata/locales/ber_MA: Likewise.
17036 * localedata/locales/bg_BG: Likewise.
17037 * localedata/locales/br_FR: Likewise.
17038 * localedata/locales/br_FR@euro: Likewise.
17039 * localedata/locales/ca_ES: Likewise.
17040 * localedata/locales/cns11643_stroke: Likewise.
17041 * localedata/locales/crh_UA: Likewise.
17042 * localedata/locales/cs_CZ: Likewise.
17043 * localedata/locales/csb_PL: Likewise.
17044 * localedata/locales/cv_RU: Likewise.
17045 * localedata/locales/cy_GB: Likewise.
17046 * localedata/locales/da_DK: Likewise.
17047 * localedata/locales/dz_BT: Likewise.
17048 * localedata/locales/en_CA: Likewise.
17049 * localedata/locales/eo: Likewise.
17050 * localedata/locales/es_CU: Likewise.
17051 * localedata/locales/es_EC: Likewise.
17052 * localedata/locales/es_ES: Likewise.
17053 * localedata/locales/es_US: Likewise.
17054 * localedata/locales/et_EE: Likewise.
17055 * localedata/locales/fa_IR: Likewise.
17056 * localedata/locales/fi_FI: Likewise.
17057 * localedata/locales/fil_PH: Likewise.
17058 * localedata/locales/fur_IT: Likewise.
17059 * localedata/locales/gez_ER@abegede: Likewise.
17060 * localedata/locales/ha_NG: Likewise.
17061 * localedata/locales/hr_HR: Likewise.
17062 * localedata/locales/hsb_DE: Likewise.
17063 * localedata/locales/hu_HU: Likewise.
17064 * localedata/locales/ig_NG: Likewise.
17065 * localedata/locales/ik_CA: Likewise.
17066 * localedata/locales/is_IS: Likewise.
17067 * localedata/locales/iso14651_t1_pinyin: Likewise.
17068 * localedata/locales/kk_KZ: Likewise.
17069 * localedata/locales/ku_TR: Likewise.
17070 * localedata/locales/ky_KG: Likewise.
17071 * localedata/locales/ln_CD: Likewise.
17072 * localedata/locales/lt_LT: Likewise.
17073 * localedata/locales/lv_LV: Likewise.
17074 * localedata/locales/mi_NZ: Likewise.
17075 * localedata/locales/ml_IN: Likewise.
17076 * localedata/locales/mn_MN: Likewise.
17077 * localedata/locales/mr_IN: Likewise.
17078 * localedata/locales/mt_MT: Likewise.
17079 * localedata/locales/nb_NO: Likewise.
17080 * localedata/locales/om_KE: Likewise.
17081 * localedata/locales/os_RU: Likewise.
17082 * localedata/locales/pl_PL: Likewise.
17083 * localedata/locales/ps_AF: Likewise.
17084 * localedata/locales/ro_RO: Likewise.
17085 * localedata/locales/ru_RU: Likewise.
17086 * localedata/locales/ru_UA: Likewise.
17087 * localedata/locales/sc_IT: Likewise.
17088 * localedata/locales/se_NO: Likewise.
17089 * localedata/locales/si_LK: Likewise.
17090 * localedata/locales/sq_AL: Likewise.
17091 * localedata/locales/sv_FI: Likewise.
17092 * localedata/locales/sv_FI@euro: Likewise.
17093 * localedata/locales/sv_SE: Likewise.
17094 * localedata/locales/szl_PL: Likewise.
17095 * localedata/locales/tg_TJ: Likewise.
17096 * localedata/locales/ti_ER: Likewise.
17097 * localedata/locales/tk_TM: Likewise.
17098 * localedata/locales/tl_PH: Likewise.
17099 * localedata/locales/tr_TR: Likewise.
17100 * localedata/locales/tt_RU: Likewise.
17101 * localedata/locales/tt_RU@iqtelif: Likewise.
17102 * localedata/locales/ug_CN: Likewise.
17103 * localedata/locales/uk_UA: Likewise.
17104 * localedata/locales/uz_UZ: Likewise.
17105 * localedata/locales/uz_UZ@cyrillic: Likewise.
17106 * localedata/locales/vi_VN: Likewise.
17107 * localedata/locales/yi_US: Likewise.
17108 * localedata/locales/yo_NG: Likewise.
17109
17110 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17111
17112 * gen-locales.mk: Make test files which contain @ modifiers in their
17113 name work.
17114 * localedata/gen-locale.sh: Likewise.
17115
17116 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17117
17118 * posix/tst-fnmatch.input: Fix results for range expressions
17119 for non C locales.
17120 * posix/tst-regexloc.c: Do not use a range expression for
17121 de_DE.ISO-8859-1 locale.
17122
17123 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17124
17125 * posix/bug-regex5.c: Fix test case because with the new
17126 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17127 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17128 file.
17129
17130 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17131
17132 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17133 downloaded from ISO, the collation order of @-. and space has changed.
17134 Therefore, this test file needed to be adapted.
17135 * localedata/fr_CA.UTF-8.in: Likewise.
17136 * localedata/fr_FR.UTF-8.in: Likewise.
17137 * localedata/uk_UA.UTF-8.in: Likewise.
17138
17139 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17140
17141 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17142 order of ȥ in the new iso14651_t1_common file.
17143 * localedata/pl_PL.UTF-8.in: Likewise.
17144
17145 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17146
17147 * localedata/locales/iso14651_t1_common: Add sections for various
17148 scripts to the iso14651_t1_common file.
17149
17150 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17151
17152 * localedata/locales/iso14651_t1_common: Use the code point of a
17153 character in the fourth collation level instead of IGNORE for all
17154 entries which have IGNORE on all 4 levels.
17155
17156 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17157
17158 * localedata/locales/iso14651_t1_common: Add some convenient collation
17159 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17160 rules similar to those in CLDR.
17161
17162 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17163
17164 * localedata/locales/iso14651_t1_common: The new version of this
17165 file downloaded from ISO contained several syntax errors which
17166 are fixed by this patch.
17167
17168 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17169
17170 * localedata/locales/iso14651_t1_common: replace all <U.....>
17171 with <U000.....> because glibc understands only 4 digit or 8 digit
17172
17173 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17174
17175 * localedata/locales/iso14651_t1_common: Necessary changes
17176 to make the file downloaded from ISO usable by glibc.
17177
17178 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17179
17180 [BZ #14095]
17181 * localedata/locales/iso14651_t1_common: Update file to
17182 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17183
17184 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17185
17186 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17187 of <nptl/pthreadP.h>
17188 (thread_attr_compare): Move function to...
17189 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17190 * sysdeps/nptl/timer_routines.h: ... new header.
17191 * sysdeps/mach/hurd/gai_misc.h: New file.
17192
17193 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17194
17195 * string/strcoll_l.c: Include <libc-diag.h>.
17196 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17197 declarations of seq1 and seq2.
17198
17199 [BZ #15105]
17200 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17201 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17202
17203 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17204
17205 [BZ #22433]
17206 [BZ #22807]
17207 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17208 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17209 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17210 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17211 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17212 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17213
17214 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17215
17216 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17217 macros used in __ptrace_request.
17218
17219 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17220
17221 [BZ #22792]
17222 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17223 to $(CC).
17224 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17225 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17226 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17227 <tcb-offsets.h>.
17228
17229 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17230
17231 [BZ #15105]
17232 * ctype/ctype.c (tolower): Use libc_hidden_def.
17233 (toupper): Likewise.
17234 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17235 [!_ISOMAC] (toupper): Likewise.
17236
17237 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17238
17239 * localedata/Makefile: Remove --quiet argument when
17240 installing locales
17241
17242 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17243
17244 [BZ #17438]
17245 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17246 in d_fmt.
17247 * localedata/locales/pt_PT (LC_TIME): likewise
17248
17249 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17250
17251 [BZ #22646]
17252 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17253 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17254 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17255
17256 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17257
17258 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17259
17260 * nptl/Makefile (routines): Remove unregister-atfork.
17261 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17262 (fork_handler_alloc): Remove function.
17263 (fork_handlers, fork_handler_init): New variables.
17264 (__fork_lock): Rename to atfork_lock.
17265 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17266 to use a dynamic array to add/remove atfork handlers.
17267 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17268 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17269 Remove declaration.
17270 (fork_handler): Remove next, refcntr, and need_signal member.
17271 (__run_fork_handler_type): New enum.
17272 (__run_fork_handlers): New prototype.
17273 * nptl/register-atfork.c: Remove file.
17274 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17275
17276 * sysdeps/nptl/nptl-signals.h: Move to ...
17277 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17278 comments.
17279 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17280 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17281 unnecessary check for SIGTIMER.
17282 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17283 remove unnecessary removal of SIGTIMER.
17284 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17285 include-signals.h rename.
17286 * nptl/pthreadP.h: Likewise.
17287 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17288 __is_internal_signal instead of __nptl_is_internal_signal.
17289
17290 2018-02-22 Andrew Waterman <andrew@sifive.com>
17291
17292 [BZ # 22884]
17293 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17294 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17295 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17296 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17297
17298 2018-02-22 DJ Delorie <dj@delorie.com>
17299
17300 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17301
17302 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17303
17304 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17305 do_misaligned, not misaligned8.
17306
17307 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17308
17309 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17310 Add memcpy_thunderx2.
17311 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17312 Increment to 4.
17313 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17314 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17315 and IS_THUNDERX2PA checks.
17316 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17317 Use macro to set name appropriately.
17318 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17319 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17320 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17321 New macro.
17322 (IS_THUNDERX2): New macro.
17323
17324 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17325
17326 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17327
17328 2018-02-21 Zack Weinberg <zackw@panix.com>
17329
17330 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17331 Define here, unconditionally.
17332 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17333 * libio/libioP.h: Remove #if 0 blocks.
17334 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17335 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17336 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17337
17338 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17339 Assume weak_alias is always defined.
17340
17341 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17342 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17343 Remove #if 0 and #ifdef TODO blocks.
17344 Assume text_set_element is always defined.
17345
17346 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17347 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17348 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17349
17350 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17351 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17352 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17353 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17354 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17355 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17356 Reformat bit flags for _flags field to make occupancy clearer.
17357 Update commentary.
17358 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17359 Keep definitions consistent with those in libio/libio.h.
17360
17361 * libio/libio.h (_IO_file_flags): Remove macro.
17362 All uses changed to _flags.
17363
17364 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17365 (__HAVE_COLUMN, _IO_BE): Don't define.
17366 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17367 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17368 * libio/libioP.h (EOF): Don't define.
17369 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17370 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17371 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17372 testing _IO_UNIFIED_JUMPTABLES.
17373
17374 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17375 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17376 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17377 (_IO_size_t): Delete; all uses changed to size_t.
17378 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17379 (_IO_off_t): Delete; all uses changed to off_t.
17380 (_IO_off64_t): Delete; all uses changed to off64_t.
17381 (_IO_pid_t): Delete; all uses changed to pid_t.
17382 (_IO_uid_t): Delete; all uses changed to uid_t.
17383 (_IO_wint_t): Delete; all uses changed to wint_t.
17384 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17385 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17386 (_IO_cookie_io_functions_t): Delete; all uses changed to
17387 cookie_io_functions_t.
17388 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17389 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17390 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17391 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17392
17393 * libio/iofopncook.c: Remove unnecessary forward declarations.
17394 * libio/iolibio.h: Correct outdated commentary.
17395 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17396 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17397 Remove unnecessary casts.
17398 * stdio-common/getline.c: Use _IO_getdelim directly.
17399 Don't redefine ssize_t.
17400 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17401 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17402 Remove outdated comments.
17403 * stdio-common/vfscanf.c: Don't redefine va_list.
17404
17405 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17406 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17407 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17408 which are always true, and __cplusplus, which is always false.
17409
17410 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17411
17412 [BZ #15105]
17413 [BZ #19463]
17414 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17415 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17416 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17417 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17418 libc_hidden_proto.
17419 [!_ISOMAC] (putc_unlocked): Likewise.
17420 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17421 define inline if [__USE_EXTERN_INLINES].
17422 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17423 putc_unlocked.
17424
17425 [BZ #15105]
17426 [BZ #19463]
17427 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17428 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17429 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17430 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17431 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17432 getc_unlocked.
17433 * time/tzfile.c (__tzfile_read): Likewise.
17434
17435 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17436
17437 [BZ #22517]
17438 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17439
17440 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17441
17442 * io/fcntl.h: Fix a typo in a comment.
17443
17444 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17445
17446 [BZ #22862]
17447 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17448 define _DEFAULT_SOURCE.
17449 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17450
17451 2018-02-21 Florian Weimer <fweimer@redhat.com>
17452
17453 [BZ #20890]
17454 * elf/cache.c (save_cache): Call fsync on temporary file before
17455 renaming it.
17456 (save_aux_cache): Call fdatasync on temporary file before renaming
17457 it.
17458
17459 2018-02-21 Florian Weimer <fweimer@redhat.com>
17460
17461 [BZ #22787]
17462 * include/caller.h: Remove file.
17463 * elf/dl-caller.c: Likewise.
17464 * elf/Makefile (dl-routines): Remove dl-caller.
17465 (shared-only-routines): Do not add dl-caller.
17466 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17467 __check_caller.
17468 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17469 member.
17470 (dl_open_worker): Do not call __check_caller.
17471 (_dl_open): Do not set caller_dl_open member.
17472 * elf/rtld.c (_rtld_global_ro): Do not initialize
17473 _dl_check_caller member.
17474 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17475 _dl_check_caller member.
17476 (_dl_check_caller): Remove declaration.
17477 * sysdeps/unix/sysv/linux/dl-execstack.c
17478 (_dl_make_stack_executable): Do not call __check_caller.
17479
17480 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17481
17482 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17483 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17484
17485 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17486
17487 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17488 description.
17489
17490 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17491
17492 [BZ #16335]
17493 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17494 of 199606L, 200112L, and 200809L.
17495 (_XOPEN_SOURCE): Document special values of 600 and 700.
17496 (_ISOC11_SOURCE): Document macro.
17497 (_ATFILE_SOURCE): Likewise.
17498 (_FORTIFY_SOURCE): Likewise.
17499
17500 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17501
17502 [BZ #15105]
17503 [BZ #19463]
17504 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17505 and define as weak alias of __ferror_unlocked. Use
17506 libc_hidden_weak.
17507 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17508 libc_hidden_proto.
17509 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17510 function if [__USE_EXTERN_INLINES].
17511 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17512 ferror_unlocked.
17513
17514 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17515
17516 [BZ #6889]
17517 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17518
17519 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17520
17521 [BZ #22818]
17522 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17523 the GLIBC_2.1 version.
17524
17525 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17526
17527 [BZ #21508]
17528 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17529 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17530 intl/tst-gettext-de.po from po/de.po by removing the
17531 POT-Creation-Date line.
17532 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17533 ../po/de.po.
17534 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17535 ../po/de.po.
17536
17537 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17538
17539 * mach/Makefile (headers): Add mach/param.h.
17540 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17541 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17542 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17543 (__ptsname_r): Move implementation to...
17544 (__ptsname_internal): ... new function. Add filling the STP
17545 structure.
17546
17547 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17548
17549 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17550 idouble to 1 ULP.
17551
17552 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17553
17554 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17555 syntax.
17556
17557 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17558
17559 * nptl/Makefile (tst-mutex8-ENV): Delete.
17560 * nptl/tst-mutex8.c (check_type):
17561 Add runtime check if mutex will be elided.
17562
17563 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17564
17565 [BZ #20980]
17566 [BZ #21234]
17567 * manual/install.texi (Configuring and compiling): Describe
17568 passing CC and CFLAGS on configure command line, not as
17569 environment variables. Use @code markup on those variables.
17570 Specify what options go in CC and what go in CFLAGS. Note the
17571 requirement to compile with optimization.
17572 * INSTALL: Regenerated.
17573
17574 [BZ #18124]
17575 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17576 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17577 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17578 __sigprocmask instead of sigprocmask.
17579 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17580 Likewise.
17581 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17582 __sigsetjmp and sigprocmask.
17583
17584 [BZ #15105]
17585 * include/argz.h (argz_next): Use libc_hidden_proto.
17586 (__argz_next): Likewise.
17587 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17588 (argz_next): Use libc_hidden_weak.
17589
17590 [BZ #15105]
17591 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17592 libc_hidden_proto.
17593 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17594 libc_hidden_def.
17595
17596 [BZ #15105]
17597 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17598 libc_hidden_proto.
17599 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17600
17601 [BZ #15105]
17602 [BZ #19463]
17603 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17604 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17605 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17606 (__feof_unlocked): New declaration, and inline function if
17607 [__USE_EXTERN_INLINES].
17608 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17609 instead of feof_unlocked.
17610 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17611 * nss/nsswitch.c (nss_parse_file): Likewise.
17612 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17613 Likewise.
17614 * time/getdate.c (__getdate_r): Likewise.
17615 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17616 Define as macro to call __feof_unlocked.
17617
17618 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17619
17620 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17621
17622 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17623
17624 * math/Makefile: Remove mpexp.c and mplog.c
17625 * sysdeps/i386/fpu/mpexp.c: Delete file.
17626 * sysdeps/i386/fpu/mplog.c: Likewise.
17627 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17628 * sysdeps/ia64/fpu/mplog.c: Likewise.
17629 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17630 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17631 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17632 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17633 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17634 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17635 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17636 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17637 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17638 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17639 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17640 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17641 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17642 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17643 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17644 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17645
17646 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17647
17648 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17649
17650 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17651
17652 * sysdeps/sh/libm-test-ulps: Update.
17653
17654 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17655
17656 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17657 idouble to 1 ULP.
17658
17659 2018-02-12 Zack Weinberg <zackw@panix.com>
17660
17661 [BZ #19239]
17662 * posix/sys/types.h: Don't include sys/sysmacros.h.
17663 * misc/sys/sysmacros.h: Remove the conditional deprecation
17664 warnings for the macros defined by this header.
17665
17666 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17667
17668 * manual/probes.texi: Remove slowexp probes.
17669 * math/Makefile: Remove slowexp.
17670 * sysdeps/generic/math_private.h (__slowexp): Remove.
17671 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17672 document error bounds.
17673 * sysdeps/i386/fpu/slowexp.c: Remove.
17674 * sysdeps/ia64/fpu/slowexp.c: Remove.
17675 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17676 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17677 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17678 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17679 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17680 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17681 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17682 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17683 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17684 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17685 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17686
17687 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17688
17689 [BZ #13932]
17690 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17691 * benchtests/pow-inputs: Update comment for slow path cases.
17692 * manual/probes.texi (slowpow_p10): Delete removed probe.
17693 (slowpow_p10): Likewise.
17694 * math/Makefile: Remove halfulp.c and slowpow.c.
17695 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17696 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17697 (__halfulp): Remove.
17698 (__slowpow): Remove.
17699 * sysdeps/i386/fpu/halfulp.c: Delete file.
17700 * sysdeps/i386/fpu/slowpow.c: Likewise.
17701 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17702 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17703 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17704 improve comments and add error analysis.
17705 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17706 (power1): Remove function:
17707 (log1): Remove error argument, add error analysis.
17708 (my_log2): Remove function.
17709 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17710 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17711 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17712 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17713 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17714 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17715 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17716 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17717 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17718 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17719 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17720 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17721 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17722 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17723
17724 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17725
17726 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17727 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17728
17729 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17730
17731 [BZ #22433]
17732 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17733 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17734 and PTRACE_SETHBPREGS.
17735
17736 2018-02-10 Zack Weinberg <zackw@panix.com>
17737
17738 [BZ #22830]
17739 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17740 correctly.
17741 * malloc/tst-malloc-stats-cancellation.c: New test case.
17742 * malloc/Makefile: Add new test case.
17743
17744 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17745
17746 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17747
17748 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17749
17750 * math/Makefile (libm-narrow-fns): Add add.
17751 (libm-test-funcs-narrow): Likewise.
17752 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17753 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17754 * math/gen-auto-libm-tests.c (test_functions): Add add.
17755 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17756 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17757 (NARROW_ADD_TRIVIAL): Likewise.
17758 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17759 macro.
17760 (__daddl): Likewise.
17761 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17762 dadd.
17763 (CFLAGS-nldbl-dadd.c): New variable.
17764 (CFLAGS-nldbl-fadd.c): Likewise.
17765 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17766 __nldbl_daddl.
17767 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17768 prototype.
17769 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17770 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17771 * math/auto-libm-test-in: Add tests of add.
17772 * math/auto-libm-test-out-narrow-add: New generated file.
17773 * math/libm-test-narrow-add.inc: New file.
17774 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17775 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17776 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17777 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17778 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17779 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17780 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17781 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17782 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17783 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17784 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17785 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17786 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17787 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17788 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17789 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17790 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17791 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17792 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17793 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17794 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17795 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17796 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17797 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17798 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17799 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17800 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17801 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17802 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17803 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17804 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17805 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17810 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17811 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17812 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17813 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17814 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17815 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17816 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17817 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17818 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17819 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17820
17821 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17822 (f128-pairs): New variable.
17823 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17824 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17825 to CFLAGS.
17826 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17827 Also make tests add $(f128-loader-link) to gnulib-tests.
17828
17829 2018-02-09 DJ Delorie <dj@redhat.com>
17830
17831 [BZ #22827]
17832 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17833 64-bit ELF type for 64-bit ELF objects.
17834
17835 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17836
17837 * math/libm-test-driver.c (snan_tests_arg): New variable.
17838 * math/libm-test-support.h (snan_tests_arg): New declaration.
17839 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17840
17841 * math/Makefile (test-type-pairs): New variable.
17842 (test-type-pairs-f64xf128-yes): Likewise.
17843 (tests): Add test-narrow-macros.
17844 (libm-test-funcs-narrow): New variable.
17845 (libm-test-c-narrow): Likewise.
17846 (generated): Add $(libm-test-c-narrow).
17847 (libm-tests-base-narrow): New variable.
17848 (libm-tests-narrow): Likewise.
17849 (libm-tests): Add $(libm-tests-narrow).
17850 (libm-tests-for-type): Handle $(libm-tests-narrow).
17851 (libm-test-c-narrow-obj): New variable.
17852 ($(libm-test-c-narrow-obj)): New rule.
17853 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17854 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17855 $(o-iterator) to set dependencies and CFLAGS.
17856 * math/gen-auto-libm-tests.c: Document use for narrowing
17857 functions.
17858 (output_for_one_input_case): Take argument NARROW.
17859 (generate_output): Likewise. Update call to
17860 output_for_one_input_case.
17861 (main): Take --narrow option. Update call to generate_output.
17862 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17863 (apply_lit): Update call to _apply_lit.
17864 (apply_arglit): New function.
17865 (parse_args): Handle "a" arguments.
17866 (parse_auto_input): Handle format names using ":".
17867 * math/README.libm-test: Document "a" parameter type.
17868 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17869 (ARG_TYPE_TRUE_MIN): Likewise.
17870 (ARG_TYPE_MAX): Likwise.
17871 (ARG_MIN_EXP): Likewise.
17872 (ARG_MAX_EXP): Likewise.
17873 (ARG_MANT_DIG): Likewise.
17874 (TEST_COND_arg_ibm128): Likewise.
17875 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17876 (TEST_COND_arg_fmt): New macro.
17877 (init_max_error): Update prototype.
17878 * math/libm-test-support.c (test_ibm128): New variable.
17879 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17880 instead of using [TEST_COND_ibm128] conditional.
17881 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17882 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17883 [TEST_NARROW] (TEST_MSG): New definition.
17884 (arg_plus_zero): New macro.
17885 (arg_minus_zero): Likewise.
17886 (arg_plus_infty): Likewise.
17887 (arg_minus_infty): Likewise.
17888 (arg_qnan_value_pl): Likewise.
17889 (arg_qnan_value): Likewise.
17890 (arg_snan_value_pl): Likewise.
17891 (arg_snan_value): Likewise.
17892 (arg_max_value): Likewise.
17893 (arg_min_value): Likewise.
17894 (arg_min_subnorm_value): Likewise.
17895 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17896 (RUN_TEST_LOOP_aa_f): New macro.
17897 (TEST_SUFF): New macro.
17898 (TEST_SUFF_STR): Likewise.
17899 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17900 (TEST_COND_any_ibm128): New macro.
17901 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17902 this_func. Update call to init_max_error.
17903 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17904 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17905 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17906 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17907 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17908 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17909 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17910 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17911 * math/test-math-vector.h (TEST_NARROW): Likewise.
17912 * math/test-arg-double.h: New file.
17913 * math/test-arg-float128.h: Likewise.
17914 * math/test-arg-float32x.h: Likewise.
17915 * math/test-arg-float64.h: Likewise.
17916 * math/test-arg-float64x.h: Likewise.
17917 * math/test-arg-ldouble.h: Likewise.
17918 * math/test-math-narrow.h: Likewise.
17919 * math/test-narrow-macros.c: Likewise.
17920 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17921 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17922 test-narrow-macros-ldbl-64.
17923 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17924
17925 * math/bits/mathcalls-narrow.h: New file.
17926 * include/bits/mathcalls-narrow.h: Likewise.
17927 * math/math-narrow.h: Likewise.
17928 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17929 (__MATHCALL_NARROW_ARGS_2): Likewise.
17930 (__MATHCALL_NARROW_ARGS_3): Likewise.
17931 (__MATHCALL_NARROW_NORMAL): Likewise.
17932 (__MATHCALL_NARROW_REDIR): Likewise.
17933 (__MATHCALL_NARROW): Likewise.
17934 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17935 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17936 defined.
17937 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17938 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17939 (libm-narrow-fns): New variable.
17940 (libm-narrow-types-basic): Likewise.
17941 (libm-narrow-types-ldouble-yes): Likewise.
17942 (libm-narrow-types-float128-yes): Likewise.
17943 (libm-narrow-types-float128-alias-yes): Likewise.
17944 (libm-narrow-types): Likewise.
17945 (libm-routines): Add narrowing functions.
17946 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17947 (libc_feholdexcept_setroundf128): New macro.
17948 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17949 * sysdeps/ieee754/float128/float128_private.h: Include
17950 <math/math-narrow.h>.
17951 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17952 Undefine and redefine.
17953 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17954 (libm_alias_float_ldouble): Undefine and redefine.
17955 (libm_alias_double_ldouble): Likewise.
17956
17957 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17958
17959 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17960
17961 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17962 FPCR/FPSR.
17963
17964 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17965
17966 * manual/creature.texi: Convert references to gcc.info to gcc.
17967 * manual/stdio.texi: Likewise.
17968 * manual/string.texi: Likewise.
17969
17970 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17971
17972 [BZ #17979]
17973 * posix/bits/types.h (__int_least8_t): New typedef.
17974 (__uint_least8_t): Likewise.
17975 (__int_least16_t): Likewise.
17976 (__uint_least16_t): Likewise.
17977 (__int_least32_t): Likewise.
17978 (__uint_least32_t): Likewise.
17979 (__int_least64_t): Likewise.
17980 (__uint_least64_t): Likewise.
17981 * sysdeps/generic/stdint.h (int_least8_t): Define using
17982 __int_least8_t.
17983 (int_least16_t): Define using __int_least16_t.
17984 (int_least32_t): Define using __int_least32_t.
17985 (int_least64_t): Define using __int_least64_t.
17986 (uint_least8_t): Define using __uint_least8_t.
17987 (uint_least16_t): Define using __uint_least16_t.
17988 (uint_least32_t): Define using __uint_least32_t.
17989 (uint_least64_t): Define using __uint_least64_t.
17990 * wcsmbs/uchar.h: Include <bits/types.h>.
17991 (char16_t): Define using __uint_least16_t conditional only on
17992 [!__USE_ISOCXX11].
17993 (char32_t): Define using __uint_least32_t conditional only on
17994 [!__USE_ISOCXX11].
17995 * wcsmbs/test-char-types.c: New file.
17996 * wcsmbs/Makefile (tests): Add test-char-types.
17997
17998 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17999 version to 4.0.1.
18000
18001 2018-02-07 Zack Weinberg <zackw@panix.com>
18002
18003 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18004 Delete all contents except for definitions of _G_HAVE_MMAP and
18005 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18006 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18007 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18008 change as above.
18009
18010 * libio/libio.h: Don't include bits/_G_config.h here.
18011 Include stddef.h with __need_wchar_t defined. Include
18012 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18013 Define _IO_iconv_t here, directly.
18014 Don't define _IO_HAVE_ST_BLKSIZE.
18015 * libio/libioP.h: Include _G_config.h here. Move include of
18016 shlib-compat.h up with rest of includes. Simplify conditionals
18017 controlling definition of _IO_JUMPS_OFFSET.
18018
18019 * csu/init.c: Remove always-true #if around entire file.
18020 Don't include stdio.h. Set _IO_stdin_used to hardwired
18021 constant 0x20001, and update commentary.
18022 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18023 Replace all uses of _G_va_list with __gnuc_va_list.
18024 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18025 instead of #if _IO_HAVE_ST_BLKSIZE.
18026 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18027 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18028 not #ifdef.
18029
18030 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18031 multiple-include guard to match.
18032 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18033 into this file.
18034 Remove preprocessor conditionals that are always true and/or
18035 redundant to other preprocessor conditionals in the same nest.
18036 Include shlib-compat.h unconditionally.
18037 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18038 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18039 defined after including stdio.h.
18040 Use __BEGIN_DECLS/__END_DECLS.
18041
18042 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18043 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18044 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18045
18046 2018-02-07 Zack Weinberg <zackw@panix.com>
18047
18048 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18049 New single-type headers split from _G_config.h.
18050 * libio/bits/types/cookie_io_functions_t.h
18051 * libio/bits/types/struct_FILE.h
18052 New single-type headers split from libio.h.
18053
18054 * libio/Makefile: Install the above new headers. Don't install
18055 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18056 bits/libio-ldbl.h.
18057 * libio/_G_config.h, libio/libio.h: Delete file.
18058
18059 * libio/bits/libio.h: Remove improper-inclusion guard.
18060 Include stdio.h and don't repeat anything that it does.
18061 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18062 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18063 __io_read_fn as cookie_read_function_t,
18064 __io_write_fn as cookie_write_function_t,
18065 __io_seek_fn as cookie_seek_function_t,
18066 __io_close_fn as cookie_close_function_t,
18067 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18068 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18069 here, in the "compatibility defines" section. Remove an #if 0
18070 block. Use the "body" macros from bits/types/struct_FILE.h to
18071 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18072 and _IO_ferror_unlocked.
18073 Move prototypes of __uflow and __overflow...
18074
18075 * libio/stdio.h: ...here. Don't include bits/libio.h.
18076 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18077 directly from stdarg.h. Include bits/types/__fpos_t.h,
18078 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18079 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18080 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18081 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18082 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18083 __ssize_t, not _IO_ssize_t. Unconditionally define
18084 BUFSIZ as 8192 and EOF as (-1).
18085
18086 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18087 macros from bits/types/struct_FILE.h instead of _IO_* macros
18088 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18089 instead of _IO_ssize_t.
18090 * libio/bits/stdio2.h: Similarly.
18091
18092 * libio/iolibio.h: Add multiple-include guard.
18093 Include bits/libio.h after stdio.h.
18094 * libio/libioP.h: Add multiple-include guard.
18095 Include stdio.h and bits/libio.h before iolibio.h.
18096
18097 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18098 * include/bits/types/cookie_io_functions_t.h
18099 * include/bits/types/struct_FILE.h: New wrappers.
18100
18101 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18102 Get definitions of _G_fpos_t and _G_fpos64_t from
18103 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18104 respectively. Remove improper-inclusion guards.
18105
18106 * conform/data/stdio.h-data: Update expectations of va_list.
18107 * scripts/check-installed-headers.sh: Remove special case for
18108 libio.h and _G_config.h.
18109
18110 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18111
18112 [BZ #15105]
18113 [BZ #19463]
18114 * include/sys/sysmacros.h [!_ISOMAC]
18115 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18116 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18117 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18118 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18119 libc_hidden_proto.
18120 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18121 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18122 Likewise.
18123 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18124 Undefine and redefine to add use __gnu_dev_ prefix.
18125 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18126 Likewise.
18127 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18128 and define as hidden inline function.
18129 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18130 Likewise.
18131 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18132 Likewise.
18133 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18134 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18135 (gnu_dev_minor): Likewise.
18136 (gnu_dev_makedev): Likewise.
18137 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18138 makedev.
18139 * posix/wordexp.c (exec_comm_child): Likewise.
18140 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18141 instead of minor and __gnu_dev_major instead of major.
18142 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18143 __gnu_dev_major instead of major.
18144 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18145 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18146 instead of gnu_dev_minor.
18147 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18148 (SLAVE_P): Likewise.
18149 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18150 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18151 instead of major.
18152
18153 [BZ #21313]
18154 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18155 in another place.
18156 * locale/weightwc.h (findidx): Likewise.
18157
18158 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18159
18160 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18161 (slowlog_inexact): Likewise
18162 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18163 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18164
18165 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18166
18167 [BZ #22797]
18168 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18169 missing second underscore to parameter name.
18170
18171 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18172
18173 [BZ #14508]
18174 [BZ #15512]
18175 [BZ #17082]
18176 [BZ #20530]
18177 * bits/byteswap.h: Update file comment. Do not include
18178 <bits/byteswap-16.h>.
18179 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18180 constant.
18181 (__bswap_16): Define as inline function.
18182 (__bswap_constant_32): Reformat definition.
18183 (__bswap_32): Always define as inline function, not macro, using
18184 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18185 otherwise __bswap_constant_32.
18186 (__bswap_constant_64): Reformat definition. Do not use
18187 __extension__ here.
18188 (__bswap_64): Always define as inline function, not macro. Use
18189 __extension__ on function definition. Use __builtin_bswap64 if
18190 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18191 * string/test-endian-file-scope.c: New file.
18192 * string/test-endian-sign-conversion.c: Likewise.
18193 * string/Makefile (headers): Remove bits/byteswap-16.h.
18194 (tests): Add test-endian-file-scope and
18195 test-endian-sign-conversion.
18196 (CFLAGS-test-endian-sign-conversion.c): New variable.
18197 * bits/byteswap-16.h: Remove file.
18198 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18199 * sysdeps/ia64/bits/byteswap.h: Likewise.
18200 * sysdeps/m68k/bits/byteswap.h: Likewise.
18201 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18202 * sysdeps/s390/bits/byteswap.h: Likewise.
18203 * sysdeps/tile/bits/byteswap.h: Likewise.
18204 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18205 * sysdeps/x86/bits/byteswap.h: Likewise.
18206
18207 [BZ #17721]
18208 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18209 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18210 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18211 199901L] (__restrict): Define to restrict.
18212
18213 [BZ #19667]
18214 * string/testcopy.c: Include <support/support.h>. Do not include
18215 <malloc.h>. Use <support/test-driver.c>.
18216 (main): Rename to do_test. Make static. Use xmalloc instead of
18217 malloc.
18218
18219 [BZ #13575]
18220 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18221 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18222 (SSIZE_MAX): Define to INT_MAX.
18223 * posix/test-ssize-max.c: New file.
18224 * posix/Makefile (tests): Add test-ssize-max.
18225
18226 [BZ #19668]
18227 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18228 <support/support.h>. Do not include <malloc.h>.
18229 (query_auxv): Use xmalloc instead of malloc.
18230
18231 [BZ #14553]
18232 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18233 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18234 instead of loff_t.
18235
18236 2018-02-06 Florian Weimer <fweimer@redhat.com>
18237
18238 [BZ #18023]
18239 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18240 Use scratch_buffer instead of extend_alloca.
18241
18242 2018-02-06 Zack Weinberg <zackw@panix.com>
18243
18244 * libio/stdio.h: Don't define getc or putc as macros.
18245 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18246 not _IO_getc and _IO_putc.
18247
18248 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18249 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18250
18251 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18252
18253 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18254 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18255
18256 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18257
18258 [BZ #14890]
18259 * elf/elf.h (NT_PRFPREG): New macro.
18260 (NT_S390_VXRS_LOW): Likewise.
18261 (NT_S390_VXRS_HIGH): Likewise.
18262 (NT_S390_GS_CB): Likewise.
18263 (NT_S390_GS_BC): Likewise.
18264 (NT_S390_RI_CB): Likewise.
18265
18266 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18267 (MAP_SYNC): New macro.
18268 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18269 Likewise.
18270 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18271 (MAP_SYNC): Likewise.
18272 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18273 (MAP_SYNC): Likewise.
18274 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18275 (MAP_SYNC): Likewise.
18276 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18277 (MAP_SYNC): Likewise.
18278 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18279 (MAP_SYNC): Likewise.
18280 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18281 (MAP_SYNC): Likewise.
18282 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18283 Likewise.
18284 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18285 Likewise.
18286
18287 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18288 (MAP_SHARED_VALIDATE): New macro.
18289 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18290 (MAP_SHARED_VALIDATE): Likewise.
18291
18292 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18293
18294 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18295 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18296 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18297
18298 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18299
18300 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18301 (DT_NUM): Updated to 35.
18302
18303 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18304
18305 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18306 __builtin_expect with __glibc_likely and __glibc_unlikely.
18307 (elf_machine_rela): Likewise.
18308 (elf_machine_lazy_rel): Likewise.
18309
18310 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18311
18312 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18313 __builtin_expect with __glibc_likely and __glibc_unlikely.
18314 (elf_machine_lazy_rel): Likewise.
18315
18316 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18317
18318 [BZ #22638]
18319 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18320 SHARED.
18321 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18322
18323 2018-02-05 Andreas Schwab <schwab@suse.de>
18324
18325 [BZ #22761]
18326 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18327 string.
18328
18329 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18330
18331 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18332 not check against PTHREAD_STACK_MIN.
18333
18334 2018-02-02 Sean McKean <smckean83@gmail.com>
18335
18336 [BZ #22735]
18337 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18338
18339 2018-02-02 Florian Weimer <fweimer@redhat.com>
18340
18341 [BZ #22753]
18342 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18343 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18344 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18345 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18346 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18347 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18348 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18349 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18350 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18351 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18352 * misc/tst-preadvwritev2.c (do_test): Call it.
18353 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18354
18355 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18356
18357 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18358
18359 * benchtests/bench-memcmp.c: Print json instead of plain text.
18360
18361 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18362 every test run.
18363
18364 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18365
18366 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18367 version to 4.15.
18368 (s390_sthyi): New syscall.
18369
18370 * sysdeps/generic/ldbl-classify-compat.h: New file.
18371 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18372 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18373 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18374 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18375 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18376 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18377 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18378 <ldbl-classify-compat.h>.
18379 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18380 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18381 <ldbl-classify-compat.h>.
18382 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18383 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18384 <ldbl-classify-compat.h>.
18385 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18386 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18387 <ldbl-classify-compat.h>.
18388 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18389 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18390 <ldbl-classify-compat.h>.
18391 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18392 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18393 <ldbl-classify-compat.h>.
18394 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18395 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18396 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18397 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18398 * sysdeps/microblaze/math_private.h: Likewise.
18399 * sysdeps/nios2/math_private.h: Likewise.
18400 * sysdeps/sh/math_private.h: Likewise.
18401
18402 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18403 * sysdeps/m68k/coldfire/math_private.h: ... here.
18404 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18405 * sysdeps/tile/math_private.h: Likewise.
18406 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18407 Remove macro.
18408 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18409 Likewise.
18410
18411 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18412 Remove macro.
18413 (libc_fetestexcept): Likewise.
18414 (libc_feupdateenv_test): Likewise.
18415 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18416 (libc_fetestexcept): Likewise.
18417 (libc_feupdateenv_test): Likewise.
18418 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18419 (libc_fetestexcept): Likewise.
18420 (libc_feupdateenv_test): Likewise.
18421 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18422 (libc_fetestexcept): Likewise.
18423 (libc_feupdateenv_test): Likewise.
18424
18425 * sysdeps/generic/math_private.h
18426 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18427 New inline function.
18428 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18429 Likewise.
18430
18431 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18432 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18433 * sysdeps/generic/math_private.h
18434 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18435 inline function.
18436 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18437 Likewise.
18438 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18439 Likewise.
18440 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18441 Likewise.
18442 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18443 Likewise.
18444 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18445 Likewise.
18446 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18447 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18448 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18449 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18450 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18451 (__fegetenv): Likewise.
18452 (fesetenv): Likewise.
18453 (__fesetenv): Likewise.
18454 (feupdateenv): Likewise.
18455 (__feupdateenv): Likewise.
18456 (fegetround): Likewise.
18457 (__fegetround): Likewise.
18458 (fesetround): Likewise.
18459 (__fesetround): Likewise.
18460
18461 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18462 (feraiseexcept): New macro.
18463 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18464 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18465 Remove macro.
18466 (__feraiseexcept): Likewise.
18467 (feclearexcept): Likewise.
18468 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18469 (__feraiseexcept): Likewise.
18470 (feclearexcept): Likewise.
18471 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18472 (__feraiseexcept): Likewise.
18473 (feclearexcept): Likewise.
18474 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18475 (__feraiseexcept): Likewise.
18476 (feclearexcept): Likewise.
18477 (fetestexcept): Likewise.
18478
18479 * sysdeps/m68k/coldfire/math-tests.h: New file.
18480
18481 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18482 * sysdeps/m68k/bits/fenv.h: ... here.
18483 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18484 not define.
18485 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18486 Likewise.
18487 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18488 Likewise.
18489 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18490 Likewise.
18491 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18492 Likewise.
18493 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18494 Define to 0.
18495 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18496 (__FE_UNDEFINED): New enum constant.
18497 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18498 Do not define.
18499 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18500 Likewise.
18501 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18502 Likewise.
18503 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18504 to match generic bits/fenv.h.
18505 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18506 Do not define.
18507
18508 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18509 packed on bits.
18510 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18511 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18512 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18513 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18514
18515 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18516 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18517 Joseph Myers <joseph@codesourcery.com>
18518
18519 [BZ #21314]
18520 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18521 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18522 computation using c.
18523 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18524 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18525 computation using c.
18526
18527 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18528
18529 * version.h (RELEASE): Set to "development".
18530 (VERSION): Set to "2.27.9000".
18531 * NEWS (2.28): New section.
18532
18533 * version.h (RELEASE): Set to "stable".
18534 (VERSION): Set to "2.27".
18535 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18536
18537 * NEWS: Add the list of bugs fixed in 2.27.
18538
18539 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18540
18541 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18542 against PTHREAD_STACK_MIN.
18543
18544 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18545
18546 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18547 New entries.
18548 (Rafal Luzynski, Andreas Schwab): Update.
18549
18550 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18551
18552 [BZ #10871]
18553 * NEWS: List the languages which actually use the alternative
18554 months feature in this release. Also explain that "alt_mon" and
18555 "ab_alt_mon" are optional.
18556
18557 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18558
18559 [BZ #22765]
18560 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18561
18562 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18563
18564 * manual/install.texi (Tools for Compilation): Update the newest
18565 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18566 * INSTALL: Regenerated.
18567
18568 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18569
18570 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18571 instead of __builtin_expect.
18572
18573 2018-01-30 Florian Weimer <fweimer@redhat.com>
18574
18575 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18576 data.
18577 * nss/tst-nss-getpwent.c (do_test): Likewise.
18578
18579 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18580
18581 [BZ #10871]
18582 * localedata/locales/hr_HR (mon): Rename to...
18583 (alt_mon): This.
18584 (mon): Import from CLDR (genitive case).
18585 (d_t_fmt): Update the comment.
18586
18587 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18588
18589 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18590 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18591 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18592
18593 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18594
18595 * mach/Versions: Fix version when __mach_host_self_ was added.
18596 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18597 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18598 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18599 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18600 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18601 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18602 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18603 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18604 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18605 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18606 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18607 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18608 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18609 || to respect codestyle.
18610 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18611 (do_test_bz20181): Rename accordingly.
18612 * malloc/malloc.c: Include <assert.h>.
18613 (assert): Do not define.
18614 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18615 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18616 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18617 * sysdeps/mach/hurd/hp-timing.h: New file.
18618 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18619
18620 2018-01-29 Darius Rad <darius@bluespec.com>
18621
18622 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18623
18624 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18625
18626 * sysdeps/init_array/crti.S (.section .init_array): Add
18627 PREINIT_FUNCTION when defined.
18628 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18629 * config.h.in: Regenerate.
18630 * manual/platform.texi: Add RISC-V documenation for
18631 __riscv_flush_icache.
18632 * sysdeps/riscv/__longjmp.S: New file.
18633 * sysdeps/riscv/backtrace.c: Likewise.
18634 * sysdeps/riscv/bits/endian.h: Likewise.
18635 * sysdeps/riscv/bits/setjmp.h: Likewise.
18636 * sysdeps/riscv/bits/wordsize.h: Likewise.
18637 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18638 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18639 * sysdeps/riscv/dl-trampoline.S: Likewise.
18640 * sysdeps/riscv/gccframe.h: Likewise.
18641 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18642 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18643 * sysdeps/riscv/machine-gmon.h: Likewise.
18644 * sysdeps/riscv/memusage.h: Likewise.
18645 * sysdeps/riscv/setjmp.S: Likewise.
18646 * sysdeps/riscv/sys/asm.h: Likewise.
18647 * sysdeps/riscv/tls-macros.h: Likewise.
18648 * sysdeps/riscv/dl-tls.h: New file.
18649 * sysdeps/riscv/libc-tls.c: Likewise.
18650 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18651 * sysdeps/riscv/nptl/tls.h: Likewise.
18652 * sysdeps/riscv/stackinfo.h: Likewise.
18653 * sysdeps/riscv/bits/fenv.h: New file.
18654 * sysdeps/riscv/e_sqrtl.c: Likewise.
18655 * sysdeps/riscv/fpu_control.h: Likewise.
18656 * sysdeps/riscv/math-tests.h: Likewise.
18657 * sysdeps/riscv/nofpu/Implies: Likewise.
18658 * sysdeps/riscv/sfp-machine.h: Likewise.
18659 * sysdeps/riscv/tininess.h: Likewise.
18660 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18661 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18662 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18663 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18664 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18665 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18666 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18667 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18668 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18669 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18670 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18671 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18672 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18673 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18674 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18675 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18676 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18677 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18678 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18679 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18680 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18681 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18682 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18683 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18684 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18685 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18686 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18687 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18688 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18689 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18690 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18691 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18692 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18693 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18694 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18695 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18696 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18697 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18698 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18699 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18700 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18701 * sysdeps/riscv/rvf/math_private.h: Likewise.
18702 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18703 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18704 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18705 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18706 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18707 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18708 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18709 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18710 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18711 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18712 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18713 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18714 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18715 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18716 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18717 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18718 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18719 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18720 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18721 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18722 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18723 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18724 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18725 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18726 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18727 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18728 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18729 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18730 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18731 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18732 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18733 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18734 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18735 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18736 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18737 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18738 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18739 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18740 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18741 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18742 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18743 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18744 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18745 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18746 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18747 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18748 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18749 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18750 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18751 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18752 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18753 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18754 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18755 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18756 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18757 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18758 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18759 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18760 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18761 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18762 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18763 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18764 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18765 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18766 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18767 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18768 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18769 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18770 * sysdeps/riscv/Implies: New file.
18771 * sysdeps/riscv/Makefile: Likewise.
18772 * sysdeps/riscv/configure: Likewise.
18773 * sysdeps/riscv/configure.ac: Likewise.
18774 * sysdeps/riscv/nptl/Makefile: Likewise.
18775 * sysdeps/riscv/preconfigure: Likewise.
18776 * sysdeps/riscv/rv64/Implies-after: Likewise.
18777 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18778 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18779 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18780 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18781 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18782 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18783 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18784 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18785 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18786 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18787 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18788 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18789 (Config): Likewise.
18790
18791 2018-01-29 Florian Weimer <fweimer@redhat.com>
18792
18793 [BZ #22701]
18794 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18795 libnsl_hidden_proto.
18796 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18797 libnsl_hidden_proto.
18798 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18799 * nis/Makefile (libnsl-routines): Add nss-default only for
18800 build-obsolete-nsl.
18801 * nis/nis_defaults.c (__nis_default_ttl): Add
18802 libnsl_hidden_nolink_def.
18803 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18804 declaration.
18805 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18806 * nis/ypclnt.c (yp_maplist): Likewise.
18807
18808 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18809
18810 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18811 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18812
18813 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18814
18815 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18816 clean -dxfq for git updates when replacing sources.
18817
18818 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18819 --disable-libcilkrts unconditionally, not just for the final GCC
18820 build for Hurd.
18821
18822 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18823 version to 4.15.
18824
18825 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18826
18827 [BZ #10871]
18828 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18829 case).
18830
18831 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18832
18833 [BZ #10871]
18834 * localedata/locales/be_BY (mon): Rename to...
18835 (alt_mon): This, then synchronize with CLDR (nominative case).
18836 (abmon): Rename to...
18837 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18838 (mon): Import from CLDR (genitive case).
18839 (abmon): Likewise.
18840 * localedata/locales/be_BY@latin (mon): Rename to...
18841 (alt_mon): This.
18842 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18843
18844 * localedata/locales/be_BY@latin (lang_name): Reworded to
18845 "biełaruskaja mova".
18846
18847 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18848
18849 [BZ #10871]
18850 * localedata/locales/el_CY (mon): Renamed to...
18851 (alt_mon): This.
18852 (mon): Import from CLDR (genitive case).
18853 * localedata/locales/el_GR: Likewise.
18854
18855 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18856
18857 [BZ #10871]
18858 * localedata/locales/ru_RU (mon): Rename to...
18859 (alt_mon): This.
18860 (abmon): Rename to...
18861 (ab_alt_mon): This.
18862 (mon): Import from CLDR (genitive case).
18863 (abmon): Copy from the old content except the 5th month which is
18864 now in the genitive case, even when abbreviated.
18865 * localedata/locales/ru_UA: Likewise.
18866 * time/tst-strptime.c (day_tests): Add an actual example of
18867 a difference between %b and %Ob in Russian.
18868
18869 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18870
18871 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18872 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18873 a `c' variable.
18874 * resolv/res-close.c: Include <stdlib.h>.
18875 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18876 <sys/wait.h>, <time.h>, <sys/uio.h>.
18877 (NOT_CANCEL_H): Add inclusion guard.
18878 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18879 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18880 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18881 return 0.
18882 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18883 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18884 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18885 instead of void *.
18886 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18887 timer_ptr2id to cast struct timer_node * to void *.
18888 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18889 --disable-libcilkrts to gcc configure.
18890 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18891 and make them the default for now.
18892 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18893 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18894 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18895 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18896 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18897 MACH_IPC_COMPAT.
18898 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18899 __task_terminate would ever return successfully.
18900 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18901 to global scope.
18902 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18903 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18904 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18905 critical section to make code simpler and avoid warning.
18906 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18907 critical section to make code simpler and avoid warning.
18908 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18909 const char * instead of char *.
18910 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18911 __hurd_file_name_split, hurd_file_name_split,
18912 __hurd_directory_name_split, hurd_directory_name_split,
18913 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18914 hurd_file_name_path_lookup): Make lookup function parameter take a
18915 const char *name instead of char *name.
18916 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18917 __hurd_directory_name_split): Likewise.
18918 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18919 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18920 * sysdeps/mach/hurd/check_native.c: New file.
18921 * sysdeps/mach/hurd/check_pf.c: New file.
18922 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18923 (__freeifaddrs): Define macro to freeifaddrs.
18924 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18925 * sysdeps/mach/libmachuser.abilist: New file.
18926 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18927 (do_test_bz20181): Rename accordingly.
18928 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18929 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18930 <sys/mount.h>.
18931 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18932 version only if __USE_EXTERN_INLINES is defined.
18933 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18934 __hurd_sockfail): Likewise.
18935 (_hurd_fd_get): Always declare functions, and provide inline versions
18936 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18937 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18938 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18939 _hurd_port_set): Always declare functions, and provide inline versions
18940 only if __USE_EXTERN_INLINES and _LIBC are defined and
18941 IS_IN(libc).
18942 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18943 _hurd_critical_section_unlock): Likewise.
18944 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18945 * __hurd_threadvar_location): Likewise.
18946 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18947 _hurd_userlink_clear): Likewise.
18948 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18949 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18950 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18951 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18952 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18953 __spin_lock_locked): Likewise.
18954 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18955 __spin_lock_locked): Likewise.
18956 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18957 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18958 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18959 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18960 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18961 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18962 _POSIX_NO_TRUNC): Define to 0.
18963 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18964 check size against PTHREAD_STACK_MIN.
18965 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18966 IS_IN(libpthread)]: Include <sigsetops.h>.
18967 * mach/Makefile (user-interfaces): Add mach/gnumach.
18968 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18969 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18970 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18971 instead of invalid -1.
18972 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18973 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18974 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18975 <net/ppp_defs.h>.
18976
18977 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18978
18979 * hurd/fcntl-internal.h: New file.
18980
18981 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18982
18983 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18984
18985 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18986
18987 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18988
18989 [BZ #22701]
18990 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18991 Build only shared objects.
18992
18993 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18994
18995 * README: Update for hppa.
18996
18997 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18998
18999 * sysdeps/sparc/fpu/libm-test-ulps: Update
19000 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19001
19002 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19003
19004 Revert:
19005
19006 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19007
19008 [BZ #22563]
19009 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19010 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19011 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19012 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19013 to feature_1.
19014
19015 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19016
19017 [BZ #22563]
19018 * bits/types/__cancel_jmp_buf_tag.h: New file.
19019 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19020 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19021 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19022 * nptl/Makefile (headers): Add
19023 bits/types/__cancel_jmp_buf_tag.h.
19024 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19025 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19026 * sysdeps/nptl/pthread.h: Include
19027 <bits/types/__cancel_jmp_buf_tag.h>.
19028 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19029 __cancel_jmp_buf.
19030 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19031
19032 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19033
19034 [BZ #10871]
19035 * localedata/locales/uk_UA (mon): Renamed to...
19036 (alt_mon): This.
19037 (alt_digits): "0" removed and then renamed to...
19038 (mon): This.
19039 (date_fmt): Definition changed not to use the alternative
19040 digits hack.
19041
19042 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19043
19044 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19045 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19046 * elf/elf.h (EF_RISCV_RVC): New define.
19047 (EF_RISCV_FLOAT_ABI): Likewise.
19048 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19049 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19050 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19051 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19052 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19053 define.
19054 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19055
19056 2018-01-25 Andreas Schwab <schwab@suse.de>
19057
19058 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19059 single quotes.
19060 * sysdeps/gnu/configure: Regenerate.
19061 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19062 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19063 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19064 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19065 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19066 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19067 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19068 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19069
19070 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19071
19072 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19073 URL, and run autoconf, make it the default for now.
19074
19075 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19076
19077 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19078 soft-float ColdFire configuration.
19079
19080 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19081 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19082 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19083
19084 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19085 MicroBlaze file.
19086
19087 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19088 ....
19089 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19090 ... here.
19091 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19092 New file.
19093
19094 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19095 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19096 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19097 file.
19098
19099 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19100
19101 [BZ #22742]
19102 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19103 Rename to __reserved and add comment.
19104 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19105 Rename to __reserved.
19106
19107 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19108
19109 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19110 i686-gnu configurations.
19111 (Context.run_builds): Include mig, gnumach and hurd in components
19112 considered.
19113 (Context.checkout): Add mig, gnumach and hurd to components.
19114 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19115 hurd.
19116 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19117 (Config.build): Install gnumach headers, build mig and install
19118 hurd headers for 'gnu' OS.
19119 (Config.install_gnumach_headers): New function.
19120 (Config.install_hurd_headers): Likewise.
19121 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19122 when building for 'gnu' OS.
19123
19124 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19125
19126 * manual/tunables.texi (Hardware Capability Tunables): Fix
19127 spelling.
19128
19129 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19130
19131 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19132 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19133 (ALTMON_11, ALTMON_12): Improve documentation.
19134 * manual/time.texi (strftime): Likewise.
19135
19136 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19137
19138 [BZ #10871]
19139 * localedata/locales/pl_PL: Alternative month names added,
19140 primary month names are genitive now.
19141 * time/tst-strptime.c (day_tests): Actually use a genitive case
19142 of a month name in Polish language.
19143
19144 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19145
19146 [BZ #10871]
19147 * manual/locale.texi: Document ALTMON_1..12 constants for
19148 nl_langinfo. Specify when to use ALTMON instead of MON.
19149 * manual/time.texi (strftime, strptime): Document GNU extension
19150 permitting O modifier with %B and %b. Specify when to use
19151 %OB instead of %B.
19152
19153 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19154
19155 [BZ #10871]
19156 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19157 names, define them as the same as abbreviated month names explicitly.
19158 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19159 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19160 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19161 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19162 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19163 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19164 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19165 _NL_WABALTMON_12): New enum constants.
19166 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19167 wab_alt_mon, and ab_alt_mon_defined members.
19168 (time_output): Output ab_alt_mon and wab_alt_mon members.
19169 (time_read): Read them, initialize them as copies of abmon and wabmon
19170 respectively if they are missing, initialize ab_alt_mon_defined.
19171 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19172 * locale/programs/locfile-kw.h: Regenerate.
19173 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19174 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19175 and ru_RU.UTF-8.
19176 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19177 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19178 (__strftime_internal): Handle %Ob and %Oh formats.
19179 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19180 (__strptime_internal): Handle %Ob and %Oh formats.
19181 * time/tst-strptime.c (day_tests): Add more tests to parse different
19182 forms of month names including the new %Ob format specifier.
19183
19184 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19185
19186 [BZ #10871]
19187 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19188 define them as the same as primary full month names explicitly.
19189 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19190 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19191 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19192 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19193 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19194 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19195 _NL_WALTMON_12): New enum constants.
19196 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19197 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19198 macros.
19199 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19200 walt_mon, and alt_mon_defined members.
19201 (time_output): Output alt_mon and walt_mon members.
19202 (time_read): Read them, initialize them as copies of mon and wmon
19203 respectively if they are missing, initialize alt_mon_defined.
19204 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19205 * locale/programs/locfile-kw.h: Regenerate.
19206 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19207 * localedata/tst-langinfo.c (map): Add tests for the new constants
19208 ALTMON_1 .. ALTMON_12.
19209 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19210 and pl_PL.UTF-8.
19211 * time/strftime_l.c (f_altmonth): New macro.
19212 (__strftime_internal): Handle %OB format.
19213 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19214 (__strptime_internal): Handle %OB format.
19215 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19216 of month names including the new %OB format specifier.
19217
19218 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19219
19220 [BZ #22685]
19221 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19222 from ABORT_TRANSACTION.
19223 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19224 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19225 ABORT_TRANSACTION_IMPL): Likewise.
19226 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19227 Linux code, but remove the code that aborts transactions.
19228
19229 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19230
19231 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19232
19233 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19234
19235 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19236 in date: "2004-14-09" should be "2004-09-14".
19237 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19238 "2003-15-09" should be "2003-09-15".
19239
19240 2018-01-18 Arjun Shankar <arjun@redhat.com>
19241
19242 [BZ #22343]
19243 [BZ #22774]
19244 CVE-2018-6485
19245 CVE-2018-6551
19246 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19247 after padding.
19248 (_int_memalign): check for integer overflow before calling
19249 _int_malloc.
19250 * malloc/tst-malloc-too-large.c: New test.
19251 * malloc/Makefile: Add tst-malloc-too-large.
19252
19253 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19254
19255 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19256 in date: "2017-24-07" should be "2017-07-24".
19257 * localedata/locales/mai_IN: Likewise.
19258 * localedata/locales/mai_NP: Likewise.
19259
19260 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19261
19262 * po/ru.po: Update translations.
19263
19264 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19265
19266 [BZ #22719]
19267 * sysdeps/hppa/backtrace.c: New file.
19268
19269 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19270
19271 [BZ #22715]
19272 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19273 align La_x86_64_retval to VEC_SIZE.
19274
19275 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19276
19277 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19278 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19279
19280 2018-01-16 Florian Weimer <fweimer@redhat.com>
19281
19282 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19283 Move tst-thread-exit-clobber ...
19284 [$(CXX)] (tests-unsupported): ... to here.
19285
19286 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19287
19288 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19289 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19290 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19291 (_dl_aarch64_cap_flags): Update.
19292 (_DL_HWCAP_COUNT): Update.
19293
19294 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19295
19296 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19297 (_DL_HWCAP_LAST): Remove.
19298 (_DL_HWCAP_COUNT): Move to ...
19299 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19300 (_DL_HWCAP_COUNT): ... here.
19301
19302 2018-01-16 Florian Weimer <fweimer@redhat.com>
19303
19304 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19305 mode with GNU extensions.
19306
19307 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19308
19309 * elf/elf.h (NT_ARM_SVE): Define.
19310
19311 2018-01-15 Florian Weimer <fweimer@redhat.com>
19312
19313 [BZ #22636]
19314 * nptl/tst-minstack-throw.cc: New file.
19315 * nptl/Makefile (tests): Add tst-minstack-throw.
19316 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19317 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19318
19319 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19320
19321 * scripts/build-many-glibcs.py (Context.checkout): Default
19322 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19323 version to 1.1.0.
19324
19325 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19326
19327 [BZ #22707]
19328 * elf/elf.h (DF_1_STUB): Define.
19329 (DF_1_PIE): Define.
19330
19331 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19332
19333 [BZ #22697]
19334 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19335 Do not add 0.5 to integer or out-of-range arguments.
19336
19337 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19338
19339 * po/bg.po: Update translations.
19340 * po/cs.po: Likewise.
19341 * po/de.po: Likewise.
19342 * po/ko.po: Likewise.
19343 * po/pl.po: Likewise.
19344 * po/sv.po: Likewise.
19345 * po/uk.po: Likewise.
19346 * po/vi.po: Likewise.
19347
19348 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19349
19350 * aarch64/start.S (_start): Use __wrap_main.
19351 (__wrap_main): New local symbol.
19352
19353 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19354
19355 [BZ #22679]
19356 CVE-2018-1000001
19357 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19358 generic_getcwd if the path returned by getcwd syscall is not absolute.
19359 * io/tst-getcwd-abspath.c: New test.
19360 * io/Makefile (tests): Add tst-getcwd-abspath.
19361
19362 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19363
19364 * malloc/malloc.c (malloc_consolidate): Add size check.
19365
19366 2018-01-12 Florian Weimer <fweimer@redhat.com>
19367
19368 * support/write_message.c (write_message): Preserve errno.
19369 * support/check.c (print_failure): Likewise.
19370 * support/support_test_verify_impl.c (support_test_verify_impl):
19371 Likewise.
19372 * support/support_test_compare_failure.c
19373 (support_test_compare_failure): Likewise.
19374
19375 2018-01-12 Florian Weimer <fweimer@redhat.com>
19376
19377 [BZ #22701]
19378 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19379 Prevent installation of libnsl.so.
19380 (libnsl-inhibit-o): Do not build (or install) static libraries.
19381
19382 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19383
19384 [BZ #22657]
19385 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19386 before the day number which may produce a double space.
19387 (date_fmt): Likewise.
19388
19389 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19390
19391 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19392 instead of fegetenv.
19393
19394 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19395
19396 [BZ #22702]
19397 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19398 comment to say exceptions are discarded.
19399 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19400 __fegetenv.
19401 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19402 be enabled.
19403
19404 2018-01-11 Florian Weimer <fweimer@redhat.com>
19405
19406 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19407 and error message.
19408
19409 2018-01-11 Florian Weimer <fweimer@redhat.com>
19410
19411 [BZ #22636]
19412 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19413 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19414
19415 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19416
19417 [BZ #22693]
19418 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19419 negative arguments in test for NaN or infinity argument.
19420
19421 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19422
19423 * po/libc.pot: Regenerate.
19424
19425 2018-01-10 Florian Weimer <fweimer@redhat.com>
19426
19427 [BZ #22636]
19428 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19429 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19430
19431 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19432
19433 * hurd/hurd/fd.h: Include <fcntl.h>
19434 (__hurd_at_flags): New function.
19435 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19436 with call to __hurd_at_flags.
19437 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19438 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19439 __faccessat
19440 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19441 (__access_noerrno): Use __faccessat_common instead of access_common.
19442 (__access): Likewise.
19443 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19444 with a call to __faccessat.
19445 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19446 (__faccessat_common): ... this. Move implementation of __access into it when
19447 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19448 reauthenticate_cwdir_at helper to implement AT mechanism.
19449 (__faccessat_noerrno): New function, just calls __faccessat_common.
19450 (__faccessat): New function, just calls __faccessat_common.
19451 (faccessat): Define weak alias.
19452
19453 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19454
19455 [BZ #22691]
19456 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19457 (CFLAGS-s_fmaxmagl.c): New variable.
19458 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19459
19460 [BZ #22690]
19461 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19462 long int for arguments of possibly overflowing addition or
19463 subtraction.
19464 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19465
19466 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19467
19468 [BZ #22688]
19469 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19470 (CFLAGS-e_remainderl.c): New variable.
19471
19472 [BZ #22687]
19473 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19474 variable.
19475 (CFLAGS-s_cacoshl.c): Likewise.
19476 (CFLAGS-s_casinhl.c): Likewise.
19477 (CFLAGS-s_catanl.c): Likewise.
19478 (CFLAGS-s_catanhl.c): Likewise.
19479 (CFLAGS-s_cexpl.c): Likewise.
19480 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19481 (CFLAGS-s_csinhl.c): Likewise.
19482 (CFLAGS-s_clogl.c): Likewise.
19483 (CFLAGS-s_clog10l.c): Likewise.
19484 (CFLAGS-s_csinl.c): Likewise.
19485 (CFLAGS-s_csqrtl.c): Likewise.
19486
19487 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19488 2017-01-09 Svante Signell <svante.signell@gmail.com>
19489
19490 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19491 (_hurd_exec_paths): New function.
19492 * hurd/hurd.h (_hurd_exec): Deprecate function.
19493 (_hurd_exec_paths): Declare function.
19494 * hurd/Versions: Export _hurd_exec_paths.
19495 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19496 (__execve): Use __getcwd to build absolute path, and use
19497 _hurd_exec_paths instead of _hurd_exec.
19498 * sysdeps/mach/hurd/spawni.c: Likewise.
19499 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19500 _hurd_exec.
19501
19502 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19503
19504 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19505 test instead of failing in case of ENOENT returned by posix_openpt.
19506
19507 2018-01-08 Florian Weimer <fweimer@redhat.com>
19508
19509 resolv: Support binary labels in test framework.
19510 * support/resolv_test.c (struct to_be_freed): Remove.
19511 (struct compressed_name): New.
19512 (allocate_compressed_name, ascii_tolower)
19513 (compare_compressed_name): New functions.
19514 (struct resolv_response_builder): Update type of
19515 compression_offsets for use with tsearch. Rempve to_be_freed.
19516 (response_push_pointer_to_free): Remove function.
19517 (resolv_response_add_name): Rewrite using struct compressed_name
19518 and tsearch instead of hsearch_r.
19519 (response_builder_allocate): Remove initialization of
19520 compression_offsets.
19521 (response_builder_free): Update for removal of to_be_freed. Use
19522 tdestroy instead of hdestroy_r.
19523 * resolv/Makefile (tests): Add tst-resolv-binary.
19524 (tst-resolv-binary): Link with -lresolv -lpthread.
19525
19526 2018-01-08 Florian Weimer <fweimer@redhat.com>
19527
19528 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19529 time. Pass positive flag instead of negative flag to
19530 support_test_compare_failure.
19531 (support_test_compare_failure): Change negative parameter to
19532 positive.
19533 * support/support_test_compare_failure.c (report)
19534 (support_test_compare_failure): Likewise.
19535 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19536 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19537
19538 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19539
19540 [BZ #22637]
19541 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19542 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19543 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19544 stacksize.
19545 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19546
19547 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19548
19549 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19550 Add s_sincosf-sse2 and s_sincosf-fma.
19551 (CFLAGS-s_sincosf-fma.c): New.
19552 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19553 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19554 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19555 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19556 __sincosf is defined.
19557
19558 2018-01-08 Florian Weimer <fweimer@redhat.com>
19559
19560 * nptl/tst-thread-exit-clobber.cc: New file.
19561 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19562 C++11 mode.
19563 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19564 (tests): Add tst-thread-exit-clobber.
19565 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19566
19567 2018-01-08 Florian Weimer <fweimer@redhat.com>
19568
19569 * support/check.h (support_static_assert): Define.
19570 (TEST_COMPARE): Use it.
19571
19572 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19573
19574 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19575 [!__RLIM_T_MATCHES_RLIM64_T]
19576 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19577 __getrlimit64. Add libc_hidden_weak.
19578
19579 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19580
19581 * elf/elf.h (R_RISCV_NONE): New define.
19582 (R_RISCV_32): Likewise.
19583 (R_RISCV_64): Likewise.
19584 (R_RISCV_RELATIVE): Likewise.
19585 (R_RISCV_COPY): Likewise.
19586 (R_RISCV_JUMP_SLOT): Likewise.
19587 (R_RISCV_TLS_DTPMOD32): Likewise.
19588 (R_RISCV_TLS_DTPMOD64): Likewise.
19589 (R_RISCV_TLS_DTPREL32): Likewise.
19590 (R_RISCV_TLS_DTPREL64): Likewise.
19591 (R_RISCV_TLS_TPREL32): Likewise.
19592 (R_RISCV_TLS_TPREL64): Likewise.
19593 * Makerules (make-link-multidir): Make directories before linking into
19594 them.
19595 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19596 define.
19597 (VDSO_HASH_LINUX_4_15): Likewise.
19598 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19599 in subdirectories of lib.
19600 * nptl/Makefile (/librt.so): Always depend on
19601 "$(shared-thread-library)".
19602
19603 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19604
19605 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19606 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19607 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19608 (___tls_get_addr).
19609 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19610 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19611 "-O2 -march=i686".
19612 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19613 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19614 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19615 * sysdeps/gnu/glob-lstat-compat.c: New file.
19616 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19617 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19618
19619 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19620
19621 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19622 Reserve 16 chars to reloc_addr before calling _itoa_word.
19623
19624 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19625
19626 [BZ #22678]
19627 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19628 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19629
19630 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19631 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19632
19633 * resource/tst-getrlimit.c: Add copyright header.
19634
19635 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19636 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19637
19638 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19639 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19640 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19641 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19642 instead.
19643 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19644 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19645 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19646 RLIM64_INFINITY): Fix values to match the kernel ones.
19647 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19648 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19649 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19650 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19651 getrlimit64@@GLIBC_2_27.
19652 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19653 and setrlimit64.
19654 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19655 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19656 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19657 setrlimit, getrlimit64 and setrlimit64.
19658
19659 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19660
19661 [BZ #22648]
19662 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19663 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19664
19665 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19666
19667 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19668 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19669 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19670
19671 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19672
19673 [BZ #15479]
19674 [BZ #22666]
19675 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19676 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19677
19678 [BZ #15479]
19679 [BZ #22665]
19680 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19681 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19682 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19683 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19684
19685 2018-01-04 Florian Weimer <fweimer@redhat.com>
19686
19687 [BZ #22667]
19688 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19689 Align the stack before calling exit.
19690 * stdlib/tst-makecontext-align.c: New file.
19691 * stdlib/Makefile (tests): Add tst-makecontext-align.
19692
19693 2018-01-04 Florian Weimer <fweimer@redhat.com>
19694
19695 Add support for calling dlvsym from libc.so.
19696 * include/dlfcn.h (__libc_dlvsym): Declare.
19697 * elf/Makefile (tests-static-internal): Add
19698 tst-libc_dlvsym-static.
19699 (tests-internal): Add tst-libc_dlvsym.
19700 (modules-names): Add tst-libc_dlvsym-dso.
19701 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19702 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19703 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19704 object tst-libc_dlvsym-dso.so needs to be built before running
19705 these tests.
19706 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19707 * elf/Versions: Export __libc_dlvsym.
19708 * elf/dl-libc.c (struct do_dlvsym_args): New.
19709 (do_dlvsym, __libc_dlvsym): New functions.
19710 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19711 (_dl_open_hook2): New variable.
19712 (__libc_register_dl_open_hook): Set it.
19713 * elf/tst-libc_dlvsym-dso.c: New file.
19714 * elf/tst-libc_dlvsym-static.c: Likewise.
19715 * elf/tst-libc_dlvsym.c: Likewise.
19716 * elf/tst-libc_dlvsym.h: Likewise.
19717
19718 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19719
19720 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19721 include <sys/mount.h>.
19722
19723 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19724
19725 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19726 Add __NO_MATH_ERRNO__ check.
19727
19728 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19729
19730 * sysdeps/mips/mips32/libm-test-ulps: Update.
19731 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19732
19733 2018-01-02 Florian Weimer <fweimer@redhat.com>
19734
19735 * misc/tst-pselect.c: Add copyright header.
19736
19737 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19738
19739 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19740 comment.
19741 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19742 comment.
19743 (settrlimit): Rename into setrlimit.
19744 (__sttrlimit): Rename into __setrlimit.
19745
19746 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19747 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19748 never defined in that case.
19749
19750 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19751
19752 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19753
19754 * sysdeps/arm/libm-test-ulps: Update.
19755
19756 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19757 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19758
19759 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19760
19761 * NEWS: Add cosf and sincosf to list of optimized functions.
19762
19763 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19764
19765 [BZ #22660]
19766 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19767 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19768 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19769 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19770
19771 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19772
19773 [BZ #22433]
19774 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19775
19776 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19777 making a copy of it.
19778
19779 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19780
19781 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19782 trailing whitespace removed.
19783 * scripts/config.guess: Update to version 2018-01-01.
19784 * scripts/config.sub: Update to version 2018-01-01.
19785 * scripts/move-if-change: Update from gnulib.
19786
19787 * NEWS: Update copyright dates.
19788 * catgets/gencat.c (print_version): Likewise.
19789 * csu/version.c (banner): Likewise.
19790 * debug/catchsegv.sh: Likewise.
19791 * debug/pcprofiledump.c (print_version): Likewise.
19792 * debug/xtrace.sh (do_version): Likewise.
19793 * elf/ldconfig.c (print_version): Likewise.
19794 * elf/ldd.bash.in: Likewise.
19795 * elf/pldd.c (print_version): Likewise.
19796 * elf/sotruss.sh: Likewise.
19797 * elf/sprof.c (print_version): Likewise.
19798 * iconv/iconv_prog.c (print_version): Likewise.
19799 * iconv/iconvconfig.c (print_version): Likewise.
19800 * locale/programs/locale.c (print_version): Likewise.
19801 * locale/programs/localedef.c (print_version): Likewise.
19802 * login/programs/pt_chown.c (print_version): Likewise.
19803 * malloc/memusage.sh (do_version): Likewise.
19804 * malloc/memusagestat.c (print_version): Likewise.
19805 * malloc/mtrace.pl: Likewise.
19806 * manual/libc.texinfo: Likewise.
19807 * nptl/version.c (banner): Likewise.
19808 * nscd/nscd.c (print_version): Likewise.
19809 * nss/getent.c (print_version): Likewise.
19810 * nss/makedb.c (print_version): Likewise.
19811 * posix/getconf.c (main): Likewise.
19812 * scripts/test-installation.pl: Likewise.
19813 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19814
19815 * All files with FSF copyright notices: Update copyright dates
19816 using scripts/update-copyrights.
19817 * locale/programs/charmap-kw.h: Regenerated.
19818 * locale/programs/locfile-kw.h: Likewise.
19819
19820 2017-12-31 Zack Weinberg <zackw@panix.com>
19821
19822 * libio/bits/libio-ldbl.h: Correct check for improper
19823 inclusion. Add own multiple include guard.
19824
19825 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19826 Dmitry V. Levin <ldv@altlinux.org>
19827
19828 [BZ #22625]
19829 CVE-2017-16997
19830 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19831 string token expansion. Check for NULL pointer or empty string possibly
19832 returned by expand_dynamic_string_token.
19833 (decompose_rpath): Check for empty path after dynamic string
19834 token expansion.
19835
19836 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19837
19838 [BZ #22433]
19839 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19840
19841 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19842 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19843 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19844 and PTRACE_SYSCALL.
19845 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19846 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19847 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19848 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19849 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19850 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19851
19852 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19853 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19854 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19855 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19856 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19857 bits/ptrace-shared.h.
19858 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19859 <bits/ptrace-shared.h>.
19860 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19861 __ptrace_peeksiginfo_flags, ptrace): Remove.
19862 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19863 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19864 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19865 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19866 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19867
19868 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19869
19870 [BZ #17804]
19871 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19872 end of the loop. Improve comments.
19873
19874 2017-12-29 Zack Weinberg <zackw@panix.com>
19875
19876 [BZ #22615]
19877 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19878 might be set on success.
19879
19880 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19881
19882 [BZ #22611]
19883 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19884 is unchanged on success.
19885
19886 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19887
19888 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19889 updated.
19890 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19891 expand_dynamic_string_token): Likewise.
19892 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19893 is_path argument.
19894
19895 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19896 contains ':'.
19897
19898 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19899 is set and name contains ':', and all code depending on these checks.
19900
19901 2017-12-24 Zack Weinberg <zackw@panix.com>
19902
19903 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19904 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19905 respectively.
19906 * libio/libio.h: Rename the original version of this file to
19907 libio/bits/libio.h. Error out if not included by stdio.h or the
19908 stub libio.h.
19909 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19910 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19911 if not included by bits/libio.h or the stub _G_config.h.
19912 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19913 sysdeps/unix/sysv/linux/bits. Error out if not included by
19914 bits/libio.h or the stub _G_config.h.
19915 * libio/stdio.h: Include bits/libio.h, not libio.h.
19916 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19917 well as libio.h and _G_config.h.
19918
19919 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19920 * libio/strfile.h, stdio-common/vfscanf.c
19921 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19922 Include stdio.h, not _G_config.h nor libio.h.
19923 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19924 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19925
19926 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19927
19928 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19929
19930 [BZ #22347]
19931 * stdlib/getrandom.c (getrandom): Fix comment.
19932 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19933
19934 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19935
19936 [BZ #21161]
19937 * manual/arith.texi (strtoul): Fix a typo.
19938
19939 [BZ #22596]
19940 * manual/arith.texi (finite): Fix the description of the return
19941 value.
19942
19943 2017-12-22 Eric Blake <ebb9@byu.net>
19944
19945 Avoid gcc warnings on cygwin
19946 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19947 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19948 Avoid unused variable.
19949
19950 2017-12-22 Florian Weimer <fweimer@redhat.com>
19951
19952 * io/Makefile (routines): Add copy_file_range.
19953 (tests): Add tst-copy_file_range.
19954 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19955 * io/Versions (GLIBC_2.27): Export copy_file_range.
19956 * io/copy_file_range-compat.c: New file.
19957 * io/copy_file_range.c: Likewise.
19958 * io/tst-copy_file_range-compat.c: Likewise.
19959 * io/tst-copy_file_range.c: Likewise.
19960 * manual/llio.texi (Copying File Data): New section.
19961 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19962 * support/Makefile (libsupport-routines): Add support-xfstat,
19963 xftruncate, xlseek.
19964 * support/support-xfstat.c: New file.
19965 * support/xftruncate.c: Likewise.
19966 * support/xlseek.c: Likewise.
19967 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19968 * sysdeps/unix/sysv/linux/**.abilist: Update.
19969 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19970
19971 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19972
19973 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19974 disable-multi-arch variant to aarch64-linux-gnu.
19975
19976 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19977
19978 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19979 trailing whitespace removed.
19980 * scripts/config.guess: Update to version 2017-12-17.
19981 * scripts/config.sub: Update to version 2017-11-23.
19982 * scripts/install-sh: Update to version 2017-09-23.17.
19983 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19984
19985 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19986
19987 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19988 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19989 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19990 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19991 * sysdeps/tile/crtn.S: Likewise.
19992 * sysdeps/tile/dl-start.S (_start): Likewise.
19993 * sysdeps/tile/dl-trampoline.S: Likewise.
19994 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19995 * sysdeps/tile/start.S (_start): Likewise.
19996 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19997 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19998 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19999 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20000 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20001 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20002 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20003
20004 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20005 comment.
20006 * sysdeps/tile/preconfigure: Remove tilegx folder.
20007 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20008 * sysdeps/tile/Implies: ... here.
20009 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20010 * sysdeps/tile/Makefile: ... here.
20011 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20012 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20013 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20014 * sysdeps/tile/bits/wordsize.h: ... here.
20015 * sysdeps/tile/tilegx/*: Move to ...
20016 * sysdeps/tile/*: ... here.
20017 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20018 * sysdeps/tile/tilegx32/Implies: ... here.
20019 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20020 * sysdeps/tile/tilegx64/Implies: ... here.
20021 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20022 to ...
20023 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20024 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20025 * sysdeps/unix/sysv/linux/tile/*: ... here.
20026 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20027 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20028 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20029 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20030
20031 * README: Remove tilepro-*-linux-gnu from supported architecture.
20032 * scripts/build-many-glibcs.py: Likewise.
20033 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20034 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20035 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20036 elf_machine_matches_host, elf_machine_dynamic,
20037 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20038 howto, elf_machine_rela): Likewise.
20039 * sysdeps/tile/dl-start.S (_start): Likewise.
20040 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20041 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20042 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20043 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20044 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20045 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20046 Likewise.
20047 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20048 * sysdeps/tile/preconfigure: Likewise.
20049 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20050 POINTER_CHK_GUARD): Likewise.
20051 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20052 * sysdeps/tile/start.S (_start): Likewise.
20053 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20054 Likewise.
20055 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20056 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20057 CMOVNEZ): Remove.
20058 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20059 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20060 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20061 Likewise.
20062 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20063 * sysdeps/tile/tilepro/Implies: Remove file.
20064 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20065 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20066 * sysdeps/tile/tilepro/memchr.c: Likewise.
20067 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20068 * sysdeps/tile/tilepro/memset.c: Likewise.
20069 * sysdeps/tile/tilepro/memusage.h: Likewise.
20070 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20071 * sysdeps/tile/tilepro/strchr.c: Likewise.
20072 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20073 * sysdeps/tile/tilepro/strlen.c: Likewise.
20074 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20075 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20076 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20077 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20078 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20079 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20080 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20081 Likewise.
20082 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20083 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20084 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20085 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20086 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20087 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20088 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20089 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20090 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20091 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20092 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20093 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20094 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20095 tilepro mention in comment.
20096
20097 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20098 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20099 * nptl/pthread_join_common.c: New file: common function used on
20100 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20101 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20102 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20103 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20104 (cleanup): Move definition to pthread_join_common.c.
20105 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20106 Remove superflous checks.
20107 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20108 Likewise.
20109
20110 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20111
20112 * sysdeps/aarch64/libm-test-ulps: Update.
20113
20114 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20115
20116 * sysdeps/aarch64/memset.S (MEMSET): Define.
20117
20118 2017-12-20 Florian Weimer <fweimer@redhat.com>
20119
20120 [BZ #22635]
20121 nptl: Provide full implementation of pthread_self in libc.so.
20122 * nptl/Makefile (routines): Add pthread_self.
20123 (libpthread-routines): Replace pthread_self with
20124 compat-pthread_self.
20125 * nptl/forward.c (pthread_self): Remove.
20126 * nptl/nptl-init.c (pthread_functions): Do not initialize
20127 ptr_pthread_self.
20128 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20129 * nptl/compat-pthread_self.c: New file.
20130 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20131 Remove ptr_pthread_self.
20132
20133 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20134
20135 * posix/regcomp.c: Fix spelling in comments.
20136 * posix/regex.h: Likewise.
20137 * posix/regex_internal.c: Likewise.
20138 * posix/regexec.c: Likewise.
20139
20140 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20141
20142 [BZ #22377]
20143 * math/Makefile [C++] (tests): Add test for iseqsig.
20144 * math/math.h [C++] (iseqsig): New implementation, which does
20145 not rely on __MATH_TG/__builtin_types_compatible_p.
20146 * math/test-math-iseqsig.cc: New file.
20147 * sysdeps/powerpc/powerpc64le/Makefile
20148 (CFLAGS-test-math-iseqsig.cc): New variable.
20149
20150 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20151
20152 * elf/dl-load.c (is_trusted_path): Remove.
20153 (fillin_rpath): Remove check_trusted argument and its use,
20154 all callers changed.
20155
20156 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20157
20158 [BZ #22630]
20159 * Makeconfig (link-pie-before-libc): Replace -pie with
20160 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20161 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20162 (tst-dlopen-aout-no-pie): New.
20163 (LDFLAGS-tst-prelink): Removed.
20164 (tst-prelink-no-pie): New.
20165 (LDFLAGS-tst-main1): Removed.
20166 (tst-main1-no-pie): New.
20167 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20168 (tst-gmon-no-pie): New.
20169
20170 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20171
20172 * manual/install.texi: Document that --enable-static-pie
20173 implies PIE.
20174 * INSTALL: Regenerated.
20175
20176 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20177
20178 [BZ #21309]
20179 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20180 unsigned.
20181
20182 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20183
20184 Revert:
20185
20186 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20187
20188 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20189
20190 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20191
20192 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20193 <errno.h>. Include "eexp.tbl".
20194 (half): New constant.
20195 (one): Likewise.
20196 (__ieee754_exp): Rewrite.
20197 (__slowexp): Remove prototype.
20198 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20199 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20200 * sysdeps/i386/fpu/slowexp.c: Likewise.
20201 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20202 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20203 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20204 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20205 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20206 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20207 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20208 comment.
20209 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20210 (CPPFLAGS-slowexp.c): Remove variable.
20211 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20212 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20213 (CFLAGS-slowexp-fma.c): Remove variable.
20214 (CFLAGS-slowexp-fma4.c): Likewise.
20215 (CFLAGS-slowexp-avx.c): Likewise.
20216 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20217 define as macro.
20218 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20219 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20220 * math/Makefile (type-double-routines): Remove slowexp.
20221 * manual/probes.texi (slowexp_p6): Remove.
20222 (slowexp_p32): Likewise.
20223
20224 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20225
20226 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20227 arithmetic.
20228
20229 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20230
20231 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20232
20233 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20234
20235 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20236
20237 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20238 <errno.h>. Include "eexp.tbl".
20239 (half): New constant.
20240 (one): Likewise.
20241 (__ieee754_exp): Rewrite.
20242 (__slowexp): Remove prototype.
20243 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20244 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20245 * sysdeps/i386/fpu/slowexp.c: Likewise.
20246 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20247 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20248 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20249 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20250 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20251 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20252 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20253 comment.
20254 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20255 (CPPFLAGS-slowexp.c): Remove variable.
20256 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20257 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20258 (CFLAGS-slowexp-fma.c): Remove variable.
20259 (CFLAGS-slowexp-fma4.c): Likewise.
20260 (CFLAGS-slowexp-avx.c): Likewise.
20261 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20262 define as macro.
20263 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20264 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20265 * math/Makefile (type-double-routines): Remove slowexp.
20266 * manual/probes.texi (slowexp_p6): Remove.
20267 (slowexp_p32): Likewise.
20268
20269 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20270 James Clarke <jrtc27@jrtc27.com>
20271
20272 [BZ #22603]
20273 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20274 addition.
20275
20276 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20277
20278 [BZ #22605]
20279 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20280 code.
20281
20282 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20283
20284 [BZ #22563]
20285 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20286 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20287 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20288 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20289 to feature_1.
20290
20291 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20292
20293 [BZ #22563]
20294 * bits/types/__cancel_jmp_buf_tag.h: New file.
20295 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20296 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20297 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20298 * nptl/Makefile (headers): Add
20299 bits/types/__cancel_jmp_buf_tag.h.
20300 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20301 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20302 * sysdeps/nptl/pthread.h: Include
20303 <bits/types/__cancel_jmp_buf_tag.h>.
20304 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20305 __cancel_jmp_buf.
20306 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20307
20308 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20309
20310 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20311 --enable-static-pie variants to x86_64, x32 and i686.
20312
20313 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20314
20315 [BZ #22631]
20316 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20317 argument for attrubutes. All callers changed.
20318 (__inline_mathop1): Likewise. All callers changed.
20319 (__inline_mathop): Likewise. All callers changed.
20320 [__USE_MISC] (scalbn): Use __inline_forward instead of
20321 __inline_forward_c.
20322 [__USE_ISOC99] (scalbln): Likewise.
20323 [__USE_ISOC99] (nearbyint): Likewise.
20324 [__USE_ISOC99] (lrint): Likewise.
20325 [__USE_MISC] (scalbnf): Likewise.
20326 [__USE_ISOC99] (scalblnf): Likewise.
20327 [__USE_ISOC99] (nearbyintf): Likewise.
20328 [__USE_ISOC99] (lrintf): Likewise.
20329 [__USE_MISC] (scalbnl): Likewise.
20330 [__USE_ISOC99] (scalblnl): Likewise.
20331 [__USE_ISOC99] (nearbyintl): Likewise.
20332 [__USE_ISOC99] (lrintl): Likewise.
20333 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20334 __inline_mathop and __m81_defun changed.
20335
20336 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20337 CPU or FPU for ARM hard-float configurations.
20338
20339 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20340
20341 * nptl/tst-attr3.c: Include <libc-diag.h>.
20342 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20343
20344 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20345
20346 * string/tester.c (test_strncat): Also disable -Warray-bounds
20347 warnings for two tests.
20348
20349 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20350
20351 [BZ #22614]
20352 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20353 $(cc-pie-default) == yes.
20354 * config.make.in (cc-pie-default): New.
20355 * configure.ac (libc_cv_pie_default): Renamed to ...
20356 (libc_cv_cc_pie_default): This.
20357 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20358 * configure: Regenerated.
20359
20360 2017-12-18 Florian Weimer <fweimer@redhat.com>
20361
20362 [BZ #20204]
20363 ld.so: Harden dl-libc/libdl hooks.
20364 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20365 (rtld_active): New function.
20366 * dlfcn/dladdr.c (__dladdr): Call it.
20367 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20368 * dlfcn/dlclose.c (__dlcose): Likewise.
20369 * dlfcn/dlerror.c (__dlerror): Likewise.
20370 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20371 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20372 * dlfcn/dlopen.c (__dlopen): Likewise.
20373 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20374 * dlfcn/dlsym.c (__dlsym): Likewise.
20375 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20376 * libio/vtables.c (_IO_vtable_check): Likewise.
20377 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20378 (__libc_dlclose): Likewise.
20379 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20380 assignment.
20381
20382 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20383
20384 [BZ #22446]
20385 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20386 buffers for readlink input and output.
20387
20388 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20389
20390 [BZ #22624]
20391 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20392 inhibit_stack_protector.
20393
20394 [BZ #22624]
20395 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20396 inhibit_stack_protector.
20397
20398 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20399
20400 [BZ #22627]
20401 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20402 code and invocation.
20403
20404 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20405
20406 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20407
20408 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20409
20410 [BZ #22505]
20411 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20412
20413 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20414
20415 * sysdeps/s390/fpu/libm-test-ulps: Update.
20416
20417 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20418
20419 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20420
20421 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20422
20423 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20424 constants to s_sincosf.h file.
20425 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20426 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20427 implementation.
20428 * sysdeps/ieee754/flt-32/s_sincosf.h:
20429 New file.
20430
20431 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20432
20433 [BZ #14681]
20434 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20435 before mtrace.
20436
20437 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20438
20439 [BZ #19574]
20440 * INSTALL: Regenerated.
20441 * Makeconfig (real-static-start-installed-name): New.
20442 (pic-default): Updated for --enable-static-pie.
20443 (pie-default): New for --enable-static-pie.
20444 (default-pie-ldflag): Likewise.
20445 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20446 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20447 Replace $(static-start-installed-name) with
20448 $(real-static-start-installed-name).
20449 (+prectorT): Updated for --enable-static-pie.
20450 (+postctorT): Likewise.
20451 (CFLAGS-.o): Add $(pie-default).
20452 (CFLAGS-.op): Likewise.
20453 * NEWS: Mention --enable-static-pie.
20454 * config.h.in (ENABLE_STATIC_PIE): New.
20455 * configure.ac (--enable-static-pie): New configure option.
20456 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20457 (have-static-pie): Likewise.
20458 Enable static PIE if linker supports --no-dynamic-linker.
20459 (ENABLE_STATIC_PIE): New AC_DEFINE.
20460 (enable-static-pie): New LIBC_CONFIG_VAR.
20461 * configure: Regenerated.
20462 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20463 gr$(start-installed-name) for --enable-static-pie.
20464 (extra-objs): Likewise.
20465 (install-lib): Likewise.
20466 (extra-objs): Add static-reloc.o and static-reloc.os
20467 ($(objpfx)$(start-installed-name)): Also depend on
20468 $(objpfx)static-reloc.o.
20469 ($(objpfx)r$(start-installed-name)): New.
20470 ($(objpfx)g$(start-installed-name)): Also depend on
20471 $(objpfx)static-reloc.os.
20472 ($(objpfx)gr$(start-installed-name)): New.
20473 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20474 in libc.a.
20475 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20476 initimage.
20477 * csu/static-reloc.c: New file.
20478 * elf/Makefile (routines): Add dl-reloc-static-pie.
20479 (elide-routines.os): Likewise.
20480 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20481 (tst-tls1-static-non-pie-no-pie): New.
20482 * elf/dl-reloc-static-pie.c: New file.
20483 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20484 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20485 STATIC_PIE_BOOTSTRAP.
20486 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20487 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20488 (tests-static): Likewise.
20489 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20490 (tst-gmon-static-no-pie): New.
20491 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20492 (CRT-tst-gmon-static-pie): Likewise.
20493 (tst-gmon-static-pie-ENV): Likewise.
20494 (tests-special): Likewise.
20495 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20496 (clean-tst-gmon-static-pie-data): Likewise.
20497 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20498 * gmon/tst-gmon-static-pie.c: New file.
20499 * manual/install.texi: Document --enable-static-pie.
20500 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20501 (_dl_get_dl_main_map): Likewise.
20502 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20503 * sysdeps/x86_64/configure.ac: Likewise.
20504 * sysdeps/i386/configure: Regenerated.
20505 * sysdeps/x86_64/configure: Likewise.
20506 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20507 (ASFLAGS-.op): Likewise.
20508
20509 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20510
20511 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20512 * posix/tst-mmap-offset.c (fname): Use /tmp.
20513 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20514
20515 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20516
20517 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20518
20519 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20520
20521 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20522 errno.
20523
20524 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20525
20526 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20527 --with-float=hard for arm-linux-gnueabihf configurations.
20528
20529 [BZ #14121]
20530 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20531 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20532 ($(mo-installed)): Use $(objpfx)%.mo.
20533 (realclean): Remove rule.
20534
20535 * po/Makefile (linguas): Remove rule and dependencies.
20536 (linguas.mo): Likewise.
20537 (.PHONY): Do not depend on linguas and linguas.mo.
20538 (podir): Remove variable.
20539 (pofiles): Likewise.
20540 [$(pofiles)] (%.po): Remove rule.
20541
20542 * sysdeps/sparc/sparc32/Makefile
20543 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20544 start-of-line whitespace in argument of echo.
20545 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20546 with whitespace. Generate __wrap_.udiv alias.
20547 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20548 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20549 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20550 * sysdeps/sparc/sparc32/urem.S: Likewise.
20551
20552 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20553
20554 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20555 for aligned inputs.
20556
20557 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20558
20559 * benchtests/bench-strcmp.c: Print output in JSON format.
20560
20561 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20562
20563 2017-12-14 Florian Weimer <fweimer@redhat.com>
20564
20565 [BZ #22607]
20566 CVE-2017-1000409
20567 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20568 the expanded path string.
20569
20570 2017-12-14 Florian Weimer <fweimer@redhat.com>
20571
20572 [BZ #22606]
20573 CVE-2017-1000408
20574 * elf/dl-load.c (system_dirs): Update comment.
20575 (nsystem_dirs_len): Use array_length.
20576 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20577
20578 2017-12-14 Florian Weimer <fweimer@redhat.com>
20579
20580 Simplify compiling most of support/ outside of glibc.
20581 * support/check_addrinfo.c: Include <string.h>.
20582 * support/check_dns_packet.c: Likewise.
20583 * support/check_hostent.c: Likewise.
20584 * support/support_can_chroot.c: Include <support/xunistd.h>.
20585 * support/support_format_addrinfo.c: Include <stdlib.h>
20586 * support/support_format_dns_packet.c: Include <stdbool.h>.
20587 * support/support_format_hostent.c: Include <stdlib.h>.
20588 * support/support_format_netent.c: Likewise.
20589 * support/support_write_string.c: Include <support/xunistd.h>.
20590 * support/xdlfcn.c: Include <stddef.h>.
20591
20592 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20593
20594 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20595
20596 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20597 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20598
20599 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20600 (sysdeps_routines): Add memset-niagara7.
20601 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20602 Likewise.
20603 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20604 file.
20605 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20606 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20607 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20608 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20609 Add niagara7 option.
20610 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20611 memset.
20612
20613 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20614 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20615 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20616 Likewise.
20617 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20618 New file.
20619 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20620 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20621 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20622 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20623 and __memmove_niagara7.
20624 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20625 Add niagara7 option.
20626 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20627 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20628 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20629 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20630 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20631
20632 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20633
20634 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20635 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20636 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20637 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20638
20639 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20640 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20641 _dl_sparc_cap_flags array.
20642 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20643
20644 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20645
20646 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20647 time whenever possible.
20648
20649 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20650
20651 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20652 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20653
20654 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20655
20656 * soft-fp/fmadf4.c: Move to ....
20657 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20658 * soft-fp/fmasf4.c: Move to ....
20659 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20660 * soft-fp/fmatf4.c: Move to ....
20661 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20662 * sysdeps/ieee754/soft-fp/Makefile: New file.
20663 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20664 * sysdeps/arm/preconfigure: Regenerated.
20665 * sysdeps/arm/nofpu/Implies: New file.
20666 * sysdeps/arm/s_fma.c: Remove file.
20667 * sysdeps/arm/s_fmaf.c: Likewise.
20668 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20669 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20670 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20671 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20672 * sysdeps/microblaze/s_fma.c: Remove file.
20673 * sysdeps/microblaze/s_fmaf.c: Likewise.
20674 * sysdeps/mips/mips32/nofpu/Implies: New file.
20675 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20676 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20677 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20678 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20679 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20680 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20681 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20682 implementation.
20683 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20684 * sysdeps/nios2/s_fma.c: Remove file.
20685 * sysdeps/nios2/s_fmaf.c: Likewise.
20686 * sysdeps/sh/nofpu/Implies: New file.
20687 * sysdeps/sh/s_fma.c: Remove file.
20688 * sysdeps/sh/s_fmaf.c: Likewise.
20689 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20690 * sysdeps/tile/s_fma.c: Remove file.
20691 * sysdeps/tile/s_fmaf.c: Likewise.
20692
20693 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20694
20695 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20696 Add s_cosf-sse2 and s_cosf-fma.
20697 (CFLAGS-s_cosf-fma.c): New.
20698 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20699 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20700 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20701
20702 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20703
20704 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20705
20706 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20707
20708 * libio/Makefile (tests): Add tst-bz22415.
20709 (tst-bz22415-ENV): New rule.
20710 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20711 (tests-special): Add tst-bz22415-mem.out.
20712 ($(objpfx)tst-bz22415-mem.out): New rule.
20713 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20714 in case of a successful seek operation.
20715 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20716 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20717 buffer is required.
20718 * libio/tst-bz22415.c: New test.
20719
20720 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20721
20722 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20723
20724 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20725 __IPC_64 to 0 to avoid IPC_64 being set.
20726
20727 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20728
20729 [BZ #22593]
20730 * math/bits/mathcalls.h (nextafter): Remove const.
20731 (nexttoward): Likewise.
20732
20733 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20734
20735 * configure.ac (--with-fp): Remove configure option.
20736 (with_fp_cond): New variable.
20737 (libc_cv_with_fp): New configure test. Use this variable instead
20738 of with_fp.
20739 * configure: Regenerated.
20740 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20741 * manual/install.texi (Configuring and compiling): Remove
20742 --without-fp.
20743 * INSTALL: Regenerated.
20744 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20745 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20746 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20747 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20748 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20749 use --without-fp to configure glibc.
20750
20751 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20752
20753 * manual/locale.texi (nl_langinfo): Fix a typo.
20754
20755 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20756
20757 [BZ #22588]
20758 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20759
20760 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20761
20762 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20763 (CFLAGS-argp-parse.c): Likewise.
20764 (CFLAGS-argp-fmtstream.c): Likewise.
20765 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20766 (CPPFLAGS-sha512-crypt.c): Likewise.
20767 (CPPFLAGS-md5-crypt.c): Likewise.
20768 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20769 (CFLAGS-stack_chk_fail_local.c): Likewise.
20770 (CFLAGS-backtrace.c): Likewise.
20771 (CFLAGS-sprintf_chk.c): Likewise.
20772 (CFLAGS-snprintf_chk.c): Likewise.
20773 (CFLAGS-vsprintf_chk.c): Likewise.
20774 (CFLAGS-vsnprintf_chk.c): Likewise.
20775 (CFLAGS-asprintf_chk.c): Likewise.
20776 (CFLAGS-vasprintf_chk.c): Likewise.
20777 (CFLAGS-obprintf_chk.c): Likewise.
20778 (CFLAGS-dprintf_chk.c): Likewise.
20779 (CFLAGS-vdprintf_chk.c): Likewise.
20780 (CFLAGS-printf_chk.c): Likewise.
20781 (CFLAGS-fprintf_chk.c): Likewise.
20782 (CFLAGS-vprintf_chk.c): Likewise.
20783 (CFLAGS-vfprintf_chk.c): Likewise.
20784 (CFLAGS-gets_chk.c): Likewise.
20785 (CFLAGS-fgets_chk.c): Likewise.
20786 (CFLAGS-fgets_u_chk.c): Likewise.
20787 (CFLAGS-fread_chk.c): Likewise.
20788 (CFLAGS-fread_u_chk.c): Likewise.
20789 (CFLAGS-swprintf_chk.c): Likewise.
20790 (CFLAGS-vswprintf_chk.c): Likewise.
20791 (CFLAGS-wprintf_chk.c): Likewise.
20792 (CFLAGS-fwprintf_chk.c): Likewise.
20793 (CFLAGS-vwprintf_chk.c): Likewise.
20794 (CFLAGS-vfwprintf_chk.c): Likewise.
20795 (CFLAGS-fgetws_chk.c): Likewise.
20796 (CFLAGS-fgetws_u_chk.c): Likewise.
20797 (CFLAGS-read_chk.c): Likewise.
20798 (CFLAGS-pread_chk.c): Likewise.
20799 (CFLAGS-pread64_chk.c): Likewise.
20800 (CFLAGS-recv_chk.c): Likewise.
20801 (CFLAGS-recvfrom_chk.c): Likewise.
20802 (CFLAGS-tst-longjmp_chk.c): Likewise.
20803 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20804 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20805 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20806 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20807 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20808 (CFLAGS-tst-chk1.c): Likewise.
20809 (CFLAGS-tst-chk2.c): Likewise.
20810 (CFLAGS-tst-chk3.c): Likewise.
20811 (CFLAGS-tst-chk4.cc): Likewise.
20812 (CFLAGS-tst-chk5.cc): Likewise.
20813 (CFLAGS-tst-chk6.cc): Likewise.
20814 (CFLAGS-tst-lfschk1.c): Likewise.
20815 (CFLAGS-tst-lfschk2.c): Likewise.
20816 (CFLAGS-tst-lfschk3.c): Likewise.
20817 (CFLAGS-tst-lfschk4.cc): Likewise.
20818 (CFLAGS-tst-lfschk5.cc): Likewise.
20819 (CFLAGS-tst-lfschk6.cc): Likewise.
20820 (CFLAGS-tst-ssp-1.c): Likewise.
20821 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20822 (CFLAGS-scandir64.c): Likewise.
20823 (CFLAGS-scandir-tail.c): Likewise.
20824 (CFLAGS-scandir64-tail.c): Likewise.
20825 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20826 (CFLAGS-dl-tunables.c): Likewise.
20827 (CFLAGS-dl-runtime.c): Likewise.
20828 (CFLAGS-dl-lookup.c): Likewise.
20829 (CFLAGS-dl-iterate-phdr.c): Likewise.
20830 (CFLAGS-vismain.c): Likewise.
20831 (CFLAGS-tst-linkall-static.c): Likewise.
20832 (CFLAGS-tst-linkall-static.c): Likewise.
20833 (CPPFLAGS-dl-load.c): Likewise.
20834 (CFLAGS-ldconfig.c): Likewise.
20835 (CFLAGS-dl-cache.c): Likewise.
20836 (CFLAGS-cache.c): Likewise.
20837 (CFLAGS-rtld.c): Likewise.
20838 (CFLAGS-multiload.c): Likewise.
20839 (CFLAGS-filtmod1.c): Likewise.
20840 (CFLAGS-tst-align.c): Likewise.
20841 (CFLAGS-tst-align2.c): Likewise.
20842 (CFLAGS-tst-alignmod.c): Likewise.
20843 (CFLAGS-tst-alignmod2.c): Likewise.
20844 (CPPFLAGS-tst-execstack.c): Likewise.
20845 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20846 (CFLAGS-tst-latepthreadmod.c): Likewise.
20847 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20848 (CFLAGS-getgrnam_r.c): Likewise.
20849 (CFLAGS-getgrent_r.c): Likewise.
20850 (CFLAGS-getgrent.c): Likewise.
20851 (CFLAGS-fgetgrent.c): Likewise.
20852 (CFLAGS-fgetgrent_r.c): Likewise.
20853 (CFLAGS-putgrent.c): Likewise.
20854 (CFLAGS-initgroups.c): Likewise.
20855 (CFLAGS-getgrgid.c): Likewise.
20856 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20857 (CFLAGS-getsgent.c): Likewise.
20858 (CFLAGS-fgetsgent.c): Likewise.
20859 (CFLAGS-fgetsgent_r.c): Likewise.
20860 (CFLAGS-putsgent.c): Likewise.
20861 (CFLAGS-getsgnam.c): Likewise.
20862 (CFLAGS-getsgnam_r.c): Likewise.
20863 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20864 (CFLAGS-iconv_charmap.c): Likewise.
20865 (CFLAGS-dummy-repertoire.c): Likewise.
20866 (CFLAGS-charmap.c): Likewise.
20867 (CFLAGS-linereader.c): Likewise.
20868 (CFLAGS-simple-hash.c): Likewise.
20869 (CFLAGS-gconv_conf.c): Likewise.
20870 (CFLAGS-iconvconfig.c): Likewise.
20871 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20872 (CFLAGS-gethstbyad.c): Likewise.
20873 (CFLAGS-gethstbynm_r.c): Likewise.
20874 (CFLAGS-gethstbynm.c): Likewise.
20875 (CFLAGS-gethstbynm2_r.c): Likewise.
20876 (CFLAGS-gethstbynm2.c): Likewise.
20877 (CFLAGS-gethstent_r.c): Likewise.
20878 (CFLAGS-gethstent.c): Likewise.
20879 (CFLAGS-rcmd.c): Likewise.
20880 (CFLAGS-getnetbynm_r.c): Likewise.
20881 (CFLAGS-getnetbynm.c): Likewise.
20882 (CFLAGS-getnetbyad_r.c): Likewise.
20883 (CFLAGS-getnetbyad.c): Likewise.
20884 (CFLAGS-getnetent_r.c): Likewise.
20885 (CFLAGS-getnetent.c): Likewise.
20886 (CFLAGS-getaliasent_r.c): Likewise.
20887 (CFLAGS-getaliasent.c): Likewise.
20888 (CFLAGS-getrpcent_r.c): Likewise.
20889 (CFLAGS-getrpcent.c): Likewise.
20890 (CFLAGS-getservent_r.c): Likewise.
20891 (CFLAGS-getservent.c): Likewise.
20892 (CFLAGS-getprtent_r.c): Likewise.
20893 (CFLAGS-getprtent.c): Likewise.
20894 (CFLAGS-either_ntoh.c): Likewise.
20895 (CFLAGS-either_hton.c): Likewise.
20896 (CFLAGS-getnetgrent.c): Likewise.
20897 (CFLAGS-getnetgrent_r.c): Likewise.
20898 (CFLAGS-tst-checks-posix.c): Likewise.
20899 (CFLAGS-tst-sockaddr.c): Likewise.
20900 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20901 (CFLAGS-tst-translit.c): Likewise.
20902 (CFLAGS-tst-gettext2.c): Likewise.
20903 (CFLAGS-tst-codeset.c): Likewise.
20904 (CFLAGS-tst-gettext3.c): Likewise.
20905 (CFLAGS-tst-gettext4.c): Likewise.
20906 (CFLAGS-tst-gettext5.c): Likewise.
20907 (CFLAGS-tst-gettext6.c): Likewise.
20908 * io/Makefile (CFLAGS-open.c): Likewise.
20909 (CFLAGS-open64.c): Likewise.
20910 (CFLAGS-creat.c): Likewise.
20911 (CFLAGS-creat64.c): Likewise.
20912 (CFLAGS-fcntl.c): Likewise.
20913 (CFLAGS-poll.c): Likewise.
20914 (CFLAGS-ppoll.c): Likewise.
20915 (CFLAGS-lockf.c): Likewise.
20916 (CFLAGS-statfs.c): Likewise.
20917 (CFLAGS-fstatfs.c): Likewise.
20918 (CFLAGS-statvfs.c): Likewise.
20919 (CFLAGS-fstatvfs.c): Likewise.
20920 (CFLAGS-fts.c): Likewise.
20921 (CFLAGS-fts64.c): Likewise.
20922 (CFLAGS-ftw.c): Likewise.
20923 (CFLAGS-ftw64.c): Likewise.
20924 (CFLAGS-lockf.c): Likewise.
20925 (CFLAGS-posix_fallocate.c): Likewise.
20926 (CFLAGS-posix_fallocate64.c): Likewise.
20927 (CFLAGS-fallocate.c): Likewise.
20928 (CFLAGS-fallocate64.c): Likewise.
20929 (CFLAGS-read.c): Likewise.
20930 (CFLAGS-write.c): Likewise.
20931 (CFLAGS-test-stat.c): Likewise.
20932 (CFLAGS-test-lfs.c): Likewise.
20933 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20934 (CFLAGS-fputc.c): Likewise.
20935 (CFLAGS-fputwc.c): Likewise.
20936 (CFLAGS-freopen64.c): Likewise.
20937 (CFLAGS-freopen.c): Likewise.
20938 (CFLAGS-fseek.c): Likewise.
20939 (CFLAGS-fseeko64.c): Likewise.
20940 (CFLAGS-fseeko.c): Likewise.
20941 (CFLAGS-ftello64.c): Likewise.
20942 (CFLAGS-ftello.c): Likewise.
20943 (CFLAGS-fwide.c): Likewise.
20944 (CFLAGS-genops.c): Likewise.
20945 (CFLAGS-getc.c): Likewise.
20946 (CFLAGS-getchar.c): Likewise.
20947 (CFLAGS-getwc.c): Likewise.
20948 (CFLAGS-getwchar.c): Likewise.
20949 (CFLAGS-iofclose.c): Likewise.
20950 (CFLAGS-iofflush.c): Likewise.
20951 (CFLAGS-iofgetpos64.c): Likewise.
20952 (CFLAGS-iofgetpos.c): Likewise.
20953 (CFLAGS-iofgets.c): Likewise.
20954 (CFLAGS-iofgetws.c): Likewise.
20955 (CFLAGS-iofputs.c): Likewise.
20956 (CFLAGS-iofputws.c): Likewise.
20957 (CFLAGS-iofread.c): Likewise.
20958 (CFLAGS-iofsetpos64.c): Likewise.
20959 (CFLAGS-iofsetpos.c): Likewise.
20960 (CFLAGS-ioftell.c): Likewise.
20961 (CFLAGS-iofwrite.c): Likewise.
20962 (CFLAGS-iogetdelim.c): Likewise.
20963 (CFLAGS-iogetline.c): Likewise.
20964 (CFLAGS-iogets.c): Likewise.
20965 (CFLAGS-iogetwline.c): Likewise.
20966 (CFLAGS-ioputs.c): Likewise.
20967 (CFLAGS-ioseekoff.c): Likewise.
20968 (CFLAGS-ioseekpos.c): Likewise.
20969 (CFLAGS-iosetbuffer.c): Likewise.
20970 (CFLAGS-iosetvbuf.c): Likewise.
20971 (CFLAGS-ioungetc.c): Likewise.
20972 (CFLAGS-ioungetwc.c): Likewise.
20973 (CFLAGS-oldfileops.c): Likewise.
20974 (CFLAGS-oldiofclose.c): Likewise.
20975 (CFLAGS-oldiofgetpos64.c): Likewise.
20976 (CFLAGS-oldiofgetpos.c): Likewise.
20977 (CFLAGS-oldiofsetpos64.c): Likewise.
20978 (CFLAGS-oldiofsetpos.c): Likewise.
20979 (CFLAGS-peekc.c): Likewise.
20980 (CFLAGS-putc.c): Likewise.
20981 (CFLAGS-putchar.c): Likewise.
20982 (CFLAGS-putwc.c): Likewise.
20983 (CFLAGS-putwchar.c): Likewise.
20984 (CFLAGS-rewind.c): Likewise.
20985 (CFLAGS-wfileops.c): Likewise.
20986 (CFLAGS-wgenops.c): Likewise.
20987 (CFLAGS-oldiofopen.c): Likewise.
20988 (CFLAGS-iofopen.c): Likewise.
20989 (CFLAGS-iofopen64.c): Likewise.
20990 (CFLAGS-oldtmpfile.c): Likewise.
20991 (CFLAGS-tst_putwc.c): Likewise.
20992 * locale/Makefile (CFLAGS-md5.c): Likewise.
20993 (CFLAGS-charmap.c): Likewise.
20994 (CFLAGS-locfile.c): Likewise.
20995 (CFLAGS-charmap-dir.c): Likewise.
20996 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20997 (CFLAGS-getpt.c): Likewise.
20998 (CFLAGS-pt_chown.c): Likewise.
20999 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21000 (CFLAGS-obstack.c): Likewise.
21001 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21002 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21003 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21004 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21005 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21006 (CFLAGS-test-tgmath.c): Likewise.
21007 (CFLAGS-test-tgmath2.c): Likewise.
21008 (CFLAGS-test-tgmath-ret.c): Likewise.
21009 (CFLAGS-test-powl.c): Likewise.
21010 (CFLAGS-test-snan.c): Likewise.
21011 (CFLAGS-test-signgam-finite.c): Likewise.
21012 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21013 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21014 (CFLAGS-test-signgam-uchar.c): Likewise.
21015 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21016 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21017 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21018 (CFLAGS-test-signgam-uint.c): Likewise.
21019 (CFLAGS-test-signgam-uint-init.c): Likewise.
21020 (CFLAGS-test-signgam-uint-static.c): Likewise.
21021 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21022 (CFLAGS-test-signgam-ullong.c): Likewise.
21023 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21024 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21025 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21026 (CFLAGS-test-math-cxx11.cc): Likewise.
21027 (CFLAGS-test-math-isinff.cc): Likewise.
21028 (CFLAGS-test-math-iszero.cc): Likewise.
21029 (CFLAGS-test-math-issignaling.cc): Likewise.
21030 (CFLAGS-test-math-iscanonical.cc): Likewise.
21031 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21032 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21033 (CFLAGS-test-flt-eval-method.c): Likewise.
21034 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21035 (CFLAGS-test-finite-macros.c): Likewise.
21036 * misc/Makefile (CFLAGS-select.c): Likewise.
21037 (CFLAGS-tsearch.c): Likewise.
21038 (CFLAGS-lsearch.c): Likewise.
21039 (CFLAGS-pselect.c): Likewise.
21040 (CFLAGS-readv.c): Likewise.
21041 (CFLAGS-writev.c): Likewise.
21042 (CFLAGS-preadv.c): Likewise.
21043 (CFLAGS-preadv64.c): Likewise.
21044 (CFLAGS-pwritev.c): Likewise.
21045 (CFLAGS-pwritev64.c): Likewise.
21046 (CFLAGS-preadv2.c): Likewise.
21047 (CFLAGS-preadv64v2.c): Likewise.
21048 (CFLAGS-pwritev2.c): Likewise.
21049 (CFLAGS-pwritev64v2.c): Likewise.
21050 (CFLAGS-usleep.c): Likewise.
21051 (CFLAGS-syslog.c): Likewise.
21052 (CFLAGS-error.c): Likewise.
21053 (CFLAGS-getpass.c): Likewise.
21054 (CFLAGS-mkstemp.c): Likewise.
21055 (CFLAGS-mkstemp64.c): Likewise.
21056 (CFLAGS-getsysstats.c): Likewise.
21057 (CFLAGS-getusershell.c): Likewise.
21058 (CFLAGS-err.c): Likewise.
21059 (CFLAGS-tst-tsearch.c): Likewise.
21060 (CFLAGS-msync.c): Likewise.
21061 (CFLAGS-fdatasync.c): Likewise.
21062 (CFLAGS-fsync.c): Likewise.
21063 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21064 (CFLAGS-unwind.c): Likewise.
21065 (CFLAGS-unwind-forcedunwind.c): Likewise.
21066 (CFLAGS-pthread_cancel.c): Likewise.
21067 (CFLAGS-pthread_setcancelstate.c): Likewise.
21068 (CFLAGS-pthread_setcanceltype.c): Likewise.
21069 (CFLAGS-cancellation.c): Likewise.
21070 (CFLAGS-libc-cancellation.c): Likewise.
21071 (CFLAGS-pthread_exit.c): Likewise.
21072 (CFLAGS-forward.c): Likewise.
21073 (CFLAGS-pthread_testcancel.c): Likewise.
21074 (CFLAGS-pthread_join.c): Likewise.
21075 (CFLAGS-pthread_timedjoin.c): Likewise.
21076 (CFLAGS-pthread_once.c): Likewise.
21077 (CFLAGS-pthread_cond_wait.c): Likewise.
21078 (CFLAGS-sem_wait.c): Likewise.
21079 (CFLAGS-sem_timedwait.c): Likewise.
21080 (CFLAGS-fcntl.c): Likewise.
21081 (CFLAGS-lockf.c): Likewise.
21082 (CFLAGS-pread.c): Likewise.
21083 (CFLAGS-pread64.c): Likewise.
21084 (CFLAGS-pwrite.c): Likewise.
21085 (CFLAGS-pwrite64.c): Likewise.
21086 (CFLAGS-wait.c): Likewise.
21087 (CFLAGS-waitpid.c): Likewise.
21088 (CFLAGS-sigwait.c): Likewise.
21089 (CFLAGS-msgrcv.c): Likewise.
21090 (CFLAGS-msgsnd.c): Likewise.
21091 (CFLAGS-tcdrain.c): Likewise.
21092 (CFLAGS-open.c): Likewise.
21093 (CFLAGS-open64.c): Likewise.
21094 (CFLAGS-pause.c): Likewise.
21095 (CFLAGS-recv.c): Likewise.
21096 (CFLAGS-send.c): Likewise.
21097 (CFLAGS-accept.c): Likewise.
21098 (CFLAGS-sendto.c): Likewise.
21099 (CFLAGS-connect.c): Likewise.
21100 (CFLAGS-recvfrom.c): Likewise.
21101 (CFLAGS-recvmsg.c): Likewise.
21102 (CFLAGS-sendmsg.c): Likewise.
21103 (CFLAGS-close.c): Likewise.
21104 (CFLAGS-read.c): Likewise.
21105 (CFLAGS-write.c): Likewise.
21106 (CFLAGS-nanosleep.c): Likewise.
21107 (CFLAGS-sigsuspend.c): Likewise.
21108 (CFLAGS-msync.c): Likewise.
21109 (CFLAGS-fdatasync.c): Likewise.
21110 (CFLAGS-fsync.c): Likewise.
21111 (CFLAGS-pt-system.c): Likewise.
21112 (CFLAGS-tst-cleanup2.c): Likewise.
21113 (CFLAGS-tst-cleanupx2.c): Likewise.
21114 (CFLAGS-flockfile.c): Likewise.
21115 (CFLAGS-ftrylockfile.c): Likewise.
21116 (CFLAGS-funlockfile.c): Likewise.
21117 (CFLAGS-tst-initializers1.c): Likewise.
21118 (CFLAGS-tst-initializers1-c89.c): Likewise.
21119 (CFLAGS-tst-initializers1-c99.c): Likewise.
21120 (CFLAGS-tst-initializers1-c11.c): Likewise.
21121 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21122 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21123 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21124 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21125 (CFLAGS-nscd_getgr_r.c): Likewise.
21126 (CFLAGS-nscd_gethst_r.c): Likewise.
21127 (CFLAGS-nscd_getai.c): Likewise.
21128 (CFLAGS-nscd_initgroups.c): Likewise.
21129 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21130 (CFLAGS-pause.c): Likewise.
21131 (CFLAGS-pread.c): Likewise.
21132 (CFLAGS-pread64.c): Likewise.
21133 (CFLAGS-pwrite.c): Likewise.
21134 (CFLAGS-pwrite64.c): Likewise.
21135 (CFLAGS-sleep.c): Likewise.
21136 (CFLAGS-wait.c): Likewise.
21137 (CFLAGS-waitid.c): Likewise.
21138 (CFLAGS-waitpid.c): Likewise.
21139 (CFLAGS-getopt.c): Likewise.
21140 (CFLAGS-wordexp.c): Likewise.
21141 (CFLAGS-sysconf.c): Likewise.
21142 (CFLAGS-pathconf.c): Likewise.
21143 (CFLAGS-fpathconf.c): Likewise.
21144 (CFLAGS-spawn.c): Likewise.
21145 (CFLAGS-spawnp.c): Likewise.
21146 (CFLAGS-spawni.c): Likewise.
21147 (CFLAGS-glob.c): Likewise.
21148 (CFLAGS-glob64.c): Likewise.
21149 (CFLAGS-getconf.c): Likewise.
21150 (CFLAGS-nanosleep.c): Likewise.
21151 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21152 (CFLAGS-getpwent.c): Likewise.
21153 (CFLAGS-getpw.c): Likewise.
21154 (CFLAGS-fgetpwent_r.c): Likewise.
21155 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21156 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21157 (CFLAGS-mq_timedreceive.c): Likewise.
21158 (CFLAGS-mq_timedsend.c): Likewise.
21159 (CFLAGS-clock_nanosleep.c): Likewise.
21160 (CFLAGS-librt-cancellation.c): Likewise.
21161 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21162 (CFLAGS-getspent.c): Likewise.
21163 (CFLAGS-fgetspent.c): Likewise.
21164 (CFLAGS-fgetspent_r.c): Likewise.
21165 (CFLAGS-putspent.c): Likewise.
21166 (CFLAGS-getspnam.c): Likewise.
21167 (CFLAGS-getspnam_r.c): Likewise.
21168 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21169 (CFLAGS-sigsuspend.c): Likewise.
21170 (CFLAGS-sigtimedwait.c): Likewise.
21171 (CFLAGS-sigwait.c): Likewise.
21172 (CFLAGS-sigwaitinfo.c): Likewise.
21173 (CFLAGS-sigreturn.c): Likewise.
21174 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21175 (CFLAGS-vfwprintf.c): Likewise.
21176 (CFLAGS-tmpfile.c): Likewise.
21177 (CFLAGS-tmpfile64.c): Likewise.
21178 (CFLAGS-tempname.c): Likewise.
21179 (CFLAGS-psignal.c): Likewise.
21180 (CFLAGS-vprintf.c): Likewise.
21181 (CFLAGS-cuserid.c): Likewise.
21182 (CFLAGS-errlist.c): Likewise.
21183 (CFLAGS-siglist.c): Likewise.
21184 (CFLAGS-scanf15.c): Likewise.
21185 (CFLAGS-scanf17.c): Likewise.
21186 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21187 (CFLAGS-msort.c): Likewise.
21188 (CFLAGS-qsort.c): Likewise.
21189 (CFLAGS-system.c): Likewise.
21190 (CFLAGS-fmtmsg.c): Likewise.
21191 (CFLAGS-strfmon.c): Likewise.
21192 (CFLAGS-strfmon_l.c): Likewise.
21193 (CFLAGS-strfromd.c): Likewise.
21194 (CFLAGS-strfromf.c): Likewise.
21195 (CFLAGS-strfroml.c): Likewise.
21196 (CFLAGS-tst-bsearch.c): Likewise.
21197 (CFLAGS-tst-qsort.c): Likewise.
21198 (CFLAGS-tst-makecontext2.c): Likewise.
21199 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21200 (CFLAGS-xnlm_prot.c): Likewise.
21201 (CFLAGS-xrstat.c): Likewise.
21202 (CFLAGS-xyppasswd.c): Likewise.
21203 (CFLAGS-xklm_prot.c): Likewise.
21204 (CFLAGS-xrex.c): Likewise.
21205 (CFLAGS-xsm_inter.c): Likewise.
21206 (CFLAGS-xmount.c): Likewise.
21207 (CFLAGS-xrusers.c): Likewise.
21208 (CFLAGS-xspray.c): Likewise.
21209 (CFLAGS-xnfs_prot.c): Likewise.
21210 (CFLAGS-xrquota.c): Likewise.
21211 (CFLAGS-xkey_prot.c): Likewise.
21212 (CFLAGS-auth_unix.c): Likewise.
21213 (CFLAGS-key_call.c): Likewise.
21214 (CFLAGS-pmap_rmt.c): Likewise.
21215 (CFLAGS-clnt_perr.c): Likewise.
21216 (CFLAGS-openchild.c): Likewise.
21217 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21218 (CFLAGS-msgsnd.c): Likewise.
21219 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21220 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21221 (CFLAGS-tzset.c): Likewise.
21222 (CFLAGS-getdate.c): Likewise.
21223 (CFLAGS-test_time.c): Likewise.
21224 (CPPFLAGS-tst-tzname.c): Likewise.
21225 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21226 (CFLAGS-zic.c): Likewise.
21227 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21228 (CFLAGS-wcswidth.c): Likewise.
21229 (CFLAGS-wcstol.c): Likewise.
21230 (CFLAGS-wcstoul.c): Likewise.
21231 (CFLAGS-wcstoll.c): Likewise.
21232 (CFLAGS-wcstoull.c): Likewise.
21233 (CFLAGS-wcstod.c): Likewise.
21234 (CFLAGS-wcstold.c): Likewise.
21235 (CFLAGS-wcstof128.c): Likewise.
21236 (CFLAGS-wcstof.c): Likewise.
21237 (CFLAGS-wcstol_l.c): Likewise.
21238 (CFLAGS-wcstoul_l.c): Likewise.
21239 (CFLAGS-wcstoll_l.c): Likewise.
21240 (CFLAGS-wcstoull_l.c): Likewise.
21241 (CFLAGS-wcstod_l.c): Likewise.
21242 (CFLAGS-wcstold_l.c): Likewise.
21243 (CFLAGS-wcstof128_l.c): Likewise.
21244 (CFLAGS-wcstof_l.c): Likewise.
21245 (CPPFLAGS-tst-wchar-h.c): Likewise.
21246 (CPPFLAGS-wcstold_l.c): Likewise.
21247
21248 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21249
21250 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21251
21252 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21253 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21254
21255 * manual/tunables.texi (Hardware Capability Tunables): Document
21256 glibc.tune.cached_memopt.
21257 * sysdeps/powerpc/cpu-features.c: New file.
21258 * sysdeps/powerpc/cpu-features.h: New file.
21259 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21260 _dl_powerpc_cpu_features.
21261 * sysdeps/powerpc/dl-tunables.list: New file.
21262 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21263 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21264 (INIT_ARCH): Initialize use_aligned_memopt.
21265 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21266 IS_IN(rtld))]: Restrict dl_platform_init availability and
21267 initialize CPU features used by tunables.
21268 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21269 Add memcpy-power8-cached.
21270 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21271 __memcpy_power8_cached.
21272 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21273 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21274 New file.
21275
21276 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21277
21278 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21279 (CFLAGS-noinl-tester.c): Likewise.
21280 (CFLAGS-tst-strlen.c): Likewise.
21281 (CFLAGS-stratcliff.c): Likewise.
21282 (CFLAGS-test-ffs.c): Likewise.
21283 (CFLAGS-tst-inlcall.c): Likewise.
21284 (CFLAGS-tst-xbzero-opt.c): Likewise.
21285 (CFLAGS-memcpy.c): Likewise.
21286 (CFLAGS-wordcopy.c): Likewise.
21287
21288 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21289
21290 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21291 Store r15 on stack and add cfi rule.
21292 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21293 Likewise.
21294
21295 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21296
21297 [BZ #22577]
21298 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21299 call.
21300
21301 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21302
21303 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21304 Add s_sinf-sse2 and s_sinf-fma.
21305 (CFLAGS-s_sinf-fma.c): New.
21306 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21307 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21308 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21309
21310 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21311
21312 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21313
21314 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21315
21316 [BZ #22568]
21317 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21318 part of result to imaginary part of argument if it is zero and the
21319 real part of the argument is not finite.
21320 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21321 of result to real part of argument if it is zero and the imaginary
21322 part of the argument is not finite.
21323
21324 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21325
21326 [BZ #22524]
21327 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21328 and to the list of locales to be built for testing.
21329 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21330 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21331 and build the collation rules upon that.
21332
21333 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21334
21335 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21336 * manual/math.texi (Mathematics): Document support for _Float32.
21337 * math/Makefile (test-types): Add float32.
21338 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21339 * stdlib/Versions (GLIBC_2.27): Likewise.
21340 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21341 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21342 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21343 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21344 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21345 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21346 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21347 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21348 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21349 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21350 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21351 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21352 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21353 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21354 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21355 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21356 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21357 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21358 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21359 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21360 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21361 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21362 Likewise.
21363 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21364 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21365 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21366 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21367 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21369 Likewise.
21370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21371 Likewise.
21372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21373 Likewise.
21374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21375 Likewise.
21376
21377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21378 Likewise.
21379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21380 Likewise.
21381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21382 Likewise.
21383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21384 Likewise.
21385 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21386 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21387 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21388 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21389 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21390 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21391 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21392 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21393 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21394 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21395 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21396 Likewise.
21397 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21398 Likewise.
21399 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21400 Likewise.
21401 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21402 Likewise.
21403 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21404 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21405 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21406 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21407 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21408 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21409 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21410 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21411
21412 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21413
21414 * stdlib/strtof.c: Include <bits/floatn.h>
21415 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21416 and later undefine as macro. Define as weak alias if
21417 [!USE_WIDE_CHAR].
21418 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21419 and later undefine as macro. Define as weak alias if
21420 [USE_WIDE_CHAR].
21421 * stdlib/strtof_l.c: Include <bits/floatn.h>
21422 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21423 and later undefine as macro. Define as weak alias if
21424 [!USE_WIDE_CHAR].
21425 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21426 and later undefine as macro. Define as weak alias if
21427 [USE_WIDE_CHAR].
21428
21429 * stdlib/strfromf.c: Include <bits/floatn.h>.
21430 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21431 and later undefine as macro and define as weak alias.
21432
21433 * math/test-float32.h: New file.
21434
21435 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21436 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21437 (libm_alias_float_other_r): Create f32 alias.
21438 (libm_alias_float_r): Use semicolon before call to
21439 libm_alias_float_other_r.
21440
21441 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21442 second argument to libm_alias_float_other.
21443 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21444 second argument to libm_alias_float_other.
21445 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21446 argument to libm_alias_float_other.
21447
21448 [BZ #22561]
21449 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21450 real part of result for argument 0 + i * NaN.
21451 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21452 results for tests of 0 + i * NaN.
21453
21454 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21455
21456 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21457
21458 2017-12-06 David S. Miller <davem@davemloft.net>
21459
21460 * sysdeps/sparc/fpu/libm-test-ulps: Update
21461 exp_{downward,towardzero,upward} ulps.
21462
21463 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21464
21465 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21466 variables static.
21467
21468 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21469 (Y0_2D): Likewise.
21470 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21471 (Y0_2D): Likewise.
21472 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21473 (Y0_2D): Likewise.
21474 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21475 (Y0_2D): Likewise.
21476
21477 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21478
21479 [BZ #22515]
21480 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21481 and to the list of locales to be built for testing.
21482 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21483 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21484 and build the collation rules upon that.
21485
21486 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21487
21488 * NEWS: Add sinf to list of optimized functions.
21489
21490 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21491
21492 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21493 (__HAVE_FLOAT32X): Likewise.
21494 * manual/math.texi (Mathematics): Document support for _Float64
21495 and _Float32x.
21496 * math/Makefile (test-types): Add float64 and float32x.
21497 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21498 functions.
21499 * stdlib/Versions (GLIBC_2.27): Likewise.
21500 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21501 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21502 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21503 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21504 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21505 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21506 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21507 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21508 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21509 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21510 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21511 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21512 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21513 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21514 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21515 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21516 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21517 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21518 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21519 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21520 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21521 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21522 Likewise.
21523 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21524 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21525 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21526 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21527 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21529 Likewise.
21530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21531 Likewise.
21532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21533 Likewise.
21534 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21535 Likewise.
21536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21537 Likewise.
21538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21539 Likewise.
21540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21541 Likewise.
21542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21543 Likewise.
21544 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21545 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21546 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21547 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21548 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21549 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21550 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21551 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21552 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21553 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21554 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21555 Likewise.
21556 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21557 Likewise.
21558 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21559 Likewise.
21560 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21561 Likewise.
21562 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21563 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21564 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21565 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21566 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21567 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21568 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21569 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21570
21571 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21572
21573 * bits/floatn-common.h: Include <bits/long-double.h>.
21574 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21575 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21576 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21577 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21578 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21579 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21580 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21581 (__builtin_huge_valf64): Use __builtin_huge_vall.
21582 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21583 (__builtin_inff64): Use __builtin_infl.
21584 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21585 (__builtin_nanf64): Use __builtin_nanl.
21586 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21587 (__builtin_nansf64): Use __builtin_nansl.
21588
21589 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21590 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21591 Carlos O'Donnell <carlos@redhat.com>
21592
21593 * elf/dl-tunables.list: Add elision parameters.
21594 * manual/tunables.texi: Add entries about elision tunable.
21595 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21596 Add callback functions to dynamically enable/disable elision.
21597 Add multiple callbacks functions to set elision parameters.
21598 Deleted __libc_enable_secure check.
21599 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21600 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21601 * configure: Regenerated.
21602 * configure.ac: Option enable_lock_elision was deleted.
21603 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21604 * config.make.in: Remove references to enable_lock_elision.
21605 * manual/install.texi: Elision configure option was removed.
21606 * INSTALL: Regenerated to remove enable_lock_elision.
21607 * nptl/Makefile:
21608 Disable elision so it can verify error case for destroying a mutex.
21609 * sysdeps/powerpc/nptl/elide.h:
21610 Cleanup ENABLE_LOCK_ELISION check.
21611 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21612 * sysdeps/s390/configure: Regenerated.
21613 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21614 * nptl/tst-mutex8.c:
21615 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21616 * sysdeps/powerpc/powerpc32/sysdep.h:
21617 Deleted all ENABLE_LOCK_ELISION checks.
21618 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21619 * sysdeps/powerpc/sysdep.h: Likewise.
21620 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21621 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21622 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21623 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21624 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21625 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21626 enable-lock-elision.
21627
21628 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21629
21630 * stdlib/strtod.c: Include <bits/floatn.h>.
21631 (BUILD_DOUBLE): New macro.
21632 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21633 (strtof64): Define and later undefine as macro. Define as weak
21634 alias if [!USE_WIDE_CHAR].
21635 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21636 (wcstof64): Define and later undefine as macro. Define as weak
21637 alias if [USE_WIDE_CHAR].
21638 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21639 (strtof32x): Define and later undefine as macro. Define as weak
21640 alias if [!USE_WIDE_CHAR].
21641 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21642 (wcstof32x): Define and later undefine as macro. Define as weak
21643 alias if [USE_WIDE_CHAR].
21644 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21645 (BUILD_DOUBLE): New macro.
21646 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21647 (strtof64_l): Define and later undefine as macro. Define as weak
21648 alias if [!USE_WIDE_CHAR].
21649 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21650 (wcstof64_l): Define and later undefine as macro. Define as weak
21651 alias if [USE_WIDE_CHAR].
21652 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21653 (strtof32x_l): Define and later undefine as macro. Define as weak
21654 alias if [!USE_WIDE_CHAR].
21655 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21656 (wcstof32x_l): Define and later undefine as macro. Define as weak
21657 alias if [USE_WIDE_CHAR].
21658
21659 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21660
21661 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21662 (reduced): Use ones as double instead of integer.
21663
21664 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21665
21666 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21667
21668 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21669
21670 * stdlib/strfromd.c: Include <bits/floatn.h>.
21671 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21672 and later undefine as macro and define as weak alias.
21673 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21674 Likewise.
21675
21676 * math/test-float32x.h: New file.
21677 * math/test-float64.h: Likewise.
21678
21679 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21680 (libm_alias_double_other_r_f64): New macro.
21681 (libm_alias_double_other_r_f32x): Likewise.
21682 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21683 libm_alias_double_other_r_f32x.
21684 (libm_alias_double_r): Use semicolon before call to
21685 libm_alias_double_other_r.
21686 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21687 <bits/floatn.h>.
21688 (libm_alias_double_other_r_f64): New macro.
21689 (libm_alias_double_other_r_f32x): Likewise.
21690 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21691 libm_alias_double_other_r_f32x.
21692
21693 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21694
21695 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21696 int.
21697 (SINF_FUNC): Likewise. Replace floor with simple casts.
21698
21699 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21700
21701 [BZ #22517]
21702 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21703 and to the list of locales to be built for testing.
21704 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21705 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21706 and build the collation rules upon that.
21707
21708 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21709
21710 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21711 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21712 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21713 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21714 instead of __insn__xxx.
21715 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21716 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21717 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21718 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21719 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21720 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21721
21722 2017-12-05 Florian Weimer <fweimer@redhat.com>
21723
21724 Linux: Implement interfaces for memory protection keys
21725 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21726 xsignal, xsysconf.
21727 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21728 * support/xunistd.h (xsysconf): Declare.
21729 * support/xraise.c: New file.
21730 * support/xsigaction.c: Likewise.
21731 * support/xsignal.c: Likewise.
21732 * support/xsysconf.c: Likewise.
21733 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21734 pkey_set, pkey_get, pkey_mprotect.
21735 [misc] (tests): Add tst-pkey.
21736 (tst-pkey): Link with -lpthread.
21737 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21738 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21739 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21740 (PKEY_DISABLE_WRITE): Define.
21741 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21742 Declare.
21743 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21744 (SEGV_PKUERR): Add.
21745 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21746 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21747 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21748 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21749 Add.
21750 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21751 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21752 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21753 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21754 * sysdeps/unix/sysv/linux/**.abilist: Update.
21755
21756 2017-12-05 Florian Weimer <fweimer@redhat.com>
21757
21758 * support/tst-test_compare.c (subprocess): Use long long instead
21759 of long argument for consistent type width across 32-bit and
21760 64-bit architectures.
21761 (do_test): Adjust expected output.
21762
21763 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21764
21765 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21766 (cosf): Define using libm_alias_float.
21767 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21768 (fabsf): Define using libm_alias_float.
21769 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21770 (fmaf): Define using libm_alias_float.
21771 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21772 (rintf): Define using libm_alias_float.
21773 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21774 (sinf): Define using libm_alias_float.
21775 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21776 <libm-alias-float.h>.
21777 (modff): Define using libm_alias_float.
21778 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21779 <libm-alias-float.h>.
21780 (logbf): Define using libm_alias_float.
21781 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21782 <libm-alias-float.h>.
21783 (ceilf): Define using libm_alias_float.
21784 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21785 <libm-alias-float.h>.
21786 (copysignf): Define using libm_alias_float.
21787 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21788 <libm-alias-float.h>.
21789 (floorf): Define using libm_alias_float.
21790 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21791 <libm-alias-float.h>.
21792 (llrintf): Define using libm_alias_float.
21793 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21794 <libm-alias-float.h>.
21795 (llroundf): Define using libm_alias_float.
21796 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21797 <libm-alias-float.h>.
21798 (lrintf): Define using libm_alias_float.
21799 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21800 <libm-alias-float.h>.
21801 (lroundf): Define using libm_alias_float.
21802 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21803 <libm-alias-float.h>.
21804 (nearbyintf): Define using libm_alias_float.
21805 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21806 <libm-alias-float.h>.
21807 (rintf): Define using libm_alias_float.
21808 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21809 <libm-alias-float.h>.
21810 (roundf): Define using libm_alias_float.
21811 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21812 <libm-alias-float.h>.
21813 (truncf): Define using libm_alias_float.
21814 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21815 Include <libm-alias-float.h>.
21816 (ceilf): Define using libm_alias_float.
21817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21818 Include <libm-alias-float.h>.
21819 (copysignf): Define using libm_alias_float.
21820 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21821 Include <libm-alias-float.h>.
21822 (floorf): Define using libm_alias_float.
21823 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21824 Include <libm-alias-float.h>.
21825 (llrintf): Define using libm_alias_float.
21826 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21827 Include <libm-alias-float.h>.
21828 (llroundf): Define using libm_alias_float.
21829 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21830 Include <libm-alias-float.h>.
21831 (logbf): Define using libm_alias_float.
21832 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21833 Include <libm-alias-float.h>.
21834 (lrintf): Define using libm_alias_float.
21835 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21836 Include <libm-alias-float.h>.
21837 (lroundf): Define using libm_alias_float.
21838 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21839 Include <libm-alias-float.h>.
21840 (modff): Define using libm_alias_float.
21841 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21842 Include <libm-alias-float.h>.
21843 (roundf): Define using libm_alias_float.
21844 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21845 Include <libm-alias-float.h>.
21846 (truncf): Define using libm_alias_float.
21847 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21848 <libm-alias-float.h>.
21849 (llrintf): Define using libm_alias_float.
21850 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21851 <libm-alias-float.h>.
21852 (llroundf): Define using libm_alias_float.
21853 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21854 <libm-alias-float.h>.
21855 (ceilf): Define using libm_alias_float.
21856 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21857 <libm-alias-float.h>.
21858 (floorf): Define using libm_alias_float.
21859 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21860 <libm-alias-float.h>.
21861 (llroundf): Define using libm_alias_float.
21862 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21863 <libm-alias-float.h>.
21864 (lroundf): Define using libm_alias_float.
21865 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21866 <libm-alias-float.h>.
21867 (roundf): Define using libm_alias_float.
21868 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21869 <libm-alias-float.h>.
21870 (truncf): Define using libm_alias_float.
21871 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21872 <libm-alias-float.h>.
21873 (copysignf): Define using libm_alias_float.
21874 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21875 <libm-alias-float.h>.
21876 (llrintf): Define using libm_alias_float.
21877 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21878 <libm-alias-float.h>.
21879 (llroundf): Define using libm_alias_float.
21880 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21881 <libm-alias-float.h>.
21882 (lrintf): Define using libm_alias_float.
21883 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21884 <libm-alias-float.h>.
21885 (lroundf): Define using libm_alias_float.
21886 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21887 <libm-alias-float.h>.
21888 (ceilf): Define using libm_alias_float.
21889 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21890 <libm-alias-float.h>.
21891 (copysignf): Define using libm_alias_float.
21892 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21893 <libm-alias-float.h>.
21894 (cosf): Define using libm_alias_float.
21895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21896 <libm-alias-float.h>.
21897 (floorf): Define using libm_alias_float.
21898 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21899 <libm-alias-float.h>.
21900 (llrintf): Define using libm_alias_float.
21901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21902 <libm-alias-float.h>.
21903 (llroundf): Define using libm_alias_float.
21904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21905 <libm-alias-float.h>.
21906 (logbf): Define using libm_alias_float.
21907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21908 <libm-alias-float.h>.
21909 (modff): Define using libm_alias_float.
21910 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21911 <libm-alias-float.h>.
21912 (roundf): Define using libm_alias_float.
21913 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21914 <libm-alias-float.h>.
21915 (sinf): Define using libm_alias_float.
21916 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21917 <libm-alias-float.h>.
21918 (truncf): Define using libm_alias_float.
21919 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21920 <libm-alias-float.h>.
21921 (ceilf): Define using libm_alias_float.
21922 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21923 <libm-alias-float.h>.
21924 (copysignf): Define using libm_alias_float.
21925 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21926 <libm-alias-float.h>.
21927 (floorf): Define using libm_alias_float.
21928 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21929 <libm-alias-float.h>.
21930 (llrintf): Define using libm_alias_float.
21931 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21932 <libm-alias-float.h>.
21933 (llroundf): Define using libm_alias_float.
21934 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21935 <libm-alias-float.h>.
21936 (nearbyintf): Define using libm_alias_float.
21937 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21938 <libm-alias-float.h>.
21939 (rintf): Define using libm_alias_float.
21940 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21941 <libm-alias-float.h>.
21942 (roundf): Define using libm_alias_float.
21943 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21944 <libm-alias-float.h>.
21945 (truncf): Define using libm_alias_float.
21946 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21947 <libm-alias-float.h>.
21948 (ceilf): Define using libm_alias_float.
21949 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21950 <libm-alias-float.h>.
21951 (floorf): Define using libm_alias_float.
21952 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21953 <libm-alias-float.h>.
21954 (llroundf): Define using libm_alias_float.
21955 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21956 <libm-alias-float.h>.
21957 (roundf): Define using libm_alias_float.
21958 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21959 <libm-alias-float.h>.
21960 (truncf): Define using libm_alias_float.
21961 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21962 <libm-alias-float.h>.
21963 (copysignf): Define using libm_alias_float.
21964 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21965 <libm-alias-float.h>.
21966 (llrintf): Define using libm_alias_float.
21967 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21968 <libm-alias-float.h>.
21969 (llroundf): Define using libm_alias_float.
21970 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21971 <libm-alias-float.h>.
21972 (cosf): Define using libm_alias_float.
21973 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21974 <libm-alias-float.h>.
21975 (llrintf): Define using libm_alias_float.
21976 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21977 <libm-alias-float.h>.
21978 (llroundf): Define using libm_alias_float.
21979 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21980 <libm-alias-float.h>.
21981 (sinf): Define using libm_alias_float.
21982
21983 2017-12-04 Florian Weimer <fweimer@redhat.com>
21984
21985 * support/check.h (TEST_COMPARE): Define.
21986 (support_test_compare_failure): Declare.
21987 * support/Makefile (libsupport-routines): Add
21988 support_test_compare_failure.
21989 (tests): Add tst-test_compare.
21990 * support /support_test_compare_failure.c: New file.
21991 * support/tst-test_compare.c: Likewise.
21992
21993 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21994
21995 [BZ #22527]
21996 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21997 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21998 available, this rewrite of the collation rules does reproduce
21999 the test file in the same order.
22000
22001 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22002
22003 [BZ #10580]
22004 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22005 digraphs in the month and day names. Using single code points for
22006 digraphs is deprecated. While there are dedicated Unicode
22007 codepoints, for the digraphs, these are included for backwards
22008 compatibility and modern texts use a sequence of Basic Latin
22009 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22010 This makes the month and day names agree exactly with CLDR now,
22011 CLDR does not use the single code points for the digraphs either.
22012
22013 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22014
22015 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22016
22017 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22018
22019 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22020 of floor.
22021
22022 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22023
22024 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22025 Define only for libc.so.
22026
22027 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22028
22029 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22030 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22031 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22032 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22033 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22034
22035 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22036
22037 [BZ #5997]
22038 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22039
22040 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22041
22042 [BZ libc/19170]
22043 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22044 PREINIT_FUNCTION_WEAK is nonzero.
22045 (gmon_initializer): New function. Put procedure label for it in
22046 .init_array section.
22047 (_init): Don't call PREINIT_FUNCTION.
22048 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22049 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22050 value when map argument is null.
22051
22052 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22053 depi instruction from PIC pc-relative sequence.
22054 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22055 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22056 (elf_machine_load_address): Likewise.
22057 (elf_machine_runtime_setup): Likewise.
22058
22059 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22060
22061 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22062 <libm-alias-double.h>.
22063 (logb): Define using libm_alias_double.
22064 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22065 <libm-alias-double.h>.
22066 (copysign): Define using libm_alias_double.
22067 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22068 <libm-alias-double.h>.
22069 (llrint): Define using libm_alias_double.
22070 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22071 <libm-alias-double.h>.
22072 (llround): Define using libm_alias_double.
22073 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22074 <libm-alias-double.h>.
22075 (lrint): Define using libm_alias_double.
22076 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22077 <libm-alias-double.h>.
22078 (lround): Define using libm_alias_double.
22079 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22080 Include <libm-alias-double.h>.
22081 (copysign): Define using libm_alias_double.
22082 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22083 Include <libm-alias-double.h>.
22084 (llrint): Define using libm_alias_double.
22085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22086 Include <libm-alias-double.h>.
22087 (llround): Define using libm_alias_double.
22088 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22089 <libm-alias-double.h>.
22090 (logb): Define using libm_alias_double.
22091 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22092 Include <libm-alias-double.h>.
22093 (lrint): Define using libm_alias_double.
22094 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22095 Include <libm-alias-double.h>.
22096 (lround): Define using libm_alias_double.
22097 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22098 <libm-alias-double.h>.
22099 (llrint): Define using libm_alias_double.
22100 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22101 <libm-alias-double.h>.
22102 (llround): Define using libm_alias_double.
22103 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22104 <libm-alias-double.h>.
22105 (llround): Define using libm_alias_double.
22106 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22107 <libm-alias-double.h>.
22108 (lround): Define using libm_alias_double.
22109 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22110 <libm-alias-double.h>.
22111 (copysign): Define using libm_alias_double.
22112 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22113 <libm-alias-double.h>.
22114 (llrint): Define using libm_alias_double.
22115 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22116 <libm-alias-double.h>.
22117 (llround): Define using libm_alias_double.
22118 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22119 <libm-alias-double.h>.
22120 (lrint): Define using libm_alias_double.
22121 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22122 <libm-alias-double.h>.
22123 (lround): Define using libm_alias_double.
22124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22125 <libm-alias-double.h>.
22126 (copysign): Define using libm_alias_double.
22127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22128 <libm-alias-double.h>.
22129 (llrint): Define using libm_alias_double.
22130 (lrint): Likewise.
22131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22132 <libm-alias-double.h>.
22133 (llround): Define using libm_alias_double.
22134 (lround): Likewise.
22135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22136 <libm-alias-double.h>.
22137 (logb): Define using libm_alias_double.
22138 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22139 <libm-alias-double.h>.
22140 (copysign): Define using libm_alias_double.
22141 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22142 <libm-alias-double.h>.
22143 (llrint): Define using libm_alias_double.
22144 (lrint): Likewise.
22145 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22146 <libm-alias-double.h>.
22147 (llround): Define using libm_alias_double.
22148 (lround): Likewise.
22149 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22150 <libm-alias-double.h>.
22151 (llround): Define using libm_alias_double.
22152 (lround): Likewise.
22153 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22154 <libm-alias-double.h>.
22155 (copysign): Define using libm_alias_double.
22156 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22157 <libm-alias-double.h>.
22158 (llrint): Define using libm_alias_double.
22159 (lrint): Likewise.
22160 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22161 <libm-alias-double.h>.
22162 (llround): Define using libm_alias_double.
22163 (lround): Likewise.
22164 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22165 <libm-alias-double.h>.
22166 (llrint): Define using libm_alias_double.
22167 (lrint): Likewise.
22168 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22169 <libm-alias-double.h>.
22170 (llround): Define using libm_alias_double.
22171 (lround): Likewise.
22172
22173 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22174
22175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22176 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22177 compat symbol based on llround.
22178
22179 * sysdeps/powerpc/power7/fpu/s_logb.c
22180 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22181 symbol based on __logb, not on logb.
22182 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22183 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22184 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22185 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22186
22187 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22188 (rint): Define using libm_alias_double.
22189 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22190 <libm-alias-double.h>.
22191 (modf): Define using libm_alias_double.
22192 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22193 <libm-alias-double.h>.
22194 (ceil): Define using libm_alias_double.
22195 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22196 <libm-alias-double.h>.
22197 (floor): Define using libm_alias_double.
22198 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22199 <libm-alias-double.h>.
22200 (nearbyint): Define using libm_alias_double.
22201 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22202 <libm-alias-double.h>.
22203 (rint): Define using libm_alias_double.
22204 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22205 <libm-alias-double.h>.
22206 (round): Define using libm_alias_double.
22207 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22208 <libm-alias-double.h>.
22209 (trunc): Define using libm_alias_double.
22210 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22211 <libm-alias-double.h>.
22212 (ceil): Define using libm_alias_double.
22213 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22214 Include <libm-alias-double.h>.
22215 (floor): Define using libm_alias_double.
22216 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22217 <libm-alias-double.h>.
22218 (modf): Define using libm_alias_double.
22219 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22220 Include <libm-alias-double.h>.
22221 (round): Define using libm_alias_double.
22222 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22223 Include <libm-alias-double.h>.
22224 (trunc): Define using libm_alias_double.
22225 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22226 <libm-alias-double.h>.
22227 (ceil): Define using libm_alias_double.
22228 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22229 <libm-alias-double.h>.
22230 (floor): Define using libm_alias_double.
22231 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22232 <libm-alias-double.h>.
22233 (round): Define using libm_alias_double.
22234 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22235 <libm-alias-double.h>.
22236 (trunc): Define using libm_alias_double.
22237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22238 <libm-alias-double.h>.
22239 (ceil): Define using libm_alias_double.
22240 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22241 <libm-alias-double.h>.
22242 (floor): Define using libm_alias_double.
22243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22244 <libm-alias-double.h>.
22245 (modf): Define using libm_alias_double.
22246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22247 <libm-alias-double.h>.
22248 (round): Define using libm_alias_double.
22249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22250 <libm-alias-double.h>.
22251 (trunc): Define using libm_alias_double.
22252 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22253 <libm-alias-double.h>.
22254 (ceil): Define using libm_alias_double.
22255 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22256 <libm-alias-double.h>.
22257 (floor): Define using libm_alias_double.
22258 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22259 <libm-alias-double.h>.
22260 (nearbyint): Define using libm_alias_double.
22261 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22262 <libm-alias-double.h>.
22263 (rint): Define using libm_alias_double.
22264 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22265 <libm-alias-double.h>.
22266 (round): Define using libm_alias_double.
22267 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22268 <libm-alias-double.h>.
22269 (trunc): Define using libm_alias_double.
22270 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22271 <libm-alias-double.h>.
22272 (ceil): Define using libm_alias_double.
22273 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22274 <libm-alias-double.h>.
22275 (floor): Define using libm_alias_double.
22276 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22277 <libm-alias-double.h>.
22278 (round): Define using libm_alias_double.
22279 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22280 <libm-alias-double.h>.
22281 (trunc): Define using libm_alias_double.
22282
22283 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22284 (fabs): Define using libm_alias_double.
22285 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22286 (fma): Define using libm_alias_double.
22287 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22288 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22289 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22290 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22291
22292 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22293
22294 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22295
22296 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22297 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22298 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22299
22300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22301 due redirect macro.
22302
22303 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22304
22305 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22306
22307 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22308
22309 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22310 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22311 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22312 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22313
22314 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22315 (libm-sysdep_routines): Add s_nearbyintf-generic and
22316 s_nearbyint-generic.
22317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22318 New file.
22319 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22321 Likewise.
22322 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22323 Likewise.
22324 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22325 file.
22326 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22327 Likewise.
22328
22329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22330 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22331 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22332 file.
22333 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22334 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22335 Likewise.
22336 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22338 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22339
22340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22341 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22342 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22343 file.
22344 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22345 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22346 Likewise.
22347 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22348 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22349 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22350
22351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22352 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22353 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22354 file.
22355 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22356 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22357 Likewise.
22358 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22359 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22360 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22361
22362 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22363 (sysdep_calls): New rule.
22364 (sysdep_routines): Use sysdep_calls as base.
22365 (libm-sysdep_routines): Add generic rule for symbols shared with
22366 libc. Add s_copysign-generic and s_copysign-generic objects.
22367 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22368 New file.
22369 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22370 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22371 Likewise.
22372 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22373 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22375
22376 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22377
22378 [BZ #22519]
22379 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22380 the list of locales to be built for testing.
22381 * localedata/is_IS.UTF-8.in: New file.
22382 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22383 on iso14651_t1.
22384
22385 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22386
22387 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22388 <libm-alias-float.h>.
22389 (fabsf): Define using libm_alias_float.
22390
22391 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22392
22393 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22394
22395 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22396
22397 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22398 <libm-alias-float.h>.
22399 (fabsf): Define using libm_alias_float.
22400 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22401 <libm-alias-float.h>.
22402 (lrintf): Define using libm_alias_float.
22403 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22404 <libm-alias-float.h>.
22405 (rintf): Define using libm_alias_float.
22406
22407 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22408 <libm-alias-double.h>.
22409 (fabs): Define using libm_alias_double.
22410 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22411 <libm-alias-double.h>.
22412 (lrint): Define using libm_alias_double.
22413 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22414 <libm-alias-double.h>.
22415 (rint): Define using libm_alias_double.
22416
22417 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22418 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22419 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22420 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22421 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22422 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22423 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22424 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22425 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22426 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22427 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22428 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22429 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22430 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22431 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22432 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22433 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22434 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22435 s_atan_template.c.
22436 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22437 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22438 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22439 s_ceil_template.c.
22440 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22441 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22442 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22443 s_cos_template.c.
22444 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22445 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22446 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22447 s_expm1_template.c.
22448 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22449 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22450 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22451 s_fabs_template.c.
22452 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22453 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22454 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22455 s_floor_template.c.
22456 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22457 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22458 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22459 s_frexp_template.c.
22460 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22461 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22462 s_lrint_template.c.
22463 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22464 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22465 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22466 s_modf_template.c.
22467 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22468 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22469 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22470 s_nearbyint_template.c.
22471 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22472 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22473 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22474 s_remquo_template.c.
22475 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22476 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22477 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22478 s_rint_template.c.
22479 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22480 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22481 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22482 s_sin_template.c.
22483 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22484 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22485 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22486 s_sincos_template.c.
22487 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22488 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22489 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22490 s_tan_template.c.
22491 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22492 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22493 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22494 s_tanh_template.c.
22495 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22496 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22497 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22498 s_trunc_template.c.
22499 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22500 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22501 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22502 s_atan.c instead of including s_atan.c.
22503 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22504 s_atanf.c instead of including s_atanf.c.
22505 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22506 s_atanl.c instead of including s_atanl.c.
22507 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22508 instead of s_atan.c.
22509 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22510 instead of s_atanf.c.
22511 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22512 instead of s_atanl.c.
22513
22514 * scripts/update-copyrights: Do not handle intl/plural.c
22515 specially.
22516
22517 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22518
22519 [BZ #22432]
22520 * configure.ac (BISON): Require to be present.
22521 * configure: Regenerated.
22522 * intl/Makefile (generated): Add plural.c.
22523 [$(BISON) != no]: Make code unconditional.
22524 (plural.c): Change rule to $(objpfx)plural.c.
22525 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22526 * intl/plural.c: Remove.
22527 * manual/install.texi (Tools for Compilation): Document bison as
22528 required.
22529 * INSTALL: Regenerated.
22530
22531 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22532
22533 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22534 <libm-alias-double.h>.
22535 (llrint): Define using libm_alias_double.
22536 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22537 <libm-alias-float.h>.
22538 (llrintf): Define using libm_alias_float.
22539 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22540 <libm-alias-ldouble.h>.
22541 (llrintl): Define using libm_alias_ldouble.
22542
22543 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22544 declare_mgen_alias instead of weak_alias.
22545 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22546 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22547 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22548
22549 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22550
22551 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22552 Add add_n-generic.
22553 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22554 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22555 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22556
22557 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22558 Add submul_1-generic.
22559 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22560 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22561 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22562
22563 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22564 Add addmul_1-generic.
22565 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22566 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22567 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22568
22569 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22570 Add sub_n-generic.
22571 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22572 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22573 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22574
22575 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22576 Add mul_1-generic.
22577 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22578 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22579 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22580
22581 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22582
22583 According to CLDR, collation rules for Serbian and Bosnian
22584 should be the same as for Croatian.
22585
22586 [BZ #22534]
22587 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22588 and to the list of locales to be built for testing.
22589 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22590 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22591 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22592 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22593
22594 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22595
22596 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22597 to make test case pass.
22598 * localedata/hr_HR.UTF-8.in: Add more test strings.
22599
22600 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22601
22602 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22603
22604 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22605
22606 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22607 the list of locales to built for testing.
22608 * localedata/hr_HR.UTF-8.in: New file.
22609
22610 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22611
22612 [BZ #10580]
22613 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22614 iso14651_t1.
22615 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22616 CLDR (except use ligatures for the digraphs, CLDR does not use
22617 the ligatures), add first_workday, some fixes in the date and time
22618 formats.
22619 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22620 for Đ and đ.
22621 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22622 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22623 Add int_p_cs_precedes and int_n_cs_precedes.
22624 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22625 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22626 LC_MONETARY now).
22627 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22628 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22629 name_miss.
22630 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22631 and lang_lib. Change postal_fmt.
22632
22633 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22634
22635 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22636 <setjmp.h>.
22637 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22638 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22639 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22640 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22641 * sysdeps/generic/setjmpP.h: New file.
22642 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22643 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22644 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22645 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22646 Add jmp_buf-ssp.sym.
22647 (tests): Add tst-saved_mask-1.
22648
22649 2017-11-30 Arjun Shankar <arjun@redhat.com>
22650
22651 [BZ #22375]
22652 CVE-2017-17426
22653 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22654 instead of request2size.
22655
22656 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22657
22658 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22659 (__lllrint): Remove alias.
22660 (lllrint): Likewise.
22661 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22662 (__lllrintf): Likewise.
22663 (lllrintf): Likewise.
22664
22665 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22666 <libm-alias-float.h>.
22667 (copysignf): Define using libm_alias_float.
22668 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22669 <libm-alias-float.h>.
22670 (fabsf): Define using libm_alias_float.
22671 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22672 Include <libm-alias-float.h>.
22673 (copysignf): Define using libm_alias_float.
22674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22675 <libm-alias-float.h>.
22676 (fabsf): Define using libm_alias_float.
22677 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22678 <libm-alias-float.h>.
22679 (fdimf): Define using libm_alias_float.
22680 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22681 <libm-alias-float.h>.
22682 (fmaf): Define using libm_alias_float.
22683 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22684 <libm-alias-float.h>.
22685 (llrintf): Define using libm_alias_float.
22686 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22687 Include <libm-alias-float.h>.
22688 (nearbyintf): Define using libm_alias_float.
22689 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22690 <libm-alias-float.h>.
22691 (rintf): Define using libm_alias_float.
22692 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22693 <libm-alias-float.h>.
22694 (llrintf): Define using libm_alias_float.
22695 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22696 <libm-alias-float.h>.
22697 (lrintf): Define using libm_alias_float.
22698 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22699 <libm-alias-float.h>.
22700 (nearbyintf): Define using libm_alias_float.
22701 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22702 <libm-alias-float.h>.
22703 (rintf): Define using libm_alias_float.
22704 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22705 <libm-alias-float.h>.
22706 (ceilf): Define using libm_alias_float.
22707 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22708 <libm-alias-float.h>.
22709 (floorf): Define using libm_alias_float.
22710 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22711 <libm-alias-float.h>.
22712 (fmaf): Define using libm_alias_float.
22713 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22714 <libm-alias-float.h>.
22715 (lrintf): Define using libm_alias_float.
22716 (llrintf): Likewise.
22717 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22718 <libm-alias-float.h>.
22719 (nearbyintf): Define using libm_alias_float.
22720 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22721 <libm-alias-float.h>.
22722 (rintf): Define using libm_alias_float.
22723 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22724 <libm-alias-float.h>.
22725 (truncf): Define using libm_alias_float.
22726 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22727 <libm-alias-float.h>.
22728 (copysignf): Define using libm_alias_float.
22729 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22730 <libm-alias-float.h>.
22731 (fabsf): Define using libm_alias_float.
22732 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22733 <libm-alias-float.h>.
22734 (lrintf): Define using libm_alias_float.
22735 (llrintf): Likewise.
22736 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22737 <libm-alias-float.h>.
22738 (nearbyintf): Define using libm_alias_float.
22739 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22740 <libm-alias-float.h>.
22741 (rintf): Define using libm_alias_float.
22742
22743 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22744
22745 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22746 <libm-alias-double.h>.
22747 (copysign): Define using libm_alias_double.
22748 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22749 <libm-alias-double.h>.
22750 (fabs): Define using libm_alias_double.
22751 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22752 Include <libm-alias-double.h>.
22753 (copysign): Define using libm_alias_double.
22754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22755 <libm-alias-double.h>.
22756 (fabs): Define using libm_alias_double.
22757 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22758 <libm-alias-double.h>.
22759 (fdim): Define using libm_alias_double.
22760 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22761 <libm-alias-double.h>.
22762 (fma): Define using libm_alias_double.
22763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22764 <libm-alias-double.h>.
22765 (llrint): Define using libm_alias_double.
22766 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22767 Include <libm-alias-double.h>.
22768 (nearbyint): Define using libm_alias_double.
22769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22770 <libm-alias-double.h>.
22771 (rint): Define using libm_alias_double.
22772 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22773 <libm-alias-double.h>.
22774 (fabs): Define using libm_alias_double.
22775 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22776 <libm-alias-double.h>.
22777 (llrint): Define using libm_alias_double.
22778 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22779 <libm-alias-double.h>.
22780 (nearbyint): Define using libm_alias_double.
22781 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22782 <libm-alias-double.h>.
22783 (rint): Define using libm_alias_double.
22784 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22785 <libm-alias-double.h>.
22786 (ceil): Define using libm_alias_double.
22787 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22788 <libm-alias-double.h>.
22789 (floor): Define using libm_alias_double.
22790 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22791 <libm-alias-double.h>.
22792 (fma): Define using libm_alias_double.
22793 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22794 <libm-alias-double.h>.
22795 (lrint): Define using libm_alias_double.
22796 (llrint): Likewise.
22797 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22798 <libm-alias-double.h>.
22799 (nearbyint): Define using libm_alias_double.
22800 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22801 <libm-alias-double.h>.
22802 (rint): Define using libm_alias_double.
22803 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22804 <libm-alias-double.h>.
22805 (trunc): Define using libm_alias_double.
22806 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22807 <libm-alias-double.h>.
22808 (copysign): Define using libm_alias_double.
22809 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22810 <libm-alias-double.h>.
22811 (fabs): Define using libm_alias_double.
22812 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22813 <libm-alias-double.h>.
22814 (lrint): Define using libm_alias_double.
22815 (llrint): Likewise.
22816 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22817 <libm-alias-double.h>.
22818 (nearbyint): Define using libm_alias_double.
22819 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22820 <libm-alias-double.h>.
22821 (rint): Define using libm_alias_double.
22822
22823 [BZ #22229]
22824 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22825 <math_ldbl_opt.h>.
22826 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22827
22828 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22829 SPARC --disable-multi-arch glibc variants.
22830
22831 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22832 <libm-alias-float.h>.
22833 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22834 if [SHARED].
22835 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22836 <libm-alias-float.h>.
22837 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22838 if [SHARED].
22839 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22840 <libm-alias-float.h>.
22841 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22842 if [SHARED].
22843 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22844 <libm-alias-float.h>.
22845 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22846 if [SHARED].
22847 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22848 <libm-alias-float.h>.
22849 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22850 if [SHARED].
22851 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22852 <libm-alias-float.h>.
22853 (ceilf): Define using libm_alias_float.
22854 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22855 <libm-alias-float.h>.
22856 (floorf): Define using libm_alias_float.
22857 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22858 <libm-alias-float.h>.
22859 (fmaf): Define using libm_alias_float.
22860 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22861 <libm-alias-float.h>.
22862 (nearbyintf): Define using libm_alias_float.
22863 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22864 <libm-alias-float.h>.
22865 (rintf): Define using libm_alias_float.
22866 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22867 <libm-alias-float.h>.
22868 (truncf): Define using libm_alias_float.
22869 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22870 (copysignf): Define using libm_alias_float.
22871 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22872 (cosf): Define using libm_alias_float.
22873 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22874 (fabsf): Define using libm_alias_float.
22875 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22876 (fmaxf): Define using libm_alias_float.
22877 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22878 (fminf): Define using libm_alias_float.
22879 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22880 (llrintf): Define using libm_alias_float.
22881 [!__ILP32__] (lrintf): Likewise.
22882 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22883 (sincosf): Define using libm_alias_float.
22884 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22885 (sinf): Define using libm_alias_float.
22886 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22887 (lrintf): Define using libm_alias_float.
22888
22889 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22890 <libm-alias-double.h>.
22891 (atan): Define using libm_alias_double.
22892 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22893 <libm-alias-double.h>.
22894 (ceil): Define using libm_alias_double.
22895 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22896 <libm-alias-double.h>.
22897 (floor): Define using libm_alias_double.
22898 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22899 <libm-alias-double.h>.
22900 (fma): Define using libm_alias_double.
22901 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22902 <libm-alias-double.h>.
22903 (nearbyint): Define using libm_alias_double.
22904 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22905 <libm-alias-double.h>.
22906 (rint): Define using libm_alias_double.
22907 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22908 <libm-alias-double.h>.
22909 (sin): Define using libm_alias_double.
22910 (cos): Likewise.
22911 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22912 <libm-alias-double.h>.
22913 (tan): Define using libm_alias_double.
22914 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22915 <libm-alias-double.h>.
22916 (trunc): Define using libm_alias_double.
22917 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22918 (copysign): Define using libm_alias_double.
22919 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22920 (fabs): Define using libm_alias_double.
22921 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22922 (fmax): Define using libm_alias_double.
22923 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22924 (fmin): Define using libm_alias_double.
22925 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22926 (llrint): Define using libm_alias_double.
22927 [!__ILP32__] (lrint): Likewise.
22928 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22929 (lrint): Define using libm_alias_double.
22930
22931 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22932
22933 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22934 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22935 objects.
22936 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22937 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22938 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22939 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22940 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22941 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22942
22943 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22944 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22945 objects.
22946 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22947 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22948 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22949 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22950 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22951 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22952
22953 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22954 (libm-sysdep_routines): Add s_nearbyint-generic and
22955 s_nearbyintf-generic objects.
22956 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22957 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22958 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22959 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22960 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22961 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22962
22963 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22964 Add s_finitef-generic and s_finite-generic objects.
22965 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22966 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22967 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22968 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22969 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22970 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22971
22972 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22973 Add s_isinff-generic and s_isinf-generic objects.
22974 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22975 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22976 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22977 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22978 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22979 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22980
22981 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22982 Add s_isnanf-generic and s_isnan-generic objects.
22983 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22984 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22985 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22986 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22987 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22988 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22989
22990 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22991 macro.
22992 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22993 rule.
22994 (sysdep_routines): Use sysdep_calls as base.
22995 (libm-sysdep_routines): Add generic rule for symbols shared with
22996 libc. Add s_signbit-generic and s_signbitf-generic objects.
22997 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22998 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22999 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23000 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23001 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23002 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23003
23004 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23005
23006 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23007 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23008 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23009 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23010 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23011 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23012 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23013 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23014 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23015 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23016 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23017 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23018 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23019 libm_alias_float_r.
23020 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23021 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23022 (logf): Likewise.
23023 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23024 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23025 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23026 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23027 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23028 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23029 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23030 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23031 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23032 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23033 libm_alias_float.
23034 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23035 (cosf): Likewise.
23036 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23037 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23038 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23039 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23040 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23041 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23042 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23043 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23044 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23045 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23046 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23047 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23048 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23049 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23050 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23051 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23052 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23053 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23054 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23055 libm_alias_float.
23056 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23057 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23058 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23059 * sysdeps/ia64/fpu/w_lgammaf_main.c
23060 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23061 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23062
23063 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23064 Alexandre Oliva <aoliva@redhat.com>
23065
23066 [BZ #17750]
23067 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23068 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23069 accents sorting.
23070 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23071 sorting.
23072 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23073 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23074 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23075 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23076 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23077 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23078 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23079 instead of “ifdef DIACRIT_BACKWARD”.
23080
23081 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23082
23083 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23084 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23085 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23086 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23087 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23088 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23089 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23090 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23091 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23092 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23093 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23094 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23095 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23096 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23097 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23098 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23099 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23100 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23101 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23102 ($(have-as-vis3) == yes): Remove conditional.
23103 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23104 Likewise.
23105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23106 file.
23107 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23108 file.
23109 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23110 file.
23111 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23112 file.
23113 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23114 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23115 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23116 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23117 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23118 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23119 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23120 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23121
23122 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23123
23124 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23125 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23126 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23127 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23128 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23129 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23130 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23131 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23132 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23133 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23134 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23135 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23136 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23137 libm_alias_double_r.
23138 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23139 (log): Likewise.
23140 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23141 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23142 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23143 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23144 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23145 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23146 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23147 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23148 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23149 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23150 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23151 libm_alias_double.
23152 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23153 (cos): Likewise.
23154 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23155 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23156 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23157 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23158 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23159 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23160 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23161 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23162 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23163 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23164 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23165 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23166 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23167 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23168 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23169 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23170 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23171 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23172 libm_alias_double.
23173 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23174 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23175 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23176 * sysdeps/ia64/fpu/w_lgamma_main.c
23177 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23178 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23179
23180 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23181
23182 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23183 address of $global$ into %dp register earlier. Use pc-relative
23184 instruction sequence for PIC case.
23185
23186 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23187
23188 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23189 (asinhf): Define using libm_alias_float.
23190 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23191 (atanf): Define using libm_alias_float.
23192 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23193 (cbrtf): Define using libm_alias_float.
23194 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23195 (ceilf): Define using libm_alias_float.
23196 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23197 (copysignf): Define using libm_alias_float.
23198 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23199 (expm1f): Define using libm_alias_float.
23200 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23201 (fabsf): Define using libm_alias_float.
23202 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23203 (floorf): Define using libm_alias_float.
23204 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23205 (fmaxf): Define using libm_alias_float.
23206 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23207 (fminf): Define using libm_alias_float.
23208 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23209 (frexpf): Define using libm_alias_float.
23210 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23211 (llrintf): Define using libm_alias_float.
23212 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23213 (logbf): Define using libm_alias_float.
23214 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23215 (lrintf): Define using libm_alias_float.
23216 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23217 (nearbyintf): Define using libm_alias_float.
23218 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23219 (remquof): Define using libm_alias_float.
23220 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23221 (rintf): Define using libm_alias_float.
23222 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23223 (truncf): Define using libm_alias_float.
23224 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23225 <libm-alias-float.h>.
23226 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23227 if [SHARED].
23228 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23229 <libm-alias-float.h>.
23230 (expf): Define using libm_alias_float, or libm_alias_float_other
23231 if [SHARED].
23232 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23233 <libm-alias-float.h>.
23234 (log2f): Define using libm_alias_float, or libm_alias_float_other
23235 if [SHARED].
23236 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23237 <libm-alias-float.h>.
23238 (logf): Define using libm_alias_float, or libm_alias_float_other
23239 if [SHARED].
23240 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23241 <libm-alias-float.h>.
23242 (powf): Define using libm_alias_float, or libm_alias_float_other
23243 if [SHARED].
23244 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23245 <libm-alias-float.h>.
23246 (cosf): Define using libm_alias_float.
23247 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23248 <libm-alias-float.h>.
23249 (sincosf): Define using libm_alias_float.
23250 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23251 <libm-alias-float.h>.
23252 (sinf): Define using libm_alias_float.
23253 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23254 (fmaxf): Define using libm_alias_float.
23255 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23256 (fminf): Define using libm_alias_float.
23257 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23258 <libm-alias-float.h>.
23259 (fmaf): Define using libm_alias_float.
23260
23261 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23262 (asinh): Define using libm_alias_double.
23263 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23264 (atan): Define using libm_alias_double.
23265 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23266 (cbrt): Define using libm_alias_double.
23267 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23268 (ceil): Define using libm_alias_double.
23269 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23270 (copysign): Define using libm_alias_double.
23271 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23272 (expm1): Define using libm_alias_double.
23273 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23274 (fabs): Define using libm_alias_double.
23275 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23276 (fdim): Define using libm_alias_double.
23277 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23278 (floor): Define using libm_alias_double.
23279 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23280 (fmax): Define using libm_alias_double.
23281 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23282 (fmin): Define using libm_alias_double.
23283 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23284 (frexp): Define using libm_alias_double.
23285 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23286 (llrint): Define using libm_alias_double.
23287 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23288 (logb): Define using libm_alias_double.
23289 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23290 (lrint): Define using libm_alias_double.
23291 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23292 (nearbyint): Define using libm_alias_double.
23293 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23294 (remquo): Define using libm_alias_double.
23295 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23296 (rint): Define using libm_alias_double.
23297 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23298 (trunc): Define using libm_alias_double.
23299 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23300 (fmax): Define using libm_alias_double.
23301 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23302 (fmin): Define using libm_alias_double.
23303 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23304 (fma): Define using libm_alias_double.
23305
23306 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23307
23308 [BZ #22370]
23309 * elf/dl-hwcaps.c (ROUND): Removed.
23310 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23311 and ELF_NOTE_NEXT_OFFSET.
23312 * elf/dl-load.c (ROUND): Removed.
23313 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23314 * elf/readelflib.c (ROUND): Removed.
23315 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23316 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23317 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23318 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23319
23320 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23321
23322 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23323 [!__fmaf] (fmaf): Define using libm_alias_float.
23324
23325 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23326 [!__fma] (fma): Define using libm_alias_double.
23327 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23328
23329 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23330
23331 [BZ #22336]
23332 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23333 and implement the collation rules for cs from CLDR on top of that.
23334 * Makefile: Add cs_CZ.UTF-8 to test-input.
23335 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23336
23337 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23338
23339 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23340
23341 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23342 Icarus Sparry <icarus.w.sparry@intel.com>
23343
23344 * benchtests/Makefile:Add BENCHSET to allow subsets of
23345 benchmarks to be run.
23346 * benchtests/README: Add documentation for: Running subsets of
23347 benchmarks.
23348
23349 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23350
23351 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23352 range of tests names.
23353
23354 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23355 result from property and remove "max", min" and "mean" from
23356 required properties based on benchtests/bench-skeleton.c.
23357
23358 2017-11-28 Florian Weimer <fweimer@redhat.com>
23359
23360 [BZ #20826]
23361 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23362 due to Internet requirement.
23363 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23364 tst-getaddrinfo5.
23365 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23366
23367 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23368
23369 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23370 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23371 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23372 (sysdep_routines): Add memset-ultra1.
23373 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23374 file.
23375 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23376 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23377 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23378 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23379 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23380 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23381 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23382 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23383
23384 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23385 file.
23386 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23387 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23388 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23389 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23390 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23391 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23392 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23393 macro.
23394 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23395 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23396 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23397 (sysdep_routines): Add memcpy-ultra1.
23398 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23399 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23400
23401 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23402
23403 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23404 (cfloat_versions): Take function argument without trailing 'f'.
23405 Call libm_alias_float_other.
23406 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23407 * sysdeps/alpha/fpu/cargf.c: Likewise.
23408 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23409 * sysdeps/alpha/fpu/conjf.c: Likewise.
23410 * sysdeps/alpha/fpu/crealf.c: Likewise.
23411 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23412 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23413 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23414 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23415 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23416 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23417 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23418 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23419 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23420 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23421 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23422 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23423 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23424 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23425 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23426 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23427 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23428 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23429 (clog10f): Use libm_alias_float_other.
23430 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23431 (ceilf): Define using libm_alias_float.
23432 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23433 (copysignf): Define using libm_alias_float.
23434 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23435 (fabsf): Define using libm_alias_float.
23436 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23437 (floorf): Define using libm_alias_float.
23438 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23439 (fmaxf): Define using libm_alias_float.
23440 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23441 (fminf): Define using libm_alias_float.
23442 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23443 (lrintf): Define using libm_alias_float.
23444 (llrintf): Likewise.
23445 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23446 (lroundf): Define using libm_alias_float.
23447 (llroundf): Likewise.
23448 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23449 (rintf): Define using libm_alias_float.
23450 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23451 (truncf): Define using libm_alias_float.
23452
23453 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23454 (ceilf): Define using libm_alias_float.
23455 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23456 (floorf): Define using libm_alias_float.
23457 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23458 (fmaf): Define using libm_alias_float.
23459 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23460 (fmaxf): Define using libm_alias_float.
23461 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23462 (fminf): Define using libm_alias_float.
23463 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23464 (llrintf): Define using libm_alias_float.
23465 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23466 (llroundf): Define using libm_alias_float.
23467 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23468 (lrintf): Define using libm_alias_float.
23469 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23470 (lroundf): Define using libm_alias_float.
23471 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23472 <libm-alias-float.h>.
23473 (nearbyintf): Define using libm_alias_float.
23474 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23475 (rintf): Define using libm_alias_float.
23476 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23477 (roundf): Define using libm_alias_float.
23478 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23479 (truncf): Define using libm_alias_float.
23480
23481 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23482 (ceil): Define using libm_alias_double.
23483 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23484 (copysign): Define using libm_alias_double.
23485 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23486 (fabs): Define using libm_alias_double.
23487 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23488 (floor): Define using libm_alias_double.
23489 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23490 (fmax): Define using libm_alias_double.
23491 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23492 (fmin): Define using libm_alias_double.
23493 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23494 (lrint): Define using libm_alias_double.
23495 (llrint): Likewise.
23496 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23497 (lround): Define using libm_alias_double.
23498 (llround): Likewise.
23499 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23500 (rint): Define using libm_alias_double.
23501 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23502 (trunc): Define using libm_alias_double.
23503
23504 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23505 (libm_alias_double_r): Add semicolon after weak_alias call.
23506
23507 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23508
23509 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23510 (ceil): Define using libm_alias_double.
23511 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23512 (floor): Define using libm_alias_double.
23513 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23514 (fma): Define using libm_alias_double.
23515 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23516 (fmax): Define using libm_alias_double.
23517 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23518 (fmin): Define using libm_alias_double.
23519 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23520 (llrint): Define using libm_alias_double.
23521 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23522 (llround): Define using libm_alias_double.
23523 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23524 (lrint): Define using libm_alias_double.
23525 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23526 (lround): Define using libm_alias_double.
23527 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23528 (nearbyint): Define using libm_alias_double.
23529 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23530 (rint): Define using libm_alias_double.
23531 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23532 (round): Define using libm_alias_double.
23533 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23534 (trunc): Define using libm_alias_double.
23535
23536 2017-11-27 Florian Weimer <fweimer@redhat.com>
23537
23538 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23539 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23540 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23541 (tests): Add tst-mlock2.
23542 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23543 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23544 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23545 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23546 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23547 for mlock. Document mlock2.
23548
23549 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23550
23551 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23552 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23553 Likewise.
23554 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23555 Likewise.
23556 * sysdeps/x86/Makeconfig: New file.
23557 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23558 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23559 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23560 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23561 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23562 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23563 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23564 Likewise.
23565 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23566 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23567 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23568 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23569 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23570 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23571 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23572 * manual/math.texi (Mathematics): Document support for _Float64x.
23573 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23574 * stdlib/Versions (GLIBC_2.27): Likewise.
23575 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23576 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23577 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23578 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23579 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23580 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23581 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23582 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23583 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23584 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23585 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23586 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23588 Likewise.
23589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23590 Likewise.
23591 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23592 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23593 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23594 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23595 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23596 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23597 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23598 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23599 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23600 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23601 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23602 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23603 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23604 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23605
23606 2017-11-27 Andreas Schwab <schwab@suse.de>
23607
23608 * elf/Makefile (dl-routines): Add dl-sort-maps.
23609 * elf/dl-sort-maps.c: New file.
23610 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23611 (_dl_sort_maps): Declare.
23612 * elf/dl-fini.c (_dl_sort_fini): Remove.
23613 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23614 * elf/dl-close.c (_dl_close_worker): Likewise.
23615 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23616 open-coding it.
23617 * elf/dl-open.c (dl_open_worker): Likewise.
23618
23619 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23620
23621 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23622 using libm_alias_float128.
23623 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23624 Likewise.
23625 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23626 Likewise.
23627 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23628 (setpayloadsigf128): Likewise.
23629 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23630 Likewise.
23631 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23632 Likewise.
23633
23634 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23635 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23636 -mfloat128 to CFLAGS.
23637 ($(foreach
23638 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23639 Likewise.
23640 (CFLAGS-libm-test-support-float64x.c): New variable.
23641 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23642 $(f128-loader-link) to gnulib-tests.
23643
23644 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23645 (libm_alias_float128_other_r): If
23646 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23647 alias.
23648 (libm_alias_float128_r): Add semicolon after weak_alias call.
23649 * sysdeps/generic/libm-alias-ldouble.h
23650 (libm_alias_ldouble_other_r_f128): New macro.
23651 (libm_alias_ldouble_other_r_f64x): Likewise.
23652 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23653 and libm_alias_ldouble_other_r_f64x.
23654 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23655 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23656 (libm_alias_ldouble_other_r_f128): New macro.
23657 (libm_alias_ldouble_other_r_f64x): Likewise.
23658 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23659 and libm_alias_ldouble_other_r_f64x.
23660
23661 * stdlib/strfroml.c: Always include <stdlib.h>.
23662 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23663 undefine as macro and define as weak alias.
23664 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23665 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23666 <stdlib.h>.
23667 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23668 Define and later undefine as macro and define as weak alias.
23669
23670 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23671 Define and later undefine as macro. Define as weak alias if
23672 [!USE_WIDE_CHAR].
23673 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23674 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23675 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23676 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23677 Define and later undefine as macro. Define as weak alias if
23678 [!USE_WIDE_CHAR].
23679 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23680 Define and later undefine as macro. Define as weak alias if
23681 [USE_WIDE_CHAR].
23682 * sysdeps/ieee754/float128/strtof128_l.c
23683 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23684 Define and later undefine as macro. Define as weak alias if
23685 [!USE_WIDE_CHAR].
23686 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23687 Define and later undefine as macro. Define as weak alias if
23688 [USE_WIDE_CHAR].
23689 * sysdeps/ieee754/ldbl-128/strtold_l.c
23690 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23691 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23692 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23693 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23694 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23695 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23696 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23697 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23698 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23699 * sysdeps/ieee754/ldbl-96/strtold_l.c
23700 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23701 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23702 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23703 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23704
23705 * math/test-float64x.h: New file.
23706 * math/Makefile (type-float64x-yes): New variable.
23707 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23708
23709 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23710 function-like macro.
23711 (min_of_type_): Likewise.
23712 (min_of_type_l): Likewise.
23713 (min_of_type_f128): Likewise.
23714 (min_of_type): Pass () as last argument of __MATH_TG.
23715
23716 * stdlib/tst-strtod-round-skeleton.c
23717 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23718 headers.
23719
23720 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23721 for combinations of long double with _Float64 and _Float64x.
23722
23723 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23724 (__DECL_SIMD_cosf32): Likewise.
23725 (__DECL_SIMD_cosf64): Likewise.
23726 (__DECL_SIMD_cosf32x): Likewise.
23727 (__DECL_SIMD_cosf64x): Likewise.
23728 (__DECL_SIMD_cosf128x): Likewise.
23729 (__DECL_SIMD_sinf16): Likewise.
23730 (__DECL_SIMD_sinf32): Likewise.
23731 (__DECL_SIMD_sinf64): Likewise.
23732 (__DECL_SIMD_sinf32x): Likewise.
23733 (__DECL_SIMD_sinf64x): Likewise.
23734 (__DECL_SIMD_sinf128x): Likewise.
23735 (__DECL_SIMD_sincosf16): Likewise.
23736 (__DECL_SIMD_sincosf32): Likewise.
23737 (__DECL_SIMD_sincosf64): Likewise.
23738 (__DECL_SIMD_sincosf32x): Likewise.
23739 (__DECL_SIMD_sincosf64x): Likewise.
23740 (__DECL_SIMD_sincosf128x): Likewise.
23741 (__DECL_SIMD_logf16): Likewise.
23742 (__DECL_SIMD_logf32): Likewise.
23743 (__DECL_SIMD_logf64): Likewise.
23744 (__DECL_SIMD_logf32x): Likewise.
23745 (__DECL_SIMD_logf64x): Likewise.
23746 (__DECL_SIMD_logf128x): Likewise.
23747 (__DECL_SIMD_expf16): Likewise.
23748 (__DECL_SIMD_expf32): Likewise.
23749 (__DECL_SIMD_expf64): Likewise.
23750 (__DECL_SIMD_expf32x): Likewise.
23751 (__DECL_SIMD_expf64x): Likewise.
23752 (__DECL_SIMD_expf128x): Likewise.
23753 (__DECL_SIMD_powf16): Likewise.
23754 (__DECL_SIMD_powf32): Likewise.
23755 (__DECL_SIMD_powf64): Likewise.
23756 (__DECL_SIMD_powf32x): Likewise.
23757 (__DECL_SIMD_powf64x): Likewise.
23758 (__DECL_SIMD_powf128x): Likewise.
23759
23760 * stdlib/Versions (libc): Move entries for wcstof128 and
23761 wcstof128_l to ....
23762 * wcsmbs/Versions (libc): ... here.
23763 Include <float128-abi.h>.
23764
23765 2017-11-24 Florian Weimer <fweimer@redhat.com>
23766
23767 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23768 bits/mman-shared.h.
23769 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23770 <bits/mman-shared.h>.
23771 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23772 to ...
23773 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23774 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23775 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23776 <bits/mman-shared.h>.
23777
23778 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23779
23780 [BZ #22457]
23781 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23782 posix_memalign/free.
23783 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23784
23785 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23786
23787 [BZ #22469]
23788 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23789 and implement the collation rules for pl from CLDR on top of that.
23790 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23791 of locales to be built for testing.
23792 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23793
23794 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23795
23796 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23797 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23798 libm_alias_ldouble_other.
23799 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23800 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23801 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23802 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23803 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23804 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23805 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23806 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23807 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23808 libm_alias_ldouble_r.
23809 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23810 libm_alias_ldouble_other.
23811 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23812 (log10l): Likewise.
23813 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23814 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23815 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23816 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23817 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23818 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23819 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23820 (atan2l): Likewise.
23821 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23822 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23823 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23824 libm_alias_ldouble.
23825 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23826 (cosl): Likewise.
23827 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23828 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23829 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23830 (expl): Likewise.
23831 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23832 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23833 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23834 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23835 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23836 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23837 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23838 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23839 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23840 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23841 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23842 libm_alias_ldouble.
23843 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23844 libm_alias_ldouble_other.
23845 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23846 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23847 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23848 libm_alias_ldouble.
23849 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23850 libm_alias_ldouble_other.
23851 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23852 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23853 * sysdeps/ia64/fpu/w_lgammal_main.c
23854 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23855 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23856
23857 2017-11-23 Florian Weimer <fweimer@redhat.com>
23858
23859 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23860 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23861 alike. Remove freeres marker.
23862 * malloc/arena.c (arena_thread_freeres): Call
23863 tcache_thread_shutdown.
23864
23865 2017-11-23 Florian Weimer <fweimer@redhat.com>
23866
23867 [BZ #22459]
23868 Export nscd hash function as __nss_hash.
23869 * include/nss.h (__nss_hash): Declare.
23870 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23871 symbol.
23872 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23873 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23874 of __nscd_hash.
23875 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23876 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23877 * nss/Makefiles (routines): Add nss_hash.
23878 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23879 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23880 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23881 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23882
23883 2017-11-23 Florian Weimer <fweimer@redhat.com>
23884
23885 [BZ #22478]
23886 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23887 Return error code, not -1.
23888 * signal/tst-sigwait-eintr.c: New file.
23889 * signal/Makefile (tests): Add tst-sigwait-eintr.
23890
23891 2017-11-23 Florian Weimer <fweimer@redhat.com>
23892
23893 Linux: Add memfd_create system call wrapper
23894 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23895 tst-memfd_create.
23896 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23897 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23898 [__USE_GNU] (memfd_create): Declare.
23899 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23900 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23901 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23902 * sysdeps/unix/sysv/linux/**.abilist: Update.
23903 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23904
23905 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23906
23907 * localedata/gen-locale.sh: Fix typo in variable name.
23908
23909 * resolv/res_debug.c (p_secstodate): Condition definition on
23910 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23911 directly as __p_secstodate, and as a compat symbol. Do not use
23912 libresolv_hidden_def.
23913 * resolv/resolv.h (p_secstodate): Remove macro and function
23914 declaration.
23915 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23916 using p_secstodate.
23917 * include/resolv.h (__p_secstodate): Do not use
23918 libresolv_hidden_proto.
23919 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23920 (tests-internal): ... here.
23921 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23922 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23923 and declare and use __p_secstodate and use compat_symbol_reference
23924 in that case.
23925 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23926 implementation returning 77.
23927
23928 [BZ #22463]
23929 * resolv/res_debug.c: Include <libc-diag.h>.
23930 (p_secstodate): Assert time_t at least as wide as u_long. On
23931 overflow, use integer seconds since the epoch as output, or use
23932 "<overflow>" as output and set errno to EOVERFLOW if integer
23933 seconds since the epoch would be 14 or more characters.
23934 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23935 for sprintf call.
23936 * resolv/tst-p_secstodate.c: New file.
23937 * resolv/Makefile (tests): Add tst-p_secstodate.
23938 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23939
23940 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23941 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23942 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23943
23944 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23945
23946 * posix/regcomp.c (init_word_char): Add comments.
23947
23948 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23949
23950 [BZ #22447]
23951 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23952 strlen to compute length of ut_user and set trailing NUL byte of
23953 result explicitly.
23954
23955 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23956
23957 [BZ #15537]
23958 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23959 using “copy "iso14651_t1"” and then implementing the
23960 collation rules for lv from CLDR on top of that.
23961 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23962 of locales to be built for testing.
23963 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23964 sorting.
23965
23966 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23967
23968 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23969 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23970 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23971 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23972 [__USE_MISC] (MADV_HWPOISON): New macro.
23973 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23974
23975 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23976
23977 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23978 -Wmissing-braces on GCC 4.9.
23979
23980 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23981
23982 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23983 * sysdeps/s390/s390-32/start.S (_start): Likewise
23984 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23985 (thread_start): Likewise.
23986 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23987 (thread_start): Likewise.
23988 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23989 (__makecontext_ret): Likewise.
23990 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23991 (__makecontext_ret): Likewise.
23992
23993 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23994
23995 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23996 __wcschrnul): Remove attribute_hidden.
23997
23998 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23999
24000 regex: don't assume uint64_t or uint32_t
24001 This avoids -Werror=overflow errors for 32-bit systems in
24002 the 64-bit case. Problem reported by Joseph Myers in:
24003 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24004 Also, when this code is used in Gnulib it ports to platforms
24005 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24006 them, and on some 32-bit compilers there is no uint64_t.
24007 Problem reported by Gianluigi Tiesi in:
24008 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24009 * posix/regcomp.c (init_word_char): Don't assume that the types
24010 uint64_t and uint32_t exist. Adapted from Gnulib patch
24011 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24012 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24013
24014 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24015
24016 * sysdeps/aarch64/memset-reg.h: New file.
24017 * sysdeps/aarch64/memset.S: Use it.
24018 (__memset): Rename to MEMSET macro.
24019 [ZVA_MACRO]: Use zva_macro.
24020 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24021 Add memset_generic and memset_falkor.
24022 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24023 (__libc_ifunc_impl_list): Add memset ifuncs.
24024 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24025 local variable zva_size.
24026 * sysdeps/aarch64/multiarch/memset.c: New file.
24027 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24028 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24029 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24030 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24031 (DCZID_DZP_MASK): New macro.
24032 (DCZID_BS_MASK): Likewise.
24033 (init_cpu_features): Read and set zva_size.
24034 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24035 (struct cpu_features): New member zva_size.
24036
24037 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24038 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24039 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24040
24041 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24042 backwards. Fix timing computation.
24043 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24044 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24045 on memset by N at a time. Fix timing computation.
24046
24047 2017-11-20 Florian Weimer <fweimer@redhat.com>
24048
24049 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24050 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24051
24052 2017-11-19 Florian Weimer <fweimer@redhat.com>
24053
24054 manual: Document mprotect
24055 * manual/memory.texi (Memory Protection): New section.
24056 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24057 documentation of PROT_* flags and reference the Memory Protection
24058 section instead.
24059
24060 2017-11-19 Florian Weimer <fweimer@redhat.com>
24061
24062 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24063 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24064 (Scatter-Gather): ... to here. Remove misleading comment.
24065
24066 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24067
24068 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24069 style.
24070
24071 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24072 when /proc/<pid>/setgroups does not exist.
24073
24074 2017-11-18 Florian Weimer <fweimer@redhat.com>
24075
24076 * sysdeps/unix/sysv/linux/tst-ttyname.c
24077 (become_root_in_mount_ns): Remove.
24078 (do_in_chroot_1): Call support_enter_mount_namespace.
24079 (do_in_chroot_2): Likewise.
24080 (do_test): Call support_become_root early.
24081
24082 2017-11-18 Florian Weimer <fweimer@redhat.com>
24083
24084 * support/namespace.h (support_enter_mount_namespace): Declare.
24085 * support/support_enter_mount_namespace.c: New file.
24086 * support/Makefile (libsupport-routines): Add
24087 support_enter_mount_namespace.
24088
24089 2017-11-18 Florian Weimer <fweimer@redhat.com>
24090
24091 * support/temp_file.c (support_create_temp_directory): Use
24092 test_dir and do not rely on the presence of the XXXXXX suffix.
24093 * support/temp_file.h (support_create_temp_directory): Update
24094 comment.
24095 * support/tst-xreadlink.c (do_test): Adjust.
24096 * support/support_chroot.c (support_chroot_create): Likewise.
24097
24098 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24099
24100 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24101 macro.
24102 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24103 htm-no-suspend.
24104
24105 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24106
24107 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24108 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24109 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24110 (ceill): Define using libm_alias_ldouble.
24111 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24112 <libm-alias-ldouble.h>.
24113 (copysignl): Define using libm_alias_ldouble.
24114 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24115 (fabsl): Define using libm_alias_ldouble.
24116 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24117 (floorl): Define using libm_alias_ldouble.
24118 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24119 (fmaxl): Define using libm_alias_ldouble.
24120 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24121 (fminl): Define using libm_alias_ldouble.
24122 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24123 (llrintl): Define using libm_alias_ldouble.
24124 (lrintl): Likewise.
24125 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24126 <libm-alias-ldouble.h>.
24127 (nearbyintl): Define using libm_alias_ldouble.
24128 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24129 (truncl): Define using libm_alias_ldouble.
24130 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24131 <libm-alias-ldouble.h>.
24132 (lrintl): Define using libm_alias_ldouble.
24133
24134 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24135 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24136 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24137 (asinhl): Define using libm_alias_ldouble.
24138 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24139 (atanl): Define using libm_alias_ldouble.
24140 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24141 (cbrtl): Define using libm_alias_ldouble.
24142 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24143 (ceill): Define using libm_alias_ldouble.
24144 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24145 (copysignl): Define using libm_alias_ldouble.
24146 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24147 (fabsl): Define using libm_alias_ldouble.
24148 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24149 (floorl): Define using libm_alias_ldouble.
24150 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24151 (fmaxl): Define using libm_alias_ldouble.
24152 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24153 (fminl): Define using libm_alias_ldouble.
24154 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24155 (frexpl): Define using libm_alias_ldouble.
24156 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24157 (llrintl): Define using libm_alias_ldouble.
24158 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24159 (logbl): Define using libm_alias_ldouble.
24160 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24161 (lrintl): Define using libm_alias_ldouble.
24162 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24163 (nearbyintl): Define using libm_alias_ldouble.
24164 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24165 (nextafterl): Define using libm_alias_ldouble.
24166 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24167 (remquol): Define using libm_alias_ldouble.
24168 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24169 (rintl): Define using libm_alias_ldouble.
24170 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24171 (truncl): Define using libm_alias_ldouble.
24172 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24173 (fmaxl): Define using libm_alias_ldouble.
24174 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24175 (fminl): Define using libm_alias_ldouble.
24176
24177 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24178 to C syntax instead of availability and properties of types.
24179 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24180 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24181 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24182 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24183 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24184 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24185
24186 2017-11-17 Florian Weimer <fweimer@redhat.com>
24187
24188 support_become_root: Enable file creation in namespaces.
24189 * support/support_become_root.c (setup_mapping): New function.
24190 (support_become_root): Call it.
24191
24192 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24193
24194 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24195 macro.
24196
24197 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24198
24199 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24200 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24201
24202 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24203
24204 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24205
24206 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24207 version to 4.14.
24208
24209 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24210
24211 * INSTALL: Fix botched up regeneration.
24212
24213 * NEWS: Update sourceare link to https.
24214 * configure.ac: Likewise.
24215 * crypt/md5test-giant.c: Likewise.
24216 * dlfcn/bug-atexit1.c: Likewise.
24217 * dlfcn/bug-atexit2.c: Likewise.
24218 * localedata/README: Likewise.
24219 * malloc/tst-mallocfork.c: Likewise.
24220 * manual/install.texi: Likewise.
24221 * nptl/tst-pthread-getattr.c: Likewise.
24222 * stdio-common/tst-fgets.c: Likewise.
24223 * stdio-common/tst-fwrite.c: Likewise.
24224 * sunrpc/Makefile: Likewise.
24225 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24226 * wcsmbs/tst-mbrtowc2.c: Likewise.
24227 * configure: Regenerate.
24228 * INSTALL: Regenerate.
24229
24230 2017-11-15 Martin Sebor <msebor@redhat.com>
24231
24232 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24233 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24234 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24235
24236 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24237
24238 [BZ #22145]
24239 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24240 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24241
24242 [BZ #22145]
24243 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24244 Defer is_pty check until end of the function.
24245 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24246
24247 [BZ #22145]
24248 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24249 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24250 (ttyname): Likewise.
24251 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24252 (__ttyname_r): Likewise.
24253
24254 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24255 int to bool.
24256
24257 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24258
24259 * manual/terminal.texi (Is It a Terminal):
24260 Mention ENODEV for ttyname and ttyname_r.
24261
24262 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24263
24264 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24265 constant and macro.
24266
24267 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24268 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24269 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24270 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24271 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24272 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24273
24274 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24275
24276 * signal/sigrelse.c (sigrelse): Optimize implementation.
24277
24278 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24279 (__sigpause): Rely on __sigsuspend to implement single thread
24280 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24281
24282 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24283
24284 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24285 kernel version to 4.14.
24286
24287 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24288
24289 [BZ #22442]
24290 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24291 Check if ifname is too long.
24292
24293 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24294
24295 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24296
24297 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24298
24299 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24300 was accidentally lost.
24301
24302 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24303
24304 * localedata/locales/az_IR: Add standard copyright header.
24305
24306 2017-11-15 Florian Weimer <fweimer@redhat.com>
24307
24308 [BZ #22439]
24309 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24310 not just the top one. Output a new "subheaps" statistic.
24311
24312 2017-11-15 Florian Weimer <fweimer@redhat.com>
24313
24314 [BZ #22408]
24315 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24316 under the per-arena lock.
24317 * malloc/Makefile (tests): Add tst-malloc_info.
24318 (tst-malloc_info): Link with libpthread.
24319 * malloc/tst-malloc_info.c: New file.
24320
24321 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24322
24323 [BZ #21660]
24324 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24325 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24326 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24327 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24328 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24329 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24330 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24331 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24332 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24333 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24334 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24335 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24336 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24337 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24338 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24339 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24340 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24341 (__floating_type): Likewise.
24342 (__real_integer_type): Likewise.
24343 (__complex_integer_type): Likewise.
24344 (__expr_is_real): Likewise.
24345 (__tgmath_real_type_sub): Likewise.
24346 (__tgmath_real_type): Likewise.
24347 (__tgmath_complex_type_sub): Likewise.
24348 (__tgmath_complex_type): Likewise.
24349 (__TGMATH_F128): Likewise.
24350 (__TGMATH_CF128): Likewise.
24351 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24352 new macros.
24353 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24354 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24355 Likewise.
24356 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24357 Likewise.
24358 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24359 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24360 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24361 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24362 Likewise.
24363 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24364 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24365 Likewise.
24366 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24367 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24368 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24369 Likewise.
24370 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24371 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24372 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24373 (cimag): Likewise.
24374 (creal): Likewise.
24375
24376 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24377
24378 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24379 for stpncpy calls for GCC 8.
24380 (test_strncat): Disable -Wstringop-truncation warning for strncat
24381 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24382 strncat call for GCC 7.
24383 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24384 calls for GCC 8.
24385 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24386 trailing NUL.
24387
24388 * string/bug-strncat1.c: Include <libc-diag.h>.
24389 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24390
24391 2017-11-13 Claude Paroz <claude@2xlibre.net>
24392
24393 [BZ #22387]
24394 * localedata/locales/aa_DJ: Improved readibility by replacing
24395 <Uxxxx> sequences in the ASCII printable range by their ASCII
24396 character equivalents.
24397 * localedata/locales/aa_ER: Likewise.
24398 * localedata/locales/aa_ER@saaho: Likewise.
24399 * localedata/locales/aa_ET: Likewise.
24400 * localedata/locales/af_ZA: Likewise.
24401 * localedata/locales/agr_PE: Likewise.
24402 * localedata/locales/ak_GH: Likewise.
24403 * localedata/locales/am_ET: Likewise.
24404 * localedata/locales/anp_IN: Likewise.
24405 * localedata/locales/ar_AE: Likewise.
24406 * localedata/locales/ar_BH: Likewise.
24407 * localedata/locales/ar_DZ: Likewise.
24408 * localedata/locales/ar_EG: Likewise.
24409 * localedata/locales/ar_IN: Likewise.
24410 * localedata/locales/ar_IQ: Likewise.
24411 * localedata/locales/ar_JO: Likewise.
24412 * localedata/locales/ar_KW: Likewise.
24413 * localedata/locales/ar_LB: Likewise.
24414 * localedata/locales/ar_LY: Likewise.
24415 * localedata/locales/ar_MA: Likewise.
24416 * localedata/locales/ar_OM: Likewise.
24417 * localedata/locales/ar_QA: Likewise.
24418 * localedata/locales/ar_SA: Likewise.
24419 * localedata/locales/ar_SD: Likewise.
24420 * localedata/locales/ar_SS: Likewise.
24421 * localedata/locales/ar_SY: Likewise.
24422 * localedata/locales/ar_TN: Likewise.
24423 * localedata/locales/ar_YE: Likewise.
24424 * localedata/locales/as_IN: Likewise.
24425 * localedata/locales/ast_ES: Likewise.
24426 * localedata/locales/ayc_PE: Likewise.
24427 * localedata/locales/az_AZ: Likewise.
24428 * localedata/locales/az_IR: Likewise.
24429 * localedata/locales/be_BY: Likewise.
24430 * localedata/locales/be_BY@latin: Likewise.
24431 * localedata/locales/bem_ZM: Likewise.
24432 * localedata/locales/ber_DZ: Likewise.
24433 * localedata/locales/ber_MA: Likewise.
24434 * localedata/locales/bg_BG: Likewise.
24435 * localedata/locales/bhb_IN: Likewise.
24436 * localedata/locales/bho_IN: Likewise.
24437 * localedata/locales/bi_VU: Likewise.
24438 * localedata/locales/bn_BD: Likewise.
24439 * localedata/locales/bn_IN: Likewise.
24440 * localedata/locales/bo_CN: Likewise.
24441 * localedata/locales/bo_IN: Likewise.
24442 * localedata/locales/br_FR: Likewise.
24443 * localedata/locales/brx_IN: Likewise.
24444 * localedata/locales/bs_BA: Likewise.
24445 * localedata/locales/byn_ER: Likewise.
24446 * localedata/locales/ca_AD: Likewise.
24447 * localedata/locales/ca_ES: Likewise.
24448 * localedata/locales/ca_FR: Likewise.
24449 * localedata/locales/ca_IT: Likewise.
24450 * localedata/locales/ce_RU: Likewise.
24451 * localedata/locales/chr_US: Likewise.
24452 * localedata/locales/cmn_TW: Likewise.
24453 * localedata/locales/crh_UA: Likewise.
24454 * localedata/locales/cs_CZ: Likewise.
24455 * localedata/locales/csb_PL: Likewise.
24456 * localedata/locales/cv_RU: Likewise.
24457 * localedata/locales/cy_GB: Likewise.
24458 * localedata/locales/da_DK: Likewise.
24459 * localedata/locales/de_AT: Likewise.
24460 * localedata/locales/de_BE: Likewise.
24461 * localedata/locales/de_CH: Likewise.
24462 * localedata/locales/de_DE: Likewise.
24463 * localedata/locales/de_IT: Likewise.
24464 * localedata/locales/de_LI: Likewise.
24465 * localedata/locales/de_LU: Likewise.
24466 * localedata/locales/doi_IN: Likewise.
24467 * localedata/locales/dv_MV: Likewise.
24468 * localedata/locales/dz_BT: Likewise.
24469 * localedata/locales/el_CY: Likewise.
24470 * localedata/locales/el_GR: Likewise.
24471 * localedata/locales/en_AG: Likewise.
24472 * localedata/locales/en_AU: Likewise.
24473 * localedata/locales/en_BW: Likewise.
24474 * localedata/locales/en_CA: Likewise.
24475 * localedata/locales/en_DK: Likewise.
24476 * localedata/locales/en_GB: Likewise.
24477 * localedata/locales/en_HK: Likewise.
24478 * localedata/locales/en_IE: Likewise.
24479 * localedata/locales/en_IL: Likewise.
24480 * localedata/locales/en_IN: Likewise.
24481 * localedata/locales/en_NG: Likewise.
24482 * localedata/locales/en_NZ: Likewise.
24483 * localedata/locales/en_PH: Likewise.
24484 * localedata/locales/en_SG: Likewise.
24485 * localedata/locales/en_US: Likewise.
24486 * localedata/locales/en_ZA: Likewise.
24487 * localedata/locales/en_ZM: Likewise.
24488 * localedata/locales/en_ZW: Likewise.
24489 * localedata/locales/eo: Likewise.
24490 * localedata/locales/es_AR: Likewise.
24491 * localedata/locales/es_BO: Likewise.
24492 * localedata/locales/es_CL: Likewise.
24493 * localedata/locales/es_CO: Likewise.
24494 * localedata/locales/es_CR: Likewise.
24495 * localedata/locales/es_CU: Likewise.
24496 * localedata/locales/es_DO: Likewise.
24497 * localedata/locales/es_EC: Likewise.
24498 * localedata/locales/es_ES: Likewise.
24499 * localedata/locales/es_GT: Likewise.
24500 * localedata/locales/es_HN: Likewise.
24501 * localedata/locales/es_MX: Likewise.
24502 * localedata/locales/es_NI: Likewise.
24503 * localedata/locales/es_PA: Likewise.
24504 * localedata/locales/es_PE: Likewise.
24505 * localedata/locales/es_PR: Likewise.
24506 * localedata/locales/es_PY: Likewise.
24507 * localedata/locales/es_SV: Likewise.
24508 * localedata/locales/es_US: Likewise.
24509 * localedata/locales/es_UY: Likewise.
24510 * localedata/locales/es_VE: Likewise.
24511 * localedata/locales/et_EE: Likewise.
24512 * localedata/locales/eu_ES: Likewise.
24513 * localedata/locales/eu_ES@euro: Likewise.
24514 * localedata/locales/fa_IR: Likewise.
24515 * localedata/locales/ff_SN: Likewise.
24516 * localedata/locales/fi_FI: Likewise.
24517 * localedata/locales/fil_PH: Likewise.
24518 * localedata/locales/fo_FO: Likewise.
24519 * localedata/locales/fr_BE: Likewise.
24520 * localedata/locales/fr_CA: Likewise.
24521 * localedata/locales/fr_CH: Likewise.
24522 * localedata/locales/fr_FR: Likewise.
24523 * localedata/locales/fr_LU: Likewise.
24524 * localedata/locales/fur_IT: Likewise.
24525 * localedata/locales/fy_DE: Likewise.
24526 * localedata/locales/fy_NL: Likewise.
24527 * localedata/locales/ga_IE: Likewise.
24528 * localedata/locales/gd_GB: Likewise.
24529 * localedata/locales/gez_ER: Likewise.
24530 * localedata/locales/gez_ET: Likewise.
24531 * localedata/locales/gl_ES: Likewise.
24532 * localedata/locales/gu_IN: Likewise.
24533 * localedata/locales/gv_GB: Likewise.
24534 * localedata/locales/ha_NG: Likewise.
24535 * localedata/locales/hak_TW: Likewise.
24536 * localedata/locales/he_IL: Likewise.
24537 * localedata/locales/hi_IN: Likewise.
24538 * localedata/locales/hif_FJ: Likewise.
24539 * localedata/locales/hne_IN: Likewise.
24540 * localedata/locales/hr_HR: Likewise.
24541 * localedata/locales/hsb_DE: Likewise.
24542 * localedata/locales/ht_HT: Likewise.
24543 * localedata/locales/hu_HU: Likewise.
24544 * localedata/locales/hy_AM: Likewise.
24545 * localedata/locales/i18n: Likewise.
24546 * localedata/locales/ia_FR: Likewise.
24547 * localedata/locales/id_ID: Likewise.
24548 * localedata/locales/ig_NG: Likewise.
24549 * localedata/locales/ik_CA: Likewise.
24550 * localedata/locales/is_IS: Likewise.
24551 * localedata/locales/it_CH: Likewise.
24552 * localedata/locales/it_IT: Likewise.
24553 * localedata/locales/iu_CA: Likewise.
24554 * localedata/locales/ja_JP: Likewise.
24555 * localedata/locales/ka_GE: Likewise.
24556 * localedata/locales/kk_KZ: Likewise.
24557 * localedata/locales/kl_GL: Likewise.
24558 * localedata/locales/kn_IN: Likewise.
24559 * localedata/locales/ko_KR: Likewise.
24560 * localedata/locales/kok_IN: Likewise.
24561 * localedata/locales/ks_IN: Likewise.
24562 * localedata/locales/ks_IN@devanagari: Likewise.
24563 * localedata/locales/ku_TR: Likewise.
24564 * localedata/locales/kw_GB: Likewise.
24565 * localedata/locales/ky_KG: Likewise.
24566 * localedata/locales/lb_LU: Likewise.
24567 * localedata/locales/lg_UG: Likewise.
24568 * localedata/locales/li_BE: Likewise.
24569 * localedata/locales/li_NL: Likewise.
24570 * localedata/locales/lij_IT: Likewise.
24571 * localedata/locales/ln_CD: Likewise.
24572 * localedata/locales/lo_LA: Likewise.
24573 * localedata/locales/lt_LT: Likewise.
24574 * localedata/locales/lv_LV: Likewise.
24575 * localedata/locales/lzh_TW: Likewise.
24576 * localedata/locales/mag_IN: Likewise.
24577 * localedata/locales/mai_IN: Likewise.
24578 * localedata/locales/mg_MG: Likewise.
24579 * localedata/locales/mhr_RU: Likewise.
24580 * localedata/locales/mi_NZ: Likewise.
24581 * localedata/locales/mk_MK: Likewise.
24582 * localedata/locales/ml_IN: Likewise.
24583 * localedata/locales/mn_MN: Likewise.
24584 * localedata/locales/mni_IN: Likewise.
24585 * localedata/locales/mr_IN: Likewise.
24586 * localedata/locales/ms_MY: Likewise.
24587 * localedata/locales/mt_MT: Likewise.
24588 * localedata/locales/my_MM: Likewise.
24589 * localedata/locales/nan_TW: Likewise.
24590 * localedata/locales/nan_TW@latin: Likewise.
24591 * localedata/locales/nb_NO: Likewise.
24592 * localedata/locales/nds_DE: Likewise.
24593 * localedata/locales/nds_NL: Likewise.
24594 * localedata/locales/ne_NP: Likewise.
24595 * localedata/locales/nhn_MX: Likewise.
24596 * localedata/locales/niu_NU: Likewise.
24597 * localedata/locales/niu_NZ: Likewise.
24598 * localedata/locales/nl_AW: Likewise.
24599 * localedata/locales/nl_BE: Likewise.
24600 * localedata/locales/nl_NL: Likewise.
24601 * localedata/locales/nn_NO: Likewise.
24602 * localedata/locales/nr_ZA: Likewise.
24603 * localedata/locales/nso_ZA: Likewise.
24604 * localedata/locales/oc_FR: Likewise.
24605 * localedata/locales/om_ET: Likewise.
24606 * localedata/locales/om_KE: Likewise.
24607 * localedata/locales/or_IN: Likewise.
24608 * localedata/locales/os_RU: Likewise.
24609 * localedata/locales/pa_IN: Likewise.
24610 * localedata/locales/pa_PK: Likewise.
24611 * localedata/locales/pap_AW: Likewise.
24612 * localedata/locales/pap_CW: Likewise.
24613 * localedata/locales/pl_PL: Likewise.
24614 * localedata/locales/ps_AF: Likewise.
24615 * localedata/locales/pt_BR: Likewise.
24616 * localedata/locales/pt_PT: Likewise.
24617 * localedata/locales/quz_PE: Likewise.
24618 * localedata/locales/raj_IN: Likewise.
24619 * localedata/locales/ro_RO: Likewise.
24620 * localedata/locales/ru_RU: Likewise.
24621 * localedata/locales/ru_UA: Likewise.
24622 * localedata/locales/rw_RW: Likewise.
24623 * localedata/locales/sa_IN: Likewise.
24624 * localedata/locales/sat_IN: Likewise.
24625 * localedata/locales/sc_IT: Likewise.
24626 * localedata/locales/sd_IN: Likewise.
24627 * localedata/locales/sd_IN@devanagari: Likewise.
24628 * localedata/locales/se_NO: Likewise.
24629 * localedata/locales/sgs_LT: Likewise.
24630 * localedata/locales/shs_CA: Likewise.
24631 * localedata/locales/si_LK: Likewise.
24632 * localedata/locales/sid_ET: Likewise.
24633 * localedata/locales/sk_SK: Likewise.
24634 * localedata/locales/sl_SI: Likewise.
24635 * localedata/locales/sm_WS: Likewise.
24636 * localedata/locales/so_DJ: Likewise.
24637 * localedata/locales/so_ET: Likewise.
24638 * localedata/locales/so_KE: Likewise.
24639 * localedata/locales/so_SO: Likewise.
24640 * localedata/locales/sq_AL: Likewise.
24641 * localedata/locales/sq_MK: Likewise.
24642 * localedata/locales/sr_ME: Likewise.
24643 * localedata/locales/sr_RS: Likewise.
24644 * localedata/locales/sr_RS@latin: Likewise.
24645 * localedata/locales/ss_ZA: Likewise.
24646 * localedata/locales/st_ZA: Likewise.
24647 * localedata/locales/sv_FI: Likewise.
24648 * localedata/locales/sv_SE: Likewise.
24649 * localedata/locales/sw_KE: Likewise.
24650 * localedata/locales/sw_TZ: Likewise.
24651 * localedata/locales/szl_PL: Likewise.
24652 * localedata/locales/ta_IN: Likewise.
24653 * localedata/locales/ta_LK: Likewise.
24654 * localedata/locales/tcy_IN: Likewise.
24655 * localedata/locales/te_IN: Likewise.
24656 * localedata/locales/tg_TJ: Likewise.
24657 * localedata/locales/th_TH: Likewise.
24658 * localedata/locales/the_NP: Likewise.
24659 * localedata/locales/ti_ER: Likewise.
24660 * localedata/locales/ti_ET: Likewise.
24661 * localedata/locales/tig_ER: Likewise.
24662 * localedata/locales/tk_TM: Likewise.
24663 * localedata/locales/tl_PH: Likewise.
24664 * localedata/locales/tn_ZA: Likewise.
24665 * localedata/locales/to_TO: Likewise.
24666 * localedata/locales/tpi_PG: Likewise.
24667 * localedata/locales/tr_CY: Likewise.
24668 * localedata/locales/tr_TR: Likewise.
24669 * localedata/locales/ts_ZA: Likewise.
24670 * localedata/locales/tt_RU: Likewise.
24671 * localedata/locales/tt_RU@iqtelif: Likewise.
24672 * localedata/locales/ug_CN: Likewise.
24673 * localedata/locales/uk_UA: Likewise.
24674 * localedata/locales/unm_US: Likewise.
24675 * localedata/locales/ur_IN: Likewise.
24676 * localedata/locales/ur_PK: Likewise.
24677 * localedata/locales/uz_UZ: Likewise.
24678 * localedata/locales/uz_UZ@cyrillic: Likewise.
24679 * localedata/locales/ve_ZA: Likewise.
24680 * localedata/locales/vi_VN: Likewise.
24681 * localedata/locales/wa_BE: Likewise.
24682 * localedata/locales/wae_CH: Likewise.
24683 * localedata/locales/wal_ET: Likewise.
24684 * localedata/locales/wo_SN: Likewise.
24685 * localedata/locales/xh_ZA: Likewise.
24686 * localedata/locales/yi_US: Likewise.
24687 * localedata/locales/yo_NG: Likewise.
24688 * localedata/locales/yue_HK: Likewise.
24689 * localedata/locales/yuw_PG: Likewise.
24690 * localedata/locales/zh_CN: Likewise.
24691 * localedata/locales/zh_HK: Likewise.
24692 * localedata/locales/zh_SG: Likewise.
24693 * localedata/locales/zh_TW: Likewise.
24694 * localedata/locales/zu_ZA: Likewise.
24695
24696 2017-11-13 Florian Weimer <fweimer@redhat.com>
24697
24698 * support/next_to_fault.h, support/next_to_fault.c: New files.
24699 * support/Makefile (libsupport-routines): Add next_to_fault.
24700 * resolv/tst-inet_pton.c (struct next_to_fault)
24701 (next_to_fault_allocate, next_to_fault_free): Remove.
24702 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24703
24704 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24705
24706 * elf/dl-support.c: Include <dl-procruntime.c>.
24707 * include/link.h: Include <link_map.h>.
24708 * sysdeps/generic/dl-procruntime.c: New file.
24709 * sysdeps/generic/link_map.h: Likewise.
24710 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24711 the writable ld.so namespace.
24712
24713 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24714
24715 timezone: pacify GCC -Wstringop-truncation
24716 Problem reported by Martin Sebor in:
24717 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24718 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24719
24720 2017-11-12 Florian Weimer <fweimer@redhat.com>
24721
24722 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24723 tst-xreadlink.
24724 (tests): Add tst-xreadlink.
24725 * support/support.h (xstrndup): Declare.
24726 * support/xunistd.h (xunlink, xreadlink): Declare.
24727 * support/temp_file.h (support_create_temp_directory): Declare.
24728 * support/temp_file.c (support_create_temp_directory): New function.
24729 * support/support_chroot.c (support_chroot_create): Use it.
24730 * support/xreadlink.c: New file.
24731 * support/xstrndup.c: Likewise.
24732 * support/xunlink.c: Likewise.
24733 * support/tst-xreadlink.c: Likewise.
24734
24735 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24736
24737 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24738
24739 2017-11-11 Florian Weimer <fweimer@redhat.com>
24740
24741 [BZ #22409]
24742 [BZ #22412]
24743 * resolv/res_comp.c (printable_string, binary_hnok)
24744 (binary_leading_dash): New functions.
24745 (res_hnok): Reimplement using these functions and ns_name_pton.
24746 (res_ownok): Likewise.
24747 (res_mailok): Reimplement using printable_string, ns_name_pton and
24748 binary_hnok.
24749 (res_dnok): Reimplement using printable_string and ns_name_pton.
24750 * resolv/tst-res_hnok.c (tests): Add additional tests.
24751 (LETTERDIGITS, PRINTABLE): Define.
24752 (do_test): Adjust one_char results.
24753
24754 2017-11-11 Florian Weimer <fweimer@redhat.com>
24755
24756 [BZ #22413]
24757 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24758 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24759
24760 2017-11-11 Florian Weimer <fweimer@redhat.com>
24761
24762 * resolv/tst-ns_name_pton.c: New file.
24763 * resolv/Makefile (tests): Add tst-ns_name_pton.
24764 (tst-ns_name_pton): Link against libresolv.
24765
24766 2017-11-11 Florian Weimer <fweimer@redhat.com>
24767
24768 * resolv/tst-res_hnok.c: New file.
24769 * resolv/Makefile (tests): Add tst-res_hnok.
24770 (tst-res_hnok): Link against libresolv.
24771
24772 2017-11-11 Florian Weimer <fweimer@redhat.com>
24773
24774 * resolv/tst-resolv-network.c: Use test framework instead explicit
24775 main function.
24776
24777 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24778
24779 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24780 <jmp_buf-macros.h>.
24781 [!_ISOMAC] (STR_HELPER): New.
24782 [!_ISOMAC] (STR): Likewise.
24783 [!_ISOMAC] (TEST_SIZE): Likewise.
24784 [!_ISOMAC] (TEST_ALIGN): Likewise.
24785 [!_ISOMAC] (TEST_OFFSET): Likewise.
24786 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24787 field offsets of jmp_buf as well as sigjmp_buf.
24788 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24789 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24790 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24791 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24792 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24793 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24794 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24795 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24796 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24797 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24798 Likewise.
24799 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24800 Likewise.
24801 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24803 Likewise.
24804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24805 Likewise.
24806 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24807 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24808 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24809 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24810 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24811 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24812 Likewise.
24813 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24814 Likewise.
24815 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24816 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24817 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24818
24819 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24820
24821 * include/float.h
24822 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24823 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24824 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24825 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24826 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24827 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24828 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24829 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24830 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24831 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24832 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24833 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24834 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24835 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24836 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24837 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24838 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24839 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24840 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24841 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24842 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24843 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24844 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24845 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24846 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24847 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24848 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24849 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24850 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24851 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24852 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24853 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24854 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24855 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24856 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24857 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24858 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24859 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24860 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24861 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24862 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24863 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24864 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24865 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24866 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24867 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24868 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24869 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24870 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24871 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24872 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24873 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24874 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24875 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24876 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24877 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24878 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24879 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24880 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24881 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24882 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24883 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24884 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24885 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24886 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24887 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24888 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24889 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24890 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24891 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24892 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24893 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24894 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24895 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24896 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24897 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24898 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24899 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24900 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24901 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24902 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24903 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24904 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24905 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24906 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24907 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24908 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24909 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24910
24911 * stdlib/tst-strtod.h (F16): New macro.
24912 (F32): Likewise.
24913 (F64): Likewise.
24914 (F32X): Likewise.
24915 (F64X): Likewise.
24916 (F128X): Likewise.
24917 (IF_FLOAT16): Likewise.
24918 (IF_FLOAT32): Likewise.
24919 (IF_FLOAT64): Likewise.
24920 (IF_FLOAT32X): Likewise.
24921 (IF_FLOAT64X): Likewise.
24922 (IF_FLOAT128X): Likewise.
24923 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24924 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24925 (STRTOD_TEST_FOREACH): Likewise.
24926 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24927 (CHOOSE_f64): Likewise.
24928 (CHOOSE_f32x): Likewise.
24929 (CHOOSE_f64x): Likewise.
24930
24931 2017-11-07 Andreas Schwab <schwab@suse.de>
24932
24933 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24934
24935 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24936
24937 [BZ #22403]
24938 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24939 to be escaped.
24940 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24941 to be escaped.
24942
24943 2017-11-07 Claude Paroz <claude@2xlibre.net>
24944
24945 [BZ #22403]
24946 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24947 to be escaped.
24948 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24949 to be escaped.
24950 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24951 to be escaped.
24952
24953 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24954
24955 [BZ #22298]
24956 * nptl/allocatestack.c (allocate_stack): Check if
24957 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24958 __PTHREAD_MUTEX_HAVE_PREV is defined.
24959 * nptl/descr.h (pthread): Likewise.
24960 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24961 Likewise.
24962 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24963 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24964 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24965 * sysdeps/nptl/bits/thread-shared-types.h
24966 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24967 defines.
24968 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24969 of __WORDSIZE for internal layout.
24970 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24971 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24972 instead of __WORDSIZE whether to use an union for __spins and __list
24973 fields.
24974 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24975 case.
24976 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24977 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24978 defines.
24979 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24980 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24981 Likewise.
24982 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24983 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24984 Likewise.
24985 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24986 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24987 Likewise.
24988 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24989 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24990 Likewise.
24991 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24992 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24993 Likewise.
24994 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24995 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24996 Likewise.
24997 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24998 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24999 Likewise.
25000 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25001 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25002 Likewise.
25003 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25004 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25005 Likewise.
25006 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25007 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25008 Likewise.
25009 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25010 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25011 Likewise.
25012 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25013 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25014 Likewise.
25015 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25016 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25017 Likewise.
25018 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25019 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25020 Likewise.
25021
25022 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25023 New macros.
25024 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25025 checks for expected input type size.
25026 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25027 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25028 Likewise.
25029 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25030 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25031 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25032 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25033 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25034 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25035 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25036 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25037 superflous runtime assert check.
25038 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25039 Likewise.
25040 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25041 Likewise.
25042 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25043 Likewise.
25044 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25045 Likewise.
25046 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25047 Likewise.
25048 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25049 Likewise.
25050 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25051 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25052 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25053 Likewise.
25054 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25055 Likewise.
25056 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25057 Likewise.
25058 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25059 Likewise.
25060 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25061 Likewise.
25062 * nptl/pthread_attr_setinheritsched.c
25063 (__pthread_attr_setinheritsched): Likewise.
25064 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25065 Likewise.
25066 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25067 Likewise.
25068 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25069 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25070 __old_pthread_attr_setstack): Likewise.
25071 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25072 Likewise.
25073 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25074 Likewise.
25075 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25076 Likewise.
25077 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25078 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25079 Likewise.
25080 * nptl/tst-typesizes.c: Remove file.
25081
25082 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25083 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25084 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25085 checks for internal pthread_mutex_t offsets.
25086 * sysdeps/aarch64/nptl/pthread-offsets.h
25087 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25088 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25089 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25090 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25091 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25092 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25093 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25094 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25095 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25096 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25097 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25098 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25099 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25100 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25101 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25102 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25103 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25104 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25105
25106 2017-11-07 Florian Weimer <fweimer@redhat.com>
25107
25108 * bits/mman-linux.h: Move ...
25109 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25110 comment.
25111 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25112 outdated comment.
25113
25114 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25115
25116 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25117 Redefine STRNLEN as __strnlen_power8.
25118
25119 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25120
25121 * signal/sighold.c (sighold): Optimize implementation.
25122
25123 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25124 __NR_rt_sigqueueinfo.
25125
25126 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25127 __sigtimedwait.
25128 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25129 assume __NR_rt_sigtimedwait.
25130 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25131 and add LIBC_CANCEL_HANDLED for cancellation marking.
25132 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25133
25134 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25135 (sysdeps_routines): Add memchr_noneon.
25136 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25137 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25138 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25139 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25140 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25141 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25142 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25143
25144 * sysdeps/arm/arm-ifunc.h: New file.
25145 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25146 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25147 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25148 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25149 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25150 (__memcpy_neon): Avoid create hidden alias.
25151 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25152 (__memcpy_vfp): Likewise.
25153 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25154 (sysdep_routines): Add memcpy_arm.
25155 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25156
25157 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25158
25159 [BZ #22362]
25160 * Makerules (make-link-multidir): New.
25161 * config.make.in (multidir): New.
25162 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25163 * configure: Regenerated.
25164 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25165 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25166 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25167 New target.
25168
25169 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25170
25171 [BZ #22402]
25172 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25173 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25174
25175 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25176
25177 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25178 to be escaped.
25179
25180 2017-11-04 Florian Weimer <fweimer@redhat.com>
25181
25182 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25183
25184 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25185
25186 * math/math.h [__HAVE_DISTINCT_FLOAT16
25187 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25188 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25189 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25190 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25191 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25192 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25193 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25194 (__MATH_TG_F32): New macro.
25195 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25196 (__MATH_TG_F64X): Likewise.
25197 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25198 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25199
25200 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25201
25202 * po/de.po: Update translations.
25203 * po/ru.po: Likewise.
25204
25205 2017-11-03 Florian Weimer <fweimer@redhat.com>
25206
25207 * manual/filesys.texi (Hard Links): Document linkat.
25208
25209 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25210
25211 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25212 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25213 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25214 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25215 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25216 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25217 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25218 the same as _Float128.
25219 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25220 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25221 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25222
25223 * stdlib/stdlib.h
25224 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25225 Declare.
25226 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25227 Likewise.
25228 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25229 Likewise.
25230 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25231 (strtof32x): Likewise.
25232 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25233 (strtof64x): Likewise.
25234 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25235 (strtof128x): Likewise.
25236 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25237 (strfromf16): Likewise.
25238 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25239 (strfromf32): Likewise.
25240 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25241 (strfromf64): Likewise.
25242 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25243 (strfromf32x): Likewise.
25244 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25245 (strfromf64x): Likewise.
25246 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25247 (strfromf128x): Likewise.
25248 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25249 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25250 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25251 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25252 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25253 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25254
25255 2017-11-03 Richard Henderson <rth@twiddle.net>
25256
25257 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25258
25259 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25260
25261 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25262
25263 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25264
25265 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25266 DT_TLSDESC_GOT initialization.
25267 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25268 (_dl_tlsdesc_resolve_hold): Likewise.
25269 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25270 (_dl_tlsdesc_resolve_hold): Likewise.
25271 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25272 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25273
25274 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25275
25276 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25277
25278 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25279
25280 [BZ #18572]
25281 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25282 non-lazily for R_ARM_TLS_DESC.
25283
25284 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25285
25286 [BZ #17078]
25287 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25288 R_ARM_TLS_DESC case.
25289 (elf_machine_lazy_rel): Remove the prelink check.
25290
25291 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25292
25293 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25294 DT_TLSDESC_GOT initialization.
25295 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25296 (_dl_tlsdesc_resolve_rela): Likewise.
25297 (_dl_tlsdesc_resolve_hold): Likewise.
25298 (_dl_tlsdesc_undefweak): Remove ldar.
25299 (_dl_tlsdesc_dynamic): Likewise.
25300 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25301 (_dl_tlsdesc_resolve_rela): Likewise.
25302 (_dl_tlsdesc_resolve_hold): Likewise.
25303 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25304 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25305 (_dl_tlsdesc_resolve_rela): Likewise.
25306 (_dl_tlsdesc_resolve_hold): Likewise.
25307
25308 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25309
25310 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25311 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25312
25313 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25314
25315 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25316 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25317
25318 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25319
25320 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25321 Declare.
25322 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25323 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25324 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25325 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25326 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25327 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25328 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25329 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25330 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25331 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25332 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25333
25334 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25335
25336 [BZ #22382]
25337 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25338 * localedata/locales/tpi_PG: Add standard header.
25339
25340 2017-11-02 Florian Weimer <fweimer@redhat.com>
25341
25342 test-errno-linux: quotactl can fail with EPERM in containers.
25343 * sysdeps/unix/sysv/linux/test-errno-linux.c
25344 (LIST, LIST_FORWARD): New macros.
25345 (check_error_in_list): New function.
25346 (test_wrp_rv): Accept list of permitted error codes.
25347 (test_wrp_rv2): Remove.
25348 (test_wrp): Call test_wrp_rv with list of error codes.
25349 (test_wrp2): Accept list of error codes.
25350 (do_test): Adjust. Allow EPERM for quotactl.
25351
25352 2017-11-02 Florian Weimer <fweimer@redhat.com>
25353
25354 * stdio-common/bug16.c (do_test): Use array_length.
25355 * stdio-common/errlist.c (_sys_nerr): Likewise.
25356 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25357 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25358 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25359 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25360 (do_test): Use array_length.
25361 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25362 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25363 * stdio-common/tst-printf-round.c (do_test): Likewise.
25364 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25365 (CHECK): Use array_length.
25366 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25367 * stdio-common/tstscanf.c (main): Likewise.
25368 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25369
25370 2017-11-02 Florian Weimer <fweimer@redhat.com>
25371
25372 Add array_length and array_end macros.
25373 * include/array_length.h: New file.
25374
25375 2017-11-02 Florian Weimer <fweimer@redhat.com>
25376
25377 [BZ #22332]
25378 * posix/tst-glob-tilde.c (do_noescape): New variable.
25379 (one_test): Process it.
25380 (do_test): Set do_noescape. Add unescaping test case.
25381
25382 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25383
25384 * math/complex.h
25385 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25386 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25387 with appropriate macros defined and undefined.
25388 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25389 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25390 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25391 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25392 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25393 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25394 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25395 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25396 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25397 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25398
25399 * math/complex.h
25400 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25401 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25402 that for long double. Do not condition define and undefine of
25403 _Mdouble_complex_ on [__CFLOAT128].
25404
25405 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25406
25407 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25408 of <sysdeps/generic/sysdep.h>.
25409 (ALIGNARG): Removed.
25410 (ASM_SIZE_DIRECTIVE): Likewise.
25411 (ENTRY): Likewise.
25412 (END): Likewise.
25413 (ENTRY_CHK): Likewise.
25414 (END_CHK): Likewise.
25415 (syscall_error): Likewise.
25416 (mcount): Likewise.
25417 (PSEUDO_END): Likewise.
25418 (L): Likewise.
25419 (atom_text_section): Likewise.
25420 * sysdeps/x86/sysdep.h: New file.
25421 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25422 of <sysdeps/generic/sysdep.h>.
25423 (ALIGNARG): Removed.
25424 (ASM_SIZE_DIRECTIVE): Likewise.
25425 (ENTRY): Likewise.
25426 (END): Likewise.
25427 (ENTRY_CHK): Likewise.
25428 (END_CHK): Likewise.
25429 (syscall_error): Likewise.
25430 (mcount): Likewise.
25431 (PSEUDO_END): Likewise.
25432 (L): Likewise.
25433 (atom_text_section): Likewise.
25434
25435 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25436
25437 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25438 category of LC_CTYPE set to "i18n:2012".
25439 * localedata/locales/i18n_ctype: Regenerate.
25440
25441 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25442
25443 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25444 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25445 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25446 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25447
25448 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25449 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25450 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25451 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25452
25453 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25454
25455 * math/complex.h
25456 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25457 New macro.
25458 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25459 Likewise.
25460 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25461 Likewise.
25462 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25463 (CMPLXF32X): Likewise.
25464 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25465 (CMPLXF64X): Likewise.
25466 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25467 (CMPLXF128X): Likewise.
25468
25469 * math/math.h
25470 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25471 (__MATH_EVAL_FMT2): Define to add 0.0f.
25472
25473 2017-10-31 Alan Modra <amodra@gmail.com>
25474
25475 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25476 include sysdep.h.
25477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25487 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25488 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25491 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25492 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25493 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25494 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25495 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25496 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25497 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25498 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25499 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25500 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25501 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25502 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25503 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25504 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25505 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25506 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25507 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25508 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25509 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25510 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25511 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25512 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25513 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25514 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25515 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25516 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25517 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25518 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25519 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25520 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25521 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25522 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25523 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25524 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25525 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25526 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25527 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25528 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25529 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25530 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25531 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25532 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25533 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25534 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25535 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25536 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25537 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25538 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25539 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25540 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25541 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25542 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25543 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25544 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25545 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25546
25547 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25548 include sysdep.h and math_ldbl_opt.h.
25549
25550 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25551 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25560 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25561 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25563 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25565 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25566 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25567 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25568 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25571 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25572 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25573 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25574 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25575 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25576
25577 2017-10-31 Alan Modra <amodra@gmail.com>
25578
25579 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25580 string/strncase_l.c, not string/strncase.c.
25581 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25582 (libc_hidden_def): Redefine.
25583
25584 2017-10-31 Alan Modra <amodra@gmail.com>
25585
25586 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25587 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25588 (__strcasecmp): Don't define.
25589
25590 2017-10-31 Alan Modra <amodra@gmail.com>
25591
25592 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25593 IS_IN (libc).
25594 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25595 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25596 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25597
25598 2017-10-31 Alan Modra <amodra@gmail.com>
25599
25600 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25601 USE_AS_STPNCPY.
25602
25603 2017-10-31 Alan Modra <amodra@gmail.com>
25604
25605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25606 Redefine only when SHARED.
25607
25608 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25609
25610 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25611 Include <bits/math-finite.h> with appropriate macros defined and
25612 undefined.
25613 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25614 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25615 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25616 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25617 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25618
25619 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25620 [!_Mlong_double_] (_Mlong_double_): Likewise.
25621 [!_Mfloat16_] (_Mfloat16_): Likewise.
25622 [!_Mfloat32_] (_Mfloat32_): Likewise.
25623 [!_Mfloat64_] (_Mfloat64_): Likewise.
25624 [!_Mfloat128_] (_Mfloat128_): Likewise.
25625 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25626 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25627 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25628 (_Mdouble_): Define without indirection through those macros.
25629 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25630 [!_Mfloat128_] (_Mfloat128_): Likewise.
25631 [_Mlong_double_] (_Mlong_double_): Likewise.
25632 (_Mdouble_): Define without indirection through those macros.
25633 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25634 not add -D_Mlong_double_=double.
25635 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25636 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25637
25638 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25639
25640 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25641
25642 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25643
25644 * sysdeps/x86/libc-start.c: Reformat.
25645
25646 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25647
25648 [BZ #22353]
25649 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25650 (1): Renamed to ...
25651 (L(Src0)): This.
25652 (L(Src1)): New.
25653 (L(Src2)): Likewise.
25654 (L(1)): Renamed to ...
25655 (L(Src3)): This.
25656
25657 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25658
25659 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25660 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25661 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25662 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25663 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25664 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25665 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25666 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25667 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25668 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25669 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25670 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25671 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25672 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25673 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25674 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25675 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25676 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25677 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25678 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25679 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25680 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25681 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25682 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25683 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25684 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25685 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25686 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25687 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25688 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25689 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25690 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25691 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25692 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25693 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25694 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25695 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25696 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25697 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25698 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25699 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25700 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25701 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25702 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25703 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25704 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25705 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25706 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25707 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25708 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25709 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25710 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25711 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25712 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25713 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25714 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25715 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25716 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25717 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25718 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25719 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25720 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25721 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25722 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25723 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25724 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25725
25726 2017-10-30 Florian Weimer <fweimer@redhat.com>
25727
25728 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25729 always defined.
25730 * io/tst-mkdirat.c (do_test): Likewise.
25731 * io/tst-mkfifoat.c (do_test): Likewise.
25732 * io/tst-mknodat.c (do_test): Likewise.
25733 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25734 * locale/programs/locale.c (select_dirs): Likewise.
25735 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25736 * posix/bug-glob2.c (my_readdir): Likewise.
25737 * posix/tst-dir.c (main): Likewise.
25738 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25739 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25740
25741 2017-10-30 Florian Weimer <fweimer@redhat.com>
25742
25743 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25744 just __USE_GNU.
25745
25746 2017-10-30 Florian Weimer <fweimer@redhat.com>
25747
25748 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25749 Convert to support/test-driver.c.
25750 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25751 New macro parameters.
25752 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25753 * posix/tst-gnuglob.c: New file.
25754 * posix/tst-gnuglob64.c: Likewise.
25755 * posix/Makefile (tests): Add tst-gnuglob64.
25756
25757 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25758
25759 [BZ #19485]
25760 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25761 and use a better translation for March in “mon”.
25762 * localedata/locales/csb_PL: Use more ASCII to improve the
25763 readability of the source.
25764
25765 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25766
25767 [BZ #13953]
25768 * localedata/locales/km_KH: Use ASCII as much
25769 as possible for better readability of the source and
25770 remove useless comments.
25771 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25772 was commented out and apparently wrong anyway because it was
25773 using Lao characters. If Buddhist era should be used
25774 for km_KH, a native speaker should write the correct formaat
25775 for Khmer.
25776 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25777 (According to CLDR, the first weekday for Cambodia is Sunday).
25778 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25779 (These were using Lao characters which must be wrong. If we get
25780 the correct data from a native speaker, we could add it back, until
25781 then it is better not to have name_mr and name_mrs at all than
25782 having it wrong).
25783
25784 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25785
25786 * locale/loadlocale.c: Correct size of
25787 _nl_value_type_LC_<category> arrays.
25788
25789 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25790
25791 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25792 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25793 with appropriate macros defined and undefined.
25794 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25795 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25796 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25797 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25798 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25799
25800 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25801
25802 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25803 "-O2 -march=i586".
25804
25805 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25806
25807 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25808 with lowercase letters to make it agree with CLDR.
25809
25810 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25811
25812 [BZ #15260]
25813 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25814 first letters of yesstr and nostr in yesexpr and noexpr,
25815 not for the full words.
25816 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25817 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25818 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25819 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25820 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25821 first letters of yesstr and nostr in yesexpr and noexpr,
25822 until now only English was matched in yesexpr and noexpr.
25823 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25824 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25825 fil but not for tl. As tl and fil are very similar, using fil
25826 is probably better than using English.
25827
25828 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25829
25830 [BZ #21706]
25831 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25832 in yesstr and nostr.
25833
25834 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25835
25836 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25837 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25838 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25839 Likewise.
25840 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25841 Likewise.
25842 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25843 Likewise.
25844 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25845 Likewise.
25846 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25847 (SNANF128X): Likewise.
25848
25849 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25850 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25851 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25852 (HUGE_VAL_F32): Likewise.
25853 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25854 (HUGE_VAL_F64): Likewise.
25855 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25856 (HUGE_VAL_F32X): Likewise.
25857 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25858 (HUGE_VAL_F64X): Likewise.
25859 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25860 (HUGE_VAL_F128X): Likewise.
25861
25862 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25863
25864 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25865 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25866 for the br_FR locale.
25867
25868 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25869
25870 [BZ #21706]
25871 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25872
25873 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25874
25875 * locale/programs/record-status.h: Define globals, and function
25876 prototypes. Move function bodies...
25877 * locale/programs/record-status.c: ... to here. New file.
25878 * iconv/Makefile (iconv_prog-modules): Add record-status.
25879 * locale/Makefile (lib-modules): Likewise.
25880 * iconv/iconv_prog.c: Remove verbose.
25881 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25882 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25883 record a warning about ASCII compatibility.
25884 * locale/programs/ld-monetary.c (monetary_finish): If
25885 warn_int_curr_symbol is true then record a warning about the symbol
25886 not being in our ISO 4217 list.
25887 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25888 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25889 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25890 (OPT_NO_WARN): Define.
25891 (OPT_WARN): Define.
25892 (options): Add entry for --no-warnings, and --warnings.
25893 (set_warnings): New function to enable/disable warnings.
25894 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25895 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25896 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25897 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25898 Pass flags to generate_locale.
25899 (generate_locale): Accept new flag argument and pass it to localedef
25900 invocation.
25901 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25902 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25903
25904 * localedata/Makefile (test-input-data): Use full file name.
25905 * localedata/da_DK.in: Rename to...
25906 * localedata/da_DK.ISO-8859-1.in: ...this.
25907 * localedata/de_DE.in: Rename to...
25908 * localedata/de_DE.ISO-8859-1.in: ...this.
25909 * localedata/en_US.in: Rename to...
25910 * localedata/en_US.ISO-8859-1.in: ...this.
25911 * localedata/fr_FR.in: Rename to...
25912 * localedata/fr_FR.UTF-8.in: ... this.
25913 * localedata/hr_HR.in: Rename to...
25914 * localedata/hr_HR.ISO-8859-2.in: ...this.
25915 * localedata/hu_HU.in: Rename to...
25916 * localedata/hu_HU.UTF-8.in: ...this.
25917 * localedata/si_LK.in: Rename to...
25918 * localedata/si_LK.UTF-8.in: ...this.
25919 * localedata/sv_SE.in: Rename to...
25920 * localedata/sv_SE.ISO-8859-1.in: ...this.
25921 * localedata/tr_TR.in: Rename to...
25922 * localedata/tr_TR.UTF-8.in: ...this.
25923 * localedata/uk_UA.in: Rename to...
25924 * localedata/uk_UA.UTF-8.in: ...this.
25925 * localedata/sort-test.sh: Test file is locale name with the
25926 suffix.
25927
25928 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25929 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25930 file.
25931 * localedata/locales/i18n_ctype: Regenerate.
25932 * localedata/locales/tr_TR: Likewise.
25933 * localedata/locales/translit_circle: Likewise.
25934 * localedata/locales/translit_cjk_compat: Likewise.
25935 * localedata/locales/translit_combining: Likewise.
25936 * localedata/locales/translit_compat: Likewise.
25937 * localedata/locales/translit_font: Likewise.
25938 * localedata/locales/translit_fraction: Likewise.
25939
25940 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25941
25942 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25943 lxvd2x/stxvd2x with lvx/stvx.
25944 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25945
25946 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25947
25948 * include/alloc_buffer.h: Replace "if if " with "if " in
25949 comments.
25950 * sysdeps/mips/memcpy.S: Likkewise.
25951 * sysdeps/mips/memset.S: Likewise.
25952 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25953 Likewise.
25954 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25955 Likewise.
25956 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25957 Likewise.
25958
25959 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25960
25961 [BZ #15261]
25962 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25963 yesexpr and noexpr.
25964 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25965 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25966 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25967 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25968 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25969 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25970 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25971
25972 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25973
25974 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25975 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25976 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25977 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25978 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25979 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25980 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25981 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25982 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25983 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25984 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25985 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25986
25987 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25988
25989 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25990 as possible for better readability of the source.
25991 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25992 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25993 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25994 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25995 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25996 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25997 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25998 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25999 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26000 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26001 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26002 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26003 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26004 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26005 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26006 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26007 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26008 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26009 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26010 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26011 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26012 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26013 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26014 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26015 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26016 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26017 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26018 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26019 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26020 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26021 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26022 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26023 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26024 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26025 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26026 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26027 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26028 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26029 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26030 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26031 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26032 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26033 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26034 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26035 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26036 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26037 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26038 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26039 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26040 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26041 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26042 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26043 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26044 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26045 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26046 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26047 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26048 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26049 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26050 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26051 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26052 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26053 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26054 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26055 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26056 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26057 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26058 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26059 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26060 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26061 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26062 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26063 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26064 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26065 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26066 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26067 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26068 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26069 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26070 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26071 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26072 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26073 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26074 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26075 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26076 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26077 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26078 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26079 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26080 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26081 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26082 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26083 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26084 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26085 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26086 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26087 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26088 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26089 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26090 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26091 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26092 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26093 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26094 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26095 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26096 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26097 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26098 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26099 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26100 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26101 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26102 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26103 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26104 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26105 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26106 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26107 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26108 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26109 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26110 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26111 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26112 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26113 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26114 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26115 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26116 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26117 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26118 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26119 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26120 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26121 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26122 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26123 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26124 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26125 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26126 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26127 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26128 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26129 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26130 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26131 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26132 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26133 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26134 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26135 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26136 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26137 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26138 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26139 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26140 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26141 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26142 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26143 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26144 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26145 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26146 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26147 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26148 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26149 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26150 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26151 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26152 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26153 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26154 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26155 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26156 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26157 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26158 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26159 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26160 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26161 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26162 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26163 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26164 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26165
26166 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26167
26168 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26169 (Use first letters of yesstr and nostr correctly instead of using
26170 full words).
26171
26172 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26173
26174 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26175 (Use first letters of yesstr and nostr correctly).
26176
26177 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26178
26179 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26180 also check for the first characters of yesstr and nostr.
26181 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26182 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26183
26184 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26185
26186 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26187 also check for Chinese characters.
26188
26189 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26190
26191 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26192 match also for the contents of yesstr and nostr. As the first letter
26193 of yesstr and nostr is equal, checking only for the first letter
26194 is not enough.
26195
26196 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26197
26198 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26199 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26200
26201 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26202
26203 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26204 of main contributor.
26205
26206 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26207
26208 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26209 instead of using English.
26210
26211 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26212
26213 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26214 by including the first letters of nostr and yesexpr in the regexp.
26215 Also make it more readable by using ASCII where possible.
26216
26217 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26218
26219 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26220 the first letter of nostr in the regexp. It agrees with CLDR now.
26221 Also make it more readable by using ASCII where possible.
26222
26223 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26224
26225 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26226 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26227 these strings contain a U+17D6 (which somewhat looks like a colon)
26228 instead of a real colon to separate the full words for “yes”
26229 and “no” from the single letter responses.
26230
26231 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26232
26233 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26234 it agree with CLDR (include the first letter of yesstr).
26235 Also make it more readable by using ASCII where possible.
26236
26237 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26238
26239 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26240 and improve yesexpr and noexpr. The yesstr and nostr apparently
26241 came from CLDR. And CLDR has a bug there: these strings contain
26242 a U+0903 (which looks like a colon) instead of a real colon
26243 to separate the full words for “yes” and “no” from the single
26244 letter responses.
26245
26246 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26247
26248 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26249 letters of the full yesstr and nostr in yesexpr and noexpr.
26250
26251 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26252
26253 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26254 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26255 * localedata/locales/an_ES: Make source more readable by using ASCII
26256 where possible.
26257
26258 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26259
26260 [BZ #20952]
26261 * localedata/locales/yuw_PG: New file.
26262 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26263 * locale/iso-639.def: Add Yau (Uruwa).
26264
26265 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26266
26267 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26268
26269 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26270
26271 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26272 (__libc_realloc): Likewise.
26273 (_mid_memalign): Likewise.
26274 (__libc_calloc): Likewise.
26275
26276 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26277
26278 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26279 by adding the generic +1 and -0 as in all other locales.
26280 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26281 day names and make it more readable by using ASCII where possible.
26282
26283 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26284
26285 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26286 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26287
26288 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26289
26290 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26291 WNOHANG in waitpid call.
26292
26293 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26294
26295 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26296 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26297
26298 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26299 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26300 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26301 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26302 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26303 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26304 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26305 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26306 variables.
26307
26308 2017-10-23 Michael Collison <michael.collison@arm.com>
26309
26310 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26311 with __builtin_sqrt.
26312 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26313 with __builtin_sqrtf.
26314 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26315 with __builtin_ceil.
26316 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26317 with __builtin_ceilf.
26318 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26319 with __builtin_floor.
26320 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26321 with __builtin_floorf.
26322 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26323 with __builtin_fma.
26324 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26325 with __builtin_fmaf.
26326 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26327 with __builtin_fmax.
26328 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26329 with __builtin_fmaxf.
26330 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26331 with __builtin_fmin.
26332 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26333 with __builtin_fminf.
26334 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26335 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26336 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26337 with builtin_rint and conversion to int.
26338 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26339 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26340 with builtin_llround.
26341 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26342 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26343 with builtin_rint and conversion to long int.
26344 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26345 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26346 with builtin_lround.
26347 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26348 with builtin_lroundf.
26349 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26350 statements with __builtin_nearbyint.
26351 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26352 statements with __builtin_nearbyintf.
26353 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26354 with __builtin_rint.
26355 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26356 with __builtin_rintf.
26357 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26358 with __builtin_round.
26359 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26360 with __builtin_roundf.
26361 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26362 with __builtin_trunc.
26363 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26364 with __builtin_truncf.
26365 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26366 and s_l[l]round[f].c too.
26367
26368 2017-10-23 Alan Modra <amodra@gmail.com>
26369
26370 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26371 Adjust stack after restoring regs. Add missing LR cfi_restore.
26372
26373 2017-10-23 Alan Modra <amodra@gmail.com>
26374
26375 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26376 Move LR save and frame setup/teardown and LR restore to
26377 immediately around memset call. Provide cfi.
26378
26379 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26380
26381 * sysdeps/i386/fpu/e_powf.S: Removed.
26382 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26383 * sysdeps/i386/fpu/w_powf.c: Likewise.
26384 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26385 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26386 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26387 Add e_powf-sse2.
26388 (CFLAGS-e_powf-sse2.c): New.
26389 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26390 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26391
26392 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26393
26394 * sysdeps/i386/fpu/e_log2f.S: Removed.
26395 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26396 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26397 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26398 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26399 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26400 Add e_log2f-sse2.
26401 (CFLAGS-e_log2f-sse2.c): New.
26402 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26403 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26404
26405 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26406
26407 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26408 Add e_powf-fma.
26409 (CFLAGS-e_powf-fma.c): New.
26410 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26411 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26412
26413 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26414
26415 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26416 Add e_log2f-fma.
26417 (CFLAGS-e_log2f-fma.c): New.
26418 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26419 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26420
26421 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26422
26423 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26424 Add e_logf-fma.
26425 (CFLAGS-e_logf-fma.c): New.
26426 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26427 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26428
26429 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26430
26431 * sysdeps/i386/fpu/e_logf.S: Removed.
26432 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26433 * sysdeps/i386/fpu/w_logf.c: Likewise.
26434 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26435 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26436 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26437 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26438 Add e_logf-sse2.
26439 (CFLAGS-e_logf-sse2.c): New.
26440 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26441 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26442
26443 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26444
26445 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26446 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26447 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26448 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26449 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26450 Add e_exp2f-sse2.
26451 (CFLAGS-e_exp2f-sse2.c): New.
26452 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26453 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26454
26455 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26456
26457 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26458 Add e_exp2f-fma.
26459 (CFLAGS-e_exp2f-fma.c): New.
26460 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26461 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26462
26463 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26464
26465 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26466 * sysdeps/i386/fpu/e_expf.S: Likewise.
26467 * sysdeps/i386/fpu/math_errf.c: Likewise.
26468 * sysdeps/i386/fpu/w_expf.c: Likewise.
26469 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26470 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26471 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26472 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26473 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26474 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26475 Remove e_expf-ia32.
26476 (CFLAGS-e_expf-sse2.c): New.
26477 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26478 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26479
26480 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26481
26482 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26483 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26484 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26485 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26486 e_expf.c.
26487 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26488 New.
26489 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26490 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26491 Renamed to ...
26492 (__redirect_expf): This.
26493 (SYMBOL_NAME): Changed to expf.
26494 (__ieee754_expf): Renamed to ...
26495 (__expf): This.
26496 (__GI___expf): This.
26497 (__ieee754_expf): Add strong_alias.
26498 (__expf_finite): Likewise.
26499 (__expf): New.
26500 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26501
26502 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26503
26504 [BZ #22332]
26505 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26506 unescaping.
26507
26508 2017-10-21 Florian Weimer <fweimer@redhat.com>
26509
26510 * posix/Makefile (tests): Add tst-glob-tilde.
26511 (tests-special): Add tst-glob-tilde-mem.out
26512 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26513 (tst-glob-tilde-mem.out): Add mtrace check.
26514 * posix/tst-glob-tilde.c: New file.
26515
26516 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26517
26518 * bits/floatn-common.h: New file.
26519 * math/Makefile (headers): Add bits/floatn-common.h.
26520 * bits/floatn.h: Include <bits/floatn-common.h>.
26521 * sysdeps/ia64/bits/floatn.h: Likewise.
26522 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26523 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26524 * sysdeps/powerpc/bits/floatn.h: Likewise.
26525 * sysdeps/x86/bits/floatn.h: Likewise.
26526
26527 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26528
26529 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26530 indicates whether compiler emits an warning for alias for
26531 functions with incompatible types.
26532
26533 [BZ #22273]
26534 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26535 the auxiliary process is terminated by a signal before calling _exit
26536 or execve.
26537
26538 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26539
26540 [BZ #21265]
26541 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26542 New.
26543 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26544 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26545 and bit_arch_XSAVEC_Usable if needed.
26546 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26547 and bit_arch_Use_dl_runtime_resolve_opt.
26548 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26549 Removed.
26550 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26551 (bit_arch_Prefer_No_AVX512): Updated.
26552 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26553 (bit_arch_XSAVEC_Usable): New.
26554 (STATE_SAVE_OFFSET): Likewise.
26555 (STATE_SAVE_MASK): Likewise.
26556 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26557 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26558 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26559 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26560 (index_arch_XSAVEC_Usable): New.
26561 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26562 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26563 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26564 is enabled.
26565 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26566 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26567 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26568 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26569 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26570 _dl_runtime_resolve_xsavec.
26571 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26572 Removed.
26573 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26574 instead of VEC_SIZE.
26575 (REGISTER_SAVE_BND0): Removed.
26576 (REGISTER_SAVE_BND1): Likewise.
26577 (REGISTER_SAVE_BND3): Likewise.
26578 (REGISTER_SAVE_RAX): Always defined to 0.
26579 (VMOV): Removed.
26580 (_dl_runtime_resolve_avx): Likewise.
26581 (_dl_runtime_resolve_avx_slow): Likewise.
26582 (_dl_runtime_resolve_avx_opt): Likewise.
26583 (_dl_runtime_resolve_avx512): Likewise.
26584 (_dl_runtime_resolve_avx512_opt): Likewise.
26585 (_dl_runtime_resolve_sse): Likewise.
26586 (_dl_runtime_resolve_sse_vex): Likewise.
26587 (USE_FXSAVE): New.
26588 (_dl_runtime_resolve_fxsave): Likewise.
26589 (USE_XSAVE): Likewise.
26590 (_dl_runtime_resolve_xsave): Likewise.
26591 (USE_XSAVEC): Likewise.
26592 (_dl_runtime_resolve_xsavec): Likewise.
26593 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26594 Removed.
26595 (_dl_runtime_resolve_avx512_opt): Likewise.
26596 (_dl_runtime_resolve_avx): Likewise.
26597 (_dl_runtime_resolve_avx_opt): Likewise.
26598 (_dl_runtime_resolve_sse): Likewise.
26599 (_dl_runtime_resolve_sse_vex): Likewise.
26600 (_dl_runtime_resolve_fxsave): New.
26601 (_dl_runtime_resolve_xsave): Likewise.
26602 (_dl_runtime_resolve_xsavec): Likewise.
26603
26604 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26605
26606 [BZ #22320]
26607 CVE-2017-15670
26608 * posix/glob.c (__glob): Fix one-byte overflow.
26609
26610 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26611
26612 * malloc/malloc.c (sysdep-cancel.h): Add include.
26613
26614 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26615
26616 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26617
26618 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26619
26620 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26621 (tests): Remove $(objpfx)ga_test depdendency.
26622 * resolv/ga_test.c: Remove file.
26623
26624 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26625
26626 [BZ #18812]
26627 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26628 * localedata/locales/kab_DZ: New file.
26629
26630 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26631
26632 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26633 _dl_relocate_static_pie instead of _dl_start to compute load
26634 address in static PIE.
26635
26636 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26637
26638 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26639
26640 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26641
26642 [BZ #13605]
26643 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26644 * localedata/locales/shn_MM: New file.
26645
26646 2017-10-20 Florian Weimer <fweimer@redhat.com>
26647
26648 [BZ #22321]
26649 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26650 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26651 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26652 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26653 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26654 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26655
26656 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26657
26658 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26659
26660 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26661
26662 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26663
26664 [BZ #22322]
26665 * sysdeps/mips/bits/long-double.h: Move to ....
26666 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26667
26668 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26669
26670 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26671
26672 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26673 H.J. Lu <hongjiu.lu@intel.com>
26674
26675 [BZ #22299]
26676 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26677 GLRO(dl_platform) to NULL.
26678 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26679 (modules-names): Add tst-platformmod-1 and
26680 x86_64/tst-platformmod-2.
26681 (CFLAGS-tst-platform-1.c): New.
26682 (CFLAGS-tst-platformmod-1.c): Likewise.
26683 (CFLAGS-tst-platformmod-2.c): Likewise.
26684 (LDFLAGS-tst-platformmod-2.so): Likewise.
26685 ($(objpfx)tst-platform-1): Likewise.
26686 ($(objpfx)tst-platform-1.out): Likewise.
26687 (tst-platform-1-ENV): Likewise.
26688 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26689 * sysdeps/x86_64/tst-platform-1.c: New file.
26690 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26691 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26692
26693 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26694
26695 [BZ #13994]
26696 * locale/iso-639.def: Add Karbi.
26697 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26698 * localedata/locales/mjw_IN: New file.
26699
26700 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26701
26702 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26703 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26704 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26705 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26706 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26707 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26708 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26709 <bits/floatn.h>.
26710 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26711 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26712 * manual/math.texi (Mathematics): Document additional architecture
26713 support for _Float128.
26714 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26715 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26716 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26718 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26719 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26720 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26721 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26722 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26723 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26724 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26725 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26726 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26727 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26728 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26729
26730 2017-10-18 Renlin Li <renlin.li@arm.com>
26731
26732 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26733 _DYNAMIC symbol to calculate load address.
26734
26735 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26736
26737 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26738 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26739 summary bits.
26740 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26741 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26742
26743 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26744
26745 [BZ #16777]
26746 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26747 and improve readability by using more ASCII.
26748 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26749 and improve readability by using more ASCII.
26750
26751 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26752
26753 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26754 not all targets support atomics on bool.
26755
26756 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26757
26758 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26759 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26760 __f128.
26761 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26762 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26763 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26764 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26765 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26766 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26767
26768 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26769
26770 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26771 defines.
26772
26773 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26774
26775 [BZ #22159]
26776 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26777 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26778 (do_check_remalloced_chunk): Fix build bug.
26779 (do_check_malloc_state): Add assert that checks arena->top.
26780 (malloc_consolidate): Remove initialization.
26781 (int_mallinfo): Remove call to malloc_consolidate.
26782 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26783
26784 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26785
26786 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26787 (have_fastchunks): Remove.
26788 (clear_fastchunks): Remove.
26789 (set_fastchunks): Remove.
26790 (malloc_state): Add have_fastchunks.
26791 (malloc_init_state): Use have_fastchunks.
26792 (do_check_malloc_state): Remove incorrect invariant checks.
26793 (_int_malloc): Use have_fastchunks.
26794 (_int_free): Likewise.
26795 (malloc_consolidate): Likewise.
26796
26797 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26798
26799 * malloc/malloc.c (tcache_put): Inline.
26800 (tcache_get): Inline.
26801
26802 2017-10-17 Jordi Mallach <jordi@gnu.org>
26803
26804 Aurelien Jarno <aurelien@aurel32.net>
26805 [BZ #2522]
26806 * localedata/locales/ca_ES@valencia: New file.
26807 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26808
26809 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26810
26811 [BZ #22296]
26812 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26813 < 6.x
26814
26815 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26816
26817 * scripts/build-many-glibcs.py (Context.add_all_configs):
26818 Add arm-linux-gnueabihf multiarch extra_glibcs.
26819
26820 * sysdeps/generic/ifunc-init.h: New file.
26821 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26822
26823 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26824
26825 [BZ #22019]
26826 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26827 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26828 * stdlib/tst-strfmon_l.c: adapt test case.
26829
26830 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26831
26832 * sysdeps/generic/float128-abi.h: New file.
26833 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26834 non-__prefixed symbols to ....
26835 * math/Versions: ... here. Include <float128-abi.h>.
26836 * stdlib/Versions ... and here. Include <float128-abi.h>
26837
26838 2017-10-16 Florian Weimer <fweimer@redhat.com>
26839
26840 * version.h (VERSION): Switch to ".9000" as the development
26841 version suffix.
26842
26843 2017-10-16 Florian Weimer <fweimer@redhat.com>
26844
26845 [BZ #22050]
26846 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26847 compat_symbol_reference to access non-default version.
26848
26849 2017-10-16 Florian Weimer <fweimer@redhat.com>
26850
26851 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26852
26853 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26854
26855 * include/shlib-compat.h (compat_symbol_reference): Update
26856 comment.
26857
26858 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26859
26860 * math/Makefile (test-types): Add
26861 $(type-float128-$(float128-alias-fcts)).
26862 * math/test-float128.h (TYPE_STR): Define conditional on
26863 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26864 (ULP_IDX): Likewise.
26865 (ULP_I_IDX): Likewise.
26866
26867 * stdlib/strtold.c: Include <bits/floatn.h>
26868 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26869 and later undefine as macro. Define as weak alias if
26870 [!USE_WIDE_CHAR].
26871 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26872 and later undefine as macro. Define as weak alias if
26873 [USE_WIDE_CHAR].
26874 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26875 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26876 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26877 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26878 Define and later undefine as macro. Define as weak alias if
26879 [USE_WIDE_CHAR].
26880 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26881 <bits/floatn.h>.
26882 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26883 Define and later undefine as macro. Define as weak alias if
26884 [!USE_WIDE_CHAR].
26885 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26886 Define and later undefine as macro. Define as weak alias if
26887 [USE_WIDE_CHAR].
26888
26889 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26890
26891 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26892 record_verbose messages.
26893
26894 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26895
26896 [BZ #22052]
26897 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26898 to silence -O3 -Wall warning with GCC 7.
26899
26900 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26901
26902 * Makeconfig (+link-static-before-libc): Use the first of
26903 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26904 * gmon/Makefile (tests): Add tst-gmon-static.
26905 (tests-static): Likewise.
26906 (CFLAGS-tst-gmon-static.c): New.
26907 (CRT-tst-gmon-static): Likewise.
26908 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26909 (tst-gmon-static-ENV): Likewise.
26910 (tests-special): Likewise.
26911 ($(objpfx)tst-gmon-static.out): Likewise.
26912 (clean-tst-gmon-static-data): Likewise.
26913 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26914 * gmon/tst-gmon-static-gprof.sh: New file.
26915 * gmon/tst-gmon-static.c: Likewise.
26916
26917 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26918
26919 [BZ #22295]
26920 * locale/programs/linereader.c (get_string): Don't warn on
26921 non-symbolic character.
26922
26923 [BZ #22294]
26924 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26925 int_curr_symbol.
26926
26927 [BZ #22292]
26928 * locale/programs/record-status.h: New file
26929 * locale/programs/locale.c: Add comment.
26930 * locale/programs/charmap-dir.c: Don't include error.h.
26931 (charmap_opendir): Use record_error.
26932 * locale/programs/charmap.c: Don't include error.h.
26933 (charmap_read): Use record_error, and record_warning.
26934 (parse_charmap): Likewise.
26935 * locale/programs/ld-address.c: Don't include error.h.
26936 (address_finish): Use record_error, and record_warning.
26937 * locale/programs/ld-collate.c: Don't include error.h.
26938 (collate_finish): Use record_error, and record_error_at_line.
26939 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26940 (ctype_class_new): Likewise.
26941 (ctype_map_new): Likewise.
26942 (set_one_default): Likewise.
26943 (set_class_defaults): Likewise.
26944 (translit_flatten): Likewise.
26945 (allocate_arrays): Use record_error, and record_verbose.
26946 * locale/programs/ld-identification.c: Don't include error.h.
26947 (indentation_finish): Use record_error and record_warning.
26948 * locale/programs/ld-measurement.c: Don't include error.h.
26949 (measurement_finish): Use record_error.
26950 * locale/programs/ld-messages.c
26951 (message_finish): Likewise.
26952 * locale/programs/ld-monetary.c
26953 (monetary_finish): Likewise.
26954 * locale/programs/ld-name.c (name_finish): Use record_error
26955 and record_warning.
26956 * locale/programs/ld-numeric.c
26957 (numeric_finish): Use record_error.
26958 * locale/programs/ld-paper.c: Don't include error.h.
26959 (paper_finish): Use record_error.
26960 * locale/programs/ld-telephone.c: Don't include error.h.
26961 (telephone_finish): Use record_error.
26962 * locale/programs/ld-time.c (time_finish): Likewise.
26963 * locale/programs/linereader.h (lr_error): Make inline func.
26964 * locale/programs/localedef.c: Define recorded_warning_count,
26965 and recorded_error_count.
26966 (main): Use record_error. Use recorded_error_count and
26967 recorded_warning_count to issue correct error returns.
26968 (add_to_readlist): Use record_error.
26969 (find_locale): Likewise.
26970 (load_locale): Likewise.
26971 * locale/programs/localedef.h: Remove be_quiet
26972 and WITH_CUR_LOCALE.
26973 * locale/programs/locarchive.c (compare_from_file): Use
26974 record_error.
26975 * locale/programs/locfile.c (write_locale_data): Use
26976 record_error.
26977 * locale/programs/repertoire.c: Dont include error.h.
26978 (repertoire_complain): Use record_error.
26979 * localedata/tst-fmon.sh: Expect failures from localedef.
26980 * localedata/tst-locale.sh: Likewise.
26981 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26982
26983 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26984 (REPORTS): Likewise.
26985 (check): Likewise.
26986 (i18n): Rename to...
26987 (i18n_ctype): ...this.
26988 (i18n-report): Rename to...
26989 (i18n_ctype-report): ...this.
26990 * localedata/locales/i18n_ctype: Regenerate.
26991 * localedata/locales/i18n: copy i18n_ctype.
26992
26993 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26994
26995 * stdlib/strfroml.c: Include <bits/floatn.h>.
26996 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26997 Define before include of <stdlib.h> and undefine afterwards, then
26998 define as weak alias.
26999
27000 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27001 Undefine and restore default definition. Use
27002 libm_alias_ldouble_other.
27003
27004 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27005
27006 [BZ #22153]
27007 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27008 in coredumps.
27009
27010 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27011
27012 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27013 Assign sym_map to be map for local symbols, as TLS relocations
27014 use sym_map to determine whether the symbol is defined and to
27015 extract the TLS information.
27016 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27017 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27018
27019 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27020
27021 [BZ #22189]
27022 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27023 (math_force_eval): Add powerpc version.
27024
27025 [BZ #22142]
27026 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27027 -DBL_MAX.
27028 (do_test): Likewise.
27029 * stdio-common/tst-printf.sh: Likewise.
27030 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27031 ifdef clause in order to set the carry bit right. Replace r0 by
27032 0 without changing the behavior.
27033
27034 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27035
27036 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27037 <libm-alias-ldouble.h>.
27038 (fabsl): Define using libm_alias_ldouble.
27039 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27040 <libm-alias-ldouble.h>.
27041 (fabsl): Define using libm_alias_ldouble.
27042
27043 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27044 Remove conditional code.
27045
27046 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27047 Rename to __clog10_internal_l.
27048 (__clog10_internal_l): Define aliases using
27049 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27050 with __clog10.
27051
27052 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27053
27054 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27055 * benchtests/sincosf-inputs: New file.
27056 * benchtests/cosf-inputs: New file.
27057 * benchtests/sinf-inputs: New file.
27058
27059 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27060
27061 * posix/tst-spawn.c (do_test): Wait for both children.
27062
27063 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27064
27065 [BZ #22284]
27066 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27067 tests-pie): Add tst-gmon-pie.
27068 (CFLAGS-tst-gmon-pie.c): New.
27069 (CRT-tst-gmon-pie): Likewise.
27070 (tst-gmon-pie-ENV): Likewise.
27071 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27072 ($(objpfx)tst-gmon-pie.out): Likewise.
27073 (clean-tst-gmon-pie-data): Likewise.
27074 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27075 * gmon/gmon.c [PIC]: Include <link.h>.
27076 [PIC] (callback): New function.
27077 (write_hist): Add an argument for load address. Subtract load
27078 address from PCs.
27079 (write_call_graph): Likewise.
27080 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27081 it to write_hist and write_call_graph.
27082 * gmon/tst-gmon-pie.c: New file.
27083
27084 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27085
27086 * math/Makefile (test-types-basic): New variable.
27087 (test-types): Likewise.
27088 (libm-test-support): Use $(test-types) instead of $(types).
27089 (libm-tests-base-normal): Likewise.
27090 (libm-tests-base-finite): Likewise.
27091 (libm-tests-base-inline): Likewise.
27092 (generated): Likewise.
27093 ($(objpfx)libm-test-support-$(t).c): Likewise.
27094 (libm-tests-for-type iterator): Likewise.
27095 (libm-test-support iterator): Likewise.
27096 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27097 (ulp_idx): Use ULP_IDX.
27098 * math/test-ldouble.h: Include <float.h>.
27099 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27100 (ULP_IDX): New macro.
27101 (ULP_I_IDX): Likewise.
27102 * math/test-double.h (ULP_IDX): Likewise.
27103 (ULP_I_IDX): Likewise.
27104 * math/test-float.h (ULP_IDX): Likewise.
27105 (ULP_I_IDX): Likewise.
27106 * math/test-float128.h (ULP_IDX): Likewise.
27107 (ULP_I_IDX): Likewise.
27108
27109 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27110
27111 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27112 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27113 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27114 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27115 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27116 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27117 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27118 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27119 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27120 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27121 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27122 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27123 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27124 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27125 (SINGLE_THREAD_BY_GLOBAL): Define.
27126 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27127 Likewise.
27128 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27129 Likewise.
27130 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27131 Likewise.
27132 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27133 Likewise.
27134 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27135 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27136 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27137 Likewise.
27138
27139 2017-10-11 Andreas Schwab <schwab@suse.de>
27140
27141 * nis/Makefile (aux): Remove.
27142 * nscd/Makefile (aux): Add nscd_hash.
27143 (nscd-modules): Likewise.
27144 ($(objpfx)nscd): Don't depend on libnsl.
27145 * nscd/nscd_hash.c: New file.
27146 * nscd/nscd_hash.h: Likewise.
27147 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27148 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27149 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27150 instead of <nis/rpcsvc/nis.h>.
27151 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27152
27153 2017-10-11 Florian Weimer <fweimer@redhat.com>
27154
27155 [BZ #22078]
27156 Avoid large NSS buffers with many addresses, aliases.
27157 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27158 using dynarrays and struct alloc_buffer.
27159 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27160 (tst-nss-files-hosts-multi): Link with -ldl.
27161 * nss/tst-nss-files-hosts-multi.c: New file.
27162
27163 2017-10-11 Florian Weimer <fweimer@redhat.com>
27164
27165 [BZ #18023]
27166 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27167 scratch_buffer. Eliminate gotos.
27168
27169 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27170
27171 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27172 libm_alias_ldouble_other.
27173 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27174 undefine and redefine.
27175 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27176 (exp10l): Do not define here.
27177 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27178 (weak_alias): Undefine and redefine.
27179 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27180 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27181 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27182 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27183
27184 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27185 [!__fma] (fma): Define using libm_alias_double.
27186 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27187 [!__fmaf] (fmaf): Define using libm_alias_float.
27188 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27189 (fmal): Define using libm_alias_ldouble.
27190
27191 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27192
27193 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27194 New macro.
27195 (libm_alias_double_other): Likewise.
27196 (libm_alias_double_r): Use libm_alias_double_other_r.
27197 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27198 New macro.
27199 (libm_alias_float_other): Likewise.
27200 (libm_alias_float_r): Use libm_alias_float_other_r.
27201 * sysdeps/generic/libm-alias-float128.h
27202 (libm_alias_float128_other_r): New macro.
27203 (libm_alias_float128_other): Likewise.
27204 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27205 * sysdeps/generic/libm-alias-ldouble.h
27206 (libm_alias_ldouble_other_r): New macro.
27207 (libm_alias_ldouble_other): Likewise.
27208 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27209 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27210 (libm_alias_double_other_r): New macro.
27211 (libm_alias_double_other): Likewise.
27212 (libm_alias_double_r): Use libm_alias_double_other_r.
27213 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27214 (libm_alias_ldouble_other_r): New macro.
27215 (libm_alias_ldouble_other): Likewise.
27216 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27217 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27218 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27219 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27220 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27221 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27222 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27223 * math/w_exp2f.c: Use libm_alias_float_other.
27224 * math/w_expf.c: Likewise.
27225 * math/w_log2f.c: Likewise.
27226 * math/w_logf.c: Likewise.
27227 * math/w_powf.c: Likewise.
27228 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27229 [!__exp2f]: Use libm_alias_float_other.
27230 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27231 [!__expf]: Use libm_alias_float_other.
27232 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27233 [!__log2f]: Use libm_alias_float_other.
27234 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27235 [!__logf]: Use libm_alias_float_other.
27236 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27237 [!__powf]: Use libm_alias_float_other.
27238
27239 2017-10-10 Florian Weimer <fweimer@redhat.com>
27240
27241 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27242 function.
27243 (_nss_files_gethostbyname3_r): Call it.
27244
27245 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27246
27247 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27248 error. Remove default definition of declare_mgen_alias.
27249 [!declare_mgen_alias_r]: Likewise.
27250 * sysdeps/generic/math-type-macros-double.h
27251 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27252 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27253 (declare_mgen_alias_r): Likewise.
27254 * sysdeps/generic/math-type-macros-float128.h
27255 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27256 * sysdeps/generic/math-type-macros-ldouble.h
27257 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27258 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27259 macro.
27260 (declare_mgen_alias_r_s): Likewise.
27261 (declare_mgen_alias_r): Likewise.
27262 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27263 (lgamma_r): Define using libm_alias_double_r.
27264 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27265 (lgammaf_r): Define using libm_alias_float_r.
27266 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27267 (lgammal_r): Define using libm_alias_ldouble_r.
27268 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27269 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27270
27271 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27272
27273 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27274 extern declaration.
27275
27276 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27277
27278 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27279
27280 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27281
27282 [BZ #21326]
27283 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27284 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27285 * math/Makefile (test-math-cxx11): New test.
27286 * math/test-math-cxx11.cc: New file.
27287
27288 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27289
27290 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27291
27292 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27293 call to allocate the slave pty file descriptor.
27294
27295 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27296
27297 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27298 [!__fma] (fma): Define using libm_alias_double.
27299 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27300 [!__fma] (fma): Define using libm_alias_double.
27301
27302 * sysdeps/ieee754/float128/float128_private.h: Include
27303 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27304 (libm_alias_ldouble_r): Undefine and redefine.
27305 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27306 <libm-alias-ldouble.h>.
27307 (asinhl): Define using libm_alias_ldouble.
27308 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27309 <libm-alias-ldouble.h>.
27310 (atanl): Define using libm_alias_ldouble.
27311 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27312 <libm-alias-ldouble.h>.
27313 (cbrtl): Define using libm_alias_ldouble.
27314 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27315 <libm-alias-ldouble.h>.
27316 (ceill): Define using libm_alias_ldouble.
27317 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27318 <libm-alias-ldouble.h>.
27319 (copysignl): Define using libm_alias_ldouble.
27320 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27321 <libm-alias-ldouble.h>.
27322 (cosl): Define using libm_alias_ldouble.
27323 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27324 <libm-alias-ldouble.h>.
27325 (erfl): Define using libm_alias_ldouble.
27326 (erfcl): Likewise.
27327 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27328 <libm-alias-ldouble.h>.
27329 (expm1l): Define using libm_alias_ldouble.
27330 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27331 <libm-alias-ldouble.h>.
27332 (fabsl): Define using libm_alias_ldouble.
27333 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27334 <libm-alias-ldouble.h>.
27335 (floorl): Define using libm_alias_ldouble.
27336 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27337 <libm-alias-ldouble.h>.
27338 (fmal): Define using libm_alias_ldouble.
27339 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27340 <libm-alias-ldouble.h>.
27341 (frexpl): Define using libm_alias_ldouble.
27342 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27343 libm_alias_ldouble.
27344 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27345 <libm-alias-ldouble.h>.
27346 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27347 libm_alias_ldouble.
27348 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27349 <libm-alias-ldouble.h>.
27350 (getpayloadl): Define using libm_alias_ldouble.
27351 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27352 <libm-alias-ldouble.h>.
27353 (llrintl): Define using libm_alias_ldouble.
27354 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27355 <libm-alias-ldouble.h>.
27356 (llroundl): Define using libm_alias_ldouble.
27357 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27358 <libm-alias-ldouble.h>.
27359 (logbl): Define using libm_alias_ldouble.
27360 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27361 <libm-alias-ldouble.h>.
27362 (lrintl): Define using libm_alias_ldouble.
27363 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27364 <libm-alias-ldouble.h>.
27365 (lroundl): Define using libm_alias_ldouble.
27366 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27367 <libm-alias-ldouble.h>.
27368 (modfl): Define using libm_alias_ldouble.
27369 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27370 <libm-alias-ldouble.h>.
27371 (nearbyintl): Define using libm_alias_ldouble.
27372 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27373 <libm-alias-ldouble.h>.
27374 (nextafterl): Define using libm_alias_ldouble.
27375 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27376 <libm-alias-ldouble.h>.
27377 (nextupl): Define using libm_alias_ldouble.
27378 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27379 <libm-alias-ldouble.h>.
27380 (remquol): Define using libm_alias_ldouble.
27381 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27382 <libm-alias-ldouble.h>.
27383 (rintl): Define using libm_alias_ldouble.
27384 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27385 <libm-alias-ldouble.h>.
27386 (roundevenl): Define using libm_alias_ldouble.
27387 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27388 <libm-alias-ldouble.h>.
27389 (roundl): Define using libm_alias_ldouble.
27390 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27391 using libm_alias_ldouble.
27392 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27393 <libm-alias-ldouble.h>.
27394 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27395 Define using libm_alias_ldouble.
27396 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27397 <libm-alias-ldouble.h>.
27398 (sincosl): Define using libm_alias_ldouble.
27399 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27400 <libm-alias-ldouble.h>.
27401 (sinl): Define using libm_alias_ldouble.
27402 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27403 <libm-alias-ldouble.h>.
27404 (tanhl): Define using libm_alias_ldouble.
27405 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27406 <libm-alias-ldouble.h>.
27407 (tanl): Define using libm_alias_ldouble.
27408 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27409 <libm-alias-ldouble.h>.
27410 (totalorderl): Define using libm_alias_ldouble.
27411 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27412 <libm-alias-ldouble.h>.
27413 (totalordermagl): Define using libm_alias_ldouble.
27414 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27415 <libm-alias-ldouble.h>.
27416 (truncl): Define using libm_alias_ldouble.
27417 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27418 libm_alias_ldouble.
27419 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27420 libm_alias_ldouble.
27421 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27422 <libm-alias-ldouble.h>.
27423 (weak_alias): Do not undefine and redefine.
27424 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27425 (copysignl): Define with long_double_symbol only if [IS_IN
27426 (libc)].
27427 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27428 <libm-alias-ldouble.h>.
27429 (weak_alias): Do not undefine and redefine.
27430 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27431 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27432 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27433 <libm-alias-ldouble.h>.
27434 (weak_alias): Do not undefine and redefine.
27435 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27436 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27437 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27438 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27439 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27440 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27441 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27442 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27443 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27444 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27445 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27446 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27447 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27448 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27449 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27450 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27451 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27452 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27453 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27454 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27455 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27456 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27457 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27458 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27459 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27460 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27461
27462 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27463
27464 [BZ #22111]
27465 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27466 (tcache_thread_freeres): Set tcache_shutting_down before
27467 freeing the tcache.
27468 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27469 * malloc/tst-malloc-tcache-leak.c: New file.
27470
27471 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27472
27473 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27474 back to powerpc32 file.
27475 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27476 (memrchr): Add __memrchr_power8 to ifunc list.
27477 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27478 extra bytes for unaligned inputs.
27479
27480 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27481
27482 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27483 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27484 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27485 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27486 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27487
27488 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27489
27490 * sysdeps/arm/libm-test-ulps: Update.
27491
27492 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27493 <libm-alias-ldouble.h>.
27494 (asinhl): Define using libm_alias_ldouble.
27495 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27496 <libm-alias-ldouble.h>.
27497 (cbrtl): Define using libm_alias_ldouble.
27498 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27499 <libm-alias-ldouble.h>.
27500 (copysignl): Define using libm_alias_ldouble.
27501 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27502 <libm-alias-ldouble.h>.
27503 (cosl): Define using libm_alias_ldouble.
27504 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27505 <libm-alias-ldouble.h>.
27506 (erfl): Define using libm_alias_ldouble.
27507 (erfcl): Likewise.
27508 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27509 <libm-alias-ldouble.h>.
27510 (fmal): Define using libm_alias_ldouble.
27511 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27512 <libm-alias-ldouble.h>.
27513 (frexpl): Define using libm_alias_ldouble.
27514 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27515 libm_alias_ldouble.
27516 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27517 <libm-alias-ldouble.h>.
27518 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27519 libm_alias_ldouble.
27520 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27521 <libm-alias-ldouble.h>.
27522 (getpayloadl): Define using libm_alias_ldouble.
27523 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27524 <libm-alias-ldouble.h>.
27525 (llrintl): Define using libm_alias_ldouble.
27526 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27527 <libm-alias-ldouble.h>.
27528 (llroundl): Define using libm_alias_ldouble.
27529 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27530 <libm-alias-ldouble.h>.
27531 (lrintl): Define using libm_alias_ldouble.
27532 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27533 <libm-alias-ldouble.h>.
27534 (lroundl): Define using libm_alias_ldouble.
27535 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27536 <libm-alias-ldouble.h>.
27537 (modfl): Define using libm_alias_ldouble.
27538 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27539 <libm-alias-ldouble.h>.
27540 (nextupl): Define using libm_alias_ldouble.
27541 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27542 <libm-alias-ldouble.h>.
27543 (remquol): Define using libm_alias_ldouble.
27544 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27545 <libm-alias-ldouble.h>.
27546 (roundevenl): Define using libm_alias_ldouble.
27547 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27548 <libm-alias-ldouble.h>.
27549 (roundl): Define using libm_alias_ldouble.
27550 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27551 using libm_alias_ldouble.
27552 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27553 <libm-alias-ldouble.h>.
27554 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27555 <libm-alias-ldouble.h>.
27556 (setpayloadsigl): Define using libm_alias_ldouble.
27557 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27558 <libm-alias-ldouble.h>.
27559 (sincosl): Define using libm_alias_ldouble.
27560 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27561 <libm-alias-ldouble.h>.
27562 (sinl): Define using libm_alias_ldouble.
27563 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27564 <libm-alias-ldouble.h>.
27565 (tanhl): Define using libm_alias_ldouble.
27566 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27567 <libm-alias-ldouble.h>.
27568 (tanl): Define using libm_alias_ldouble.
27569 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27570 <libm-alias-ldouble.h>.
27571 (totalorderl): Define using libm_alias_ldouble.
27572 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27573 <libm-alias-ldouble.h>.
27574 (totalordermagl): Define using libm_alias_ldouble.
27575 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27576 libm_alias_ldouble.
27577 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27578 libm_alias_ldouble.
27579
27580 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27581
27582 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27583 memmove_falkor.
27584 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27585 (__libc_ifunc_impl_list): Likewise.
27586 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27587 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27588
27589 * benchtests/bench-memmove-walk.c: New file.
27590 * benchtests/Makefile (string-benchset): Add it.
27591
27592 * benchtests/bench-memset-walk.c: New file.
27593 * benchtests/Makefile (string-benchset): Add it.
27594
27595 * benchtests/bench-memcpy-walk.c: New file.
27596 * benchtests/Makefile (string-benchset): Add it.
27597
27598 2017-10-05 Florian Weimer <fweimer@redhat.com>
27599
27600 nscd: Eliminate compilation time dependency in the build output.
27601 * nscd/nscd_stat.c (STATDATA_VERSION)
27602 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27603 (STATDATA_VERSION_FULL): New macro definitions.
27604 (compilation): Remove.
27605 (struct statdata): Adjust version member.
27606 (send_stats): Set version from STATDATA_VERSION_FULL.
27607 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27608
27609 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27610
27611 * configure.ac (--enable-add-ons): Remove option.
27612 (machine): Do not mention add-ons in comment.
27613 (LIBC_PRECONFIGURE): Likewise.
27614 (add_ons): Remove variable and sanity checks and logic to locate
27615 add-ons.
27616 (add_ons_automatic): Remove variable.
27617 (configured_add_ons): Likewise.
27618 (add_ons_sfx): Likewise.
27619 (add_ons_pfx): Likewise.
27620 (add_on_subdirs): Likewise.
27621 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27622 consideration of add-ons in Implies handling.
27623 (sysdeps_add_ons): Likewise.
27624 * configure: Regenerated.
27625 * libidn/configure.ac: Remove.
27626 * libidn/configure: Likewise.
27627 * sysdeps/unix/inet/configure.ac: New file.
27628 * sysdeps/unix/inet/configure: New generated file.
27629 * sysdeps/unix/inet/Subdirs: Add libidn.
27630 * Makeconfig (sysdeps-srcdirs): Remove variable.
27631 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27632 ($(common-objpfx)config.status): Do not depend on add-on files.
27633 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27634 comment.
27635 (all-subdirs): Do not include $(add-on-subdirs).
27636 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27637 * config.make.in (add-ons): Remove variable.
27638 (add-on-subdirs): Likewise.
27639 (sysdeps-add-ons): Likewise.
27640 * manual/Makefile (add-chapters): Remove.
27641 ($(objpfx)texis): Do not depend on $(add-chapters).
27642 (nonexamples): Do not handle $(add-chapters).
27643 (examples): Do not handle $(add-ons).
27644 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27645 libc-texinfo.sh.
27646 * manual/install.texi (Installation): Do not mention add-ons.
27647 (--enable-add-ons): Do not document configure option.
27648 * INSTALL: Regenerated.
27649 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27650 * manual/maint.texi (Hierarchy Conventions): Do not mention
27651 add-ons.
27652 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27653 --enable-add-ons.
27654 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27655 add-ons.
27656 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27657 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27658
27659 2017-10-05 Andreas Schwab <schwab@suse.de>
27660
27661 [BZ #15142]
27662 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27663 (_IO_flush_all_lockp): Always lock list_all_lock.
27664 (_IO_flush_all_linebuffered): Likewise.
27665 (_IO_unbuffer_all): Likewise.
27666
27667 2017-10-05 Florian Weimer <fweimer@redhat.com>
27668
27669 [BZ #15436]
27670 Do not flush stdio streams on abort.
27671 * stdlib/abort.c (fflush): Remove macro definition.
27672 (abort): Remove stages related to stdio flushing.
27673
27674 2017-10-05 Florian Weimer <fweimer@redhat.com>
27675
27676 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27677
27678 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27679
27680 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27681
27682 2017-10-05 Florian Weimer <fweimer@redhat.com>
27683
27684 * support/support_format_hostent.c (support_format_hostent): Add
27685 more error information for NETDB_INTERNAL.
27686
27687 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27688
27689 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27690 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27691 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27692 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27693 AC_DEFINE if multi-arch is enabled.
27694 * sysdeps/i386/configure: Regenerated.
27695
27696 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27697
27698 * Makeconfig (+link-static-before-libc): Use
27699 $(DEFAULT-LDFLAGS-$(@F)).
27700 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27701 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27702 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27703
27704 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27705
27706 * elf/Makefile (tests): Add tst-main1.
27707 (modules-names): Add tst-main1mod.
27708 ($(objpfx)tst-main1): New.
27709 (CRT-tst-main1): Likewise.
27710 (LDFLAGS-tst-main1): Likewise.
27711 (LDLIBS-tst-main1): Likewise.
27712 (tst-main1mod.so-no-z-defs): Likewise.
27713 * elf/tst-main1.c: New file.
27714 * elf/tst-main1mod.c: Likewise.
27715
27716 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27717
27718 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27719
27720 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27721
27722 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27723 (fma): Define using libm_alias_double.
27724 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27725 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27726 <math_ldbl_opt.h>.
27727 (fmal): Do not define as compat symbol here.
27728 * sysdeps/alpha/fpu/s_fma.c: New file.
27729
27730 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27731
27732 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27733
27734 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27735
27736 [BZ #22229]
27737 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27738 <math_ldbl_opt.h>
27739 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27740 and libc.
27741 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27742 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27743 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27744 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27746 Include <math_ldbl_opt.h>
27747 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27748 and libc.
27749 (compat_symbol): Undefine and redefine.
27750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27751 <math_ldbl_opt.h>
27752 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27753 (compat_symbol): Undefine and redefine.
27754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27755 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27756 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27757 GLIBC_2_1 for libm.
27758 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27759 GLIBC_2.0 copysignl symbol.
27760 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27761 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27762
27763 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27764
27765 2017-10-04 Florian Weimer <fweimer@redhat.com>
27766
27767 * scripts/check-local-headers.sh: Ignore nspr4 header file
27768 directory in addition to nspr.
27769
27770 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27771
27772 [BZ #17956]
27773 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27774 * configure: Regenerate.
27775 * crypt/Makefile (nss-cpp-flags): New variable.
27776 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27777 (CPPFLAGS-md5-crypt.c): Use it.
27778 * scripts/check-local-headers.sh: Ignore nspr header file
27779 directory.
27780
27781 2017-10-04 Andreas Schwab <schwab@suse.de>
27782
27783 * nis/Makefile (services): Remove compat.
27784 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27785 ($(objpfx)libnss_compat.so): Remove rule.
27786 * nis/Versions (libnss_compat): Remove.
27787 * nss/Makefile (services): Add compat.
27788 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27789 * nss/Versions (libnss_compat): Define.
27790 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27791 Don't include <rpc/types.h>. Replace bool_t by bool.
27792 * nss/nss_compat/compat-initgroups.c: Likewise.
27793 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27794 instead of <rpcsrv/ypclnt.h>.
27795 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27796 yp_get_default_domain.
27797 * nss/nss_compat/compat-pwd.c: Likewise.
27798 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27799 yp_get_default_domain.
27800 * nss/nss_compat/nisdomain.c: New file.
27801 * nss/nss_compat/nisdomain.h: Likewise.
27802
27803 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27804
27805 [BZ #22244]
27806 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27807 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27808
27809 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27810
27811 [BZ #22243]
27812 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27813 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27814
27815 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27816
27817 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27818 "movl main@GOTOFF(%ebx), %eax".
27819
27820 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27821
27822 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27823 allow undefined _DYNAMIC in PIE libc.a.
27824 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27825 Likewse.
27826
27827 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27828
27829 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27830 check _DYNAMIC.
27831
27832 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27833
27834 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27835 check _DYNAMIC.
27836
27837 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27838
27839 * math/test-math-iscanonical.cc (error): Replace bool with int.
27840
27841 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27842
27843 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27844 (modf): Define using libm_alias_double, only if [!__modf].
27845 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27846 <libm-alias-double.h>.
27847 (modf): Define using libm_alias_double, only if [!__modf].
27848 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27849 compat symbol here.
27850 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27851 (weak_alias): Do not undefine and redefine.
27852 (strong_alias): Likewise.
27853 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27854 (weak_alias): Likewise.
27855 (strong_alias): Likewise.
27856
27857 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27858 (logb): Define using libm_alias_double, only if [!__logb].
27859 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27860 <libm-alias-double.h>.
27861 (logb): Define using libm_alias_double, only if [!__logb].
27862 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27863 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27864 (weak_alias): Do not undefine and redefine.
27865 (strong_alias): Likewise.
27866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27867 (weak_alias): Likewise.
27868 (strong_alias): Likewise.
27869
27870 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27871
27872 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27873 Check SHARED instead PIC.
27874
27875 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27876
27877 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27878 [!__fmaf] (fmaf): Define using libm_alias_float.
27879
27880 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27881 (frexp): Define using libm_alias_double.
27882 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27883 <libm-alias-double.h>.
27884 (frexp): Define using libm_alias_double.
27885 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27886 compat symbol here.
27887
27888 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27889
27890 [BZ #22235]
27891 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27892 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27893 (CFLAGS-test-math-iscanonical.cc): New variable.
27894 * math/test-math-iscanonical.cc: New file.
27895 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27896 Provide a C++ implementation based on function overloading,
27897 rather than using __MATH_TG, which uses C-only builtins.
27898 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27899 Likewise.
27900 * sysdeps/powerpc/powerpc64le/Makefile
27901 (CFLAGS-test-math-iscanonical.cc): New variable.
27902
27903 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27904
27905 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27906 (ceil): Define using libm_alias_double.
27907 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27908 (floor): Define using libm_alias_double.
27909 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27910 <libm-alias-double.h>.
27911 (llround): Define using libm_alias_double.
27912 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27913 <libm-alias-double.h>.
27914 (lround): Define using libm_alias_double.
27915 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27916 <libm-alias-double.h>.
27917 (nearbyint): Define using libm_alias_double.
27918 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27919 <libm-alias-double.h>.
27920 (remquo): Define using libm_alias_double.
27921 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27922 (rint): Define using libm_alias_double.
27923 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27924 (round): Define using libm_alias_double.
27925 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27926 (trunc): Define using libm_alias_double.
27927 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27928 <libm-alias-double.h>.
27929 (ceil): Define using libm_alias_double.
27930 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27931 <libm-alias-double.h>.
27932 (floor): Define using libm_alias_double.
27933 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27934 <libm-alias-double.h>.
27935 (llround): Define using libm_alias_double.
27936 [_LP64] (lround): Likewise.
27937 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27938 <libm-alias-double.h>.
27939 [!_LP64] (lround): Define using libm_alias_double.
27940 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27941 <libm-alias-double.h>.
27942 (nearbyint): Define using libm_alias_double.
27943 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27944 <libm-alias-double.h>.
27945 (remquo): Define using libm_alias_double.
27946 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27947 <libm-alias-double.h>.
27948 (rint): Define using libm_alias_double.
27949 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27950 <libm-alias-double.h>.
27951 (round): Define using libm_alias_double.
27952 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27953 <libm-alias-double.h>.
27954 (trunc): Define using libm_alias_double.
27955 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27956 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27957 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27958 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27959 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27960 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27961 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27962 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27963 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27964
27965 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27966
27967 * math/w_remainder.c: New file.
27968 * math/w_remainderf.c: New file.
27969 * math/w_remainderl.c: New file.
27970
27971 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27972
27973 * elf/rtld.c (BOOTSTRAP_MAP): New.
27974 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27975 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27976 Likewise.
27977 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27978 Likewise.
27979 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27980 Likewise.
27981
27982 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27983
27984 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27985 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27986 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27987 rtld_hidden_data_ver): Define to empty.
27988 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27989 __assert_perror_fail): Likewise.
27990 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27991 (__rewinddir): Likewise.
27992 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27993 (__profile_frequency): Likewise.
27994 * include/setjmp.h (__sigsetjmp): Likewise.
27995 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27996 __libc_sigaction): Likewise.
27997 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27998 not set hidden attribute.
27999 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28000 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28001 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28002 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28003 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28004 __fxstatat64): Likewise.
28005 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28006 (__uname): Likewise.
28007 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28008 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28009 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28010 (NO_RTLD_HIDDEN): Set.
28011 * sysdeps/mach/hurd/configure: Refresh.
28012 * config.h.in: Refresh.
28013
28014 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28015
28016 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28017 (atan): Define using libm_alias_double.
28018 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28019 (tan): Define using libm_alias_double.
28020 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28021 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28022
28023 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28024 define as weak alias of __atan. Do not define any aliases if
28025 [__atan].
28026 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28027 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28028 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28029 as weak alias of __tan. Do not define any aliases if [__tan].
28030 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28031 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28032 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28033 __atan.
28034 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28035 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28036 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28037 and define as weak alias of __atan.
28038 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28039 __atan.
28040 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28041 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28042 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28043 define as weak alias of __tan.
28044
28045 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28046
28047 * math/w_lgamma.c: New file.
28048 * math/w_lgammaf.c: New file.
28049 * math/w_lgammal.c: New file.
28050
28051 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28052
28053 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28054 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28055 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28056 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28057 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28058 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28059 * sysdeps/i386/fpu/w_log2f.c: New file.
28060 * sysdeps/i386/fpu/w_logf.c: New file.
28061 * sysdeps/i386/fpu/w_powf.c: New file.
28062 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28063 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28064 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28065
28066 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28067 H.J. Lu <hongjiu.lu@intel.com>
28068
28069 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28070 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28071 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28072 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28073 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28074 the new expf code.
28075 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28076 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28077 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28078 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28079 * sysdeps/i386/fpu/w_exp2f.c: New file.
28080 * sysdeps/i386/fpu/w_expf.c: New file.
28081 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28082 * sysdeps/x86_64/fpu/w_expf.c: New file.
28083
28084 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28085
28086 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28087 (log2f): Likewise.
28088 (powf): Likewise.
28089 * math/w_log2f.c: New file.
28090 * math/w_logf.c: New file.
28091 * math/w_powf.c: New file.
28092 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28093 * math/w_logf_compat.c (__logf_compat): Likewise.
28094 * math/w_powf_compat.c (__powf_compat): Likewise.
28095 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28096 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28097 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28098 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28099 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28100 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28101 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28102 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28103 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28104 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28105 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28106 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28107 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28108 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28109 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28111 Likewise.
28112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28113 Likewise.
28114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28115 Likewise.
28116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28117 Likewise.
28118 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28119 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28120 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28121 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28122 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28123 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28124 Likewise.
28125 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28126 Likewise.
28127 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28128 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28129 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28130
28131 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28132
28133 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28134 (sysdep_routines): Add memrchr_power8.
28135 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28136 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28137 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28138 New file.
28139 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28140 (memrchr): Add __memrchr_power8 to ifunc list.
28141 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28142
28143 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28144
28145 [BZ #18822]
28146 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28147 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28148 libc_hidden_def.
28149 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28150 (__posix_fallocate64_l64): Likewise.
28151
28152 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28153
28154 [BZ #18822]
28155 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28156 (__sched_setaffinity_new): Add libc_hidden_proto and
28157 libc_hidden_def.
28158
28159 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28160
28161 [BZ #18822]
28162 * include/glob.h (__glob64): Add libc_hidden_proto.
28163 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28164 libc_hidden_def.
28165
28166 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28167
28168 [BZ #18822]
28169 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28170 attribute_hidden.
28171
28172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28173
28174 [BZ #18822]
28175 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28176
28177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28178
28179 [BZ #18822]
28180 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28181 libc_hidden_def.
28182
28183 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28184
28185 [BZ #18822]
28186 * csu/version.c (__libc_print_version): Add attribute_hidden.
28187
28188 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28189
28190 [BZ #18822]
28191 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28192
28193 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28194
28195 [BZ #18822]
28196 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28197
28198 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28199
28200 [BZ #18822]
28201 * nscd/nscd_helper.c (__nis_hash): New prototype.
28202
28203 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28204
28205 [BZ #18822]
28206 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28207 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28208 libc_hidden_def.
28209 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28210 * termios/tcgetattr.c (__tcgetattr): Likewise.
28211
28212 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28213
28214 [BZ #18822]
28215 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28216 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28217 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28218 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28219 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28220
28221 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28222
28223 [BZ #18822]
28224 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28225
28226 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28227
28228 [BZ #18822]
28229 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28230 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28231
28232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28233
28234 [BZ #18822]
28235 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28236
28237 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28238
28239 [BZ #18822]
28240 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28241 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28242
28243 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28244
28245 [BZ #18822]
28246 * include/ifreq.h: New file.
28247 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28248 (__ifreq): Likewise.
28249 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28250 (__ifreq): Likewise.
28251
28252 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28253
28254 [BZ #18822]
28255 * include/idna.h: New file.
28256 * inet/getnameinfo.c: Include <idna.h> instead of
28257 <libidn/idna.h>.
28258 (__idna_to_unicode_lzlz): Removed.
28259 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28260 <libidn/idna.h>.
28261 (__idna_to_ascii_lz): Removed.
28262 (__idna_to_unicode_lzlz): Likewise.
28263
28264 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28265
28266 [BZ #18822]
28267 * include/plural-exp.h: New file.
28268 * intl/plural-exp.c: Include <plural-exp.h> instead of
28269 "plural-exp.h".
28270
28271 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28272
28273 [BZ #18822]
28274 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28275 "getsourcefilter.h".
28276 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28277 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28278 "getsourcefilter.h".
28279 (__get_sol): Removed.
28280
28281 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28282
28283 [BZ #18822]
28284 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28285 to ...
28286 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28287
28288 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28289
28290 [BZ #18822]
28291 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28292 attribute_hidden.
28293
28294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28295
28296 [BZ #18822]
28297 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28298
28299 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28300
28301 [BZ #18822]
28302 * include/search.h (__tdestroy): Add libc_hidden_proto.
28303 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28304
28305 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28306
28307 [BZ #18822]
28308 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28309
28310 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28311
28312 [BZ #18822]
28313 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28314 attribute_hidden.
28315
28316 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28317
28318 [BZ #18822]
28319 * include/signal.h (__kill): Add libc_hidden_proto.
28320 (__sigblock): Likewise.
28321 (__sigprocmask): Likewise.
28322 (__sigaltstack): Likewise.
28323 * signal/kill.c (__kill): Add libc_hidden_def.
28324 * signal/sigblock.c (__sigblock): Likewise.
28325 * signal/sigprocmask.c (__sigprocmask): Likewise.
28326 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28327 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28328 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28329 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28330 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28331 Likewise.
28332 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28333 Likewise.
28334 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28335 (__sigprocmask): Likewise.
28336 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28337 Likewise.
28338 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28339 (__sigprocmask): Likewise.
28340 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28341 Likewise.
28342
28343 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28344
28345 [BZ #18822]
28346 * include/string.h (__strsep): Add libc_hidden_proto.
28347 * string/strsep.c (__strsep): Add libc_hidden_def.
28348
28349 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28350
28351 [BZ #18822]
28352 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28353 attribute_hidden.
28354 (__spawni): Likewise.
28355
28356 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28357
28358 [BZ #18822]
28359 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28360 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28361 libc_hidden_def.
28362
28363 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28364
28365 [BZ #18822]
28366 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28367
28368 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28369
28370 [BZ #18822]
28371 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28372 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28373 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28374 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28375 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28376 Likewise.
28377 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28378 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28379
28380 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28381
28382 [BZ #18822]
28383 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28384 (__dcigettext): Likewise.
28385
28386 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28387
28388 [BZ #18822]
28389 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28390 libc_hidden_proto.
28391 (__get_nprocs): Likewise.
28392 (__get_phys_pages): Likewise.
28393 (__get_avphys_pages): Likewise.
28394 (__get_child_max): Add attribute_hidden.
28395 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28396 (__get_nprocs): Likewise.
28397 (__get_phys_pages): Likewise.
28398 (__get_avphys_pages): Likewise.
28399 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28400 libc_hidden_def.
28401 (__get_nprocs): Likewise.
28402 (__get_phys_pages): Likewise.
28403 (__get_avphys_pages): Likewise.
28404 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28405 libc_hidden_def.
28406 (__get_nprocs_conf): Likewise.
28407 (__get_phys_pages): Likewise.
28408 (__get_avphys_pages): Likewise.
28409
28410 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28411
28412 [BZ #18822]
28413 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28414 attribute_hidden.
28415 (__netlink_close): Likewise.
28416 (__netlink_free_handle): Likewise.
28417 (__netlink_request): Likewise.
28418
28419 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28420
28421 [BZ #18822]
28422 * include/rpc/rpc.h (__rpc_thread_variables): Add
28423 attribute_hidden.
28424 (__rpc_thread_svc_cleanup): Likewise.
28425 (__rpc_thread_clnt_cleanup): Likewise.
28426 (__rpc_thread_key_cleanup): Likewise.
28427
28428 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28429
28430 [BZ #18822]
28431 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28432 (__writev): Likewise.
28433 * misc/readv.c (__readv): Add libc_hidden_def.
28434 * misc/writev.c (__writev): Likewise.
28435 * sysdeps/posix/readv.c (__readv): Likewise.
28436 * sysdeps/posix/writev.c (__writev): Likewise.
28437 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28438 (__readv): Likewise.
28439 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28440 (__writev): Likewise.
28441
28442 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28443
28444 [BZ #18822]
28445 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28446 (__regcomp): Add libc_hidden_proto.
28447 (__regexec): Likewise.
28448 (__regfree): Likewise.
28449 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28450 (__regfree): Likewise.
28451 * posix/regexec.c (__regexec): Likewise.
28452
28453 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28454
28455 [BZ #18822]
28456 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28457 (__getutent): Likewise.
28458 (__getutid): Likewise.
28459 (__getutline): Likewise.
28460 (__pututline): Likewise.
28461 (__getutent_r): Likewise.
28462 (__getutid_r): Likewise.
28463 (__getutline_r): Likewise.
28464 (__utmpname): Add attribute_hidden.
28465 (__setutent): Likewise.
28466 (__endutent): Likewise.
28467 * login/getutent.c (__getutent): Add libc_hidden_def.
28468 * login/getutent_r.c (__getutent_r): Likewise.
28469 (__pututline): Likewise.
28470 * login/getutid.c (__getutid): Likewise.
28471 * login/getutid_r.c (__getutid_r): Likewise.
28472 * login/getutline.c (__getutline): Likewise.
28473 * login/getutline_r.c (__getutline_r): Likewise.
28474 * login/updwtmp.c (__updwtmp): Likewise.
28475
28476 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28477
28478 [BZ #18822]
28479 * include/dirent.h (__opendir): Always add attribute_hidden.
28480 (__fdopendir): Likewise.
28481 (__closedir): Likewise.
28482 (__readdir): Likewise.
28483 (__readdir64): Add libc_hidden_proto.
28484 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28485 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28486 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28487 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28488 New alias.
28489
28490 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28491
28492 [BZ #18822]
28493 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28494 * include/netdb.h (__gethostbyaddr_r): Likewise.
28495 (__gethostbyname_r): Likewise.
28496 (__gethostbyname2_r): Likewise.
28497 (__getnetbyaddr_r): Likewise.
28498 (__getnetbyname_r): Likewise.
28499 (__getservbyname_r): Likewise.
28500 (__getservbyport_r): Likewise.
28501 (__getprotobyname_r): Likewise.
28502 (__getprotobynumber_r): Likewise.
28503 (__getnetgrent_r): Likewise.
28504 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28505 (__getrpcbynumber_r): Likewise.
28506 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28507
28508 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28509
28510 [BZ #18822]
28511 * include/stdio.h (__fcloseall): Add attribute_hidden.
28512 (__getline): Likewise.
28513 (__path_search): Likewise.
28514 (__gen_tempname): Likewise.
28515 (__libc_message): Likewise.
28516 (__flockfile): Likewise.
28517 (__funlockfile): Likewise.
28518 (__fxprintf): Likewise.
28519 (__fxprintf_nocancel): Likewise.
28520
28521 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28522
28523 [BZ #18822]
28524 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28525 (__sgetsgent_r): Likewise.
28526
28527 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28528
28529 [BZ #18822]
28530 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28531 (__statfs64): Likewise.
28532 (__fstatfs64): Likewise.
28533 * include/sys/statvfs.h (__statvfs64): Likewise.
28534 (__fstatvfs64): Likewise.
28535 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28536 (__statfs_filesize_max): Likewise.
28537 (__statfs_symlinks): Likewise.
28538 (__statfs_chown_restricted): Likewise.
28539
28540 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28541
28542 [BZ #18822]
28543 * include/time.h (__tzstring): Add attribute_hidden.
28544 (__tzfile_read): Likewise.
28545 (__tzfile_compute): Likewise.
28546 (__tzfile_default): Likewise.
28547 (__tzset_parse_tz): Likewise.
28548 (__offtime): Likewise.
28549 (__asctime_r): Likewise.
28550 (__tzset): Likewise.
28551 (__tz_convert): Likewise.
28552 (__getdate_r): Likewise.
28553 (__getclktck): Likewise.
28554
28555 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28556
28557 [BZ #18822]
28558 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28559 (__nscd_unmap): Likewise.
28560 (__nscd_cache_search): Likewise.
28561 (__nscd_get_nl_timestamp): Likewise.
28562 (__nscd_getpwnam_r): Likewise.
28563 (__nscd_getpwuid_r): Likewise.
28564 (__nscd_getgrnam_r): Likewise.
28565 (__nscd_getgrgid_r): Likewise.
28566 (__nscd_gethostbyname_r): Likewise.
28567 (__nscd_gethostbyname2_r): Likewise.
28568 (__nscd_gethostbyaddr_r): Likewise.
28569 (__nscd_getai): Likewise.
28570 (__nscd_getgrouplist): Likewise.
28571 (__nscd_getservbyname_r): Likewise.
28572 (__nscd_getservbyport_r): Likewise.
28573 (__nscd_innetgr): Likewise.
28574 (__nscd_setnetgrent): Likewise.
28575
28576 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28577
28578 [BZ #18822]
28579 * include/gmp.h: Declare internal functions only if _ISOMAC is
28580 undefined.
28581 (__mpn_extract_double): Add attribute_hidden.
28582 (__mpn_extract_long_double): Likewise.
28583 (__mpn_extract_float128): Likewise.
28584 (__mpn_construct_float): Likewise.
28585 (__mpn_construct_double): Likewise.
28586 (__mpn_construct_long_double): Likewise.
28587 (__mpn_construct_float128): Likewise.
28588 (mpn_add_1): Likewise.
28589 (mpn_addmul_1): Likewise.
28590 (mpn_add_n): Likewise.
28591 (mpn_cmp): Likewise.
28592 (mpn_divrem): Likewise.
28593 (mpn_lshift): Likewise.
28594 (mpn_mul): Likewise.
28595 (mpn_mul_1): Likewise.
28596 (mpn_rshift): Likewise.
28597 (mpn_sub_1): Likewise.
28598 (mpn_submul_1): Likewise.
28599 (mpn_sub_n): Likewise.
28600
28601 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28602
28603 [BZ #18822]
28604 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28605 (__wcscat): Likewise.
28606 (__btowc): Likewise.
28607 (__wcrtomb): Likewise.
28608 (__mbsrtowcs): Likewise.
28609 (__wcsrtombs): Likewise.
28610 (__mbsnrtowcs): Likewise.
28611 (__wcsnrtombs): Likewise.
28612 (__wcsncpy): Likewise.
28613 (__wcpncpy): Likewise.
28614 (__wmemcpy): Likewise.
28615 (__wmempcpy): Likewise.
28616 (__wmemmove): Likewise.
28617 (__wcschrnul): Likewise.
28618 (__vfwscanf): Likewise.
28619 (__vswprintf): Likewise.
28620 (__fwprintf): Likewise.
28621 (__vfwprintf): Likewise.
28622
28623 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28624
28625 [BZ #18822]
28626 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28627 (__getgrgid_r): Likewise.
28628 (__getgrnam_r): Likewise.
28629 * include/pwd.h (__getpwuid_r): Likewise.
28630 (__getpwnam_r): Likewise.
28631 (__fgetpwent_r): Likewise.
28632 * include/shadow.h (__getspnam_r): Likewise.
28633 (__sgetspent_r): Likewise.
28634 (__fgetspent_r): Likewise.
28635
28636 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28637
28638 [BZ #18822]
28639 * include/unistd.h (__access): Add attribute_hidden.
28640 (__lseek64): Likewise.
28641 (__libc_pread64): Likewise.
28642 (__pipe2): Likewise.
28643 (__sleep): Likewise.
28644 (__chdir): Likewise.
28645 (__fchdir): Likewise.
28646 (__getcwd): Likewise.
28647 (__rmdir): Likewise.
28648 (__execvpe): Likewise.
28649 (__execve): Likewise.
28650 (__setsid): Likewise.
28651 (__getuid): Likewise.
28652 (__geteuid): Likewise.
28653 (__getgid): Likewise.
28654 (__getegid): Likewise.
28655 (__getgroups): Likewise.
28656 (__group_member): Likewise.
28657 (__ttyname_r): Likewise.
28658 (__isatty): Likewise.
28659 (__readlink): Likewise.
28660 (__unlink): Likewise.
28661 (__gethostname): Likewise.
28662 (__profil): Likewise.
28663 (__getdtablesize): Likewise.
28664 (__brk): Likewise.
28665 (__ftruncate): Likewise.
28666 (__ftruncate64): Likewise.
28667
28668 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28669
28670 [BZ #18822]
28671 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28672 * argp/argp-fs-xinl.c: Likewise.
28673 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28674 * argp/argp-parse.c: Include <argp.h>.
28675 * argp/argp-xinl.c: Likewise.
28676 * include/argp-fmtstream.h: New file.
28677 * include/argp.h (__argp_error): Add attribute_hidden.
28678 (__argp_failure): Likewise.
28679 (__argp_input): Likewise.
28680 (__argp_state_help): Likewise.
28681
28682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28683
28684 [BZ #18822]
28685 * include/wchar.h (____wcstof_l_internal): New prototype.
28686 (____wcstod_l_internal): Likewise.
28687 (____wcstold_l_internal): Likewise.
28688 (____wcstol_l_internal): Likewise.
28689 (____wcstoul_l_internal): Likewise.
28690 (____wcstoll_l_internal): Likewise.
28691 (____wcstoull_l_internal): Likewise.
28692 (____wcstof128_l_internal): Likewise.
28693 * sysdeps/ieee754/float128/wcstof128.c
28694 (____wcstof128_l_internal): Removed.
28695 * sysdeps/ieee754/float128/wcstof128_l.c
28696 (____wcstof128_l_internal): Likewise.
28697 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28698 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28699 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28700 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28701 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28702 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28703 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28704 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28705 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28706 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28707
28708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28709
28710 [BZ #18822]
28711 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28712 instead of <sys/statvfs.h>.
28713 (__internal_statvfs): Removed.
28714 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28715 instead of <sys/statvfs.h>.
28716 (__internal_statvfs64): Removed.
28717 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28718 "internal_statvfs.h" instead of <sys/statvfs.h>.
28719 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28720 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28721 instead of <sys/statvfs.h>.
28722 (__internal_statvfs): Removed.
28723 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28724 instead of <sys/statvfs.h>.
28725 (__internal_statvfs64): Removed.
28726
28727 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28728
28729 [BZ #18822]
28730 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28731 (__gconv_close): Likewise.
28732 (__gconv): Likewise.
28733 (__gconv_find_transform): Likewise.
28734 (__gconv_lookup_cache): Likewise.
28735 (__gconv_compare_alias_cache): Likewise.
28736 (__gconv_load_cache): Likewise.
28737 (__gconv_get_path): Likewise.
28738 (__gconv_close_transform): Likewise.
28739 (__gconv_release_cache): Likewise.
28740 (__gconv_find_shlib): Likewise.
28741 (__gconv_release_shlib): Likewise.
28742 (__gconv_get_builtin_trans): Likewise.
28743 (__gconv_compare_alias): Likewise.
28744 * include/dlfcn.h (_dlerror_run): Likewise.
28745 * include/stdio.h (__fortify_fail_abort): Likewise.
28746 * include/time.h (__tz_compute): Likewise.
28747 (__strptime_internal): Likewise.
28748 * intl/gettextP.h (_nl_find_domain): Likewise.
28749 (_nl_load_domain): Likewise.
28750 (_nl_find_msg): Likewise.
28751 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28752 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28753 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28754 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28755 (__gai_find_request): Likewise.
28756 (__gai_remove_request): Likewise.
28757 (__gai_notify): Likewise.
28758 (__gai_notify_only): Likewise.
28759 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28760 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28761 (_dl_non_dynamic_init): Likewise.
28762 (_dl_aux_init): Likewise.
28763 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28764 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28765 Likewise.
28766 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28767 (__wcsmbs_clone_conv): Likewise.
28768 (__wcsmbs_named_conv): Likewise.
28769
28770 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28771
28772 [BZ #18822]
28773 * include/stdlib.h (__random): Add attribute_hidden.
28774 (__random_r): Likewise.
28775 (__srandom_r): Likewise.
28776 (__initstate_r): Likewise.
28777 (__setstate_r): Likewise.
28778 (__erand48_r): Likewise.
28779 (__nrand48_r): Likewise.
28780 (__jrand48_r): Likewise.
28781 (__srand48_r): Likewise.
28782 (__seed48_r): Likewise.
28783 (__lcong48_r): Likewise.
28784 (__drand48_iterate): Likewise.
28785 (__setenv): Likewise.
28786 (__unsetenv): Likewise.
28787 (__clearenv): Likewise.
28788 (__ptsname_r): Likewise.
28789 (__posix_openpt): Likewise.
28790 (__add_to_environ): Likewise.
28791 (__realpath): Add libc_hidden_proto.
28792 (__ecvt_r): Likewise.
28793 (__fcvt_r): Likewise.
28794 (__qecvt_r): Likewise.
28795 (__qfcvt_r): Likewise.
28796 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28797 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28798
28799 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28800
28801 [BZ #18822]
28802 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28803 * include/time.h (__mktime_internal): Likewise.
28804 * libio/iolibio.h (__fopen_internal): Likewise.
28805
28806 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28807
28808 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28809 pointer in frame.
28810 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28811 Correct offset used to restore PIC register.
28812
28813 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28814
28815 [BZ libc/22165]
28816 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28817 code to load address of __getcontext_ret when generating PIC code.
28818
28819 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28820
28821 * elf/Makefile (tests-static-internal): Add
28822 tst-tls1-static-non-pie.
28823 (LDFLAGS-tst-tls1-static-non-pie): New.
28824 * elf/tst-tls1-static-non-pie.c: New file.
28825
28826 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28827
28828 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28829 (asinh): Define using libm_alias_double.
28830 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28831 (cbrt): Define using libm_alias_double.
28832 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28833 <libm-alias-double.h>.
28834 (copysign): Define using libm_alias_double.
28835 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28836 (erf): Define using libm_alias_double.
28837 (erfc): Likewise.
28838 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28839 (expm1): Define using libm_alias_double.
28840 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28841 (fabs): Define using libm_alias_double.
28842 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28843 libm_alias_double.
28844 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28845 <libm-alias-double.h>.
28846 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28847 libm_alias_double.
28848 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28849 <libm-alias-double.h>.
28850 (getpayload): Define using libm_alias_double.
28851 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28852 <libm-alias-double.h>.
28853 (llrint): Define using libm_alias_double.
28854 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28855 (lrint): Define using libm_alias_double.
28856 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28857 <libm-alias-double.h>.
28858 (nextup): Define using libm_alias_double.
28859 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28860 <libm-alias-double.h>.
28861 (roundeven): Define using libm_alias_double.
28862 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28863 libm_alias_double.
28864 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28865 <libm-alias-double.h>.
28866 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28867 using libm_alias_double.
28868 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28869 (cos): Define using libm_alias_double.
28870 (sin): Likewise.
28871 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28872 <libm-alias-double.h>.
28873 (sincos): Define using libm_alias_double.
28874 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28875 (tanh): Define using libm_alias_double.
28876 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28877 <libm-alias-double.h>.
28878 (totalorder): Define using libm_alias_double.
28879 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28880 <libm-alias-double.h>.
28881 (totalordermag): Define using libm_alias_double.
28882 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28883 libm_alias_double.
28884 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28885 libm_alias_double.
28886 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28887 <libm-alias-double.h>.
28888 (getpayload): Define using libm_alias_double.
28889 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28890 <libm-alias-double.h>.
28891 (roundeven): Define using libm_alias_double.
28892 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28893 <libm-alias-double.h>.
28894 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28895 <libm-alias-double.h>.
28896 (totalorder): Define using libm_alias_double.
28897 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28898 <libm-alias-double.h>.
28899 (totalordermag): Define using libm_alias_double.
28900 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28901 libc compat symbol here.
28902 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28903 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28904 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28905 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28906 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28907 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28908 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28909 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28910 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28911 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28912
28913 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28914
28915 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28916 _dl_relocate_static_pie instead of _dl_start to compute load
28917 address in static PIE. Return 0 if _DYNAMIC is undefined for
28918 static executable.
28919
28920 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28921
28922 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28923 _DYNAMIC is undefined for static executable.
28924
28925 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28926
28927 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28928
28929 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28930
28931 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28932
28933 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28934
28935 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28936 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28937 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28938 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28939 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28940 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28941 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28942 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28943 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28944 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28945 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28946 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28947 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28948 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28949 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28950 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28951 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28952
28953 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28954
28955 * math/bits/cmathcalls.h (cimag): Remove inline.
28956 (creal): Remove inline.
28957 (conj): Remove inline.
28958
28959 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28960
28961 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28962 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28963 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28964 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28965 (issignalingf_inline): Likewise.
28966 (POWF_LOG2_TABLE_BITS): Likewise.
28967 (POWF_LOG2_POLY_ORDER): Likewise.
28968 (POWF_SCALE_BITS): Likewise.
28969 (POWF_SCALE): Likewise.
28970 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28971 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28972 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28973
28974 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28975
28976 * math/Makefile (type-float-routines): Add e_log2f_data.
28977 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28978 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28979 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28980 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28981 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28982 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28983 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28984
28985 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28986
28987 * math/Makefile (type-float-routines): Add e_logf_data.
28988 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28989 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28990 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28991 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28992 * sysdeps/i386/fpu/e_logf_data.c: New file.
28993 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28994 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28995
28996 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28997
28998 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28999 undefined _DYNAMIC in PIE libc.a.
29000 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29001 Likewse.
29002
29003 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29004
29005 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29006 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29007 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29008 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29009 (__signbit): Remove.
29010 (__signbitl): Remove.
29011 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29012 (__signbit): Remove.
29013 (__signbitl): Remove.
29014 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29015 (__signbit): Remove.
29016 (__signbitl): Remove.
29017 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29018 (__signbit): Remove.
29019 (__signbitl): Remove.
29020 * sysdeps/tile/bits/mathinline.h: Delete file.
29021 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29022 (__signbit): Remove.
29023 (__signbitl): Remove.
29024
29025 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29026
29027 * math/math.h: Improve handling of C99 isgreater macros.
29028 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29029 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29030 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29031 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29032 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29033
29034 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29035
29036 * sysdeps/aarch64/libm-test-ulps: Update.
29037
29038 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29039
29040 [BZ #22225]
29041 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29042 math_opt_barrier on argument when doing arithmetic on it.
29043 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29044 Likewise. Use math_force_eval not math_opt_barrier after
29045 arithmetic.
29046 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29047 math_opt_barrier on argument when doing arithmetic on it.
29048 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29049 Likewise.
29050
29051 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29052
29053 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29054 libc_hidden_def.
29055 (__freeifaddrs): Likewise.
29056
29057 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29058
29059 * include/dirent.h (__dirfd): New declaration.
29060 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29061 alias.
29062 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29063 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29064 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29065 * include/unistd.h (__revoke): New declaration.
29066 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29067 alias.
29068 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29069 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29070 revoke.
29071 * include/dirent.h (__seekdir): New declaration.
29072 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29073 redefine as weak alias.
29074 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29075 of seekdir.
29076 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29077 and use libc_hidden_def on them.
29078 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29079 them.
29080 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29081 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29082 instead of getifaddrs and freeifaddrs.
29083
29084 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29085
29086 [BZ #18822]
29087 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29088 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29089 (__dso_handle): Remove declaration.
29090 * dlfcn/tstatexit.c (__dso_handle): Removed.
29091 (main): Don't check __dso_handle.
29092 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29093 (main): Don't check __dso_handle.
29094 * include/dso_handle.h: New file.
29095 * malloc/mtrace.c: Include <dso_handle.h>.
29096 (mtrace): Pass __dso_handle directly.
29097 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29098 (__dso_handle): Remove declaration.
29099 (__pthread_atfork): Pass __dso_handle directly.
29100 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29101 (__dso_handle): Removed.
29102 * posix/wordexp-test.c: Include <dso_handle.h>.
29103 (__dso_handle): Remove declaration.
29104 (__app_register_atfork): Pass __dso_handle directly.
29105 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29106 (__dso_handle): Remove declaration.
29107 (at_quick_exit): Pass __dso_handle directly.
29108 * stdlib/atexit.c: Include <dso_handle.h>.
29109 (__dso_handle): Remove declaration.
29110 (atexit): Pass __dso_handle directly.
29111 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29112 (__dso_handle): Removed.
29113
29114 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29115
29116 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29117 using VDSO.
29118
29119 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29120
29121 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29122 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29123 values to correct default value for given type.
29124
29125 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29126
29127 [BZ #22101]
29128 * elf/Makefile (tests): Add tst-debug1.
29129 ($(objpfx)tst-debug1): New.
29130 ($(objpfx)tst-debug1.out): Likewise.
29131 ($(objpfx)tst-debug1mod1.so): Likewise.
29132 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29133 with p_filesz == 0.
29134 * elf/tst-debug1.c: New file.
29135
29136 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29137
29138 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29139 Define using __ifunc.
29140
29141 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29142
29143 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29144 exp2f() values.
29145
29146 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29147
29148 [BZ #22156]
29149 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29150
29151 2017-09-26 Florian Weimer <fweimer@redhat.com>
29152
29153 * resolv/Makefile (tests-internal): Fix typo in comment.
29154
29155 2017-09-26 Florian Weimer <fweimer@redhat.com>
29156
29157 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29158
29159 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29160
29161 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29162 Use an union instead of a max_align_t array for __space,
29163 so that __space is the same size on all platforms.
29164 * malloc/scratch_buffer_grow_preserve.c
29165 (__libc_scratch_buffer_grow_preserve): Likewise.
29166
29167 [BZ #22183]
29168 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29169 version to 2.
29170 * posix/Makefile (routines): Add glob-lstat-compat and
29171 glob64-lstat-compat.
29172 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29173 * posix/glob-lstat-compat.c: New file.
29174 * posix/glob64-lstat-compat.c: Likewise.
29175 * posix/tst-glob_lstat_compat.c: Likewise.
29176 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29177 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29178 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29179 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29180 Likewise.
29181 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29182 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29183 * posix/glob.c (glob_lstat): New function.
29184 (glob): Rename to __glob and add versioned symbol to 2.27.
29185 (glob_in_dir): Use glob_lstat.
29186 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29187 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29188 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29189 2.27.
29190 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29191 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29192 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29193 gl_lstat on glob call.
29194 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29195 and glob64 symbols.
29196 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29197 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29198 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29199 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29200 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29201 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29202 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29203 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29204 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29205 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29206 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29207 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29209 Likewise.
29210 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29212 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29213 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29214 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29215 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29216 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29217 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29218 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29219 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29220 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29221 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29222
29223 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29224
29225 * configure.ac (AS): Require binutils 2.25 or later.
29226 * configure: Regenerated.
29227
29228 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29229
29230 [BZ #22207]
29231 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29232 VM size.
29233
29234 2017-09-25 DJ Delorie <dj@redhat.com>
29235
29236 [BZ #22161]
29237 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29238 resetting timeout.
29239
29240 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29241
29242 * sysdeps/ieee754/dbl-64/sincos32.h
29243 [SINCCOS32_H]: Remove define.
29244 [SINCOS32_H]: Define.
29245
29246 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29247
29248 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29249 (exp2f): Likewise.
29250 * math/w_exp2f.c: New file.
29251 * math/w_expf.c: New file.
29252 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29253 * math/w_expf_compat.c (__expf_compat): Likewise.
29254 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29255 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29256 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29257 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29258 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29259 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29260 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29261 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29262 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29263 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29264 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29265 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29266 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29267 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29269 Likewise.
29270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29271 Likewise.
29272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29273 Likewise.
29274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29275 Likewise.
29276 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29277 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29278 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29279 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29280 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29281 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29282 Likewise.
29283 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29284 Likewise.
29285 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29286 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29287 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29288
29289 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29290
29291 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29292 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29293 (roundtoint, converttoint): Likewise.
29294 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29295 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29296 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29297 * sysdeps/ieee754/flt-32/math_config.h: New file.
29298 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29299 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29300 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29301 * sysdeps/i386/fpu/math_errf.c: New file.
29302 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29303 * sysdeps/ia64/fpu/math_errf.c: New file.
29304 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29305 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29306
29307 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29308
29309 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29310 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29311 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29312 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29313 to make sure that these symbols are defined.
29314 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29315 of <limits.h>
29316 (__need_NULL): Do not define.
29317 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29318 alignment.
29319 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29320 CMGROUP_MAX, cmsgcred): Do not define.
29321 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29322 NULL.
29323 * bits/socket.h: Likewise.
29324 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29325 __gettimeofday instead of gettimeofday.
29326 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29327 instead of settimeofday.
29328
29329 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29330
29331 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29332 (asinhf): Define using libm_alias_float.
29333 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29334 (atanf): Define using libm_alias_float.
29335 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29336 (cbrtf): Define using libm_alias_float.
29337 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29338 (ceilf): Define using libm_alias_float.
29339 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29340 <libm-alias-float.h>.
29341 (copysignf): Define using libm_alias_float.
29342 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29343 (cosf): Define using libm_alias_float.
29344 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29345 (erff): Define using libm_alias_float.
29346 (erfcf): Likewise.
29347 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29348 (expm1f): Define using libm_alias_float.
29349 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29350 (fabsf): Define using libm_alias_float.
29351 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29352 (floorf): Define using libm_alias_float.
29353 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29354 (frexpf): Define using libm_alias_float.
29355 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29356 libm_alias_float.
29357 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29358 <libm-alias-float.h>.
29359 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29360 libm_alias_float.
29361 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29362 <libm-alias-float.h>.
29363 (getpayloadf): Define using libm_alias_float.
29364 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29365 <libm-alias-float.h>.
29366 (llrintf): Define using libm_alias_float.
29367 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29368 <libm-alias-float.h>.
29369 (llroundf): Define using libm_alias_float.
29370 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29371 (logbf): Define using libm_alias_float.
29372 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29373 (lrintf): Define using libm_alias_float.
29374 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29375 (lroundf): Define using libm_alias_float.
29376 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29377 (modff): Define using libm_alias_float.
29378 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29379 <libm-alias-float.h>.
29380 (nearbyintf): Define using libm_alias_float.
29381 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29382 <libm-alias-float.h>.
29383 (nextafterf): Define using libm_alias_float.
29384 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29385 <libm-alias-float.h>.
29386 (nextupf): Define using libm_alias_float.
29387 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29388 <libm-alias-float.h>.
29389 (remquof): Define using libm_alias_float.
29390 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29391 (rintf): Define using libm_alias_float.
29392 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29393 <libm-alias-float.h>.
29394 (roundevenf): Define using libm_alias_float.
29395 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29396 (roundf): Define using libm_alias_float.
29397 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29398 using libm_alias_float.
29399 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29400 <libm-alias-float.h>.
29401 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29402 Define using libm_alias_float.
29403 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29404 <libm-alias-float.h>.
29405 (sincosf): Define using libm_alias_float.
29406 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29407 (sinf): Define using libm_alias_float.
29408 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29409 (tanf): Define using libm_alias_float.
29410 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29411 (tanhf): Define using libm_alias_float.
29412 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29413 <libm-alias-float.h>.
29414 (totalorderf): Define using libm_alias_float.
29415 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29416 <libm-alias-float.h>.
29417 (totalordermagf): Define using libm_alias_float.
29418 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29419 (truncf): Define using libm_alias_float.
29420 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29421 libm_alias_float.
29422 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29423 libm_alias_float.
29424
29425 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29426
29427 [BZ #22146]
29428 math/math.h: Let fpclassify use the builtin in C++ mode, even
29429 when optimazing for size.
29430
29431 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29432
29433 * csu/Makefile (generated): Do not add version-info.h.
29434 (before-compile): Likewise.
29435 (all-Banner-files): Remove variable.
29436 ($(objpfx)version-info.h): Remove rule.
29437 * csu/version.c (banner): Do not include "version-info.h".
29438 * libidn/Banner: Remove.
29439 * manual/contrib.texi (Simon Josefsson): New entry.
29440
29441 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29442
29443 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29444 Remove conditionals on LDBL_MANT_DIG.
29445 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29446 (__ieee754_lgammal_r): Likewise.
29447
29448 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29449
29450 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29451 _Float128 and L().
29452 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29453 _Float128 and L(). Replace _Float128 with long double and L(x)
29454 with xL, throughout the file.
29455 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29456 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29457 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29458 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29459
29460 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29461
29462 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29463 sysdeps/ieee754/ldbl-128ibm.
29464 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29465 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29466 of including it. Keep _Float128 and L() intact. These will be
29467 reviewed by a separate patch.
29468 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29469 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29470 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29471 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29472
29473 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29474
29475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29476 (__finitef128): Define to __redirect___finitef128.
29477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29478 (__isinff128): Define to __redirect___isinff128.
29479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29480 (__isnanf128): Define to __redirect___isnanf128.
29481
29482 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29483
29484 * sysdeps/powerpc/powerpc64le/Makefile
29485 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29486 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29487
29488 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29489 Carlos O'Donell <carlos@redhat.com>
29490
29491 [BZ #22180]
29492 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29493 * stdlib/test-dlclose-exit-race.c: New file.
29494 * stdlib/test-dlclose-exit-race-helper.c: New file.
29495 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29496
29497 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29498
29499 * crypt/Banner: Remove file.
29500 * nptl/Banner: Likewise.
29501 * resolv/Banner: Likewise.
29502 * soft-fp/Banner: Likewise.
29503 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29504 ($(objpfx)version.d): Remove dependency on banner.h.
29505 ($(objpfx)version.os): Likewise.
29506 * nptl/version.c (banner): Do not include banner.h.
29507 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29508 Jelinek and BIND code.
29509
29510 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29511 Carlos O'Donell <carlos@redhat.com>
29512
29513 * support/xdlfcn.h: New file.
29514 * support/xdlfcn.c: New file.
29515 * support/Makefile (libsupport-routines): Add xdlfcn.
29516 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29517
29518 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29519
29520 [BZ #20142]
29521 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29522 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29523 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29524 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29525 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29526 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29527 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29528 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29529
29530 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29531 Ricky Zhou <rickyz@google.com>
29532 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29533
29534 [BZ #14333]
29535 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29536 Remove atomics.
29537 (__new_exitfn): Fail registration when we finished at_exit processing.
29538 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29539 * stdlib/on_exit.c (__on_exit): Likewise.
29540 * stdlib/exit.c (__exit_funcs_done): New variable.
29541 (__run_exit_handlers): Use __exit_funcs_lock.
29542 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29543 declarations.
29544 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29545 (test-cxa_atexit-race, test-on_exit-race): New tests.
29546 * stdlib/test-atexit-race-common.c: New file.
29547 * stdlib/test-atexit-race.c: New file.
29548 * stdlib/test-at_quick_exit-race.c: New file.
29549 * stdlib/test-cxa_atexit-race.c: New file.
29550 * stdlib/test-on_exit-race.c: New file.
29551
29552 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29553
29554 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29555 * benchtests/exp2f-inputs: Copy of expf-inputs.
29556 * benchtests/log2f-inputs: Copy of logf-inputs.
29557
29558 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29559
29560 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29561 Explicitly take address of first element of array arguments in
29562 call to INLINE_SYSCALL.
29563
29564 2017-09-19 Andreas Schwab <schwab@suse.de>
29565
29566 [BZ #22134]
29567 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29568 execveat first.
29569 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29570 unimplemented.
29571 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29572 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29573 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29574 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29575 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29576 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29577 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29578 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29579 * posix/Makefile (tests): Add tst-fexecve.
29580 * posix/tst-fexecve.c: New file.
29581
29582 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29583
29584 * benchtests/Makefile: Add logf benchmark.
29585 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29586
29587 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29588
29589 * benchtests/Makefile: Add expf benchmark.
29590 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29591
29592 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29593
29594 * csu/Makefile: Add -funwind-tables to libc-start.c.
29595 * debug/Makefile: Add -funwind-tables to backtrace.c.
29596 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29597 * sysdeps/arm/Makefile: Likewise.
29598 * sysdeps/i386/Makefile: Likewise.
29599 * sysdeps/m68k/Makefile: Likewise.
29600 * sysdeps/mips/Makefile: Likewise.
29601 * sysdeps/nios2/Makefile: Likewise.
29602 * sysdeps/sh/Makefile: Likewise.
29603 * sysdeps/sparc/Makefile: Likewise.
29604
29605 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29606
29607 * benchtests/Makefile (bench-math): Add trunc and truncf.
29608 (CFLAGS-bench-trunc.c): New variable.
29609 (CFLAGS-bench-truncf.c): Likewise.
29610 * benchtests/trunc-inputs: New file.
29611 * benchtests/truncf-inputs: Likewise.
29612
29613 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29614
29615 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29616
29617 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29618
29619 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29620 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29621 redefine.
29622 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29623 (exp10l): Define as weak alias.
29624 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29625 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29626 and redefine.
29627 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29628 (remainderl): Define as weak alias.
29629
29630 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29631 (fmal): Define using libm_alias_ldouble.
29632 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29633 (acoshl): Define using libm_alias_ldouble.
29634 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29635 (acosl): Define using libm_alias_ldouble.
29636 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29637 (asinl): Define using libm_alias_ldouble.
29638 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29639 (atan2l): Define using libm_alias_ldouble.
29640 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29641 (atanhl): Define using libm_alias_ldouble.
29642 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29643 (coshl): Define using libm_alias_ldouble.
29644 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29645 (exp10l): Define using libm_alias_ldouble.
29646 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29647 (exp2l): Define using libm_alias_ldouble.
29648 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29649 (expl): Define using libm_alias_ldouble.
29650 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29651 (fmodl): Define using libm_alias_ldouble.
29652 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29653 (hypotl): Define using libm_alias_ldouble.
29654 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29655 (j0l): Define using libm_alias_ldouble.
29656 (y0l): Likewise.
29657 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29658 (j1l): Define using libm_alias_ldouble.
29659 (y1l): Likewise.
29660 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29661 (jnl): Define using libm_alias_ldouble.
29662 (ynl): Likewise.
29663 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29664 (log10l): Define using libm_alias_ldouble.
29665 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29666 (log2l): Define using libm_alias_ldouble.
29667 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29668 (logl): Define using libm_alias_ldouble.
29669 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29670 (powl): Define using libm_alias_ldouble.
29671 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29672 (remainderl): Define using libm_alias_ldouble.
29673 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29674 (sinhl): Define using libm_alias_ldouble.
29675 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29676 (sqrtl): Define using libm_alias_ldouble.
29677 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29678 (tgammal): Define using libm_alias_ldouble.
29679 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29680 (exp10l): Do not use long_double_symbol here.
29681 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29682 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29683 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29684 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29685 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29686 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29687 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29688 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29689 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29690 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29691 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29692 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29693 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29694 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29695 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29696 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29697 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29698 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29699 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29700 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29701 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29702 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29703
29704 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29705
29706 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29707 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29708
29709 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29710
29711 * io/read.c (read): Add libc_hidden_weak.
29712 * sysdeps/mach/hurd/read.c (read): Likewise.
29713 * io/write.c (write): Likewise.
29714 * sysdeps/mach/hurd/write.c (write): Likewise.
29715 * io/pread64.c (__pread64): Likewise.
29716 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29717 * posix/pread64.c (__pread64): Add libc_hidden_def.
29718
29719 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29720
29721 * benchtests/scripts/compare_strings.py: New option -g.
29722 (draw_graph): Print a message that a graph is being generated.
29723 (process_results): Generate graph only if -g is passed.
29724 (main): Process option -g.
29725
29726 * benchtests/scripts/compare_strings.py (process_results):
29727 Better spacing for output.
29728
29729 * benchtests/scripts/compare_strings.py: Use argparse.
29730 * benchtests/README: Document existence of compare_strings.py.
29731
29732 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29733
29734 * math/s_fma.c: Include <libm-alias-double.h>.
29735 (fma): Define using libm_alias_double.
29736 * math/s_nextafter.c: Include <libm-alias-double.h>.
29737 (nextafter): Define using libm_alias_double.
29738 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29739 (acos): Define using libm_alias_double.
29740 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29741 (aocsh): Define using libm_alias_double.
29742 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29743 (asin): Define using libm_alias_double.
29744 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29745 (atan2): Define using libm_alias_double.
29746 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29747 (atanh): Define using libm_alias_double.
29748 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29749 (cosh): Define using libm_alias_double.
29750 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29751 (exp10): Define using libm_alias_double.
29752 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29753 (exp2): Define using libm_alias_double.
29754 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29755 (exp): Define using libm_alias_double.
29756 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29757 (fmod): Define using libm_alias_double.
29758 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29759 (hypot): Define using libm_alias_double.
29760 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29761 (j0): Define using libm_alias_double.
29762 (y0): Likewise.
29763 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29764 (j1): Define using libm_alias_double.
29765 (y1): Likewise.
29766 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29767 (jn): Define using libm_alias_double.
29768 (yn): Likewise.
29769 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29770 (log10): Define using libm_alias_double.
29771 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29772 (log2): Define using libm_alias_double.
29773 * math/w_log_compat.c: Include <libm-alias-double.h>.
29774 (log): Define using libm_alias_double.
29775 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29776 (pow): Define using libm_alias_double.
29777 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29778 (remainder): Define using libm_alias_double.
29779 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29780 (sinh): Define using libm_alias_double.
29781 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29782 (sqrt): Define using libm_alias_double.
29783 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29784 (tgamma): Define using libm_alias_double.
29785 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29786 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29787 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29788 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29789 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29790 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29791 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29792 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29793 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29794 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29795 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29796 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29797 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29798 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29799 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29800 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29801 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29802 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29803 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29804 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29805 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29806 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29807 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29808 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29809 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29810
29811 * math/e_acoshl.c: Remove.
29812 * math/e_acosl.c: Likewise.
29813 * math/e_asinl.c: Likewise.
29814 * math/e_atan2l.c: Likewise.
29815 * math/e_atanhl.c: Likewise.
29816 * math/e_coshl.c: Likewise.
29817 * math/e_expl.c: Likewise.
29818 * math/e_fmodl.c: Likewise.
29819 * math/e_gammal_r.c: Likewise.
29820 * math/e_hypotl.c: Likewise.
29821 * math/e_j0l.c: Likewise.
29822 * math/e_j1l.c: Likewise.
29823 * math/e_jnl.c: Likewise.
29824 * math/e_lgammal_r.c: Likewise.
29825 * math/e_log10l.c: Likewise.
29826 * math/e_log2l.c: Likewise.
29827 * math/e_logl.c: Likewise.
29828 * math/e_powl.c: Likewise.
29829 * math/e_rem_pio2l.c: Likewise.
29830 * math/e_sinhl.c: Likewise.
29831 * math/e_sqrtf128.c: Likewise.
29832 * math/e_sqrtl.c: Likewise.
29833 * math/k_cosl.c: Likewise.
29834 * math/k_sinl.c: Likewise.
29835 * math/k_tanl.c: Likewise.
29836 * math/s_asinhl.c: Likewise.
29837 * math/s_atanl.c: Likewise.
29838 * math/s_cbrtl.c: Likewise.
29839 * math/s_erfl.c: Likewise.
29840 * math/s_expm1l.c: Likewise.
29841 * math/s_log1pl.c: Likewise.
29842 * math/s_tanhl.c: Likewise.
29843
29844 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29845
29846 [BZ #21745]
29847 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29848 [$(subdir) = math] (sysdep_calls): New variable. Has the
29849 previous contents of sysdep_routines, but re-sorted..
29850 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29851 sysdep_calls.
29852 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29853 defined in sysdep_calls and replace by the respective m_* names.
29854 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29855 (compat_symbol): Undefine to avoid duplicated compat symbols in
29856 libc.
29857
29858 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29859
29860 * math/s_fmaf.c: Include <libm-alias-float.h>.
29861 (fmaf): Define using libm_alias_float.
29862 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29863 (acosf): Define using libm_alias_float.
29864 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29865 (acoshf): Define using libm_alias_float.
29866 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29867 (asinf): Define using libm_alias_float.
29868 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29869 (atan2f): Define using libm_alias_float.
29870 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29871 (atanhf): Define using libm_alias_float.
29872 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29873 (coshf): Define using libm_alias_float.
29874 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29875 (exp10f): Define using libm_alias_float.
29876 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29877 (fmodf): Define using libm_alias_float.
29878 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29879 (hypotf): Define using libm_alias_float.
29880 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29881 (j0f): Define using libm_alias_float.
29882 (y0f): Likewise.
29883 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29884 (j1f): Define using libm_alias_float.
29885 (y1f): Likewise.
29886 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29887 (jnf): Define using libm_alias_float.
29888 (ynf): Likewise.
29889 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29890 (log10f): Define using libm_alias_float.
29891 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29892 (log2f): Define using libm_alias_float.
29893 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29894 (logf): Define using libm_alias_float.
29895 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29896 (powf): Define using libm_alias_float.
29897 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29898 (remainderf): Define using libm_alias_float.
29899 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29900 (sinhf): Define using libm_alias_float.
29901 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29902 (sqrtf): Define using libm_alias_float.
29903 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29904 (tgammaf): Define using libm_alias_float.
29905
29906 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29907
29908 * include/math.h (roundeven): Change hidden_proto call to
29909 __roundeven.
29910 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29911 alias.
29912 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29913 (y0): Rename to __y0 and define as weak alias.
29914 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29915 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29916 alias.
29917 (y0f): Rename to __y0f and define as weak alias.
29918 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29919 alias.
29920 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29921 (y1): Rename to __y1 and define as weak alias.
29922 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29923 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29924 alias.
29925 (y1f): Rename to __y1f and define as weak alias.
29926 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29927 alias.
29928 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29929 (yn): Rename to __yn and define as weak alias.
29930 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29931 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29932 alias.
29933 (ynf): Rename to __ynf and define as weak alias.
29934 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29935 (fromfp): Define as weak alias.
29936 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29937 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29938 (fromfpx): Define as weak alias.
29939 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29940 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29941 __getpayload and define as weak alias.
29942 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29943 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29944 __roundeven and define as weak alias.
29945 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29946 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29947 __setpayload.
29948 (setpayload): Define as weak alias.
29949 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29950 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29951 __setpayloadsig.
29952 (setpayloadsig): Define as weak alias.
29953 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29954 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29955 __totalorder and define as weak alias.
29956 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29957 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29958 to __totalordermag and define as weak alias.
29959 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29960 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29961 (ufromfp): Define as weak alias.
29962 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29963 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29964 __ufromfpx.
29965 (ufromfpx): Define as weak alias.
29966 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29967 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29968 Rename to __getpayload and define as weak alias.
29969 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29970 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29971 Rename to __roundeven and define as weak alias.
29972 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29973 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29974 Rename to __totalorder and define as weak alias.
29975 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29976 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29977 (totalordermag): Rename to __totalordermag and define as weak
29978 alias.
29979 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29980 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29981 macro.
29982 (__roundevenl): Likewise.
29983 (__totalorderl): Likewise.
29984 (__totalordermagl): Likewise
29985 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29986 __fromfpf128.
29987 (fromfpf128): Define as weak alias.
29988 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29989 __fromfpxf128.
29990 (fromfpxf128): Define as weak alias.
29991 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29992 __setpayloadf128.
29993 (setpayloadf128): Define as weak alias.
29994 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29995 __setpayloadsigf128.
29996 (setpayloadsigf128): Define as weak alias.
29997 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29998 __ufromfpf128.
29999 (ufromfpf128): Define as weak alias.
30000 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30001 __ufromfpxf128.
30002 (ufromfpxf128): Define as weak alias.
30003 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30004 (fromfpf): Define as weak alias.
30005 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30006 __fromfpxf.
30007 (fromfpxf): Define as weak alias.
30008 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30009 __getpayloadf and define as weak alias.
30010 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30011 __roundevenf and define as weak alias.
30012 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30013 __setpayloadf.
30014 (setpayloadf): Define as weak alias.
30015 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30016 __setpayloadsigf.
30017 (setpayloadsigf): Define as weak alias.
30018 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30019 __totalorderf and define as weak alias.
30020 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30021 Rename to __totalordermagf and define as weak alias.
30022 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30023 __ufromfpf.
30024 (ufromfpf): Define as weak alias.
30025 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30026 __ufromfpxf.
30027 (ufromfpxf): Define as weak alias.
30028 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30029 __fromfpl.
30030 (fromfpl): Define as weak alias.
30031 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30032 __fromfpxl.
30033 (fromfpxl): Define as weak alias.
30034 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30035 to __getpayloadl and define as weak alias.
30036 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30037 __roundevenl and define as weak alias.
30038 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30039 __setpayloadl.
30040 (setpayloadl): Define as weak alias.
30041 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30042 __setpayloadsigl.
30043 (setpayloadsigl): Define as weak alias.
30044 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30045 to __totalorderl and define as weak alias.
30046 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30047 Rename to __totalordermagl and define as weak alias.
30048 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30049 __ufromfpl.
30050 (ufromfpl): Define as weak alias.
30051 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30052 __ufromfpxl.
30053 (ufromfpxl): Define as weak alias.
30054 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30055 __fromfpl.
30056 (fromfpl): Define as weak alias.
30057 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30058 __fromfpxl.
30059 (fromfpxl): Define as weak alias.
30060 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30061 Rename to __getpayloadl and define as weak alias.
30062 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30063 to __roundevenl and define as weak alias. Call __roundeven
30064 instead of roundeven.
30065 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30066 __setpayloadl.
30067 (setpayloadl): Define as weak alias.
30068 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30069 __setpayloadsigl.
30070 (setpayloadsigl): Define as weak alias.
30071 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30072 Rename to __totalorderl and define as weak alias.
30073 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30074 Rename to __totalordermagl and define as weak alias.
30075 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30076 __ufromfpl.
30077 (ufromfpl): Define as weak alias.
30078 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30079 __ufromfpxl.
30080 (ufromfpxl): Define as weak alias.
30081 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30082 __fromfpl.
30083 (fromfpl): Define as weak alias.
30084 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30085 __fromfpxl.
30086 (fromfpxl): Define as weak alias.
30087 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30088 __getpayloadl and define as weak alias.
30089 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30090 __roundevenl and define as weak alias.
30091 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30092 __setpayloadl.
30093 (setpayloadl): Define as weak alias.
30094 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30095 __setpayloadsigl.
30096 (setpayloadsigl): Define as weak alias.
30097 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30098 __totalorderl and define as weak alias.
30099 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30100 Rename to __totalordermagl and define as weak alias.
30101 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30102 __ufromfpl.
30103 (ufromfpl): Define as weak alias.
30104 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30105 __ufromfpxl.
30106 (ufromfpxl): Define as weak alias.
30107
30108 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30109
30110 * benchtests/bench-string.h (realloc_bufs): New function.
30111 (test_init): Call it.
30112 * benchtests/bench-memset-large.c (do_test): Likewise.
30113 * benchtests/bench-memset.c (do_test): Likewise.
30114
30115 * benchtests/bench-memset-large.c: Print output in JSON
30116 format.
30117 * benchtests/bench-memset.c: Likewise.
30118
30119 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30120
30121 [BZ #21084]
30122 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30123 * iconvdata/Makefile: Add IBM858.
30124 * iconvdata/gconv-modules: Likewise.
30125 * iconvdata/tst-tables.sh: Likewise.
30126 * iconvdata/ibm858.c: New file.
30127 * localedata/charmaps/IBM858: Likewise.
30128
30129 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30130
30131 [BZ #22023]
30132 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30133 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30134
30135 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30136
30137 [BZ #22112]
30138 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30139 and add tel_int_fmt.
30140
30141 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30142
30143 * sysdeps/generic/libm-alias-float128.h: New file.
30144 * sysdeps/generic/math-type-macros-float128.h: Include
30145 <libm-alias-float128.h>.
30146 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30147
30148 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30149
30150 * sysdeps/generic/libm-alias-ldouble.h: New file.
30151 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30152 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30153 * sysdeps/generic/math-type-macros-ldouble.h: Include
30154 <libm-alias-ldouble.h>.
30155 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30156 libm_alias_ldouble.
30157
30158 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30159
30160 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30161 * math/w_exp_compat.c: ... here.
30162 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30163 * math/w_expf_compat.c: ... here.
30164 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30165 * math/w_expl_compat.c: ... here.
30166 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30167 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30168 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30169 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30170
30171 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30172
30173 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30174 redefine.
30175 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30176 macro.
30177 (ldexpl): Only define as compat symbol for libc, not libm.
30178 (scalbnl): Define as compat symbol for libc here.
30179 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30180 define for [IS_IN (libc)].
30181 (__ldexpl_2): Remove alias.
30182 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30183 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30184 name in long_double_symbol call.
30185 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30186 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30187 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30188 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30189 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30190 Remove macro.
30191 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30192 Define as compat symbol.
30193
30194 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30195
30196 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30197 * sysdeps/unix/sysv/linux/alpha/Makefile
30198 [$(subdir) = csu] (sysdep_routines): Remove rule.
30199
30200 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30201
30202 * sysdeps/generic/libm-alias-double.h: New file.
30203 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30204 * sysdeps/generic/math-type-macros-double.h: Include
30205 <libm-alias-double.h>.
30206 [declare_mgen_alias] (declare_mgen_alias): Define to use
30207 libm_alias_double.
30208 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30209 (M_LIBM_NEED_COMPAT): Remove macro.
30210 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30211 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30212 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30213 code.
30214 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30215 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30216 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30217 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30218 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30219 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30220 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30221 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30222 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30223 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30224 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30225 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30226 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30227 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30228 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30229 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30230 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30231 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30232 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30233 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30234 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30235 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30236 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30237 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30238 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30239 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30240 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30241 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30242 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30243 macro.
30244 (declare_mgen_alias): New macro.
30245 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30246 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30247 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30248 (M_LIBM_NEED_COMPAT): Remove macro.
30249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30250 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30251 <first-versions.h>.
30252 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30253 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30254
30255 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30256
30257 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30258 (declare_mgen_alias_2): Remove.
30259 * sysdeps/generic/math-type-macros-double.h
30260 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30261 Likewise.
30262 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30263 alias.
30264 (ldexp): Define with declare_mgen_alias.
30265 (scalbn): Likewise.
30266
30267 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30268
30269 * grp/initgroups.c: Include config.h.
30270 (DEFAULT_CONFIG): New macro.
30271 (internal_getgrouplist): Use DEFAULT_CONFIG.
30272 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30273 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30274 (DEFAULT_DEFCONFIG): New macro.
30275 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30276 * nss/grp-lookup.c: Include config.h
30277 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30278 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30279 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30280 * manual/nss.texi: Update default values section.
30281
30282 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30283
30284 [BZ #21967]
30285 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30286 New.
30287 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30288 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30289 Handle MathVec_Prefer_No_AVX512.
30290 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30291 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30292 is set.
30293
30294 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30295
30296 * posix/sched_primax.c (__sched_get_priority_max): Add
30297 libc_hidden_def.
30298 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30299 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30300 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30301 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30302 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30303 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30304 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30305 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30306 Add aliases.
30307
30308 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30309
30310 * sysdeps/generic/libm-alias-float.h: New file.
30311 * sysdeps/generic/math-type-macros-float.h: Include
30312 <libm-alias-float.h>.
30313 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30314
30315 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30316
30317 [BZ #22093]
30318 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30319 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30320 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30321 (HWCAP_IMPORTANT): Likewise.
30322 (HWCAP_X86_64): New enum.
30323 (HWCAP_X86_AVX512_1): Updated.
30324 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30325 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30326 (modules-names): Add x86_64/tst-x86_64mod-1.
30327 (LDFLAGS-tst-x86_64mod-1.so): New.
30328 ($(objpfx)tst-x86_64-1): Likewise.
30329 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30330 (tst-x86_64-1-clean): Likewise.
30331 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30332 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30333
30334 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30335
30336 * po/sv.po: Update translations.
30337 * po/fr.po: Likewise.
30338
30339 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30340
30341 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30342 seconds.
30343 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30344 seconds.
30345 * elf/rtld-Rules: Fix $(error) use.
30346
30347 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30348
30349 [BZ #14925]
30350 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30351 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30352 * localedata/locales/bn_BD: “Bengali” was still used in some
30353 comments. Change it to “Bangla”.
30354
30355 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30356
30357 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30358
30359 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30360
30361 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30362 thunderx2t99p1 to list of cpu names.
30363 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30364 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30365
30366 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30367
30368 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30369 Use strcmp instead of tunable_is_name.
30370
30371 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30372
30373 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30374 (F_GET_RW_HINT): New macro.
30375 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30376 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30377 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30378 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30379 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30380 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30381 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30382 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30383 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30384
30385 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30386 (F_ADD_SEALS): New macro.
30387 [__USE_GNU] (F_GET_SEALS): Likewise.
30388 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30389 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30390 [__USE_GNU] (F_SEAL_GROW): Likewise.
30391 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30392
30393 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30394
30395 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30396 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30397 * posix/glob_internal.h (__glob_pattern_type):
30398 * posix/glob.c (glob):
30399 * posix/glob_pattern_p.c (__glob_pattern_p):
30400 Use them.
30401
30402 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30403 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30404 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30405 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30406 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30408 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30409 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30410 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30411 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30412 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30413 * sysdeps/wordsize-64/glob.c: Likewise.
30414 * sysdeps/wordsize-64/glob64.c: Likewise.
30415 * sysdeps/wordsize-64/globfree.c: Likewise.
30416 * sysdeps/wordsize-64/globfree64.c: Likewise.
30417 * sysdeps/unix/sysv/linux/glob.c: New file.
30418 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30419 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30420 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30421 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30422 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30423 adds !GLOB_NO_OLD_VERSION as an extra condition.
30424 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30425 using relative path instead of absolute one.
30426 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30427 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30428 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30429 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30430 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30431 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30432
30433 [BZ #1062]
30434 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30435 (glob): Use the same scratch buffer for both getlogin_r and
30436 getpwnam_r. Don’t require preallocation of the login name. This
30437 simplifies storage allocation, and corrects the handling of
30438 long login names.
30439
30440 [BZ #1062]
30441 * posix/glob.c (glob): Port recent patches to platforms
30442 lacking getpwnam_r.
30443 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30444 returns an error number rather than setting errno.
30445
30446 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30447 instead of GCC extension.
30448 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30449 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30450 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30451
30452 [BZ #866]
30453 [BZ #1062]
30454 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30455 * posix/bug-glob1.c: Remove file.
30456 * posix/tst-glob_symlinks.c: New file.
30457 * posix/glob.c (__lstat64): New macro.
30458 (is_dir): New function.
30459 (glob, glob_in_dir): Match symlinks even if they are dangling.
30460 (link_stat, link_exists_p): Remove. All uses removed.
30461
30462 [BZ #1062]
30463 [BZ #19971]
30464 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30465 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30466 All uses removed.
30467
30468 [BZ #1062]
30469 CVE-2017-15671
30470 * posix/Makefile (routines): Add globfree, globfree64, and
30471 glob_pattern_p.
30472 * posix/flexmember.h: New file.
30473 * posix/glob_internal.h: Likewise.
30474 * posix/glob_pattern_p.c: Likewise.
30475 * posix/globfree.c: Likewise.
30476 * posix/globfree64.c: Likewise.
30477 * sysdeps/gnu/globfree64.c: Likewise.
30478 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30479 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30480 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30481 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30482 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30483 * sysdeps/wordsize-64/globfree.c: Likewise.
30484 * sysdeps/wordsize-64/globfree64.c: Likewise.
30485 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30486 [NDEBUG): Remove comments.
30487 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30488 (dirent_type): New type. Use uint_fast8_t not
30489 uint8_t, as C99 does not require uint8_t.
30490 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30491 (struct readdir_result): Use dirent_type. Do not define skip_entry
30492 unless it is needed; this saves a byte on platforms lacking d_ino.
30493 (readdir_result_type, readdir_result_skip_entry):
30494 New functions, replacing ...
30495 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30496 these functions, which were removed. This makes the callers
30497 easier to read. All callers changed.
30498 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30499 (size_add_wrapv, glob_use_alloca): New static functions.
30500 (glob, glob_in_dir): Check for size_t overflow in several places,
30501 and fix some size_t checks that were not quite right.
30502 Remove old code using SHELL since Bash no longer
30503 uses this.
30504 (glob, prefix_array): Separate MS code better.
30505 (glob_in_dir): Remove old Amiga and VMS code.
30506 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30507 separate files.
30508 (glob_in_dir): Do not rely on undefined behavior in accessing
30509 struct members beyond their bounds. Use a flexible array member
30510 instead
30511 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30512 0/1. Caller changed.
30513 (glob): Fix memory leaks.
30514 * posix/glob64 (globfree64): Move to separate file.
30515 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30516 (globfree64): Remove hidden alias.
30517 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30518 oldglob.
30519 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30520 separate file.
30521 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30522 define.
30523 Move compat code to separate file.
30524 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30525 separate file.
30526
30527 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30528
30529 * resolv/tst-resolv-qtypes.c (domain): Changed to
30530 "const char domain[] =".
30531
30532 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30533
30534 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30535 version to 3.1.6.
30536
30537 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30538 (TCP_MD5SIG_EXT): Likewise.
30539 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30540 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30541 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30542
30543 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30544
30545 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30546
30547 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30548
30549 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30550
30551 [BZ #22100]
30552 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30553
30554 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30555
30556 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30557 before assuming that the file is empty. Avoid testing buffer content
30558 when nread == 0.
30559
30560 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30561
30562 [BZ #18858]
30563 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30564 Remove define.
30565 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30566 Likewise.
30567 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30568 Likewise.
30569 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30570 Likewise.
30571 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30572 Likewise.
30573 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30574 Likewise.
30575 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30576 Likewise.
30577
30578 2017-09-06 Florian Weimer <fweimer@redhat.com>
30579
30580 * malloc/dynarray_emplace_enlarge.c
30581 (__libc_dynarray_emplace_enlarge): Add missing else.
30582
30583 2017-09-06 Florian Weimer <fweimer@redhat.com>
30584
30585 [BZ #22096]
30586 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30587 case of failure to obtain the global conf object.
30588
30589 2017-09-06 Florian Weimer <fweimer@redhat.com>
30590
30591 [BZ #22095]
30592 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30593 dynarray allocation failure.
30594
30595 2017-09-06 Florian Weimer <fweimer@redhat.com>
30596
30597 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30598 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30599 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30600 New functions.
30601 (response): Call them. Add 'p', '6' flag processing.
30602 (test_reverse): New function.
30603 (test_get2_any): Call it.
30604 (test_no_inet6): Add 'p' test.
30605 (test_inet6): Likewise.
30606
30607 2017-09-06 Florian Weimer <fweimer@redhat.com>
30608
30609 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30610 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30611 the QNAME.
30612 (test_gai): Adjust query names. Add additional tests.
30613 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30614 test_get2. Adjust query names. Add additional tests.
30615 (test_no_inet6): New function, extracted from threadfunc.
30616 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30617 Add additional tests.
30618
30619 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30620
30621 [BZ #22070]
30622 * localedata/unicode-gen/utf8_gen.py: Set the width for
30623 characters with Prepended_Concatenation_Mark property to 1
30624 * localedata/charmaps/UTF-8: Updated using the improved script.
30625
30626 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30627
30628 [BZ #21750]
30629 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30630 use the range notation for all ranges of neighbouring characters
30631 with the same width.
30632
30633 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30634
30635 * sysdeps/generic/math-type-macros-double.h: Include
30636 <math-svid-compat.h>.
30637 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30638 * sysdeps/generic/math-type-macros-float.h: Include
30639 <math-svid-compat.h>.
30640 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30641 * sysdeps/generic/math-type-macros-ldouble.h: Include
30642 <math-svid-compat.h>.
30643 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30644 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30645 condition.
30646 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30647 * math/w_acosf_compat.c: Likewise.
30648 * math/w_acosh_compat.c: Likewise.
30649 * math/w_acoshf_compat.c: Likewise.
30650 * math/w_acoshl_compat.c: Likewise.
30651 * math/w_acosl_compat.c: Likewise.
30652 * math/w_asin_compat.c: Likewise.
30653 * math/w_asinf_compat.c: Likewise.
30654 * math/w_asinl_compat.c: Likewise.
30655 * math/w_atan2_compat.c: Likewise.
30656 * math/w_atan2f_compat.c: Likewise.
30657 * math/w_atan2l_compat.c: Likewise.
30658 * math/w_atanh_compat.c: Likewise.
30659 * math/w_atanhf_compat.c: Likewise.
30660 * math/w_atanhl_compat.c: Likewise.
30661 * math/w_cosh_compat.c: Likewise.
30662 * math/w_coshf_compat.c: Likewise.
30663 * math/w_coshl_compat.c: Likewise.
30664 * math/w_exp10_compat.c: Likewise.
30665 * math/w_exp10f_compat.c: Likewise.
30666 * math/w_exp10l_compat.c: Likewise.
30667 * math/w_exp2_compat.c: Likewise.
30668 * math/w_exp2f_compat.c: Likewise.
30669 * math/w_exp2l_compat.c: Likewise.
30670 * math/w_fmod_compat.c: Likewise.
30671 * math/w_fmodf_compat.c: Likewise.
30672 * math/w_fmodl_compat.c: Likewise.
30673 * math/w_hypot_compat.c: Likewise.
30674 * math/w_hypotf_compat.c: Likewise.
30675 * math/w_hypotl_compat.c: Likewise.
30676 * math/w_j0_compat.c: Likewise.
30677 * math/w_j0f_compat.c: Likewise.
30678 * math/w_j0l_compat.c: Likewise.
30679 * math/w_j1_compat.c: Likewise.
30680 * math/w_j1f_compat.c: Likewise.
30681 * math/w_j1l_compat.c: Likewise.
30682 * math/w_jn_compat.c: Likewise.
30683 * math/w_jnf_compat.c: Likewise.
30684 * math/w_jnl_compat.c: Likewise.
30685 * math/w_lgamma_r_compat.c: Likewise.
30686 * math/w_lgammaf_r_compat.c: Likewise.
30687 * math/w_lgammal_r_compat.c: Likewise.
30688 * math/w_log10_compat.c: Likewise.
30689 * math/w_log10f_compat.c: Likewise.
30690 * math/w_log10l_compat.c: Likewise.
30691 * math/w_log2_compat.c: Likewise.
30692 * math/w_log2f_compat.c: Likewise.
30693 * math/w_log2l_compat.c: Likewise.
30694 * math/w_log_compat.c: Likewise.
30695 * math/w_logf_compat.c: Likewise.
30696 * math/w_logl_compat.c: Likewise.
30697 * math/w_pow_compat.c: Likewise.
30698 * math/w_powf_compat.c: Likewise.
30699 * math/w_powl_compat.c: Likewise.
30700 * math/w_remainder_compat.c: Likewise.
30701 * math/w_remainderf_compat.c: Likewise.
30702 * math/w_remainderl_compat.c: Likewise.
30703 * math/w_sinh_compat.c: Likewise.
30704 * math/w_sinhf_compat.c: Likewise.
30705 * math/w_sinhl_compat.c: Likewise.
30706 * math/w_sqrt_compat.c: Likewise.
30707 * math/w_sqrtf_compat.c: Likewise.
30708 * math/w_sqrtl_compat.c: Likewise.
30709 * math/w_tgamma_compat.c: Likewise.
30710 * math/w_tgammaf_compat.c: Likewise.
30711 * math/w_tgammal_compat.c: Likewise.
30712 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30713 [LIBM_SVID_COMPAT].
30714 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30715 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30716 [LIBM_SVID_COMPAT].
30717 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30718 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30719 [LIBM_SVID_COMPAT].
30720 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30721 * sysdeps/i386/fpu/w_sqrt.c: New file.
30722 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30723 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30724 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30725 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30726 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30727 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30728 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30729 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30730 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30731 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30732 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30733 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30734 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30735 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30736 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30737 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30738 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30739 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30740 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30741 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30742 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30743 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30744 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30745 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30746 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30747 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30748 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30749 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30750 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30751 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30752 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30753 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30754 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30755 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30756 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30757 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30758 * sysdeps/ia64/fpu/w_log.c: Likewise.
30759 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30760 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30761 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30762 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30763 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30764 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30765 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30766 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30767 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30768 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30769 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30770 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30771 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30772 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30773 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30774 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30775 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30776 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30777 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30778 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30779 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30780 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30781 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30782 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30783 [LIBM_SVID_COMPAT].
30784 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30785 * sysdeps/ieee754/k_standard.c: Likewise.
30786 * sysdeps/ieee754/k_standardf.c: Likewise.
30787 * sysdeps/ieee754/k_standardl.c: Likewise.
30788 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30789 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30790 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30791 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30792 long_double_symbol call on [LIBM_SVID_COMPAT].
30793 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30794 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30795 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30796 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30797 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30798 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30799 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30800 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30801 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30802 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30803 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30804 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30805 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30806 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30807 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30808 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30809 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30810 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30811 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30812 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30813 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30814 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30815
30816 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30817
30818 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30819 * malloc/tst-mallocstate.c: Convert from test-skeleton
30820 to test-driver. Ifdef code using TEST_COMPAT macro.
30821 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30822 * math/test-matherr.c: Likewise.
30823
30824 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30825
30826 [BZ #22086]
30827 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30828 comparing word with byte-swapped constant.
30829
30830 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30831
30832 [BZ #20498]
30833 * locale/iso-639.def: add Miskito.
30834 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30835 * localedata/locales/miq_NI: New file.
30836
30837 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30838
30839 [BZ #18822]
30840 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30841 (__mkdir): Likewise.
30842 * io/chmod.c (__chmod): Add libc_hidden_def.
30843 * io/mkdir.c (__mkdir): Likewise.
30844 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30845 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30846 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30847 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30848
30849 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30850
30851 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30852 version to 4.13.
30853
30854 [BZ #22082]
30855 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30856 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30857
30858 2017-09-04 Florian Weimer <fweimer@redhat.com>
30859
30860 * math/math.h: Issue warning if log is defined.
30861
30862 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30863
30864 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30865 kernel version to 4.13.
30866
30867 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30868
30869 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30870 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30871 parameter.
30872 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30873 just <bits/types.h>.
30874 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30875 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30876 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30877 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30878 * misc/preadv2.c: Include <errno.h>.
30879 * misc/preadv64v2.c: Include <errno.h>.
30880 * misc/pwritev2.c: Include <errno.h>.
30881 * misc/pwritev64v2.c: Include <errno.h>.
30882 * sysdeps/posix/preadv2.c: Include <errno.h>.
30883 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30884 Fix <unistd.h> inclusion.
30885 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30886 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30887 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30888 __strtoul_internal): New functions.
30889 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30890 * sysdeps/posix/system.c: Include <sigsetops.h>.
30891 * sysdeps/mach/hurd/i386/Makefile
30892 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30893 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30894 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30895 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30896 __feraiseexcept_renamed to feraiseexcept instead of
30897 __GI_feraiseexcept.
30898 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30899 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30900 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30901 RWF_NOWAIT): Define to 0 if undefined already.
30902 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30903 boils down to 0.
30904 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30905 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30906
30907 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30908
30909 * manual/math.texi (pow10): Do not document.
30910 (pow10f): Likewise.
30911 (pow10l): Likewise.
30912 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30913 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30914 * math/libm-test-exp10.inc (pow10_test): Remove.
30915 (do_test): Do not call pow10.
30916 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30917 [NO_LONG_DOUBLE] (pow10l): Likewise.
30918 * math/w_exp10f_compat.c (pow10f): Likewise.
30919 * math/w_exp10l_compat.c (pow10l): Likewise.
30920 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30921 (pow10): Make into compat symbol.
30922 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30923 (pow10f): Make into compat symbol.
30924 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30925 (pow10l): Make into compat symbol.
30926 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30927 pow10.
30928 (CFLAGS-nldbl-pow10.c): Remove variable..
30929 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30930 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30931 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30932 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30933 Undefine and redefine.
30934 (pow10l): Make into compat symbol.
30935 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30936 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30937 * sysdeps/arm/libm-test-ulps: Likewise.
30938 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30939 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30940 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30941 * sysdeps/microblaze/libm-test-ulps: Likewise.
30942 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30943 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30944 * sysdeps/nios2/libm-test-ulps: Likewise.
30945 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30946 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30947 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30948 * sysdeps/sh/libm-test-ulps: Likewise.
30949 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30950 * sysdeps/tile/libm-test-ulps: Likewise.
30951 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30952
30953 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30954
30955 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30956
30957 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30958
30959 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30960 "../ChangeLog.old/ChangeLog.8".
30961 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30962 "../ChangeLog.old/ChangeLog.14".
30963
30964 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30965
30966 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30967 Threads Library.
30968
30969 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30970
30971 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30972
30973 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30974
30975 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30976 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30977
30978 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30979
30980 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30981 32 atexit handlers.
30982
30983 2017-09-01 Zack Weinberg <zackw@panix.com>
30984
30985 * math/math.h (HUGE_VAL): Improve commentary.
30986
30987 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30988 Andreas Schwab <schwab@suse.de>
30989
30990 [BZ #21530]
30991 * include/stdio.h (__gen_tempfd): New function.
30992 * stdio-common/Makefile (routines): Add gentempfd.
30993 * stdio-common/gentempfd.c: New file.
30994 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30995 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30996 unnamed file first.
30997
30998 2017-09-01 Florian Weimer <fweimer@redhat.com>
30999
31000 [BZ #21915]
31001 [BZ #21922]
31002 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31003 result to determine success or failure, not the errno value.
31004 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31005 (tst-nss-files-hosts-erange): Link with -ldl.
31006 * nss/tst-nss-files-hosts-erange.c: New file.
31007 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31008 (do_test): Add NO_DATA tests.
31009 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31010 (do_test): Call it.
31011
31012 2017-09-01 Florian Weimer <fweimer@redhat.com>
31013
31014 [BZ #21922]
31015 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31016 coming from gethostbyname2_r.
31017
31018 2017-09-01 Florian Weimer <fweimer@redhat.com>
31019
31020 * support/namespace.h (struct support_chroot_configuration): Add
31021 hosts, host_conf.
31022 (struct support_chroot): Add path_hosts, path_host_conf.
31023 * support/support_chroot.c (write_file): New function.
31024 (support_chroot_create): Call it to process /etc/resolv.conf,
31025 /etc/hosts, /etc/host.conf.
31026 (support_chroot_free): Update.
31027
31028 2017-09-01 Florian Weimer <fweimer@redhat.com>
31029
31030 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31031 status indicates it is set.
31032
31033 2017-09-01 Florian Weimer <fweimer@redhat.com>
31034
31035 [BZ #20532]
31036 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31037 function lookup failures more reliable.
31038
31039 2017-09-01 Florian Weimer <fweimer@redhat.com>
31040
31041 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31042 (getcanonname): Likewise.
31043 (gaih_inet): Likewise.
31044
31045 2017-09-01 Florian Weimer <fweimer@redhat.com>
31046
31047 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31048 (getcanonname): Likewise.
31049 (gaih_inet): Likewise.
31050
31051 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31052 Richard Henderson <rth@twiddle.net>
31053
31054 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31055 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31056 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31057 (IREG_SIZE, OREG_SIZE): New macros.
31058 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31059 (IREG_SIZE, OREG_SIZE): New macros.
31060 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31061 (IREG_SIZE): New macro.
31062 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31063 (IREG_SIZE): New macro.
31064 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31065 New includes.
31066 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31067 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31068 (__CONCATX): Handle exceptions correctly on large values that may
31069 set FE_INVALID.
31070 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31071 Initialize if not already set.
31072 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31073
31074 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31075
31076 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31077 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31078 Likewise.
31079 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31080 Likewise.
31081 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31082 Likewise.
31083 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31084 Likewise.
31085 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31086 Likewise.
31087 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31088 Likewise.
31089 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31090 Likewise.
31091 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31092 (NO_CANCELLATION): Likewise.
31093 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31094 Likewise.
31095 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31096 Likewise.
31097 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31098 Likewise.
31099 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31100 (NO_CANCELLATION): Likewise.
31101 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31102 (NO_CANCELLATION): Likewise.
31103 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31104 Likewise
31105 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31106 Likewise.
31107 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31108 Likewise.
31109 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31110 Likewise.
31111 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31112 hidden prototype.
31113 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31114 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31115
31116 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31117
31118 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31119 in resolver call.
31120
31121 2017-08-31 Florian Weimer <fweimer@redhat.com>
31122
31123 * include/libc-symbols.h (internal_function): Remove.
31124
31125 2017-08-31 Florian Weimer <fweimer@redhat.com>
31126
31127 * stdlib/fmtmsg.c (internal_addseverity): Remove
31128 internal_function.
31129
31130 2017-08-31 Florian Weimer <fweimer@redhat.com>
31131
31132 * stdio-common/printf_fp.c (group_number): Remove
31133 internal_function.
31134 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31135
31136 2017-08-31 Florian Weimer <fweimer@redhat.com>
31137
31138 * posix/fnmatch.c (internal_function): Remove definition.
31139 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31140 * posix/regcomp.c (peek_token, init_word_char)
31141 (duplicate_node_closure, fetch_token, peek_token)
31142 (peek_token_bracket, build_range_exp, build_collating_symbol):
31143 Likewise.
31144 * posix/regex_internal.c (re_string_construct_common)
31145 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31146 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31147 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31148 (re_string_translate_buffer, re_string_reconstruct)
31149 (re_string_peek_byte_case, re_string_fetch_byte_case)
31150 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31151 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31152 (re_node_set_add_intersect, re_node_set_init_union)
31153 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31154 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31155 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31156 (re_acquire_state_context): Likewise.
31157 * posix/regex_internal.h (internal_function): Remove definition.
31158 (re_string_realloc_buffers, build_wcs_buffer)
31159 (build_wcs_upper_buffer, build_upper_buffer)
31160 (re_string_translate_buffer, re_string_context_at)
31161 (re_string_char_size_at, re_string_wchar_at)
31162 (re_string_elem_size_at): Likewise.
31163 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31164 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31165 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31166 (re_search_internal, re_search_2_stub, re_search_stub)
31167 (re_copy_regs, prune_impossible_nodes, check_matching)
31168 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31169 (free_fail_stack_return, sift_states_iter_mb)
31170 (sift_states_backward, build_sifted_states)
31171 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31172 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31173 (check_subexp_limits, sift_states_bkref, merge_state_array)
31174 (find_recover_state, transit_state, merge_state_with_log)
31175 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31176 (transit_state_mb, transit_state_bkref, get_subexp)
31177 (get_subexp_sub, find_subexp_node, check_arrival)
31178 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31179 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31180 (check_node_accept_bytes, find_collation_sequence_value)
31181 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31182 (acquire_init_state_context, check_halt_node_context)
31183 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31184 (sub_epsilon_src_nodes): Likewise.
31185 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31186 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31187 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31188 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31189 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31190 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31191 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31192 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31193 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31194 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31195 (PREADV): Likewise.
31196 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31197 (PREADV): Likewise.
31198 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31199 (PWRITEV): Likewise.
31200 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31201 (PWRITEV): Likewise.
31202 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31203 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31204
31205 2017-08-31 Florian Weimer <fweimer@redhat.com>
31206
31207 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31208 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31209 Remove internal_function.
31210 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31211 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31212 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31213 (__deallocate_stack, __libc_pthread_init)
31214 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31215 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31216 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31217 Likewise.
31218 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31219 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31220 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31221 Likewise.
31222 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31223 (__pthread_mutex_unlock_usercnt): Likewise.
31224
31225 2017-08-31 Florian Weimer <fweimer@redhat.com>
31226
31227 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31228 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31229 (fts_safe_changedir): Remove internal_function.
31230 * io/ftw.c (internal_function): Remove definition.
31231 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31232
31233 2017-08-31 Florian Weimer <fweimer@redhat.com>
31234
31235 * inet/deadline.c (__deadline_current_time)
31236 (__deadline_from_timeval, __deadline_to_ms): Remove
31237 internal_function.
31238 * inet/getnameinfo.c (nrl_domainname): Likewise.
31239 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31240 * inet/inet6_option.c (add_pad): Likewise.
31241 * inet/net-internal.h (__deadline_current_time)
31242 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31243 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31244 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31245 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31246
31247 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31248
31249 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31250 include <bits/nan.h>.
31251 * math/Makefile (headers): Remove bits/nan.h.
31252 * bits/nan.h: Remove.
31253 * sysdeps/ieee754/bits/nan.h: Likewise.
31254 * sysdeps/mips/bits/nan.h: Likewise.
31255
31256 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31257 not include <bits/inf.h>.
31258 * math/Makefile (headers): Remove bits/inf.h.
31259 * bits/inf.h: Remove.
31260 * sysdeps/ieee754/bits/inf.h: Likewise.
31261
31262 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31263 bits/huge_vall.h or bits/huge_val_flt128.h.
31264 (HUGE_VAL): Define directly here.
31265 [__USE_ISOC99] (HUGE_VALF): Likewise.
31266 [__USE_ISOC99] (HUGE_VALL): Likewise.
31267 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31268 (HUGE_VAL_F128): Likewise.
31269 * math/Makefile (headers): Remove bits/huge_val.h,
31270 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31271 * bits/huge_val.h: Remove.
31272 * bits/huge_val_flt128.h: Likewise.
31273 * bits/huge_valf.h: Likewise.
31274 * bits/huge_vall.h: Likewise.
31275 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31276 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31277 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31278 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31279 * sysdeps/sh/bits/huge_val.h: Likewise.
31280 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31281 * sysdeps/x86/bits/huge_vall.h: Likewise.
31282
31283 2017-08-31 Florian Weimer <fweimer@redhat.com>
31284
31285 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31286 internal_function.
31287 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31288 Likewise.
31289 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31290 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31291 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31292 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31293 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31294 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31295 * elf/dl-libc.c (dlerror_run): Likewise.
31296 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31297 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31298 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31299 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31300 Likewise.
31301 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31302 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31303 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31304 * elf/dl-profile.c (_dl_start_profile): Likewise.
31305 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31306 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31307 Likewise.
31308 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31309 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31310 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31311 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31312 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31313 (_dl_allocate_tls_storage): Likewise.
31314 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31315 (_dl_check_all_versions): Likewise.
31316 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31317 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31318 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31319 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31320 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31321 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31322 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31323 internal_function from __dl_start.
31324 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31325 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31326 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31327 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31328 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31329 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31330 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31331 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31332 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31333 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31334 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31335 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31336 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31337 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31338 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31339 Likewise.
31340 (struct rtld_global_ro): Remove internal_function from the
31341 _dl_lookup_symbol_x member.
31342 (_dl_symbol_value): Remove. No longer defined anywhere.
31343 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31344 internal_function.
31345 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31346 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31347 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31348 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31349 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31350 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31351 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31352 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31353 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31354 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31355 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31356 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31357
31358 2017-08-31 Florian Weimer <fweimer@redhat.com>
31359
31360 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31361 Remove internal_function.
31362 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31363 Likewise.
31364 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31365 Likewise.
31366
31367 2017-08-31 Florian Weimer <fweimer@redhat.com>
31368
31369 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31370 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31371 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31372
31373 2017-08-31 Florian Weimer <fweimer@redhat.com>
31374
31375 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31376 (__gai_enqueue_request): Remove internal_function.
31377 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31378 (__gai_remove_request, __gai_notify, __gai_notify_only)
31379 (__gai_sigqueue): Likewise.
31380 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31381 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31382 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31383 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31384 Likewise.
31385
31386 2017-08-31 Florian Weimer <fweimer@redhat.com>
31387
31388 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31389 * include/dirent.h (__opendirat, __getdents, __getdents64)
31390 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31391 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31392 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31393 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31394 Likewise.
31395 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31396
31397 2017-08-31 Florian Weimer <fweimer@redhat.com>
31398
31399 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31400 internal_function.
31401 (GETCWD_RETURN_TYPE): Likewise.
31402
31403 2017-08-31 Florian Weimer <fweimer@redhat.com>
31404
31405 * include/time.h (__tz_compute, __strptime_internal): Remove
31406 internal_function.
31407 * time/strptime_l.c (__strptime_internal): Likewise.
31408 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31409
31410 2017-08-31 Florian Weimer <fweimer@redhat.com>
31411
31412 * iconv/gconv.c (__gconv): Remove internal_function.
31413 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31414 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31415 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31416 (__gconv_release_cache): Likewise.
31417 * iconv/gconv_close.c (__gconv_close): Likewise.
31418 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31419 (read_conf_file, __gconv_get_path): Likewise.
31420 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31421 (__gconv_release_step, gen_steps, increment_counter)
31422 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31423 (__gconv_close_transform, free_modules_db): Likewise.
31424 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31425 Likewise.
31426 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31427 (__gconv_find_transform, __gconv_lookup_cache)
31428 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31429 (__gconv_close_transform, __gconv_release_cache)
31430 (__gconv_loaded_object, __gconv_release_shlib)
31431 (__gconv_compare_alias): Likewise.
31432 * iconv/gconv_open.c (__gconv_open): Likewise.
31433 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31434 * iconv/iconvconfig.c (add_module): Likewise.
31435 * intl/dcigettext.c (plural_lookup, guess_category_value)
31436 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31437 * intl/eval-plural.h (plural_eval): Likewise.
31438 * intl/finddomain.c (_nl_find_domain): Likewise.
31439 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31440 (_nl_load_domain, _nl_find_msg): Likewise.
31441 (internal_function): Remove definition.
31442 * intl/loadinfo.h (internal_function): Likewise.
31443 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31444 internal_function.
31445 * intl/localealias.c (internal_function): Remove definition.
31446 (read_alias_file): Remove internal_function.
31447 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31448 * intl/plural-exp.h (internal_function): Remove definition.
31449 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31450 internal_function.
31451 * intl/plural.c: Regenerate.
31452 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31453 * locale/coll-lookup.c (__collidx_table_lookup)
31454 (__collseq_table_lookup): Likewise.
31455 * locale/coll-lookup.h (__collidx_table_lookup)
31456 (__collseq_table_lookup): Likewise.
31457 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31458 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31459 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31460 (_nl_unload_locale): Likewise.
31461 * locale/localeinfo.h (struct __locale_data): Remove
31462 internal_function from cleanup member.
31463 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31464 (_nl_remove_locale, _nl_load_locale_from_archive)
31465 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31466 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31467 (_nl_cleanup_time): Remove internal_function.
31468 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31469 (_nl_parse_alt_digit): Likewise.
31470 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31471 (_nl_select_era_entry): Likewise.
31472 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31473 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31474 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31475 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31476 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31477
31478 2017-08-31 Florian Weimer <fweimer@redhat.com>
31479
31480 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31481 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31482 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31483 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31484 Likewise.
31485 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31486 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31487 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31488 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31489 Likewise.
31490 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31491
31492 2017-08-31 Florian Weimer <fweimer@redhat.com>
31493
31494 * misc/getttyent.c (skip, value): Remove internal_function.
31495 * misc/syslog.c (openlog_internal): Likewise.
31496 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31497
31498 2017-08-31 Florian Weimer <fweimer@redhat.com>
31499
31500 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31501 (__nss_rewrite_field): Remove internal_function.
31502 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31503 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31504 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31505 * nss/nsswitch.c (nss_parse_file, nss_getline)
31506 (nss_parse_service_list, nss_new_service): Likewise.
31507 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31508 * nss/valid_field.c (__nss_valid_field): Likewise.
31509 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31510
31511 2017-08-31 Florian Weimer <fweimer@redhat.com>
31512
31513 * malloc/arena.c (__malloc_fork_lock_parent)
31514 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31515 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31516 internal_function from defintions.
31517 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31518 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31519 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31520 internal_function from declarations.
31521 * malloc/malloc.c (internal_function): Do not define.
31522 (mem2mem_check): Remove internal_function from declaration.
31523 (munmap_chunk, mremap_chunk): Remove internal_function.
31524 * malloc/mtrace.c (tr_where): Likewise.
31525
31526 2017-08-31 Florian Weimer <fweimer@redhat.com>
31527
31528 * include/rpc/pmap_clnt.h (__get_socket): Remove
31529 internal_function.
31530 * sunrpc/auth_des.c (synchronize): Likewise.
31531 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31532 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31533 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31534 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31535 (key_call): Likewise.
31536 * sunrpc/pm_getport.c (__get_socket): Likewise.
31537 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31538 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31539 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31540 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31541 (invalidate): Likewise.
31542 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31543 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31544 (set_input_fragment, get_input_bytes): Likewise.
31545
31546 2017-08-31 Florian Weimer <fweimer@redhat.com>
31547
31548 * malloc/malloc.c (_int_free): Remove locked variable and related
31549 asserts.
31550
31551 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31552
31553 [BZ #22051]
31554 * Makerules (build-module-helper-objlist): Filter out
31555 $(elf-objpfx)sofini.os.
31556 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31557 needed.
31558
31559 2017-08-31 Florian Weimer <fweimer@redhat.com>
31560
31561 * libio/fcloseall.c: Assume weak_alias is defined.
31562 * libio/feof.c: Likewise.
31563 * libio/fileno.c: Likewise.
31564 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31565 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31566 definitions.
31567 (_IO_file_open): Call __open directly.
31568 (_IO_new_file_sync): Assume ESPIPE is defined.
31569 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31570 (_IO_new_file_write): Call __write directly.
31571 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31572 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31573 * libio/genops.c: Assume _LIBC is defined.
31574 (save_for_backup): Remove internal_function.
31575 * libio/getc.c: Assume weak_alias is defined.
31576 * libio/getwc.c: Likewise.
31577 * libio/iofclose.c: Assume _LIBC is defined.
31578 * libio/iofdopen.c: Likewise.
31579 (_IO_fcntl): Remove macro definition.
31580 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31581 Call __fcntl directly.
31582 * libio/iofflush.c: Assume weak_alias is defined.
31583 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31584 defined.
31585 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31586 * libio/iofgets.c: Likewise.
31587 * libio/iofopen.c: Assume _LIBC is defined.
31588 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31589 * libio/iofputs.c: Assume weak_alias is defined.
31590 * libio/iofread.c: Likewise.
31591 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31592 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31593 * libio/ioftell.c: Assume weak_alias is defined.
31594 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31595 * libio/iofwide.c: Assume _LIBC is defined.
31596 (_IO_fwide): Drop SHARED conditional because it is implied by
31597 SHLIB_COMPAT.
31598 * libio/iofwrite.c: Assume weak_alias is defined.
31599 * libio/iogetdelim.c: Likewise.
31600 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31601 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31602 (_IO_getwline): Call __wmemcpy directly.
31603 * libio/iopopen.c: Assume _LIBC is defined.
31604 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31605 (_IO_close): Remove macro definitions.
31606 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31607 _exit directly.
31608 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31609 directly.
31610 * libio/ioputs.c: Assume weak_alias is defined.
31611 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31612 * libio/iosetbuffer.c: Assume weak_alias is defined.
31613 * libio/iosetvbuf.c: Likewise.
31614 * libio/ioungetc.c: Likewise.
31615 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31616 libc_hidden_def, libc_hidden_weak, NULL are defined.
31617 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31618 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31619 defined.
31620 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31621 definitions.
31622 (_IO_old_file_init_internal): Drop SHARED conditional because it
31623 is implied by SHLIB_COMPAT.
31624 (_IO_old_file_fopen): Call __open directly.
31625 (_IO_old_file_sync): Assume ESPIPE is defined.
31626 (_IO_old_file_write): Call __write directly.
31627 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31628 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31629 Call __fcntl directly.
31630 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31631 (_IO_old_fgetpos): Assume EIO is defined.
31632 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31633 (_IO_old_fgetpos64): Assume EIO is defined.
31634 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31635 (_IO_old_fsetpos): Assume EIO is defined.
31636 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31637 (_IO_old_fsetpos64): Assume EIO is defined.
31638 * libio/oldiopopen.c: Assume _LIBC is defined.
31639 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31640 (_IO_close): Remove macro definitions.
31641 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31642 directly.
31643 (_IO_old_proc_close): Call __close, __waitpid directly.
31644 * libio/put.c: Assume weak_alias is defined.
31645 * libio/stdfiles.c: Assume _LIBC is defined.
31646 * libio/stdio.c: Likewise.
31647 * libio/wfileops.c: Likewise.
31648 (_IO_wfile_sync): Assume ESPIPE is defined.
31649 * libio/wgenops.c: Assume _LIBC is defined.
31650 (save_for_wbackup): Remove internal_function.
31651
31652 2017-08-31 Florian Weimer <fweimer@redhat.com>
31653
31654 * malloc/malloc.c (top_check): Change return type to void. Remove
31655 internal_function.
31656 * malloc/hooks.c (top_check): Likewise.
31657 (malloc_check, realloc_check, memalign_check): Adjust.
31658
31659 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31660
31661 [BZ #21457]
31662 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31663 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31664 sigcontext and namespace requirements.
31665 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31666 * sysdeps/m68k/sys/ucontext.h: Likewise.
31667 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31668 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31669 <bits/sigcontext.h>.
31670 (__ctx): Define earlier.
31671 (mcontext_t): Define structure contents rather than using struct
31672 sigcontext.
31673 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31674 __glibc_reserved1 instead of __reserved.
31675 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31676 <bits/sigcontext.h>.
31677 (__ctx): Define earlier.
31678 (mcontext_t): Define structure contents rather than using struct
31679 sigcontext.
31680 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31681 mcontext_t instead of struct sigcontext.
31682 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31683 <bits/sigcontext.h>.
31684 (__ctx): Define earlier.
31685 (mcontext_t): Define structure contents rather than using struct
31686 sigcontext.
31687 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31688 <bits/sigcontext.h>.
31689 (__ctx): Define earlier.
31690 (mcontext_t): Define structure contents rather than using struct
31691 sigcontext.
31692 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31693 mcontext_t instead of struct sigcontext.
31694 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31695 mcontext_t instead of struct sigcontext.
31696 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31697 <bits/sigcontext.h>.
31698 (__ctx): New macro.
31699 (struct __ia64_fpreg_mcontext): New type.
31700 (mcontext_t): Define structure contents rather than using struct
31701 sigcontext.
31702 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31703 (uc_sigmask): Define using __ctx.
31704 (uc_stack): Likewise.
31705 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31706 <bits/sigcontext.h>.
31707 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31708 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31709 <bits/sigcontext.h>.
31710 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31711 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31712 <bits/sigcontext.h>.
31713 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31714 <bits/sigcontext.h>.
31715 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31716 <bits/sigcontext.h>.
31717 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31718 <bits/sigcontext.h>.
31719 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31720 <bits/sigcontext.h>.
31721 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31722 <bits/sigcontext.h>.
31723 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31724 <bits/sigcontext.h>.
31725 (__ctx): Define earlier.
31726 (mcontext_t): Define structure contents rather than using struct
31727 sigcontext.
31728 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31729 <bits/sigcontext.h>. Include <bits/types.h>.
31730 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31731 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31732 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31733 (test-xfail-UNIX98/signal.h/conform): Likewise.
31734 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31735 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31736 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31737 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31738 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31739 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31740 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31741 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31742 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31743
31744 2017-08-30 Florian Weimer <fweimer@redhat.com>
31745
31746 * malloc/dynarray_emplace_enlarge.c
31747 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31748 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31749 * malloc/tst-dynarray.c (test_long_overflow): New function.
31750 (do_test): Call it.
31751
31752 2017-08-30 Florian Weimer <fweimer@redhat.com>
31753
31754 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31755 (set_arena_corrupt): Remove definitions.
31756 (mtrim): Do not check for corrupt arena.
31757 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31758 Likewise.
31759
31760 2017-08-30 Florian Weimer <fweimer@redhat.com>
31761
31762 [BZ #21754]
31763 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31764 check_action.
31765 (ptmalloc_init): Do not set or use check_action.
31766 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31767 call to malloc_printerr. Remove return statement.
31768 (free_check): Likewise. Remove arena unlock.
31769 (top_check): Update comment. Adjust call to malloc_printerr.
31770 Remove heap repair code.
31771 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31772 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31773 (sysmalloc): Adjust call to malloc_printerr.
31774 (munmap_chunk, __libc_realloc): Likewise. Remove return
31775 statement.
31776 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31777 Remove errout label and corresponding gotos.
31778 (_int_free): Likewise. Remove arena unlock.
31779 (do_set_mallopt_check): Do not set check_action.
31780 (malloc_printerr): Adjust parameter list. Do not mark arena as
31781 corrupt.
31782 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31783 comment.
31784 * manual/probes.texi (Memory Allocation Probes): Remove
31785 memory_mallopt_check_action.
31786
31787 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31788
31789 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31790 Use pointer to uint64_t instead of long int for sp.
31791
31792 2017-08-30 Florian Weimer <fweimer@redhat.com>
31793
31794 [BZ #21754]
31795 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31796 without printing a backtrace. Do not leak any information in the
31797 error message.
31798 * manual/memory.texi (Heap Consistency Checking): Update.
31799 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31800
31801 2017-08-30 Florian Weimer <fweimer@redhat.com>
31802
31803 Do not scale NPTL tests with available number of CPUs.
31804 * nptl/tst-cond16.c (count): Set to constant value of 8.
31805 * nptl/tst-cond18.c (count): Likewise.
31806
31807 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31808
31809 [BZ #22035]
31810 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31811 Define to take a second argument that is a macro that
31812 concatentates a suffix, not the suffix itself.
31813 (__CONCAT_d): New macro.
31814 (__CONCAT_f): Likewise.
31815 (__CONCAT_l): Likewise.
31816
31817 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31818
31819 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31820 by child.
31821
31822 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31823 Aurelien Jarno <aurelien@aurel32.net>
31824 Maciej W. Rozycki <macro@imgtec.com>
31825
31826 [BZ #21956]
31827 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31828 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31829 `mips16-syscall6' and `mips16-syscall7'.
31830 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31831 (CFLAGS-mips16-syscall7.c): Remove.
31832 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31833 Remove `__mips16_syscall5', `__mips16_syscall6' and
31834 `__mips16_syscall7'.
31835 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31836 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31837 `__mips_syscall_return'.
31838 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31839 (__mips16_syscall1): Likewise.
31840 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31841 (__mips16_syscall2): Likewise.
31842 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31843 (__mips16_syscall3): Likewise.
31844 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31845 (__mips16_syscall4): Likewise.
31846 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31847 Remove.
31848 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31849 Remove.
31850 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31851 Remove.
31852 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31853 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31854 `__mips16_syscall5'. Remove prototype.
31855 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31856 `__mips16_syscall6'. Remove prototype.
31857 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31858 `__mips16_syscall7'. Remove prototype.
31859 (__nomips16, __mips16_syscall_return): Move to...
31860 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31861 (__nomips16, __mips_syscall_return): ... here.
31862 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31863 `__mips16_syscall_return' to `__mips_syscall_return'.
31864 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31865 `internal_syscall##nr'.
31866 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31867 `internal_syscall##nr'.
31868 (FORCE_FRAME_POINTER): Remove.
31869 (__mips_syscall5): New prototype.
31870 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31871 (__mips_syscall6): New prototype.
31872 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31873 (__mips_syscall7): New prototype.
31874 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31875 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31876 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31877 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31878 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31879 (sysdep_routines): Add libc-do-syscall.
31880 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31881 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31882
31883 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31884
31885 [BZ #21672]
31886 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31887 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31888 (advise_stack_range): New function.
31889 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31890 stack non required to advise_stack_range at allocatestack.c
31891
31892 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31893
31894 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31895
31896 2017-08-29 Florian Weimer <fweimer@redhat.com>
31897
31898 [BZ #22026]
31899 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31900 __end_fct. Mangle __end_fct after setting it to NULL.
31901 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31902 (modules-names, modules-names-tests): Add
31903 tst-gconv-init-failure-mod.
31904 (gconv-modules): New target.
31905 (tst-gconv-init-failure-mod.so): Link against libsupport.
31906 (tst-gconv-init-failure): Depend on gconv-modules,
31907 tst-gconv-init-failure-mod.so.
31908 * iconv/tst-gconv-init-failure-mod.c: New file.
31909 * iconv/tst-gconv-init-failure.c: Likewise.
31910 * iconv/test-gconv-modules: Likewise.
31911
31912 2017-08-29 Florian Weimer <fweimer@redhat.com>
31913
31914 [BZ #22025]
31915 * iconv/gconv_db.c (free_derivation): Remove redundant
31916 parentheses.
31917 (gen_steps): Unconditionally mangle __btowc_fct after
31918 initialization.
31919 (increment_counter): Likewise. Do not call init_fct for internal
31920 modules.
31921
31922 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31923
31924 [BZ #22028]
31925 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31926 (_MSUF_): Remove macro.
31927 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31928 Likewise.
31929 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31930 (__REDIRFROM_X): New macro.
31931 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31932 Likewise.
31933 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31934 (__REDIRTO_X): Likewise.
31935 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31936 arguments.
31937 (__MATH_REDIRCALL_2): Likewise.
31938 (__MATH_REDIRCALL_INTERNAL): Likewise.
31939 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31940 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31941 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31942 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31943 * math/test-finite-macros.c: New file.
31944 * math/Makefile (tests): Add test-finite-macros.
31945 (CFLAGS-test-finite-macros.c): New variable.
31946
31947 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31948 Jeff Law <law@redhat.com>
31949
31950 [BZ #22025]
31951 Mangle NULL pointers in iconv/gconv.
31952 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31953 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31954 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31955 is non-NULL before demangling the end_fct. Check for NULL
31956 end_fct after demangling.
31957 (__gconv_release_step): Demangle the end_fct before checking
31958 it for NULL. Remove assert on __shlibc_handle != NULL.
31959 (gen_steps): Don't check btowc_fct for NULL before mangling.
31960 Demangle init_fct before checking for NULL.
31961 (increment_counter): Likewise.
31962 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31963 end_fct for NULL before mangling.
31964 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31965 for NULL.
31966
31967 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31968
31969 [BZ #21971]
31970 * locale/iso-639.def: add Morisyen.
31971
31972 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31973
31974 [BZ #21930]
31975 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31976 (iszero): New C++ implementation that does not use
31977 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31978 signaling nans are enabled, since __builtin_types_compatible_p
31979 is a C-only feature.
31980 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31981 defined, include ieee754_float128.h for access to the union and
31982 member ieee854_float128.ieee.
31983 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31984 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31985 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31986 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31987 options of test-math-zero on powerpc64le.
31988
31989 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31990
31991 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31992 Change double to float.
31993
31994 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31995
31996 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31997 unconditional.
31998 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31999 conditional code; define contents only for [LIBM_SVID_COMPAT].
32000
32001 2017-08-28 Florian Weimer <fweimer@redhat.com>
32002
32003 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32004 (abi-lp64_be-options): Remove.
32005 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32006 (abi-hard-options): Likewise.
32007 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32008 (abi-o32_hard-options, abi-o32_soft_2008-options)
32009 (abi-o32_hard_2008-options, abi-n32_soft-options)
32010 (abi-n32_hard-options, abi-n32_soft_2008-options)
32011 (abi-n32_hard_2008-options, abi-n64_soft-options)
32012 (abi-n64_hard-options, abi-n64_soft_2008-options)
32013 (abi-n64_hard_2008-options): Likewise.
32014 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32015 (abi-64-v1-options, abi-64-v2-options): Likewise.
32016 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32017 (abi-64-options): Likewise.
32018 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32019 (abi-64-options): Likewise.
32020 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32021 (abi-64-options): Likewise.
32022 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32023 (abi-64-options, abi-x32-options): Likewise.
32024
32025 2017-08-28 Florian Weimer <fweimer@redhat.com>
32026
32027 Store supported list of SYS_* system calls in the source tree.
32028 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32029 (bits/syscall.h): Generate from list file.
32030 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32031 [$(subdir) = misc] (tests): Add tst-syscall-list.
32032 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32033 [$(subdir) = misc] (tst-syscall-list-macros.list)
32034 [$(subdir) = misc] (tst-syscall-list-nr.list)
32035 (tst-syscall-list-sys.list): Helper targets for new
32036 tst-syscall-list test.
32037 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32038 tst-syscall-list.sh.
32039 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32040 target. Do not include bits/syscall.d.
32041 [$(subdir) = misc] (generated): Do not update.
32042 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32043 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32044 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32045 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32046
32047 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32048
32049 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32050 (tst-cxa_atexit, tst-on_exit): Likewise.
32051 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32052 tst-cxa_atexit, and tst-on_exit.
32053 * stdlib/tst-atexit-common.c: New file.
32054 * stdlib/tst-atexit.c: New file.
32055 * stdlib/tst-at_quick_exit.c: New file.
32056 * stdlib/tst-cxa_atexit.c: New file.
32057 * stdlib/tst-on_exit.c: New file.
32058
32059 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32060
32061 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32062 * mach/stack_chk_fail_local.c: New file.
32063 * hurd/stack_chk_fail_local.c: New file.
32064 * mach/Machrules ($(interface-library)-routines): Add
32065 stack_chk_fail_local.
32066 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32067 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32068 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32069 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32070 * hurd/Makefile (CFLAGS-hurdstartup.o,
32071 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32072
32073 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32074
32075 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32076 (index_cpu_*, index_arch_*): Removed.
32077
32078 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32079
32080 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32081 Use uint64_t instead of unsigned long.
32082
32083 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32084
32085 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32086 [__HAVE_DISTINCT_FLOAT128].
32087
32088 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32089 of <bits/math-finite.h>.
32090 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32091 inclusion of <bits/math-finite.h>.
32092 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32093 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32094 __NO_LONG_DOUBLE_MATH].
32095 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32096 (__MATH_REDIRCALL_2): Likewise.
32097 (__MATH_REDIRCALL_INTERNAL): Likewise.
32098 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32099 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32100 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32101
32102 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32103 Remove file.
32104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32105 Likewise.
32106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32107 Likewise.
32108 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32109 Likewise.
32110 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32111 Likewise.
32112 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32113 Likewise.
32114 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32115 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32116 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32117 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32118 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32119 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32120 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32121 w_sqrtf_compat-ppc32.
32122
32123 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32124
32125 * math/math.h [defined __cplusplus] (issignaling): In the long
32126 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32127 is not defined. Call __issignaling, otherwise.
32128
32129 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32130
32131 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32132 syscall definitions and replace __builtin_expect with __glibc_likely.
32133 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32134 syscall.
32135 (SYSCALL_CANCELLABLE): Removedefinition
32136 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32137 definition.
32138 (PSEUDO_END): Likewise.
32139 [IS_IN (libpthread)] (CENABLE): Likewise.
32140 [IS_IN (libpthread)] (CDISABLE): Likewise.
32141 [IS_IN (libc)] (CENABLE): Likewise.
32142 [IS_IN (libc)] (CENABLE): Likewise.
32143 [IS_IN (librt)] (CDISABLE): Likewise.
32144 [IS_IN (librt)] (CDISABLE): Likewise.
32145 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32146 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32147 definition.
32148 (PSEUDO_END): Likewise.
32149 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32150 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32151 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32152 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32153 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32154 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32155 (CENABLE): Likewise.
32156 (CDISABLE): Likewise.
32157 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32158 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32159 defintion.
32160 (PSEUDO_END): Likewise.
32161 [IS_IN (libpthread)] (CENABLE): Likewise.
32162 [IS_IN (libpthread)] (CDISABLE): Likewise.
32163 [IS_IN (libc)] (CENABLE): Likewise.
32164 [IS_IN (libc)] (CENABLE): Likewise.
32165 [IS_IN (librt)] (CDISABLE): Likewise.
32166 [IS_IN (librt)] (CDISABLE): Likewise.
32167 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32168 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32169 definition.
32170 (PSEUDO_END): Likewise.
32171 [IS_IN (libpthread)] (CENABLE): Likewise.
32172 [IS_IN (libpthread)] (CDISABLE): Likewise.
32173 [IS_IN (libc)] (CENABLE): Likewise.
32174 [IS_IN (libc)] (CENABLE): Likewise.
32175 [IS_IN (librt)] (CDISABLE): Likewise.
32176 [IS_IN (librt)] (CDISABLE): Likewise.
32177 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32178 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32179 definition.
32180 (PSEUDO_END): Likewise.
32181 [IS_IN (libpthread)] (CENABLE): Likewise.
32182 [IS_IN (libpthread)] (CDISABLE): Likewise.
32183 [IS_IN (libc)] (CENABLE): Likewise.
32184 [IS_IN (libc)] (CENABLE): Likewise.
32185 [IS_IN (librt)] (CDISABLE): Likewise.
32186 [IS_IN (librt)] (CDISABLE): Likewise.
32187 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32188 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32189 definition.
32190 (PSEUDO_END): Likewise.
32191 [IS_IN (libpthread)] (CENABLE): Likewise.
32192 [IS_IN (libpthread)] (CDISABLE): Likewise.
32193 [IS_IN (libc)] (CENABLE): Likewise.
32194 [IS_IN (libc)] (CENABLE): Likewise.
32195 [IS_IN (librt)] (CDISABLE): Likewise.
32196 [IS_IN (librt)] (CDISABLE): Likewise.
32197 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32198 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32199 definition.
32200 (PSEUDO_END): Likewise.
32201 [IS_IN (libpthread)] (CENABLE): Likewise.
32202 [IS_IN (libpthread)] (CDISABLE): Likewise.
32203 [IS_IN (libc)] (CENABLE): Likewise.
32204 [IS_IN (libc)] (CENABLE): Likewise.
32205 [IS_IN (librt)] (CDISABLE): Likewise.
32206 [IS_IN (librt)] (CDISABLE): Likewise.
32207 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32208 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32209 definition.
32210 (PSEUDO_END): Likewise.
32211 [IS_IN (libpthread)] (CENABLE): Likewise.
32212 [IS_IN (libpthread)] (CDISABLE): Likewise.
32213 [IS_IN (libc)] (CENABLE): Likewise.
32214 [IS_IN (libc)] (CENABLE): Likewise.
32215 [IS_IN (librt)] (CDISABLE): Likewise.
32216 [IS_IN (librt)] (CDISABLE): Likewise.
32217 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32218 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32219 Remove definition.
32220 (PSEUDO_END): Likewise.
32221 [IS_IN (libpthread)] (CENABLE): Likewise.
32222 [IS_IN (libpthread)] (CDISABLE): Likewise.
32223 [IS_IN (libc)] (CENABLE): Likewise.
32224 [IS_IN (libc)] (CENABLE): Likewise.
32225 [IS_IN (librt)] (CDISABLE): Likewise.
32226 [IS_IN (librt)] (CDISABLE): Likewise.
32227 (SINGLE_THREAD_P): Likewise.
32228 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32229 definition.
32230 (PSEUDO_END): Likewise.
32231 [IS_IN (libpthread)] (CENABLE): Likewise.
32232 [IS_IN (libpthread)] (CDISABLE): Likewise.
32233 [IS_IN (libc)] (CENABLE): Likewise.
32234 [IS_IN (libc)] (CENABLE): Likewise.
32235 [IS_IN (librt)] (CDISABLE): Likewise.
32236 [IS_IN (librt)] (CDISABLE): Likewise.
32237 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32238 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32239 definition.
32240 (PSEUDO_END): Likewise.
32241 [IS_IN (libpthread)] (CENABLE): Likewise.
32242 [IS_IN (libpthread)] (CDISABLE): Likewise.
32243 [IS_IN (libc)] (CENABLE): Likewise.
32244 [IS_IN (libc)] (CENABLE): Likewise.
32245 [IS_IN (librt)] (CDISABLE): Likewise.
32246 [IS_IN (librt)] (CDISABLE): Likewise.
32247 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32248 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32249 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32250 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32251 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32252 definition.
32253 (PSEUDO_END): Likewise.
32254 [IS_IN (libpthread)] (CENABLE): Likewise.
32255 [IS_IN (libpthread)] (CDISABLE): Likewise.
32256 [IS_IN (libc)] (CENABLE): Likewise.
32257 [IS_IN (libc)] (CENABLE): Likewise.
32258 [IS_IN (librt)] (CDISABLE): Likewise.
32259 [IS_IN (librt)] (CDISABLE): Likewise.
32260 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32261 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32262 definition.
32263 (PSEUDO_END): Likewise.
32264 [IS_IN (libpthread)] (CENABLE): Likewise.
32265 [IS_IN (libpthread)] (CDISABLE): Likewise.
32266 [IS_IN (libc)] (CENABLE): Likewise.
32267 [IS_IN (libc)] (CENABLE): Likewise.
32268 [IS_IN (librt)] (CDISABLE): Likewise.
32269 [IS_IN (librt)] (CDISABLE): Likewise.
32270 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32271 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32272 definition.
32273 (PSEUDO_END): Likewise.
32274 [IS_IN (libpthread)] (CENABLE): Likewise.
32275 [IS_IN (libpthread)] (CDISABLE): Likewise.
32276 [IS_IN (libc)] (CENABLE): Likewise.
32277 [IS_IN (libc)] (CENABLE): Likewise.
32278 [IS_IN (librt)] (CDISABLE): Likewise.
32279 [IS_IN (librt)] (CDISABLE): Likewise.
32280 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32281 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32282 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32283 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32284 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32285 definition.
32286 (PSEUDO_END): Likewise.
32287 [IS_IN (libpthread)] (CENABLE): Likewise.
32288 [IS_IN (libpthread)] (CDISABLE): Likewise.
32289 [IS_IN (libc)] (CENABLE): Likewise.
32290 [IS_IN (libc)] (CENABLE): Likewise.
32291 [IS_IN (librt)] (CDISABLE): Likewise.
32292 [IS_IN (librt)] (CDISABLE): Likewise.
32293 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32294 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32295 definition.
32296 (PSEUDO_END): Likewise.
32297 [IS_IN (libpthread)] (CENABLE): Likewise.
32298 [IS_IN (libpthread)] (CDISABLE): Likewise.
32299 [IS_IN (libc)] (CENABLE): Likewise.
32300 [IS_IN (libc)] (CENABLE): Likewise.
32301 [IS_IN (librt)] (CDISABLE): Likewise.
32302 [IS_IN (librt)] (CDISABLE): Likewise.
32303 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32304
32305 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32306
32307 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32308
32309 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32310
32311 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32312
32313 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32314
32315 [BZ #21982]
32316 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32317 middle and outer with size_t instead of int. Repleace %d and
32318 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32319 "MAX (outer, nchars - 64)" to support unsigned outer and
32320 nchars. Also exit loop when outer == 0.
32321
32322 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32323
32324 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32325 * include/signal.h (__sigsuspend_nocancel): Likewise.
32326 * include/time.h (__nanosleep_nocancel): Likewise.
32327 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32328 * login/utmp_file.c: Include non cancellable syscall header.
32329 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32330 prototype.
32331
32332 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32333
32334 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32335 .byte sequences with AVX512F instructions.
32336 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32337 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32338 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32339 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32340 Likewise.
32341 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32342 Likewise.
32343
32344 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32345 Steve Ellcey <sellcey@cavium.com>
32346
32347 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32348 Use PTR_REG macro in cmp instruction.
32349
32350 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32351
32352 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32353 Change the return type of the ifunc resolver to match the return
32354 type of the target function.
32355
32356 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32357
32358 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32359 (preadv64): Likewise.
32360 (pwrite64(: Likewise.
32361 (pwritev64): Likewise.
32362
32363 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32364 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32365 (LOAD_ARGS_0): Likewise.
32366 (LOAD_ARGS_1): Likewise.
32367 (LOAD_ARGS_2): Likewise.
32368 (LOAD_ARGS_3): Likewise.
32369 (LOAD_ARGS_4): Likewise.
32370 (LOAD_ARGS_5): Likewise.
32371 (LOAD_ARGS_6): Likewise.
32372 (LOAD_REGS_0): Likewise.
32373 (LOAD_REGS_1): Likewise.
32374 (LOAD_REGS_2): Likewise.
32375 (LOAD_REGS_3): Likewise.
32376 (LOAD_REGS_4): Likewise.
32377 (LOAD_REGS_5): Likewise.
32378 (LOAD_REGS_6): Likewise.
32379 (ASM_ARGS_0): Likewise.
32380 (ASM_ARGS_1): Likewise.
32381 (ASM_ARGS_2): Likewise.
32382 (ASM_ARGS_3): Likewise.
32383 (ASM_ARGS_4): Likewise.
32384 (ASM_ARGS_5): Likewise.
32385 (ASM_ARGS_6): Likewise.
32386 (LOAD_ARGS_TYPES_1): Likewise.
32387 (LOAD_ARGS_TYPES_2): Likewise.
32388 (LOAD_ARGS_TYPES_3): Likewise.
32389 (LOAD_ARGS_TYPES_4): Likewise.
32390 (LOAD_ARGS_TYPES_5): Likewise.
32391 (LOAD_ARGS_TYPES_6): Likewise.
32392 (LOAD_REGS_TYPES_1): Likewise.
32393 (LOAD_REGS_TYPES_2): Likewise.
32394 (LOAD_REGS_TYPES_3): Likewise.
32395 (LOAD_REGS_TYPES_4): Likewise.
32396 (LOAD_REGS_TYPES_5): Likewise.
32397 (LOAD_REGS_TYPES_6): Likewise.
32398 (TYPEFY): New define.
32399 (ARGIFY): Likewise.
32400 (internal_syscall0): Likewise.
32401 (internal_syscall1): Likewise.
32402 (internal_syscall2): Likewise.
32403 (internal_syscall3): Likewise.
32404 (internal_syscall4): Likewise.
32405 (internal_syscall5): Likewise.
32406 (internal_syscall6): Likewise.
32407 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32408 (INTERNAL_SYSCALL_NCS): Remove define.
32409 (internal_syscall1): Add define.
32410
32411 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32412
32413 * math/w_remainder_compat.c: Remove duplicate inclusion of
32414 math-svid-compat.h.
32415 * math/w_remainderf_compat.c: Likewise.
32416 * math/w_remainderl_compat.c: Likewise.
32417
32418 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32419
32420 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32421
32422 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32423
32424 [BZ #21684]
32425 * math/tgmath.h (__floating_type): Simplify definitions.
32426 (__real_integer_type): New macro.
32427 (__complex_integer_type): Likewise.
32428 (__expr_is_real): Likewise.
32429 (__tgmath_real_type_sub): Update comment to describe handling of
32430 complex types.
32431 (__tgmath_complex_type_sub): New macro.
32432 (__tgmath_complex_type): Likewise.
32433 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32434 (__TGMATH_CF128): Use __expr_is_real.
32435 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32436 __expr_is_real.
32437 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32438 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32439 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32440 integer types.
32441
32442 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32443
32444 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32445 macro.
32446 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32447 alias.
32448 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32449 Likewise.
32450
32451 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32452 nanosleep_not_cancel with __nanosleep_nocancel.
32453 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32454 (__nanosleep_nocancel): New macro.
32455 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32456 function.
32457 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32458 macro.
32459 (__nanosleep_nocancel): New prototype.
32460
32461 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32462 pause_not_cancel with __pause_nocancel.
32463 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32464 (__pause_nocancel): New macro.
32465 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32466 macro.
32467 (__pause_nocancel): New prototype.
32468 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32469
32470 2017-08-22 Martin Sebor <msebor@redhat.com>
32471
32472 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32473 to return a pointer to the same type as the target function.
32474
32475 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32476
32477 [BZ #18822]
32478 [BZ #21986]
32479 * include/printf.h (__printf_fphex): Add attribute_hidden.
32480 (__guess_grouping): New prototype.
32481 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32482 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32483 libc_hidden_proto and libc_hidden_def.
32484 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32485 (__vstrfmon_l): Remove the third argument passed to
32486 __guess_grouping.
32487
32488 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32489
32490 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32491 definition for issignaling that does not rely on __MATH_TG,
32492 since __MATH_TG uses __builtin_types_compatible_p, which is only
32493 available in C mode.
32494 (CFLAGS-test-math-issignaling.cc): New variable.
32495 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32496 * math/test-math-issignaling.cc: New test for C++ implementation
32497 of type-generic issignaling.
32498 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32499 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32500 options of test-math-issignaling on powerpc64le.
32501
32502 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32503
32504 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32505 building libc.a.
32506 (hidden_proto): Likewise.
32507 (hidden_tls_proto): Likewise.
32508 (__hidden_proto): Likewise.
32509
32510 2017-08-22 Florian Weimer <fweimer@redhat.com>
32511
32512 math: Statically link tests of internal functionality.
32513 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32514 atest-exp2.
32515 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32516 (gmp-objs): Remove assignment.
32517 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32518
32519 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32520
32521 [BZ #21987]
32522 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32523 and copy to ...
32524 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32525 ... here.
32526 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32527 ... and here.
32528
32529 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32530 variable definitions above inclusion of ../Rules.
32531
32532 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32533
32534 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32535 case calling __builtin_unreachable.
32536
32537 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32538
32539 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32540 __waitpid_nocancel.
32541 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32542 (__waitpid_nocancel): New macro.
32543 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32544 macro.
32545 (__waitpid_nocancel): Replace macro with a function.
32546 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32547 function.
32548
32549 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32550 __fcntl_nocancel.
32551 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32552 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32553
32554 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32555 __writev_nocancel_nostatus.
32556 (write_call_graph): Likewise.
32557 (write_bb_counts): Likewise.
32558 * resolv/herror.c (herror): Likewise.
32559 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32560 macro.
32561 (__writev_nocancel_nostatus): New macro.
32562 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32563 Remove macro.
32564 (__writev_nocancel_nostatus): New function.
32565
32566 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32567
32568 Revert:
32569 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32570
32571 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32572 building libc.a.
32573 (hidden_proto): Likewise.
32574 (hidden_tls_proto): Likewise.
32575 (__hidden_proto): Likewise.
32576
32577 [BZ #21973]
32578 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32579 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32580 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32581 Likewise.
32582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32583 Likewise.
32584 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32585 Likewise.
32586 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32587 Likewise.
32588 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32589 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32590 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32591 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32592 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32593 GLIBC_2.0 sqrtl symbol.
32594
32595 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32596 [__USE_MISC] (_LIB_VERSION): Likewise.
32597 [__USE_MISC] (struct exception): Likewise.
32598 [__USE_MISC] (matherr): Likewise.
32599 [__USE_MISC] (DOMAIN): Likewise.
32600 [__USE_MISC] (SING): Likewise.
32601 [__USE_MISC] (OVERFLOW): Likewise.
32602 [__USE_MISC] (UNDERFLOW): Likewise.
32603 [__USE_MISC] (TLOSS): Likewise.
32604 [__USE_MISC] (PLOSS): Likewise.
32605 [__USE_MISC] (HUGE): Likewise.
32606 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32607 * math/math-svid-compat.h: New file.
32608 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32609 and matherrl.
32610 * include/math.h [!_ISOMAC] (__matherr): Remove.
32611 * manual/arith.texi (FP Exceptions): Do not document matherr.
32612 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32613 (tests-internal): New variable.
32614 (install-lib): Do not add libieee.a.
32615 (non-lib.a): Likewise.
32616 (extra-objs): Do not add libieee.a and ieee-math.o.
32617 (CPPFLAGS-s_lib_version.c): Remove variable.
32618 ($(objpfx)libieee.a): Remove rule.
32619 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32620 * math/ieee-math.c: Remove.
32621 * math/libm-test-support.c (matherr): Remove.
32622 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32623 and license notices. Include <math-svid-compat.h> and
32624 <shlib-compat.h>.
32625 (matherr): Undefine as macro. Use compat_symbol_reference.
32626 (_LIB_VERSION): Likewise.
32627 * math/test-matherr-2.c: New file.
32628 * math/test-matherr-3.c: Likewise.
32629 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32630 declaration.
32631 (__kernel_standard_f): Likewise.
32632 (__kernel_standard_l): Likewise.
32633 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32634 <math_private.h>. Include <math-svid-compat.h>.
32635 (_LIB_VERSION): Undefine as macro.
32636 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32637 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32638 [LIBM_SVID_COMPAT], use compat_symbol.
32639 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32640 <math_private.h>. Include <math-svid-compat.h>.
32641 (matherr): Undefine as macro.
32642 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32643 compat_symbol.
32644 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32645 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32646 compat_symbol_reference.
32647 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32648 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32649 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32650 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32651 (MATHERR_D): Remove declaration.
32652 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32653 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32654 [LIBM_BUILD] (pmatherrf): Likewise.
32655 [LIBM_BUILD] (pmatherr): Likewise.
32656 [LIBM_BUILD] (pmatherrl): Likewise.
32657 (DOMAIN): Likewise.
32658 (SING): Likewise.
32659 (OVERFLOW): Likewise.
32660 (UNDERFLOW): Likewise.
32661 (TLOSS): Likewise.
32662 (PLOSS): Likewise.
32663 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32664 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32665 compat_symbol.
32666 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32667 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32668 compat_symbol.
32669 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32670 * math/w_acos_compat.c: Likewise.
32671 * math/w_acosf_compat.c: Likewise.
32672 * math/w_acosh_compat.c: Likewise.
32673 * math/w_acoshf_compat.c: Likewise.
32674 * math/w_acoshl_compat.c: Likewise.
32675 * math/w_acosl_compat.c: Likewise.
32676 * math/w_asin_compat.c: Likewise.
32677 * math/w_asinf_compat.c: Likewise.
32678 * math/w_asinl_compat.c: Likewise.
32679 * math/w_atan2_compat.c: Likewise.
32680 * math/w_atan2f_compat.c: Likewise.
32681 * math/w_atan2l_compat.c: Likewise.
32682 * math/w_atanh_compat.c: Likewise.
32683 * math/w_atanhf_compat.c: Likewise.
32684 * math/w_atanhl_compat.c: Likewise.
32685 * math/w_cosh_compat.c: Likewise.
32686 * math/w_coshf_compat.c: Likewise.
32687 * math/w_coshl_compat.c: Likewise.
32688 * math/w_exp10_compat.c: Likewise.
32689 * math/w_exp10f_compat.c: Likewise.
32690 * math/w_exp10l_compat.c: Likewise.
32691 * math/w_exp2_compat.c: Likewise.
32692 * math/w_exp2f_compat.c: Likewise.
32693 * math/w_exp2l_compat.c: Likewise.
32694 * math/w_fmod_compat.c: Likewise.
32695 * math/w_fmodf_compat.c: Likewise.
32696 * math/w_fmodl_compat.c: Likewise.
32697 * math/w_hypot_compat.c: Likewise.
32698 * math/w_hypotf_compat.c: Likewise.
32699 * math/w_hypotl_compat.c: Likewise.
32700 * math/w_j0_compat.c: Likewise.
32701 * math/w_j0f_compat.c: Likewise.
32702 * math/w_j0l_compat.c: Likewise.
32703 * math/w_j1_compat.c: Likewise.
32704 * math/w_j1f_compat.c: Likewise.
32705 * math/w_j1l_compat.c: Likewise.
32706 * math/w_jn_compat.c: Likewise.
32707 * math/w_jnf_compat.c: Likewise.
32708 * math/w_jnl_compat.c: Likewise.
32709 * math/w_lgamma_main.c: Likewise.
32710 * math/w_lgamma_r_compat.c: Likewise.
32711 * math/w_lgammaf_main.c: Likewise.
32712 * math/w_lgammaf_r_compat.c: Likewise.
32713 * math/w_lgammal_main.c: Likewise.
32714 * math/w_lgammal_r_compat.c: Likewise.
32715 * math/w_log10_compat.c: Likewise.
32716 * math/w_log10f_compat.c: Likewise.
32717 * math/w_log10l_compat.c: Likewise.
32718 * math/w_log2_compat.c: Likewise.
32719 * math/w_log2f_compat.c: Likewise.
32720 * math/w_log2l_compat.c: Likewise.
32721 * math/w_log_compat.c: Likewise.
32722 * math/w_logf_compat.c: Likewise.
32723 * math/w_logl_compat.c: Likewise.
32724 * math/w_pow_compat.c: Likewise.
32725 * math/w_powf_compat.c: Likewise.
32726 * math/w_powl_compat.c: Likewise.
32727 * math/w_remainder_compat.c: Likewise.
32728 * math/w_remainderf_compat.c: Likewise.
32729 * math/w_remainderl_compat.c: Likewise.
32730 * math/w_scalb_compat.c: Likewise.
32731 * math/w_scalbf_compat.c: Likewise.
32732 * math/w_scalbl_compat.c: Likewise.
32733 * math/w_sinh_compat.c: Likewise.
32734 * math/w_sinhf_compat.c: Likewise.
32735 * math/w_sinhl_compat.c: Likewise.
32736 * math/w_sqrt_compat.c: Likewise.
32737 * math/w_sqrtf_compat.c: Likewise.
32738 * math/w_sqrtl_compat.c: Likewise.
32739 * math/w_tgamma_compat.c: Likewise.
32740 * math/w_tgammaf_compat.c: Likewise.
32741 * math/w_tgammal_compat.c: Likewise.
32742 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32743 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32744 * sysdeps/ieee754/k_standard.c: Likewise.
32745 * sysdeps/ieee754/k_standardf.c: Likewise.
32746 * sysdeps/ieee754/k_standardl.c: Likewise.
32747 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32748 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32749 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32750 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32751 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32752 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32753 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32754 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32755 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32756 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32757 Likewise.
32758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32759 Likewise.
32760 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32761 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32762 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32763 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32764
32765 2017-08-21 Florian Weimer <fweimer@redhat.com>
32766
32767 [BZ #21864]
32768 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32769 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32770 Move before inclusion of ../Rules.
32771
32772 2017-08-21 Florian Weimer <fweimer@redhat.com>
32773
32774 [BZ #21972]
32775 * assert/assert.h (assert): Use static_cast (bool) for C++.
32776 Use the ternary operator in the warning branch for GNU C.
32777 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32778 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32779 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32780 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32781 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32782
32783 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32784
32785 [BZ #18822]
32786 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32787 (__syscall_clock_gettime): Add attribute_hidden.
32788 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32789 (__start_context): Likewise.
32790
32791 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32792
32793 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32794 building libc.a.
32795 (hidden_proto): Likewise.
32796 (hidden_tls_proto): Likewise.
32797 (__hidden_proto): Likewise.
32798
32799 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32800
32801 * include/libc-symbols.h (attribute_hidden): Enable hidden
32802 visibility in libc.a compiled with PIE.
32803
32804 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32805
32806 [BZ #18822]
32807 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32808 Add attribute_hidden.
32809
32810 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32811
32812 [BZ #21864]
32813 * Makerules (all-nonlib): Add $(others-extras).
32814 * catgets/Makefile (others-extras): New.
32815 * elf/Makefile (others-extras): Likewise.
32816 * nss/Makefile (others-extras): Likewise.
32817
32818 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32819
32820 [BZ #18822]
32821 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32822 * elf/dl-open.c: Include <libc-internal.h>.
32823 (__libc_multiple_libcs): Removed.
32824 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32825 <hp-timing.h>.
32826 * include/libc-internal.h (__libc_multiple_libcs): New.
32827 * misc/sbrk.c: Include <libc-internal.h>.
32828 (__libc_multiple_libcs): Removed.
32829
32830 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32831
32832 [BZ #18822]
32833 * grp/initgroups.c (__nss_group_database): Removed.
32834 (__nss_initgroups_database): Likewise.
32835 * nscd/gai.c (__nss_hosts_database): Likewise.
32836 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32837 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32838 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32839 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32840 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32841 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32842 attribute_hidden.
32843 * nss/nsswitch.c (__nss_database_custom): Define only if
32844 USE_NSCD is defined.
32845 (__nss_configure_lookup): Use __nss_database_custom only if
32846 USE_NSCD is defined.
32847 * nss/nsswitch.h (__nss_database_custom): Declare only if
32848 USE_NSCD is defined. Add attribute_hidden.
32849 (__nss_setent): Add attribute_hidden.
32850 (__nss_endent): Likewise.
32851 (__nss_getent_r): Likewise.
32852 (__nss_getent): Likewise.
32853 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32854
32855 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32856
32857 [BZ #18822]
32858 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32859 libc_hidden_proto and libc_hidden_def.
32860
32861 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32862
32863 [BZ #18822]
32864 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32865 Add libc_hidden_proto.
32866 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32867 Add libc_hidden_def.
32868
32869 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32870
32871 [BZ #21974]
32872 * gmon/Makefile (routines): Remove bb_init_func and
32873 bb_exit_func.
32874 (elide-routines.os): Removed.
32875 * gmon/bb_exit_func.c: Likewise.
32876 * gmon/bb_init_func.c: Likewise.
32877 * include/sys/gmon.h (__bb): Likewise.
32878 (__bb_init_func): Likewise.
32879 (__bb_exit_func): Likewise.
32880 * sysdeps/alpha/bb_init_func.S: Likewise.
32881
32882 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32883
32884 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32885 * include/setjmp.h (____longjmp_chk): Here. Add
32886 attribute_hidden.
32887
32888 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32889
32890 [BZ #18822]
32891 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32892 attribute_hidden.
32893 (__strspn_sse2): Likewise.
32894
32895 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32896
32897 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32898 (close_not_cancel_no_status): Likewise.
32899 (__close_nocancel): New macro.
32900 (__close_nocancel_nostatus): Likewise.
32901 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32902 macro.
32903 (close_not_cancel): Likewise.
32904 (close_not_cancel_no_status): Likewise.
32905 (__close_nocancel): New prototype.
32906 (__close_nocancel_nostatus): New function.
32907 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32908 * catgets/open_catalog.c (__open_catalog): Replace
32909 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32910 * gmon/gmon.c (write_gmon): Likewise.
32911 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32912 * intl/loadmsgcat.c (close): Likewise.
32913 * io/ftw.c (open_dir_stream): Likewise.
32914 (ftw_startup): Likewise.
32915 * libio/fileops.c (_IO_file_open): Likewise.
32916 (_IO_file_close_mmap): Likewise.
32917 (_IO_file_close): Likewise.
32918 * libio/iopopen.c (_IO_dup2): Likewise.
32919 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32920 * locale/loadlocale.c (_nl_load_locale): Likewise.
32921 * login/utmp_file.c (pututline_file): Likewise.
32922 (endutent_file): Likewise.
32923 * misc/daemon.c (daemon): Likewise.
32924 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32925 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32926 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32927 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32928 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32929 * nscd/nscd_helper.c (open_socket): Likewise.
32930 (__nscd_open_socket): Likewise.
32931 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32932 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32933 (__nscd_innetgr): Likewise.
32934 * nss/nss_db/db-open.c (internal_setent): Likewise.
32935 * resolv/res-close.c (__res_iclose): Likewise.
32936 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32937 * sysdeps/posix/closedir.c (__closedir): Likewise.
32938 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32939 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32940 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32941 (opendir_tail): Likewise.
32942 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32943 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32944 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32945 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32946 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32947 (gethostid): Likewise.
32948 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32949 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32950 Likewise.
32951 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32952 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32953 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32954 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32955 Likewise.
32956 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32957 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32958 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32959 Likewise.
32960 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32961 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32962 Likewise.
32963 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32964 Likewise.
32965 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32966 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32967 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32968 __close_nocancel.
32969
32970 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32971 (openat_not_cancel_3): Likewise.
32972 (openat64_not_cancel_3): Likewise).
32973 (openat_not_cancel_3): Likewise).
32974 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32975 macro.
32976 (openat_not_cancel_3): Likewise.
32977 (openat64_not_cancel): Likewise.
32978 (openat64_not_cancel_3): Likewise.
32979 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32980 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32981 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32982 __open{64}_nocancel.
32983 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32984 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32985 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32986
32987 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32988
32989 [BZ #18822]
32990 * include/argz.h (__argz_create_sep): New function prototype.
32991 (__argz_append): Likewise.
32992 (__argz_add): Likewise.
32993 (__argz_add_sep): Likewise.
32994 (__argz_delete): Likewise.
32995 (__argz_insert): Likewise.
32996 (__argz_replace): Likewise.
32997 * string/argz.h (__argz_create_sep): Removed.
32998 (__argz_append): Likewise.
32999 (__argz_add): Likewise.
33000 (__argz_add_sep): Likewise.
33001 (__argz_delete): Likewise.
33002 (__argz_insert): Likewise.
33003 (__argz_replace): Likewise.
33004
33005 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33006
33007 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33008 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33009 (GNU_PROPERTY_STACK_SIZE): Likewie.
33010 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33011 (GNU_PROPERTY_LOPROC): Likewise.
33012 (GNU_PROPERTY_HIPROC): Likewise.
33013 (GNU_PROPERTY_LOUSER): Likewise.
33014 (GNU_PROPERTY_HIUSER): Likewise.
33015 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33016 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33017 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33018 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33019 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33020 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33021 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33022 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33023 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33024 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33025 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33026 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33027 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33028 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33029 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33030 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33031 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33032 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33033 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33034 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33035 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33036 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33037 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33038
33039 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33040
33041 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33042 in C++ mode.
33043
33044 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33045
33046 [BZ #21930]
33047 * math/math.h (isinf): Check if in C or C++ mode before using
33048 __builtin_types_compatible_p, since this is a C mode feature.
33049
33050 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33051
33052 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33053 (__write_nocancel): New macro.
33054 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33055 Rewrite as a function prototype.
33056 (write_not_cancel): Remove macro.
33057 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33058 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33059 (write_gmon): Likewise.
33060 * libio/fileops.c (_IO_new_file_write): Likewise.
33061 * login/utmp_file.c (pututline_file): Likewise.
33062 (updwtmp_file): Likewise.
33063 * stdio-common/psiginfo.c (psiginfo): Likewise.
33064 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33065 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33066 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33067 Likewise.
33068 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33069 Likewise.
33070
33071 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33072 (__read_nocancel): New macro.
33073 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33074 __read_nocancel.
33075 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33076 macro.
33077 (__read_nocancel): New prototype.
33078 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33079 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33080 with __read_nocancel.
33081 * intl/loadmsgcat.c (read): Likewise.
33082 * libio/fileops.c (_IO_file_read): Likewise.
33083 * locale/loadlocale.c (_nl_load_locale): Likewise.
33084 * login/utmp_file.c (getutent_r_file): Likewise.
33085 (internal_getut_r): Likewise.
33086 (getutline_r_file): Likewise.
33087 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33088 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33089 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33090 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33091 Likewise.
33092 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33093 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33094 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33095 Likewise.
33096 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33097 Likewise.
33098 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33099 Likewise.
33100 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33101 Likewise.
33102 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33103
33104 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33105
33106 [BZ #21966]
33107 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33108 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33109 usable.
33110
33111 2017-08-17 DJ Delorie <dj@redhat.com>
33112
33113 * bug17079.c: Update to new test harness.
33114 * test-digits-dots.c: Likewise.
33115 * test-netdb.c: Likewise.
33116 * tst-field.c: Likewise.
33117 * tst-nss-getpwent.c: Likewise.
33118 * tst-nss-static.c: Likewise.
33119 * tst-nss-test1.c: Likewise.
33120 * tst-nss-test2.c: Likewise.
33121 * tst-nss-test3.c: Likewise.
33122 * tst-nss-test4.c: Likewise.
33123 * tst-nss-test5.c: Likewise.
33124
33125 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33126
33127 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33128 (open_not_cancel_2): Likewise.
33129 (open_nocancel): New macro.
33130 (open64_nocancel): Likewise.
33131 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33132 (open_not_cancel_2): Likewise.
33133 (__open_nocancel): New prototype.
33134 (__open64_nocancel): Likewise.
33135 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33136 __open_nocancel.
33137 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33138 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33139 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33140 with __open_nocancel.
33141 * csu/check_fds.c (check_one_fd): Likewise.
33142 * gmon/gmon.c (write_gmon): Likewise.
33143 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33144 * intl/loadmsgcat.c (open): Likewise.
33145 * libio/fileops.c (_IO_file_open): Likewise.
33146 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33147 * locale/loadlocale.c (_nl_load_locale): Likewise.
33148 * login/utmp_file.c (setutent_file): Likewise.
33149 * misc/daemon.c (daemon): Likewise.
33150 * nss/nss_db/db-open.c (internal_setent): Likewise.
33151 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33152 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33153 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33154 (__opendir): Likewise.
33155 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33156 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33157 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33158 (gethostid): Likewise.
33159 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33160 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33161 Likewise.
33162 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33163 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33164 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33165 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33166 Likewise.
33167 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33168 Likewise.
33169 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33170 Likewise.
33171 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33172 Likewise.
33173 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33174 Likewise.
33175 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33176 Likewise.
33177 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33178 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33179
33180 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33181
33182 * benchtests/bench-skeleton.c (main): Add support for
33183 latency benchmarking.
33184 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33185
33186 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33187
33188 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33189 the startup object.
33190
33191 2017-08-17 Florian Weimer <fweimer@redhat.com>
33192
33193 * include/sys/socket.h (__opensock): Remove internal_function.
33194 * socket/opensock.c (__opensock): Likewise.
33195 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33196
33197 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33198
33199 [BZ #21944]
33200 * signal/bits/types/__sigval_t.h: New file.
33201 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33202 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33203 and define sigval_t using __sigval_t.
33204 * include/bits/types/__sigval_t.h: New file.
33205 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33206 instead of <bits/types/__sigval_t.h>.
33207 (struct sigevent): Use __sigval_t instead of sigval_t.
33208 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33209 instead of <bits/types/__sigval_t.h>.
33210 (siginfo_t): Use __sigval_t instead of sigval_t.
33211 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33212 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33213 (struct sigevent): Use __sigval_t instead of sigval_t.
33214 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33215 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33216 (siginfo_t): Use __sigval_t instead of sigval_t.
33217 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33218
33219 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33220
33221 * NEWS: Remove "[Add new features here]" for 2.27.
33222
33223 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33224
33225 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33226 libc.so.
33227
33228 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33229
33230 * NEWS: Mention x86-64 FMA optimization.
33231
33232 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33233
33234 [BZ #21912]
33235 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33236 Add e_expf-fma.
33237 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33238 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33239 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33240
33241 2017-08-16 Andreas Schwab <schwab@suse.de>
33242
33243 [BZ #16750]
33244 CVE-2009-5064
33245 * elf/ldd.bash.in: Never run file directly.
33246
33247 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33248
33249 [BZ #21955]
33250 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33251 (L(SP_INF_0)): Likewise.
33252
33253 2017-08-15 Florian Weimer <fweimer@redhat.com>
33254
33255 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33256 run-built-tests.
33257
33258 2017-08-15 Florian Weimer <fweimer@redhat.com>
33259
33260 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33261 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33262 BROKEN_THREAD_SIGNALS code.
33263 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33264 request_list): Remove caller_pid member used for
33265 BROKEN_THREAD_SIGNALS.
33266 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33267 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33268 Remove BROKEN_THREAD_SIGNALS support.
33269 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33270 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33271
33272 2017-08-15 Florian Weimer <fweimer@redhat.com>
33273
33274 * gmon/Makefile (tests): Add tst-gmon.
33275 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33276 Set.
33277 (tests-special): Add tst-gmon-prof.out.
33278 (tst-gmon.out): Depend on clean-tst-gmon-data.
33279 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33280 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33281 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33282 startup object.
33283 * aclocal.m4 (GPROF): Set and substitute.
33284 * config.amke.in (GPROF): Set.
33285 * configure: Regenerate.
33286
33287 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33288
33289 * elf/elf.h A (NT_PPC_TAR): New macro.
33290 (NT_PPC_PPR): Likewise.
33291 (NT_PPC_DSCR): Likewise.
33292 (NT_PPC_EBB): Likewise.
33293 (NT_PPC_PMU): Likewise.
33294 (NT_PPC_TM_CGPR): Likewise.
33295 (NT_PPC_TM_CFPR): Likewise.
33296 (NT_PPC_TM_CVMX): Likewise.
33297 (NT_PPC_TM_CVSX): Likewise.
33298 (NT_PPC_TM_SPR): Likewise.
33299 (NT_PPC_TM_CTAR): Likewise.
33300 (NT_PPC_TM_CPPR): Likewise.
33301 (NT_PPC_TM_CDSCR): Likewise.
33302
33303 2017-08-15 Florian Weimer <fweimer@redhat.com>
33304
33305 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33306 regparm (2) instead of internal_function.
33307 (_MCOUNT_DECL): Adjust.
33308
33309 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33310
33311 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33312 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33313
33314 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33315
33316 * conform/data/sys/wait.h-data (si_value): Do not expect for
33317 XPG42.
33318
33319 2017-08-14 Florian Weimer <fweimer@redhat.com>
33320
33321 [BZ #21962]
33322 NSS: Create stubs for accidentally exported lookup functions.
33323 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33324 Remove declaration.
33325 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33326 (ether_hostton): Call __nss_ethers_lookup2 instead.
33327 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33328 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33329 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33330 (setup): Call __nss_netgroup_lookup2 instead.
33331 * nss/Makefile (routines): Add compat-lookup.
33332 * nss/Versions (GLIBC_2.27): Add symbol version.
33333 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33334 (DB_COMPAT_FCT): Remove.
33335 * nss/compat-lookup.c: New file.
33336 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33337 from databases.def.
33338 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33339 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33340 (netname2user): Call __nss_publickey_lookup2 instead.
33341 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33342 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33343 instead.
33344
33345 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33346 Sergei Trofimovich <slyfox@inbox.ru>
33347
33348 [BZ #21908]
33349 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33350 Rename to MMAP2_PAGE_UNIT.
33351 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33352 __OFF_T_MATCHES_OFF64_T is not defined.
33353 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33354 uint64_t.
33355 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33356 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33357
33358 2017-08-14 Florian Weimer <fweimer@redhat.com>
33359
33360 i386: Do not set internal_function.
33361 * config.h.in (USE_REGPARMS, internal_function): Remove.
33362 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33363 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33364
33365 2017-08-14 Florian Weimer <fweimer@redhat.com>
33366
33367 * elf/dl-init.c (_dl_init): Remove internal_function.
33368 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33369 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33370
33371 2017-08-14 Florian Weimer <fweimer@redhat.com>
33372
33373 * elf/rtld.c (_dl_start): Remove internal_function.
33374 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33375 _dl_start.
33376
33377 2017-08-14 Florian Weimer <fweimer@redhat.com>
33378
33379 * elf/dl-fini.c (_dl_fini): Remove internal_function
33380 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33381
33382 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33383
33384 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33385 (bit_cpu_SHSTK): Likewise.
33386 (index_cpu_IBT): Likewise.
33387 (index_cpu_SHSTK): Likewise.
33388 (reg_IBT): Likewise.
33389 (reg_SHSTK): Likewise.
33390 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33391 Handle index_cpu_IBT and index_cpu_SHSTK.
33392
33393 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33394
33395 [BZ #19982]
33396 * po/fr.po: Fix spelling mistake.
33397
33398 2017-08-13 Florian Weimer <fweimer@redhat.com>
33399
33400 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33401 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33402 (_dl_catch_error, _dl_receive_error): Likewise.
33403 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33404 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33405 (_dl_deallocate_tls): Likewise.
33406 * include/dlfcn.h (_dl_addr): Likewise.
33407 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33408 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33409 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33410 Likewise.
33411
33412 2017-08-13 Florian Weimer <fweimer@redhat.com>
33413
33414 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33415 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33416 internal_function.
33417 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33418
33419 2017-08-13 Florian Weimer <fweimer@redhat.com>
33420
33421 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33422 internal_function.
33423 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33424 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33425 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33426 internal_function from _dl_make_stack_executable_hook member.
33427 (_dl_make_stack_executable): Remove internal_function.
33428 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33429 Likewise.
33430 * sysdeps/unix/sysv/linux/dl-execstack.c
33431 (_dl_make_stack_executable): Likewise.
33432
33433 2017-08-13 Florian Weimer <fweimer@redhat.com>
33434
33435 * sysdeps/unix/sysv/linux/netlinkaccess.h
33436 (__netlink_assert_response): Remove internal_function.
33437 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33438 (__netlink_assert_response): Likewise.
33439
33440 2017-08-13 Florian Weimer <fweimer@redhat.com>
33441
33442 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33443 internal_function.
33444 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33445
33446 2017-08-13 Florian Weimer <fweimer@redhat.com>
33447
33448 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33449 internal_function.
33450 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33451 * inet/netgroup.h (__internal_setnetgrent)
33452 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33453 * inet/getnetgrent_r.c (__internal_setnetgrent)
33454 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33455 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33456 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33457 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33458 * nss/nsswitch.h (db_lookup_function): Likewise.
33459
33460 2017-08-13 Florian Weimer <fweimer@redhat.com>
33461
33462 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33463 Remove internal_function.
33464 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33465 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33466 message argument on the stack.
33467 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33468 Likeweise.
33469
33470 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33471
33472 Adapt test case data to the changes in the thousands
33473 separators.
33474
33475 [BZ #20756]
33476 * localedata/tst-langinfo.sh: Adapt test case data.
33477 * stdlib/tst-strfmon_l.c: Likewise.
33478 * stdlib/tst-strtod4.c: Likewise.
33479 * stdlib/tst-strtod5i.c: Likewise.
33480
33481 2017-08-11 Florian Weimer <fweimer@redhat.com>
33482
33483 [BZ #21242]
33484 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33485 Suppress pedantic warning resulting from statement expression.
33486 (__ASSERT_FUNCTION): Add missing __extension__.
33487
33488 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33489
33490 * benchtests/bench-memmove-large.c: Print output in JSON
33491 format.
33492 * benchtests/bench-memmove.c: Likewise.
33493
33494 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33495 * benchtests/bench-memchr.c (do_one_test): Likewise.
33496 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33497 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33498 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33499 * benchtests/bench-memmove.c (do_one_test): Likewise.
33500 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33501 * benchtests/bench-memset.c (do_one_test): Likewise.
33502 * benchtests/bench-string.h (test_init): Remove memsets.
33503
33504 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33505
33506 * manual/lang.texi
33507 (Computing the Width of an Integer Data Type): Rename section to
33508 "Width of an Integer Type". Remove inaccurate statement regarding
33509 lack of C language facilities for determining width of integer
33510 types, and reorder content to improve flow and context of
33511 discussion.
33512
33513 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33514
33515 * lang.texi (va_copy): Change standard from ISO to C99.
33516 (__va_copy): Add standard and header annotation.
33517 Update description for clarity of origins and current use.
33518
33519 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33520
33521 [BZ #21941]
33522 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33523 xssqrtqp requires operands to be in Vector Registers
33524 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33525 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33526 (__ieee754_sqrtf128): Likewise.
33527
33528 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33529
33530 * sysdeps/aarch64/memcmp.S (memcmp):
33531 Rewrite of optimized memcmp.
33532
33533 2017-08-10 Florian Weimer <fweimer@redhat.com>
33534
33535 Introduce ld.so exceptions.
33536 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33537 (_dl_exception_create, _dl_exception_create_format)
33538 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33539 (_dl_catch_exception): Declare.
33540 (_dl_catch_error): Update comment.
33541 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33542 errstring, malloced members with exception member.
33543 (_dl_out_of_memory): Remove.
33544 (fatal_error): New function, extracted from _dl_signal_error.
33545 (_dl_signal_exception, _dl_signal_cexception): New functions.
33546 (_dl_signal_error): Call _dl_exception_create to allocate an
33547 exception object.
33548 (_dl_catch_exception): New function, based on _dl_catch_error.
33549 (_dl_catch_error): Implement using _dl_catch_exception.
33550 * elf/dl-exception.c: New file.
33551 * elf/Makefile (dl-routines): Add dl-exception.
33552 (elide-routines.os): Likewise.
33553 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33554 _dl_exception_create_format, _dl_exception_free.
33555 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33556 _dl_signal_exception.
33557 * elf/dl-lookup.c (make_string): Remove.
33558 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33559 _dl_signal_cexception, _dl_exception_free.
33560 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33561 _dl_signal_exception.
33562 * elf/dl-sym.c (do_sym): Likewise.
33563 * elf/dl-version.c (make_string): Remove.
33564 (match_symbol): Use _dl_exception_create_format,
33565 _dl_signal_cexception, _dl_exception_free.
33566 (_dl_check_map_versions): Likewise.
33567 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33568 _dl_catch_exception.
33569 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33570 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33571 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33572 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33573 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33574 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33575 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33576 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33577 Likewise.
33578 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33580 (ld.so): Likewise.
33581 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33582 (ld.so): Likewise.
33583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33584 Likewise.
33585 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33586 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33587 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33588 Likewise.
33589 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33590 Likewise.
33591 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33592
33593 2017-08-10 Florian Weimer <fweimer@redhat.com>
33594
33595 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33596 attribute_hidden, internal_function.
33597 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33598 internal_function.
33599
33600 2017-08-10 Florian Weimer <fweimer@redhat.com>
33601
33602 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33603 function which calls __builtin_unreachable.
33604
33605 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33606
33607 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33608 Indian monetary formatting
33609 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33610 test cases.
33611
33612 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33613
33614 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33615 Fix typo in comment.
33616
33617 [BZ #21928]
33618 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33619 PTRACE_SEIZE_DEVEL): Remove.
33620 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33621 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33622 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33623 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33624 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33625
33626 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33627
33628 * posix/bits/types.h (__qaddr_t): Remove.
33629
33630 [BZ #21457]
33631 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33632 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33633 __glibc_reserved1.
33634 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33635 (ucontext_t): Use __ctx with uc_flags.
33636 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33637 (__ctxt): Likewise.
33638 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33639 __glibc_reserved1.
33640 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33641 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33642 __glibc_reserved1.
33643 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33644 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33645 __glibc_reserved1.
33646 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33647 macro.
33648 (ucontext_t): Use __ctx with uc_flags.
33649 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33650 (ucontext_t): Use __ctx with uc_flags.
33651 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33652 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33653 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33654 (ucontext_t): Use __ctx with uc_flags.
33655 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33656 undefine further down.
33657 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33658 __glibc_reserved1.
33659 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33660 undefine further down.
33661 (ucontext_t): Use __ctx with uc_flags.
33662 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33663 undefine further down.
33664 (ucontext_t): Use __ctx with uc_flags.
33665 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33666 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33667 Rename uc_pad to __glibc_reserved1.
33668 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33669 undefine further down.
33670 (ucontext_t): Use __ctx with uc_flags.
33671 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33672 further down.
33673 (ucontext_t): Use __ctx with uc_flags.
33674 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33675 __ctx with uc_flags.
33676 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33677 (ucontext_t): Use __ctx with uc_flags.
33678 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33679 __ctx with uc_flags.
33680
33681 2017-08-09 Florian Weimer <fweimer@redhat.com>
33682
33683 [BZ #21932]
33684 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33685 before early return.
33686
33687 2017-08-09 Andreas Schwab <schwab@suse.de>
33688
33689 [BZ #21041]
33690 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33691 renamed alias.
33692
33693 [BZ #21041]
33694 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33695 tst-compat-forwarder.
33696 (modules-names): Add tst-compat-forwarder-mod.
33697 ($(objpfx)tst-compat-forwarder): Depend on
33698 $(objpfx)tst-compat-forwarder-mod.so.
33699 * nptl/tst-compat-forwarder.c: New file.
33700 * nptl/tst-compat-forwarder-mod.c: New file.
33701
33702 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33703
33704 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33705 comments.
33706
33707 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33708 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33709 memcpy_falkor.
33710 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33711 Bump.
33712 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33713 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33714 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33715 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33716 Add falkor.
33717 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33718 New macro.
33719
33720 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33721
33722 [BZ #759]
33723 * manual/setjmp.texi (getcontex): Document uc_stack value
33724 compatibility differences.
33725
33726 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33727
33728 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33729 (old_malloc_hook): Likewise.
33730 (old_memalign_hook): Likewise.
33731 (old_realloc_hook): Likewise.
33732 (struct hdr): Likewise.
33733 (flood): Likewise.
33734 (freehook): Likewise.
33735 (mallochook): Likewise.
33736 (memalignhook): Likewise.
33737 (reallochook): Likewise.
33738 (mprobe): Likewise.
33739 * malloc/mtrace.c (mallwatch): Likewise.
33740 (tr_old_free_hook): Likewise.
33741 (tr_old_malloc_hook): Likewise.
33742 (tr_old_realloc_hook): Likewise.
33743 (tr_old_memalign_hook): Likewise.
33744 (tr_where): Likewise.
33745 (lock_and_info): Likewise.
33746 (tr_freehook): Likewise.
33747 (tr_mallochook): Likewise.
33748 (tr_reallochook): Likewise.
33749 (tr_memalignhook): Likewise.
33750 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33751 * misc/mmap.c (__mmap): Likewise.
33752 * misc/mmap64.c (__mmap64): Likewise.
33753 * misc/mprotect.c (__mprotect): Likewise.
33754 * misc/msync.c (msync): Likewise.
33755 * misc/munmap.c (__munmap): Likewise.
33756 * posix/posix_madvise.c (posix_madvise): Likewise.
33757 * socket/send.c (__send): Likewise.
33758 * socket/sendto.c (__sendto): Likewise.
33759 * socket/setsockopt.c (__setsockopt): Likewise.
33760 * string/memcmp.c (__ptr_t): Remove macro.
33761 (MEMCMP): Use void * instead of ptr_t.
33762 * string/memrchr.c (__ptr_t): Remove macro.
33763 (__memrchr): Use void * instead of ptr_t.
33764 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33765 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33766 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33767 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33768 * sysdeps/mach/msync.c (msync): Likewise.
33769 * sysdeps/mach/munmap.c (__munmap): Likewise.
33770 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33771 Likewise.
33772 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33773 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33774 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33775 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33776 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33777 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33778 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33779 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33780 Likewise.
33781 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33782 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33783 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33784 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33785 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33786 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33787 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33788 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33789 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33790 Likewise.
33791 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33792 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33793 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33794 (MEMCMP): Use void * instead of ptr_t.
33795 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33796 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33797
33798 2017-08-08 Florian Weimer <fweimer@redhat.com>
33799
33800 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33801 return statement.
33802
33803 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33804
33805 [BZ #21913]
33806 * csu/libc-tls.c: Include <startup.h> first.
33807 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33808 * elf/dl-tunables.c: Include <startup.h> first.
33809 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33810 * sysdeps/generic/startup.h: New file.
33811 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33812 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33813 (I386_USE_SYSENTER): New. Defined to 0.
33814
33815 2017-08-08 Andreas Schwab <schwab@suse.de>
33816
33817 [BZ #21041]
33818 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33819 * nptl/pt-system.c (system): Likewise.
33820
33821 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33822
33823 [BZ #21780]
33824 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33825 EOPNOTSUPP.
33826 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33827 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33828 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33829 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33830 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33831 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33832 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33833
33834 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33835
33836 [BZ #21899]
33837 * bits/sigaction.h (struct sigaction): Define sa_handler and
33838 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33839 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33840 [__USE_XOPEN_EXTENDED].
33841 (SA_RESTART): Likewise.
33842 (SA_NODEFER): Likewise.
33843 (SA_RESETHAND): Likewise.
33844 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33845 (struct sigaction): Define sa_handler and sa_sigaction using union
33846 also for [__USE_XOPEN_EXTENDED].
33847 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33848 [__USE_XOPEN_EXTENDED].
33849 (SA_RESTART): Likewise.
33850 (SA_NODEFER): Likewise.
33851 (SA_RESETHAND): Likewise.
33852 * sysdeps/unix/sysv/linux/bits/sigaction.h
33853 (struct sigaction): Define sa_handler and sa_sigaction using union
33854 also for [__USE_XOPEN_EXTENDED].
33855 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33856 [__USE_XOPEN_EXTENDED].
33857 (SA_RESTART): Likewise.
33858 (SA_NODEFER): Likewise.
33859 (SA_RESETHAND): Likewise.
33860 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33861 (struct sigaction): Define sa_handler and sa_sigaction using union
33862 also for [__USE_XOPEN_EXTENDED].
33863 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33864 [__USE_XOPEN_EXTENDED].
33865 (SA_RESTART): Likewise.
33866 (SA_NODEFER): Likewise.
33867 (SA_RESETHAND): Likewise.
33868 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33869 (struct sigaction): Define sa_handler and sa_sigaction using union
33870 also for [__USE_XOPEN_EXTENDED].
33871 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33872 [__USE_XOPEN_EXTENDED].
33873 (SA_RESTART): Likewise.
33874 (SA_NODEFER): Likewise.
33875 (SA_RESETHAND): Likewise.
33876 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33877 (struct sigaction): Define sa_handler and sa_sigaction using union
33878 also for [__USE_XOPEN_EXTENDED].
33879 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33880 [__USE_XOPEN_EXTENDED].
33881 (SA_RESTART): Likewise.
33882 (SA_NODEFER): Likewise.
33883 (SA_RESETHAND): Likewise.
33884 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33885 (struct sigaction): Define sa_handler and sa_sigaction using union
33886 also for [__USE_XOPEN_EXTENDED].
33887 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33888 [__USE_XOPEN_EXTENDED].
33889 (SA_RESTART): Likewise.
33890 (SA_NODEFER): Likewise.
33891 (SA_RESETHAND): Likewise.
33892 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33893 (struct sigaction): Define sa_handler and sa_sigaction using union
33894 also for [__USE_XOPEN_EXTENDED].
33895 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33896 [__USE_XOPEN_EXTENDED].
33897 (SA_RESTART): Likewise.
33898 (SA_NODEFER): Likewise. Define directly rather than as alias.
33899 (SA_RESETHAND): Likewise.
33900 (SA_INTERRUPT): Define only for [__USE_MISC].
33901 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33902 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33903 [__USE_MISC].
33904 (SA_STACK): Define only for [__USE_MISC].
33905 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33906 (struct sigaction): Define sa_handler and sa_sigaction using union
33907 also for [__USE_XOPEN_EXTENDED].
33908 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33909 [__USE_XOPEN_EXTENDED].
33910 (SA_RESTART): Likewise.
33911 (SA_NODEFER): Likewise.
33912 (SA_RESETHAND): Likewise.
33913 (SA_NOPTRACE): Define only for [__USE_MISC].
33914
33915 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33916 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33917 (struct catalog_info): Likewise.
33918 * inet/htontest.c (lo): Likewise.
33919 (foo): Likewise.
33920 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33921 * inet/inet_net.c (inet_network): Likewise.
33922 * inet/inet_netof.c (inet_netof): Likewise.
33923 * inet/rcmd.c (__ivaliduser): Likewise.
33924 (iruserok): Likewise.
33925 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33926 * locale/programs/locale-spec.c (locale_special): Likewise.
33927 * nis/nis_findserv.c (struct findserv_req): Likewise.
33928 (__nis_findfastest_with_timeout): Likewise.
33929 * nss/test-netdb.c (test_network): Likewise.
33930 * resolv/inet_neta.c (inet_neta): Likewise.
33931 * resolv/ns_date.c (ns_datetosecs): Likewise.
33932 (SECS_PER_DAY): Likewise.
33933 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33934 Likewise.
33935 * resolv/res_comp.c (__putlong): Likewise.
33936 (__putshort): Likewise.
33937 (_getlong): Likewise.
33938 (_getshort): Likewise.
33939 * resolv/res_debug.c (p_time): Likewise.
33940 (precsize_ntoa): Likewise.
33941 (precsize_aton): Likewise.
33942 (latlon2ul): Likewise.
33943 (loc_aton): Likewise.
33944 (loc_ntoa): Likewise.
33945 * resolv/res_hconf.c (struct netaddr): Likewise.
33946 (_res_hconf_reorder_addrs): Likewise.
33947 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33948 (clnttcp_control): Likewise.
33949 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33950 (clntudp_control): Likewise.
33951 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33952 (clntunix_control): Likewise.
33953 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33954 * sunrpc/rpc/auth.h (union des_block): Likewise.
33955 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33956 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33957 (xdrrec_create): Likewise.
33958 (xdrrec_endofrecord): Likewise.
33959 (flush_out): Likewise.
33960 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33961 (xdrstdio_putlong): Likewise.
33962 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33963 Likewise.
33964
33965 * misc/sys/cdefs.h (__long_double_t): Remove.
33966 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33967 instead of __long_double_t,
33968 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33969
33970 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33971
33972 * benchtests/scripts/compare_strings.py: Avoid display error when
33973 running on a text terminal.
33974
33975 * benchtests/scripts/compare_strings.py (main): Add an
33976 optional -base option.
33977 (process_results): New argument base_func.
33978
33979 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33980 hardcoding memcpy.
33981 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33982 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33983
33984 2017-08-07 Andreas Schwab <schwab@suse.de>
33985
33986 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33987 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33988 * intl/Makefile ($(objpfx)tst-gettext.out)
33989 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33990 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33991 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33992 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33993 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33994 * posix/Makefile ($(objpfx)globtest.out)
33995 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33996 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33997 ($(objpfx)tst-printf.out): Likewise.
33998 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33999 ($(objpfx)tst-setcontext3.out): Likewise.
34000
34001 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34002
34003 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34004 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34005 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34006 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34007 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34008 and mptan-fma.
34009 (CFLAGS-doasin-fma.c): New.
34010 (CFLAGS-dosincos-fma.c): Likewise.
34011 (CFLAGS-e_asin-fma.c): Likewise.
34012 (CFLAGS-e_atan2-fma.c): Likewise.
34013 (CFLAGS-e_exp-fma.c): Likewise.
34014 (CFLAGS-e_log-fma.c): Likewise.
34015 (CFLAGS-e_pow-fma.c): Likewise.
34016 (CFLAGS-halfulp-fma.c): Likewise.
34017 (CFLAGS-mpa-fma.c): Likewise.
34018 (CFLAGS-mpatan-fma.c): Likewise.
34019 (CFLAGS-mpatan2-fma.c): Likewise.
34020 (CFLAGS-mpexp-fma.c): Likewise.
34021 (CFLAGS-mplog-fma.c): Likewise.
34022 (CFLAGS-mpsqrt-fma.c): Likewise.
34023 (CFLAGS-mptan-fma.c): Likewise.
34024 (CFLAGS-s_atan-fma.c): Likewise.
34025 (CFLAGS-sincos32-fma.c): Likewise.
34026 (CFLAGS-slowexp-fma.c): Likewise.
34027 (CFLAGS-slowpow-fma.c): Likewise.
34028 (CFLAGS-s_sin-fma.c): Likewise.
34029 (CFLAGS-s_tan-fma.c): Likewise.
34030 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34031 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34032 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34033 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34034 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34035 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34036 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34037 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34038 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34039 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34040 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34041 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34042 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34043 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34044 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34045 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34046 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34047 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34048 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34049 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34050 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34051 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34052 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34053 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34054 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34055 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34056 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34057 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34058 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34059 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34060 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34061
34062 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34063
34064 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34065 (min_of_type_f): New macro.
34066 (min_of_type_): Likewise.
34067 (min_of_type_l): Likewise.
34068 (min_of_type_f128): Likewise.
34069 (min_of_type): Define using __MATH_TG and taking an expression
34070 argument.
34071 (math_check_force_underflow): Pass expression instead of type to
34072 min_of_type.
34073 (math_check_force_underflow_nonneg): Likewise.
34074
34075 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34076
34077 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34078 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34079 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34080
34081 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34082
34083 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34084 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34085 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34086 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34087 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34088 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34089 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34090 memmove_chk-nonshared and memset_chk-nonshared
34091 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34092 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34093 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34094 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34095 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34096 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34097 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34098 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34099 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34100 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34101 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34102 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34103 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34104 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34105 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34106 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34107 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34108 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34109 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34110 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34111 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34112 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34113 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34114 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34115 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34116 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34117 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34118 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34119 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34120 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34121 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34122 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34123 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34124 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34125 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34126 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34127 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34128 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34129 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34130 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34131 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34132 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34133 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34134 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34135 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34136 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34137 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34138 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34139 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34140 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34141 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34142 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34143 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34144 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34145 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34146 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34147 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34148 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34149 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34150 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34151 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34152 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34153 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34154 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34155 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34156 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34157 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34158 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34159 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34160 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34161 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34162 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34163 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34164 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34165 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34166 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34167 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34168 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34169 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34170 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34171 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34172 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34173 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34174 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34175 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34176 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34177 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34178 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34179 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34180 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34181 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34182 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34183 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34184 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34185 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34186 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34187 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34188 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34189 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34190 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34191 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34192 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34193 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34194 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34195 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34196 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34197 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34198 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34199
34200 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34201
34202 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34203 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34204 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34205 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34206 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34207 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34208 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34209 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34210 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34211 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34212 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34213 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34214 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34215 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34216 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34217 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34218 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34219 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34220 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34221 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34222 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34223 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34224 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34225 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34226 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34227 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34228 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34229 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34230 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34231 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34232 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34233 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34234 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34235 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34236 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34237 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34238 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34239 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34240 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34241 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34242 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34243 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34244 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34245 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34246 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34247 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34248 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34249 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34250 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34251 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34252 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34253 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34254 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34255 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34256 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34257 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34258 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34259 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34260 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34261 ...
34262 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34263 Don't include <sysdep.h> nor <init-arch.h>.
34264 (_ZGVbN2v_cos): Removed.
34265 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34266 ...
34267 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34268 Don't include <sysdep.h> nor <init-arch.h>.
34269 (_ZGVdN4v_cos): Removed.
34270 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34271 ...
34272 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34273 Don't include <sysdep.h> nor <init-arch.h>.
34274 (_ZGVeN8v_cos): Removed.
34275 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34276 ...
34277 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34278 Don't include <sysdep.h> nor <init-arch.h>.
34279 (_ZGVbN2v_exp): Removed.
34280 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34281 ...
34282 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34283 Don't include <sysdep.h> nor <init-arch.h>.
34284 (_ZGVdN4v_exp): Removed.
34285 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34286 ...
34287 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34288 Don't include <sysdep.h> nor <init-arch.h>.
34289 (_ZGVeN8v_exp): Removed.
34290 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34291 ...
34292 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34293 Don't include <sysdep.h> nor <init-arch.h>.
34294 (_ZGVbN2v_log): Removed.
34295 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34296 ...
34297 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34298 Don't include <sysdep.h> nor <init-arch.h>.
34299 (_ZGVdN4v_log): Removed.
34300 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34301 ...
34302 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34303 Don't include <sysdep.h> nor <init-arch.h>.
34304 (_ZGVeN8v_log): Removed.
34305 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34306 ...
34307 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34308 Don't include <sysdep.h> nor <init-arch.h>.
34309 (_ZGVbN2vv_pow): Removed.
34310 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34311 ...
34312 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34313 Don't include <sysdep.h> nor <init-arch.h>.
34314 (_ZGVdN4vv_pow): Removed.
34315 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34316 ...
34317 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34318 Don't include <sysdep.h> nor <init-arch.h>.
34319 (_ZGVeN8vv_pow): Removed.
34320 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34321 ...
34322 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34323 Don't include <sysdep.h> nor <init-arch.h>.
34324 (_ZGVbN2v_sin): Removed.
34325 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34326 ...
34327 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34328 Don't include <sysdep.h> nor <init-arch.h>.
34329 (_ZGVbN4v_sin): Removed.
34330 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34331 ...
34332 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34333 Don't include <sysdep.h> nor <init-arch.h>.
34334 (_ZGVbN8v_sin): Removed.
34335 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34336 ...
34337 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34338 Don't include <sysdep.h> nor <init-arch.h>.
34339 (_ZGVbN2vvv_sincos): Removed.
34340 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34341 ...
34342 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34343 Don't include <sysdep.h> nor <init-arch.h>.
34344 (_ZGVdN4vvv_sincos): Removed.
34345 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34346 ...
34347 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34348 Don't include <sysdep.h> nor <init-arch.h>.
34349 (_ZGVeN8vvv_sincos): Removed.
34350 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34351 ...
34352 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34353 Don't include <sysdep.h> nor <init-arch.h>.
34354 (_ZGVeN16v_cosf): Removed.
34355 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34356 ...
34357 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34358 Don't include <sysdep.h> nor <init-arch.h>.
34359 (_ZGVbN4v_cosf): Removed.
34360 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34361 ...
34362 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34363 Don't include <sysdep.h> nor <init-arch.h>.
34364 (_ZGVdN8v_cosf): Removed.
34365 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34366 ...
34367 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34368 Don't include <sysdep.h> nor <init-arch.h>.
34369 (_ZGVeN16v_expf): Removed.
34370 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34371 ...
34372 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34373 Don't include <sysdep.h> nor <init-arch.h>.
34374 (_ZGVbN4v_expf): Removed.
34375 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34376 ...
34377 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34378 Don't include <sysdep.h> nor <init-arch.h>.
34379 (_ZGVdN8v_expf): Removed.
34380 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34381 ...
34382 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34383 Don't include <sysdep.h> nor <init-arch.h>.
34384 (_ZGVeN16v_logf): Removed.
34385 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34386 ...
34387 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34388 Don't include <sysdep.h> nor <init-arch.h>.
34389 (_ZGVbN4v_logf): Removed.
34390 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34391 ...
34392 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34393 Don't include <sysdep.h> nor <init-arch.h>.
34394 (_ZGVdN8v_logf): Removed.
34395 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34396 ...
34397 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34398 Don't include <sysdep.h> nor <init-arch.h>.
34399 (_ZGVeN16vv_powf): Removed.
34400 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34401 ...
34402 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34403 Don't include <sysdep.h> nor <init-arch.h>.
34404 (_ZGVbN4vv_powf): Removed.
34405 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34406 ...
34407 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34408 Don't include <sysdep.h> nor <init-arch.h>.
34409 (_ZGVdN8vv_powf): Removed.
34410 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34411 ...
34412 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34413 Don't include <sysdep.h> nor <init-arch.h>.
34414 (_ZGVeN16vvv_sincosf): Removed.
34415 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34416 ...
34417 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34418 Don't include <sysdep.h> nor <init-arch.h>.
34419 (_ZGVbN4vvv_sincosf): Removed.
34420 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34421 ...
34422 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34423 Don't include <sysdep.h> nor <init-arch.h>.
34424 (_ZGVdN8vvv_sincosf): Removed.
34425 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34426 ...
34427 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34428 Don't include <sysdep.h> nor <init-arch.h>.
34429 (_ZGVeN16v_sinf): Removed.
34430 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34431 ...
34432 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34433 Don't include <sysdep.h> nor <init-arch.h>.
34434 (_ZGVbN4v_sinf): Removed.
34435 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34436 ...
34437 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34438 Don't include <sysdep.h> nor <init-arch.h>.
34439 (_ZGVdN8v_sinf): Removed.
34440
34441 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34442
34443 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34444 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34445 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34446 s_rint-sse4_1 and s_rintf-sse4_1.
34447 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34448 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34449 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34450 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34451 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34452 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34453 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34454 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34455 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34456 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34457 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34458 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34459 (__ceil): Removed.
34460 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34461 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34462 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34463 (__ceilf): Removed.
34464 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34465 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34466 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34467 (__floor): Removed.
34468 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34469 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34470 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34471 (__floorf): Removed.
34472 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34473 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34474 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34475 (__nearbyint): Removed.
34476 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34477 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34478 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34479 (__nearbyintf): Removed.
34480 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34481 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34482 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34483 (__rint): Removed.
34484 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34485 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34486 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34487 (__rintf): Removed.
34488
34489 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34490
34491 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34492 SHARED. Avoid dynamic relocation against main in static PIE.
34493
34494 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34495
34496 [BZ #21815]
34497 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34498 (LDFLAGS-tst-prelink): Likewise.
34499
34500 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34501
34502 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34503 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34504 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34505 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34506 (INTERNAL_SYSCALL_NCS): Likewise.
34507 (LOADARGS_1): Likewise.
34508 (LOADARGS_5): Likewise.
34509 (RESTOREARGS_1): Likewise.
34510 (RESTOREARGS_5): Likewise.
34511
34512 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34513
34514 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34515 (MEMPCPY_SYMBOL): Likewise.
34516 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34517 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34518 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34519 in libc.a.
34520 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34521 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34522 Likewise.
34523 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34524 (__hidden_ver1): Don't use in libc.a.
34525 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34526 (__mempcpy): Don't create a weak alias in libc.a.
34527 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34528 libc.a.
34529 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34530 (__hidden_ver1): Don't use in libc.a.
34531
34532 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34533
34534 * config.make.in (have-insert): New.
34535 * configure.ac (libc_cv_insert): New. Set to yes if linker
34536 supports INSERT in linker script.
34537 (AC_SUBST(libc_cv_insert): New.
34538 * configure: Regenerated.
34539 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34540 if $(have-insert) == yes.
34541
34542 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34543
34544 * elf/Makefile (tests): Add vismain only if
34545 $(have-protected-data) == yes.
34546 (tests-pie): Likewise.
34547
34548 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34549
34550 [BZ #21871]
34551 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34552 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34553
34554 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34555
34556 [BZ #21790]
34557 * sysdeps/i386/i586/memset.S
34558 (__memset_zero_constant_len_parameter): Removed.
34559 * sysdeps/i386/i686/memset.S
34560 (__memset_zero_constant_len_parameter): Likewise.
34561 * sysdeps/i386/i686/multiarch/memset_chk.S
34562 (__memset_zero_constant_len_parameter): Likewise.
34563 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34564 Likewise.
34565
34566 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34567
34568 * stdlib/getentropy.c (getentropy): Change return type to int.
34569
34570 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34571
34572 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34573
34574 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34575
34576 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34577 u_intN_t.
34578 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34579 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34580 Likewise.
34581 (ieee_float_shape_type): Likewise.
34582 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34583 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34584 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34585 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34586 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34587 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34588 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34589 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34590 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34591 Likewise.
34592 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34593 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34594 (__ieee754_yn): Likewise.
34595 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34596 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34597 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34598 Likewise.
34599 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34600 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34601 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34602 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34603 (__erfc): Likewise.
34604 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34605 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34606 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34607 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34608 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34609 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34610 Likewise.
34611 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34612 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34613 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34614 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34615 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34616 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34617 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34618 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34619 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34620 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34621 (__issignaling): Likewise.
34622 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34623 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34624 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34625 Likewise.
34626 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34627 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34628 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34629 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34630 Likewise.
34631 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34632 Likewise.
34633 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34634 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34635 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34636 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34637 (__erfcf): Likewise.
34638 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34639 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34640 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34641 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34642 Likewise.
34643 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34644 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34645 Likewise.
34646 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34647 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34648 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34649 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34650 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34651 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34652 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34653 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34654 Likewise.
34655 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34656 Likewise.
34657 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34658 Likewise.
34659 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34660 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34661 Likewise.
34662 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34663 Likewise.
34664 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34665 (__ieee754_ynl): Likewise.
34666 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34667 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34668 Likewise.
34669 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34670 Likewise.
34671 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34672 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34673 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34674 Likewise.
34675 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34676 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34677 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34678 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34679 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34680 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34681 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34682 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34683 Likewise.
34684 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34685 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34686 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34687 Likewise.
34688 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34689 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34690 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34691 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34692 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34693 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34694 Likewise.
34695 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34696 Likewise.
34697 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34698 Likewise.
34699 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34700 Likewise.
34701 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34702 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34703 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34704 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34705 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34706 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34707 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34708 Likewise.
34709 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34710 Likewise.
34711 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34712 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34713 Likewise.
34714 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34715 (__ieee754_remainderl): Likewise.
34716 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34717 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34718 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34719 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34720 Likewise.
34721 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34722 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34723 Likewise.
34724 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34725 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34726 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34727 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34728 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34729 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34730 Likewise.
34731 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34732 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34733 (__ieee754_y0l): Likewise.
34734 (pzero): Likewise.
34735 (qzero): Likewise.
34736 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34737 (__ieee754_y1l): Likewise.
34738 (pone): Likewise.
34739 (qone): Likewise.
34740 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34741 (__ieee754_ynl): Likewise.
34742 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34743 (__ieee754_lgammal_r): Likewise.
34744 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34745 Likewise.
34746 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34747 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34748 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34749 (__erfcl): Likewise.
34750 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34751 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34752 Likewise.
34753 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34754 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34755 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34756 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34757 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34758 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34759 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34760 Likewise.
34761 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34762 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34763 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34764 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34765 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34766 Likewise.
34767 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34768 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34769 Likewise.
34770 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34771 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34772 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34773 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34774 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34775
34776 2017-08-03 Florian Weimer <fweimer@redhat.com>
34777
34778 [BZ #21885]
34779 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34780 on memory allocation failure.
34781
34782 2017-08-03 Alan Modra <amodra@gmail.com>
34783
34784 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34785 tst-tlsopt-powerpc.c with function name change and no test harness.
34786 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34787 Call tls_get_addr_opt_test.
34788 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34789 (modules-names): Add mod-tlsopt-powerpc.
34790 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34791 (tst-tlsopt-powerpc): Depend on .so.
34792 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34793 define. Expand use in TLS_GD and TLS_LD.
34794
34795 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34796
34797 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34798 function.
34799 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34800
34801 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34802
34803 [BZ #21686]
34804 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34805 comparing size with that of double.
34806 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34807 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34808 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34809 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34810 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34811 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34812 unsigned __int128 types.
34813
34814 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34815
34816 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34817 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34818 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34819 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34820 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34821
34822 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34823
34824 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34825
34826 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34827
34828 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34829 of SHARED.
34830 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34831 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34832 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34833 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34834 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34835 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34836 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34837
34838 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34839
34840 [BZ #21685]
34841 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34842 bit-field expressions passed to sizeof or typeof.
34843 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34844 (__TGMATH_F128): Likewise.
34845 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34846 (__TGMATH_CF128): Likewise.
34847 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34848 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34849 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34850 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34851 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34852 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34853 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34854 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34855 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34856 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34857 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34858 (__TGMATH_UNARY_IMAG): Likewise.
34859 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34860 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34861 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34862 type.
34863 (define_vars_for_type): Handle bit_field type specially.
34864 (Tests.__init__): Declare structure with bit-field element.
34865
34866 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34867
34868 [BZ #21791]
34869 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34870 (MEMCPY_CHK): Define only if SHARED is defined.
34871 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34872 Likewise.
34873 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34874 Likewise.
34875
34876 See ChangeLog.18 for earlier changes.