]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add ChangeLog entry for previous commit.
[thirdparty/glibc.git] / ChangeLog
1 2019-05-22 Zack Weinberg <zackw@panix.com>
2
3 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
4 host type.
5 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
6 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
7
8 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
9 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
10 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
11 Delete.
12
13 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
14 Issue an #error if used with a compiler in SPE-float mode.
15 * sysdeps/powerpc/powerpc32/__longjmp_common.S
16 * sysdeps/powerpc/powerpc32/setjmp_common.S
17 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
18 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
19 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
20 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
21 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
22 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
23 Remove code to preserve SPE register state.
24
25 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
26 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
27 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
28 Remove __SPE__ ifndefs.
29
30 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
31
32 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
33 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
34 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
35 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
36 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
37 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
38 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
39 (INNER_LOOP_ITERS_MEDIUM): New define.
40 (INNER_LOOP_ITERS_SMALL): New define.
41 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
42 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
43 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
44 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
45 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
46
47 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
48
49 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
50 New define.
51 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
52 (SEMTIMEDOP_IPC_ARGS): Likewise.
53
54 2019-05-21 Florian Weimer <fweimer@redhat.com>
55
56 [BZ #24584]
57 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
58 before updating __counter field and release it afterwards. Add
59 overflow check.
60 * iconv/gconv.h (struct __gconv_step): Mention synchronization
61 requirement for __counter member.
62
63 2019-05-21 Florian Weimer <fweimer@redhat.com>
64
65 [BZ #24583]
66 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
67 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
68 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
69 instead of __gconv_release_step.
70 * libio/Makefile (tests): Add tst-wfile-gconv.
71 (tests-container): Add tst-wfile-ascii.
72 (tst-wfile-gconv-ENV): Enable mtrace.
73 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
74 (tests-special): Add tst-wfile-gconv-mem.out.
75 (tst-wfile-gconv.out): Depend on locales.
76 (tst-wfile-gconv-mem.out): Add mtrace rule.
77 * libio/tst-wfile-ascii.c: New file.
78 * libio/tst-wfile-gconv.c: Likewise.
79
80 2019-05-20 Florian Weimer <fweimer@redhat.com>
81
82 [BZ #24588]
83 libio: Remove codecvt vtable.
84 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
85 __libio_codecvt.
86 * libio/iofgetpos.c (_IO_new_fgetpos): Call
87 __libio_codecvt_encoding.
88 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
89 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
90 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
91 * libio/iofwide.c (__libio_codecvt): Remove variable.
92 (_IO_fwide): Do not copy __libio_codecvt.
93 (__libio_codecvt_out): Rename from do_out and export.
94 (do_unshift): Remove function.
95 (__libio_codecvt_in): Rename from do_in and export.
96 (__libio_codecvt_encoding): Rename from do_encoding and export.
97 (do_always_noconv): Remove function.
98 (__libio_codecvt_length): Rename from do_length and export.
99 (do_max_length): Remove function.
100 * libio/libio.h (enum __codecvt_result): Remove definition; moved
101 to libioP.h.
102 (struct _IO_codecvt): Remove fields __codecvt_destr,
103 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
104 __codecvt_do_encoding, __codecvt_do_always_noconv,
105 __codecvt_do_length, __codecvt_do_max_length.
106 * libio/libioP.h (enum __codecvt_result): Define; moved from
107 libio.h.
108 (__libio_codecvt_out, __libio_codecvt_in)
109 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
110 functions.
111 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
112 (_IO_wfile_underflow): Call __libio_codecvt_in.
113 (_IO_wfile_underflow): Likewise.
114 (_IO_wfile_underflow_mmap): Likewise.
115 (_IO_wfile_sync): Call __libio_codecvt_encoding,
116 __libio_codecvt_length.
117 (adjust_wide_data): Call __libio_codecvt_encoding,
118 __libio_codecvt_in.
119 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
120 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
121 __libio_codecvt_length.
122
123 2019-05-20 Florian Weimer <fweimer@redhat.com>
124
125 * support/support.h (support_sbindir_prefix): Declare.
126 (support_install_rootsbindir): Update comment.
127 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
128 * support/support_paths.c (support_sbindir_prefix): Define.
129
130 2019-05-20 Mike Crowe <mac@mcrowe.com>
131
132 * support/timespec.c: Add backslash to correct newline in failure
133 message.
134
135 * support/timespec.h: Correct confusing comment.
136
137 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
138
139 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
140 define.
141 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
142 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
143 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
144 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
145
146 [BZ #24570]
147 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
148 usage.
149
150 2019-05-20 Joseph Myers <joseph@codesourcery.com>
151
152 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
153 (NT_ARM_PACG_KEYS): Likewise.
154
155 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
156
157 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
158 (tcache_put): Remove redundant assert.
159 (tcache_get): Remove redundant asserts.
160 (__libc_malloc): Check tcache count is not zero.
161 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
162
163 2019-05-17 Florian Weimer <fweimer@redhat.com>
164
165 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
166
167 2019-05-16 Joseph Myers <joseph@codesourcery.com>
168
169 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
170 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
171 0x050100].
172 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
173 Likewise.
174 * sysdeps/unix/sysv/linux/sh/kernel-features.h
175 (__ASSUME_STATX): Likewise.
176
177 2019-05-16 Florian Weimer <fweimer@redhat.com>
178
179 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
180 flags argument.
181 (LINE_PARSER): Do not map IPv4 addresses.
182 (internal_nis_gethostent_r): Remove flags argument. Adjust call
183 to parse_line.
184 (_nss_nis_gethostent_r): Always pass AF_INET to
185 internal_nis_gethostent_r.
186 (internal_gethostbyname2_r): Remove flags argument. Adjust call
187 to parse_line.
188 (_nss_nis_gethostbyname2_r): Adjust call to
189 internal_nis_gethostent_r.
190 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
191 call to internal_nis_gethostent_r.
192 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
193 from parse_line.
194 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
195 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
196 Remove flags argument. Do not map IPv4 addresses.
197 (internal_nisplus_gethostent_r): Adjust call to
198 _nss_nisplus_parse_hostent.
199 (internal_gethostbyname2_r): Remove flags argument. Adjust call
200 to _nss_nisplus_parse_hostent.
201 (_nss_nisplus_gethostbyname2_r): Adjust call to
202 internal_gethostbyname2_r.
203 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
204 Adjust call to internal_gethostbyname2_r.
205 (_nss_nisplus_gethostbyaddr_r): Adjust call to
206 _nss_nisplus_parse_hostent.
207 (_nss_nisplus_gethostbyname4_r): Adjust call to
208 internal_gethostbyname2_r.
209
210 2019-05-16 Florian Weimer <fweimer@redhat.com>
211
212 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
213 Remove flags.
214 (LINE_PARSER): Remove address mapping.
215 (EXTRA_ARGS_VALUE): Remove flags argument.
216 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
217 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
218 gethostbyname3_multi.
219 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
220 _nss_files_gethostbyname3_r.
221 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
222
223 2019-05-16 Florian Weimer <fweimer@redhat.com>
224
225 * support/support_test_compare_blob.c (report_blob): Report
226 incorrect NULL blobs.
227
228 2019-05-15 Mark Wielaard <mark@klomp.org>
229
230 [BZ# 24476]
231 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
232 __libc_once_get (once) and static_buf == NULL.
233 (__dlerror): Check we have a valid key, set result to static_buf
234 otherwise.
235
236 2019-05-15 Andreas Schwab <schwab@suse.de>
237
238 [BZ #20568]
239 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
240 __codecvt_do_length.
241 * libio/Makefile (tests): Add tst-wfile-sync.
242 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
243 * libio/tst-wfile-sync.c: New file.
244 * libio/tst-wfile-sync.input: New file.
245
246 2019-05-15 Florian Weimer <fweimer@redhat.com>
247
248 nss: Turn __nss_database_lookup into a compatibility symbol.
249 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
250 __nss_database_lookup.
251 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
252 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
253 __nss_database_lookup.
254 (__nss_next): Move to …
255 * nss/compat-lookup.c (nss_next): … here. Change it to fail
256 unconditionally.
257 (__nss_database_lookup): New function.
258 * nss/Versions (GLIBC_2.0): Update comment.
259 (GLIBC_PRIVATE): Export __nss_database_lookup2.
260 * grp/initgroups.c (internal_getgrouplist): Call
261 __nss_database_lookup2 instead of __nss_database_lookup.
262 * nscd/aicache.c (addhstaiX): Likewise.
263 * nscd/initgrcache.c (addinitgroupsX): Likewise.
264 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
265 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
266 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
267 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
268 Likewise.
269 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
270 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
271 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
272
273 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
274
275 * support/support.h (support_install_rootsbindir): New variable.
276 * support/support_paths.c: Likewise.
277 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
278
279 2019-05-15 Florian Weimer <fweimer@redhat.com>
280
281 * iconv/gconv.h (__gconv_transliterate): Move declaration …
282 * iconv/gconv_int.h (__gconv_transliterate): … here.
283 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
284 * iconv/skeleton.c: Likewise.
285
286 2019-05-14 Florian Weimer <fweimer@redhat.com>
287
288 Linux: Add the tgkill function.
289 * bits/signal_ext.h: New file.
290 * manual/signal.texi (Signaling Another Process): Document tgkill.
291 * signal/Makefile (headers): Add bits/signal_ext.h.
292 * signal/signal.h: Include <bits/signal_ext.h>.
293 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
294 (tst-tgkill): Link with libpthread.
295 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
296 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
297 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
298 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
299 tgkill.
300 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
301 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
302 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
303 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
304 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
305 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
306 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
307 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
308 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
309 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
310 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
311 Likewise.
312 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
313 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
314 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
316 Likewise.
317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
318 Likewise.
319 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
320 Likewise.
321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
322 Likewise.
323 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
324 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
325 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
326 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
327 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
328 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
329 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
330 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
331
332 2019-05-14 Carlos O'Donell <carlos@redhat.com>
333
334 * manual/search.texi (Tree Search Function): Adjust twalk_r
335 documentation.
336
337 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
338
339 [BZ #24544]
340 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
341 pre-defined value.
342
343 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
344 * support/support.h (support_bindir_prefix): New variable.
345 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
346
347 * config.make.in (bindir): New variable.
348
349 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
350 (lll_trylock): Call __lll_trylock.
351 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
352 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
353 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
354 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
355 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
356 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
357 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
358 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
359 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
360 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
361 lowlevellock-futex.h.
362
363 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
364 initialization for LLL_LOCK_INITIALIZER different than 0.
365 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
366 Assume LLL_LOCK_INITIALIZER being 0.
367 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
368 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
369 Likewise.
370 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
371 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
372
373 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
374 Optimize futex call and add systemtap probe.
375
376 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
377 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
378 __libc_disable_asynccancel, __librt_enable_asynccancel,
379 __libc_disable_asynccancel, __librt_enable_asynccancel,
380 __librt_disable_asynccancel): Move to ...
381 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
382 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
383 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
384 * sysdeps/generic/single-thread.h: New file.
385 * sysdeps/unix/sysdep.h: Include single-thread.h.
386 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
387 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
388
389 2019-05-08 Mike FABIAN <mfabian@redhat.com>
390
391 [BZ #24535]
392 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
393 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
394 Unicode 12.1.0.
395 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
396 * localedata/unicode-gen/PropList.txt: Likewise.
397 * localedata/unicode-gen/UnicodeData.txt: Likewise.
398 * localedata/charmaps/UTF-8: Regenerate.
399 * localedata/locales/i18n_ctype: Likewise.
400 * localedata/locales/tr_TR: Likewise.
401 * localedata/locales/translit_circle: Likewise.
402 * localedata/locales/translit_cjk_compat: Likewise.
403 * localedata/locales/translit_combining: Likewise.
404 * localedata/locales/translit_compat: Likewise.
405 * localedata/locales/translit_font: Likewise.
406 * localedata/locales/translit_fraction: Likewise.
407
408 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
409
410 [BZ #24531]
411 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
412 (do_set_tcache_count): Only update if count is small enough.
413 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
414
415 2019-05-10 Florian Weimer <fweimer@redhat.com>
416
417 * nptl/sem_close.c (struct walk_closure): Define.
418 (walker): Adjust for __twalk_r.
419 (sem_close): Call __twalk_r.
420
421 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
422
423 * support/timespec.c (test_timespec_before_impl,
424 test_timespec_equal_or_after_impl): print timespec member as intmax_t
425 insted of long int.
426
427 2019-05-09 Mike Crowe <mac@mcrowe.com>
428
429 * nptl/tst-abstime.c: Use libsupport.
430
431 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
432 small bug where only tv.tv_usec was checked which could cause an
433 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
434 than a second.
435
436 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
437 libsupport.
438
439 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
440 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
441
442 * nptl/tst-cond11.c: Use libsupport.
443
444 * support/timespec.h: New file. Provide timespec helper functions
445 along with macros in the style of those in check.h.
446 * support/timespec.c: New file. Implement check functions declared
447 in support/timespec.h.
448 * support/timespec-add.c: New file from gnulib containing
449 timespec_add implementation that handles overflow.
450 * support/timespec-sub.c: New file from gnulib containing
451 timespec_sub implementation that handles overflow.
452 * support/README: Mention timespec.h.
453
454 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
455
456 [BZ #24537]
457 * nptl/Makefile: Move tst-eintr1 to xtests.
458
459 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
460
461 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
462 TRUNC handling.
463 (round_mode): Add definition for TRUNC.
464 * sysdeps/powerpc/fpu/s_trunc.c: New file.
465 * sysdeps/powerpc/fpu/s_truncf.c: New file.
466 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
467 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
468 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
469 Likewise.
470 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
471 Likewise.
472 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
473 Likewise.
474 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
475 Likewise.
476 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
477 file.
478 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
479 Likewise.
480 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
481 Likewise.
482 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
483 Likewise.
484 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
485 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
486 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
487 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
488 s_truncf-power5+, and s_truncf-ppc64.
489 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
490 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
491 file.
492 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
493 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
494 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
495 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
496 file.
497 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
498 Likewise.
499 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
500 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
501 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
502 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
503 s_truncf-power5+, and s_truncf-ppc64.
504 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
505 file.
506 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
507 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
508 Likewise.
509 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
510 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
511 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
512 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
513 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
514
515 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
516 ROUND handling.
517 (round_mode): Add definition for ROUND.
518 (round_to_integer_float): Likewise.
519 * sysdeps/powerpc/fpu/s_round.c: New file.
520 * sysdeps/powerpc/fpu/s_roundf.c: New file.
521 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
522 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
523 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
524 Likewise.
525 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
526 Likewise.
527 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
528 Likewise.
529 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
530 Likewise.
531 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
532 file.
533 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
534 Likewise.
535 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
536 Likewise.
537 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
538 Likewise.
539 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
540 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
541 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
542 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
543 s_roundf-power5+, and s_roundf-ppc64.
544 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
545 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
546 file.
547 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
548 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
549 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
550 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
551 file.
552 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
553 Likewise.
554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
555 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
556 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
557 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
558 s_roundf-power5+, and s_roundf-ppc64.
559 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
560 file.
561 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
562 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
563 Likewise.
564 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
565 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
566 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
567 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
568 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
569
570 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
571 Add FLOOR option.
572 (round_mode): Add definition for FLOOR.
573 * sysdeps/powerpc/fpu/s_floor.c: New file.
574 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
575 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
576 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
577 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
578 Remove file.
579 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
580 Likewise
581 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
582 Likewise.
583 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
584 Likewise.
585 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
586 New file.
587 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
588 Likewise.
589 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
590 Likewise.
591 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
592 Likewise.
593 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
594 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
595 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
596 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
597 s_floorf-power5+, and s_floorf-ppc64.
598 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
599 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
600 file.
601 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
602 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
603 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
604 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
605 file.
606 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
607 Likewise.
608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
609 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
610 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
611 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
612 s_floorf-power5+, and s_floorf-ppc64.
613 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
614 file.
615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
616 file.
617 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
618 Likewise.
619 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
620 Likewise.
621 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
622 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
623 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
624 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
625
626 2019-05-08 Mike Crowe <mac@mcrowe.com>
627
628 * support/xclock_gettime.c (xclock_gettime): New file. Provide
629 clock_gettime wrapper for use in tests that fails the test rather
630 than returning failure.
631
632 * support/xtime.h: New file to declare xclock_gettime.
633
634 * support/Makefile: Add xclock_gettime.c.
635
636 * support/README: Mention xtime.h.
637
638 2019-05-08 Florian Weimer <fweimer@redhat.com>
639
640 malloc/tst-mallocfork2: Use process-shared barriers.
641 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
642 (signal_count, sigusr1_sender_pid): Remove.
643 (iterations): Define constant.
644 (shared): New variable.
645 (sigusr1_received): Update comment.
646 (sigusr1_handler): Do not send SIGSTOP to the sender process.
647 (signal_sender): Optional use barriers to avoid sending signals
648 during irrelevant times.
649 (do_it): Initialize variable shared. Use xfork for error
650 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
651 the iteration count, independent of signal delivery. Check for
652 deadlocks in fork. Introduce barriers for reducing signal
653 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
654 replaced by the barriers. Count signals during fork/free/malloc
655 and report them.
656 * malloc/Makefile (tst-mallocfork): Link with libpthread.
657
658 2019-05-07 Joseph Myers <joseph@codesourcery.com>
659
660 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
661 version to 5.1.
662 (clock_adjtime64) New syscall.
663 (clock_getres_time64) Likewise.
664 (clock_gettime64) Likewise.
665 (clock_nanosleep_time64) Likewise.
666 (clock_settime64) Likewise.
667 (futex_time64) Likewise.
668 (io_pgetevents_time64) Likewise.
669 (io_uring_enter) Likewise.
670 (io_uring_register) Likewise.
671 (io_uring_setup) Likewise.
672 (mq_timedreceive_time64) Likewise.
673 (mq_timedsend_time64) Likewise.
674 (pidfd_send_signal) Likewise.
675 (ppoll_time64) Likewise.
676 (pselect6_time64) Likewise.
677 (recvmmsg_time64) Likewise.
678 (rt_sigtimedwait_time64) Likewise.
679 (sched_rr_get_interval_time64) Likewise.
680 (semtimedop_time64) Likewise.
681 (timer_gettime64) Likewise.
682 (timer_settime64) Likewise.
683 (timerfd_gettime64) Likewise.
684 (timerfd_settime64) Likewise.
685 (utimensat_time64) Likewise.
686
687 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
688 version to 9 branch.
689
690 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
691
692 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
693 __memmove_thunderx2 to the list of implementations
694 * sysdeps/aarch64/multiarch/memmove.c: Likewise
695 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
696 (__memmove_thunderx2): Rewritten using SIMD ld/st
697 (__memcpy_thunderx2): Fixed handling overlapping cases.
698 Used ldp/stp instead of ldr/str if possible. Made loops
699 tails branchless.
700
701 2019-05-03 Florian Weimer <fweimer@redhat.com>
702
703 * misc/tst-tsearch.c (walk_tree): Add more error checking.
704
705 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
706
707 [BZ #24506]
708 * elf/tst-pldd.c (in_str_list): New function.
709 (do_test): Add default names for ld and libc as one option.
710
711 2019-05-02 Florian Weimer <fweimer@redhat.com>
712
713 misc: Add twalk_r function.
714 * include/search.h (__twalk_r): Declare.
715 * manual/examples/twalk.c: New file.
716 * manual/search.texi (Tree Search Function): Document twalk_r.
717 * misc/Versions (2.30): Export twalk_r.
718 (GLIBC_PRIVATE): Export __twalk_r.
719 * misc/search.h [__USE_GNU] (twalk_r): Declare.
720 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
721 (twalk_r): Add weak alias.
722 * misc/tst-tsearch.c (struct walk_trace_element): Define.
723 (walk_trace): New variable.
724 (struct twalk_with_twalk_r_closure): Define.
725 (twalk_with_twalk_r_action): New function.
726 (twalk_with_twalk_r): Likewise.
727 (walk_action): Call walk_trace_add.
728 (walk_tree_with): Rename from walk_tree. Add walk argument.
729 (walk_tree): New function.
730 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
731 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
732 Likewise.
733 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
734 Likewise.
735 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
736 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
737 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
738 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
739 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
740 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
741 Likewise.
742 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
743 Likewise.
744 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
745 Likewise.
746 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
747 (GLIBC_2.30): Likewise.
748 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
749 (GLIBC_2.30): Likewise.
750 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
751 (GLIBC_2.30): Likewise.
752 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
753 (GLIBC_2.30): Likewise.
754 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
755 Likewise.
756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
757 (GLIBC_2.30): Likewise.
758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
759 (GLIBC_2.30): Likewise.
760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
761 (GLIBC_2.30): Likewise.
762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
763 (GLIBC_2.30): Likewise.
764 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
765 Likewise.
766 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
767 Likewise.
768 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
769 Likewise.
770 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
771 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
772 Likewise.
773 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
774 Likewise.
775 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
776 Likewise.
777 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
778 Likewise.
779
780 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
781
782 Make mktime etc. compatible with __time64_t
783 Keep these functions compatible with Gnulib while adding
784 __time64_t support. The basic idea is to move private API
785 declarations from include/time.h to time/mktime-internal.h, since
786 the former file cannot easily be shared with Gnulib whereas the
787 latter can.
788 Also, do some other minor cleanup while in the neighborhood.
789 * include/time.h: Include stdbool.h, time/mktime-internal.h.
790 (__mktime_internal): Move this prototype to time/mktime-internal.h,
791 since Gnulib needs it.
792 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
793 Move these macros to time/mktime-internal.h, since Gnulib needs them.
794 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
795 (in_time_t_range): New static function.
796 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
797 so that glibc users are not tempted to use __time64_t.
798 * time/mktime-internal.h: Rewrite so that it does both glibc
799 and Gnulib work. Include time.h if not _LIBC.
800 (mktime_offset_t) [!_LIBC]: Define for gnulib.
801 (__time64_t): New type or macro, moved here from
802 posix/bits/types.h.
803 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
804 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
805 from include/time.h.
806 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
807 New macros, taken from GNulib.
808 (__mktime_internal): New prototype, moved here from include/time.h.
809 * time/mktime.c (mktime_min, mktime_max, convert_time)
810 (ranged_convert, __mktime_internal, __mktime64):
811 * time/timegm.c (__timegm64):
812 Use __time64_t, not time_t.
813 * time/mktime.c: Stop worrying about whether time_t is floating-point.
814 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
815 Rename from mktime.
816 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
817 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
818 for libc_hidden_def.
819 Include errno.h.
820 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
821 Rename from timegm.
822 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
823
824 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
825
826 [BZ #19444]
827 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
828 from `-Wmaybe-uninitialized'.
829 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
830
831 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
832
833 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
834 function.
835 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
836 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
837 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
838 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
839 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
840 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
841 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
842 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
843 Remove file.
844 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
845 Likewise.
846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
847 Likewise.
848 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
849 Likewise.
850 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
851 New file.
852 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
853 Likewise.
854 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
855 Likewise.
856 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
857 Likewise.
858 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
859 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
860 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
861 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
862 Likewise.
863 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
864 Likewise.
865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
866 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
867 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
868 file.
869 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
870 Likewise.
871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
872 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
873 * here.
874 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
875 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
876 s_ceilf-power5+, and s_ceilf-ppc64.
877 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
878 file.
879 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
880 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
881 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
882 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
883 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
884 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
885 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
886
887 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
888 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
889 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
890
891 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
892
893 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
894 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
895 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
896 (sem_getvalue): Likewise.
897
898 2019-04-26 Florian Weimer <fweimer@redhat.com>
899
900 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
901 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
902
903 2019-04-26 Florian Weimer <fweimer@redhat.com>
904
905 Makeconfig: Move -Wl,-rpath-link options before library references.
906 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
907 (link-libc): Remove $(link-libc-rpath-link).
908
909 2019-04-25 Florian Weimer <fweimer@redhat.com>
910
911 * Makeconfig (+link-pie-before-libc): Remove $(CC).
912 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
913 (+link-static-before-libc): Remove $(CC).
914 (+link-static, +link-static-tests): Add $(CC).
915 (+link-before-libc): Remove $(CC).
916 (+link, +link-pie, +link-pie-printers): Add $(CC).
917
918 2019-04-26 Florian Weimer <fweimer@redhat.com>
919
920 * Makeconfig (+link-pie-before-libc): Remove $(CC).
921 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
922 (+link-static-before-libc): Remove $(CC).
923 (+link-static, +link-static-tests): Add $(CC).
924 (+link-before-libc): Remove $(CC).
925 (+link, +link-pie, +link-pie-printers): Add $(CC).
926
927 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
928
929 [BZ#24484]
930 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
931
932 2019-04-25 Florian Weimer <fweimer@redhat.com>
933
934 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
935 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
936 (bench-link-targets): New variable.
937 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
938
939 2019-04-25 Florian Weimer <fweimer@redhat.com>
940
941 Also enable BIND_NOW for programs if --enable-bind-now.
942 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
943 (+link-pie): Use $(link-extra-flags).
944 (+link-static): Likewise.
945 [! $(build-pie-default)] (+link): Likewise.
946 * manual/install.texi (Configuring and compiling): Update
947 --enable-bind-now description.
948 * INSTALL: Regenerated.
949
950 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
951
952 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
953 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
954
955 2019-04-24 Mike Frysinger <vapier@gentoo.org>
956
957 [BZ #18465]
958 * malloc/Makefile (others): Add memusagestat.
959 ($(objpfx)memusagestat): Delete rule.
960 (LDLIBS-memusagestat): New variable.
961
962 2019-04-24 Florian Weimer <fweimer@redhat.com>
963
964 * locale/Makefile (tests-special): Guard setting by
965 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
966 to run while cross-compiling.
967
968 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
969
970 [BZ #18035]
971 * elf/Makefile (tests-container): Add tst-pldd.
972 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
973 (E(find_maps)): Avoid use alloca, use default read file operations
974 instead of explicit LFS names, and fix infinite loop.
975 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
976 (get_process_info): Use _Static_assert instead of assert, use default
977 directory operations instead of explicit LFS names, and free some
978 leadek pointers.
979 * elf/tst-pldd.c: New file.
980
981 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
982
983 * malloc/arena.c (do_set_mallopt_check): Removed.
984
985 2019-04-23 Florian Weimer <fweimer@redhat.com>
986
987 locale: Add LOCPATH diagnostics to the locale program.
988 * locale/programs/locale.c (setlocale_failed): New variable.
989 (try_setlocale): New function.
990 (quote_string): Likewise.
991 (setlocale_diagnostics): Likewise.
992 (main): Call try_setlocale instead of setlocale. Call
993 setlocale_diagnostics.
994 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
995 (tst-locale-locpath.out): New target.
996 * locale/tst-locale-locpath.sh: New file.
997
998 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
999
1000 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1001 to 2.30 notes.
1002
1003 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1004
1005 [BZ #23741]
1006 * malloc/hooks.c (malloc_check, realloc_check): Use
1007 __builtin_add_overflow on overflow check and adapt to
1008 checked_request2size change.
1009 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1010 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1011 allocation size to PTRDIFF_MAX.
1012 (REQUEST_OUT_OF_RANGE): Remove macro.
1013 (checked_request2size): Change to inline function and limit maximum
1014 requested size to PTRDIFF_MAX.
1015 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1016 maximum allocation size to PTRDIFF_MAX.
1017 (_mid_memalign): Use _int_memalign call for overflow check.
1018 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1019 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1020 limit maximum requested size to PTRDIFF_MAX.
1021 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1022 valloc, pvalloc): Add __attribute_alloc_size__.
1023 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1024 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1025 larger than PTRDIFF_MAX.
1026 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1027 around tests of malloc with negative sizes.
1028 * malloc/tst-posix_memalign.c (do_test): Likewise.
1029 * malloc/tst-pvalloc.c (do_test): Likewise.
1030 * malloc/tst-valloc.c (do_test): Likewise.
1031 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1032 with resulting size allocation larger than PTRDIFF_MAX with
1033 reallocarray_nowarn.
1034 (reallocarray_nowarn): New function.
1035 * NEWS: Mention the malloc function semantic change.
1036
1037 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1038
1039 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1040 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1041
1042 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1043 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1044 * sysdeps/powerpc/fpu/s_fma.c: New file.
1045 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1046
1047 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1048 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1049
1050 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1051 the magic flag store.
1052 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1053 Likewise.
1054 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1055 Likewise.
1056 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1057 Remove rt_sigreturn call.
1058
1059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1060 Remove rt_sigreturn call.
1061 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1062 Likewise.
1063 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1065
1066 * support/Makefile (libsupport-routines): Add support_subprocess,
1067 xposix_spawn, xposix_spawn_file_actions_addclose, and
1068 xposix_spawn_file_actions_adddup2.
1069 (tst-support_capture_subprocess-ARGS): New rule.
1070 * support/capture_subprocess.h (support_capture_subprogram): New
1071 prototype.
1072 * support/support_capture_subprocess.c (support_capture_subprocess):
1073 Refactor to use support_subprocess and support_capture_poll.
1074 (support_capture_subprogram): New function.
1075 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1076 str_to_write_mode, test_common, parse_int, handle_restart,
1077 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1078 (do_test): Add support_capture_subprogram tests.
1079 * support/subprocess.h: New file.
1080 * support/support_subprocess.c: Likewise.
1081 * support/xposix_spawn.c: Likewise.
1082 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1083 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1084 * support/xspawn.h: Likewise.
1085
1086 2019-04-17 Mike Gerow <gerow@google.com>
1087
1088 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1089 groups limit.
1090
1091 2019-04-11 Florian Weimer <fweimer@redhat.com>
1092
1093 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1094 domain with empty string.
1095 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1096
1097 2019-04-11 Florian Weimer <fweimer@redhat.com>
1098
1099 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1100 comment.
1101 (alloc_buffer_next): Change return type to non-const. Update
1102 comment.
1103
1104 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1105
1106 * manual/time.texi (Formatting Calendar Time): Add missing percent
1107 sign to conversion specifier.
1108
1109 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1110 Kwok Cheung Yeung <kcy@codesourcery.com>
1111
1112 [BZ #16573]
1113 * malloc/mtrace.c: Define prototypes for all hooks.
1114 (set_default_hooks): New function.
1115 (set_trace_hooks): Likewise.
1116 (save_default_hooks): Likewise.
1117 (tr_freehook): Use new s*_hooks functions.
1118 (tr_mallochook): Likewise.
1119 (tr_reallochook): Likewise.
1120 (tr_memalignhook): Likewise.
1121 (mtrace): Likewise.
1122 (muntrace): Likewise.
1123
1124 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1125
1126 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1127 (generic_stpcpy): New function.
1128 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1129 (generic_stpncpy): New function.
1130 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1131 (generic_strcat): New function.
1132 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1133 (generic_strcpy): New function.
1134 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1135 (STUPID_STRNCAT): Remove function.
1136 (generic_strncat): New function.
1137 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1138 (STUPID_STRNCPY): Remove function.
1139 (generic_strncpy): New function.
1140 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1141 (generic_strnlen): New function.
1142 (memchr_strnlen): New function.
1143 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1144 (memchr_strlen): Likewise.
1145
1146 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1147
1148 * benchtests/bench-strstr.c (input): Add realistic input text.
1149 (stupid_strstr): Remove function.
1150 (basic_strstr): Add function.
1151 (twoway_strstr): Add function.
1152 (do_one_test): Add result checking.
1153 (do_test): Use new input text. Remove accidental early matches.
1154 (test_main): Improve range of tests, reduce unaligned cases.
1155
1156 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1157
1158 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1159 (basic_memmem): Add function.
1160 (twoway_memmem): Add function.
1161
1162 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1163
1164 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1165 * benchtests/bench-malloc-thread.c: Likewise.
1166 * benchtests/bench-skeleton.c: Likewise.
1167 * benchtests/bench-strtod.c: Likewise.
1168 * benchtests/bench-timing.h: Likewise.
1169
1170 2019-04-08 Florian Weimer <fweimer@redhat.com>
1171
1172 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1173 definitions.
1174 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1175 RES_INSECURE2 security checks.
1176 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1177 RES_INSECURE2 handling.
1178
1179 2019-04-08 Florian Weimer <fweimer@redhat.com>
1180
1181 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1182 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1183 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1184 GETHOSTBYNAME.
1185 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1186 (tests-internal): Update justification for tst-resolv-res_init,
1187 tst-resolv-res_init-thread.
1188 (tst-res_use_inet6): Remove target.
1189 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1190 * resolv/res_debug.c (p_option): Remove "inet6" support.
1191 * resolv/res_init.c (res_setoptions): Likewise.
1192 * resolv/res_use_inet6.h: Remove file.
1193 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1194 definition.
1195 (res_use_inet6): Always return false.
1196 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1197 * resolv/resolv_context.h: Adjust file comment.
1198 (struct resolv_context): Update comment on __next field.
1199 (__resolv_context_put): Update comment.
1200 * resolv/tst-res_use_inet6.c: Remove file.
1201 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1202 "inet6" support.
1203 (test_cases): Adjust test case.
1204 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1205 (thread_byname2_af_inet6): Use old byname_inet6 code.
1206 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1207 (gai): Remove do_inet6 argument.
1208 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1209 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1210 (thread_gai_unspec_inet6): Remove functions.
1211 (do_test): Adjust thread_funcs.
1212 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1213 RES_USE_INET6 flag.
1214 (gaih_inet): Do not disable RES_USE_INET6 flag.
1215
1216 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1217
1218 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1219 and remove redundant code.
1220
1221 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1222
1223 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1224 New rule.
1225 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1226 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1227 Likewise.
1228 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1229 Likewise.
1230 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1231 Likewise.
1232 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1233 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1234 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1235 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1236 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1237 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1238 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1239 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1240 wcsrchr-power7.
1241 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1242 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1243 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1244 Remove wcsrchr optimizations.
1245 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1246
1247 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1248 the loop unroll.
1249
1250 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1251 New rule.
1252 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1253 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1254 Likewise.
1255 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1256 Likewise.
1257 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1258 Likewise.
1259 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1260 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1261 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1262 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1263 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1264 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1265 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1266 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1267 wcschr-power7.
1268 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1269 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1270 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1271 Remove wcschr optimizations.
1272 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1273
1274 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1275 the loop unroll.
1276
1277 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1278 New rule.
1279 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1280 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1281 Likewise.
1282 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1283 Likewise.
1284 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1285 Likewise.
1286 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1287 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1288 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1289 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1290 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1291 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1292 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1293 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1294 wcscpy-power7.
1295 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1296 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1297 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1298 Remove wcscpy optimizations.
1299 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1300
1301 * include/loop_unroll.h: New file.
1302 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1303 besides generic implementation.
1304
1305 2019-04-03 DJ Delorie <dj@redhat.com>
1306
1307 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1308 snprintf truncating output.
1309
1310 2019-04-02 DJ Delorie <dj@redhat.com>
1311
1312 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1313 warning.
1314
1315 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1316
1317 [BZ #22964]
1318 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1319 era.
1320 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1321 (mkreftable): Add rules for the new Japanese era and the new dates.
1322
1323 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1324 Rafal Luzynski <digitalfreak@lingonborough.com>
1325
1326 * time/tst-strftime2.c (date_t): Explicitly define the type.
1327 (dates): Use natural month and year numbers to express a date.
1328 (is_before): New function to compare dates.
1329 (mkreftable): Minor improvements to simplify maintenance.
1330 (do_test): Reflect the changes in dates array.
1331
1332 [BZ #24293]
1333 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1334 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1335 * time/tst-strftime2.c (locales): Likewise.
1336 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1337 2010-04-01, and 2011-04-01.
1338 (mkreftable): Add rules for the new locales and the new dates.
1339
1340 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1341
1342 * localedata/locales/ja_JP: Add comments to era entries.
1343
1344 2019-04-01 DJ Delorie <dj@redhat.com>
1345
1346 [BZ #24394]
1347 * time/strptime_l.c (%Ey): Fix fencepost error.
1348 * time/tst-strftime3.c: New.
1349 * time/Makefile (tests): Add tst-strftime3.
1350
1351 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1352
1353 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1354 conditional branch to DIVBYZERO. Fix unwind info.
1355 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1356 excb after conditional branch to $powerof2. Add missing unop
1357 instructions and .align directives and reorder instructions to
1358 match __divqu.
1359
1360 2019-04-01 Richard Henderson <rth@twiddle.net>
1361
1362 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1363 Do not redefine.
1364 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1365 Do not redefine.
1366
1367 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1368
1369 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1370 $libc_cv_riscv_float_abi in `test' invocation.
1371 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1372
1373 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1374
1375 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1376 asm with builtin.
1377 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1378 Likewise.
1379 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1380 (_GET_SI_FPSCR): Likewise.
1381 (_SET_SI_FPSCR): Likewise.
1382
1383 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1384
1385 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1386 clang 2.8.
1387 (signbit): Use builtin for clang 3.3.
1388 (isinf): Use builtin for clang 3.7.
1389
1390 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1391
1392 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1393
1394 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1395
1396 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1397 quote in printf.
1398
1399 2019-03-25 Mike Crowe <mac@mcrowe.com>
1400
1401 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1402 pthread_rwlock_timedrdlock with calls to
1403 pthread_rwlock_timedwrlock to ensure that the latter is tested
1404 too. Use new function name in diagnostic messages too.
1405
1406 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1407 (do_test) Use libsupport test macros rather than hand-coded
1408 conditionals and error messages. Ensure that sem_init returns zero
1409 rather than not -1. Use <support/test-driver.c> rather than
1410 test-skeleton.c.
1411
1412 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1413 test macros rather than hand-coded conditionals and error messages.
1414 Use <support/test-driver.c> rather than test-skeleton.c.
1415
1416 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1417
1418 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1419
1420 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1421 (NT_MIPS_MSA): Likewise.
1422
1423 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1424
1425 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1426 * benchtests/README: Update description.
1427 * benchtests/bench-timing.h: Default to hp-timing.
1428 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1429 HP_TIMING_PRINT): Remove.
1430 (HP_TIMING_NOW): Add generic implementation.
1431 (hp_timing_t): Change to uint64_t.
1432
1433 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1434 HP_TIMING_INLINE.
1435 * nptl/descr.h: Likewise.
1436 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1437 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1438 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1439 Abstract hp-timing usage with RTLD_* macros.
1440 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1441 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1442 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1443 HP_TIMING_NONAVAIL): Likewise.
1444 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1445 Likewise.
1446 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1447 HP_SMALL_TIMING_AVAIL): Likewise.
1448 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1449 HP_SMALL_TIMING_AVAIL): Likewise.
1450 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1451 HP_SMALL_TIMING_AVAIL): Likewise.
1452 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1453 HP_SMALL_TIMING_AVAIL): Likewise.
1454 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1455 Likewise.
1456 * sysdeps/generic/hp-timing-common.h: Update comment with
1457 HP_TIMING_AVAIL removal.
1458
1459 * include/random-bits.h: New file.
1460 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1461 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1462 random_bits.
1463 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1464 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1465 Likewise.
1466
1467 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1468 * rt/Makefile (clock-routines): Remove get_clockfreq.
1469 * rt/get_clockfreq.c: Remove file.
1470 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1471 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1472 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1473 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1474 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1475
1476 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1477 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1478 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1479 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1480 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1481
1482 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1483 pthread_clock_settime.
1484 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1485 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1486 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1487 * elf/rtld.c (_dl_start_final): Likewise.
1488 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1489 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1490 Remove.
1491 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1492 (_dl_cpuclock_offset): Remove.
1493 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1494 cpuclock_offset_ununsed.
1495 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1496 cpuclock_offset set.
1497 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1498 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1499 * nptl/pthread_clock_gettime.c: Remove file.
1500 * nptl/pthread_clock_settime.c: Likewise.
1501 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1502 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1503 and CLOCK_PROCESS_CPUTIME_ID support.
1504 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1505 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1506 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1507 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1508 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1509 Likewise.
1510 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1511
1512 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1513
1514 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1515 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1516 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1517 New defines.
1518 * sysdeps/s390/memmem-arch13.S: New file.
1519 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1520 if it is only used as fallback.
1521 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1522 * sysdeps/s390/multiarch/ifunc-impl-list.c
1523 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1524
1525 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1526
1527 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1528 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1529 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1530 New defines.
1531 * sysdeps/s390/multiarch/ifunc-impl-list.c
1532 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1533 * sysdeps/s390/strstr-arch13.S: New file.
1534 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1535 if it is only used as fallback.
1536 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1537
1538 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1539
1540 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1541 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1542 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1543 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1544 ifunc selector.
1545 * sysdeps/s390/multiarch/ifunc-impl-list.c
1546 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1547 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1548 S390_IS_ARCH13_MIE3): New defines.
1549
1550 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1551
1552 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1553 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1554 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1555 * sysdeps/s390/configure: Regenerated.
1556
1557 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1558
1559 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1560 Add vxe2, vxp, dflt, sort flags.
1561 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1562 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1563 capabilities.
1564 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1565 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1566 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1567 HWCAP_S390_DFLT): Define.
1568
1569 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1570
1571 [BZ #24372]
1572 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1573 of compiler warning.
1574 * locale/programs/ld-collate.c (collate_output): Likewise.
1575
1576 2019-03-21 DJ Delorie <dj@redhat.com>
1577
1578 [BZ #24372]
1579 * iconv/iconvconfig.c (write_output): Replace floating point math
1580 with integer math to avoid imprecise results.
1581 * locale/programs/ld-collate.c (collate_output): Likewise.
1582
1583 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1584
1585 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1586 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1587
1588 2019-03-20 mansayk <6688000@gmail.com>
1589
1590 [BZ #24296]
1591 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1592 (abday): Likewise, but remove the trailing dots.
1593
1594 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1595
1596 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1597 macro.
1598 (HWCAP_PACA): Likewise.
1599 (HWCAP_PACG): Likewise.
1600 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1601 Increase to 32.
1602 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1603
1604 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1605
1606 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1607 should be handled.
1608
1609 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1610
1611 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1612 version to 5.0.
1613 (old_getpagesize): New syscall.
1614
1615 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1616
1617 [BZ #24293]
1618 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1619 * localedata/locales/cmn_TW (era): Likewise.
1620 * localedata/locales/hak_TW (era): Likewise.
1621 * localedata/locales/lzh_TW (era): Likewise.
1622 * localedata/locales/nan_TW (era): Likewise.
1623
1624 2019-03-14 Adam Maris <amaris@redhat.com>
1625
1626 * malloc/malloc.c (_int_malloc): Check for large bin list
1627 corruption when inserting unsorted chunk.
1628
1629 2019-03-14 Florian Weimer <fweimer@redhat.com>
1630
1631 Remove obsolete, never-implemented XSI STREAMS declarations.
1632 * manual/terminal.texi (Allocation): Remove portability note and
1633 adjust example.
1634 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1635 _SC_STREAMS.
1636 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1637 * sysdeps/unix/inet/Subdirs (streams): Remove.
1638 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1639 (conformtest-headers-UNIX98): Likewise.
1640 (conformtest-headers-XOPEN2K): Likewise.
1641 (conformtest-headers-POSIX2008): Likewise.
1642 * posix/compat-streams.c: New file.
1643 * posix/Makefile (routines): Add it.
1644 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1645 getpmsg, isastream, putmsg, putpmsg.
1646 (GLIBC_2.30): New section.
1647 * bits/stropts.h: Remove file.
1648 * bits/xtitypes.h: Likewise.
1649 * conform/data/stropts.h-data: Likewise.
1650 * include/stropts.h: Likewise.
1651 * include/sys/stropts.h: Likewise.
1652 * include/xtitypes.h: Likewise.
1653 * streams/Makefile: Likewise.
1654 * streams/fattach.c: Likewise.
1655 * streams/fdetach.c: Likewise.
1656 * streams/getmsg.c: Likewise.
1657 * streams/getpmsg.c: Likewise.
1658 * streams/isastream.c: Likewise.
1659 * streams/putmsg.c: Likewise.
1660 * streams/putpmsg.c: Likewise.
1661 * streams/stropts.h: Likewise.
1662 * streams/sys/stropts.h: Likewise.
1663 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1664 * sysdeps/s390/bits/xtitypes.h: Likewise.
1665 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1666 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1667 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1668 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1669 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1670 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1671 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1672 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1673 * sysdeps/x86/bits/xtitypes.h: Likewise.
1674
1675 2019-03-14 Florian Weimer <fweimer@redhat.com>
1676
1677 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1678 libnss_files.
1679 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1680 but not with libnss_files.
1681 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1682
1683 2019-03-14 Zack Weinberg <zackw@panix.com>
1684
1685 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1686 Specify encoding="utf-8" when opening headers to check.
1687
1688 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1689
1690 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1691 version to 5.0.
1692 (Context.checkout_tar): Handle variable major version for Linux
1693 kernel.
1694
1695 2019-03-13 Florian Weimer <fweimer@redhat.com>
1696
1697 [BZ #24047]
1698 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1699
1700 2019-03-13 Zack Weinberg <zackw@panix.com>
1701
1702 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1703 Move to stdlib.
1704 * include/inttypes.h: Adjust to match.
1705 * include/stdint.h: New wrapper.
1706
1707 2019-03-13 Zack Weinberg <zackw@panix.com>
1708
1709 * scripts/check-obsolete-constructs.py: New test script.
1710 * scripts/check-installed-headers.sh: Remove tests for
1711 obsolete typedefs, superseded by check-obsolete-constructs.py.
1712 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1713 as a special test. Update commentary.
1714 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1715 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1716 Update commentary.
1717 * posix/sys/types.h (__u_intN_t): Remove.
1718 (u_int8_t): Typedef using __uint8_t.
1719 (u_int16_t): Typedef using __uint16_t.
1720 (u_int32_t): Typedef using __uint32_t.
1721 (u_int64_t): Typedef using __uint64_t.
1722
1723 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1724
1725 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1726 call _dl_procinfo.
1727 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1728 Ignore types other than AT_HWCAP.
1729 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1730 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1731 Likewise.
1732 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1733 in the case of falling back to generic output mechanism.
1734 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1735 Likewise.
1736
1737 2019-03-12 Florian Weimer <fweimer@redhat.com>
1738
1739 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1740
1741 2019-03-12 Florian Weimer <fweimer@redhat.com>
1742
1743 [BZ #24047]
1744 resolv: Enable full ICMP errors for UDP DNS sockets
1745 * resolv/res_enable_icmp.c: New file.
1746 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
1747 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
1748 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
1749 socket.
1750
1751 2019-03-11 Mao Han <han_mao@c-sky.com>
1752
1753 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
1754 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
1755
1756 2019-03-11 Mao Han <han_mao@c-sky.com>
1757
1758 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
1759 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
1760 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
1761
1762 2019-03-11 Mao Han <han_mao@c-sky.com>
1763
1764 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
1765 directly.
1766 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
1767 definition.
1768
1769 2019-03-11 Mao Han <han_mao@c-sky.com>
1770
1771 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
1772 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
1773 in mcontext_t
1774
1775 2019-03-08 Mike FABIAN <mfabian@redhat.com>
1776
1777 [BZ #24307]
1778 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
1779 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1780 Unicode 12.0.0.
1781 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1782 * localedata/unicode-gen/PropList.txt: Likewise.
1783 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1784 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
1785 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
1786 * localedata/charmaps/UTF-8: Regenerate.
1787 * localedata/locales/i18n_ctype: Likewise.
1788 * localedata/locales/tr_TR: Likewise.
1789 * localedata/locales/translit_circle: Likewise.
1790 * localedata/locales/translit_cjk_compat: Likewise.
1791 * localedata/locales/translit_combining: Likewise.
1792 * localedata/locales/translit_compat: Likewise.
1793 * localedata/locales/translit_font: Likewise.
1794 * localedata/locales/translit_fraction: Likewise.
1795
1796 2019-03-07 Joseph Myers <joseph@codesourcery.com>
1797
1798 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
1799 than after operators.
1800 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
1801 (setitimer_locked): Likewise.
1802 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
1803 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1804 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
1805 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
1806 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
1807 (PPC_CPU_SUPPORTED): Likewise.
1808 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
1809 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
1810 (stat_overflow): Likewise.
1811 (statfs_overflow): Likewise.
1812 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
1813 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
1814 (eq_ttyname_r): Likewise.
1815 (run_chroot_tests): Likewise.
1816
1817 2019-03-07 Florian Weimer <fweimer@redhat.com>
1818
1819 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
1820 header check.
1821
1822 2019-03-07 Martin Liska <mliska@suse.cz>
1823
1824 * math/Makefile: Change location where math-vector-fortran.h is
1825 installed.
1826 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
1827 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
1828 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
1829 * scripts/check-installed-headers.sh: Skip Fortran header files.
1830 * scripts/check-wrapper-headers.py: Likewise.
1831
1832 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1833
1834 * nptl/nptl-init.c (__have_futex_clock_realtime,
1835 __have_futex_clock_realtime): Remove definition.
1836 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
1837 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
1838 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
1839 __ASSUME_FUTEX_CLOCK_REALTIME support.
1840 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1841 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1842 * sysdeps/unix/sysv/linux/kernel-features.h
1843 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
1844 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
1845 Adjust comment.
1846
1847 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1848
1849 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
1850 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
1851 __GI___wcscpy and wcscpy.
1852
1853 2019-03-04 Florian Weimer <fweimer@redhat.com>
1854
1855 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
1856 declaration.
1857 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
1858 defined.
1859
1860 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
1861
1862 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
1863 * sysdeps/s390/s390-32/sysdep.h: Likewise.
1864
1865 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1866
1867 [BZ #24162]
1868 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
1869 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
1870
1871 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1872
1873 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
1874 tests.
1875 (do_test): Likewise.
1876 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
1877 (do_test_call_varg): Likewise.
1878 (do_test_call_rarg): Likewise.
1879 * sysdeps/ieee754/ldbl-opt/Makefile
1880 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
1881 tst-nldbl-error.
1882 ($(objpfx)tst-nldbl-warn.c): New rule.
1883 ($(objpfx)tst-nldbl-error.c): Likewise.
1884 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
1885 New variables.
1886
1887 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1888
1889 [BZ #23984]
1890 * include/bits/error-ldbl.h: New file.
1891 * include/error.h: Include stdarg.h. Declare internal functions
1892 __error_internal and __error_at_line_internal.
1893 * misc/Makefile (headers): Add bits/error-ldbl.h.
1894 * misc/bits/error-ldbl.h: New file.
1895 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
1896 avoid the inclusion of bits/error.h.
1897 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
1898 and __nldbl_error_at_line.
1899 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
1900 (__nldbl_error, __ndlbl_error_at_line): New functions.
1901 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
1902 Redirect error and error_at_line.
1903 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1904 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1905 Likewise.
1906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1907 Likewise.
1908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1909 Likewise.
1910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1911 Likewise.
1912 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1913 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1914 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1915
1916 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1917
1918 [BZ #23984]
1919 * include/bits/err-ldbl.h: New file.
1920 * include/err.h: Add prototypes for the internal functions:
1921 __vwarnx_internal and __vwarn_internal.
1922 * misc/Makefile (headers): Add bits/err-ldbl.h.
1923 * misc/bits/err-ldbl.h: New file.
1924 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
1925 defined, i.e.: when -mlong-double-64 is in use.
1926 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
1927 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
1928 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
1929 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
1930 (VA_CALL): New macro.
1931 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
1932 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
1933 functions.
1934 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
1935 declare prototypes for the new functions.
1936 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1938 Likewise.
1939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1940 Likewise.
1941 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1942 Likewise.
1943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1944 Likewise.
1945 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1946 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1947 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1948
1949 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1950
1951 * sysdeps/ieee754/ldbl-opt/Makefile
1952 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
1953 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
1954 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
1955
1956 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1957
1958 [BZ #23983]
1959 * argp/Makefile (headers): Add bits/argp-ldbl.h.
1960 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
1961 * argp/bits/argp-ldbl.h: New file.
1962 * include/argp.h: Include stdarg.h. Add prototypes for internal
1963 functions: __argp_error_internal and __argp_failure_internal.
1964 * include/bits/argp-ldbl.h: New file.
1965 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
1966 __nldbl_argp_error and __nldbl_argp_failure.
1967 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
1968 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
1969 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
1970 Redirect argp_error and argp_failure calls.
1971 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
1972 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1973 Likewise.
1974 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1975 Likewise.
1976 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
1977 Likewise.
1978 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
1979 Likewise.
1980 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1981 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1982 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1983
1984 2019-03-01 Florian Weimer <fweimer@redhat.com>
1985
1986 [BZ #20419]
1987 * elf/tst-big-note-lib.S: Create a syntactically valid note.
1988 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
1989 code, to avoid creating an ABI tag note.
1990 (modules-names-nobuild): Add tst-big-note-lib.
1991
1992 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
1993
1994 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
1995 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
1996
1997 2019-03-01 Florian Weimer <fweimer@redhat.com>
1998
1999 [BZ #20271]
2000 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2001 (__netlink_assert_response): Add additional missing newlines.
2002
2003 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2004
2005 * sysdeps/powerpc/powerpc32/dl-machine.c
2006 (__elf_machine_fixup_plt): Use space before '('.
2007 (__process_machine_rela): Likewise.
2008 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2009 Likewise.
2010 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2011 Likewise.
2012 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2013 Likewise.
2014 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2015 (pattern): Likewise.
2016 (delta): Likewise.
2017 (check_result): Likewise.
2018 (check_excepts): Likewise.
2019 (check_op): Likewise.
2020 (fail_xr): Likewise.
2021 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2022 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2023 (SCNHSZ): Likewise.
2024 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2025 Likewise.
2026 (ARGS): Likewise.
2027 (__makecontext): Likewise.
2028 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2029 Likewise.
2030
2031 2019-02-28 Florian Weimer <fweimer@redhat.com>
2032
2033 [BZ #23937]
2034 elf: Add test with a local IFUNC resolver.
2035 * elf/ifuncmain9.c: New file.
2036 * elf/ifuncmain9pic.c: Likewise.
2037 * elf/ifuncmain9picstatic.c: Likewise.
2038 * elf/ifuncmain9pie.c: Likewise.
2039 * elf/ifuncmain9static.c: Likewise.
2040 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2041 ifuncmain9static, ifuncmain9picstatic.
2042 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2043 Add ifuncmain9, ifuncmain9pic.
2044 * elf/Makefile [multi-arch && build-shared && have-fpie]
2045 (ifunc-pie-tests): Add ifuncmain9pie.
2046 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2047 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2048 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2049
2050 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2051
2052 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2053 * configure: Regenerated.
2054 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2055
2056 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2057
2058 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2059 symbol as __wcspcy instead of wcscpy.
2060
2061 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2062
2063 * include/stdio.h (__renameat2): New hidden prototype.
2064 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2065 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2066 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2067 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2068
2069 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2070
2071 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2072 if statement.
2073
2074 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2075 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2076 * benchtests/bench-strlen.c (do_test): Likewise.
2077 (test_main): Likewise.
2078 * catgets/gencat.c (read_old): Likewise.
2079 * elf/cache.c (load_aux_cache): Likewise.
2080 * iconvdata/bug-iconv8.c (do_test): Likewise.
2081 * math/test-tgmath-ret.c (do_test): Likewise.
2082 * nis/nis_call.c (rec_dirsearch): Likewise.
2083 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2084 * nptl/tst-audit-threads.c (do_test): Likewise.
2085 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2086 * nss/nss_test1.c (init): Likewise.
2087 * nss/test-netdb.c (test_hosts): Likewise.
2088 * posix/execvpe.c (maybe_script_execute): Likewise.
2089 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2090 * stdio-common/tst-printf.c (do_test): Likewise.
2091 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2092 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2093 * stdlib/qsort.c (STACK_SIZE): Likewise.
2094 * stdlib/test-canon.c (do_test): Likewise.
2095 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2096 * string/memcmp.c (OPSIZ): Likewise.
2097 * string/test-strcpy.c (do_test): Likewise.
2098 (do_random_tests): Likewise.
2099 * string/test-strlen.c (do_test): Likewise.
2100 (test_main): Likewise.
2101 * string/test-strrchr.c (do_test): Likewise.
2102 (do_random_tests): Likewise.
2103 * string/tester.c (test_memrchr): Likewise.
2104 (test_memchr): Likewise.
2105 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2106 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2107 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2108 (read_encoded_value_with_base): Likewise.
2109 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2110 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2111 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2112 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2113 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2114 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2115 Likewise.
2116 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2117 Likewise.
2118 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2119 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2120 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2121 Likewise.
2122 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2123 Likewise.
2124 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2125 Likewise.
2126 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2127 Likewise.
2128 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2129 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2130 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2131 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2132 * time/test_time.c (main): Likewise.
2133
2134 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2135
2136 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2137
2138 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2139 wmemcpy.
2140
2141 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2142 wmemcpy.
2143
2144 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2145
2146 * include/wchar.h (__wcscpy): New prototype.
2147 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2148 (__wcscpy): Route internal symbol to generic implementation.
2149 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2150 Add internal __wcscpy alias.
2151 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2152 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2153 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2154 * wcsmbs/wcscpy.c (wcscpy): Add
2155 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2156 use generic implementation.
2157 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2158
2159 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2160 wmemset.
2161
2162 * sysdeps/m68k/wcpcpy.c: Remove file.
2163 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2164
2165 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2166
2167 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2168 than after operators.
2169 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2170 * sysdeps/mach/hurd/getcwd.c
2171 (__hurd_canonicalize_directory_name_internal): Likewise.
2172 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2173 (pthread_mutex_consistent): Likewise.
2174 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2175 Likewise.
2176 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2177 (__pthread_mutex_transfer_np): Likewise.
2178 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2179 (__pthread_mutex_unlock): Likewise.
2180 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2181 (mtx_owned_p): Likewise.
2182 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2183 (pthread_mutexattr_getrobust): Likewise.
2184 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2185 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2186 Likewise.
2187 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2188 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2189 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2190 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2191 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2192 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2193 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2194 Likewise.
2195 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2196 Likewise.
2197 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2198 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2199 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2200 (____longjmp_chk): Likewise.
2201 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2202 Likewise.
2203 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2204 (INTERNAL_SYSCALL): Likewise.
2205 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2206 (INTERNAL_SYSCALL): Likewise.
2207 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2208 (__get_clockfreq_via_cpuinfo): Likewise.
2209
2210 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2211 comments.
2212 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2213 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2214 (WORD_COPY_BWD): Likewise.
2215 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2216 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2217 Likewise.
2218 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2219 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2220 comment.
2221 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2222
2223 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2224
2225 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2226 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2227 rather than after operators.
2228 * elf/cache.c (print_cache): Likewise.
2229 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2230 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2231 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2232 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2233 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2234 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2235 (reauth_proc): Likewise.
2236 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2237 (__file_name_split_at): Likewise.
2238 (__directory_name_split_at): Likewise.
2239 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2240 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2241 * iconv/gconv_dl.c (do_print): Likewise.
2242 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2243 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2244 * locale/setlocale.c (new_composite_name): Likewise.
2245 * malloc/memusagestat.c (main): Likewise.
2246 * misc/fstab.c (fstab_convert): Likewise.
2247 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2248 Likewise.
2249 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2250 (getgrent_next_file): Likewise.
2251 (internal_getgrnam_r): Likewise.
2252 (internal_getgrgid_r): Likewise.
2253 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2254 Likewise.
2255 (internal_getgrent_r): Likewise.
2256 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2257 (getpwent_next_nss): Likewise.
2258 (getpwent_next_file): Likewise.
2259 (internal_getpwnam_r): Likewise.
2260 (internal_getpwuid_r): Likewise.
2261 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2262 Likewise.
2263 (getspent_next_nss): Likewise.
2264 (internal_getspnam_r): Likewise.
2265 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2266 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2267 * string/strchr.c (STRCHR): Likewise.
2268 * string/strchrnul.c (STRCHRNUL): Likewise.
2269 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2270 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2271 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2272 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2273 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2274 Likewise.
2275 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2276 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2277 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2278 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2279 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2280 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2281 (open_file): Likewise.
2282 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2283 (pthread_mutexattr_setprotocol): Likewise.
2284 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2285 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2286 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2287 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2288 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2289 Likewise.
2290 (elf_machine_rela): Likewise.
2291 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2292 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2293 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2294 * sysdeps/posix/rename.c (rename): Likewise.
2295 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2296 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2297 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2298 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2299 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2300 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2301 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2302 Likewise.
2303 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2304 Likewise.
2305 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2306 * time/tzfile.c (__tzfile_compute): Likewise.
2307
2308 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2309
2310 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2311 rather than after operators.
2312 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2313 * crypt/md5.c (md5_finish_ctx): Likewise.
2314 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2315 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2316 * elf/cache.c (load_aux_cache): Likewise.
2317 * elf/dl-load.c (open_verify): Likewise.
2318 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2319 * elf/readelflib.c (process_elf_file): Likewise.
2320 * elf/rtld.c (dl_main): Likewise.
2321 * elf/sprof.c (generate_call_graph): Likewise.
2322 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2323 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2324 * hurd/dtable.c (reauth_dtable): Likewise.
2325 * hurd/getdport.c (__getdport): Likewise.
2326 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2327 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2328 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2329 Likewise.
2330 * hurd/hurdioctl.c (fioctl): Likewise.
2331 * hurd/hurdselect.c (_hurd_select): Likewise.
2332 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2333 (STOPSIGS): Likewise.
2334 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2335 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2336 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2337 * hurd/msgportdemux.c (msgport_server): Likewise.
2338 * hurd/setauth.c (_hurd_setauth): Likewise.
2339 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2340 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2341 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2342 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2343 * login/tst-utmp.c (do_check): Likewise.
2344 (simulate_login): Likewise.
2345 * mach/lowlevellock.h (lll_lock): Likewise.
2346 (lll_trylock): Likewise.
2347 * math/test-fenv.c (ALL_EXC): Likewise.
2348 * math/test-fenvinline.c (ALL_EXC): Likewise.
2349 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2350 * nis/nis_call.c (__do_niscall3): Likewise.
2351 * nis/nis_callback.c (cb_prog_1): Likewise.
2352 * nis/nis_defaults.c (searchaccess): Likewise.
2353 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2354 * nis/nis_ismember.c (internal_ismember): Likewise.
2355 * nis/nis_local_names.c (nis_local_principal): Likewise.
2356 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2357 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2358 Likewise.
2359 * nis/ypclnt.c (yp_match): Likewise.
2360 (yp_first): Likewise.
2361 (yp_next): Likewise.
2362 (yp_master): Likewise.
2363 (yp_order): Likewise.
2364 * nscd/hstcache.c (cache_addhst): Likewise.
2365 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2366 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2367 (internal_getpwuid_r): Likewise.
2368 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2369 * posix/glob.h (__GLOB_FLAGS): Likewise.
2370 * posix/regcomp.c (peek_token): Likewise.
2371 (peek_token_bracket): Likewise.
2372 (parse_expression): Likewise.
2373 * posix/regexec.c (sift_states_iter_mb): Likewise.
2374 (check_node_accept_bytes): Likewise.
2375 * posix/tst-spawn3.c (do_test): Likewise.
2376 * posix/wordexp-test.c (testit): Likewise.
2377 * posix/wordexp.c (parse_tilde): Likewise.
2378 (exec_comm): Likewise.
2379 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2380 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2381 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2382 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2383 * stdio-common/tst-fileno.c (do_test): Likewise.
2384 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2385 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2386 * stdlib/strtod_l.c (round_and_return): Likewise.
2387 (____STRTOF_INTERNAL): Likewise.
2388 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2389 * string/strcspn.c (STRCSPN): Likewise.
2390 * string/test-memmem.c (simple_memmem): Likewise.
2391 * termios/tcsetattr.c (tcsetattr): Likewise.
2392 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2393 * time/asctime.c (asctime_internal): Likewise.
2394 * time/strptime_l.c (__strptime_internal): Likewise.
2395 * time/sys/time.h (timercmp): Likewise.
2396 * time/tzfile.c (__tzfile_compute): Likewise.
2397
2398 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2399
2400 [BZ #21915]
2401 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2402
2403 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2404
2405 * argp/argp-help.c (__argp_error_internal): New function,
2406 renamed from __argp_error, but that takes a 'mode_flags'
2407 parameter to control the format of long double parameters.
2408 (__argp_error): Converted into a call __argp_error_internal.
2409 (__argp_failure_internal): New function, renamed from
2410 __argp_failure, but that takes a 'mode_flags' parameter.
2411 (__argp_failure): Converted into a call __argp_failure_internal.
2412 * misc/err.c (__vwarnx_internal): New function, renamed from
2413 vwarnx, but that takes a 'mode_flags' parameter.
2414 (vwarnx): Converted into a call to __vwarnx_internal.
2415 (__vwarn_internal): New function, renamed from vwarn, but that
2416 takes a 'mode_flags' parameter.
2417 (vwarn): Converted into a call to __vwarn_internal.
2418 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2419 call to __vfxprintf with 'mode_flags'.
2420 (__error_internal): New function, renamed from error, but that
2421 takes a 'mode_flags' parameter.
2422 (error): Converted into a call to __error_internal.
2423 (__error_at_line_internal): New function, renamed from
2424 error_at_line, but that takes a 'mode_flags' parameter.
2425 (error_at_line): Converted into a call to
2426 __error_at_line_internal.
2427 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2428 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2429 Likewise.
2430
2431 2019-02-20 Martin Liska <mliska@suse.cz>
2432
2433 * math/Makefile: Install math-vector-fortran.h.
2434 * bits/math-vector-fortran.h: New file.
2435 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2436
2437 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2438
2439 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2440 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2441
2442 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2443
2444 * nptl/pthread_mutex_trylock.c: Fix comment.
2445
2446 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2447
2448 * nptl/pthread_tryjoin.c: Fix comment.
2449
2450 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2451
2452 [BZ #24231]
2453 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2454 after R_SPARC_H34 case.
2455
2456 2019-02-18 Florian Weimer <fweimer@redhat.com>
2457
2458 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2459 (getanswer): Do not call Dprintf.
2460 (res_gethostbyname2_context): Likewise.
2461 (res_gethostbyaddr_context): Likewise.
2462
2463 2019-02-18 Florian Weimer <fweimer@redhat.com>
2464
2465 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2466 declaration.
2467 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2468 Remove definitions.
2469 * libio/stdfiles.c: Update comment.
2470 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2471 set _IO_stdin, _IO_stdout, _IO_stderr.
2472 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2473 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2474 inline function.
2475 (_IO_deallocate_file): New inline function.
2476 * libio/iolibio.h (_IO_vprintf): Remove definition.
2477 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2478 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2479 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2480 _IO_legacy_file.
2481 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2482 __builtin_expect. Use _IO_legacy_file.
2483
2484 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2485
2486 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2487 Initialize ctid with a known value and remove update of ctid
2488 after clone.
2489 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2490 as assumed current value of ctid_ptr.
2491
2492 2019-02-16 Florian Weimer <fweimer@redhat.com>
2493
2494 Check that non-sysdeps headers have wrapper headers.
2495 * scripts/check-wrapper-headers.py: New file.
2496 * Makefile (tests-special): Add check-wrapper-headers.out.
2497 (check-wrapper-headers.out): New target.
2498 * Rules (tests-special): Add check-wrapper-headers.out.
2499 (check-wrapper-headers.out): New target.
2500
2501 2019-02-16 Florian Weimer <fweimer@redhat.com>
2502
2503 Add missing header wrappers under include/.
2504 * include/ar.h: New file.
2505 * include/bits/mqueue2.h: Likewise.
2506 * include/bits/stdio.h: Likewise.
2507 * include/bits/stdio2.h: Likewise.
2508 * include/fstab.h: Likewise.
2509 * include/fts.h: Likewise.
2510 * include/lastlog.h: Likewise.
2511 * include/netinet/icmp6.h: Likewise.
2512 * include/netinet/igmp.h: Likewise.
2513 * include/netinet/ip6.h: Likewise.
2514 * include/re_comp.h: Likewise.
2515 * include/regexp.h: Likewise.
2516 * include/rpcsvc/bootparam.h: Likewise.
2517 * include/rpcsvc/yp_prot.h: Likewise.
2518 * include/sys/random.h: Likewise.
2519 * include/sys/stropts.h: Likewise.
2520 * include/sys/ttychars.h: Likewise.
2521 * include/sys/vfs.h: Likewise.
2522 * include/wait.h: Likewise.
2523
2524 2019-02-16 Florian Weimer <fweimer@redhat.com>
2525
2526 * nptl_db/proc_service.h: Move to ...
2527 * sysdeps/nptl/proc_service.h: ... here.
2528 * nptl_db/thread_db.h: Move to ...
2529 * sysdeps/nptl/thread_db.h: ... here.
2530 * nptl/descr.h: Include <thread_db.h>.
2531
2532 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2533
2534 * io/Makefile (tests): Add tst-lockf.
2535 * io/lockf.c (lockf): Use __fcntl and only define for
2536 !__OFF_T_MATCHES_OFF64_T.
2537 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2538 __OFF_T_MATCHES_OFF64_T case.
2539 * io/tst-lockf.c: New file.
2540 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2541 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2542 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2543 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2544 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2546 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2547 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2548 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2549
2550 2019-02-15 Florian Weimer <fweimer@redhat.com>
2551
2552 [BZ #24211]
2553 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2554 pd->result after the thread descriptor has been freed.
2555
2556 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2557
2558 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2559 from function return type.
2560
2561 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2562
2563 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2564
2565 * scripts/test_printers_common.py: Set TERM to a known harmless
2566 value.
2567
2568 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2569
2570 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2571 (xdr_u_int): Likewise.
2572 (xdr_enum): Likewise.
2573 (xdr_bytes): Reword fall-through comment.
2574 (xdr_string): Likewise.
2575
2576 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2577
2578 [BZ #2421]
2579 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2580 (tests): Add tst-join8 tst-join9.
2581 * nptl/lll_timedwait_tid.c: Remove file.
2582 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2583 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2584 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2585 * nptl/pthread_join_common.c (timedwait_tid): New function.
2586 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2587 is set.
2588 * nptl/tst-join5.c (thread_join): New function.
2589 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2590 check.
2591 * nptl/tst-join8.c: New file.
2592 * nptl/tst-join9.c: Likewise.
2593 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2594 lll_futex_timed_wait_cancel): Add generic macros.
2595 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2596 Remove definitions.
2597 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2598 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2599 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2600 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2601 Remove function.
2602 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2603 Likewise.
2604 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2605 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2606 (lll_futex_timed_wait_cancel): New macro.
2607
2608 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2609
2610 * benchtests/Makefile: Add malloc-simple benchmark.
2611 * benchtests/bench-malloc-simple.c: New benchmark.
2612
2613 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2614
2615 * benchtests/bench-memmove.c (do_one_test): Remove unused
2616 ORIG_SRC.
2617 (do_test): Adjust.
2618 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2619 ORIG_SRC.
2620 (do_test): Adjust.
2621
2622 2019-01-13 Jim Wilson <jimw@sifive.com>
2623
2624 [BZ #24040]
2625 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2626 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2627 (func): New.
2628 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2629 call func directly.
2630 * nptl/Makefile (tests): Add tst-unwind-thread.
2631 (CFLAGS-tst-unwind-thread.c): Define.
2632 * nptl/tst-unwind-thread.c: New file.
2633 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2634 as undefined.
2635
2636 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2637
2638 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2639 comment wording.
2640 * nis/nis_call.c (__do_niscall3): Likewise.
2641
2642 * catgets/gencat.c (normalize_line): Use braces around empty
2643 'else' body.
2644 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2645 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2646 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2647 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2648 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2649 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2650 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2651 definition.
2652
2653 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2654 execlp returns.
2655
2656 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2657
2658 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2659 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2660 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2661 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2662 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2663 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2664 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2665 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2666 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2667 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2668 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2669 * benchtests/bench-bcopy.c: Delete file.
2670 * benchtests/bench-bzero.c: Likewise.
2671 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2672 (simple_memccpy): Remove.
2673 (generic_memccpy): Add function.
2674 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2675 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2676 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2677 (generic_mempcpy): Add new function.
2678 * benchtests/bench-memset.c (simple_bzero): Remove.
2679 (builtin_bzero): Remove.
2680 (builtin_memset): Remove.
2681 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2682 (generic_rawmemchr): Add new function.
2683
2684 2019-02-12 Florian Weimer <fweimer@redhat.com>
2685
2686 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2687
2688 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2689
2690 [BZ #24122]
2691 * elf/Makefile (tests): Add tst-audit13.
2692 (modules-names): Add tst-audit13mod1.
2693 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2694 rule.
2695 * elf/tst-audit13.c: New file.
2696 * elf/tst-audit13mod1.c: Likewise.
2697
2698 2019-02-12 Florian Weimer <fweimer@redhat.com>
2699
2700 [BZ #24122]
2701 * elf/rtld.c (unload_audit_module): New function.
2702 (report_audit_module_load_error): Likewise.
2703 (load_audit_module): Likewise. Extracted from dl_main. Call
2704 _dl_close if the laversion symbol cannot be found. Use early
2705 returns for error handling. Add malloc error check. Check for a
2706 zero return value from la_version. Remove spurious comment about
2707 static TLS initialization. Remove useless casts.
2708 (notify_audit_modules_of_loaded_object): New function. Extracted
2709 from dl_main.
2710 (load_audit_module): Likewise.
2711 (dl_main): Call load_audit_modules.
2712
2713 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2714
2715 * elf/dl-exception.c (_dl_exception_create_format): Add
2716 fall-through comments.
2717 * elf/ldconfig.c (parse_conf_include): Likewise.
2718 * elf/rtld.c (print_statistics): Likewise.
2719 * locale/programs/charmap.c (parse_charmap): Likewise.
2720 * misc/mntent_r.c (__getmntent_r): Likewise.
2721 * posix/wordexp.c (parse_arith): Likewise.
2722 (parse_backtick): Likewise.
2723 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2724 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2725 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2726
2727 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2728
2729 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2730 Use float instead of double.
2731
2732 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2733
2734 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2735
2736 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2737
2738 * sysdeps/powerpc/bits/mathinline.h: Remove.
2739
2740 2019-02-08 Florian Weimer <fweimer@redhat.com>
2741
2742 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
2743 * math/bits/math-finite.h: Move to ...
2744 * bits/math-finite.h: ... here.
2745
2746 2019-02-08 Florian Weimer <fweimer@redhat.com>
2747
2748 * sysdeps/generic/bits/unistd_ext.h: Move to ...
2749 * bits/unistd_ext.h: here.
2750
2751 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
2752
2753 [BZ #21915]
2754 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
2755 * nss/tst-nss-files-hosts-long.c: New file.
2756 * nss/tst-nss-files-hosts-long.root: New directory.
2757 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
2758 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
2759
2760 2019-02-08 Florian Weimer <fweimer@redhat.com>
2761
2762 * include/bits/unistd_ext.h: Remove file.
2763 * posix/bits/unistd_ext.h: Move to ...
2764 * sysdeps/generic/bits/unistd_ext.h: ... here.
2765
2766 2019-02-08 Florian Weimer <fweimer@redhat.com>
2767
2768 * include/bits/unistd_ext.h: New file.
2769
2770 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
2771
2772 * time/tst-strftime2.c: Use array_length macros instead of magic
2773 numbers.
2774
2775 2019-02-08 Florian Weimer <fweimer@redhat.com>
2776
2777 [BZ #24161]
2778 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
2779 argument.
2780 * nptl/register-atfork.c (__run_fork_handlers): Only perform
2781 locking if the new do_locking argument is true.
2782 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
2783 __run_fork_handlers.
2784
2785 2019-02-08 Florian Weimer <fweimer@redhat.com>
2786
2787 [BZ #6399]
2788 Linux: Add gettid system call wrapper.
2789 * posix/Makefile (headers): Add bits/unistd_ext.h.
2790 * posix/bits/unistd_ext.h: New file.
2791 * posix/unistd.h: Include it.
2792 * manual/process.texi (Process Identification): Document gettid.
2793 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
2794 tst-gettid, tst-gettid-kill.
2795 (tst-gettid): Link with $(shared-thread-library).
2796 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
2797 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
2798 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
2799 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
2800 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
2801 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
2802 Add gettid.
2803 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
2804 Likewise.
2805 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
2806 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
2807 Likewise.
2808 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
2809 Likewise.
2810 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
2811 Likewise.
2812 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
2813 Likewise.
2814 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
2815 Likewise.
2816 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
2817 Likewise.
2818 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
2819 Likewise.
2820 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2821 (GLIBC_2.30): Likewise.
2822 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2823 (GLIBC_2.30): Likewise.
2824 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2825 (GLIBC_2.30): Likewise.
2826 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2827 (GLIBC_2.30): Likewise.
2828 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
2829 Likewise.
2830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2831 (GLIBC_2.30): Likewise.
2832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2833 (GLIBC_2.30): Likewise.
2834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
2835 (GLIBC_2.30): Likewise.
2836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
2837 (GLIBC_2.30): Likewise.
2838 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
2839 Likewise.
2840 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
2841 Likewise.
2842 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
2843 Likewise.
2844 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
2845 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
2846 Likewise.
2847 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
2848 Likewise.
2849 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
2850 Likewise.
2851 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
2852 Likewise.
2853 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
2854
2855 2019-02-08 Florian Weimer <fweimer@redhat.com>
2856
2857 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
2858 compatibility symbols.
2859
2860 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
2861
2862 [BZ #24180]
2863 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
2864 Add compiler barriers and comments.
2865
2866 2019-02-07 Florian Weimer <fweimer@redhat.com>
2867
2868 * include/array_length.h (array_length): Do not use a statement
2869 expression and _Static_assert, so that array_length can be used at
2870 file scope and as a constant expression.
2871
2872 2019-02-07 Florian Weimer <fweimer@redhat.com>
2873
2874 * support/xdlfcn.h (xdlmopen): Declare.
2875 * support/xdlmopen.c: New file.
2876 * support/Makefile (libsupport-routines): Add xdlmopen.
2877
2878 2019-02-06 Joseph Myers <joseph@codesourcery.com>
2879
2880 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
2881 before return type, without separate inline.
2882 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
2883 * elf/dl-tunables.h (tunable_is_name): Likewise.
2884 * malloc/malloc.c (do_set_trim_threshold): Likewise.
2885 (do_set_top_pad): Likewise.
2886 (do_set_mmap_threshold): Likewise.
2887 (do_set_mmaps_max): Likewise.
2888 (do_set_mallopt_check): Likewise.
2889 (do_set_perturb_byte): Likewise.
2890 (do_set_arena_test): Likewise.
2891 (do_set_arena_max): Likewise.
2892 (do_set_tcache_max): Likewise.
2893 (do_set_tcache_count): Likewise.
2894 (do_set_tcache_unsorted_limit): Likewise.
2895 * nis/nis_subr.c (count_dots): Likewise.
2896 * nptl/allocatestack.c (advise_stack_range): Likewise.
2897 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
2898 (do_sin): Likewise.
2899 (reduce_sincos): Likewise.
2900 (do_sincos): Likewise.
2901 * sysdeps/unix/sysv/linux/x86/elision-conf.c
2902 (do_set_elision_enable): Likewise.
2903 (TUNABLE_CALLBACK_FNDECL): Likewise.
2904
2905 2019-02-06 Florian Weimer <fweimer@redhat.com>
2906
2907 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
2908 (xdlsym): Use dlerror to detect a NULL symbol.
2909
2910 2019-02-06 Florian Weimer <fweimer@redhat.com>
2911
2912 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
2913 <stap-probe.h>.
2914 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2915
2916 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2917
2918 * libio/tst-bz24153.c (wide): Use wide char format specifier.
2919
2920 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2921
2922 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
2923 __wmemcmp and weak alias to wmemcmp.
2924
2925 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
2926
2927 [BZ #23403]
2928 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
2929 TLS_TCB_AT_TP tls variant.
2930 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
2931 Add alignment checks.
2932 * support/Makefile (libsupport-routines): Add xposix_memalign and
2933 xpthread_setstack.
2934 * support/support.h: Add xposix_memalign.
2935 * support/xthread.h: Add xpthread_attr_setstack.
2936 * support/xposix_memalign.c: New File.
2937 * support/xpthread_attr_setstack.c: Likewise.
2938
2939 2019-02-05 Florian Weimer <fweimer@redhat.com>
2940
2941 [BZ #24164]
2942 arm: Use "nr" constraint for Systemtap probes, to avoid the
2943 compiler using memory operands for constants, due to the "o"
2944 alternative in the default "nor" constraint.
2945 * include/stap-probe.h [USE_STAP_PROBE]: Include
2946 <stap-probe-machine.h>
2947 * sysdeps/generic/stap-probe-machine.h: New file.
2948 * sysdeps/arm/stap-probe-machine.h: Likewise.
2949
2950 2019-02-04 Joseph Myers <joseph@codesourcery.com>
2951
2952 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
2953 with 0, not tcache->entries[tc_idx].
2954
2955 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
2956 once.
2957
2958 2019-02-04 Andreas Schwab <schwab@suse.de>
2959
2960 [BZ #16976]
2961 [BZ #17396]
2962 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
2963 looking up collating elements match against (wide) character
2964 sequence instead of name. Correct alignment adjustment.
2965 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
2966 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
2967 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
2968 (LOCALES): Add cs_CZ.ISO-8859-2.
2969 * posix/tst-fnmatch4.c: New file.
2970 * posix/tst-fnmatch5.c: New file.
2971 * include/wchar.h (__wmemcmp): Declare.
2972 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
2973 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
2974 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
2975 * sysdeps/s390/wmemcmp.c: Likewise.
2976
2977 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
2978
2979 [BZ #24155]
2980 CVE-2019-7309
2981 * NEWS: Updated for CVE-2019-7309.
2982 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
2983 upper 32 bits of RDX register for x32. Use unsigned Jcc
2984 instructions, instead of signed.
2985 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
2986 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
2987
2988 2019-02-04 Florian Weimer <fweimer@redhat.com>
2989
2990 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
2991 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
2992 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
2993 Likewise.
2994 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
2995 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
2996 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
2997 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
2998 Likewise.
2999 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3000 Likewise.
3001 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3002 Likewise.
3003 (posix_spawn_file_actions_addopen): Likewise.
3004 (posix_spawn_file_actions_addclose): Likewise.
3005 (posix_spawn_file_actions_adddup2): Likewise.
3006 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3007 qualifiers.
3008 (posix_spawn_file_actions_addfchdir_np): Likewise.
3009
3010 2019-02-04 David Newall <glibc@davidnewall.com>
3011
3012 elf: Implement --preload option for the dynamic linker.
3013 * elf/rtld.c (preloadarg): New variable.
3014 (handle_preload_list): Pass through “where” argument to
3015 do_preload.
3016 (dl_main): Handle "--preload" and add second call to
3017 handle_preload_list.
3018 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3019 (tst-rtld-preload-OBJS): Set variable.
3020 (tst-rtld-preload.out): New target.
3021 * elf/tst-rtld-preload.sh: New file.
3022
3023 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3024
3025 * Makefile (testrun.sh): Exit in case of incorrect argument.
3026
3027 2019-02-04 Florian Weimer <fweimer@redhat.com>
3028
3029 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3030 alignment gaps.
3031
3032 2019-02-03 Florian Weimer <fweimer@redhat.com>
3033
3034 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3035 implicit overflow checks.
3036
3037 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3038
3039 * stdlib/isomac.c: Include <unistd.h>.
3040
3041 2019-02-03 Florian Weimer <fweimer@redhat.com>
3042
3043 * include/time.h (__tzfile_default): Use int, not long int, for
3044 the GMT offsets.
3045 * time/tzfile.c (struct ttinfo): Change type of the offset member
3046 to int.
3047 (__tzfile_read): Remove useless cast.
3048 (__tzfile_default): Adjust prototype.
3049 * time/tzset.c (tz_rule): Change type of the offset member to int.
3050 (parse_offset): Change the type of the sign variable to int.
3051
3052 2019-02-03 Florian Weimer <fweimer@redhat.com>
3053
3054 [BZ #24153]
3055 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3056 * libio/getchar.c (getchar): Likewise.
3057 * libio/getchar_u.c (getchar_unlocked): Likewise.
3058 * libio/getwchar.c (getwchar): Likewise.
3059 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3060 * libio/iogets.c (_IO_gets): Likewise.
3061 * libio/vscanf.c (_IO_vscanf): Likewise.
3062 * libio/vwscanf.c (__vwscanf): Likewise.
3063 * libio/tst-bz24153.c: New file.
3064 * libio/Makefile (tests): Add it.
3065
3066 2019-02-02 Florian Weimer <fweimer@redhat.com>
3067
3068 [BZ #14829]
3069 * manual/resource.texi (Basic Scheduling Functions): Add
3070 portability note. Change process to task throughout the section.
3071 Remove incorrect comment about sched_yield as it affects
3072 tasks/threads, not entire processes.
3073 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3074 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3075
3076 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3077
3078 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3079 * configure: Regenerated.
3080 * manual/install.texi (Tools for Compilation): Update minimum GCC
3081 version.
3082 * INSTALL: Regenerated.
3083
3084 2019-02-01 Florian Weimer <fweimer@redhat.com>
3085
3086 * support/support_test_compare_string.c
3087 (support_test_compare_string): Use "string" in error message.
3088 * support/tst-test_compare_string.c (do_test): Adjust.
3089
3090 2019-02-01 Florian Weimer <fweimer@redhat.com>
3091
3092 * support/support_format_address_family.c
3093 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3094
3095 2019-02-01 Florian Weimer <fweimer@redhat.com>
3096
3097 * manual/socket.texi (Internet Address Formats): Clarify the byte
3098 order of struct sockaddr_in, struct sockaddr_in6. Document
3099 sin6_flowinfo and sin6_scope_id.
3100
3101 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3102
3103 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3104 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3105 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3106 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3107 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3108 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3109
3110 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3111
3112 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3113 [!MEMCHR](MEMCHR): Set to __memchr.
3114 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3115 Add memchr_generic and memchr_nosimd.
3116 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3117 (__libc_ifunc_impl_list): Add memchr ifuncs.
3118 * sysdeps/aarch64/multiarch/memchr.c: New file.
3119 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3120 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3121
3122 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3123
3124 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3125 Add memset_emag.
3126 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3127 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3128 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3129 Add IS_EMAG check for ifunc dispatch.
3130 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3131 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3132
3133 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3134
3135 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3136 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3137 Add emag.
3138 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3139 New macro.
3140
3141 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3142
3143 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3144
3145 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3146
3147 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3148 syscall-template file.
3149
3150 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3151 Torvald Riegel <triegel@redhat.com>
3152 Rik Prohaska <prohaska7@gmail.com>
3153
3154 [BZ# 23844]
3155 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3156 tst-rwlock-trywrlock-stall.
3157 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3158 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3159 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3160 Set __wrphase_fute to 1 only if we started the write phase.
3161 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3162 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3163 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3164 * support/xpthread_rwlock_destroy.c: New file.
3165 * support/xthread.h: Declare xpthread_rwlock_destroy.
3166
3167 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3168
3169 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3170 version to 4.0.2.
3171
3172 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3173
3174 [BZ #24051]
3175 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3176 * libio/fileops.c (_IO_new_file_underflow): Likewise
3177 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3178 * libio/putchar.c (putchar): Likewise.
3179 * libio/putchar_u.c (putchar_unlocked): Likewise.
3180 * libio/putwchar.c (putchar): Likewise.
3181 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3182 * libio/tst-bz24051.c: New test.
3183 * libio/Makefile (tests): Add tst-bz24051
3184
3185 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3186
3187 CVE-2019-9169
3188 regex: fix read overrun [BZ #24114]
3189 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3190 https://debbugs.gnu.org/34140
3191 * posix/regexec.c (proceed_next_node):
3192 Do not read past end of input buffer.
3193
3194 2019-01-31 Florian Weimer <fweimer@redhat.com>
3195
3196 [BZ #24059]
3197 * nss/nss_files/files-alias.c (get_next_alias): Handle
3198 continuation line without newline at the end.
3199 * nss/tst-nss-files-alias-truncated.c: New file.
3200 * nss/Makefile [$(build-shared)] (tests): Add
3201 tst-nss-files-alias-truncated.
3202 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3203 * support/namespace.h (struct support_chroot_configuration): Add
3204 aliases member.
3205 (struct support_chroot): Add path_aliases member.
3206 * support/support_chroot.c (support_chroot_create): Handle
3207 aliases.
3208 (support_chroot_free): Free path_aliases.
3209
3210 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3211
3212 * version.h (RELEASE): Set to "development".
3213 (VERSION): Set to "2.29.9000".
3214 * NEWS: Add section for 2.30.
3215
3216 * version.h (RELEASE): Set to "stable".
3217 (VERSION): Set to "2.29".
3218 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3219
3220 * NEWS: Add the list of bugs fixed in 2.29.
3221 * manual/contrib.texi: Update contributors list with some more
3222 names.
3223 * manual/install.texi: Update latest versions of packages
3224 tested.
3225 * INSTALL: Regenerated.
3226
3227 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3228
3229 * po/be.po: Update translations.
3230 * po/bg.po: Likewise.
3231 * po/ca.po: Likewise.
3232 * po/cs.po: Likewise.
3233 * po/da.po: Likewise.
3234 * po/de.po: Likewise.
3235 * po/el.po: Likewise.
3236 * po/eo.po: Likewise.
3237 * po/es.po: Likewise.
3238 * po/fi.po: Likewise.
3239 * po/fr.po: Likewise.
3240 * po/gl.po: Likewise.
3241 * po/hr.po: Likewise.
3242 * po/hu.po: Likewise.
3243 * po/ia.po: Likewise.
3244 * po/id.po: Likewise.
3245 * po/it.po: Likewise.
3246 * po/ja.po: Likewise.
3247 * po/ko.po: Likewise.
3248 * po/lt.po: Likewise.
3249 * po/nb.po: Likewise.
3250 * po/nl.po: Likewise.
3251 * po/pl.po: Likewise.
3252 * po/pt_BR.po: Likewise.
3253 * po/ru.po: Likewise.
3254 * po/rw.po: Likewise.
3255 * po/sk.po: Likewise.
3256 * po/sl.po: Likewise.
3257 * po/sv.po: Likewise.
3258 * po/tr.po: Likewise.
3259 * po/uk.po: Likewise.
3260 * po/vi.po: Likewise.
3261 * po/zh_CN.po: Likewise.
3262 * po/zh_TW.po: Likewise.
3263
3264 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3265
3266 [BZ #24130]
3267 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3268 of $f3 register on $y_is_neg path.
3269
3270 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3271
3272 [BZ #24110]
3273 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3274 sigaltstack.ss_flags.
3275
3276 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3277
3278 [BZ #23758]
3279 * manual/time.texi (strftime): Document "%Ey".
3280 * time/strftime_l.c (__strftime_internal): Set the default width
3281 padding with zero of "%Ey" to 2.
3282
3283 [BZ #24096]
3284 * manual/time.texi (strftime): Document "%EC" and "%EY".
3285 * time/Makefile (tests): Add tst-strftime2.
3286 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3287 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3288 override padding for "%Ey".
3289 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3290 "%Ey" in the subformat as if decorated with that flag.
3291 * time/tst-strftime2.c: New file.
3292
3293 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3294
3295 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3296 are not defined.
3297
3298 [BZ #24122]
3299 * elf/Makefile (tests): Add tst-audit13.
3300 (modules-names): Add tst-audit13mod1.
3301 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3302 rule.
3303 * elf/rtld.c (dl_main): Handle invalid audit module version.
3304 * elf/tst-audit13.c: New file.
3305 * elf/tst-audit13mod1.c: Likewise.
3306
3307 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3308
3309 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3310 returned by __hurd_at_flags.
3311 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3312 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3313 directly instead of __hurd_file_name_lookup.
3314
3315 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3316
3317 * scripts/build-many-glibcs.py (Context.checkout): Default
3318 binutils version to 2.32 branch.
3319
3320 2019-01-21 Florian Weimer <fweimer@redhat.com>
3321
3322 [BZ #20018]
3323 CVE-2016-10739
3324 resolv: Reject trailing characters in host names
3325 * include/arpa/inet.h (__inet_aton_exact): Declare.
3326 (inet_aton): Remove hidden prototype. No longer used internally.
3327 * nscd/gai.c (__inet_aton): Do not define.
3328 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3329 * nss/digits_dots.c (__inet_aton): Likewise.
3330 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3331 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3332 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3333 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3334 (tst-resolv-trailing): Likewise.
3335 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3336 libc.
3337 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3338 Make static. Add endp parameter.
3339 (__inet_aton_exact): New function.
3340 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3341 (__inet_addr): Call inet_aton_end.
3342 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3343 not just IPv6. Call __inet_aton_exact.
3344 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3345 (tests): Make const. Add additional test cases with trailing
3346 characters.
3347 (do_test): Use array_length.
3348 * resolv/tst-inet_aton_exact.c: New file.
3349 * resolv/tst-resolv-trailing.c: Likewise.
3350 * resolv/tst-resolv-nondecimal.c: Likewise.
3351 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3352
3353 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3354
3355 [BZ# 24097]
3356 CVE-2019-6488
3357 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3358 Clear the upper 32 bits of RSI register.
3359 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3360 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3361 and tst-size_t-wcsnlen.
3362 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3363 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3364
3365 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3366
3367 [BZ# 24097]
3368 CVE-2019-6488
3369 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3370 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3371 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3372 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3373 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3374
3375 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3376
3377 [BZ# 24097]
3378 CVE-2019-6488
3379 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3380 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3381 * sysdeps/x86_64/strcmp.S: Likewise.
3382 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3383 tst-size_t-strncmp and tst-size_t-wcsncmp.
3384 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3385 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3386 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3387
3388 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3389
3390 [BZ# 24097]
3391 CVE-2019-6488
3392 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3393 RDX_LP for length. Clear the upper 32 bits of RDX register.
3394 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3395 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3396 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3397 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3398
3399 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3400
3401 [BZ# 24097]
3402 CVE-2019-6488
3403 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3404 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3405 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3406 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3407
3408 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3409
3410 [BZ# 24097]
3411 CVE-2019-6488
3412 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3413 length. Clear the upper 32 bits of RDX register.
3414 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3415 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3416 Likewise.
3417 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3418 Likewise.
3419 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3420 tst-size_t-wmemchr.
3421 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3422
3423 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3424
3425 [BZ# 24097]
3426 CVE-2019-6488
3427 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3428 length. Clear the upper 32 bits of RDX register.
3429 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3430 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3431 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3432 tst-size_t-wmemcmp.
3433 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3434 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3435
3436 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3437
3438 [BZ# 24097]
3439 CVE-2019-6488
3440 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3441 upper 32 bits of RDX register.
3442 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3443 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3444 tst-size_t-wmemchr.
3445 * sysdeps/x86_64/x32/test-size_t.h: New file.
3446 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3447 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3448
3449 2019-01-18 Florian Weimer <fweimer@redhat.com>
3450
3451 [BZ #24112]
3452 resolv: Do not send queries for non-host-names in nss_dns.
3453 * resolv/nss_dns/dns-host.c (check_name): New function.
3454 (_nss_dns_gethostbyname2_r): Use it.
3455 (_nss_dns_gethostbyname_r): Likewise.
3456 (_nss_dns_gethostbyname4_r): Likewise.
3457
3458 2019-01-21 Florian Weimer <fweimer@redhat.com>
3459
3460 * resolv/inet_addr.c: Reformat to GNU style.
3461 (__inet_addr, __inet_aton): Update comment.
3462
3463 2019-01-18 Florian Weimer <fweimer@redhat.com>
3464
3465 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3466 ("malloc: Use current (C11-style) atomics for fastbin access").
3467 This commit introduces a substantial performance regression on
3468 POWER and Aarch64.
3469 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3470 (REMOVE_FB): Define.
3471 (_int_malloc): Use it and reindent.
3472 (_int_free): Use CAS loop with
3473 catomic_compare_and_exchange_val_rel.
3474 (malloc_consolidate): Use atomic_exchange_acq.
3475
3476
3477 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3478
3479 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3480 -Wl,-z,now.
3481 (LDFLAGS-tst-minsigstksz-2): Likewise.
3482 (LDFLAGS-tst-minsigstksz-3): Likewise.
3483 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3484 (LDFLAGS-tst-minsigstksz-4): Likewise.
3485
3486 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3487
3488 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3489 than "alternate".
3490
3491 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3492
3493 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3494
3495 2019-01-16 Zack Weinberg <zackw@panix.com>
3496
3497 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3498 (xget_sigstack_location): New test support functions.
3499 * support/xsigstack.c: New file, implementing them.
3500 * support/tst-xsigstack.c: New test for them.
3501 * support/Makefile: Update.
3502
3503 * signal/tst-minsigstksz-1.c
3504 * signal/tst-minsigstksz-2.c
3505 * signal/tst-minsigstksz-3.c
3506 * signal/tst-minsigstksz-3a.c
3507 * signal/tst-minsigstksz-4.c: New tests.
3508 * signal/Makefile: Run them.
3509
3510 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3511
3512 * po/libc.pot: Regenerate.
3513
3514 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3515
3516 * math/libm-test-fma.inc (fma_test_data): Set
3517 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3518
3519 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3520
3521 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3522 (do_test): Changed __vector __int128_t to __vector unsigned int.
3523
3524 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3525
3526 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3527 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3528 stpcpy-avx2 and stpncpy-avx2.
3529 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3530 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3531 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3532 and __stpncpy_avx2.
3533 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3534 ifunc-strcpy.h}: rename header for a more generic name.
3535 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3536 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3537 AVX unaligned load is fast and vzeroupper is preferred.
3538 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3539 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3540 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3541 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3542 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3543 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3544
3545 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3546
3547 * argp/argp-help.c: Fix typo in comment.
3548 * misc/sys/cdefs.h: Likewise.
3549 * posix/regexec.c (sift_states_iter_mb): Likewise.
3550 * socket/sockatmark.c: Likewise.
3551 * socket/sys/socket.h: Likewise.
3552 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3553 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3554 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3555 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3556 * sysdeps/unix/sockatmark.c: Likewise.
3557 * time/strptime_l.c: Likewise.
3558
3559 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3560
3561 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3562 missing space after the cast of "_NL_CURRENT".
3563
3564 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3565
3566 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3567 ifdef to fix read of VSCR.
3568 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3569 tst-ucontext-ppc64-vscr.c to test list.
3570 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3571
3572 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3573
3574 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3575 fall-through.
3576
3577 2019-01-09 Jim Wilson <jimw@sifive.com>
3578
3579 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3580
3581 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3582
3583 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3584 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3585 __memcpy_falkor for ares.
3586 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3587 Add new define.
3588 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3589 Add ares cpu.
3590
3591 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3592
3593 [BZ #24066]
3594 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3595 4_FP_W_TYPEs are used for IEEE quad precision.
3596 * soft-fp/extendhftf2.c: Likewise.
3597 * soft-fp/extendsftf2.c: Likewise.
3598 * soft-fp/extendxftf2.c: Likewise.
3599 * soft-fp/trunctfdf2.c: Likewise.
3600 * soft-fp/trunctfhf2.c: Likewise.
3601 * soft-fp/trunctfsf2.c: Likewise.
3602 * soft-fp/trunctfxf2.c: Likewise.
3603 * sysdeps/alpha/ots_cvttx.c: Likewise.
3604 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3605 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3606 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3607 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3608 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3609 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3610 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3611 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3612 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3613 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3614 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3615 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3616 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3617 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3618 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3619 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3620 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3621
3622 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3623
3624 [BZ #24024]
3625 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3626 code with -fmath-errno.
3627 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3628 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3629 * string/test-strerror-errno.c: New file.
3630
3631 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3632
3633 [BZ #24046]
3634 * localedata/locales/en_US (date_fmt): Add, set to
3635 "%a %d %b %Y %r %Z".
3636
3637 2019-01-07 Florian Weimer <fweimer@redhat.com>
3638
3639 [BZ #24063]
3640 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3641 instead of @var{errno}.
3642 (Parsing of Integers): Likewise.
3643 (Parsing of Floats): Likewise.
3644 * manual/filesys.texi (Working with Directory Trees): Likewise.
3645 (Temporary Files): Likewise.
3646 * manual/job.texi (Terminal Access Functions): Likewise.
3647 * manual/llio.texi (Synchronizing I/O): Likewise.
3648 * manual/math.texi (SVID Random): Likewise.
3649 * manual/message.texi (The catgets Functions): Likewise.
3650 (Translation with gettext): Likewise.
3651 (Locating gettext catalog): Likewise.
3652 (Charset conversion in gettext): Likewise.
3653 * manual/nss.texi (NSS Module Function Internals): Likewise.
3654 * manual/search.texi (Hash Search Function): Likewise.
3655 * manual/setjmp.texi (System V contexts): Likewise.
3656 * manual/time.texi (Sleeping): Likewise.
3657 * manual/users.texi (Lookup User): Likewise.
3658 (Lookup Group): Likewise.
3659
3660 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3661
3662 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3663 fix typo.
3664
3665 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3666
3667 [BZ #19444]
3668 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3669 __builtin_unreachable for default case in switch.
3670 (__ieee754_yn): Likewise.
3671 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3672 (__ieee754_ynl): Likewise.
3673 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3674 (__ieee754_ynl): Likewise.
3675 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3676 (__ieee754_ynl): Likewise.
3677
3678 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3679
3680 * manual/maint.texi: Use @{ and @}.
3681
3682 2019-01-04 Florian Weimer <fweimer@redhat.com>
3683
3684 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3685 function.
3686 (do_in_chroot_1): Call it.
3687 (run_chroot_tests):
3688 Improve error reporting in case it is not possible to create a
3689 collision for the PTY name required by the test.
3690
3691 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3692
3693 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3694 lll_wait_tid with timeout.
3695 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3696 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3697 futex_reltimed_wait_cancelable for cancelabla mode.
3698 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3699 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3700 macros.
3701 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3702 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3703 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3704 SYSCALL_CANCEL_NCS): New macro.
3705 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3706 (lll_timedwait_tid): Remove macro.
3707 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3708 Likewise.
3709 (lll_timedwait_tid): Likewise.
3710 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3711 Likewise.
3712 (lll_timedwait_tid): Likewise.
3713 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3714 Likewise.
3715 (lll_timedwait_tid): Likewise.
3716 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3717 Use INTERNAL_SYSCALL_CANCEL.
3718 * sysdeps/unix/sysv/linux/futex-internal.h
3719 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3720 instead of __pthread_{enable,disable}_asynccancel.
3721 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3722 (lll_futex_wait_cancel): New macro.
3723
3724 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3725 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3726
3727 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3728 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3729
3730 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3731 in backtrace analysis.
3732 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3733 side-effects.
3734 (tf_send): Likewise.
3735
3736 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3737 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3738 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3739 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3740 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3741 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3742 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
3743 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
3744 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
3745 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
3746 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
3747 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
3748 Likewise.
3749 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
3750 tst-cancel-wrappers.sh.
3751 (generated): Remove tst-cancel-wrappers.out.
3752 (tst-cancel-wrappers.out): Remove rule.
3753 * nptl/tst-cancel-wrappers.sh: Remove file.
3754
3755 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
3756
3757 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
3758 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
3759 Update.
3760
3761 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3762
3763 [BZ #23640]
3764 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
3765 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
3766 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
3767 close-on-exec reset for adddup2 file action.
3768 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
3769
3770 2019-01-03 Zack Weinberg <zackw@panix.com>
3771
3772 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
3773 parameter. Only use deprecated scanf when __USE_GNU is defined
3774 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
3775 than 201103L, whichever is relevant for the language being compiled.
3776
3777 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
3778 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
3779 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
3780 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
3781 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
3782
3783 * libio/iovsscanf.c
3784 * libio/fwscanf.c
3785 * libio/iovswscanf.c
3786 * libio/swscanf.c
3787 * libio/vscanf.c
3788 * libio/vwscanf.c
3789 * libio/wscanf.c
3790 * stdio-common/fscanf.c
3791 * stdio-common/scanf.c
3792 * stdio-common/vfscanf.c
3793 * stdio-common/vfwscanf.c
3794 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3795 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
3796 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
3797 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
3798 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
3799 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
3800 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
3801 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
3802 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
3803 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
3804 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
3805 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
3806 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
3807 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
3808 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
3809
3810 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
3811 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
3812 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
3813 not sscanf.
3814 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
3815 with a preprocessor macro.
3816
3817 * stdio-common/bug21.c, stdio-common/scanf14.c:
3818 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
3819 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3820 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
3821 to xscanf, xfscanf, xsscanf.
3822
3823 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
3824 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
3825 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
3826 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
3827 xfscanf, xsscanf.
3828 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
3829 override feature selection macros or provide definitions of u_char etc.
3830 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
3831 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
3832 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
3833 with -std=gnu89.
3834
3835 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3836
3837 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3838 bits/termios-misc.h.
3839 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
3840 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3841 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3842 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3843 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
3844 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
3845
3846 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
3847 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3848 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
3849 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
3850 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
3851 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
3852 termios-misc.h.
3853 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
3854 (sysdep_headers): Add termios-misc.h.
3855
3856 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
3857 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3858 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3859
3860 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3861 termios-tcflow.h.
3862 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
3863 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
3864 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
3865 TCSAFLUSH): Move to termios-tcflow.h.
3866 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3867 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3868 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3869 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3870
3871 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3872 termios-c_lflag.h.
3873 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
3874 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
3875 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
3876 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
3877 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
3878 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
3879 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
3880 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
3881 Likewise.
3882 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3883 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3884 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3885 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3886
3887 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3888 termios-c_cflag.h.
3889 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
3890 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
3891 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
3892 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
3893 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
3894 termios-c_cflag.h.
3895 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3896 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3897 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3898 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3899
3900 [BZ #23783]
3901 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3902 termios-baud.h.
3903 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
3904 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
3905 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
3906 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
3907 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
3908 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
3909 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
3910 __MAX_BAUD): Move to termios-baud.h.
3911 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
3912 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
3913 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3914 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3915 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3916
3917 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
3918 termios-c_oflag.h.
3919 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
3920 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
3921 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
3922 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
3923 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
3924 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
3925 termios-c_oflag.h.
3926 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
3927 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
3928 FFR1): Likewise.
3929 [USE_MISC] (XTABS): Likewise.
3930 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3931 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3932 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3933 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
3934
3935 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3936 termios-c_iflag.h.
3937 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
3938 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
3939 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
3940 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
3941 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
3942 IUTF8): Move to termios-c_iflag.h.
3943 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3944 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3945 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3946 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3947
3948 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
3949 termios-cc.h.
3950 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
3951 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
3952 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
3953 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
3954 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
3955 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
3956 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
3957 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
3958 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
3959 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
3960 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
3961 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
3962
3963 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
3964 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
3965 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
3966 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
3967 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3968 termios-struct.h.
3969 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
3970 termios-struct.h.
3971 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
3972 Likewise.
3973 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
3974 Likewise.
3975 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
3976 Likewise.
3977 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
3978 Likewise.
3979 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
3980 _HAVE_C_OSPEED): Define.
3981 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
3982 _HAVE_C_OSPEED): Likewise.
3983 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
3984 _HAVE_C_OSPEED): Likewise.
3985 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
3986 (cfsetospeed): Check for define value instead of existence.
3987 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
3988 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3989 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
3990 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
3991 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
3992
3993 [BZ #17783]
3994 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
3995 Define.
3996 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
3997 (TIOCSER_TEMT): Likewise.
3998 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
3999 (TEOCSER_TEMT): Likewise.
4000
4001 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4002
4003 [BZ #24011]
4004 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4005
4006 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4007
4008 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4009
4010 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4011
4012 * sysdeps/htl/pt-barrierattr-setpshared.c
4013 (pthread_barrierattr_setpshared): Add stub warning.
4014 * sysdeps/htl/pt-condattr-setpshared.c
4015 (pthread_condattr_setpshared): Likewise.
4016 * sysdeps/htl/pt-mutexattr-setpshared.c
4017 (pthread_mutexattr_setpshared): Likewise.
4018 * sysdeps/htl/pt-rwlockattr-setpshared.c
4019 (pthread_rwlockattr_setpshared): Likewise.
4020 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4021 (pthread_mutexattr_setpshared): Likewise.
4022
4023 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4024
4025 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4026 constants to match with Linux 4.20.
4027
4028 * sysdeps/mips/mips32/libm-test-ulps: Update.
4029 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4030
4031 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4032
4033 [BZ #24034]
4034 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4035 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4036 than __typeof (...) for the a_ptr variable.
4037
4038 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4039
4040 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4041 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4042 * libio/Makefile (tests): Add tst-sprintf-ub and
4043 tst-sprintf-chk-ub.
4044 (CFLAGS-tst-sprintf-ub.c): New variable.
4045 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4046 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4047 destination buffer and check for overflows in fortified mode.
4048 * libio/libioP.h (PRINTF_CHK): New macro.
4049 * libio/tst-sprintf-chk-ub.c: New file.
4050 * libio/tst-sprintf-ub.c: Likewise.
4051
4052 2019-01-02 Florian Weimer <fweimer@redhat.com>
4053
4054 [BZ #24018]
4055 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4056 failure.
4057
4058 2019-01-02 Florian Weimer <fweimer@redhat.com>
4059
4060 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4061
4062 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4063
4064 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4065 macro.
4066
4067 * sysdeps/unix/sysv/linux/netpacket/packet.h
4068 (PACKET_IGNORE_OUTGOING): New macro.
4069
4070 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4071 macro.
4072
4073 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4074 version to 4.20.
4075 (riscv_flush_icache): New syscall.
4076
4077 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4078 trailing whitespace removed.
4079 * scripts/config.guess: Update to version 2019-01-01.
4080 * scripts/config.sub: Update to version 2019-01-01.
4081 * scripts/move-if-change: Update from gnulib.
4082
4083 * NEWS: Update copyright dates.
4084 * catgets/gencat.c (print_version): Likewise.
4085 * csu/version.c (banner): Likewise.
4086 * debug/catchsegv.sh: Likewise.
4087 * debug/pcprofiledump.c (print_version): Likewise.
4088 * debug/xtrace.sh (do_version): Likewise.
4089 * elf/ldconfig.c (print_version): Likewise.
4090 * elf/ldd.bash.in: Likewise.
4091 * elf/pldd.c (print_version): Likewise.
4092 * elf/sotruss.sh: Likewise.
4093 * elf/sprof.c (print_version): Likewise.
4094 * iconv/iconv_prog.c (print_version): Likewise.
4095 * iconv/iconvconfig.c (print_version): Likewise.
4096 * locale/programs/locale.c (print_version): Likewise.
4097 * locale/programs/localedef.c (print_version): Likewise.
4098 * login/programs/pt_chown.c (print_version): Likewise.
4099 * malloc/memusage.sh (do_version): Likewise.
4100 * malloc/memusagestat.c (print_version): Likewise.
4101 * malloc/mtrace.pl: Likewise.
4102 * manual/libc.texinfo: Likewise.
4103 * nptl/version.c (banner): Likewise.
4104 * nscd/nscd.c (print_version): Likewise.
4105 * nss/getent.c (print_version): Likewise.
4106 * nss/makedb.c (print_version): Likewise.
4107 * posix/getconf.c (main): Likewise.
4108 * scripts/test-installation.pl: Likewise.
4109 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4110
4111 * All files with FSF copyright notices: Update copyright dates
4112 using scripts/update-copyrights.
4113 * locale/programs/charmap-kw.h: Regenerated.
4114 * locale/programs/locfile-kw.h: Likewise.
4115
4116 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4117
4118 * timezone/zdump.c: Update from tzcode 2018i.
4119 * timezone/zic.c: Likewise.
4120
4121 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4122
4123 regex: improve Gnulib port to AIX
4124 From the glibc point of view, this removes duplicate macro
4125 definitions and is obviously safe.
4126 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4127 * posix/regex_internal.h:
4128 (__attribute__, __attribute_warn_unused_result__):
4129 Remove; already defined elsewhere.
4130
4131 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4132
4133 [BZ #24027]
4134 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4135 copying operation. (ncopies had the wrong type, resulting in an
4136 integer wraparound and too few elements being copied.)
4137
4138 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4139
4140 [BZ #24022]
4141 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4142 <asm/syscalls.h> exists with __has_include__ before including it.
4143
4144 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4145
4146 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4147 version to 4.20.
4148
4149 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4150
4151 * hurd/lookup-retry: Include <unistd.h>.
4152 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4153 Release it on return. Handle "pid" magical lookup retry.
4154
4155 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4156
4157 [BZ #10496]
4158 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4159 (t_fmt_ampm): Likewise.
4160 * localedata/locales/aa_ER (t_fmt): Likewise.
4161 (t_fmt_ampm): Likewise.
4162 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4163 (t_fmt_ampm): Likewise.
4164 * localedata/locales/aa_ET (t_fmt): Likewise.
4165 (t_fmt_ampm): Likewise.
4166 * localedata/locales/am_ET (t_fmt): Likewise.
4167 (t_fmt_ampm): Likewise.
4168 * localedata/locales/byn_ER (t_fmt): Likewise.
4169 (t_fmt_ampm): Likewise.
4170 * localedata/locales/om_ET (t_fmt): Likewise.
4171 (t_fmt_ampm): Likewise.
4172 * localedata/locales/sid_ET (t_fmt): Likewise.
4173 (t_fmt_ampm): Likewise.
4174 * localedata/locales/so_DJ (t_fmt): Likewise.
4175 (t_fmt_ampm): Likewise.
4176 * localedata/locales/so_ET (t_fmt): Likewise.
4177 (t_fmt_ampm): Likewise.
4178 * localedata/locales/so_SO (t_fmt): Likewise.
4179 (t_fmt_ampm): Likewise.
4180 * localedata/locales/ti_ER (t_fmt): Likewise.
4181 (t_fmt_ampm): Likewise.
4182 * localedata/locales/ti_ET (t_fmt): Likewise.
4183 (t_fmt_ampm): Likewise.
4184 * localedata/locales/tig_ER (t_fmt): Likewise.
4185 (t_fmt_ampm): Likewise.
4186 * localedata/locales/wal_ET (t_fmt): Likewise.
4187 (t_fmt_ampm): Likewise.
4188
4189 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4190 * localedata/locales/ar_IN (t_fmt): Likewise.
4191 * localedata/locales/bhb_IN (t_fmt): Likewise.
4192 * localedata/locales/bho_IN (t_fmt): Likewise.
4193 * localedata/locales/bi_VU (t_fmt): Likewise.
4194 * localedata/locales/bn_BD (t_fmt): Likewise.
4195 * localedata/locales/bn_IN (t_fmt): Likewise.
4196 * localedata/locales/brx_IN (t_fmt): Likewise.
4197 * localedata/locales/doi_IN (t_fmt): Likewise.
4198 * localedata/locales/en_HK (t_fmt): Likewise.
4199 (t_fmt_ampm): Likewise.
4200 * localedata/locales/en_IN (t_fmt): Likewise.
4201 * localedata/locales/en_PH (t_fmt): Likewise.
4202 * localedata/locales/gu_IN (t_fmt): Likewise.
4203 * localedata/locales/hi_IN (t_fmt): Likewise.
4204 * localedata/locales/hif_FJ (t_fmt): Likewise.
4205 * localedata/locales/hne_IN (t_fmt): Likewise.
4206 * localedata/locales/kn_IN (t_fmt): Likewise.
4207 * localedata/locales/kok_IN (t_fmt): Likewise.
4208 * localedata/locales/ks_IN (t_fmt): Likewise.
4209 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4210 * localedata/locales/mag_IN (t_fmt): Likewise.
4211 * localedata/locales/mai_IN (t_fmt): Likewise.
4212 * localedata/locales/mjw_IN (t_fmt): Likewise.
4213 * localedata/locales/ml_IN (t_fmt): Likewise.
4214 * localedata/locales/mni_IN (t_fmt): Likewise.
4215 * localedata/locales/mr_IN (t_fmt): Likewise.
4216 * localedata/locales/ms_MY (t_fmt): Likewise.
4217 * localedata/locales/pa_IN (t_fmt): Likewise.
4218 * localedata/locales/raj_IN (t_fmt): Likewise.
4219 * localedata/locales/sa_IN (t_fmt): Likewise.
4220 * localedata/locales/sat_IN (t_fmt): Likewise.
4221 * localedata/locales/sd_IN (t_fmt): Likewise.
4222 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4223 * localedata/locales/tcy_IN (t_fmt): Likewise.
4224 * localedata/locales/the_NP (t_fmt): Likewise.
4225 * localedata/locales/to_TO (t_fmt): Likewise.
4226 * localedata/locales/ur_IN (t_fmt): Likewise.
4227
4228 * localedata/locales/hif_FJ (d_t_fmt): Set to
4229 "%A %d %b %Y %I:%M:%S %p".
4230 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4231
4232 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4233 * localedata/locales/ar_BH (t_fmt): Likewise.
4234 * localedata/locales/ar_DZ (t_fmt): Likewise.
4235 * localedata/locales/ar_EG (t_fmt): Likewise.
4236 * localedata/locales/ar_IQ (t_fmt): Likewise.
4237 * localedata/locales/ar_JO (t_fmt): Likewise.
4238 * localedata/locales/ar_KW (t_fmt): Likewise.
4239 * localedata/locales/ar_LB (t_fmt): Likewise.
4240 * localedata/locales/ar_LY (t_fmt): Likewise.
4241 * localedata/locales/ar_OM (t_fmt): Likewise.
4242 * localedata/locales/ar_QA (t_fmt): Likewise.
4243 * localedata/locales/ar_SD (t_fmt): Likewise.
4244 * localedata/locales/ar_SS (t_fmt): Likewise.
4245 * localedata/locales/ar_SY (t_fmt): Likewise.
4246 * localedata/locales/ar_TN (t_fmt): Likewise.
4247 * localedata/locales/ar_YE (t_fmt): Likewise.
4248
4249 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4250 (t_fmt_ampm): Likewise.
4251 * localedata/locales/gez_ET (t_fmt): Likewise.
4252 (t_fmt_ampm): Likewise.
4253
4254 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4255 (t_fmt_ampm): Likewise.
4256 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4257
4258 * localedata/locales/zh_HK (t_fmt):
4259 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4260
4261 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4262 because this locale does not use the 12-hour clock.
4263 (t_fmt): Set to "%Z %H:%M:%S".
4264 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4265
4266 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4267 because this locale does not use the 12-hour clock.
4268 (t_fmt): Set to "%H:%M:%S %Z".
4269 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4270
4271 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4272 because this locale does not use the 12-hour clock.
4273 (t_fmt): Set to "%T".
4274 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4275 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4276
4277 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4278 because this locale does not use the 12-hour clock.
4279 (t_fmt): Set to "%H:%M:%S %Z".
4280 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4281
4282 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4283 because this locale does not use the 12-hour clock.
4284 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4285 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4286
4287 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4288
4289 [BZ #10496]
4290 [BZ #23724]
4291 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4292 (t_fmt_ampm): Likewise.
4293 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4294 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4295 (d_fmt): Set to "%-d.%-m.%y".
4296
4297 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4298
4299 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4300 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4301 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4302 Likewise.
4303 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4304 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4305 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4306 function.
4307 * support/blob_repeat.c (check_mul_overflow_size_t,
4308 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4309
4310 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4311
4312 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4313
4314 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4315
4316 regex: simplify Gnulib port
4317 This simplifies the code, by removing stuff intended for porting
4318 to Gnulib but no longer needed there.
4319 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4320 uses of libc_hidden_def, weak_alias.
4321 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4322 _Restrict_ except for public-facing headers.
4323 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4324 Remove; already defined elsewhere.
4325 * posix/regex.c, posix/regex_internal.h:
4326 Use __GNUC_PREREQ instead of rolling our own.
4327 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4328
4329 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4330
4331 * benchtests/bench-strlen.c (generic_strlen): New function.
4332 (memchr_strlen): New function.
4333
4334 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4335
4336 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4337 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4338 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4339
4340 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4341
4342 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4343
4344 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4345
4346 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4347 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4348 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4349 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4350 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4351 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4352 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4353
4354 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4355
4356 [BZ #24023]
4357 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4358 PLT reference in libc.so.
4359 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4360 _Q_lltoq and _Q_qtod PLT references in libc.so.
4361
4362 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4363
4364 * benchtests/bench-memchr.c: Cleanup defines.
4365 * benchtests/bench-memcmp.c: Likewise.
4366 * benchtests/bench-memset.c: Likewise.
4367 * benchtests/bench-memset-large.c: Likewise.
4368 * benchtests/bench-memset-walk.c: Likewise.
4369 * benchtests/bench-stpcpy.c: Likewise.
4370 * benchtests/bench-stpncpy.c: Likewise.
4371 * benchtests/bench-strcat.c: Likewise.
4372 * benchtests/bench-strchr.c: Likewise.
4373 * benchtests/bench-strcmp.c: Likewise.
4374 * benchtests/bench-strcpy.c: Likewise.
4375 * benchtests/bench-strcspn.c: Likewise.
4376 * benchtests/bench-string.h: Likewise.
4377 * benchtests/bench-strlen.c: Likewise.
4378 * benchtests/bench-strncat.c: Likewise.
4379 * benchtests/bench-strncmp.c: Likewise.
4380 * benchtests/bench-strncpy.c: Likewise.
4381 * benchtests/bench-strnlen.c: Likewise.
4382 * benchtests/bench-strpbrk.c: Likewise.
4383 * benchtests/bench-strrchr.c: Likewise.
4384 * benchtests/bench-strspn.c: Likewise.
4385
4386 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4387
4388 * stdlib/longlong.h: Update from GCC.
4389
4390 [BZ #23993]
4391 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4392 * configure: Regenerated.
4393 * manual/install.texi (Tools for Compilation): Update minimum GCC
4394 version.
4395 * INSTALL: Regenerated.
4396
4397 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4398
4399 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4400
4401 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4402
4403 * malloc/malloc.c (mremap_chunk): Additional checks.
4404
4405 2018-12-21 Mao Han <han_mao@c-sky.com>
4406
4407 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4408 * scripts/build-many-glibcs.py: Add C-SKY targets.
4409 * sysdeps/csky/Implies: New file.
4410 * sysdeps/csky/Makefile: Likewise.
4411 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4412 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4413 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4414 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4415 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4416 * sysdeps/csky/abiv2/memmove.S: Likewise.
4417 * sysdeps/csky/abiv2/memset.S: Likewise.
4418 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4419 * sysdeps/csky/abiv2/start.S: Likewise.
4420 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4421 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4422 * sysdeps/csky/abiv2/strlen.S: Likewise.
4423 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4424 * sysdeps/csky/abort-instr.h: Likewise.
4425 * sysdeps/csky/atomic-machine.h: Likewise.
4426 * sysdeps/csky/bits/endian.h: Likewise.
4427 * sysdeps/csky/bits/fenv.h: Likewise.
4428 * sysdeps/csky/bits/link.h: Likewise.
4429 * sysdeps/csky/bits/setjmp.h: Likewise.
4430 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4431 * sysdeps/csky/bsd-setjmp.S: Likewise.
4432 * sysdeps/csky/configure: Likewise.
4433 * sysdeps/csky/configure.ac: Likewise.
4434 * sysdeps/csky/dl-machine.h: Likewise.
4435 * sysdeps/csky/dl-procinfo.c: Likewise.
4436 * sysdeps/csky/dl-procinfo.h: Likewise.
4437 * sysdeps/csky/dl-sysdep.h: Likewise.
4438 * sysdeps/csky/dl-tls.h: Likewise.
4439 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4440 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4441 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4442 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4443 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4444 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4445 * sysdeps/csky/fpu/fegetround.c: Likewise.
4446 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4447 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4448 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4449 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4450 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4451 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4452 * sysdeps/csky/fpu/fesetround.c: Likewise.
4453 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4454 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4455 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4456 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4457 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4458 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4459 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4460 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4461 * sysdeps/csky/fpu_control.h: Likewise.
4462 * sysdeps/csky/gccframe.h: Likewise.
4463 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4464 * sysdeps/csky/ldsodefs.h: Likewise.
4465 * sysdeps/csky/libc-tls.c: Likewise.
4466 * sysdeps/csky/linkmap.h: Likewise.
4467 * sysdeps/csky/machine-gmon.h: Likewise.
4468 * sysdeps/csky/memusage.h: Likewise.
4469 * sysdeps/csky/nofpu/Implies: Likewise.
4470 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4471 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4472 * sysdeps/csky/nptl/Makefile: Likewise.
4473 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4474 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4475 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4476 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4477 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4478 * sysdeps/csky/nptl/tls.h: Likewise.
4479 * sysdeps/csky/preconfigure: Likewise.
4480 * sysdeps/csky/sfp-machine.h: Likewise.
4481 * sysdeps/csky/sotruss-lib.c: Likewise.
4482 * sysdeps/csky/stackinfo.h: Likewise.
4483 * sysdeps/csky/sysdep.h: Likewise.
4484 * sysdeps/csky/tininess.h: Likewise.
4485 * sysdeps/csky/tst-audit.h: Likewise.
4486 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4487 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4488 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4489 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4490 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4491 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4492 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4493 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4494 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4495 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4496 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4497 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4498 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4499 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4500 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4501 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4502 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4503 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4504 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4505 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4506 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4507 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4508 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4509 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4510 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4511 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4512 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4513 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4514 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4515 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4516 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4517 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4518 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4519 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4520 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4521 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4522 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4523 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4524 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4525 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4526 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4527 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4528 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4529 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4530
4531 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4532
4533 * include/time.h (__difftime64): Add.
4534 * time/difftime.c (subtract): convert to 64-bit time.
4535 * time/difftime.c (__difftime64): Add.
4536 * time/difftime.c (__difftime): Wrap around __difftime64.
4537
4538 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4539
4540 * manual/examples/add.c: Remove redundant "if not".
4541 * manual/examples/argp-ex1.c: Likewise.
4542 * manual/examples/argp-ex2.c: Likewise.
4543 * manual/examples/argp-ex3.c: Likewise.
4544 * manual/examples/argp-ex4.c: Likewise.
4545 * manual/examples/atexit.c: Likewise.
4546 * manual/examples/db.c: Likewise.
4547 * manual/examples/dir.c: Likewise.
4548 * manual/examples/dir2.c: Likewise.
4549 * manual/examples/execinfo.c: Likewise.
4550 * manual/examples/filecli.c: Likewise.
4551 * manual/examples/filesrv.c: Likewise.
4552 * manual/examples/fmtmsgexpl.c: Likewise.
4553 * manual/examples/genpass.c: Likewise.
4554 * manual/examples/inetcli.c: Likewise.
4555 * manual/examples/inetsrv.c: Likewise.
4556 * manual/examples/isockad.c: Likewise.
4557 * manual/examples/longopt.c: Likewise.
4558 * manual/examples/memopen.c: Likewise.
4559 * manual/examples/memstrm.c: Likewise.
4560 * manual/examples/mkdirent.c: Likewise.
4561 * manual/examples/mkfsock.c: Likewise.
4562 * manual/examples/mkisock.c: Likewise.
4563 * manual/examples/mygetpass.c: Likewise.
4564 * manual/examples/pipe.c: Likewise.
4565 * manual/examples/popen.c: Likewise.
4566 * manual/examples/rprintf.c: Likewise.
4567 * manual/examples/search.c: Likewise.
4568 * manual/examples/select.c: Likewise.
4569 * manual/examples/setjmp.c: Likewise.
4570 * manual/examples/sigh1.c: Likewise.
4571 * manual/examples/sigusr.c: Likewise.
4572 * manual/examples/stpcpy.c: Likewise.
4573 * manual/examples/strdupa.c: Likewise.
4574 * manual/examples/strftim.c: Likewise.
4575 * manual/examples/subopt.c: Likewise.
4576 * manual/examples/swapcontext.c: Likewise.
4577 * manual/examples/termios.c: Likewise.
4578 * manual/examples/testopt.c: Likewise.
4579 * manual/examples/testpass.c: Likewise.
4580 * manual/examples/timeval_subtract.c: Likewise.
4581
4582 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4583
4584 * sysdeps/x86/fpu/math_private.h: New file.
4585 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4586
4587 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4588 definition.
4589 (cosh): Likewise.
4590 (tanh): Likewise.
4591
4592 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4593
4594 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4595 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4596 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4597 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4598 fields.
4599 (_dl_show_auxv): Give a special treatment to
4600 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4601 and AT_L3_CACHEGEOMETRY.
4602 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4603 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4604 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4605 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4606
4607 2018-12-19 Andreas Schwab <schwab@suse.de>
4608
4609 * nscd/connections.c (check_use): Don't abort on invalid len.
4610
4611 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4612
4613 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4614 values in the 64bit value cases.
4615
4616 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4617
4618 * include/time.h
4619 (__ctime64_r): Add.
4620 * time/ctime_r.c
4621 (__ctime64_r): Add.
4622 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4623
4624 * include/time.h
4625 (__ctime64): Add.
4626 * time/gmtime.c
4627 (__ctime64): Add.
4628 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4629
4630 * include/time.h
4631 (__gmtime64_r): Add.
4632 * time/gmtime.c
4633 (__gmtime64_r): Add.
4634 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4635
4636 * include/time.h
4637 (__gmtime64): Add.
4638 * time/gmtime.c
4639 (__gmtime64): Add.
4640 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4641
4642 * include/time.h
4643 (__localtime64_r): Add.
4644 * time/localtime.c
4645 (__localtime64_r): Add.
4646 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4647
4648 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4649
4650 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4651 kernel_sigction definition.
4652
4653 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4654
4655 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4656
4657 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4658 __syscall_rt_sigaction.
4659 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4660 (kernel_sigaction): Use Linux generic defintion.
4661 (STUB): Define.
4662 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4663 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4664 (__syscall_rt_sigaction): Remove implementation.
4665 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4666 hidden.
4667 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4668 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4669 INTERNAL_SYSCALL): Remove definitions.
4670 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4671 action and signal set size.
4672 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4673 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4674
4675 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4676 James Clarke <jrtc27@jrtc27.com>
4677
4678 [BZ #23967]
4679 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4680 Define if SA_RESTORER is defined.
4681 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4682 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4683 already defined.
4684 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4685 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4686 definitions.
4687 (HAS_SA_RESTORER): Define.
4688 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4689 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4690 (HAS_SA_RESTORER): Define.
4691 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4692 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4693 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4694 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4695 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4696
4697 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4698
4699 * sysdeps/unix/sysv/linux/kernel-features.h
4700 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4701 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4702 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4703 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4704 (__ASSUME_ST_INO_64_BIT): Likewise.
4705 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4706 <kernel-features.h>.
4707 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4708 Remove conditional code.
4709 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4710 <kernel-features.h>.
4711 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4712 Remove conditional code.
4713 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4714 <kernel-features.h>.
4715 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4716 Remove conditional code.
4717 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4718 <kernel-features.h>.
4719 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4720 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4721
4722 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4723
4724 * sysdeps/s390/multiarch/ifunc-resolve.h
4725 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4726 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4727 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4728 Delete macro definition.
4729 (s390_libc_ifunc_init): Rename to
4730 s390_libc_ifunc_expr_stfle_init.
4731 * sysdeps/s390/bzero: Use
4732 s390_libc_ifunc_expr_stfle_init instead of
4733 s390_libc_ifunc_init.
4734 * sysdeps/s390/memcmp.c: Likewise.
4735 * sysdeps/s390/memcpy.c: Likewise.
4736 * sysdeps/s390/mempcpy.c: Likewise.
4737 * sysdeps/s390/memset.c: Likewise.
4738
4739 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4740
4741 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4742 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
4743
4744 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4745
4746 * sysdeps/s390/multiarch/Makefile
4747 (sysdep_routines): Remove wmemcmp variants.
4748 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
4749 * sysdeps/s390/multiarch/ifunc-impl-list.c
4750 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
4751 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
4752 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
4753 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
4754 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
4755 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
4756 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
4757 * sysdeps/s390/ifunc-wmemcmp.h: New file.
4758
4759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4760
4761 * sysdeps/s390/multiarch/Makefile
4762 (sysdep_routines): Remove wmemset variants.
4763 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
4764 * sysdeps/s390/multiarch/ifunc-impl-list.c
4765 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
4766 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
4767 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
4768 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
4769 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
4770 * sysdeps/s390/multiarch/wmemset.c: Move to ...
4771 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
4772 * sysdeps/s390/ifunc-wmemset.h: New file.
4773
4774 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4775
4776 * sysdeps/s390/multiarch/Makefile
4777 (sysdep_routines): Remove wmemchr variants.
4778 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
4779 * sysdeps/s390/multiarch/ifunc-impl-list.c
4780 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
4781 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
4782 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
4783 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
4784 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
4785 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
4786 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
4787 * sysdeps/s390/ifunc-wmemchr.h: New file.
4788
4789 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4790
4791 * sysdeps/s390/multiarch/Makefile
4792 (sysdep_routines): Remove wcscspn variants.
4793 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
4794 * sysdeps/s390/multiarch/ifunc-impl-list.c
4795 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
4796 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
4797 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
4798 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
4799 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
4800 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
4801 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
4802 * sysdeps/s390/ifunc-wcscspn.h: New file.
4803
4804 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4805
4806 * sysdeps/s390/multiarch/Makefile
4807 (sysdep_routines): Remove wcspbrk variants.
4808 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
4809 * sysdeps/s390/multiarch/ifunc-impl-list.c
4810 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
4811 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
4812 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
4813 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
4814 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
4815 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
4816 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
4817 * sysdeps/s390/ifunc-wcspbrk.h: New file.
4818
4819 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4820
4821 * sysdeps/s390/multiarch/Makefile
4822 (sysdep_routines): Remove wcsspn variants.
4823 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
4824 * sysdeps/s390/multiarch/ifunc-impl-list.c
4825 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
4826 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
4827 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
4828 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
4829 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
4830 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
4831 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
4832 * sysdeps/s390/ifunc-wcsspn.h: New file.
4833
4834 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4835
4836 * sysdeps/s390/multiarch/Makefile
4837 (sysdep_routines): Remove wcsrchr variants.
4838 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
4839 * sysdeps/s390/multiarch/ifunc-impl-list.c
4840 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
4841 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
4842 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
4843 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
4844 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
4845 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
4846 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
4847 * sysdeps/s390/ifunc-wcsrchr.h: New file.
4848
4849 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4850
4851 * sysdeps/s390/multiarch/Makefile
4852 (sysdep_routines): Remove wcschrnul variants.
4853 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
4854 * sysdeps/s390/multiarch/ifunc-impl-list.c
4855 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
4856 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
4857 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
4858 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
4859 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
4860 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
4861 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
4862 * sysdeps/s390/ifunc-wcschrnul.h: New file.
4863
4864 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4865
4866 * sysdeps/s390/multiarch/Makefile
4867 (sysdep_routines): Remove wcschr variants.
4868 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
4869 * sysdeps/s390/multiarch/ifunc-impl-list.c
4870 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
4871 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
4872 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
4873 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
4874 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
4875 * sysdeps/s390/multiarch/wcschr.c: Move to ...
4876 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
4877 * sysdeps/s390/ifunc-wcschr.h: New file.
4878
4879 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4880
4881 * sysdeps/s390/multiarch/Makefile
4882 (sysdep_routines): Remove wcsncmp variants.
4883 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
4884 * sysdeps/s390/multiarch/ifunc-impl-list.c
4885 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
4886 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
4887 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
4888 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
4889 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
4890 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
4891 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
4892 * sysdeps/s390/ifunc-wcsncmp.h: New file.
4893
4894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4895
4896 * sysdeps/s390/multiarch/Makefile
4897 (sysdep_routines): Remove wcscmp variants.
4898 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
4899 * sysdeps/s390/multiarch/ifunc-impl-list.c
4900 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
4901 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
4902 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
4903 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
4904 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
4905 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
4906 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
4907 * sysdeps/s390/ifunc-wcscmp.h: New file.
4908
4909 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4910
4911 * sysdeps/s390/multiarch/Makefile
4912 (sysdep_routines): Remove wcsncat variants.
4913 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
4914 * sysdeps/s390/multiarch/ifunc-impl-list.c
4915 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
4916 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
4917 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
4918 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
4919 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
4920 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
4921 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
4922 * sysdeps/s390/ifunc-wcsncat.h: New file.
4923
4924 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4925
4926 * sysdeps/s390/multiarch/Makefile
4927 (sysdep_routines): Remove wcscat variants.
4928 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
4929 * sysdeps/s390/multiarch/ifunc-impl-list.c
4930 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
4931 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
4932 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
4933 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
4934 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
4935 * sysdeps/s390/multiarch/wcscat.c: Move to ...
4936 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
4937 * sysdeps/s390/ifunc-wcscat.h: New file.
4938
4939 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4940
4941 * sysdeps/s390/multiarch/Makefile
4942 (sysdep_routines): Remove wcpncpy variants.
4943 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
4944 * sysdeps/s390/multiarch/ifunc-impl-list.c
4945 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
4946 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
4947 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
4948 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
4949 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
4950 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
4951 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
4952 * sysdeps/s390/ifunc-wcpncpy.h: New file.
4953
4954 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4955
4956 * sysdeps/s390/multiarch/Makefile
4957 (sysdep_routines): Remove wcsncpy variants.
4958 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
4959 * sysdeps/s390/multiarch/ifunc-impl-list.c
4960 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
4961 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
4962 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
4963 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
4964 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
4965 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
4966 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
4967 * sysdeps/s390/ifunc-wcsncpy.h: New file.
4968
4969 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4970
4971 * sysdeps/s390/multiarch/Makefile
4972 (sysdep_routines): Remove wcpcpy variants.
4973 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
4974 * sysdeps/s390/multiarch/ifunc-impl-list.c
4975 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
4976 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
4977 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
4978 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
4979 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
4980 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
4981 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
4982 * sysdeps/s390/ifunc-wcpcpy.h: New file.
4983
4984 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4985
4986 * sysdeps/s390/multiarch/Makefile
4987 (sysdep_routines): Remove wcscpy variants.
4988 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
4989 * sysdeps/s390/multiarch/ifunc-impl-list.c
4990 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
4991 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
4992 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
4993 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
4994 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
4995 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
4996 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
4997 * sysdeps/s390/ifunc-wcscpy.h: New file.
4998
4999 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5000
5001 * sysdeps/s390/multiarch/Makefile
5002 (sysdep_routines): Remove wcsnlen variants.
5003 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5004 * sysdeps/s390/multiarch/ifunc-impl-list.c
5005 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5006 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5007 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5008 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5009 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5010 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5011 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5012 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5013
5014 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5015
5016 * sysdeps/s390/multiarch/Makefile
5017 (sysdep_routines): Remove wcslen variants.
5018 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5019 * sysdeps/s390/multiarch/ifunc-impl-list.c
5020 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5021 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5022 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5023 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5024 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5025 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5026 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5027 * sysdeps/s390/ifunc-wcslen.h: New file.
5028
5029 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5030
5031 * sysdeps/s390/multiarch/Makefile
5032 (sysdep_routines): Remove memrchr variants.
5033 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5034 * sysdeps/s390/multiarch/ifunc-impl-list.c
5035 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5036 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5037 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5038 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5039 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5040 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5041 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5042 * sysdeps/s390/ifunc-memrchr.h: New file.
5043
5044 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5045
5046 * sysdeps/s390/multiarch/Makefile
5047 (sysdep_routines): Remove memccpy variants.
5048 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5049 * sysdeps/s390/multiarch/ifunc-impl-list.c
5050 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5051 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5052 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5053 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5054 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5055 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5056 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5057 * sysdeps/s390/ifunc-memccpy.h: New file.
5058
5059 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5060
5061 * sysdeps/s390/multiarch/Makefile
5062 (sysdep_routines): Remove rawmemchr variants.
5063 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5064 * sysdeps/s390/multiarch/ifunc-impl-list.c
5065 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5066 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5067 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5068 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5069 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5070 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5071 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5072 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5073
5074 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5075
5076 * sysdeps/s390/multiarch/Makefile
5077 (sysdep_routines): Remove memchr variants.
5078 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5079 * sysdeps/s390/multiarch/ifunc-impl-list.c
5080 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5081 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5082 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5083 * sysdeps/s390/multiarch/memchr.c: Move to ...
5084 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5085 * sysdeps/s390/ifunc-memchr.h: New file.
5086 * sysdeps/s390/s390-64/memchr.S: Move to ...
5087 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5088 for 31/64bit and ifunc handling.
5089 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5090 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5091 * sysdeps/s390/s390-32/memchr.S: Likewise.
5092
5093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5094
5095 * sysdeps/s390/multiarch/Makefile
5096 (sysdep_routines): Remove strcspn variants.
5097 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5098 * sysdeps/s390/multiarch/ifunc-impl-list.c
5099 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5100 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5101 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5102 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5103 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5104 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5105 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5106 * sysdeps/s390/ifunc-strcspn.h: New file.
5107
5108 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5109
5110 * sysdeps/s390/multiarch/Makefile
5111 (sysdep_routines): Remove strpbrk variants.
5112 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5113 * sysdeps/s390/multiarch/ifunc-impl-list.c
5114 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5115 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5116 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5117 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5118 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5119 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5120 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5121 * sysdeps/s390/ifunc-strpbrk.h: New file.
5122
5123 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5124
5125 * sysdeps/s390/multiarch/Makefile
5126 (sysdep_routines): Remove strspn variants.
5127 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5128 * sysdeps/s390/multiarch/ifunc-impl-list.c
5129 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5130 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5131 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5132 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5133 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5134 * sysdeps/s390/multiarch/strspn.c: Move to ...
5135 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5136 * sysdeps/s390/ifunc-strspn.h: New file.
5137
5138 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5139
5140 * sysdeps/s390/multiarch/Makefile
5141 (sysdep_routines): Remove strrchr variants.
5142 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5143 * sysdeps/s390/multiarch/ifunc-impl-list.c
5144 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5145 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5146 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5147 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5148 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5149 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5150 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5151 * sysdeps/s390/ifunc-strrchr.h: New file.
5152
5153 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5154
5155 * sysdeps/s390/multiarch/Makefile
5156 (sysdep_routines): Remove strchrnul variants.
5157 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5158 * sysdeps/s390/multiarch/ifunc-impl-list.c
5159 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5160 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5161 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5162 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5163 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5164 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5165 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5166 * sysdeps/s390/ifunc-strchrnul.h: New file.
5167
5168 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5169
5170 * sysdeps/s390/multiarch/Makefile
5171 (sysdep_routines): Remove strchr variants.
5172 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5173 * sysdeps/s390/multiarch/ifunc-impl-list.c
5174 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5175 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5176 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5177 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5178 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5179 * sysdeps/s390/multiarch/strchr.c: Move to ...
5180 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5181 * sysdeps/s390/ifunc-strchr.h: New file.
5182
5183 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5184
5185 * sysdeps/s390/multiarch/Makefile
5186 (sysdep_routines): Remove strncmp variants.
5187 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5188 * sysdeps/s390/multiarch/ifunc-impl-list.c
5189 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5190 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5191 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5192 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5193 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5194 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5195 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5196 * sysdeps/s390/ifunc-strncmp.h: New file.
5197
5198 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5199
5200 * sysdeps/s390/multiarch/Makefile
5201 (sysdep_routines): Remove strcmp variants.
5202 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5203 * sysdeps/s390/multiarch/ifunc-impl-list.c
5204 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5205 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5206 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5207 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5208 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5209 * sysdeps/s390/ifunc-strcmp.h: New file.
5210 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5211 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5212 for 31/64bit and ifunc handling.
5213 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5214 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5215 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5216
5217 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5218
5219 * sysdeps/s390/multiarch/Makefile
5220 (sysdep_routines): Remove strncat variants.
5221 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5222 * sysdeps/s390/multiarch/ifunc-impl-list.c
5223 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5224 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5225 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5226 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5227 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5228 * sysdeps/s390/multiarch/strncat.c: Move to ...
5229 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5230 * sysdeps/s390/ifunc-strncat.h: New file.
5231
5232 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5233
5234 * sysdeps/s390/multiarch/Makefile
5235 (sysdep_routines): Remove strcat variants.
5236 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5237 * sysdeps/s390/multiarch/ifunc-impl-list.c
5238 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5239 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5240 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5241 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5242 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5243 * sysdeps/s390/multiarch/strcat.c: Move to ...
5244 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5245 * sysdeps/s390/ifunc-strcat.h: New file.
5246
5247 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5248
5249 * sysdeps/s390/multiarch/Makefile
5250 (sysdep_routines): Remove stpncpy variants.
5251 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5252 * sysdeps/s390/multiarch/ifunc-impl-list.c
5253 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5254 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5255 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5256 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5257 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5258 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5259 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5260 * sysdeps/s390/ifunc-stpncpy.h: New file.
5261
5262 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5263
5264 * sysdeps/s390/multiarch/Makefile
5265 (sysdep_routines): Remove strncpy variants.
5266 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5267 * sysdeps/s390/multiarch/ifunc-impl-list.c
5268 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5269 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5270 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5271 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5272 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5273 * sysdeps/s390/ifunc-strncpy.h: New file.
5274 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5275 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5276 and adjust ifunc handling.
5277 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5278 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5279 and adjust ifunc handling.
5280 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5281 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5282
5283 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5284
5285 * sysdeps/s390/multiarch/Makefile
5286 (sysdep_routines): Remove stpcpy variants.
5287 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5288 * sysdeps/s390/multiarch/ifunc-impl-list.c
5289 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5290 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5291 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5292 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5293 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5294 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5295 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5296 * sysdeps/s390/ifunc-stpcpy.h: New file.
5297
5298 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5299
5300 * sysdeps/s390/multiarch/Makefile
5301 (sysdep_routines): Remove strcpy variants.
5302 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5303 * sysdeps/s390/multiarch/ifunc-impl-list.c
5304 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5305 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5306 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5307 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5308 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5309 * sysdeps/s390/ifunc-strcpy.h: New file.
5310 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5311 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5312 for 31/64bit and ifunc handling.
5313 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5314 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5315 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5316
5317 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5318
5319 * sysdeps/s390/multiarch/Makefile
5320 (sysdep_routines): Remove strnlen variants.
5321 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5322 * sysdeps/s390/multiarch/ifunc-impl-list.c
5323 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5324 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5325 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5326 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5327 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5328 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5329 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5330 * sysdeps/s390/ifunc-strnlen.h: New file.
5331
5332 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5333
5334 * sysdeps/s390/multiarch/Makefile
5335 (sysdep_routines): Remove strlen variants.
5336 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5337 * sysdeps/s390/multiarch/ifunc-impl-list.c
5338 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5339 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5340 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5341 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5342 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5343 * sysdeps/s390/multiarch/strlen.c: Move to ...
5344 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5345 * sysdeps/s390/ifunc-strlen.h: New file.
5346
5347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5348
5349 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5350 * sysdeps/s390/multiarch/ifunc-impl-list.c
5351 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5352 * sysdeps/s390/ifunc-memmem.h: New file.
5353 * sysdeps/s390/memmem.c: Likewise.
5354 * sysdeps/s390/memmem-c.c: Likewise.
5355 * sysdeps/s390/memmem-vx.c: Likewise.
5356
5357 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5358
5359 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5360 * sysdeps/s390/multiarch/ifunc-impl-list.c
5361 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5362 * sysdeps/s390/ifunc-strstr.h: New file.
5363 * sysdeps/s390/strstr.c: Likewise.
5364 * sysdeps/s390/strstr-c.c: Likewise.
5365 * sysdeps/s390/strstr-vx.c: Likewise.
5366
5367 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5368
5369 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5370 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5371 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5372 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5373 New defines.
5374 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5375 * sysdeps/s390/memmove-c.c: New file.
5376 * sysdeps/s390/memmove.c: Likewise.
5377 * sysdeps/s390/multiarch/ifunc-impl-list.c
5378 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5379
5380 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5381
5382 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5383 * sysdeps/s390/configure.ac: Add check for z13 support.
5384 * sysdeps/s390/configure: Regenerated.
5385
5386 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5387
5388 * sysdeps/s390/memcopy.h: New file.
5389
5390 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5391
5392 * sysdeps/s390/s390-32/bcopy.S: Remove.
5393 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5394
5395 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5396
5397 * sysdeps/s390/ifunc-memcpy.h: New File.
5398 * sysdeps/s390/memcpy.S: Move to ...
5399 * sysdeps/s390/memcpy-z900.S ... here.
5400 Move implementations from memcpy-s390x.s to here.
5401 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5402 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5403 Remove memcpy/mempcpy variants.
5404 * sysdeps/s390/Makefile (sysdep_routines):
5405 Add memcpy/mempcpy variants.
5406 * sysdeps/s390/multiarch/ifunc-impl-list.c
5407 (__libc_ifunc_impl_list): Adjust ifunc variants for
5408 memcpy and mempcpy.
5409 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5410 to ...
5411 * sysdeps/s390/memcpy.c: ... here.
5412 Adjust ifunc variants for memcpy.
5413 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5414 * sysdeps/s390/mempcpy.c: ... here.
5415 Adjust ifunc variants for mempcpy.
5416 * sysdeps/s390/mempcpy.S: Delete file.
5417
5418 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5419
5420 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5421 * sysdeps/s390/memcpy.S: ... here.
5422 Adjust to be usable for 31/64bit.
5423 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5424 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5425 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5426 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5427 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5428 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5429 Adjust to be usable for 31/64bit.
5430 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5431 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5432 * sysdeps/s390/multiarch/memcpy.c: ... here.
5433 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5434
5435 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5436
5437 * sysdeps/s390/ifunc-memcmp.h: New File.
5438 * sysdeps/s390/memcmp.S: Move to ...
5439 * sysdeps/s390/memcmp-z900.S ... here.
5440 Move implementations from memcmp-s390x.s to here.
5441 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5442 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5443 Remove memcmp variants.
5444 * sysdeps/s390/Makefile (sysdep_routines):
5445 Add memcmp variants.
5446 * sysdeps/s390/multiarch/ifunc-impl-list.c
5447 (__libc_ifunc_impl_list): Adjust ifunc variants for
5448 memcmp.
5449 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5450 to ...
5451 * sysdeps/s390/memcmp.c: ... here.
5452 Adjust ifunc variants for memcmp.
5453
5454 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5455
5456 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5457 * sysdeps/s390/memcmp.S: ... here.
5458 Adjust to be usable for 31/64bit.
5459 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5460 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5461 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5462 Remove memcmp.
5463 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5464 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5465 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5466 Adjust to be usable for 31/64bit.
5467 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5468 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5469 * sysdeps/s390/multiarch/memcmp.c: ... here.
5470 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5471
5472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5473
5474 * sysdeps/s390/s390-32/bzero.S: Delete file.
5475 * sysdeps/s390/s390-64/bzero.S: Likewise.
5476 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5477 * sysdeps/s390/bzero.c: New file.
5478 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5479 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5480 * sysdeps/s390/multiarch/ifunc-impl-list.c
5481 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5482
5483 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5484
5485 * sysdeps/s390/ifunc-memset.h: New File.
5486 * sysdeps/s390/memset.S: Move to ...
5487 * sysdeps/s390/memset-z900.S ... here.
5488 Move implementations from memset-s390x.s to here.
5489 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5490 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5491 Remove memset variants.
5492 * sysdeps/s390/Makefile (sysdep_routines):
5493 Add memset variants.
5494 * sysdeps/s390/multiarch/ifunc-impl-list.c
5495 (__libc_ifunc_impl_list): Adjust ifunc variants for
5496 memset.
5497 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5498 to ...
5499 * sysdeps/s390/memset.c: ... here.
5500 Adjust ifunc variants for memset.
5501
5502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5503
5504 * sysdeps/s390/s390-64/memset.S: Move to ...
5505 * sysdeps/s390/memset.S: ... here.
5506 Adjust to be usable for 31/64bit.
5507 * sysdeps/s390/s390-32/memset.S: Delete File.
5508 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5509 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5510 Remove memset.
5511 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5512 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5513 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5514 Adjust to be usable for 31/64bit.
5515 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5516 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5517 * sysdeps/s390/multiarch/memset.c: ... here.
5518 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5519
5520 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5521
5522 * sysdeps/s390/multiarch/ifunc-resolve.h
5523 (s390_libc_ifunc_init, s390_libc_ifunc,
5524 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5525
5526 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5527
5528 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5529 * sysdeps/s390/configure.ac: Add check for z10 support.
5530 * sysdeps/s390/configure: Regenerated.
5531
5532 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5533
5534 * sysdeps/i386/atomic-machine.h: Merged with ...
5535 * sysdeps/x86_64/atomic-machine.h: To ...
5536 * sysdeps/x86/atomic-machine.h: This. New file.
5537
5538 2018-12-18 Florian Weimer <fweimer@redhat.com>
5539
5540 Rewrite locale/gen-translit.pl in Python.
5541 * locale/Makefile (generated): Add C-translit.h.
5542 (before-compile): Add $(objpfx)C-translit.h.
5543 (C-translit.h): Move to $(objpfx). Create target directory.
5544 Build using Python script.
5545 * locale/gen-translit.py: New file.
5546 * locale/gen-translit.pl: Remove file.
5547 * locale/C-translit.h.in: Change comment character to '#' for
5548 easier parsing without a C preprocessor.
5549 * locale/C-translit.h: Remove generated file.
5550 * manual/install.texi (Tools for Compilation): Do not mention
5551 C-translit.h.
5552 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5553 Remove locale/C-translit.h.
5554 * scripts/update-copyrights: Likewise.
5555 * INSTALL: Regenerate.
5556
5557 2018-12-18 Florian Weimer <fweimer@redhat.com>
5558
5559 [BZ #23995]
5560 * localedata/locales/bi_VU: Remove executable bit from file.
5561
5562 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5563
5564 * include/time.h
5565 (__localtime64): Add.
5566 * manual/maint.texi: Document Y2038 symbol handling.
5567 * time/localtime.c
5568 (__localtime64): Add.
5569 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5570
5571 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5572
5573 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5574 Do not clobber r12.
5575
5576 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5577 to allow extra macros from first or second sources.
5578 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5579 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5580 (tests-special): Add $(objpfx)tst-mman-consts.out.
5581 ($(objpfx)tst-mman-consts.out): New makefile target.
5582
5583 2018-12-17 Mao Han <han_mao@c-sky.com>
5584
5585 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5586 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5587 without stat64 system call support.
5588 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5589 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5590 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5591 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5592 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5593 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5594 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5595 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5596 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5597 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5598 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5599
5600 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5601
5602 regex: fix storage-exhaustion error
5603 [BZ #18040]
5604 * posix/regexec.c (get_subexp):
5605 Do not continue if storage is exhausted.
5606
5607 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5608
5609 regex: fix heap-use-after-free error
5610 [BZ #18040]
5611 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5612 https://debbugs.gnu.org/32592
5613 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5614 call extend_buffers which reallocates the re_string_t internal buffer.
5615 Local variable 'buf' was not updated in such case, resulting in
5616 use-after-free.
5617 * posix/regexec.c (get_subexp): Update 'buf' after call to
5618 get_subexp_sub.
5619
5620 2018-12-15 Florian Weimer <fweimer@redhat.com>
5621
5622 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5623 (minimum_stride_size): Use it.
5624 (support_blob_repeat_allocate): Likewise.
5625
5626 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5627
5628 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5629 definition.
5630 (acosh): Likewise.
5631 (atanh): Likewise.
5632
5633 2018-12-14 Florian Weimer <fweimer@redhat.com>
5634
5635 * manual/process.texi (Process Creation Concepts): Remove
5636 documentation of process (ID) lifetime. List more process
5637 creation functions. Reference Process Identification section.
5638 (Process Identification): Add information about process ID
5639 lifetime. Describe Linux thread/task IDs.
5640 * manual/signal.texi (Signaling Another Process): Mention that the
5641 signal is always sent to the process.
5642
5643 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5644
5645 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5646 and tst-ldbl-efgcvt.
5647 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5648 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5649 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5650 (fcvt_tests, output_error, output_r_error, do_test): Use the
5651 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5652 select the type of floating-point variables and arguments; to
5653 produce extra tests for double and conversion specifiers for
5654 printf; and to set the names of called functions.
5655 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5656 in tst-efgcvt-template.c.
5657 * misc/tst-ldbl-efgcvt.c: Likewise.
5658
5659 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5660
5661 * nss/Makefile (tst-nss-test3.out): New rule.
5662
5663 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5664
5665 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5666 clobber sp.
5667
5668 2018-12-13 fanjinke <fanjinke@hygon.cn>
5669
5670 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5671 "HygonGenuine".
5672
5673 2018-12-13 Andreas Schwab <schwab@suse.de>
5674
5675 [BZ #23861]
5676 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5677 (__pthread_rwlock_rdlock_full): Update expected value for
5678 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5679 * nptl/tst-rwlock-pwn.c: New file.
5680 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5681
5682 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5683
5684 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5685 definition.
5686
5687 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5688
5689 * benchtests/scripts/compare_bench.py (do_compare): write to
5690 stderr in casestat is not present.
5691 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5692 stderr in case timings field is not present. Also string showing
5693 the output filename goes into the stderr.
5694
5695 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5696
5697 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5698 and ZeroDivisorError exceptions.
5699 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5700 argument to loop through user provided statistics.
5701 * benchtests/scripts/compare_bench.py (main): Include the --stats
5702 argument.
5703
5704 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5705
5706 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5707 instead of return.
5708
5709 2018-12-12 Florian Weimer <fweimer@redhat.com>
5710
5711 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5712 clause to copyright header.
5713
5714 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5715
5716 [BZ #23614]
5717 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5718 registers saved in the stack frame.
5719 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5720 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5721
5722 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5723
5724 * include/bits/monetary-ldbl.h: New file.
5725 * include/bits/printf-ldbl.h: Likewise.
5726 * include/bits/stdio-ldbl.h: Likewise.
5727 * include/bits/stdlib-ldbl.h: Likewise.
5728 * include/bits/syslog-ldbl.h: Likewise.
5729 * include/bits/wchar-ldbl.h: Likewise.
5730
5731 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5732
5733 * libio/libio.h: Remove redirection for _IO_vfprintf.
5734
5735 2018-12-11 Andreas Schwab <schwab@suse.de>
5736
5737 * Makerules: Remove all references to abilist-pattern.
5738 (update-all-abi): Simplify find expression.
5739
5740 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5741
5742 [BZ #23961]
5743 * math/auto-libm-test-in: Add new test case.
5744 * math/auto-libm-test-out-pow: Regenerated.
5745 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
5746
5747 2018-12-10 DJ Delorie <dj@redhat.com>
5748
5749 [BZ #23948]
5750 * support/test-container.c: Move postclean step to before we
5751 change namespaces.
5752
5753 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5754
5755 * scripts/gen-as-const.py (main): Handle --python option.
5756 * scripts/gen-py-const.awk: Remove.
5757 * Makerules (py-const-script): Use gen-as-const.py.
5758 ($(py-const)): Likewise.
5759 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
5760 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
5761 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
5762 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
5763 ~PTHREAD_MUTEX_NO_ELISION_NP.
5764 * manual/README.pretty-printers: Update reference to
5765 gen-py-const.awk.
5766
5767 * scripts/glibcextract.py: New file.
5768 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
5769 or tempfile. Import glibcexctract.
5770 (compute_c_consts): Remove. Moved to glibcextract.py.
5771 (gen_test): Update reference to compute_c_consts.
5772 (main): Likewise.
5773 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
5774 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
5775 * sysdeps/unix/sysv/linux/Makefile
5776 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
5777 Redirect stderr as well as stdout.
5778
5779 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
5780
5781 [BZ #19767]
5782 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
5783 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
5784 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
5785 ALWAYS_USE_VSYSCALL.
5786 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
5787 ALWAYS_USE_VSYSCALL.
5788 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
5789 ALWAYS_USE_VSYSCALL.
5790
5791 2018-12-10 Florian Weimer <fweimer@redhat.com>
5792
5793 [BZ #23972]
5794 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
5795 offset instead of count for clarity. Fix typo in comment.
5796 (__old_getdents64): Keep track of previous offset. Use it to call
5797 handle_overflow.
5798 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
5799 that d_off is never zero.
5800
5801 2018-12-10 Andreas Schwab <schwab@suse.de>
5802
5803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
5804 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
5805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
5806 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
5807 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
5808
5809 2018-12-10 Joseph Myers <joseph@codesourcery.com>
5810
5811 * timezone/private.h: Update from tzcode 2018g.
5812 * timezone/tzfile.h: Likewise.
5813 * timezone/tzselect.ksh: Likewise.
5814 * timezone/zdump.c: Likewise.
5815 * timezone/zic.c: Likewise.
5816
5817 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
5818
5819 [BZ #23490]
5820 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
5821 (do_test): Adjust buffer size and fix format.
5822
5823 2018-12-07 DJ Delorie <dj@redhat.com>
5824
5825 [BZ #23907]
5826 * malloc/tst-tcfree3.c: New.
5827 * malloc/Makefile: Add it.
5828
5829 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5830
5831 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
5832
5833 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5834
5835 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
5836 used as a mask for the mode argument of __vfscanf_internal and
5837 __vfwscanf_internal.
5838 * stdio-common/vfscanf-internal.c
5839 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
5840 (__strtof128_internal): Define to __wcstof128_internal.
5841 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
5842 __strtof128_internal or __wcstof128_internal when the format of
5843 long double is the same as _Float128.
5844
5845 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
5846
5847 * include/unistd.h (__confstr): Add prototype and hidden prototype.
5848 * posix/confstr.c (confstr): Rename to __confstr.
5849 (__confstr): Add hidden def.
5850 (confstr): Add weak alias for __confstr.
5851 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
5852 confstr.
5853
5854 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
5855
5856 * NEWS: Mention getcpu.
5857 * include/sched.h (__getcpu): New libc_hidden_proto.
5858 * manual/resource.texi: Document getcpu.
5859 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
5860 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
5861 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
5862 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5863 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5864 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5865 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5866 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5867 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5868 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5869 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5870 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5871 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5872 Likewise.
5873 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5874 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5875 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5877 Likewise.
5878 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5879 Likewise.
5880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5881 Likewise.
5882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5883 Likewise.
5884 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5885 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5886 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5887 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5888 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5889 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5890 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5891 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5892 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
5893 * sysdeps/unix/sysv/linux/getcpu.c: New file.
5894 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
5895 Also check getcpu.
5896
5897 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
5898
5899 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
5900 functions.
5901 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
5902
5903 2018-12-07 Florian Weimer <fweimer@redhat.com>
5904
5905 [BZ #17405]
5906 * posix/Makefile (routines): Add spawn_faction_addfchdir.
5907 * posix/Versions (GLIBC_2.29): Export
5908 posix_spawn_file_actions_addfchdir_np.
5909 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
5910 * posix/spawn_faction_destroy.c
5911 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
5912 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
5913 and the field action.fchdir_action.
5914 * posix/tst-spawn-chdir.c (add_chdir): New function.
5915 (do_test): Add do_fchdir loop. Call add_chdir.
5916 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
5917 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5918 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5919 posix_spawn_file_actions_addfchdir_np.
5920 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5921 Likewise.
5922 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5923 Likewise.
5924 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5925 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5926 Likewise.
5927 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5928 Likewise.
5929 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5930 Likewise.
5931 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5932 Likewise.
5933 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5934 Likewise.
5935 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5936 Likewise.
5937 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5938 (GLIBC_2.29): Likewise.
5939 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5940 (GLIBC_2.29): Likewise.
5941 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5942 (GLIBC_2.29): Likewise.
5943 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5944 (GLIBC_2.29): Likewise.
5945 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5946 Likewise.
5947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5948 (GLIBC_2.29): Likewise.
5949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5950 (GLIBC_2.29): Likewise.
5951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5952 (GLIBC_2.29): Likewise.
5953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5954 (GLIBC_2.29): Likewise.
5955 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5956 Likewise.
5957 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5958 Likewise.
5959 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5960 Likewise.
5961 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5962 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5963 Likewise.
5964 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5965 Likewise.
5966 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5967 Likewise.
5968 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5969 Likewise.
5970
5971 2018-12-06 Joseph Myers <joseph@codesourcery.com>
5972
5973 * manual/texinfo.tex: Update to version 2018-09-21.20 with
5974 trailing whitespace removed.
5975 * scripts/config.guess: Update to version 2018-11-28.
5976 * scripts/config.sub: Update to version 2018-11-28.
5977 * scripts/install-sh: Update to version 2018-03-11.20.
5978 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
5979 * scripts/move-if-change: Update to version 2018-03-07 03:47.
5980
5981 2018-12-07 Florian Weimer <fweimer@redhat.com>
5982
5983 [BZ #23927]
5984 CVE-2018-19591
5985 * inet/tst-if_index-long.c: New file.
5986 * inet/Makefile (tests): Add tst-if_index-long.
5987
5988 2018-12-07 Florian Weimer <fweimer@redhat.com>
5989
5990 * support/check.h (support_record_failure_is_failed): Declare.
5991 * support/descriptors.h: New file.
5992 * support/support_descriptors.c: Likewise.
5993 * support/tst-support_descriptors.c: Likewise.
5994 * support/support_record_failure.c
5995 (support_record_failure_is_failed): New function.
5996 * support/Makefile (libsupport-routines): Add support_descriptors.
5997 (tests): Add tst-support_descriptors.
5998
5999 2018-12-05 Zack Weinberg <zackw@panix.com>
6000 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6001
6002 * stdio-common/vfprintf-internal.c
6003 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6004 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6005 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6006 and __no_long_double.
6007 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6008 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6009 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6010 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6011 and __nldbl_*syslog* functions.
6012 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6013 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6014 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6015 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6016 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6017 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6018 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6019 (__nldbl_vwprintf, __nldbl_wprintf):
6020 Directly call the appropriate __v*printf_internal routine, passing
6021 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6022 variable names.
6023 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6024 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6025 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6026 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6027 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6028 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6029 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6030 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6031 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6032 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6033 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6034 (__nldbl_syslog, __nldbl_vsyslog):
6035 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6036 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6037 appropriate.
6038 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6039 appropriate.
6040
6041 2018-12-05 Zack Weinberg <zackw@panix.com>
6042 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6043
6044 [BZ #11319]
6045 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6046 Moved here from debug/vsprintf_chk.c.
6047 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6048 and completion logic for the strfile to match exactly what
6049 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6050 _IO_str_init_static_internal instead of maxlen-1.
6051 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6052 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6053 __vsprintf_internal.
6054
6055 * debug/vsprintf_chk.c (__vsprintf_chk)
6056 * debug/sprintf_chk.c (__sprintf_chk):
6057 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6058 'flags' argument is positive, and slen as maxlen. No need to lock
6059 the FILE and/or construct a temporary FILE. Minimize and normalize
6060 header inclusions and variable names. Do not libc_hidden_def anything.
6061
6062 * debug/asprintf_chk.c (__asprintf_chk)
6063 * debug/dprintf_chk.c (__dprintf_chk)
6064 * debug/fprintf_chk.c (__fprintf_chk)
6065 * debug/fwprintf_chk.c (__fwprintf_chk)
6066 * debug/printf_chk.c (__printf_chk)
6067 * debug/snprintf_chk.c (__snprintf_chk)
6068 * debug/swprintf_chk.c (__swprintf_chk)
6069 * debug/vasprintf_chk.c (__vasprintf_chk)
6070 * debug/vdprintf_chk.c (__vdprintf_chk)
6071 * debug/vfprintf_chk.c (__vfprintf_chk)
6072 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6073 * debug/vprintf_chk.c (__vprintf_chk)
6074 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6075 * debug/vswprintf_chk.c (__vswprintf_chk)
6076 * debug/vwprintf_chk.c (__vwprintf_chk)
6077 * debug/wprintf_chk.c (__wprintf_chk):
6078 Directly call the corresponding vxxprintf_internal function, passing
6079 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6080 the FILE and/or construct a temporary FILE. Minimize and normalize
6081 header inclusions and variable names. Do not libc_hidden_def anything.
6082
6083 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6084 __obstack_vprintf_internal.
6085 (__obstack_vprintf_chk): Convert into a wrapper that calls
6086 __obstack_vprintf_internal (these two functions already had the
6087 same code) and move to new file...
6088 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6089 file.
6090 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6091 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6092 * debug/Makefile (routines): Add vobprintf_chk.
6093
6094 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6095 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6096 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6097 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6098 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6099 (__nldbl___obstack_vfprintf_chk):
6100 Directly call the corresponding vxxprintf_internal function,
6101 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6102 duplicate comparison of slen with 0 or maxlen from the corresponding
6103 non-__nldbl function.
6104
6105 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6106 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6107 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6108 Remove libc_hidden_proto.
6109
6110 * stdio-common/vfprintf-internal.c
6111 (__vfprintf_internal, __vfwprintf_internal):
6112 Do not check _IO_FLAGS2_FORTIFY.
6113 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6114 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6115 a comment explaining why it has the maxlen argument.
6116 (_IO_acquire_lock_clear_flags2_fct): Remove.
6117 (_IO_acquire_lock_clear_flags2): Remove.
6118 (_IO_release_lock): Remove conditional statement which will
6119 now never execute.
6120 (_IO_acquire_lock): Remove variable which is now unused.
6121 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6122 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6123
6124 * stdio-common/Makefile (tests): Add tst-bz11319 and
6125 tst-bz11319-fortify2.
6126 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6127 * stdio-common/tst-bz11319-fortify2.c: New file.
6128 * stdio-common/tst-bz11319.c: Likewise.
6129
6130 2018-12-05 Zack Weinberg <zackw@panix.com>
6131 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6132
6133 * misc/syslog.c: Include libioP.h, not iolibio.h.
6134 (__vsyslog_internal): New function with the former body of
6135 __vsyslog_chk; takes mode_flags argument same as
6136 __v*printf_internal. Call __vfprintf_internal directly.
6137
6138 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6139 Remove libc_hidden_def.
6140 (__syslog, __syslog_chk): Use __vsyslog_internal.
6141 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6142
6143 * include/sys/syslog.h: Add multiple inclusion guard.
6144 Add prototype for __vsyslog_internal.
6145 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6146
6147 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6148 Use __vsyslog_internal.
6149
6150 2018-12-05 Zack Weinberg <zackw@panix.com>
6151 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6152
6153 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6154 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6155 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6156 New functions.
6157 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6158 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6159
6160 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6161 Include wctype.h here if COMPILE_WPRINTF is defined.
6162 Define __vfprintf_internal or __vfwprintf_internal, depending
6163 on COMPILE_WPRINTF.
6164 Temporarily, on entry to this function, update mode_flags
6165 according to the environmental settings corresponding to
6166 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6167 Throughout, check mode_flags instead of __ldbl_is_dbl and
6168 _IO_FLAGS2_FORTIFY on the destination FILE.
6169 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6170 Include vfprintf-internal.c. Don't include wctype.h.
6171 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6172 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6173 and vfprintf.
6174 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6175 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6176 and vfwprintf.
6177 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6178
6179 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6180 and add mode_flags argument; use __vfprintf_internal.
6181 (__vdprintf): New function. Alias vdprintf to this.
6182 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6183 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6184 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6185 (__obstack_printf): Use __obstack_printf_internal.
6186 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6187 public aliases __vsnprintf and vsnprintf.
6188 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6189 called internally.
6190 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6191 public aliases _IO_vsprintf and vsprintf.
6192 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6193 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6194 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6195 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6196 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6197
6198 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6199 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6200 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6201 * stdio-common/printf.c: Use __vfprintf_internal.
6202
6203 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6204 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6205 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6206
6207 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6208 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6209 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6210 __vfwprintf_internal.
6211
6212 * libio/libio.h: Remove libc_hidden_proto and declaration for
6213 _IO_vfprintf.
6214 Remove declaration of _IO_vfwprintf.
6215 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6216 _IO_vsprintf.
6217 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6218 _IO_obstack_printf.
6219 * include/stdio.h: Add prototype for __vasprintf.
6220 (__vsnprintf): Remove declaration, because there are no more
6221 internal calls.
6222 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6223 declaration, because there are no more internal calls.
6224
6225 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6226 __vsnprintf_internal, instead of _IO_vsnprintf.
6227 * argp/argp-help.c (__argp_error, __argp_failure): Use
6228 __vasprintf_internal, instead of _IO_vasprintf.
6229 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6230 redefine, because there are no more internal calls.
6231
6232 2018-12-05 Zack Weinberg <zackw@panix.com>
6233 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6234
6235 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6236 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6237 Include libio/strfile.h instead of libioP.h.
6238 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6239 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6240 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6241 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6242 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6243 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6244 necessary. Do not set __no_long_double. Normalize variable names.
6245 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6246 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6247 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6248 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6249 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6250 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6251 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6252 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6253 Do not set __no_long_double. Normalize variable names.
6254
6255 2018-12-05 Zack Weinberg <zackw@panix.com>
6256 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6257
6258 * stdio-common/isoc99_scanf.c
6259 * stdio-common/isoc99_fscanf.c
6260 * stdio-common/isoc99_sscanf.c
6261 * stdio-common/isoc99_vscanf.c
6262 * stdio-common/isoc99_vfscanf.c
6263 * stdio-common/isoc99_vsscanf.c
6264 * wcsmbs/isoc99_wscanf.c
6265 * wcsmbs/isoc99_fwscanf.c
6266 * wcsmbs/isoc99_swscanf.c
6267 * wcsmbs/isoc99_vwscanf.c
6268 * wcsmbs/isoc99_vfwscanf.c
6269 * wcsmbs/isoc99_vswscanf.c:
6270 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6271 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6272 No need to lock and unlock the FILE passed to that function.
6273
6274 * stdio-common/vfscanf-internal.c
6275 (__vfscanf_internal, __vfwscanf_internal):
6276 Don't look at _IO_FLAGS2_SCANF_STD.
6277 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6278 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6279 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6280
6281 2018-12-05 Zack Weinberg <zackw@panix.com>
6282 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6283
6284 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6285 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6286 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6287 * libio/strfile.h: Add multiple inclusion guard.
6288 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6289
6290 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6291 consistency with the other version of this file.
6292 (ldbl_compat_symbol): New macro.
6293 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6294 New macro.
6295
6296 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6297 Define __vfscanf_internal or __vfwscanf_internal, depending on
6298 COMPILE_WSCANF; don't define any other public symbols.
6299 Remove errval and code to set errp.
6300 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6301 as the mode_flags argument.
6302 (encode_error, conv_error, input_error): Don't set errval.
6303 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6304 Include vfscanf-internal.c.
6305 * stdio-common/vfscanf.c: New file defining the public entry
6306 point vfscanf, which calls __vfscanf_internal.
6307 * stdio-common/vfwscanf.c: New file defining the public entry
6308 point vfwscanf, which calls __vfwscanf_internal.
6309
6310 * stdio-common/iovfscanf.c: New file.
6311 * stdio-common/iovfwscanf.c: Likewise.
6312
6313 * stdio-common/Makefile (routines): Add vfscanf-internal,
6314 vfwscanf-internal, iovfscanf, iovfwscanf.
6315 * stdio-common/Versions: Mention GLIBC_2.29, so that
6316 it can be used in SHLIB_COMPAT expressions.
6317 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6318 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6319 Call __vfscanf_internal, instead of _IO_vfscanf.
6320 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6321 _IO_vfscanf.
6322 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6323 _IO_vfwscanf.
6324
6325 * libio/iovsscanf.c: Clean up includes, when possible. Use
6326 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6327 __vfscanf_internal or __vfwscanf_internal directly.
6328 * libio/iovswscanf.c: Likewise.
6329 * libio/swscanf.c: Likewise.
6330 * libio/vscanf.c: Likewise.
6331 * libio/vwscanf.c: Likewise.
6332 * libio/wscanf.c: Likewise.
6333 * stdio-common/isoc99_fscanf.c: Likewise.
6334 * stdio-common/isoc99_scanf.c: Likewise.
6335 * stdio-common/isoc99_sscanf.c: Likewise.
6336 * stdio-common/isoc99_vfscanf.c: Likewise.
6337 * stdio-common/isoc99_vscanf.c: Likewise.
6338 * stdio-common/isoc99_vsscanf.c: Likewise.
6339 * stdio-common/scanf.c: Likewise.
6340 * stdio-common/sscanf.c: Likewise.
6341 * wcsmbs/isoc99_fwscanf.c: Likewise.
6342 * wcsmbs/isoc99_swscanf.c: Likewise.
6343 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6344 * wcsmbs/isoc99_vswscanf.c: Likewise.
6345 * wcsmbs/isoc99_vwscanf.c: Likewise.
6346 * wcsmbs/isoc99_wscanf.c: Likewise.
6347
6348 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6349
6350 * include/time.h
6351 (__tz_compute): Replace time_t with __time64_t.
6352 (__tz_convert): Replace time_t* with __time64_t.
6353 (__offtime): Replace time_t* with __time64_t.
6354 * time/gmtime.c
6355 (__gmtime_r): Adjust call to __tz_convert.
6356 (gmtime): Likewise.
6357 * time/localtime.c
6358 (__localtime_r): Likewise.
6359 (localtime): Likewise.
6360 * time/offtime.c: Replace time_t with __time64_t.
6361 * time/tzset.c: Likewise.
6362
6363 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6364
6365 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6366 dynamic linker unless [$(run-built-tests) = yes].
6367
6368 2018-12-03 DJ Delorie <dj@delorie.com>
6369
6370 * support/test-container.c (check_for_unshare_hints): New.
6371 (main): Call it if unshare fails. Add support for "su" scriptlet
6372 command.
6373
6374 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6375
6376 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6377 'START' to indicate that start text should be output.
6378 (gen_test): Likewise.
6379 (main): Generate 'START' for first symbol or '--' line, or at end
6380 of input if not previously generated.
6381
6382 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6383
6384 [BZ #19767]
6385 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6386 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6387 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6388 ALWAYS_USE_VSYSCALL.
6389
6390 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6391
6392 [BZ #23913]
6393 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6394 new_argv by one.
6395
6396 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6397
6398 [BZ #23923]
6399 * locale/programs/localedef.c: Declare boolean hard_links default true.
6400 (options): Add --no-hard-links option.
6401 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6402 * locale/programs/localedef.h: Declare prototype for hard_links.
6403 * locale/programs/locfile.c (write_locale_data): Don't use hard
6404 links if hard_links is false.
6405
6406 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6407
6408 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6409 cpu_features_basic.
6410 (__cache_sysconf): Likewise.
6411 (init_cacheinfo): Likewise.
6412 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6413 populate COMMON_CPUID_INDEX_80000007 and
6414 COMMON_CPUID_INDEX_80000008.
6415 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6416 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6417 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6418 (init_cpu_features): Use _Static_assert on
6419 index_arch_Fast_Unaligned_Load.
6420 __get_cpuid_registers and __get_arch_feature. Updated for
6421 cpu_features_basic. Set stepping in cpu_features.
6422 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6423 (FEATURE_INDEX_2): New.
6424 (FEATURE_INDEX_MAX): Changed to enum.
6425 (COMMON_CPUID_INDEX_D_ECX_1): New.
6426 (COMMON_CPUID_INDEX_80000007): Likewise.
6427 (COMMON_CPUID_INDEX_80000008): Likewise.
6428 (cpuid_registers): Likewise.
6429 (cpu_features_basic): Likewise.
6430 (CPU_FEATURE_USABLE): Likewise.
6431 (bit_arch_XXX_Usable): Likewise.
6432 (cpu_features): Use cpuid_registers and cpu_features_basic.
6433 (bit_arch_XXX): Reweritten.
6434 (bit_cpu_XXX): Likewise.
6435 (index_cpu_XXX): Likewise.
6436 (reg_XXX): Likewise.
6437 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6438 <support/check.h>.
6439 (CHECK_CPU_FEATURE): New.
6440 (CHECK_CPU_FEATURE_USABLE): Likewise.
6441 (cpu_kinds): Likewise.
6442 (do_test): Print vendor, family, model and stepping. Check
6443 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6444 (TEST_FUNCTION): Removed.
6445 Include <support/test-driver.c> instead of
6446 "../../test-skeleton.c".
6447 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6448 Check POPCNT instead of POPCOUNT.
6449 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6450
6451 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6452
6453 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6454 there is no element in `consts'.
6455
6456 2018-12-01 Florian Weimer <fweimer@redhat.com>
6457
6458 * support/support_capture_subprocess.c
6459 (support_capture_subprocess): Check that pipe descriptors have
6460 expected values. Close original pipe descriptors in subprocess.
6461
6462 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6463
6464 [BZ #23032]
6465 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6466 attr with __pthread_default_barrierattr.
6467 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6468 attr with __pthread_default_condattr.
6469 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6470 attr with __pthread_default_mutexattr.
6471 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6472 attr with __pthread_default_rwlockattr.
6473
6474 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6475
6476 * manual/tunables.texi (POSIX Thread Tunables): New node.
6477 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6478 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6479 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6480 __pthread_tunables_init.
6481 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6482 (max_adaptive_count): Define.
6483 * nptl/pthread_mutex_conf.c: New file.
6484 * nptl/pthread_mutex_conf.h: New file.
6485 * sysdeps/generic/adaptive_spin_count.h: New file.
6486 * sysdeps/nptl/dl-tunables.list: New file.
6487 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6488 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6489 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6490 Likewise.
6491
6492 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6493
6494 [BZ #20544]
6495 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6496 * stdlib/on_exit.c (__on_exit): Likewise.
6497 * stdlib/Makefile (tests): Add tst-bz20544.
6498 * stdlib/tst-bz20544.c: New test.
6499
6500 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6501
6502 [BZ #19767]
6503 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6504 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6505 New.
6506
6507 2018-11-30 Florian Weimer <fweimer@redhat.com>
6508
6509 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6510 Extend error logging.
6511 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6512 symbol.
6513
6514 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6515
6516 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6517 __sigismember instead of sigismember.
6518 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6519 cancel_handler): New definitions.
6520 (do_system): Use posix_spawn instead of fork and execl and remove
6521 reentracy code.
6522 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6523 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6524 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6525 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6526 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6527 * sysdeps/unix/sysv/linux/system.c: Likewise.
6528
6529 [BZ #22834]
6530 [BZ #17490]
6531 * NEWS: Add new semantic for atfork with popen and system.
6532 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6533 fork and execl.
6534
6535 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6536
6537 [BZ #23690]
6538 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6539 modification order when accessing reloc_result->addr.
6540 * include/link.h (reloc_result): Add field init.
6541 * nptl/Makefile (tests): Add tst-audit-threads.
6542 (modules-names): Add tst-audit-threads-mod1 and
6543 tst-audit-threads-mod2.
6544 Add rules to build tst-audit-threads.
6545 * nptl/tst-audit-threads-mod1.c: New file.
6546 * nptl/tst-audit-threads-mod2.c: Likewise.
6547 * nptl/tst-audit-threads.c: Likewise.
6548 * nptl/tst-audit-threads.h: Likewise.
6549
6550 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6551
6552 * scripts/gen-as-const.py: New file.
6553 * scripts/gen-as-const.awk: Remove.
6554 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6555 gen-as-const.py.
6556 ($(objpfx)test-as-const-%.c): Likewise.
6557
6558 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6559
6560 * elf/dl-exception.c: Include <_itoa.h>.
6561
6562 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6563
6564 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6565 returned by __f_setlk.
6566
6567 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6568 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6569
6570 * elf/Makefile (tests-internal): Add tst-create_format1.
6571 * elf/dl-exception.c (_dl_exception_create_format): Support
6572 %x, %lx and %zx.
6573 * elf/tst-create_format1.c: New file.
6574
6575 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6576
6577 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6578 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6579 gnulib.)
6580 * argp/argp-help.c (__argp_failure): Likewise.
6581
6582 2018-11-29 Mao Han <han_mao@c-sky.com>
6583
6584 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6585 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6586 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6587 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6588 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6589 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6590 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6591 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6592 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6593 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6594 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6595 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6596 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6597 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6598 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6599 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6600 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6601 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6602 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6603 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6604 (R_CKCORE_TLS_TPOFF32): New defines.
6605
6606 2018-11-29 Florian Weimer <fweimer@redhat.com>
6607
6608 * posix/Makefile (before-compile): Remove testcases.h and
6609 ptestcases.h.
6610 (generated): Add testcases.h and ptestcases.h.
6611 (testcases.h, ptestcases.h): Move to $(objpfx).
6612 (runtests.o): Add dependency on testcases.h.
6613 (runptests.o): Add dependency on ptestcases.h.
6614 * posix/testcases.h, posix/ptestcases.h: Remove files.
6615 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6616 not touch posix/testcases.h and posix/ptestcases.h.
6617
6618 2018-11-28 Florian Weimer <fweimer@redhat.com>
6619
6620 support: Add signal support to support_capture_subprocess_check.
6621 * support/capture_subprocess.h (support_capture_subprocess_check):
6622 Adjust comment and rename parameter.
6623 * support/support_capture_subprocess_check.c
6624 (print_actual_status): New function.
6625 (support_capture_subprocess_check): Support negative
6626 status_or_signal. Call print_actual_status.
6627 * support/tst-support_capture_subprocess.c (do_test): Call
6628 support_capture_subprocess_check.
6629 * libio/tst-vtables-common.c (termination_status)
6630 (init_termination_status): Remove.
6631 (check_for_termination): Adjust support_capture_subprocess_check
6632 call.
6633 (do_test): Remove call to init_termination_status.
6634
6635 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6636
6637 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6638 source directory instead of a copy.
6639 (CommandList.create_copy_dir): Remove.
6640
6641 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6642
6643 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6644
6645 2018-11-28 Florian Weimer <fweimer@redhat.com>
6646
6647 * support/support.h (support_quote_string): Do not use str
6648 parameter name.
6649
6650 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6651
6652 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6653 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6654
6655 2018-11-27 Florian Weimer <fweimer@redhat.com>
6656
6657 * support/support.h (support_quote_string): Declare.
6658 * support/support_quote_string.c: New file.
6659 * support/tst-support_quote_string.c: Likewise.
6660 * support/Makefile (libsupport-routines): Add
6661 support_quote_string.
6662 (tests): Add tst-support_quote_string.
6663
6664 2018-11-27 Florian Weimer <fweimer@redhat.com>
6665
6666 [BZ #23927]
6667 CVE-2018-19591
6668 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6669 descriptor leak in case of ENODEV error.
6670
6671 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6672
6673 [BZ #19767]
6674 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6675 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6676 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6677
6678 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6679
6680 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6681 Error for unknown lines.
6682
6683 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6684
6685 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6686 Touch additional files.
6687
6688 2018-11-26 Florian Weimer <fweimer@redhat.com>
6689
6690 [BZ #23907]
6691 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6692 double-frees.
6693
6694 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6695
6696 [BZ #19767]
6697 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6698 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6699 SHARED. Include sysdep.h.
6700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6701 ALWAYS_USE_VSYSCALL.
6702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6703 ALWAYS_USE_VSYSCALL.
6704
6705 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6706
6707 [BZ #19767]
6708 * nptl/Makefile (tests-static): Add tst-cond11-static.
6709 (tests): Likewise.
6710 * nptl/tst-cond11-static.c: New File.
6711 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6712 tst-affinity-static.
6713 (tests): Likewise.
6714 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6715 instead of SHARED.
6716 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6717 (USE_VSYSCALL): Likewise.
6718 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6719 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6720 instead of SHARED.
6721 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6722 SHARED.
6723 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6724 New.
6725
6726 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6727
6728 [BZ #23915]
6729 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6730 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6731 Undefine.
6732
6733 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6734
6735 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6736 (tst-cet-legacy-1a-ARGS): New.
6737 ($(objpfx)tst-cet-legacy-1a): New target.
6738 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6739
6740 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6741
6742 * conform/conformtest.py (CompileSubTest.__init__): Set
6743 self.run_early to False.
6744 (ExecuteSubTest.__init__): Likewise.
6745 (HeaderTests.run): Try running all non-optional, non-XFAILed
6746 compilation tests in a single execution of the compiler.
6747
6748 * conform/conformtest.py (CompileSubTest): New class.
6749 (ExecuteSubTest): Likewise.
6750 (ElementTest.run): Rename to gen_subtests. Append tests to
6751 self.subtests instead of running them.
6752 (ConstantTest.run): Likewise.
6753 (SymbolTest.run): Likewise.
6754 (TypeTest.run): Likewise.
6755 (TagTest.run): Likewise.
6756 (FunctionTest.run): Likewise.
6757 (VariableTest.run): Likewise.
6758 (MacroFunctionTest.run): Likewise.
6759 (MacroStrTest.run): Likewise.
6760 (HeaderTests.handle_test_line): Generate subtests for tests.
6761 (HeaderTests.run): Run subtests for tests.
6762
6763 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6764
6765 * math/Versions (GLIBC_2.29): Add pow.
6766 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
6767 symbol.
6768 * math/w_pow.c: New file.
6769 * sysdeps/i386/fpu/w_pow.c: New file.
6770 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
6771 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
6772 and add necessary aliases.
6773 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
6774 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
6775 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6776 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6777 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6778 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6779 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6780 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6781 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6782 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6783 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6784 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6785 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6786 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6787 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6792 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6793 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6794 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6795 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6796 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6797 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6798 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6799 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
6800 __pow.
6801 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
6802 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
6803 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
6804
6805 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6806
6807 * math/Versions (GLIBC_2.29): Add log2.
6808 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
6809 symbol.
6810 * math/w_log2.c: New file.
6811 * sysdeps/i386/fpu/w_log2.c: New file.
6812 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
6813 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
6814 and add necessary aliases.
6815 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
6816 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
6817 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6818 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6819 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6820 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6821 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6822 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6823 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6824 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6825 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6826 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6827 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6828 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6829 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6833 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6834 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6835 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6836 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6837 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6838 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6839 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6840 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6841
6842 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6843
6844 * math/Versions (GLIBC_2.29): Add log.
6845 * math/w_log_compat.c (__log_compat): Change to versioned compat
6846 symbol.
6847 * math/w_log.c: New file.
6848 * sysdeps/i386/fpu/w_log.c: New file.
6849 * sysdeps/ia64/fpu/e_log.S: Update.
6850 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
6851 and add necessary aliases.
6852 * sysdeps/ieee754/dbl-64/w_log.c: New file.
6853 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
6854 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6855 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6856 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6857 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6858 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6859 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6860 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6861 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6862 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6863 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6864 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6865 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6866 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6871 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6872 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6873 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6874 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6875 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6876 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6877 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6878 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
6879 __log.
6880 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
6881 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
6882 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
6883 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
6884
6885 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
6886
6887 * math/Versions (GLIBC_2.29): Add exp and exp2.
6888 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
6889 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
6890 * math/w_exp_compat.c (__exp_compat): Likewise.
6891 * math/w_exp.c: New file.
6892 * math/w_exp2.c: New file.
6893 * sysdeps/i386/fpu/w_exp.c: New file.
6894 * sysdeps/i386/fpu/w_exp2.c: New file.
6895 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
6896 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
6897 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
6898 and add necessary aliases.
6899 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
6900 and add necessary aliases.
6901 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
6902 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
6903 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
6904 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
6905 * sysdeps/mach/hurd/i386/libm.abilist: Update.
6906 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
6907 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
6908 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
6909 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
6910 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
6911 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
6912 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
6913 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
6914 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
6915 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
6916 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
6917 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
6918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
6919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
6920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
6921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
6922 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
6923 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
6924 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
6925 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
6926 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
6927 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
6928 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
6929 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
6930 (__ieee754_exp): Rename to __exp.
6931 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
6932 (__ieee754_exp): Rename to __exp.
6933 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
6934 (__ieee754_exp): Rename to __exp.
6935 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
6936 __exp.
6937 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
6938
6939 2018-11-20 DJ Delorie <dj@redhat.com>
6940
6941 * malloc/malloc.c (tcache_entry): Add key field.
6942 (tcache_put): Set it.
6943 (tcache_get): Likewise.
6944 (_int_free): Check for double free in tcache.
6945 * malloc/tst-tcfree1.c: New.
6946 * malloc/tst-tcfree2.c: New.
6947 * malloc/Makefile: Run the new tests.
6948 * manual/probes.texi: Document memory_tcache_double_free probe.
6949
6950 * dlfcn/dlerror.c (check_free): Prevent double frees.
6951
6952 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
6953
6954 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
6955
6956 2018-11-20 Joseph Myers <joseph@codesourcery.com>
6957
6958 * conform/conformtest.py (ElementTest.run): Use unique identifiers
6959 in tests. Use names for format arguments.
6960 (ConstantTest.run): Likewise.
6961 (SymbolTest.run): Likewise.
6962 (TypeTest.run): Likewise.
6963 (TagTest.run): Likewise.
6964 (FunctionTest.run): Likewise.
6965 (VariableTest.run): Likewise.
6966 (MacroFunctionTest.run): Likewise.
6967 (MacroStrTest.run): Likewise.
6968 (HeaderTests.__init__): Set self.num_tests.
6969 (HeaderTests.handle_test_line): Set test.num. Increment
6970 self.num_tests.
6971
6972 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6973
6974 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
6975 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
6976 SEEK_SET.
6977
6978 2018-11-19 Mao Han <han_mao@c-sky.com>
6979
6980 * scripts/config.guess: Update to version 2018-08-29.
6981 * scripts/config.sub: Update to version 2018-08-29.
6982
6983 2018-11-19 Florian Weimer <fweimer@redhat.com>
6984
6985 support: Print timestamps in timeout handler.
6986 * support/support_test_main.c (print_timestamp): New function.
6987 (signal_handler): Use it to print the termination time and the
6988 time of the last write to standard output.
6989
6990 2018-11-16 Zack Weinberg <zackw@panix.com>
6991 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6992
6993 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
6994 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
6995 argument.
6996 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
6997 and add flags argument. Check flags instead of __ldbl_is_dbl when
6998 deciding whether to set is_long_double.
6999 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7000 passing zero for flags argument.
7001 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7002
7003 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7004 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7005 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7006 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7007 variable names. Remove libc_hidden_def/libc_hidden_proto from
7008 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7009 longer called from within the library.
7010 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7011 for __nldbl___vstrfmon_l, declare it explicitly.
7012
7013 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7014
7015 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7016
7017 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7018 macros
7019 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7020 F_SETLK64, F_SETLKW64, respectively.
7021 * sysdeps/mach/hurd/f_setlk.c: New file.
7022 * sysdeps/mach/hurd/f_setlk.h: New file.
7023 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7024 f_setlk.
7025 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7026 (__libc_fcntl): Move non-flock operations to...
7027 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7028 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7029
7030 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7031
7032 mktime: DEBUG_MKTIME cleanup
7033 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7034 And it’s no longer needed now that glibc and Gnulib both have
7035 their own testing mechanisms for mktime.
7036 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7037
7038 mktime: fix non-EOVERFLOW errno handling
7039 [BZ#23789]
7040 mktime was not properly reporting failures when the underlying
7041 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7042 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7043 The problem could happen on non-glibc platforms, with Gnulib.
7044 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7045 (tm_diff): ... this simpler function, which does not change errno.
7046 All callers changed to deal with errno themselves.
7047 (ranged_convert, __mktime_internal): Return failure immediately if
7048 the underlying function reports any failure other than EOVERFLOW.
7049 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7050 gap code fails.
7051
7052 mktime: fix bug with Y2038 DST transition
7053 [BZ#23789]
7054 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7055 mishandle a DST transition that jumps over the Y2038 boundary.
7056 No such DST transitions are known so this is only a theoretical
7057 bug, but we might as well do things right.
7058
7059 mktime: make more room for overflow
7060 [BZ#23789]
7061 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7062 This is so that we can add tm_diff results to a previous guess,
7063 which will be useful in a later patch.
7064
7065 mktime: simplify offset guess
7066 [BZ#23789]
7067 * time/mktime.c (__mktime_internal): Omit excess precision.
7068
7069 mktime: new test for mktime failure
7070 [BZ#23789]
7071 Based on a test suggested by Albert Aribaud in:
7072 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7073 * time/Makefile (tests): Add bug-mktime4.
7074 * time/bug-mktime4.c: New file.
7075
7076 mktime: fix EOVERFLOW bug
7077 [BZ#23789]
7078 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7079 Include libc-config.h, not config.h, for __set_errno.
7080 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7081
7082 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7083
7084 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7085 __attribute_copy__ to copy attributes from name. Drop static qualifier
7086 to avoid warnings about leaf attribute not having effect on static
7087 functions.
7088
7089 2018-11-13 Florian Weimer <fweimer@redhat.com>
7090
7091 * malloc/malloc.c (fastbin_push_entry): New function.
7092 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7093 (REMOVE_FB): Remove macro.
7094 (_int_malloc): Use fastbin_pop_entry and reindent.
7095 (_int_free): Use fastbin_push_entry.
7096 (malloc_consolidate): Use atomic_exchange_acquire.
7097
7098 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7099
7100 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7101 alias attribute, not with strong_alias.
7102
7103 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7104 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7105 with additional parameter thread.
7106 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7107 in terms of __hidden_ver2.
7108 (hidden_tls_def): New macro.
7109 (libc_hidden_tls_def): Likewise.
7110 (rtld_hidden_tls_def): Likewise.
7111 (libm_hidden_tls_def): Likewise.
7112 (libmvec_hidden_tls_def): Likewise.
7113 (libresolv_hidden_tls_def): Likewise.
7114 (librt_hidden_tls_def): Likewise.
7115 (libdl_hidden_tls_def): Likewise.
7116 (libnss_files_hidden_tls_def): Likewise.
7117 (libnsl_hidden_tls_def): Likewise.
7118 (libnss_nisplus_hidden_tls_def): Likewise.
7119 (libutil_hidden_tls_def): Likewise.
7120 (libutil_hidden_tls_def): Likweise.
7121 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7122 libc_hidden_tls_def.
7123 (__sim_disabled_exceptions_thread): Likewise.
7124 (__sim_round_mode_thread): Likewise.
7125
7126 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7127 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7128 copy attributes from name.
7129
7130 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7131
7132 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7133 Use __attribute_copy__ to copy attributes from name.
7134
7135 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7136 with __hidden_ver1 call.
7137 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7138 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7139 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7140 (__cosf): Do not declare here.
7141 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7142 (__sincosf): Do not declare here.
7143 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7144 (__sinf): Do not declare here.
7145
7146 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7147 (__BIG_ENDIAN): Likewise.
7148 (__BYTE_ORDER): Likewise.
7149 (strong_alias): Likewise.
7150 (_strong_alias): Likewise.
7151
7152 2018-11-12 Florian Weimer <fweimer@redhat.com>
7153
7154 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7155 function. Move after the definition of in_smallbin_range. Do not
7156 use __builtin_expect for paths that lead to a noreturn function.
7157 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7158 because it is unclear whether this is in fact an unlikely
7159 condition.
7160 (_int_malloc, _int_free): Adjust.
7161 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7162 variables.
7163 * malloc/arena.c (heap_trim): Likewise.
7164
7165 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7166
7167 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7168 it, free it if needed.
7169 (reauthenticate): Test and use ccwdir.
7170 (child_init_port): In non-resetids case, test and use ccwdir.
7171 (child_chdir): New nested function to set ccwdir.
7172 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7173 * hurd/hurd/port.h (_hurd_port_move): New function.
7174 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7175 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7176 * hurd/Versions (_hurd_port_move): Export function.
7177 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7178 symbol.
7179 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7180 of dtablesize for allocating dtable_cloexec.
7181
7182 2018-11-09 Martin Sebor <msebor@redhat.com>
7183
7184 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7185 it's already defined.
7186 (_strong_alias): Use __attribute_copy__.
7187 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7188 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7189 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7190 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7191 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7192 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7193 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7194 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7195 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7196 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7197 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7198 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7199 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7200 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7201 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7202 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7203 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7204 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7205 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7206
7207 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7208
7209 * misc/tst-efgcvt.c: Include support/check.h and
7210 support/test-driver.c. Do not include test-skeleton.c.
7211 (error_count): Remove.
7212 (output_error): Replace increments to error_count with calls to
7213 support_record_failure.
7214 (output_r_error): Likewise.
7215 (special): Likewise.
7216 (do_test): Unconditionally return zero.
7217 (TEST_FUNCTION): Remove.
7218
7219 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7220
7221 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7222 not $(@D)/scratch.
7223 ($(linknamespace-header-tests)): Likewise.
7224
7225 * conform/conformtest.py: New file.
7226 * conform/conformtest.pl: Remove.
7227 * conform/GlibcConform.pm: Likewise.
7228 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7229 (KEYWORDS_C99): Likewise.
7230 (KEYWORDS): Likewise.
7231 * conform/Makefile ($(conformtest-header-tests)): Use
7232 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7233 option. Use --header instead of --headers.
7234 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7235 function entries.
7236 * conform/data/spawn.h-data: Likewise.
7237 * conform/data/fcntl.h-data (openat): Add space after function
7238 name.
7239 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7240 (wcscasecmp_l): Likewise.
7241 * conform/data/termios.h-data (c_cc): Add space after element
7242 name.
7243
7244 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7245
7246 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7247 instead of manually comparing and reporting mismatching strings.
7248 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7249 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7250
7251 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7252
7253 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7254 __ASSUME_SOCKETCALL.
7255 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7256 (__ASSUME_SOCKETCALL): Remove.
7257 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7258 (__ASSUME_SOCKETCALL): Likewise.
7259 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7260 (__ASSUME_SOCKETCALL): Likewise.
7261 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7262 (__ASSUME_SOCKETCALL): Likewise.
7263 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7264 (__ASSUME_SOCKETCALL): Likewise.
7265 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7266 (__ASSUME_SOCKETCALL): Likewise.
7267 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7268 (__ASSUME_SOCKETCALL): Likewise.
7269
7270 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7271
7272 [BZ #23509]
7273 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7274 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7275 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7276 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7277 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7278 lc_unknown.
7279
7280 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7281
7282 [BZ #17630]
7283 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7284
7285 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7286
7287 [BZ #23867]
7288 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7289 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7290 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7291 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7292
7293 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7294
7295 * support/support_test_compare_string.c
7296 (support_test_compare_string): Fix printf format.
7297
7298 2018-11-07 Florian Weimer <fweimer@redhat.com>
7299
7300 Implement TEST_COMPARE_STRING.
7301 * support/check.h (TEST_COMPARE_STRING): Define.
7302 (support_test_compare_string): Declare.
7303 * support/Makefile (libsupport-routines): Add
7304 support_test_compare_string.
7305 (tests): Add tst-test_compare_string.
7306 * support/support_test_compare_string.c: New file.
7307 * support/tst-test_compare_string.c: Likewise.
7308
7309 2018-11-07 Andreas Schwab <schwab@suse.de>
7310
7311 [BZ #23864]
7312 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7313 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7314 Undef.
7315
7316 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7317
7318 [BZ #23862]
7319 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7320 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7321 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7322 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7323 Likewise.
7324
7325 2018-11-06 Florian Weimer <fweimer@redhat.com>
7326
7327 [BZ #17405]
7328 * posix/Makefile (routines): Add spawn_faction_addchdir.
7329 (tests): Add tst-spawn-chdir.
7330 * posix/Versions (GLIBC_2.29): Add
7331 posix_spawn_file_actions_addchdir_np.
7332 * posix/spawn_faction_addchdir.c: New file.
7333 * posix/spawn_faction_destroy.c
7334 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7335 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7336 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7337 chdir_action.
7338 * posix/tst-spawn-chdir.c: New file.
7339 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7340 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7341 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7342 posix_spawn_file_actions_addchdir_np.
7343 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7344 Likewise.
7345 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7346 Likewise.
7347 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7348 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7349 Likewise.
7350 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7351 Likewise.
7352 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7353 Likewise.
7354 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7355 Likewise.
7356 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7357 Likewise.
7358 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7359 Likewise.
7360 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7361 (GLIBC_2.29): Likewise.
7362 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7363 (GLIBC_2.29): Likewise.
7364 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7365 (GLIBC_2.29): Likewise.
7366 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7367 (GLIBC_2.29): Likewise.
7368 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7369 Likewise.
7370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7371 (GLIBC_2.29): Likewise.
7372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7373 (GLIBC_2.29): Likewise.
7374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7375 (GLIBC_2.29): Likewise.
7376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7377 (GLIBC_2.29): Likewise.
7378 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7379 Likewise.
7380 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7381 Likewise.
7382 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7383 Likewise.
7384 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7385 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7386 Likewise.
7387 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7388 Likewise.
7389 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7390 Likewise.
7391 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7392 Likewise.
7393
7394 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7395
7396 * misc/Makefile (tests): Add tst-ldbl-error.
7397 * misc/tst-ldbl-error.c: New file.
7398
7399 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7400
7401 * misc/Makefile (tests): Add tst-ldbl-warn.
7402 * misc/tst-ldbl-warn.c: New file.
7403
7404 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7405
7406 * argp/Makefile (tests): Add tst-ldbl-argp.
7407 * argp/tst-ldbl-argp.c: New file.
7408
7409 2018-11-05 Arjun Shankar <arjun@redhat.com>
7410
7411 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7412 __gconv_path_elem and call __gconv_get_path unconditionally.
7413
7414 2018-11-05 Andreas Schwab <schwab@suse.de>
7415
7416 [BZ #22927]
7417 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7418 creating the first helper thread failed.
7419
7420 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7421
7422 * sysdeps/mach/hurd/msync.c: New file.
7423
7424 2018-11-02 Florian Weimer <fweimer@redhat.com>
7425
7426 * support/shell-container.c (copy_func): Call
7427 support_copy_file_range instead of copy_file_range to support
7428 cross-device copies.
7429
7430 2018-11-02 Florian Weimer <fweimer@redhat.com>
7431
7432 * support/test-container.c: Include <libc-pointer-arith.h> for
7433 ALIGN_UP.
7434
7435 2018-11-01 Zong Li <zong@andestech.com>
7436
7437 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7438 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7439 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7440 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7441
7442 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7443 variable to avoid overlap arguments.
7444
7445 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7446
7447 * posix/bug-regex22.c (main): Use puts with distinct error
7448 messages for unexpected success of re_compile_pattern, not printf
7449 with NULL argument to %s.
7450
7451 * stdio-common/bug22.c: Include <libc-diag.h>.
7452 (do_test): Disable -Wformat-overflow= warnings around fprintf
7453 calls outputting more than INT_MAX characters.
7454 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7455 around printf call with NULL %s argument.
7456
7457 [BZ #23848]
7458 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7459 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7460 Undefine.
7461 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7462 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7463 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7464 (__ASSUME_SENDTO_SYSCALL): Likewise.
7465 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7466 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7467 [!__arch64__].
7468 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7469 (__ASSUME_CONNECT_SYSCALL): Likewise.
7470 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7471 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7472 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7473 Define.
7474 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7475 Likewise.
7476 [__LINUX_KERNEL_VERSION >= 0x040400]
7477 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7478 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7479 Remove.
7480 (listen): Likewise.
7481 (setsockopt): Likewise.
7482
7483 2018-11-01 Fredrik Noring <noring@nocrew.org>
7484
7485 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7486 with the ISA override.
7487
7488 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7489
7490 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7491 #endif.
7492
7493 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7494
7495 * manual/errno.texi (EIEIO): Document how translators should
7496 translate the error message.
7497 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7498 printing trailing whitespaces refused by git.
7499 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7500 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7501 * hurd/Makefile (user-interfaces): Add pci.
7502
7503 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7504
7505 * conform/linknamespace.py: New file.
7506 * conform/linknamespace.pl: Remove file.
7507 * conform/Makefile ($(linknamespace-header-tests)): Use
7508 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7509 option.
7510
7511 2018-10-30 Florian Weimer <fweimer@redhat.com>
7512
7513 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7514 memory leaks.
7515
7516 2018-10-30 Florian Weimer <fweimer@redhat.com>
7517
7518 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7519
7520 2018-10-30 Florian Weimer <fweimer@redhat.com>
7521
7522 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7523 support_blob_repeat.
7524
7525 2018-10-30 Florian Weimer <fweimer@redhat.com>
7526
7527 Avoid spurious test failures in stdlib/test-bz22786.
7528 * support/Makefile (libsupport-routines): Add blob_repeat.
7529 (tests): Add tst-support_blob_repeat.
7530 * support/blob_repeat.h: New file.
7531 * support/blob_repeat.c: Likewise.
7532 * support/tst-support_blob_repeat.c: Likewise.
7533 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7534 support_blob_repeat_allocate.
7535
7536 2018-10-30 Andreas Schwab <schwab@suse.de>
7537
7538 [BZ #23125]
7539 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7540 Don't use tail call.
7541 * elf/tst-unwind-main.c: New file.
7542 * elf/Makefile (tests): Add tst-unwind-main.
7543 (CFLAGS-tst-unwind-main.c): Define.
7544
7545 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7546
7547 [BZ #23791]
7548 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7549 n_cs_precedes to 0.
7550 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7551
7552 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7553
7554 * conform/glibcconform.py: Do not import shutil.
7555 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7556 of mkdtemp.
7557
7558 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7559 critic_missing for versions before 3.4.
7560 * configure: Regenerated.
7561 * manual/install.texi (Tools for Compilation): Document
7562 requirement for Python to build glibc.
7563 * INSTALL: Regenerated.
7564 * Rules [PYTHON]: Make code unconditional.
7565 * benchtests/Makefile [PYTHON]: Likewise.
7566 * conform/Makefile [PYTHON]: Likewise.
7567 * manual/Makefile [PYTHON]: Likewise.
7568 * math/Makefile [PYTHON]: Likewise.
7569
7570 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7571
7572 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7573 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7574 answer to interrupt_operation, return EIEIO instead of EINTR.
7575 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7576 _hurd_intr_rpc_msg_about_to global point to start of controlled
7577 assembly snippet. Make it check canceled flag.
7578 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7579 the _hurd_intr_rpc_msg_about_to point.
7580 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7581 issue, remove cancel flag check.
7582
7583 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7584
7585 * scripts/build-many-glibcs.py: Remove compatibility for missing
7586 os.cpu_count and re.fullmatch.
7587
7588 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7589
7590 [BZ #23822]
7591 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7592 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7593 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7594
7595 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7596
7597 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7598 macro.
7599
7600 2018-10-25 Florian Weimer <fweimer@redhat.com>
7601
7602 [BZ #23562]
7603 [BZ #23821]
7604 XFAIL siginfo_t si_band conform test on sparc64.
7605 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7606 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7607 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7608 (conformtest-xfail-conds): Add sparc64-linux.
7609 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7610 sparc64.
7611 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7612
7613 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7614
7615 * elf/elf.h (NT_MIPS_DSP): New macro.
7616 (NT_MIPS_FP_MODE): Likewise.
7617
7618 2018-10-25 Zong Li <zong@andestech.com>
7619
7620 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7621 name by adding the file extension (.so).
7622
7623 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7624
7625 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7626 (test-xfail-ISO11/threads.h/linknamespace,
7627 test-xfail-ISO11/threads.h/conform): Add.
7628
7629 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7630
7631 * math/gen-libm-test.py: Import os.
7632 (ALL_FLOATS_MANUAL): New constant.
7633 (ALL_FLOATS_SUFFIX): Likewise.
7634 (Ulps.all_functions): New function.
7635 (real_all_ulps): Likewise.
7636 (generate_err_table_sub): Likewise.
7637 (generate_err_table): Likewise.
7638 (main): Handle -s and -m options.
7639 * manual/libm-err-tab.pl: Remove.
7640 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7641 instead of libm-err-tab.pl.
7642 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7643 != no].
7644 * manual/install.texi (Tools for Compilation): Document
7645 requirement for Python to build manual.
7646 * INSTALL: Regenerated.
7647
7648 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7649
7650 * bits/time64.h: New file.
7651 * include/time.h: Replace internal_time_t with __time64_t.
7652 * posix/bits/types (__time64_t): Add.
7653 * stdlib/Makefile: Add bits/time64.h to includes.
7654 * time/tzfile.c: Replace internal_time_t with __time64_t.
7655
7656 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7657
7658 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7659 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7660 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7661 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7662 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7663 prototype.
7664 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7665 * posix/spawn_faction_addclose.c
7666 (__posix_spawn_file_actions_addclose): Add hidden definition.
7667 * posix/spawn_faction_adddup2.c
7668 (__posix_spawn_file_actions_adddup2): Likewise.
7669 * posix/spawn_faction_destroy.c
7670 (__posix_spawn_file_actions_destroy): Likewise.
7671 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7672 Likewise.
7673 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7674 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7675 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7676 Likewise.
7677 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7678 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7679 Likewise.
7680
7681 2018-10-24 Andreas Schwab <schwab@suse.de>
7682
7683 [BZ #18093]
7684 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7685 format cache.
7686 * elf/cache.c (print_cache): Likewise.
7687
7688 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7689
7690 * bits/timesize.h: New file.
7691 * stdlib/Makefile (headers): Add bits/timesize.h.
7692 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7693 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7694 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7695 (__SEM_PAD_AFTER_TIME): Likewise.
7696 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7697 (__SHM_PAD_AFTER_TIME): Likewise.
7698 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7699 (__MSQ_PAD_BEFORE_TIME): Likewise.
7700 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7701 (__SEM_PAD_BEFORE_TIME): Likewise.
7702 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7703 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7704 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7705 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7706 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7707 (__MSQ_PAD_BEFORE_TIME): Likewise.
7708 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7709 (__SEM_PAD_BEFORE_TIME): Likewise.
7710 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7711 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7712 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7713 (__MSQ_PAD_BEFORE_TIME): Likewise.
7714 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7715 (__SEM_PAD_BEFORE_TIME): Likewise.
7716 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7717 (__SHM_PAD_BEFORE_TIME): Likewise.
7718 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7719 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7720 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7721
7722 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7723
7724 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7725 USE_RDTSCP is defined.
7726 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7727 USE_RDTSCP is defined.
7728
7729 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7730
7731 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7732 defined.
7733
7734 [BZ #23709]
7735 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7736 independently of other flags.
7737
7738 2018-10-23 Florian Weimer <fweimer@redhat.com>
7739
7740 * time/tst-mktime2.c (N_STRINGS): Remove.
7741 (set_timezone): New function.
7742 (spring_forward_gap): Call it. Use FAIL_EXIT1.
7743 (mktime_test1): Report localtime failure and check errno value.
7744 Use TEST_COMPARE.
7745 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
7746 (do_test): Remove alarm call. Use set_timezone and array_length.
7747
7748 2018-10-23 Andreas Schwab <schwab@suse.de>
7749
7750 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
7751 (__start_context): Use END instead of PSEUDO_END.
7752
7753 2018-10-22 Joseph Myers <joseph@codesourcery.com>
7754
7755 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7756 version to 4.19.
7757
7758 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7759 version to 4.19.
7760
7761 [BZ #23793]
7762 * wcsmbs/c32rtomb.c: New file.
7763 * wcsmbs/mbrtoc32.c: Likewise.
7764 * wcsmbs/tst-c32-state.c: Likewise.
7765 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
7766 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
7767 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
7768 (tests): Add tst-c32-state.
7769 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
7770 $(gen-locales).
7771
7772 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
7773
7774 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
7775 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
7776
7777 2018-10-19 Joseph Myers <joseph@codesourcery.com>
7778
7779 [BZ #23794]
7780 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
7781 pair and return 0 in that case, and use saved character to
7782 interpret following character.
7783 * wcsmbs/tst-c16-surrogate.c: New file.
7784 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
7785 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
7786 Depend on $(gen-locales)
7787
7788 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
7789
7790 [BZ #23562]
7791 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
7792 (struct siginfo_t): Use correct type for si_band.
7793
7794 2018-10-19 Florian Weimer <fweimer@redhat.com>
7795
7796 [BZ #23689]
7797 * resource/bits/types/struct_rusage.h (struct rusage): Update
7798 comment on struct. Remove extraneous field comment.
7799
7800 2018-10-18 David S. Miller <davem@davemloft.net>
7801
7802 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
7803 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
7804 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
7805 sysdep_routines in subdir elf.
7806 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
7807 version for __vdso_clock_gettime.
7808 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
7809 Define.
7810 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
7811 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
7812
7813 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
7814
7815 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
7816
7817 * sysdeps/i386/init-arch.h: Removed.
7818 * sysdeps/i386/i586/init-arch.h: Likewise.
7819 * sysdeps/i386/i686/init-arch.h: Likewise.
7820 * sysdeps/i386/i686/hp-timing.h: Likewise.
7821 * sysdeps/x86_64/hp-timing.h: Likewise.
7822 * sysdeps/i386/isa.h: New file.
7823 * sysdeps/i386/i586/isa.h: Likewise.
7824 * sysdeps/i386/i686/isa.h: Likewise.
7825 * sysdeps/x86_64/isa.h: Likewise.
7826 * sysdeps/x86/hp-timing.h: New file.
7827 * sysdeps/x86/init-arch.h: Include <isa.h>.
7828
7829 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7830
7831 * math/libm-test-pow.inc (pow_test_data): Do not allow
7832 divide-by-zero exception for pow(+/- 0, -Inf).
7833
7834 2018-10-17 Zack Weinberg <zackw@panix.com>
7835
7836 * manual/job.texi (Job Control is Optional): Remove node, as
7837 job control has not been optional in quite some time.
7838 (Job Control): Mention briefly that systems older than
7839 POSIX.1-2001 might not support job control.
7840 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
7841 defined on systems conforming to POSIX.1-2001.
7842
7843 2018-10-17 Arjun Shankar <arjun@redhat.com>
7844
7845 [BZ #22062]
7846 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
7847 indentation.
7848 * (__gconv_read_conf): Mark function static.
7849 * (once): New static variable.
7850 * (__gconv_load_conf): New function.
7851 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
7852 * iconv/gconv_db.c (once): Remove static variable.
7853 * (__gconv_compare_alias): Use __gconv_load_conf instead of
7854 __gconv_read_conf.
7855 * (__gconv_find_transform): Likewise.
7856 * iconv/tst-iconv-mt.c: New test.
7857 * iconv/Makefile: Add tst-iconv_mt.
7858
7859 2018-10-17 Joseph Myers <joseph@codesourcery.com>
7860
7861 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7862 bits/shm-pad.h.
7863 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
7864 (shmatt_t): Define as __syscall_ulong_t.
7865 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
7866 and [__SHM_PAD_AFTER_TIME].
7867 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
7868 Define shm_segsz and associated padding based on
7869 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
7870 Use __syscall_ulong_t instead of unsigned long int.
7871 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
7872 unsigned long int.
7873 [__USE_MISC] (struct shm_info): Likewise.
7874 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
7875 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
7876 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
7877 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
7878 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
7879 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7880 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
7881 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
7882 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
7883 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
7884 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
7885
7886 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7887 bits/shmlba.h.
7888 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
7889 (SHMLBA): Remove macro.
7890 (__getpagesize): Remove function declaration.
7891 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
7892 <bits/shmlba.h>.
7893 (SHMLBA): Remove macro.
7894 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
7895 <bits/shmlba.h>.
7896 (SHMLBA): Remove macro.
7897 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
7898 <bits/shmlba.h>.
7899 (SHMLBA): Remove macro.
7900 (__getpagesize): Remove function declaration.
7901 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
7902 <bits/shmlba.h>.
7903 (SHMLBA): Remove macro.
7904 (__getshmlba): Remove function declaration.
7905 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
7906 (SHMLBA): Remove macro.
7907 (__getpagesize): Remove function declaration.
7908 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
7909 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
7910 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
7911 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
7912 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
7913 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
7914 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
7915 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
7916 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
7917 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
7918
7919 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
7920
7921 [BZ #23275]
7922 * nptl/tst-mutex10.c: New File.
7923 * nptl/Makefile (tests): Add tst-mutex10.
7924 (tst-mutex10-ENV): New variable.
7925 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
7926 Ensure that elision path is used if elision is available.
7927 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
7928 Likewise.
7929 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
7930 Likewise.
7931 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
7932 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
7933 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
7934 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
7935 Likewise.
7936 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
7937 (__pthread_mutex_cond_lock_adjust): Likewise.
7938 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
7939 Likewise.
7940 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
7941 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
7942 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
7943 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
7944 Add comments.
7945 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
7946 Use atomic_load_relaxed and atomic_store_relaxed.
7947 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
7948 Use atomic_store_relaxed.
7949
7950 2018-10-17 Andreas Schwab <schwab@suse.de>
7951
7952 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
7953 * crypt/badsalttest.c (TIMEOUT): Likewise.
7954 * crypt/sha256c-test.c (TIMEOUT): Likewise.
7955 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
7956 * io/test-lfs.c (TIMEOUT): Likewise.
7957 * libio/tst-atime.c (TIMEOUT): Likewise.
7958 * localedata/tst-leaks.c (TIMEOUT): Likewise.
7959 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
7960 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
7961 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
7962 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
7963 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
7964 * nptl/tst-cond11.c (TIMEOUT): Likewise.
7965 * nptl/tst-cond14.c (TIMEOUT): Likewise.
7966 * nptl/tst-cond15.c (TIMEOUT): Likewise.
7967 * nptl/tst-cond24.c (TIMEOUT): Likewise.
7968 * nptl/tst-cond25.c (TIMEOUT): Likewise.
7969 * nptl/tst-kill2.c (TIMEOUT): Likewise.
7970 * nptl/tst-kill3.c (TIMEOUT): Likewise.
7971 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
7972 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
7973 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
7974 * nptl/tst-once2.c (TIMEOUT): Likewise.
7975 * nptl/tst-once3.c (TIMEOUT): Likewise.
7976 * nptl/tst-once4.c (TIMEOUT): Likewise.
7977 * nptl/tst-robust8.c (TIMEOUT): Likewise.
7978 * nptl/tst-robust9.c (TIMEOUT): Likewise.
7979 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
7980 * nptl/tst-sem14.c (TIMEOUT): Likewise.
7981 * nptl/tst-sem6.c (TIMEOUT): Likewise.
7982 * nptl/tst-signal3.c (TIMEOUT): Likewise.
7983 * nptl/tst-spin4.c (TIMEOUT): Likewise.
7984 * nptl/tst-tls3.c (TIMEOUT): Likewise.
7985 * nptl/tst-tls4.c (TIMEOUT): Likewise.
7986 * posix/tst-chmod.c (TIMEOUT): Likewise.
7987 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
7988 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
7989 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
7990 * posix/tst-regex2.c (TIMEOUT): Likewise.
7991 * posix/tst-waitid.c (TIMEOUT): Likewise.
7992 * rt/tst-aio.c (TIMEOUT): Likewise.
7993 * rt/tst-aio10.c (TIMEOUT): Likewise.
7994 * rt/tst-aio4.c (TIMEOUT): Likewise.
7995 * rt/tst-aio5.c (TIMEOUT): Likewise.
7996 * rt/tst-aio6.c (TIMEOUT): Likewise.
7997 * rt/tst-aio64.c (TIMEOUT): Likewise.
7998 * rt/tst-aio7.c (TIMEOUT): Likewise.
7999 * rt/tst-aio9.c (TIMEOUT): Likewise.
8000 * rt/tst-clock.c (TIMEOUT): Likewise.
8001 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8002 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8003 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8004 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8005 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8006 * rt/tst-timer4.c (TIMEOUT): Likewise.
8007 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8008 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8009 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8010 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8011 * time/tst-ftime.c (TIMEOUT): Likewise.
8012 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8013
8014 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8015
8016 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8017 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8018 for thunderX2.
8019
8020 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8021
8022 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8023 bits/sem-pad.h.
8024 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8025 instead of <bits/wordsize.h>.
8026 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8027 and [__SEM_PAD_AFTER_TIME].
8028 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8029 __syscall_ulong_t instead of unsigned long int.
8030 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8031 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8032 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8033 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8034 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8035 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8036 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8037 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8038 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8039 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8040 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8041
8042 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8043
8044 regex: simplify by using intprops.h
8045 [BZ#23744]
8046 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8047 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8048 intprops.h defines them.
8049
8050 regex: __builtin_expect → __glibc_unlikely
8051 [BZ#23744]
8052 This refactoring was prompted by a problem when the regex code is
8053 used as part of Gnulib and when the builder’s compiler does not grok
8054 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8055 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8056 Although this refactoring does not fix the problem directly,
8057 we might as well have Gawk use the now-preferred glibc style for when
8058 __builtin_expect is unavailable.
8059 * posix/regex_internal.h (BE): Remove.
8060 All uses replaced by __glibc_unlikely or __glibc_likely.
8061
8062 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8063
8064 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8065 bits/msq-pad.h.
8066 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8067 instead of <bits/wordsize.h>.
8068 (msgqnum_t): Define as __syscall_ulong_t.
8069 (msglen_t): Likewise.
8070 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8071 and [__MSQ_PAD_AFTER_TIME].
8072 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8073 __syscall_ulong_t instead of unsigned long int.
8074 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8075 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8076 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8077 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8078 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8079 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8080 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8081 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8082 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8083 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8084 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8085
8086 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8087
8088 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8089 (struct shmid_ds): Condition padding after time fields on
8090 [__WORDSIZE == 32].
8091 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8092 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8093 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8094
8095 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8096 (struct semid_ds): Condition padding after time fields on
8097 [__WORDSIZE == 32].
8098 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8099 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8100 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8101 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8102
8103 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8104 (struct msqid_ds): Condition padding after time fields on
8105 [__WORDSIZE == 32].
8106 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8107 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8108 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8109 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8110
8111 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8112
8113 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8114
8115 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8116
8117 * libio/tst-readline.c (TIMEOUT): Define.
8118
8119 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8120
8121 mktime fix for Gnulib + coreutils
8122 [BZ#23745]
8123 This fix affects only Gnulib. Problem discovered when
8124 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8125 * time/mktime.c:
8126 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8127 Do not define since it is not used. Defining an unused static
8128 function prompts a warning from GCC when Coreutils is configured
8129 with --enable-gcc-warnings.
8130
8131 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8132
8133 * benchtests/scripts/compare_bench.py (main): set float type on
8134 threshold argument.
8135
8136 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8137
8138 [BZ #23740]
8139 * localedata/locales/kl_GL (mon): Update, the relative case.
8140 (alt_mon): Add, fill with month names in the nominative case.
8141 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8142 (d_fmt): Set to "%b %d %Y".
8143
8144 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8145
8146 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8147 <bits/mman-linux.h>.
8148 (PROT_READ): Don't define here.
8149 (PROT_WRITE): Likewise.
8150 (PROT_EXEC): Likewise.
8151 (PROT_NONE): Likewise.
8152 (PROT_GROWSDOWN): Likewise.
8153 (PROT_GROWSUP): Likewise.
8154 (MAP_SHARED): Likewise.
8155 (MAP_PRIVATE): Likewise.
8156 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8157 [__USE_MISC] (MAP_FILE): Likewise.
8158 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8159 [__USE_MISC] (MAP_ANON): Likewise.
8160 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8161 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8162 (MCL_CURRENT): Likewise.
8163 (MCL_FUTURE): Likewise.
8164 (MCL_ONFAULT): Likewise.
8165 [__USE_MISC] (MADV_NORMAL): Likewise.
8166 [__USE_MISC] (MADV_RANDOM): Likewise.
8167 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8168 [__USE_MISC] (MADV_WILLNEED): Likewise.
8169 [__USE_MISC] (MADV_DONTNEED): Likewise.
8170 [__USE_MISC] (MADV_FREE): Likewise.
8171 [__USE_MISC] (MADV_REMOVE): Likewise.
8172 [__USE_MISC] (MADV_DONTFORK): Likewise.
8173 [__USE_MISC] (MADV_DOFORK): Likewise.
8174 [__USE_MISC] (MADV_HWPOISON): Likewise.
8175 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8176 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8177 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8178 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8179 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8180 (__MAP_ANONYMOUS): New macro.
8181 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8182 <bits/mman-linux.h> inclusion.
8183 (MAP_FIXED): Likewise.
8184 (MS_SYNC): Likewise.
8185 (MS_ASYNC): Likewise.
8186 (MS_INVALIDATE): Likewise.
8187 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8188 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8189 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8190 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8191 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8192 [__USE_MISC] (MADV_DODUMP): Likewise.
8193 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8194 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8195
8196 [BZ #23735]
8197 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8198 Define.
8199 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8200 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8201 Add test-nldbl-redirect.
8202 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8203 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8204 $(objpfx)libnldbl_nonshared.a.
8205
8206 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8207
8208 * support/support.h (support_objdir_elf_ldso): New variable.
8209 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8210 * support/Makefile (CFLAGS-support_paths.c): Add definition
8211 for OBJDIR_ELF_LDSO_PATH.
8212 * support/test-container.c (main): Search for the ld.so
8213 which is also used by the testsuite.
8214
8215 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8216
8217 [BZ #20209]
8218 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8219 should be "sap" rather than "sab".
8220 (day): Fix spelling of Sunday, should be "sapaat" rather than
8221 "sabaat".
8222
8223 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8224
8225 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8226
8227 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8228
8229 [BZ #19444]
8230 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8231 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8232 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8233
8234 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8235
8236 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8237
8238 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8239
8240 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8241 Add -mrtm.
8242 (CFLAGS-elision-unlock.c): Likewise.
8243 (CFLAGS-elision-timed.c): Likewise.
8244 (CFLAGS-elision-trylock.c): Likewise.
8245 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8246
8247 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8248
8249 [BZ #21037]
8250 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8251 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8252 new fd_to_filename interface.
8253 * libio/freopen64.c (freopen64): Likewise.
8254 * libio/tst-memstream.h: New file.
8255 * libio/tst-memstream4.c: Likewise.
8256 * libio/tst-wmemstream4.c: Likewise.
8257 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8258 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8259 and remove internal dynamic allocation.
8260
8261 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8262
8263 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8264 (MREMAP_MAYMOVE): Do not define here.
8265 [__USE_GNU] (MREMAP_FIXED): Likewise.
8266 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8267 (MREMAP_MAYMOVE): Define here instead.
8268 [__USE_GNU] (MREMAP_FIXED): Likewise.
8269 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8270 (MREMAP_MAYMOVE): Remove.
8271 [__USE_GNU] (MREMAP_FIXED): Likewise.
8272
8273 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8274
8275 * math/fromfp.h: Do not include <math_private.h>.
8276 * math/s_cacosh_template.c: Likewise.
8277 * math/s_casin_template.c: Likewise.
8278 * math/s_casinh_template.c: Likewise.
8279 * math/s_ccos_template.c: Likewise.
8280 * math/s_cproj_template.c: Likewise.
8281 * math/s_fdim_template.c: Likewise.
8282 * math/s_fmaxmag_template.c: Likewise.
8283 * math/s_fminmag_template.c: Likewise.
8284 * math/s_iseqsig_template.c: Likewise.
8285 * math/s_ldexp_template.c: Likewise.
8286 * math/s_nextdown_template.c: Likewise.
8287 * math/w_log1p_template.c: Likewise.
8288 * math/w_scalbln_template.c: Likewise.
8289 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8290 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8291 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8292 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8293 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8294 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8295 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8296 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8297 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8298 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8299 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8300 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8301 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8302 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8303 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8304 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8305 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8306 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8307 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8308 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8309 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8310 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8311 * sysdeps/ieee754/k_standardf.c: Likewise.
8312 * sysdeps/ieee754/k_standardl.c: Likewise.
8313 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8314 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8315 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8316 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8317 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8318 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8319 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8320 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8321 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8322 * sysdeps/ieee754/s_signgam.c: Likewise.
8323 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8324 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8325 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8326 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8327 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8328 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8329 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8330 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8331 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8332 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8333 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8334 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8335 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8336 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8337 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8338 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8339 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8340 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8341 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8342 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8343 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8344 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8345 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8346 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8347 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8348 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8349 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8350 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8351 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8352 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8353 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8354 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8355 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8356 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8357 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8358 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8359 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8360 <math_private.h>.
8361 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8362
8363 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8364
8365 [BZ #23716]
8366 * sysdeps/i386/dl-cet.c: Removed.
8367 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8368 prototype.
8369 (_dl_runtime_profile_shstk): Likewise.
8370 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8371 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8372
8373 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8374
8375 [BZ #23579]
8376 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8377 do_test_with_invalid_iov): New tests.
8378 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8379 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8380 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8381 errno is ENOSYS.
8382 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8383 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8384 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8385
8386 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8387
8388 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8389 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8390 (MATH_REDIRECT_BINARY_ARGS): New macro.
8391 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8392 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8393 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8394 header inclusion.
8395 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8396 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8397 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8398 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8399 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8400 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8401 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8403 Likewise.
8404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8405 Likewise.
8406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8407 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8408 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8409 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8410 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8411 Likewise.
8412 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8413 Likewise.
8414 * sysdeps/generic/math_private_calls.h
8415 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8416 Do not declare and define as an inline function.
8417 * math/divtc3.c (__divtc3): Use copysign functions instead of
8418 __copysign variants.
8419 * math/multc3.c (__multc3): Likewise.
8420 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8421 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8422 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8423 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8424 Likewise.
8425 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8426 (__ieee754_yn): Likewise.
8427 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8428 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8429 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8430 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8431 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8432 (__sin): Likewise.
8433 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8434 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8435 Likewise.
8436 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8437 Likewise.
8438 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8439 Likewise.
8440 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8441 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8442 Likewise.
8443 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8444 (__ieee754_ynf): Likewise.
8445 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8446 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8447 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8448 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8449 Likewise.
8450 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8451 (__ieee754_ynl): Likewise.
8452 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8453 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8454 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8455 Likewise.
8456 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8457 (__ieee754_ynl): Likewise.
8458 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8459 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8460 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8461 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8462 Likewise.
8463 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8464 (__ieee754_ynl)
8465 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8466 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8467 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8468 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8469 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8470
8471 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8472 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8473 using MATH_REDIRECT.
8474 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8475 header inclusion.
8476 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8477 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8478 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8479 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8480 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8481 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8482 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8483 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8487 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8488 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8489 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8490 (round): Redirect to __round.
8491 (__roundl): Call round instead of __round.
8492 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8493 Remove macro.
8494 [_ARCH_PWR5X] (__roundf): Likewise.
8495 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8496 functions instead of __round variants.
8497 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8498 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8499 Likewise.
8500 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8501 Likewise.
8502 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8503 Likewise.
8504 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8505 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8506 __lroundl.
8507 (__ieee754_expl): Call roundl instead of __roundl.
8508
8509 2018-09-27 Andreas Schwab <schwab@suse.de>
8510
8511 [BZ #23717]
8512 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8513 (do_test): Make st1 static.
8514
8515 2018-09-26 Andreas Schwab <schwab@suse.de>
8516
8517 [BZ #23707]
8518 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8519 * elf/Makefile (tests): Add tst-unwind-ctor.
8520 (modules-names): Add tst-unwind-ctor-lib.
8521 ($(objpfx)tst-unwind-ctor): Depend on
8522 $(objpfx)tst-unwind-ctor-lib.so.
8523
8524 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8525
8526 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8527 file. Most contents moved from ....
8528 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8529 and include <bits/mman-map-flags-generic.h>.
8530 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8531 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8532 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8533 <bits/mman-map-flags-generic.h>.
8534 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8535 macros defined in <bits/mman-map-flags-generic.h>.
8536 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8537 <bits/mman-map-flags-generic.h>.
8538 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8539 defined in <bits/mman-map-flags-generic.h>.
8540
8541 2018-09-26 Andreas Schwab <schwab@suse.de>
8542
8543 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8544 output.
8545
8546 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8547 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8548 Fangrui Song <maskray@google.com>
8549
8550 [BZ #20480]
8551 * config.make.in (have-textrel_ifunc): New define.
8552 * configure.ac: Add check if linker supports textrel relocation with
8553 ifunc.
8554 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8555 tst-ifunc-textrel.
8556 (CFLAGS-tst-ifunc-textrel.c): New rule.
8557 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8558 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8559 * elf/tst-ifunc-textrel.c: New file.
8560
8561 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8562
8563 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8564 <bits/procfs-prregset.h>.
8565 (prgregset_t): Define using __prgregset_t.
8566 (prfpregset_t): Define using __prfpregset_t.
8567 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8568 (sysdep_headers): Add bits/procfs-prregset.h.
8569 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8570 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8571 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8572 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8573
8574 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8575 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8576 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8577 pr_uid and pr_gid.
8578 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8579 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8580 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8581 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8582 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8583 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8584 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8585 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8586 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8587 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8588 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8589 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8590 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8591 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8592 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8593 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8594 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8595 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8596 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8597 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8598 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8599 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8600 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8601 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8602
8603 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8604 AArch64 version. Include <bits/procfs.h>.
8605 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8606 (sysdep_headers): Add bits/procfs.h.
8607 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8608 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8609 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8610 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8611 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8612 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8613 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8614 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8615 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8616 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8617 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8618 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8619 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8620 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8621 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8622 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8623 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8624
8625 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8626
8627 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8628 Use libsupport.
8629
8630 2018-09-25 Arjun Shankar <arjun@redhat.com>
8631
8632 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8633 (__gconv_max_path_elem_len): Likewise.
8634 (__gconv_nmodules): Likewise.
8635 (__gconv_get_path): Likewise.
8636 (path_elem): Move to ...
8637 * iconv/gconv_conf.c: ... here.
8638 (__gconv_get_path): Mark function static.
8639 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8640 * iconv/gconv_open.c: ... here.
8641
8642 2018-09-24 Andreas Schwab <schwab@suse.de>
8643
8644 * scripts/haveversions.awk: New file.
8645 * Makerules ($(common-objpfx)Versions.def)
8646 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8647 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8648 Move rules ...
8649 * Makeconfig ($(common-objpfx)Versions.def)
8650 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8651 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8652 ... here.
8653 ($(common-objpfx)Versions.mk): New rule. Include it.
8654 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8655 Emit error if build-obsolete-nsl = yes.
8656 * manual/install.texi (Configuring and compiling): Describe
8657 --enable-obsolete-nsl as unavaiable after version 2.28.
8658 * INSTALL: Regenerate.
8659
8660 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8661
8662 * NEWS: Add note about new TLE support on powerpc64le.
8663 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8664 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8665 __ununsed1.
8666 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8667 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8668 * sysdeps/powerpc/powerpc32/sysdep.h,
8669 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8670 ABORT_TRANSACTION): Remove macros.
8671 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8672 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8673 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8675 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8676 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8677 usage.
8678 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8679
8680 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8681
8682 [BZ #10425]
8683 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8684 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8685 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8686 which is the same as in it_IT.
8687 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8688 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8689
8690 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8691
8692 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8693 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8694 using MATH_REDIRECT.
8695 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8696 header inclusion.
8697 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8698 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8699 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8700 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8701 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8702 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8703 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8707 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8708 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8709 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8710 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8711 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8712 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8713 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8714 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8715 (ceil): Redirect to __ceil.
8716 (floor): Redirect to __floor.
8717 (trunc): Redirect to __trunc.
8718 (__truncl): Call trunc instead of __trunc.
8719 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8720 Remove macro.
8721 [_ARCH_PWR5X] (__truncf): Likewise.
8722 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8723 trunc functions instead of __trunc variants.
8724 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8725 Likewise.
8726 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8727 Likewise.
8728 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8729 Likewise.
8730 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8731 Likewise.
8732
8733 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8734 [__i586__ || __pentium__].
8735 [__i486__]: Handle explicitly.
8736 (HAS_CPUID): Define to 1 if above macros are undefined.
8737 (HAS_I586): Likewise.
8738 (HAS_I686): Likewise.
8739
8740 2018-09-20 Florian Weimer <fweimer@redhat.com>
8741
8742 * misc/tst-gethostid.c: New file.
8743 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
8744 (tst-gethostid): Link with -ldl.
8745
8746 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
8747
8748 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
8749 value from gethostbyname_r.
8750
8751 2018-09-19 Carlos O'Donell <carlos@redhat.com>
8752
8753 * stdlib/tst-setcontext9.c (f1): Rename to...
8754 (f1a): ... this.
8755 (f1b): New function implementing lower half of f1 in alternate stack.
8756
8757 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
8758
8759 Fix mktime localtime offset confusion
8760 [BZ #23603]
8761 * include/time.h (__mktime_internal): The localtime offset is now
8762 of type long int instead of time_t. This is the longstanding type
8763 in glibc, and it is more than enough to represent difference
8764 between localtime and gmtime even if it is 32 bits and time_t is
8765 64. Changing it now will let us avoid an unnecessary change when
8766 time_t is widened to 64 bits on 32-bit platforms.
8767 * time/mktime-internal.h (mktime_offset_t): Now long int.
8768
8769 Merge mktime, timegm from upstream Gnulib
8770 [BZ #23603][BZ #16346]
8771 This fixes some obscure problems with integer overflow.
8772 Although it looks scary, it is almost all a byte-for-byte copy
8773 from Gnulib, and the Gnulib code has been tested reasonably well.
8774 * include/intprops.h: New file, copied from Gnulib.
8775 * include/verify.h, time/mktime-internal.h:
8776 New tiny files, simplified from Gnulib.
8777 * time/mktime.c: Copy from Gnulib. This has the following changes:
8778 Do not include config.h if DEBUG_MKTIME is nonzero.
8779 Include stdbool.h, intprops.h, verify.h.
8780 Include string.h only if needed.
8781 Include stdlib.h on MS-Windows.
8782 Include mktime-internal.h.
8783 (DEBUG_MKTIME): Default to 0, and simplify later uses.
8784 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8785 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8786 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8787 simplify later conditionals; default the others to zero. Use
8788 these conditionals to express only the code needed on the current
8789 platform. In uses of these conditionals, explicitly spell out how
8790 _LIBC affects things, so it’s easier to review from a glibc
8791 viewpoint.
8792 (WRAPV): Remove; no longer needed now that we have
8793 systematic overflow checking.
8794 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8795 compartmentalize tzset issues. Move system-dependent tzsettish
8796 code here from mktime.
8797 (verify): Remove; now done by verify.h. All uses changed.
8798 (long_int): Use a more-conservative definition, to avoid
8799 integer overflow.
8800 (SHR): Remove, replacing with ...
8801 (shr): New function, which means we needn’t worry about side
8802 effects in args, and conversion analysis is simpler.
8803 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
8804 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
8805 (time_t_avg, time_t_add_ok): Remove.
8806 (mktime_min, mktime_max): New constants.
8807 (leapyear, isdst_differ): Use bool for booleans.
8808 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
8809 Use long_int, not time_t, for mktime differences.
8810 (long_int_avg): New function, replacing time_t_avg.
8811 INT_ADD_WRAPV replaces time_t_add_ok.
8812 (guess_time_tm): 6th arg is now long_int, not time_t const *.
8813 All uses changed.
8814 (convert_time): New function.
8815 (ranged_convert): Use it.
8816 (__mktime_internal): Last arg now points to mktime_offset_t, not
8817 time_t. All uses changed. This is a no-op on glibc, where
8818 mktime_offset_t is always time_t. Use int, not time_t, for UTC
8819 offset guess. Directly check for integer overflow instead of
8820 using a heuristic that works only 99.9...% of the time.
8821 Access *OFFSET only once, to avoid an unlikely race if the
8822 compiler delays a load and if this cascades into a signed integer
8823 overflow.
8824 (mktime): Move tzsettish code to my_tzset, and move
8825 localtime_offset to within mktime so that it doesn’t
8826 need a separate ifdef.
8827 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
8828 instead of localtime.
8829 * time/timegm.c: Copy from Gnulib. This has the following changes:
8830 Include mktime-internal.h.
8831 [!_LIBC]: Include config.h and time.h. Do not include
8832 timegm.h or time_r.h. Make __mktime_internal a macro,
8833 and include mktime-internal.h to get its declaration.
8834 (timegm): Temporary is now mktime_offset_t, not time_t.
8835 This affects only Gnulib.
8836
8837 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
8838
8839 [BZ #23637]
8840 * string/test-strstr.c (pr23637): New function.
8841 (test_main): Add tests with longer needles.
8842 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
8843 * string/strstr.c (AVAILABLE): Likewise.
8844
8845 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8846
8847 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
8848
8849 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
8850
8851 * NEWS: Mention pow improvements.
8852 * math/Makefile (type-double-routines): Add e_pow_log_data.
8853 * sysdeps/generic/math_private.h (__exp1): Remove.
8854 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
8855 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
8856 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
8857 contraction.
8858 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
8859 (exp_inline): Remove.
8860 (__ieee754_exp): Only single double input is handled.
8861 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
8862 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
8863 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
8864 (__pow_log_data): Define.
8865 * sysdeps/ieee754/dbl-64/upow.h: Remove.
8866 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
8867 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
8868 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
8869 contraction.
8870 (CFLAGS-e_pow-fma4.c): Likewise.
8871
8872 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
8873
8874 Simplify tzfile fstat failure code
8875 [BZ #21716]
8876 * time/tzfile.c (__tzfile_read): Simplify slightly.
8877
8878 Fix tzfile low-memory assertion failure
8879 [BZ #21716]
8880 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
8881 when registering time zone abbreviations.
8882
8883 2018-09-18 Joseph Myers <joseph@codesourcery.com>
8884
8885 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
8886 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
8887 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
8888 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
8889 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
8890 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
8891 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
8892 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8893 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8894
8895 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
8896 __ceil.
8897 (__ceill): Call ceil instead of __ceil.
8898 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
8899 __floor.
8900 (__floorl): Call floor instead of __floor.
8901
8902 2018-09-17 Joseph Myers <joseph@codesourcery.com>
8903
8904 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8905 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
8906 using MATH_REDIRECT.
8907 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
8908 header inclusion.
8909 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
8910 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
8911 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
8912 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
8913 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
8914 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8915 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8916 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
8917 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
8918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
8919 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
8920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
8921 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8922 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8923 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
8924 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
8925 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8926 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8927 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
8928 Remove macro.
8929 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
8930 functions instead of __ceil variants.
8931 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8932 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8933 Likewise.
8934 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8935 Likewise.
8936 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
8937 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8938 Likewise.
8939 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8940 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8941
8942 [BZ #21286]
8943 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
8944 constant.
8945 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
8946 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
8947 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
8948 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
8949 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
8950 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
8951 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
8952 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
8953 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
8954 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
8955 (ILL_BADIADDR): Remove constant.
8956 (TRAP_BRANCH): Likewise.
8957 (TRAP_HWBKPT): Likewise.
8958
8959 2018-09-14 Joseph Myers <joseph@codesourcery.com>
8960
8961 [BZ #23656]
8962 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
8963 Remove [_MIPS_SIM = _ABIN32] conditional case.
8964 (struct elf_prpsinfo): Likewise.
8965
8966 [BZ #23649]
8967 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
8968 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
8969 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
8970 Likewise.
8971 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
8972 elf_prpsinfo): Likewise.
8973 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
8974 elf_prpsinfo): Likewise.
8975 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
8976 Likewise.
8977
8978 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8979 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
8980 using MATH_REDIRECT.
8981 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
8982 header inclusion.
8983 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
8984 * sysdeps/alpha/fpu/s_rint.c: Likewise.
8985 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
8986 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8987 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
8988 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
8989 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
8990 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
8991 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8992 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8993 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
8994 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
8995 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
8996 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
8997 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
8998 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
8999 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9000 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9001 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9003 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9004 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9005 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9006 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9007 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9008 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9009 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9010 __rint variants.
9011 * math/e_scalbf.c (invalid_fn): Likewise.
9012 * math/e_scalbl.c (invalid_fn): Likewise.
9013 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9014 Likewise.
9015 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9016 Likewise.
9017 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9018 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9019 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9020 Likewise.
9021 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9022 Likewise.
9023 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9024 Likewise.
9025 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9026 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9027
9028 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9029 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9030 New macro.
9031 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9032 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9033 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9034 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9035 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9036 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9037 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9038 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9039 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9040 && !NO_MATH_REDIRECT] (floor): Likewise.
9041 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9042 header inclusion.
9043 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9044 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9045 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9046 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9047 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9048 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9049 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9050 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9051 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9055 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9056 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9057 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9058 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9059 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9060 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9061 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9062 Remove macro.
9063 [_ARCH_PWR5X] (__floorf): Likewise.
9064 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9065 inline function.
9066 [__SSE4_1__] (__floorf): Likewise.
9067 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9068 instead of __floor variants.
9069 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9070 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9071 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9072 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9073 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9074 * math/w_tgamma_compat.c (__tgamma): Likewise.
9075 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9076 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9077 * math/w_tgammal_compat.c (__tgammal): Likewise.
9078 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9079 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9080 Likewise.
9081 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9082 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9083 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9084 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9085 Likewise.
9086 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9087 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9088 Likewise.
9089 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9090 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9091 Likewise.
9092 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9093 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9094 Likewise.
9095 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9096 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9097 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9098 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9099 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9100 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9101
9102 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9103
9104 * elf/Makefile (modules-names-tests): New variable.
9105
9106 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9107
9108 * NEWS: Mention log2 improvements.
9109 * math/Makefile (type-double-routines): Add e_log2_data.
9110 * sysdeps/i386/fpu/e_log2_data.c: New file.
9111 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9112 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9113 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9114 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9115 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9116 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9117
9118 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9119
9120 * NEWS: Mention log improvement.
9121 * math/Makefile (type-double-routines): Add e_log_data.
9122 * sysdeps/i386/fpu/e_log_data.c: New file.
9123 * sysdeps/ia64/fpu/e_log_data.c: New file.
9124 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9125 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9126 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9127 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9128 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9129 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9130
9131 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9132 Xuepeng Guo <xuepeng.guo@intel.com>
9133
9134 [BZ #23606]
9135 * sysdeps/i386/start.S: Include <sysdep.h>
9136 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9137 enabled. Add cfi_undefined (eip).
9138
9139 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9140
9141 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9142 (MOVQ): Likewise.
9143 (EXTRACT_WORDS64): Likewise.
9144 (INSERT_WORDS64): Likewise.
9145 (GET_FLOAT_WORD): Likewise.
9146 (SET_FLOAT_WORD): Likewise.
9147
9148 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9149 argument.
9150 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9151 build, but not for second build if --full-gcc. Use
9152 --enable-languages=all for second build if --full-gcc.
9153 (get_parser): Add --full-gcc option.
9154 (main): Update call to Context.
9155
9156 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9157
9158 [BZ #10797]
9159 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9160 Single Quotation Mark).
9161 (thousands_sep): Likewise.
9162 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9163 * localedata/locales/it_IT (thousands_sep): Use ".".
9164 (grouping): Use "3;3".
9165
9166 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9167
9168 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9169 x86_64 and i686 configs using --enable-obsolete-rpc
9170 --enable-obsolete-nsl.
9171
9172 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9173
9174 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9175
9176 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9177
9178 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9179 Increment size of new_argv by one.
9180
9181 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9182
9183 [BZ #17426]
9184 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9185 * localedata/locales/ar_IN (d_fmt): Likewise.
9186 * localedata/locales/bhb_IN (d_fmt): Likewise.
9187 * localedata/locales/bho_IN (d_fmt): Likewise.
9188 * localedata/locales/bn_BD (d_fmt): Likewise.
9189 * localedata/locales/bn_IN (d_fmt): Likewise.
9190 * localedata/locales/doi_IN (d_fmt): Likewise.
9191 * localedata/locales/gu_IN (d_fmt): Likewise.
9192 * localedata/locales/hi_IN (d_fmt): Likewise.
9193 * localedata/locales/hne_IN (d_fmt): Likewise.
9194 * localedata/locales/kn_IN (d_fmt): Likewise.
9195 * localedata/locales/mag_IN (d_fmt): Likewise.
9196 * localedata/locales/mai_IN (d_fmt): Likewise.
9197 * localedata/locales/mjw_IN (d_fmt): Likewise.
9198 * localedata/locales/ml_IN (d_fmt): Likewise.
9199 * localedata/locales/mni_IN (d_fmt): Likewise.
9200 * localedata/locales/mr_IN (d_fmt): Likewise.
9201 * localedata/locales/pa_IN (d_fmt): Likewise.
9202 * localedata/locales/raj_IN (d_fmt): Likewise.
9203 * localedata/locales/sat_IN (d_fmt): Likewise.
9204 * localedata/locales/sd_IN (d_fmt): Likewise.
9205 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9206 * localedata/locales/ta_IN (d_fmt): Likewise.
9207 * localedata/locales/ta_LK (d_fmt): Likewise.
9208 * localedata/locales/tcy_IN (d_fmt): Likewise.
9209 * localedata/locales/ur_IN (d_fmt): Likewise.
9210
9211 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9212 * localedata/locales/ks_IN (d_fmt): Likewise.
9213 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9214
9215 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9216 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9217 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9218 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9219
9220 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9221
9222 * NEWS: Mention exp and exp2 improvements.
9223 * math/Makefile (libm-support): Remove t_exp.
9224 (type-double-routines): Add math_err and e_exp_data.
9225 * sysdeps/aarch64/libm-test-ulps: Update.
9226 * sysdeps/arm/libm-test-ulps: Update.
9227 * sysdeps/i386/fpu/e_exp_data.c: New file.
9228 * sysdeps/i386/fpu/math_err.c: New file.
9229 * sysdeps/i386/fpu/t_exp.c: Remove.
9230 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9231 * sysdeps/ia64/fpu/math_err.c: New file.
9232 * sysdeps/ia64/fpu/t_exp.c: Remove.
9233 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9234 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9235 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9236 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9237 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9238 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9239 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9240 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9241 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9242 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9243 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9244 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9245 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9246 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9247 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9248 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9249
9250 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9251
9252 * sysdeps/alpha/fpu/math_private.h: Remove.
9253
9254 * sysdeps/generic/math_private.h
9255 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9256 Move this inline function ....
9257 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9258 * include/math.h [!_ISOMAC]: To here....
9259
9260 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9261
9262 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9263 code ....
9264 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9265 * include/fenv.h [!_ISOMAC]: ... to here.
9266 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9267 (feraiseexcept): Likewise.
9268 * math/fromfp.h: Do not include <fenv_private.h>.
9269 * math/s_cexp_template.c: Likewise.
9270 * math/s_csin_template.c: Likewise.
9271 * math/s_csinh_template.c: Likewise.
9272 * math/s_ctan_template.c: Likewise.
9273 * math/s_ctanh_template.c: Likewise.
9274 * math/s_iseqsig_template.c: Likewise.
9275 * math/w_acos_compat.c: Likewise.
9276 * math/w_acosf_compat.c: Likewise.
9277 * math/w_acosl_compat.c: Likewise.
9278 * math/w_asin_compat.c: Likewise.
9279 * math/w_asinf_compat.c: Likewise.
9280 * math/w_asinl_compat.c: Likewise.
9281 * math/w_j0_compat.c: Likewise.
9282 * math/w_j0f_compat.c: Likewise.
9283 * math/w_j0l_compat.c: Likewise.
9284 * math/w_j1_compat.c: Likewise.
9285 * math/w_j1f_compat.c: Likewise.
9286 * math/w_j1l_compat.c: Likewise.
9287 * math/w_jn_compat.c: Likewise.
9288 * math/w_jnf_compat.c: Likewise.
9289 * math/w_log10_compat.c: Likewise.
9290 * math/w_log10f_compat.c: Likewise.
9291 * math/w_log10l_compat.c: Likewise.
9292 * math/w_log2_compat.c: Likewise.
9293 * math/w_log2f_compat.c: Likewise.
9294 * math/w_log2l_compat.c: Likewise.
9295 * math/w_log_compat.c: Likewise.
9296 * math/w_logf_compat.c: Likewise.
9297 * math/w_logl_compat.c: Likewise.
9298 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9299 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9300 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9301 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9302 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9303 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9304 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9305 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9306 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9307 * sysdeps/ieee754/k_standardl.c: Likewise.
9308 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9309 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9310 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9311 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9312 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9313 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9314 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9315 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9316 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9317 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9318 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9319 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9320 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9321 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9322 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9323 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9324 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9325 * math/w_ilogb_template.c: Include <fenv.h> instead of
9326 <fenv_private.h>.
9327 * math/w_llogb_template.c: Likewise.
9328 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9329 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9330
9331 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9332
9333 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9334 * math/fromfp.h: Include <fenv_private.h>.
9335 * math/math-narrow.h: Likewise.
9336 * math/s_cexp_template.c: Likewise.
9337 * math/s_csin_template.c: Likewise.
9338 * math/s_csinh_template.c: Likewise.
9339 * math/s_ctan_template.c: Likewise.
9340 * math/s_ctanh_template.c: Likewise.
9341 * math/s_iseqsig_template.c: Likewise.
9342 * math/w_acos_compat.c: Likewise.
9343 * math/w_acosf_compat.c: Likewise.
9344 * math/w_acosl_compat.c: Likewise.
9345 * math/w_asin_compat.c: Likewise.
9346 * math/w_asinf_compat.c: Likewise.
9347 * math/w_asinl_compat.c: Likewise.
9348 * math/w_ilogb_template.c: Likewise.
9349 * math/w_j0_compat.c: Likewise.
9350 * math/w_j0f_compat.c: Likewise.
9351 * math/w_j0l_compat.c: Likewise.
9352 * math/w_j1_compat.c: Likewise.
9353 * math/w_j1f_compat.c: Likewise.
9354 * math/w_j1l_compat.c: Likewise.
9355 * math/w_jn_compat.c: Likewise.
9356 * math/w_jnf_compat.c: Likewise.
9357 * math/w_llogb_template.c: Likewise.
9358 * math/w_log10_compat.c: Likewise.
9359 * math/w_log10f_compat.c: Likewise.
9360 * math/w_log10l_compat.c: Likewise.
9361 * math/w_log2_compat.c: Likewise.
9362 * math/w_log2f_compat.c: Likewise.
9363 * math/w_log2l_compat.c: Likewise.
9364 * math/w_log_compat.c: Likewise.
9365 * math/w_logf_compat.c: Likewise.
9366 * math/w_logl_compat.c: Likewise.
9367 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9368 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9369 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9370 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9371 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9372 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9373 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9374 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9375 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9376 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9377 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9378 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9379 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9380 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9381 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9382 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9383 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9384 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9385 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9386 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9387 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9388 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9389 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9390 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9391 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9392 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9393 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9394 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9395 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9396 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9397 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9398 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9399 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9400 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9401 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9402 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9403 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9404 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9405 * sysdeps/ieee754/k_standardl.c: Likewise.
9406 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9407 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9408 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9409 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9410 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9411 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9412 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9413 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9414 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9415 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9416 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9417 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9418 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9419 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9420 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9421 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9422 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9423 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9424 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9425 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9426 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9427 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9428 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9429 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9430 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9431 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9432 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9433 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9434 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9435 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9436 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9437 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9438 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9439 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9440 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9441 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9442 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9443 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9444 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9445 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9446 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9447 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9448 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9449 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9450 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9451 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9452 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9453 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9454 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9455 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9456 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9457 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9458 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9459 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9460 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9461 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9462 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9463 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9464 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9465 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9466 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9467 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9468 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9469 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9470 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9471 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9472 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9473 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9474 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9475 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9476 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9477
9478 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9479
9480 [BZ #20271]
9481 * include/stdio.h (__libc_fatal): Mention newline in comment.
9482 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9483 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9484 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9485 * nss/nsswitch.c (__nss_next2): Likewise.
9486 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9487 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9488 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9489 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9490 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9491 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9492 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9493 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9494 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9495 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9496 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9497 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9498 (__netlink_assert_response): Likewise.
9499
9500 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9501
9502 * conform/glibcconform.py: New file.
9503 * conform/list-header-symbols.py: Likewise.
9504 * conform/list-header-symbols.pl: Remove.
9505 * conform/Makefile (tests-special): Only add linknamespace tests
9506 if [PYTHON].
9507 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9508
9509 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9510
9511 [BZ #23597]
9512 * support/Makefile (libsupport-routines): Add
9513 support_copy_file_range and xcopy_file_range.
9514 * support/support.h: Include <sys/types.h>.
9515 (support_copy_file_range): New prototype.
9516 * support/support_copy_file_range.c: New file. Copied and
9517 modified from io/copy_file_range-compat.c.
9518 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9519 instead of copy_file_range.
9520 * support/xcopy_file_range.c: New file.
9521 * support/xunistd.h (xcopy_file_range): New prototype.
9522
9523 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9524
9525 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9526 xpthread_create and xpthread_join.
9527
9528 2018-08-30 Florian Weimer <fweimer@redhat.com>
9529
9530 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9531
9532 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9533
9534 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9535 if malloc fails.
9536
9537 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9538
9539 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9540 and minus_oflow as non-finite.
9541
9542 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9543
9544 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9545 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9546 moved to fenv_private.h except for ...
9547 (TOINT_INTRINSICS): Kept in math_private.h.
9548 (roundtoint): Likewise.
9549 (converttoint): Likewise.
9550 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9551 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9552 * sysdeps/arm/math_private.h: Remove.
9553 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9554 ....
9555 * sysdeps/generic/math_private.h: ... this file. Include
9556 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9557 Include <fenv_private.h>. Remove functions and macros moved to
9558 fenv_private.h.
9559 * sysdeps/i386/fpu/math_private.h: Remove.
9560 * sysdeps/mips/math_private.h: Move to ....
9561 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9562 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9563 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9564 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9565 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9566 * sysdeps/powerpc/fpu/math_private.h: Do not include
9567 <fenv_private.h>.
9568 * sysdeps/riscv/rvf/math_private.h: Move to ....
9569 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9570 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9571 <fenv_private.h>.
9572 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9573 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9574 * sysdeps/sparc/fpu/math_private.h: Remove.
9575 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9576 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9577 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9578 <fenv_private.h>.
9579 * sysdeps/x86_64/fpu/math_private.h: Do not include
9580 <sysdeps/i386/fpu/fenv_private.h>.
9581
9582 2018-08-28 Florian Weimer <fweimer@redhat.com>
9583
9584 [BZ #23578]
9585 * posix/tst-regcomp-truncated.c: New file.
9586 * posix/Makefile (tests): Add it.
9587 (tst-regcomp-truncated.out): Depend on generated locales.
9588
9589 2018-08-28 Florian Weimer <fweimer@redhat.com>
9590
9591 * support/test-container.c (main): Treat unshare failure with
9592 EPERM as an unsupported test.
9593
9594 2018-08-28 Florian Weimer <fweimer@redhat.com>
9595
9596 [BZ #23520]
9597 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9598 * nscd/netgroupcache.c
9599 (addgetnetgrentX): Add tofreep parameter. Do not free
9600 heap-allocated buffer.
9601 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9602 (addgetnetgrentX_ignore): New function.
9603 (addgetnetgrent): Call it.
9604 (readdgetnetgrent): Likewise.
9605
9606 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9607
9608 * string/memmem.c: Use memcmp for first match.
9609
9610 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9611
9612 [BZ #17426]
9613 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9614
9615 2018-08-27 DJ Delorie <dj@redhat.com>
9616
9617 * support/Makefile (others): Don't list programs explicitly as a
9618 dependency of "others".
9619
9620 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9621
9622 * sysdeps/generic/math-tests-trap-force.h: New file.
9623 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9624 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9625 * sysdeps/powerpc/math-tests.h: Remove file.
9626 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9627
9628 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9629 Torvald Riegel <triegel@redhat.com>
9630
9631 [BZ #23538]
9632 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9633 Update r to include the set wake-request flag if waiters are
9634 remaining after spinning.
9635
9636 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9637
9638 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9639
9640 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9641
9642 [BZ #23578]
9643 regex: fix uninitialized memory access
9644 I introduced this bug into gnulib in commit
9645 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9646 eventually it was merged into glibc. The bug was found by
9647 project-repo <bugs@feusi.co> and reported here:
9648 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9649 Diagnosis and draft fix reported by Assaf Gordon here:
9650 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9651 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9652 * posix/regex_internal.c (build_wcs_upper_buffer):
9653 Fix bug when mbrtowc returns 0.
9654
9655 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9656
9657 * po/be.po: Update translation.
9658
9659 2018-08-24 DJ Delorie <dj@delorie.com>
9660
9661 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9662 $(libunwind).
9663
9664 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9665
9666 [BZ #23400]
9667 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9668 create temporary files in source tree.
9669
9670 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9671
9672 * sysdeps/generic/math-tests-trap.h: New file.
9673 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9674 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9675 * sysdeps/aarch64/math-tests.h: Remove file.
9676 * sysdeps/arm/math-tests.h: Likewise.
9677 * sysdeps/riscv/math-tests.h: Likewise.
9678 * sysdeps/aarch64/math-tests-trap.h: New file.
9679 * sysdeps/arm/math-tests-trap.h: Likewise.
9680 * sysdeps/riscv/math-tests-trap.h: Likewise.
9681
9682 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9683
9684 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9685 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9686 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9687 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9688 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9689 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9690 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9691 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9692 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9693 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9694 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9695 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9696 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9697 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9698 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9699 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9700 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9701 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9702
9703 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9704
9705 * sysdeps/generic/math-tests-exceptions.h: New file.
9706 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9707 (EXCEPTION_TESTS_float): Do not define here.
9708 (EXCEPTION_TESTS_double): Likewise.
9709 (EXCEPTION_TESTS_long_double): Likewise.
9710 (EXCEPTION_TESTS_float128): Likewise.
9711 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9712 Likewise.
9713 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9714 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9715 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9716 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9717 * sysdeps/mips/math-tests.h: Likewise.
9718 * sysdeps/nios2/math-tests.h: Likewise.
9719 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9720 (EXCEPTION_TESTS_float): Do not define here.
9721 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9722 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9723 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9724
9725 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9726
9727 * NEWS: Move optimized sinf entry to 2.29.
9728
9729 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9730
9731 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9732
9733 2018-08-22 DJ Delorie <dj@redhat.com>
9734
9735 * Makefile (testroot.pristine): New rules to initialize the
9736 test-in-container "testroot".
9737 * Makerules (all-testsuite): Add tests-container.
9738 * Rules (tests-expected): Add tests-container.
9739 (binaries-all-tests): Likewise.
9740 (tests-container): New, run these tests in the testroot container.
9741 * support/Makefile (others): Add *-container, support_paths.c,
9742 xmkdirp, and links-dso-program.
9743 * support/links-dso-program-c.c: New.
9744 * support/links-dso-program.cc: New.
9745 * support/test-container.c: New.
9746 * support/shell-container.c: New.
9747 * support/echo-container.c: New.
9748 * support/true-container.c: New.
9749 * support/xmkdirp.c: New.
9750 * support/xsymlink.c: New.
9751 * support/support_paths.c: New.
9752 * support/support.h: Add support paths prototypes.
9753 * support/xunistd.h: Add xmkdirp () and xsymlink ().
9754
9755 * nss/tst-nss-test3.c: Convert to test-in-container.
9756 * nss/tst-nss-test3.root/: New.
9757
9758 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
9759
9760 regex: port Gnulib code to z/OS POSIX environment
9761 Problem reported by Arnold Robbins in:
9762 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
9763 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
9764 Undef.
9765
9766 2018-08-22 Joseph Myers <joseph@codesourcery.com>
9767
9768 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
9769 (ROUNDING_TESTS_double): Remove.
9770 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
9771 (ROUNDING_TESTS_double): Remove.
9772 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
9773 (ROUNDING_TESTS_double): Remove.
9774 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
9775 (ROUNDING_TESTS_float): Remove.
9776 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
9777 (ROUNDING_TESTS_float): Remove.
9778 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
9779 (ROUNDING_TESTS_float): Remove.
9780 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
9781 !TEST_MATHVEC here.
9782 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
9783 (IF_ROUND_INIT_FE_UPWARD): Likewise.
9784
9785 * sysdeps/generic/math-tests-rounding.h: New file.
9786 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
9787 (ROUNDING_TESTS_float): Do not define here.
9788 (ROUNDING_TESTS_double): Likewise.
9789 (ROUNDING_TESTS_long_double): Likewise.
9790 (ROUNDING_TESTS_float128): Likewise.
9791 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
9792 (ROUNDING_TESTS_double): Undefine before defining.
9793 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
9794 (ROUNDING_TESTS_double): Undefine before defining.
9795 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
9796 (ROUNDING_TESTS_double): Undefine before defining.
9797 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
9798 (ROUNDING_TESTS_float): Undefine before defining.
9799 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
9800 (ROUNDING_TESTS_float): Undefine before defining.
9801 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
9802 (ROUNDING_TESTS_float): Undefine before defining.
9803 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
9804 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
9805 not define here.
9806 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
9807 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
9808 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
9809 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9810 (ROUNDING_TESTS_float): Do not define here.
9811 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
9812 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
9813 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
9814 (ROUNDING_TESTS_float): Likewise.
9815 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
9816 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
9817 * sysdeps/mips/math-tests.h [__mips_soft_float]
9818 (ROUNDING_TESTS_float): Likewise.
9819 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
9820 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
9821 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
9822 (ROUNDING_TESTS_double): Likewise.
9823 (ROUNDING_TESTS_long_double): Likewise.
9824
9825 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
9826
9827 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
9828 (PF_XDP): New macro.
9829 (AF_XDP): New macro.
9830 (SOL_XDP): New macro.
9831
9832 2018-08-21 Joseph Myers <joseph@codesourcery.com>
9833
9834 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
9835 (TCP_INQ): Likewise.
9836 (TCP_CM_INQ): Likewise.
9837 (TCP_REPAIR_ON): Likewise.
9838 (TCP_REPAIR_OFF): Likewise.
9839 (TCP_REPAIR_OFF_NO_WP): Likewise.
9840 (struct tcp_zerocopy_receive): New type.
9841
9842 2018-08-21 Florian Weimer <fweimer@redhat.com>
9843
9844 * support/support.h (support_descriptor_supports_holes): Declare.
9845 * support/Makefile (libsupport-routines): Add
9846 support_descriptor_supports_holes.
9847 * support/support_descriptor_supports_holes.c: New file.
9848 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
9849 and stop testing if holes are not supported.
9850 * io/test-lfs.c (do_prepare): Likewise.
9851 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
9852 Likewise.
9853 * timezone/tst-tzset.c (create_tz_file): Likewise.
9854 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
9855 variable.
9856 (do_prepare): Set it.
9857 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
9858
9859 2018-08-21 Florian Weimer <fweimer@redhat.com>
9860
9861 [BZ #17248]
9862 * Makeconfig (+cflags): Do not sort (and deduplicate).
9863
9864 2018-08-21 Florian Weimer <fweimer@redhat.com>
9865
9866 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
9867 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
9868
9869 2018-08-20 Florian Weimer <fweimer@redhat.com>
9870
9871 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
9872 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
9873
9874 2018-08-20 Joseph Myers <joseph@codesourcery.com>
9875
9876 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
9877 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
9878 and ssi_arch members.
9879
9880 * elf/elf.c (NT_VMCOREDD): New macro.
9881 (AT_MINSIGSTKSZ): Likewise.
9882
9883 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9884
9885 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
9886 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
9887 s_cosf-ppc64 and s_cosf-power8.
9888 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
9889 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9890 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9891 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9892 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
9893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
9894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
9895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
9896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
9897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
9898 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
9899 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
9900
9901 2018-08-17 Florian Weimer <fweimer@redhat.com>
9902
9903 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9904
9905 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
9906
9907 * malloc/malloc.c (_int_malloc): Additional binning code checks.
9908
9909 2018-08-16 Florian Weimer <fweimer@redhat.com>
9910
9911 * configure.ac: Add --with-nonshared-cflags option.
9912 * config.make.in (extra-nonshared-cflags): Set variable.
9913 * Makeconfig (CFLAGS-.oS): Use it.
9914 * manual/install.texi (Configuring and compiling): Document
9915 --with-nonshared-cflags.
9916 * configure: Regenerate.
9917 * INSTALL: Likewise.
9918
9919 2018-08-16 Florian Weimer <fweimer@redhat.com>
9920
9921 * Makeconfig (ASFLAGS): Always append required assembler flags.
9922
9923 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
9924
9925 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
9926 (malloc_consolidate): Likewise.
9927
9928 2018-08-16 Pochang Chen <johnchen902@gmail.com>
9929
9930 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
9931
9932 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
9933
9934 * benchtests/bench-strlen.c (do_test): Allocate buffers before
9935 every strlen call.
9936
9937 * benchtests/bench-strlen.c: Print performance numbers in json.
9938
9939 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9940
9941 * sysdeps/powerpc/powerpc64/multiarch/Makefile
9942 (sysdep_routines): Build strcmp-power9 and strncmp-power9
9943 only for little endian.
9944 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9945 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
9946 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
9947 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
9948 Add check for little endian.
9949 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
9950 (__strcmp_power9): Add check for little endian.
9951 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
9952 Add check for little endian.
9953 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
9954 (__strncmp_power9): Add check for little endian.
9955 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
9956 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
9957 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
9958 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
9959 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
9960
9961 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
9962
9963 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
9964 [!STRLEN](STRLEN): Set to __strlen.
9965 * sysdeps/aarch64/multiarch/strlen.c: New file.
9966 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
9967 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
9968 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
9969 (__libc_ifunc_impl_list): Add strlen.
9970 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
9971 strlen_generic and strlen_asimd.
9972
9973 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9974
9975 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
9976 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
9977 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
9978
9979 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
9980
9981 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
9982
9983 2018-08-14 Florian Weimer <fweimer@redhat.com>
9984
9985 [BZ #23519]
9986 * include/stdio.h (__vfxprintf): Declare.
9987 * stdio-common/fxprintf.c (__vfxprintf): New function.
9988 (__fxprintf): Call it.
9989 * misc/err.c (convert_and_print): Remove function.
9990 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
9991 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
9992 * misc/Makefile (tests): Add tst-warn-wide.
9993 * misc/tst-warn-wide.c: New file.
9994
9995 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
9996 Szabolcs Nagy <szabolcs.nagy@arm.com>
9997
9998 * NEWS: Mention sinf, cosf, sincosf.
9999 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10000 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10001 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10002 constants rather than including generic sincosf.h.
10003 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10004 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10005 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10006 (reduced_cos): Remove.
10007 (sinf_poly): New function.
10008 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10009
10010 2018-08-14 Florian Weimer <fweimer@redhat.com>
10011
10012 [BZ #23521]
10013 [BZ #23522]
10014 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10015 processing, bail out if no room, and close the stream before
10016 returning ERANGE.
10017 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10018 (tst-nss-files-alias-leak): Link with libdl.
10019 (tst-nss-files-alias-leak.out): Depend on nss_files.
10020
10021 * nss/tst-nss-files-alias-leak.c: New file.
10022
10023 2018-08-14 Florian Weimer <fweimer@redhat.com>
10024
10025 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10026 server_user, stat_user.
10027
10028 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10029
10030 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10031 version to 4.18.
10032 (io_pgetevents): New syscall.
10033 (rseq): Likewise.
10034
10035 * manual/install.texi (Configuring and compiling): Do not list
10036 tools used for testing pretty printers here.
10037 (Tools for Compilation): List Python, PExpect and GDB here.
10038 Update descriptions of uses of Perl and Python.
10039 * INSTALL: Regenerate.
10040
10041 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10042 version to 4.18.
10043
10044 2018-08-13 Florian Weimer <fweimer@redhat.com>
10045
10046 * misc/error.c (error): Add missing va_end call.
10047 (error_at_line): Likewise.
10048
10049 2018-08-13 Florian Weimer <fweimer@redhat.com>
10050
10051 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10052
10053 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10054
10055 * benchtests/scripts/benchout.schema.json (properties): Add
10056 new properties.
10057
10058 * benchtests/bench-skeleton.c (main): Add duration and
10059 iterations attributes.
10060
10061 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10062
10063 regex: Gnulib unibyte RRI uses bytes not chars
10064 Adjust the non-glibc code to agree with what Gawk needs for
10065 rational range interpretation (RRI) for regular expression ranges.
10066 In unibyte locales, Gawk wants ranges to use the underlying byte
10067 rather than the character code point. This change does not affect
10068 glibc proper.
10069 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10070 In unibyte locales, use the byte value rather than
10071 running it through btowc.
10072
10073 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10074
10075 * sysdeps/generic/math-tests-snan.h: New file.
10076 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10077 (SNAN_TESTS_float): Do not define here.
10078 (SNAN_TESTS_double): Likewise.
10079 (SNAN_TESTS_long_double): Likewise.
10080 (SNAN_TESTS_float128): Likewise.
10081 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10082 * sysdeps/i386/fpu/math-tests.h: Remove file.
10083 * sysdeps/ia64/math-tests-snan.h: New file.
10084 * sysdeps/ia64/math-tests.h: Remove file.
10085 * sysdeps/x86/math-tests.h: Likewise.
10086 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10087
10088 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10089 Szabolcs Nagy <szabolcs.nagy@arm.com>
10090
10091 * math/Makefile: Add s_sincosf_data.c.
10092 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10093 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10094 (sincosf_poly): Likewise.
10095 (reduce_small): Likewise.
10096 (reduce_large): Likewise.
10097 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10098 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10099 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10100 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10101
10102 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10103 Szabolcs Nagy <szabolcs.nagy@arm.com>
10104
10105 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10106 (converttoint): Use lround.
10107 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10108 document the semantics when TOINT_INTRINSICS is set.
10109 (converttoint): Likewise.
10110 (TOINT_RINT): Remove.
10111 (TOINT_SHIFT): Remove.
10112 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10113 path.
10114
10115 2018-08-10 Florian Weimer <fweimer@redhat.com>
10116
10117 [BZ #23497]
10118 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10119 function.
10120 (__old_getdents64): Use getdents64. Convert entries without
10121 moving them.
10122 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10123 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10124 tst-readdir64-compat.
10125
10126 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10127
10128 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10129 Fix unwind.
10130
10131 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10132
10133 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10134 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10135 code to s390x-mcount.h and #include it.
10136 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10137 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10138 (__fentry__): Add.
10139
10140 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10141
10142 * stdlib/Versions: Remove __fentry__.
10143 * sysdeps/i386/Versions: Add __fentry__.
10144 * sysdeps/x86_64/Versions: Add __fentry__.
10145
10146 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10147
10148 * sysdeps/s390/Makefile: Register the new tests.
10149 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10150 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10151 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10152 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10153 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10154 * sysdeps/s390/tst-dl-runtime.c: New file.
10155
10156 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10157
10158 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10159 Do not clobber R0.
10160
10161 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10162
10163 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10164 Do not clobber R0.
10165
10166 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10167
10168 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10169 Do not clobber R0.
10170
10171 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10172
10173 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10174 Do not clobber R0.
10175
10176 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10177
10178 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10179 Use symbolic offsets for stack variables.
10180
10181 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10182
10183 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10184 Use symbolic offsets for stack variables.
10185
10186 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10187
10188 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10189 Use symbolic offsets for stack variables.
10190
10191 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10192
10193 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10194 Use symbolic offsets for stack variables.
10195
10196 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10197
10198 * math/gen-libm-test.py: New file.
10199 * math/gen-libm-test.pl: Remove.
10200 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10201 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10202 gen-libm-test.pl.
10203 ($(libm-test-c-noauto-obj)): Likewise.
10204 ($(libm-test-c-auto-obj)): Likewise.
10205 ($(libm-test-c-narrow-obj)): Likewise.
10206 (regen-ulps): Likewise.
10207 * math/README.libm-test: Update references to gen-libm-test.pl.
10208 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10209 referencing gen-libm-test.pl.
10210 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10211 * math/libm-test-support.c: Likewise.
10212 * math/libm-test-support.h: Likewise.
10213 * sysdeps/generic/libm-test-ulps: Likewise.
10214
10215 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10216
10217 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10218 Fix value.
10219
10220 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10221
10222 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10223 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10224
10225 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10226
10227 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10228 symbols.
10229 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10230 __pthread_setspecific): Add hidden proto.
10231 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10232 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10233
10234 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10235
10236 * benchtests/bench-string.h (buf1_size, buf2_size): New
10237 variables.
10238 (init_sizes): New function.
10239 (test_init): Use it.
10240 (alloc_buf, exit_error): New functions.
10241 (alloc_bufs): Use ALLOC_BUF.
10242 (realloc_bufs): Remove.
10243 * benchtests/bench-memcmp.c (do_test): Adjust.
10244 * benchtests/bench-memset-large.c (do_test): Likewise.
10245 * benchtests/bench-memset-walk.c (do_test): Likewise.
10246 * benchtests/bench-memset.c (do_test): Likewise.
10247 * benchtests/bench-strncmp.c (do_test): Likewise.
10248
10249 2018-08-06 Andreas Schwab <schwab@suse.de>
10250
10251 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10252 of CONST_THREAD_AREA.
10253
10254 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10255
10256 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10257 (STATE_SAVE_MASK): Likewise.
10258 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10259 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10260 (STATE_SAVE_MASK): Likewise.
10261 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10262 instead of <cpu-features.h>.
10263
10264 2018-08-03 DJ Delorie <dj@redhat.com>
10265
10266 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10267 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10268
10269 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10270
10271 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10272
10273 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10274 after TEST_* calls.
10275 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10276 * math/libm-test-logb.inc (logb_test_data): Likewise.
10277
10278 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10279
10280 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10281 * string/strstr.c (AVAILABLE): Likewise.
10282
10283 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10284
10285 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10286 <init-arch.h>.
10287 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10288 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10289 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10290
10291 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10292
10293 * po/be.po: Update translation.
10294
10295 * po/be.po: Update translation.
10296
10297 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10298
10299 * sysdeps/x86/cpu-features-offsets.sym
10300 (rtld_global_ro_offsetof): Removed.
10301 (CPU_FEATURES_SIZE): Likewise.
10302 (CPUID_OFFSET): Likewise.
10303 (CPUID_SIZE): Likewise.
10304 (CPUID_EAX_OFFSET): Likewise.
10305 (CPUID_EBX_OFFSET): Likewise.
10306 (CPUID_ECX_OFFSET): Likewise.
10307 (CPUID_EDX_OFFSET): Likewise.
10308 (FAMILY_OFFSET): Likewise.
10309 (MODEL_OFFSET): Likewise.
10310 (FEATURE_OFFSET): Likewise.
10311 (FEATURE_SIZ): Likewise.
10312 (COMMON_CPUID_INDEX_1): Likewise.
10313 (COMMON_CPUID_INDEX_7): Likewise.
10314 (FEATURE_INDEX_1): Likewise.
10315 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10316
10317 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10318
10319 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10320 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10321 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10322 (install-locales): Depend on install-locale-archive.
10323 (install-locale-archive): Define.
10324 (install-locale-files): Define.
10325 (build-one-locale): Define macro.
10326 * manual/install.texi (Running make install): Document.
10327 * manual/INSTALL: Regenerate.
10328
10329 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10330
10331 * benchtests/scripts/compare_strings.py: Import traceback.
10332 (parse_file): Pretty-print error.
10333
10334 * NEWS: Mention the change.
10335 * elf/dl-tunables.list: Rename tune namespace to cpu.
10336 * sysdeps/powerpc/dl-tunables.list: Likewise.
10337 * sysdeps/x86/dl-tunables.list: Likewise.
10338 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10339 cpu.name.
10340 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10341 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10342 * manual/README.tunables: Likewise.
10343 * manual/tunables.texi: Likewise.
10344 * sysdeps/powerpc/cpu-features.c: Likewise.
10345 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10346 (init_cpu_features): Likewise.
10347 * sysdeps/x86/cpu-features.c: Likewise.
10348 * sysdeps/x86/cpu-features.h: Likewise.
10349 * sysdeps/x86/cpu-tunables.c: Likewise.
10350 * sysdeps/x86_64/Makefile: Likewise.
10351 * sysdeps/x86/dl-cet.c: Likewise.
10352
10353 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10354
10355 [BZ #23479]
10356 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10357 [__mips_hard_float].
10358 (FE_UNDERFLOW): Likewise.
10359 (FE_OVERFLOW): Likewise.
10360 (FE_DIVBYZERO): Likewise.
10361 (FE_INVALID): Likewise.
10362 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10363 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10364 (FE_UPWARD): Likewise.
10365 (FE_DOWNWARD): Likewise.
10366 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10367 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10368 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10369 [__mips_hard_float].
10370 (FP_ROUNDMODE): Likewise.
10371 (FP_RND_NEAREST): Likewise.
10372 (FP_RND_ZERO): Likewise.
10373 (FP_RND_PINF): Likewise.
10374 (FP_RND_MINF): Likewise.
10375 (FP_EX_INVALID): Likewise.
10376 (FP_EX_OVERFLOW): Likewise.
10377 (FP_EX_UNDERFLOW): Likewise.
10378 (FP_EX_DIVZERO): Likewise.
10379 (FP_EX_INEXACT): Likewise.
10380 (FP_INIT_ROUNDMODE): Likewise.
10381 * sysdeps/mips/nofpu/fesetenv.c: New file.
10382 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10383
10384 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10385
10386 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10387 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10388 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10389 conditional on [FE_UPWARD].
10390
10391 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10392
10393 regex: fix memory leak in Gnulib
10394 Problem and fix reported by Assaf Gordon in:
10395 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10396 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10397 range_ends members too, as they are defined in 'struct
10398 re_charset_t' even if not _LIBC. This affects only Gnulib.
10399
10400 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10401
10402 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10403 ...
10404 (get_common_indices): This.
10405 (init_cpu_features): Updated.
10406
10407 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10408
10409 * sysdeps/generic/math-tests-snan-payload.h: New file.
10410 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10411 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10412 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10413 * sysdeps/generic/math-tests.h: Include
10414 <math-tests-snan-payload.h>.
10415 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10416 * sysdeps/hppa/math-tests.h: Remove file.
10417 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10418 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10419 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10420 Likewise.
10421
10422 * sysdeps/generic/math-tests-snan-cast.h: New file.
10423 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10424 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10425 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10426 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10427
10428 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10429
10430 * version.h (RELEASE): Set to "development".
10431 (VERSION): Set to "2.28.9000".
10432 * NEWS (2.29): New section.
10433
10434 * version.h (RELEASE): Set to "stable".
10435 (VERSION): Set to "2.28".
10436 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10437 * NEWS: Add the list of bugs fixed in 2.28.
10438
10439 * po/ca.po: Update to latest version.
10440 * po/cs.po: Likewise
10441 * po/da.po: Likewise
10442 * po/el.po: Likewise
10443 * po/eo.po: Likewise
10444 * po/es.po: Likewise
10445 * po/fi.po: Likewise
10446 * po/fr.po: Likewise
10447 * po/gl.po: Likewise
10448 * po/hu.po: Likewise
10449 * po/ia.po: Likewise
10450 * po/id.po: Likewise
10451 * po/it.po: Likewise
10452 * po/ja.po: Likewise
10453 * po/ko.po: Likewise
10454 * po/lt.po: Likewise
10455 * po/nb.po: Likewise
10456 * po/nl.po: Likewise
10457 * po/pt_BR.po: Likewise
10458 * po/ru.po: Likewise
10459 * po/rw.po: Likewise
10460 * po/sk.po: Likewise
10461 * po/sl.po: Likewise
10462 * po/tr.po: Likewise
10463 * po/zh_CN.po: Likewise
10464 * po/zh_TW.po: Likewise
10465
10466 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10467
10468 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10469 initialization...
10470 (init): ... before initializing libpthread.
10471
10472 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10473 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10474 (__mach_setup_tls): ... new function.
10475 (mach_setup_tls): New alias.
10476 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10477 __mach_setup_thread.
10478 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10479 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10480 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10481 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10482
10483 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10484
10485 * manual/install.texi: Update versions.
10486 * INSTALL: Regenerate.
10487
10488 * manual/contrib.texi (Contributors): Update contributions.
10489
10490 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10491
10492 * po/be.po: Update translations.
10493
10494 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10495
10496 * sysdeps/sh/libm-test-ulps: Update.
10497
10498 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10499
10500 * po/bg.po: Update translations.
10501 * po/de.po: Likewise.
10502 * po/hr.po: Likewise.
10503 * po/pt_BR.po: Likewise.
10504 * po/sv.po: Likewise.
10505 * po/vi.po: Likewise.
10506
10507 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10508
10509 [BZ #23467]
10510 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10511 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10512 (CFLAGS-tst-cet-property-1.o): New.
10513 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10514 ($(objpfx)tst-cet-property-2): Likewise.
10515 ($(objpfx)tst-cet-property-2.out): Likewise.
10516 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10517 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10518 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10519 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10520 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10521
10522 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10523
10524 [BZ #23458]
10525 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10526
10527 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10528
10529 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10530 __sbrk): Do not set attribute_hidden.
10531 * sysdeps/mach/hurd/not-errno.h: New file.
10532 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10533 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10534
10535 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10536
10537 * po/uk.po: Update translations.
10538 * po/cs.po: Likewise.
10539 * po/pl.po: Likewise.
10540
10541 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10542
10543 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10544 parse beyond the note end.
10545
10546 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10547
10548 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10549 kernel does not support OFD locks.
10550 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10551
10552 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10553
10554 * sysdeps/mach/hurd/Versions (libc): Make __access and
10555 __access_noerrno external so they can override the ld symbols.
10556 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10557 __writev, __open64, __access_noerrno extern so they can be overrided.
10558 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10559 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10560
10561 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10562
10563 * po/libc.pot: Regenerate.
10564
10565 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10566
10567 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10568
10569 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10570
10571 [BZ #23459]
10572 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10573 function.
10574 (init_cpu_features): Call get_extended_indices for both Intel
10575 and AMD CPUs.
10576 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10577 Remove "for AMD" comment.
10578
10579 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10580
10581 [BZ # 23456]
10582 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10583 COMMON_CPUID_INDEX_80000001.
10584
10585 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10586
10587 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10588 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10589
10590 2018-07-26 Florian Weimer <fweimer@redhat.com>
10591
10592 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10593 aliases for symbols not in the implementation namespace.
10594
10595 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10596
10597 [BZ #23393]
10598 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10599 lowercase in LATIN script.
10600 * localedata/Makefile (test-input): Add en_US.UTF-8.
10601 * localedata/en_US.UTF-8.in: New file.
10602 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10603 and restore old tests.
10604 * posix/tst-regexloc.c (do_test): Add back range expression test.
10605
10606 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10607
10608 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10609
10610 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10611
10612 * nptl/threads.h: Move to ...
10613 * sysdeps/nptl/threads.h: ... here.
10614 * sysdeps/hurd/stdc-predef.h: New file.
10615
10616 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10617
10618 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10619 tst-cet-setcontext-1 if CET is enabled.
10620 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10621 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10622
10623 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10624
10625 * include/threads.h: Move to ...
10626 * sysdeps/nptl/threads.h: ... here.
10627 * sysdeps/htl/threads.h: New file.
10628 * conform/Makefile (linknamespace-libs-ISO11): Use
10629 static-thread-library instead of linking libpthread.
10630 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10631
10632 2018-07-25 Florian Weimer <fweimer@redhat.com>
10633
10634 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10635 nanoseconds into seconds.
10636 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10637 (do_test): Likewise.
10638 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10639 (do_test): Likewise. Avoid nanosecond overflow and spurious
10640 timeouts due to system load.
10641 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10642 (child_wait): Increment it.
10643 (do_test): Wait as long as necessary until all expected threads
10644 have arrived.
10645
10646 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10647 H.J. Lu <hongjiu.lu@intel.com>
10648
10649 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10650 __ssp.
10651 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10652 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10653 (__push___start_context): New.
10654 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10655 <asm/prctl.h>.
10656 (__getcontext): Record the current shadow stack base. Save the
10657 caller's shadow stack pointer and base.
10658 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10659 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10660 (__push___start_context): New prototype.
10661 (__makecontext): Call __push___start_context to allocate a new
10662 shadow stack, push __start_context onto the new stack as well
10663 as the new shadow stack.
10664 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10665 <asm/prctl.h>.
10666 (__setcontext): Restore the target shadow stack.
10667 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10668 <asm/prctl.h>.
10669 (__swapcontext): Record the current shadow stack base. Save
10670 the caller's shadow stack pointer and base. Restore the target
10671 shadow stack.
10672 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10673 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10674 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10675
10676 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10677
10678 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10679 tst-setcontext8 and tst-setcontext9.
10680 * stdlib/tst-setcontext6.c: New file.
10681 * stdlib/tst-setcontext7.c: Likewise.
10682 * stdlib/tst-setcontext8.c: Likewise.
10683 * stdlib/tst-setcontext9.c: Likewise.
10684
10685 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10686
10687 * stdlib/Makefile ((tests): Add tst-setcontext5.
10688 * stdlib/tst-setcontext5.c: New file.
10689
10690 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10691
10692 * stdlib/Makefile (tests): Add tst-setcontext4.
10693 * stdlib/tst-setcontext4.c: New file.
10694
10695 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10696
10697 * stdlib/Makefile (tests): Add tst-swapcontext1.
10698 * stdlib/tst-swapcontext1.c: New test.
10699
10700 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10701
10702 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10703 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10704 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10705 and tst-cet-legacy-4c.
10706 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10707 and tst-cet-legacy-mod-4.
10708 (CFLAGS-tst-cet-legacy-2.c): New.
10709 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10710 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10711 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10712 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10713 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10714 ($(objpfx)tst-cet-legacy-1): Likewise.
10715 ($(objpfx)tst-cet-legacy-2): Likewise.
10716 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10717 ($(objpfx)tst-cet-legacy-2a): Likewise.
10718 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10719 ($(objpfx)tst-cet-legacy-4): Likewise.
10720 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10721 ($(objpfx)tst-cet-legacy-4a): Likewise.
10722 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10723 (tst-cet-legacy-4a-ENV): Likewise.
10724 ($(objpfx)tst-cet-legacy-4b): Likewise.
10725 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10726 (tst-cet-legacy-4b-ENV): Likewise.
10727 ($(objpfx)tst-cet-legacy-4c): Likewise.
10728 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10729 (tst-cet-legacy-4c-ENV): Likewise.
10730 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10731 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10732 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10733 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10734 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10735 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10736 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10737 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10738 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10739 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10740 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10741
10742 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10743
10744 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10745 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10746 with ssp_base.
10747 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
10748 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
10749 with ssp_base.
10750
10751 2018-07-25 Andreas Schwab <schwab@suse.de>
10752
10753 [BZ #23442]
10754 * locale/weightwc.h (findidx): Handle the case where usrc is a
10755 prefix of cp but one character too short.
10756
10757 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10758
10759 * NEWS: Add ISO C threads addition.
10760
10761 2018-07-24 Florian Weimer <fweimer@redhat.com>
10762
10763 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10764 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
10765 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
10766 4.13.
10767
10768 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
10769
10770 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
10771 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
10772 <sys/prctl.h> and <asm/prctl.h>.
10773 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
10774 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
10775 and <asm/prctl.h>.
10776 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
10777 ARCH_CET_LEGACY_BITMAP.
10778 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
10779 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
10780 * sysdeps/x86/libc-start.c: Include <startup.h>.
10781
10782 2018-07-24 Florian Weimer <fweimer@redhat.com>
10783
10784 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
10785 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
10786
10787 2018-07-24 Rical Jasan <rj@2c3t.io>
10788 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10789 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10790
10791 [BZ #14092]
10792 * manual/debug.texi: Update adjacent chapter name.
10793 * manual/probes.texi: Likewise.
10794 * manual/threads.texi (ISO C Threads): New section.
10795 (POSIX Threads): Convert to a section.
10796
10797 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10798 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
10799
10800 [BZ# 14092]
10801 * nptl/Makefile (tests): Add new test files.
10802 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
10803 * nptl/tst-cnd-basic.c: Likewise.
10804 * nptl/tst-cnd-broadcast.c: Likewise.
10805 * nptl/tst-cnd-timedwait.c: Likewise.
10806 * nptl/tst-mtx-basic.c: Likewise.
10807 * nptl/tst-mtx-recursive.c: Likewise.
10808 * nptl/tst-mtx-timedlock.c: Likewise.
10809 * nptl/tst-mtx-trylock.c: Likewise.
10810 * nptl/tst-thrd-basic.c: Likewise.
10811 * nptl/tst-thrd-detach.c: Likewise.
10812 * nptl/tst-thrd-sleep.c: Likewise.
10813 * nptl/tst-tss-basic.c: Likewise.
10814
10815 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10816
10817 [BZ #14092]
10818 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10819 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
10820 symbols.
10821 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10822 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
10823 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10824 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
10825 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10826 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10827 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10828 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10829 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10830 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10831 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10832 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10834 Likewise.
10835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10836 Likewise.
10837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
10838 Likewise.
10839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10840 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10841 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10842 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10843 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10844 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10845 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10846 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10847 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10848 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
10849 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
10850 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
10851 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
10852 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
10853 Likewise.
10854 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
10855 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
10856 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
10857 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
10858 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
10859 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
10860 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
10861 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
10862 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
10863 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
10864 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
10865 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
10866 ikewise.
10867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
10868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
10869 Likewise.
10870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
10871 Likewise.
10872 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
10873 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
10874 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
10875 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
10876 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
10877 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
10878 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
10879 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
10880
10881 [BZ #14092]
10882 * conform/data/threads.h-data (thread_local): New macro.
10883 (TSS_DTOR_ITERATIONS): Likewise.
10884 (tss_t): New type.
10885 (tss_dtor_t): Likewise.
10886 (tss_create): New function.
10887 (tss_get): Likewise.
10888 (tss_set): Likewise.
10889 (tss_delete): Likewise.
10890 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
10891 tss_get, and tss_set objects.
10892 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10893 * nptl/tss_create.c: New file.
10894 * nptl/tss_delete.c: Likewise.
10895 * nptl/tss_get.c: Likewise.
10896 * nptl/tss_set.c: Likewise.
10897 * sysdeps/nptl/threads.h (thread_local): New define.
10898 (TSS_DTOR_ITERATIONS): Likewise.
10899 (tss_t): New typedef.
10900 (tss_dtor_t): Likewise.
10901 (tss_create): New prototype.
10902 (tss_get): Likewise.
10903 (tss_set): Likewise.
10904 (tss_delete): Likewise.
10905
10906 [BZ #14092]
10907 * conform/data/threads.h-data (cnd_t): New type.
10908 (cnd_init): New function.
10909 (cnd_signal): Likewise.
10910 (cnd_broadcast): Likewise.
10911 (cnd_wait): Likewise.
10912 (cnd_timedwait): Likewise.
10913 (cnd_destroy): Likewise.
10914 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
10915 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
10916 object.
10917 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
10918 * nptl/cnd_broadcast.c: New file.
10919 * nptl/cnd_destroy.c: Likewise.
10920 * nptl/cnd_init.c: Likewise.
10921 * nptl/cnd_signal.c: Likewise.
10922 * nptl/cnd_timedwait.c: Likewise.
10923 * nptl/cnd_wait.c: Likewise.
10924 * sysdeps/nptl/threads.h (cnd_t): New type.
10925 (cnd_init): New prototype.
10926 (cnd_signa): Likewise.
10927 (cnd_broadcast): Likewise.
10928 (cnd_wait): Likewise.
10929 (cnd_timedwait): Likewise.
10930 (cnd_destroy): Likewise.
10931
10932 [BZ #14092]
10933 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
10934 (once_flag): New type.
10935 (call_once): New function.
10936 * nptl/Makefile (libpthread-routines): Add call_once object.
10937 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
10938 * nptl/call_once.c: New file.
10939 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
10940 (once_flag): New type.
10941 (call_once): New prototype.
10942
10943 [BZ #14092]
10944 * conform/data/threads.h-data (mtx_plain): New constant.
10945 (mtx_recursive): Likewise.
10946 (mtx_timed): Likewise.
10947 (mtx_t): New type.
10948 (mtx_init): New function.
10949 (mtx_lock): Likewise.
10950 (mtx_timedlock): Likewise.
10951 (mtx_trylock): Likewise.
10952 (mtx_unlock): Likewise.
10953 (mtx_destroy): Likewise.
10954 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
10955 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
10956 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
10957 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
10958 * nptl/mtx_destroy.c: New file.
10959 * nptl/mtx_init.c: Likewise.
10960 * nptl/mtx_lock.c: Likewise.
10961 * nptl/mtx_timedlock.c: Likewise.
10962 * nptl/mtx_trylock.c: Likewise.
10963 * nptl/mtx_unlock.c: Likewise.
10964 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
10965 (mtx_recursive): Likewise.
10966 (mtx_timed): Likewise.
10967 (mtx_t): New type.
10968 (mtx_init): New prototype.
10969 (mtx_lock): Likewise.
10970 (mtx_timedlock): Likewise.
10971 (mtx_trylock): Likewise.
10972 (mtx_unlock): Likewise.
10973 (mtx_destroy): Likewise.
10974
10975 [BZ #14092]
10976 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
10977 (linknamespace-libs-ISO11): Add libpthread.a.
10978 * conform/data/threads.h-data: New file: add C11 thrd_* types and
10979 functions.
10980 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
10981 * nptl/Makefile (headers): Add threads.h.
10982 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
10983 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
10984 thrd_yield.
10985 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
10986 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
10987 thrd_join, thrd_sleep, and thrd_yield symbols.
10988 * nptl/descr.h (struct pthread): Add c11 field.
10989 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
10990 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
10991 routine with expected function prototype.
10992 (__pthread_create_2_1): Add C11 threads check based on attribute
10993 value.
10994 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
10995 * nptl/thrd_create.c: New file.
10996 * nptl/thrd_current.c: Likewise.
10997 * nptl/thrd_detach.c: Likewise.
10998 * nptl/thrd_equal.c: Likewise.
10999 * nptl/thrd_exit.c: Likewise.
11000 * nptl/thrd_join.c: Likewise.
11001 * nptl/thrd_priv.h: Likewise.
11002 * nptl/thrd_sleep.c: Likewise.
11003 * nptl/thrd_yield.c: Likewise.
11004 * include/threads.h: Likewise.
11005
11006 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11007
11008 * bits/indirect-return.h: New file.
11009 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11010 * sysdeps/x86/bits/indirect-return.h: Likewise.
11011 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11012 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11013 (swapcontext): Add __INDIRECT_RETURN.
11014 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11015 (prepare_test_buffer): Use it.
11016
11017 2018-07-24 Andreas Schwab <schwab@suse.de>
11018
11019 [BZ #23448]
11020 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11021 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11022
11023 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11024
11025 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11026 Redefine if shadow stack is enabled.
11027 (SYSCALL_ERROR_LABEL): Likewise.
11028 (__vfork): Pop shadow stack and jump back to to caller directly
11029 when shadow stack is in use.
11030 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11031 Redefine if shadow stack is enabled.
11032 (SYSCALL_ERROR_LABEL): Likewise.
11033 (__vfork): Pop shadow stack and jump back to to caller directly
11034 when shadow stack is in use.
11035
11036 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11037
11038 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11039 enabled.
11040 (foo): Likewise.
11041 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11042 (foo): Likewise.
11043
11044 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11045
11046 * scripts/build-many-glibcs.py (Context.checkout): Default
11047 binutils version to 2.31 branch.
11048
11049 2018-07-20 Zong Li <zong@andestech.com>
11050
11051 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11052 URL of gcc's tarball.
11053
11054 2018-07-20 Florian Weimer <fweimer@redhat.com>
11055
11056 [BZ #23396]
11057 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11058 not compare an extra byte after the end of the weights.
11059
11060 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11061
11062 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11063 to 1.
11064 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11065 hidden prototypes.
11066 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11067 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11068 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11069 list of libraries whose stack executability is expected.
11070 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11071 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11072 variable.
11073 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11074 libc.so libpthread.so.
11075
11076 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11077
11078 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11079 SOCK_NONBLOCK.
11080 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11081 and SOCK_NONBLOCK.
11082 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11083 implement __pipe2.
11084 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11085
11086 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11087
11088 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11089 library to improve command line parsing.
11090 (__main__): make schema file as optional parameter (--schema),
11091 defaulting to benchtests/scripts/benchout.schema.json.
11092 (main): move out of the parsing stuff to __main_  and leave it
11093 only as caller of main comparison functions.
11094
11095 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11096
11097 * NEWS: Add a note for Intel CET status.
11098 * manual/install.texi: Likewise.
11099 * INSTALL: Regenerated.
11100
11101 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11102
11103 [BZ #23140]
11104 * localedata/locales/oc_FR (mon): Rename to...
11105 (alt_mon): This, then update October (typo fix).
11106 (mon): New content (genitive case, month names preceded by
11107 "de" or "d’").
11108
11109 [BZ #23422]
11110 * localedata/locales/oc_FR (abday): Update all items.
11111 (day): Update Wednesday and Saturday (typo fixes).
11112 (abmon): Update all items, except May.
11113 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11114 (LC_IDENTIFICATION): Bump the revision number and date.
11115 Keep the "category" entries in alphabetic order.
11116 (LC_ADDRESS): Remove no longer needed comment.
11117 (LC_COLLATE): Use “copy "ca_ES"”.
11118 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11119 "name_mrs".
11120
11121 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11122
11123 * grp/tst_fgetgrent.c: Include <unistd.h>.
11124 (main): Use mkstemp instead of tmpnam.
11125 * io/test-utime.c (main): Likewise.
11126 * posix/annexc.c (macrofile): Change to modifiable array.
11127 (main): Remove macrofile here.
11128 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11129 macrofile here.
11130 (check_header): Do not remove macrofile here.
11131 * posix/bug-getopt1.c: Include <stdlib.h>.
11132 (do_test): Use mkstemp instead of tmpnam.
11133 * posix/bug-getopt2.c: Include <stdlib.h>.
11134 (do_test): Use mkstemp instead of tmpnam.
11135 * posix/bug-getopt3.c: Include <stdlib.h>.
11136 (do_test): Use mkstemp instead of tmpnam.
11137 * posix/bug-getopt4.c: Include <stdlib.h>.
11138 (do_test): Use mkstemp instead of tmpnam.
11139 * posix/bug-getopt5.c: Include <stdlib.h>.
11140 (do_test): Use mkstemp instead of tmpnam.
11141 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11142 (main): Use mkstemp instead of tmpnam.
11143 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11144 (main): Use mkstemp instead of tmpnam.
11145 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11146 (main): use mkstemp instead of tmpnam.
11147 * stdlib/isomac.c (macrofile): Change to modifiable array.
11148 (main): Remove macrofile here.
11149 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11150 macrofile here.
11151 (check_header): Do not remove macrofile here.
11152
11153 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11154
11155 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11156 glibc.tune.x86_shstk.
11157
11158 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11159
11160 * NEWS: Mention --enable-cet.
11161 * manual/install.texi: Document --enable-cet.
11162 * INSTALL: Regenerated.
11163
11164 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11165
11166 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11167 Add _CET_NOTRACK before indirect jump to jump table.
11168
11169 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11170
11171 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11172 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11173 to jump table.
11174
11175 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11176
11177 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11178 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11179 to jump table.
11180
11181 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11182
11183 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11184 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11185 to jump table.
11186
11187 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11188
11189 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11190 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11191 to jump table.
11192
11193 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11194
11195 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11196 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11197 to jump table.
11198 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11199
11200 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11201
11202 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11203 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11204 to jump table.
11205
11206 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11207
11208 * sysdeps/i386/i686/multiarch/memset-sse2.S
11209 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11210 to jump table.
11211
11212 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11213
11214 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11215 indirect jump to jump table.
11216
11217 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11218
11219 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11220 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11221 to jump table.
11222 (MEMCPY): Likewise.
11223
11224 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11225
11226 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11227 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11228 to jump table.
11229 (MEMCPY): Likewise.
11230
11231 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11232
11233 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11234 _CET_NOTRACK before indirect jump to jump table.
11235
11236 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11237
11238 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.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/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11245 indirect jump to jump table.
11246
11247 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11248
11249 [BZ #22241]
11250 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11251 (LOCALES): Likewise.
11252 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11253 * localedata/locales/sah_RU: New file.
11254 * localedata/sah_RU.UTF-8.in: New file.
11255
11256 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11257
11258 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11259 "sysdep.h".
11260 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11261 _CET_ENDBR to indirect jump targets and adjust jump destination
11262 for _CET_ENDBR.
11263 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11264 "sysdep.h".
11265 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11266 _CET_ENDBR to indirect jump targets and adjust jump destination
11267 for _CET_ENDBR.
11268 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11269 "sysdep.h".
11270 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11271 _CET_ENDBR to indirect jump targets and adjust jump destination
11272 for _CET_ENDBR.
11273
11274 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11275
11276 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11277 _CET_ENDBR.
11278
11279 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11280
11281 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11282 _CET_ENDBR.
11283 (_dl_tlsdesc_undefweak): Likewise.
11284 (_dl_tlsdesc_dynamic): Likewise.
11285 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11286 (_dl_tlsdesc_resolve_rel): Likewise.
11287 (_dl_tlsdesc_resolve_rela): Likewise.
11288 (_dl_tlsdesc_resolve_hold): Likewise.
11289 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11290 (_dl_tlsdesc_undefweak): Likewise.
11291 (_dl_tlsdesc_dynamic): Likewise.
11292 (_dl_tlsdesc_resolve_rela): Likewise.
11293 (_dl_tlsdesc_resolve_hold): Likewise.
11294
11295 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11296
11297 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11298 (_fini): Likewise.
11299 * sysdeps/x86_64/crti.S (_init): Likewise.
11300 (_fini): Likewise.
11301
11302 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11303
11304 [BZ #23140]
11305 * localedata/locales/os_RU (mon): Rename to...
11306 (alt_mon): This.
11307 (mon): Import from CLDR (genitive case).
11308
11309 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11310
11311 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11312 cet-tunables.h> when CET is enabled.
11313
11314 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11315
11316 [BZ #21598]
11317 * configure.ac: Add --enable-cet.
11318 * configure: Regenerated.
11319 * elf/Makefille (all-built-dso): Add a comment.
11320 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11321 Include <dl-prop.h>.
11322 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11323 segment.
11324 * elf/dl-open.c: Include <dl-prop.h>.
11325 (dl_open_worker): Call _dl_open_check.
11326 * elf/rtld.c: Include <dl-prop.h>.
11327 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11328 _rtld_main_check.
11329 * sysdeps/generic/dl-prop.h: New file.
11330 * sysdeps/i386/dl-cet.c: Likewise.
11331 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11332 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11333 * sysdeps/x86/cet-tunables.h: Likewise.
11334 * sysdeps/x86/check-cet.awk: Likewise.
11335 * sysdeps/x86/configure: Likewise.
11336 * sysdeps/x86/configure.ac: Likewise.
11337 * sysdeps/x86/dl-cet.c: Likewise.
11338 * sysdeps/x86/dl-procruntime.c: Likewise.
11339 * sysdeps/x86/dl-prop.h: Likewise.
11340 * sysdeps/x86/libc-start.h: Likewise.
11341 * sysdeps/x86/link_map.h: Likewise.
11342 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11343 _CET_ENDBR.
11344 (_dl_runtime_profile): Likewise.
11345 (_dl_runtime_resolve_shstk): New.
11346 (_dl_runtime_profile_shstk): Likewise.
11347 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11348 if CET is enabled.
11349 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11350 (CFLAGS-.os): Likewise.
11351 (CFLAGS-.op): Likewise.
11352 (CFLAGS-.oS): Likewise.
11353 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11354 is enabled.
11355 (tests-special): Add $(objpfx)check-cet.out.
11356 (cet-built-dso): New.
11357 (+$(cet-built-dso:=.note)): Likewise.
11358 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11359 ($(objpfx)check-cet.out): New.
11360 (generated): Add check-cet.out.
11361 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11362 <cet-tunables.h>.
11363 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11364 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11365 (init_cpu_features): Call get_cet_status to check CET status
11366 and update dl_x86_feature_1 with CET status. Call
11367 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11368 (set_x86_shstk). Disable and lock CET in libc.a.
11369 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11370 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11371 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11372 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11373 (_CET_ENDBR): Define if not defined.
11374 (ENTRY): Add _CET_ENDBR.
11375 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11376 x86_shstk.
11377 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11378 _CET_ENDBR.
11379 (_dl_runtime_profile): Likewise.
11380
11381 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11382
11383 [BZ #21895]
11384 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11385 restore r2 on longjmp.
11386 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11387 test list.
11388 Added rules to build test tst-setjmp-bug21895-static.
11389 Added module setjmp-bug21895 and rules to build a shared object from it.
11390 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11391 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11392
11393 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11394
11395 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11396 * benchtests/bench-strstr.c: Likewise.
11397 * string/memmem.c (FASTSEARCH): Define.
11398 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11399 Add support for FASTSEARCH.
11400 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11401 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11402 (FASTSEARCH): Define.
11403 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11404 * string/test-strstr.c: Likewise.
11405
11406 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11407
11408 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11409 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11410
11411 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11412 H.J. Lu <hongjiu.lu@intel.com>
11413
11414 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11415 (__longjmp): Restore shadow stack pointer if shadow stack is
11416 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11417 isn't defined for __longjmp_cancel.
11418 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11419 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11420 and SHADOW_STACK_POINTER_OFFSET is defined.
11421 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11422 (setjmp): Save shadow stack pointer if shadow stack is enabled
11423 and SHADOW_STACK_POINTER_OFFSET is defined.
11424 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11425 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11426 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11427 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11428 <jmp_buf-ssp.h>.
11429 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11430 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11431 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11432 Remove jmp_buf-ssp.sym.
11433 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11434 <jmp_buf-ssp.h>.
11435 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11436 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11437 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11438 jmp_buf-ssp.sym.
11439 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11440 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11441 (__longjmp): Restore shadow stack pointer if shadow stack is
11442 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11443 isn't defined for __longjmp_cancel.
11444 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11445 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11446 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11447
11448 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11449
11450 [BZ #22563]
11451 * nptl/pthread_create.c: Include <tls-setup.h>.
11452 (__pthread_create_2_1): Call tls_setup_tcbhead.
11453 * sysdeps/generic/tls-setup.h: New file.
11454 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11455 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11456 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11457 Likewise.
11458 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11459 to feature_1.
11460 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11461 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11462 (X86_FEATURE_1_SHSTK): Likewise.
11463 (CET_ENABLED): Likewise.
11464 (IBT_ENABLED): Likewise.
11465 (SHSTK_ENABLED): Likewise.
11466
11467 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11468
11469 [BZ #23208]
11470 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11471 (LOCALES): Likewise.
11472 * localedata/dsb_DE.UTF-8.in: New file.
11473 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11474
11475 2018-07-12 Florian Weimer <fweimer@redhat.com>
11476
11477 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11478 __mprotect, not mprotect.
11479
11480 2018-07-11 Florian Weimer <fweimer@redhat.com>
11481
11482 * io/Makefile (headers): Add bits/statx.h.
11483
11484 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11485
11486 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11487 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11488 and headers.
11489 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11490 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11491 for utf8_gen.py
11492
11493 2018-07-10 Florian Weimer <fweimer@redhat.com>
11494
11495 * io/Makefile (routines): Add statx.
11496 (tests-internal): Add tst-statx.
11497 * io/Versions (GLIBC_2.28): Export statx.
11498 * io/bits/statx.h: New file.
11499 * io/sys/stat.h [__USE_GNU]: Include it.
11500 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11501 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11502 Define.
11503 * io/statx.c: New file.
11504 * io/statx_generic.: Likewise.
11505 * io/tst-statx.: Likewise.
11506 * include/bits/statx.h: Likewise.
11507 * sysdeps/unix/sysv/linux/kernel-features.h
11508 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11509 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11510 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11511 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11512 Undefine.
11513 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11514 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11515 * sysdeps/unix/sysv/linux/statx.c: New file.
11516 * manual/filesys.texi: Note that statx is undocumented.
11517 * sysdeps/**/libc*.abilist: Update.
11518
11519 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11520
11521 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11522 a kernel issue which lead to test failure in some cases.
11523
11524 2018-07-10 Florian Weimer <fweimer@redhat.com>
11525
11526 [BZ #23036]
11527 * posix/regexec.c (check_node_accept_bytes): When comparing
11528 weights, do not compare an extra byte after the end of the
11529 weights.
11530
11531 2018-07-10 Florian Weimer <fweimer@redhat.com>
11532
11533 * libio/readline.c: Fix copyright year.
11534 * libio/tst-readline.c Likewise.
11535 * nss/tst-nss-files-hosts-getent.c: Likewise.
11536
11537 2018-07-06 Florian Weimer <fweimer@redhat.com>
11538
11539 [BZ #18991]
11540 * nss/nss_files/files-XXX.c (internal_getent): Use
11541 __libc_readline_unlocked. Seek back to the start of the line if
11542 parsing failes with ERANGE.
11543 (get_contents_ret, get_contents): Remove.
11544 * nss/tst-nss-files-hosts-getent.c: New file.
11545 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11546 (tst-nss-files-hosts-getent): Link with -ldl.
11547
11548 2018-07-06 Florian Weimer <fweimer@redhat.com>
11549
11550 * include/stdio.h (__libc_readline_unlocked): Declare.
11551 (__ftello64, __fseeko64): Declare aliases.
11552 * libio/readline.c: New file.
11553 * libio/tst-readline.c: Likewise.
11554 (routines): Add readline.
11555 (tests-internal): Add tst-readlime.
11556 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11557 __libc_readline_unlocked.
11558 * libio/fseeko.c (__fseeko): Rename from fseeko.
11559 (fseeko): Add alias.
11560 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11561 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11562 (fseeko64): Add alias.
11563 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11564 * libio/ftello64.c (__ftello64): Rename from ftello64.
11565 (ftello64): Add alias.
11566
11567 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11568
11569 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11570 HWCAP_ATOMICS.
11571
11572 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11573
11574 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11575 Use dl_hwcap without masking.
11576 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11577 Remove HWCAP_CPUID.
11578
11579 2018-07-06 Florian Weimer <fweimer@redhat.com>
11580
11581 * conform/conformtest.pl (checknamespace): Escape literal braces
11582 in regular expressions.
11583
11584 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11585
11586 * sysdeps/x86/cpu-features.c (get_common_indeces):
11587 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11588 * sysdeps/x86/cpu-features.c (init_cpu_features):
11589 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11590
11591 2018-07-05 Florian Weimer <fweimer@redhat.com>
11592
11593 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11594 protector.
11595 (CFLAGS-elf-init.oS): Likewise.
11596
11597 2018-07-05 Florian Weimer <fweimer@redhat.com>
11598 Carlos O'Donell <carlos@redhat.com>
11599
11600 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11601 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11602 with stack protector enabled because there is no risk of infinite
11603 recursion.
11604
11605 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11606
11607 [BZ #19818]
11608 [BZ #23307]
11609 * libc-abis (ABSOLUTE): New ABI.
11610 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11611 * NEWS: Mention the new ABI.
11612
11613 2018-07-05 Florian Weimer <fweimer@redhat.com>
11614
11615 [BZ # 17662]
11616 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11617 (RENAME_WHITEOUT): Define.
11618 [__USE_GNU] (renameat2): Declare.
11619 * stdio-common/Makefile (routines): Add renameat2.
11620 (tests): Add tst-renameat2.
11621 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11622 * stdio-common/renameat2.c: New file.
11623 * stdio-common/tst-renameat2.c: Likewise.
11624 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11625 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11626 undocumented.
11627 * sysdeps/unix/sysv/linux/kernel-features.h
11628 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11629 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11630 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11631 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11632 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11633 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11634 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11635 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11636 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11637 * include/stdio.h (__renameat): Add alias for renameat.
11638 * stdio-common/renameat.c (__renameat): Rename from renameat.
11639 Add hidden definition and alias.
11640 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11641 * sysdeps/mach/hurd/renameat.c: Likewise.
11642 * sysdeps/**/libc*.abilist: Add renameat2.
11643
11644 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11645
11646 * posix/bug-regex33.c: Fix build after regex sync.
11647
11648 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11649
11650 [BZ #23164]
11651 * localedata/tst-langinfo-setlocale.c: New file.
11652 * localedata/tst-langinfo-setlocale-static.c: New file.
11653 * localedata/tst-langinfo-newlocale.c: New file.
11654 * localedata/tst-langinfo-newlocale-static.c: New file.
11655 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11656 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11657 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11658 (tests-static): Remove tst-langinfo-static. Add
11659 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11660 (tests-special): Remove $(objpfx)tst-langinfo.out,
11661 $(objpfx)tst-langinfo-static.out. Add
11662 $(objpfx)tst-langinfo-setlocale.out,
11663 $(objpfx)tst-langinfo-newlocale.out,
11664 $(objpfx)tst-langinfo-setlocale-static.out,
11665 $(objpfx)tst-langinfo-newlocale-static.out.
11666 ($(objpfx)tst-langinfo.out): Remove.
11667 ($(objpfx)tst-langinfo-static.out): Remove.
11668 ($(objpfx)tst-langinfo-newlocale.out): New target.
11669 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11670 (test-xfail-tst-langinfo-newlocale-static): Add.
11671 ($(objpfx)tst-langinfo-setlocale.out): New target.
11672 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11673 * localedata/tst-langinfo.c: Call test_locale.
11674 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11675 data.
11676
11677 2018-07-04 Florian Weimer <fweimer@redhat.com>
11678
11679 testrun.sh: Implement --tool=strace, --tool=valgrind
11680 * Makefile (testrun-script): Define variable.
11681 (testrun.sh): Use variable.
11682 * manual/install.texi (Tools for Compilation): make 4.0 or later
11683 is required.
11684 * configure.ac: Check for make 4.0 or later.
11685 * INSTALL: Regenerate.
11686 * configure: Likewise.
11687
11688 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11689
11690 [BZ #23233]
11691 [BZ #21163]
11692 [BZ #18986]
11693 [BZ #13762]
11694 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11695 * posix/PCRE.tests: Remove invalid test.
11696 * posix/bug-regex28.c: Fix expected values for used syntax.
11697 * posix/bug-regex37.c: New file.
11698 * posix/bug-regex38.c: Likewise.
11699 * posix/regcomp.c: Sync with gnulib.
11700 * posix/regex.c: Likewise.
11701 * posix/regex.h: Likewise.
11702 * posix/regex_internal.c: Likewise.
11703 * posix/regex_internal.h: Likewise.
11704 * posix/regexec.c: Likewise.
11705
11706 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11707
11708 [BZ #23308]
11709 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11710 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11711 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11712 * localedata/unicode-gen/PropList.txt: likewise.
11713 * localedata/unicode-gen/UnicodeData.txt: likewise.
11714 * localedata/charmaps/UTF-8: Regenerate.
11715 * localedata/locales/i18n_ctype: likewise.
11716 * localedata/locales/tr_TR: likewise.
11717 * localedata/locales/translit_circle: likewise.
11718 * localedata/locales/translit_cjk_compat: likewise.
11719 * localedata/locales/translit_combining: likewise.
11720 * localedata/locales/translit_compat: likewise.
11721 * localedata/locales/translit_font: likewise.
11722 * localedata/locales/translit_fraction: likewise.
11723
11724 2018-07-03 Florian Weimer <fweimer@redhat.com>
11725
11726 [BZ #23363]
11727 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11728 * stdio-common/tst-printf.sh: Adjust expected output.
11729 * LICENSES: Update.
11730
11731 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11732
11733 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11734 symbol.
11735
11736 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11737
11738 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11739 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11740 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11741 * stdio-common/tst-printfsz-islongdouble.c: New file.
11742 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
11743 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
11744 [subdir == stdio-common] (routines): Add ieee128-printf_size.
11745 [subdir == stdio-common] (tests-internal): Add
11746 test-printf-size-ieee128, and test-printf-size-ibm128.
11747 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
11748 (CFLAGS-test-printf-size-ibm128.c): New variables.
11749 [subdir == stdio-common] (tests-special): Add
11750 $(objpfx)test-printf-size-ieee128.out and
11751 $(objpfx)test-printf-size-ibm128.out.
11752 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
11753 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
11754 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
11755 __printf_sizeieee128.
11756 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
11757 New file.
11758 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
11759 Likewise.
11760 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
11761 Likewise.
11762
11763 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
11764
11765 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
11766 (exp2f_inline): Likewise.
11767 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
11768 (__math_uflowf): Likewise.
11769 (__math_may_uflowf): Likewise.
11770 (__math_divzerof): Likewise.
11771 (__math_invalidf): Likewise.
11772 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
11773 (__math_oflowf): Likewise.
11774 (__math_uflowf): Likewise.
11775 (__math_may_uflowf): Likewise.
11776 (__math_divzerof): Likewise.
11777 (__math_invalidf): Likewise.
11778
11779 2018-06-29 DJ Delorie <dj@redhat.com>
11780 Carlos O'Donell <carlos@redhat.com>
11781
11782 [BZ #23329]
11783 * include/libc-symbols.h: Comment the freeres framework.
11784 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
11785 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
11786 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
11787 * dlfcn/dlerror.c: Include libc-symbols.h
11788 (__dlerror_main_freeres): New function.
11789 * dlfcn/dlfreeres.c: New file.
11790 * dlfcn/sdlfreeres.c: New file.
11791 * include/dlfcn.h: Declare __dlerror_main_freeres.
11792 * malloc/set-freeres.c: Declare __libdl_freeres, and
11793 __libpthread_freeres.
11794 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
11795 the releavant libraries are loaded.
11796 * malloc/thread-freeres.c: Add comments.
11797 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
11798 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
11799 * nptl/allocatestack.c (__nptl_free_stacks): New function.
11800 (__free_stacks): Rename to...
11801 (free_stacks): ...this. Mark static.
11802 (queue_stack): Call free_stacks.
11803 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
11804 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
11805 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
11806 ptr_freeres element from struct.
11807 (pthread_functions): Remove .ptr_freeres from struct initializer.
11808 [SHARED] (nptl_freeres): Remove.
11809 * nptl/nptlfreeres.c: New file.
11810 * nptl/pthreadP.h
11811 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
11812 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
11813 attribute_hidden.
11814 (__free_stacks): Rename to...
11815 (__nptl_stacks_freeres): ...this.
11816 (__shm_directory_freeres): Declare.
11817 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
11818 (__nptl_unwind_freeres): ...this.
11819 * resolv/res-close.c: Add comment.
11820 * resolv/resolv_conf.c: Include libc-symbols.h.
11821 * string/strerror_l.c: Include libc-symbols.h.
11822 * sunrpc/rpc_thread.c: Include libc-symbols.h.
11823 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
11824 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
11825 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
11826
11827 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11828
11829 * stdlib/tst-strfmon_l.c: Add tests for long double.
11830
11831 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
11832
11833 [BZ #23208]
11834 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
11835 * localedata/locales/dsb_DE: New file.
11836
11837 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11838
11839 [BZ #23140]
11840 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
11841 genitive case).
11842 (alt_mon): New entry, import from CLDR (nominative case).
11843
11844 2018-06-29 Sylvain Lesage <severo@rednegra.net>
11845
11846 [BZ #22996]
11847 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
11848
11849 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
11850
11851 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11852 Use vector registers.
11853
11854 * sysdeps/aarch64/multiarch/memmove_falkor.S
11855 (__memcpy_falkor): Use vector registers.
11856
11857 2018-06-29 Martin Sebor <msebor@redhat.com>
11858
11859 * manual/stdio.texi (Customizing Printf): Mention interaction
11860 with GCC built-ins.
11861
11862 2018-06-29 Maciej W. Rozycki <macro@mips.com>
11863
11864 [BZ #23307]
11865 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
11866 `st_value' is 0 if `st_shndx' is SHN_ABS.
11867 * elf/tst-absolute-zero.c: New file.
11868 * elf/tst-absolute-zero-lib.c: New file.
11869 * elf/tst-absolute-zero-lib.lds: New file.
11870 * elf/Makefile (tests): Add `tst-absolute-zero'.
11871 (modules-names): Add `tst-absolute-zero-lib'.
11872 (LDLIBS-tst-absolute-zero-lib.so): New variable.
11873 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
11874 ($(objpfx)tst-absolute-zero: New dependency.
11875
11876 2018-06-29 Zack Weinberg <zackw@panix.com>
11877
11878 * configure.ac: New command-line option --disable-crypt.
11879 Force --disable-nss-crypt when --disable-crypt is given, with a
11880 warning if it was explicitly enabled.
11881 * configure: Regenerate.
11882 * config.make.in: New boolean substitution variable $(build-crypt).
11883 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
11884 when $(build-crypt).
11885 * manual/install.texi: Document --disable-crypt.
11886 * INSTALL: Regenerate.
11887
11888 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
11889 which is never set.
11890 * conform/Makefile: Only include libcrypt.a in
11891 linknamespace-libs-xsi and linknamespace-libs-XPG4
11892 when $(build-crypt).
11893 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
11894 USE_CRYPT to 1 when $(build-crypt).
11895 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
11896 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
11897 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
11898
11899 2018-06-29 Zack Weinberg <zackw@panix.com>
11900
11901 * crypt/crypt.h, posix/unistd.h: Update comments and
11902 prototypes for crypt and crypt_r.
11903
11904 * manual/crypt.texi (Cryptographic Functions): New initial
11905 exposition.
11906 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
11907 (Unpredictable Bytes): Improve initial exposition. Clarify error
11908 behavior of getentropy and getrandom.
11909 * manual/examples/genpass.c: Generate a salt using getentropy
11910 instead of the current time. Use hash $5$ (SHA-2-256).
11911 * manual/examples/testpass.c: Demonstrate validation against
11912 hashes generated with three different one-way functions.
11913
11914 * manual/intro.texi: crypt.texi does not need an overview
11915 anymore.
11916
11917 * manual/nss.texi, manual/memory.texi, manual/socket.texi
11918 * manual/terminal.texi: Consistently refer to "passphrases"
11919 * instead of "passwords", and to the "user database" instead
11920 * of the "password database".
11921 * manual/users.texi: Similarly. Add notes about how actual
11922 passphrase hashes are now stored in the shadow database.
11923 Remove 20-year-old junk todo note.
11924
11925 2018-06-29 Zack Weinberg <zackw@panix.com>
11926
11927 * manual/crypt.texi: Use a normal top-level @node declaration.
11928 Move most of the introductory text to the 'crypt' section.
11929 Move the example programs below the @deftypefun for 'crypt_r'.
11930 Move the 'getpass' section...
11931 * manual/terminal.texi: ...here.
11932
11933 2018-06-29 Zack Weinberg <zackw@panix.com>
11934 Florian Weimer <fweimer@redhat.com>
11935
11936 * posix/unistd.h: Do not declare encrypt.
11937 (_XOPEN_CRYPT): Remove macro definition.
11938 (crypt): Declare only for _USE_MISC.
11939 * stdlib/stdlib.h: Do not declare setkey.
11940 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
11941 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
11942
11943 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
11944 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
11945 into compat symbols. Don't define initial_perm if it's not
11946 going to be used.
11947 * crypt/cert.c: Link explicitly with the expected versions for
11948 setkey and encrypt. If they are not available at all, mark
11949 the test as unsupported.
11950
11951 * sunrpc/des_crypt.c: Unconditionally block linkage with
11952 cbc_crypt and ecb_crypt for new binaries.
11953 * sunrpc/des_soft.c: Unconditionally block linkage with
11954 des_setparity for new binaries.
11955
11956 * manual/crypt.texi: Remove the entire "DES Encryption"
11957 section. Also remove the paragraph talking about FIPS 140-2
11958 from the introduction.
11959 * manual/string.texi (strfry, memfrob): Revise. Recommend use
11960 of libgcrypt for "real" encryption, not DES.
11961 * manual/conf.texi (Constants for Sysconf): Mention that
11962 _XOPEN_CRYPT is no longer impelemented.
11963
11964 * conform/data/unistd.h-data: Remove crypt function declaration.
11965
11966 2018-06-29 Florian Weimer <fweimer@redhat.com>
11967
11968 [BZ #23351]
11969 * malloc/hooks.c: Update comments on restoring of dumped heaps.
11970 (disallow_malloc_check): Remove variable.
11971 (__malloc_check_init): Adjust.
11972 (malloc_set_state): Update comment.
11973 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
11974 declarations.
11975
11976 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
11977
11978 [BZ #23140]
11979 * localedata/locales/ast_ES (mon): Rename to...
11980 (alt_mon): This.
11981 (mon): Import from CLDR (genitive case).
11982
11983 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
11984 Jakub Sitnicki <jkbs@redhat.com>
11985
11986 [BZ #21812]
11987 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
11988 on NLM_F_DUMP_INTR.
11989
11990 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
11991
11992 * manual/llio.texi: Remove spurious space.
11993
11994 2018-06-28 Florian Weimer <fweimer@redhat.com>
11995
11996 [BZ #23349]
11997 * time/bits/types/struct_timespec.h: Change header inclusion guard to
11998 _STRUCT_TIMESPEC.
11999
12000 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12001
12002 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12003 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12004 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12005 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12006 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12007 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12008 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12009
12010 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12011
12012 [BZ #23266]
12013 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12014 Copy and null-terminate entries that are not terminated, in
12015 addition to empty ones.
12016
12017 2018-06-27 Florian Weimer <fweimer@redhat.com>
12018
12019 [BZ #18023]
12020 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12021 (extend_alloca_account): Remove.
12022 * manual/stdio.texi (Variable Arguments Output): Update comment.
12023
12024 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12025
12026 * nptl/sockperf.c: Remove file.
12027
12028 2018-06-27 Florian Weimer <fweimer@redhat.com>
12029
12030 [BZ #18023]
12031 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12032 scratch_buffer instead of extend_alloca.
12033
12034 2018-06-27 Florian Weimer <fweimer@redhat.com>
12035
12036 [BZ #18023]
12037 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12038 scratch_buffer instead of extend_alloca. Update comments.
12039
12040 2018-06-27 Florian Weimer <fweimer@redhat.com>
12041
12042 [BZ #18023]
12043 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12044 instead of extend_alloca.
12045
12046 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12047
12048 [BZ #13888]
12049 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12050 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12051 /tmp.
12052 * scripts/test-installation.pl: Put temporary files in build
12053 directory, not /tmp.
12054 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12055 (CFLAGS-bug4.c): Likewise.
12056 (CFLAGS-bug5.c): Likewise.
12057 (CFLAGS-test-fseek.c): Likewise.
12058 (CFLAGS-test-popen.c): Likewise.
12059 (CFLAGS-test_rdwr.c): Likewise.
12060 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12061 /tmp.
12062 * stdio-common/bug4.c (main): Likewise.
12063 * stdio-common/bug5.c (main): Likewise.
12064 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12065 * stdio-common/test-popen.c (do_test): Likewise.
12066 * stdio-common/test_rdwr.c (main): Likewise.
12067
12068 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12069
12070 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12071 (sem_open): Set sem.newsem.pad to zero for valgrind.
12072
12073 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12074
12075 [BZ #20251]
12076 * NEWS: Mention fcntl64 addition.
12077 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12078 * login/utmp_file.c: Likewise.
12079 * sysdeps/posix/fdopendir.c: Likewise.
12080 * sysdeps/posix/opendir.c: Likewise.
12081 * sysdeps/unix/pt-fcntl.c: Likewise.
12082 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12083 __fcntl64_nocancel_adjusted): New prototype.
12084 (__fcntl_nocancel_adjusted): Remove prototype.
12085 * io/Makefile (routines): Add fcntl64.
12086 (CFLAGS-fcntl64.c): New rule.
12087 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12088 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12089 * io/fcntl.h (fcntl64): Add prototype and redirect if
12090 __USE_FILE_OFFSET64 is defined.
12091 * io/fcntl64.c: New file.
12092 * manual/llio.text: Add a note for which commands fcntl acts a
12093 cancellation point.
12094 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12095 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12096 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12097 New symbols.
12098 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12099 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12100 non-LFS case.
12101 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12102 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12103 to __fcntl64_nocancel.
12104 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12105 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12106 to __fcntl64_nocancel.
12107 * sysdeps/generic/not-cancel.h: Likewise.
12108 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12109 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12110 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12111 (fcntl64): New symbol.
12112 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12113 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12114 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12117 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12118 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12119 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12120 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12121 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12122 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12123 fcntl64): Likewise.
12124 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12125 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12126 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12127 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12128 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12129 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12130 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12131 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12132 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12134 Likewise.
12135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12136 Likewise.
12137 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12138 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12139 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12140
12141 2018-06-26 Florian Weimer <fweimer@redhat.com>
12142
12143 Run thread shutdown functions in an explicit order.
12144 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12145 definition.
12146 (__libc_thread_freeres): Call thread shutdown functions
12147 explicitly.
12148 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12149 * include/string.h (__strerror_thread_freeres): Declare.
12150 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12151 arena_thread_freeres. No longer static. Remove thread shutdown
12152 hook registration.
12153 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12154 Declare.
12155 * resolv/res-close.c (__res_thread_freeres): Renamed from
12156 res_thread_freeres. No longer static. Remove thread shutdown
12157 hook registration.
12158 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12159 * resolv/resolv_conf.c (freeres): Remove incorrect section
12160 attribute and use libc_freeres_fn.
12161 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12162 strerror_thread_freeres. No longer static. Remove thread
12163 shutdown hook registration.
12164 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12165 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12166 shutdown hook registration.
12167 * Makerules (shlib.lds): Do not provide section boundary symbols
12168 for __libc_thread_subfreeres.
12169 * manual/memory.texi (Basic Allocation): Update comment.
12170
12171 2018-06-26 Florian Weimer <fweimer@redhat.com>
12172
12173 Remove always-defined _RPC_THREAD_SAFE_ macro.
12174 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12175 Do not define _RPC_THREAD_SAFE_.
12176 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12177 conditional.
12178 * sunrpc/clnt_perr.c: Likewise.
12179 * sunrpc/clnt_raw.c: Likewise.
12180 * sunrpc/clnt_simp.c: Likewise.
12181 * sunrpc/key_call.c: Likewise.
12182 * sunrpc/rpc_common.c: Likewise.
12183 * sunrpc/rpc_main.c: Likewise.
12184 * sunrpc/rpc_thread.c: Likewise.
12185 * sunrpc/svc.c: Likewise.
12186 * sunrpc/svc_raw.c: Likewise.
12187 * sunrpc/svc_simple.c: Likewise.
12188 * sumrpc/svcauth_des.c: Likewise.
12189
12190 2018-06-26 Florian Weimer <fweimer@redhat.com>
12191
12192 * libio/Makefile (tests-internal): Add tst-vtables,
12193 tst-vtables-interposed.
12194 * libio/tst-vtables.c: New file.
12195 * libio/tst-vtables-common.c: Likewise.
12196 * libio/tst-vtables-interposed.c: Likewise.
12197
12198 2018-06-26 Florian Weimer <fweimer@redhat.com>
12199
12200 * support/support_test_main.c (support_test_main): Only call
12201 setvbuf if not disables.
12202 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12203 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12204
12205 2018-06-26 Florian Weimer <fweimer@redhat.com>
12206
12207 [BZ #23313]
12208 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12209
12210 2018-06-25 Florian Weimer <fweimer@redhat.com>
12211
12212 [BZ #18023]
12213 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12214 Use struct scratch_buffer instead of extend_alloca.
12215
12216 2018-06-25 Florian Weimer <fweimer@redhat.com>
12217
12218 [BZ #18023]
12219 * nss/getent.c (initgroups_keys): Use dynarray instead of
12220 extend_alloca.
12221
12222 2018-06-25 Florian Weimer <fweimer@redhat.com>
12223
12224 [BZ #18023]
12225 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12226 Use struct scratch_buffer instead of extend_alloca.
12227
12228 2018-06-25 Florian Weimer <fweimer@redhat.com>
12229
12230 [BZ #18023]
12231 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12232 back to malloc directly, without stack allocations.
12233
12234 2018-06-25 Florian Weimer <fweimer@redhat.com>
12235
12236 [BZ #18023]
12237 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12238 of extend_alloca.
12239
12240 2018-06-25 Florian Weimer <fweimer@redhat.com>
12241
12242 [BZ #18023]
12243 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12244 of extend_alloca.
12245 * nscd/hstcache.c (addhstbyX): Likewise.
12246 * nscd/pwdcache.c (addpwbyX): Likewise.
12247 * nscd/servicescache.c (addservbyX): Likewise.
12248
12249 2018-06-25 Florian Weimer <fweimer@redhat.com>
12250
12251 [BZ #18023]
12252 * nscd/connections.c (read_cmdline): New function.
12253 (restart): Use it. Update comment.
12254
12255 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12256
12257 [BZ #23140]
12258 * localedata/locales/csb_PL (mon): Rename to...
12259 (alt_mon): This.
12260 (abmon): Rename to...
12261 (ab_alt_mon): This.
12262 (mon): Add with proper genitive forms, copy from Wikipedia.
12263 (abmon): Likewise.
12264
12265 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12266
12267 [BZ #19485]
12268 * localedata/locales/csb_PL (mon): Fix typos:
12269 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12270 (yesstr): Add, value is "jo".
12271 (nostr): Add, value is "nié".
12272
12273 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12274
12275 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12276 all log1p and significand functions on m680x0.
12277 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12278 of s_significand.c..
12279 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12280 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12281 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12282 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12283 s_log1p.c and include it..
12284
12285 2018-06-21 Vincent Chen <vincentc@andestech.com>
12286
12287 * elf/elf.h (R_NDS32_NONE): New define.
12288 (R_NDS32_32_RELA): Likewise.
12289 (R_NDS32_COPY): Likewise.
12290 (R_NDS32_GLOB_DAT): Likewise.
12291 (R_NDS32_JUMP_SLOT): Likewise.
12292 (R_NDS32_RELATIVE): Likewise.
12293 (R_NDS32_TLS_TPOFF): Likewise.
12294 (R_NDS32_TLS_DESC): Likewise.
12295
12296 2018-06-21 Mark Wielaard <mark@klomp.org>
12297
12298 * elf/elf.h (R_BPF_MAP_FD): Removed.
12299 (R_BPF_64_64, R_BPF_64_32): New.
12300
12301 2018-06-21 Florian Weimer <fweimer@redhat.com>
12302
12303 [BZ #23253]
12304 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12305 Renamed from libc_feholdsetround_ctx.
12306 (default_libc_feresetround_ctx): Renamed from
12307 libc_feresetround_ctx.
12308 (default_libc_feholdsetround_noex_ctx): Renamed from
12309 libc_feholdsetround_noex_ctx.
12310 (default_libc_feresetround_noex_ctx): Renamed from
12311 libc_feresetround_noex_ctx.
12312 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12313 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12314 forwardning to the old implementations under the new names.
12315 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12316 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12317 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12318 (libc_feresetround_ctx): Forward to default implements for i386
12319 and MATH_SET_BOTH_ROUNDING_MODES.
12320 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12321 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12322
12323 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12324
12325 * string/tst-cmp.c: Include <libc-diag.h>.
12326 (strncmp_max): Disable -Wstringop-overflow= around call to
12327 strncmp.
12328 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12329 strncasecmp.
12330
12331 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12332 (main): Disable -Wunused-value around call to strpbrk.
12333 * string/bug-strspn1.c: Include <libc-diag.h>.
12334 (main): Disable -Wunused-value around call to strspn.
12335
12336 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12337 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12338
12339 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12340 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12341
12342 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12343
12344 * math/Makefile (libm-calls): Move s_significandF to...
12345 (gen-libm-calls): ... here.
12346 * math/s_significand_template.c: New file.
12347 * math/s_significand.c: Removed.
12348 * math/s_significandf.c: Removed.
12349 * math/s_significandl.c: Removed.
12350 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12351 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12352
12353 * math/e_exp2_template.c (declare_mgen_finite_alias,
12354 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12355 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12356 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12357
12358 2018-06-20 Florian Weimer <fweimer@redhat.com>
12359
12360 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12361
12362 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12363
12364 [BZ #23280]
12365 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12366 floating-point number to strtod functions rather than possibly
12367 negating result of those functions.
12368 * stdio-common/tst-scanf-round.c: New file.
12369 * stdio-common/Makefile (tests): Add tst-scanf-round.
12370 ($(objpfx)tst-scanf-round): Depend on $(libm).
12371
12372 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12373
12374 * sysdeps/mach/hurd/localplt.data: Move to...
12375 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12376 R_386_GLOB_DAT like on Linux i386.
12377
12378 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12379
12380 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12381 (SHM_STAT_ANY): New macro.
12382 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12383 (SHM_STAT_ANY): Likewise.
12384 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12385 (SHM_STAT_ANY): Likewise.
12386 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12387 (SHM_STAT_ANY): Likewise.
12388 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12389 (SHM_STAT_ANY): Likewise.
12390 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12391 (SHM_STAT_ANY): Likewise.
12392 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12393 (SHM_STAT_ANY): Likewise.
12394 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12395 (SHM_STAT_ANY): Likewise.
12396 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12397 (SHM_STAT_ANY): Likewise.
12398 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12399 (SHM_STAT_ANY): Likewise.
12400 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12401 (SHM_STAT_ANY): Likewise.
12402 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12403 (SHM_STAT_ANY): Likewise.
12404
12405 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12406 (SEM_STAT_ANY): New macro.
12407 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12408 (SEM_STAT_ANY): Likewise.
12409 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12410 (SEM_STAT_ANY): Likewise.
12411 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12412 (SEM_STAT_ANY): Likewise.
12413 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12414 (SEM_STAT_ANY): Likewise.
12415 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12416 (SEM_STAT_ANY): Likewise.
12417 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12418 (SEM_STAT_ANY): Likewise.
12419 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12420 (SEM_STAT_ANY): Likewise.
12421 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12422 (SEM_STAT_ANY): Likewise.
12423 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12424 (SEM_STAT_ANY): Likewise.
12425
12426 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12427 (MSG_STAT_ANY): New macro.
12428 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12429 (MSG_STAT_ANY): Likewise.
12430 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12431 (MSG_STAT_ANY): Likewise.
12432 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12433 (MSG_STAT_ANY): Likewise.
12434 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12435 (MSG_STAT_ANY): Likewise.
12436 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12437 (MSG_STAT_ANY): Likewise.
12438 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12439 (MSG_STAT_ANY): Likewise.
12440 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12441 (MSG_STAT_ANY): Likewise.
12442 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12443 (MSG_STAT_ANY): Likewise.
12444 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12445 (MSG_STAT_ANY): Likewise.
12446
12447 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12448 (MAP_TYPE): Change value to 0x2b.
12449
12450 2018-06-18 Florian Weimer <fweimer@redhat.com>
12451
12452 [BZ #15722]
12453 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12454 socket with SOCK_CLOEXEC.
12455
12456 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12457
12458 [BZ #23303]
12459 * sysdeps/powerpc/powerpc64/le/Makefile
12460 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12461 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12462 (gnulib-tests): Also add $(f128-loader-link) for
12463 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12464
12465 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12466
12467 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12468 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12469 of sendfile.
12470 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12471 (sendfile64): New strong alias.
12472 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12473 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12474 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12475 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12476 attribute.
12477 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12478 ___pthread_get_cleanup_stack.
12479 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12480 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12481 * mach/shortcut.awk: Make syscall stubs include
12482 <mach-shortcuts-hidden.h> and add hidden definition.
12483 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12484 (__mach_msg): Add hidden prototype.
12485 * mach/msg.c: Include <mach.h>.
12486 (__mach_msg): Add hidden definition.
12487 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12488 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12489 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12490 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12491 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12492 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12493 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12494 prototype and definition.
12495 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12496 hidden target for _hurd_self_sigstate.
12497
12498 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12499
12500 [BZ #23007]
12501 * stdlib/tst-strtod-nan-sign-main.c: New file.
12502 * stdlib/tst-strtod-nan-sign.c: Likewise.
12503 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12504 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12505 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12506 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12507 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12508
12509 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12510
12511 [BZ #23007]
12512 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12513 appropriate sign.
12514
12515 2018-06-14 Florian Weimer <fweimer@redhat.com>
12516
12517 [BZ #23290]
12518 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12519 that the result stays within the ISO-8859-1 range.
12520 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12521 characters are defined in IBM273.
12522
12523 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12524
12525 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12526 __mach_task_self): Remove attribute_hidden.
12527
12528 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12529
12530 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12531 ignore -Wrestrict for one test.
12532
12533 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12534 Szabolcs Nagy <szabolcs.nagy@arm.com>
12535
12536 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12537
12538 2018-06-14 Florian Weimer <fweimer@redhat.com>
12539
12540 * scripts/update-abilist.sh: Accept empty list of files to patch.
12541
12542 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12543
12544 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12545 test-xfail-check-abi-libmachuser): Add.
12546 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12547 __libc_read and __libc_write to __read and __write.
12548 * sysdeps/hurd/include/hurd/port.h: New file.
12549 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12550 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12551 __thread_switch, __evc_wait): Move declarations to...
12552 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12553 attribute_hidden.
12554 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12555 use PLT to call _hurd_self_sigstate.
12556
12557 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12558
12559 [BZ #23279]
12560 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12561 MAX_EXP as overflowing.
12562 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12563 overflow flag.
12564 (round_str): Output also whether result overflows in each rounding
12565 mode.
12566 * stdlib/tst-strtod-round-data: Add more tests.
12567 * stdlib/tst-strtod-round-data.h: Regenerated.
12568 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12569 (TEST): Handle extra arguments for overflow flags.
12570 (struct test_overflow): New type.
12571 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12572 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12573 (test_in_one_mode): Take argument with overflow information.
12574 (do_test): Update calls to test_in_one_mode.
12575
12576 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12577
12578 * elf/dl-load (_dl_dst_substitute): Correct comment.
12579 (_dl_dst_count): Likewise.
12580
12581 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12582 lll_futex_timed_wait.
12583
12584 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12585
12586 [BZ #23277]
12587 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12588 attribute.
12589 * math/test-nan-const.c: New file.
12590 * math/Makefile (tests): Add test-nan-const.
12591 (CFLAGS-test-nan-const.c): New variable.
12592
12593 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12594
12595 * benchtests/scripts/compare_strings.py (process_results): Add
12596 funcs argument. Compare only functions which are selected.
12597 (main): Check if base function is among selected functions.
12598 Pass selected functions to process_results.
12599 (__main__): Add -f/--functions argument.
12600
12601 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12602 Hongbo Zhang <hongbo.zhang@linaro.org>
12603
12604 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12605 __memcpy_falkor for phecda core.
12606 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12607 __memmove_falkor for phecda core.
12608 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12609 __memset_falkor for phecda core.
12610 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12611 for phecda core.
12612 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12613 macro to identify phecda core.
12614
12615 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12616 Andreas Schwab <schwab@suse.de>
12617 Dmitry V. Levin <ldv@altlinux.org>
12618 Florian Weimer <fweimer@redhat.com>
12619
12620 [BZ #23102]
12621 [BZ #21942]
12622 [BZ #18018]
12623 [BZ #23259]
12624 CVE-2011-0536
12625 * elf/dl-dst.h: Remove DL_DST_COUNT.
12626 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12627 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12628 (is_dst): Comment. Support ELF gABI.
12629 (_dl_dst_count): Comment. Simplify and count DSTs.
12630 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12631 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12632 locals.
12633
12634 2018-06-12 Zack Weinberg <zackw@panix.com>
12635
12636 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12637 * sysdeps/unix/sysv/linux/dl-sysdep.c
12638 Include not-cancel.h. Use __close_nocancel instead of __close,
12639 __open64_nocancel instead of __open, __read_nocancel instead of
12640 __libc_read, and __write_nocancel instead of __libc_write.
12641
12642 * csu/check_fds.c (check_one_fd)
12643 * sysdeps/posix/fdopendir.c (__fdopendir)
12644 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12645 instead of __fcntl and/or __libc_fcntl.
12646
12647 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12648 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12649 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12650 Use __open64_nocancel instead of __open_nocancel.
12651
12652 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12653 hidden_proto declarations to the end and issue them if either
12654 IS_IN(libc) or IS_IN(rtld).
12655 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12656 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12657 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12658 read_nocancel, waitpid_nocancel, write_nocancel.
12659
12660 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12661 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12662 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12663
12664 * nptl/pt-fcntl.c: New file.
12665 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12666 (libpthread-routines): Add pt-fcntl.
12667 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12668 (__libc_fcntl): Remove attribute_hidden.
12669 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12670 __fcntl_nocancel_adjusted, not fcntl_common.
12671 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12672 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12673 to fcntl_nocancel.c.
12674 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12677 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12678
12679 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12680 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12681 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12682 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12683 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12684 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12685 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12686 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12687 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12688 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12689 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12690 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12691 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12692 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12693 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12694 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12695 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12696 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12697 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12698 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12699
12700 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12701 libpthread-routines.
12702 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12703 defines nothing.
12704
12705 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12706 __libc_read, and __write instead of __libc_write. Define
12707 __open64 in addition to __open.
12708
12709 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12710
12711 [BZ #23250]
12712 [BZ #10686]
12713 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12714 to _private_tm[3] and add __glibc_reserved2.
12715 Add _Static_assert of offset of __private_ss == 0x30.
12716 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12717 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12718
12719 2018-06-12 Florian Weimer <fweimer@redhat.com>
12720
12721 x86: Make strncmp usable from rtld.
12722 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12723 __strncmp_ia32 if in libc (and not in rtld).
12724 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12725 strncmp if not in libc (and not to __strncmp_sse2).
12726
12727 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12728
12729 [BZ #23140]
12730 * localedata/locales/gd_GB (mon): Rename to...
12731 (alt_mon): This.
12732 (mon): Import from CLDR (genitive case).
12733 * localedata/locales/hsb_DE (mon): Rename to...
12734 (alt_mon): This.
12735 (mon): Import from CLDR (genitive case).
12736 * localedata/locales/wa_BE (mon): Rename to...
12737 (alt_mon): This.
12738 (mon): Add, fill with the proper genitive forms, but CLDR data
12739 is incomplete; completed according to the comments in this file.
12740 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12741
12742 * localedata/locales/wa_BE (country_name): Reword
12743 "Beljike" -> "Beldjike".
12744
12745 2018-06-11 Joseph Myers <joseph@codesourcery.com>
12746
12747 [BZ #23272]
12748 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
12749 cases of non-finite arguments.
12750 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12751
12752 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
12753
12754 [BZ #23174]
12755 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
12756
12757 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12758
12759 [BZ #23264]
12760 * include/unistd.h (__execvpex): New prototype.
12761 * posix/Makefile (tests): Add tst-spawn4.
12762 (tests-internal): Add tst-spawn4-compat.
12763 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
12764 * posix/tst-spawn4-compat.c: New file.
12765 * posix/tst-spawn4.c: Likewise.
12766 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
12767 binaries as shell scripts.
12768 * sysdeps/posix/spawni.c (__spawni): Likewise.
12769
12770 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
12771
12772 [BZ #23145]
12773 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
12774 ($(all-built-dso:=.dynsym): New target.
12775 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
12776 ($(objpfx)check-initfini.out): New target.
12777 (generated): Add check-initfini.out.
12778 * scripts/check-initfini.awk: New file.
12779 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
12780 (_fini): Likewise.
12781 * sysdeps/alpha/crti.S (_init): Mark as hidden.
12782 (_fini): Likewise.
12783 * sysdeps/arm/crti.S (_init): Mark as hidden.
12784 (_fini): Likewise.
12785 * sysdeps/hppa/crti.S (_init): Mark as hidden.
12786 (_fini): Likewise.
12787 * sysdeps/i386/crti.S (_init): Mark as hidden.
12788 (_fini): Likewise.
12789 * sysdeps/ia64/crti.S (_init): Mark as hidden.
12790 (_fini): Likewise.
12791 * sysdeps/m68k/crti.S (_init): Mark as hidden.
12792 (_fini): Likewise.
12793 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
12794 (_fini): Likewise.
12795 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
12796 (_fini): Likewise.
12797 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
12798 (_fini): Likewise.
12799 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
12800 (_fini): Likewise.
12801 * sysdeps/nios2/crti.S (_init): Mark as hidden.
12802 (_fini): Likewise.
12803 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
12804 (_fini): Likewise.
12805 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
12806 (_fini): Likewise.
12807 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
12808 (_fini): Likewise.
12809 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
12810 (_fini): Likewise.
12811 * sysdeps/sh/crti.S (_init): Mark as hidden.
12812 (_fini): Likewise.
12813 * sysdeps/sparc/crti.S (_init): Mark as hidden.
12814 (_fini): Likewise.
12815 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
12816 (_fini): Likewise.
12817
12818 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12819
12820 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
12821 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
12822 and TF redirection to KFtype and KF only when the default
12823 long double type is not the IEEE 128-bit floating point type.
12824
12825 2018-06-05 Joseph Myers <joseph@codesourcery.com>
12826
12827 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
12828 macro.
12829 (HWCAP_USCAT): Likewise.
12830 (HWCAP_ILRCPC): Likewise.
12831 (HWCAP_FLAGM): Likewise.
12832 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12833 Increase to 28.
12834 (_dl_aarch64_cap_flags): Add new flag names.
12835
12836 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
12837 (MAP_FIXED_NOREPLACE): New macro.
12838 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
12839 (MAP_FIXED_NOREPLACE): Likewise.
12840 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
12841 (MAP_FIXED_NOREPLACE): Likewise.
12842 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12843 (MAP_FIXED_NOREPLACE): Likewise.
12844 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
12845 (MAP_FIXED_NOREPLACE): Likewise.
12846 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
12847 (MAP_FIXED_NOREPLACE): Likewise.
12848 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
12849 (MAP_FIXED_NOREPLACE): Likewise.
12850 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
12851 (MAP_FIXED_NOREPLACE): Likewise.
12852 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
12853 (MAP_FIXED_NOREPLACE): Likewise.
12854 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
12855 (MAP_FIXED_NOREPLACE): Likewise.
12856 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
12857 (MAP_FIXED_NOREPLACE): Likewise.
12858 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
12859 (MAP_FIXED_NOREPLACE): Likewise.
12860 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
12861 (MAP_FIXED_NOREPLACE): Likewise.
12862 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
12863 (MAP_FIXED_NOREPLACE): Likewise.
12864 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
12865 (MAP_FIXED_NOREPLACE): Likewise.
12866
12867 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12868 version to 4.17.
12869
12870 2018-06-04 Joseph Myers <joseph@codesourcery.com>
12871
12872 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12873 version to 4.17
12874
12875 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12876
12877 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
12878 int.
12879 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
12880
12881 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12882
12883 * benchtests/scripts/compare_string.py: (process_results) Catch
12884 exception in non-existent base_func and catch exception in
12885 non-existent attribute.
12886 (parse_file) Catch exception if input file does not exist.
12887
12888 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12889
12890 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
12891 options to avoid diff calculation and omit header, respectively.
12892 (main): process --no-diff and --no-header
12893
12894 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12895 H.J. Lu <hongjiu.lu@intel.com>
12896
12897 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12898 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
12899 wcsncmp-sse2.
12900 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
12901 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
12902 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
12903 and __wcsncmp_sse2.
12904 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
12905 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
12906 AVX unaligned load is fast and vzeroupper is preferred.
12907 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
12908 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
12909 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
12910 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
12911 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
12912 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
12913 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
12914 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
12915 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
12916 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
12917 is undefined.
12918
12919 2018-06-01 Florian Weimer <fweimer@redhat.com>
12920
12921 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
12922 configuring with --disable-multi-arch, building with
12923 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
12924 Haswell-era CPU.
12925
12926 2018-06-01 Florian Weimer <fweimer@redhat.com>
12927
12928 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
12929 results from building with “-march=x86-64 -mtune=generic
12930 -mfpmath=sse” and running on a Haswell-era CPU.
12931
12932 2018-06-01 Joseph Myers <joseph@codesourcery.com>
12933
12934 [BZ #18473]
12935 * soft-fp/sqrttf2.c: Remove file.
12936 * soft-fp/sqrtdf2.c: Move to ....
12937 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
12938 <shlib-compat.h>.
12939 (__sqrtdf2): Make conditional on
12940 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12941 symbol.
12942 * soft-fp/sqrtsf2.c: Move to ....
12943 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
12944 <shlib-compat.h>.
12945 (__sqrtsf2): Make conditional on
12946 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
12947 symbol.
12948 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
12949 (gcc-double-routines): Remove sqrtdf2.
12950 (gcc-quad-routines): Remove sqrttf2.
12951 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
12952 Do not filter out sqrtsf2 and sqrtdf2.
12953 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12954 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
12955
12956 2018-06-01 Florian Weimer <fweimer@redhat.com>
12957
12958 * sysdeps/generic/libcidn.abilist: Remove file.
12959
12960 2018-06-01 Florian Weimer <fweimer@redhat.com>
12961
12962 [BZ #23236]
12963 * libio/strfile.h (struct _IO_str_fields): Rename members to
12964 discourage their use and add comment.
12965 (_IO_STR_DYNAMIC): Remove unused macro.
12966 * libio/strops.c (_IO_str_init_static_internal): Do not use
12967 callback pointers. Call malloc and free.
12968 (_IO_str_overflow): Do not use callback pointers. Call malloc
12969 and free.
12970 (enlarge_userbuf): Likewise.
12971 (_IO_str_finish): Call free.
12972 * libio/wstrops.c (_IO_wstr_init_static): Initialize
12973 _allocate_buffer_unused.
12974 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
12975 and free.
12976 (enlarge_userbuf): Likewise.
12977 (_IO_wstr_finish): Call free.
12978 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
12979 _allocate_buffer_unused, _free_buffer_unused.
12980 * libio/memstream.c (__open_memstream): Likewise.
12981 * libio/vasprintf.c (_IO_vasprintf): Likewise.
12982 * libio/wmemstream.c (open_wmemstream): Likewise.
12983
12984 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12985
12986 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
12987 AMD Ryzen 7 1800X.
12988
12989 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12990
12991 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
12992 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
12993 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
12994 New file.
12995 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
12996 Likewise.
12997 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
12998
12999 2018-05-29 Florian Weimer <fweimer@redhat.com>
13000
13001 * support/Makefile (libsupport-routines): Add
13002 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13003 xpthread_barrierattr_setpshared.
13004 * support/xpthread_barrierattr_destroy.c: New file.
13005 * support/xpthread_barrierattr_init.c: Likewise.
13006 * support/xpthread_barrierattr_setpshared.c: Likewise.
13007
13008 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13009
13010 [BZ #23206]
13011 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13012 _r_debug and update DT_DEBUG for debugger.
13013
13014 2018-05-29 Florian Weimer <fweimer@redhat.com>
13015
13016 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13017 (tst-strtod5i.out): Likewise.
13018
13019 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13020
13021 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13022 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13023 (sparc64-quad-routines): New variable. Moved from ....
13024 [$(subdir) = soft-fp] (sysdep_routines): Add
13025 $(sparc64-quad-routines). Moved from ....
13026 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13027 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13028 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13029 moved from ....
13030 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13031 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13032 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13033 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13034 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13035 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13036 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13037 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13038 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13039 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13040 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13041 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13042 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13043 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13044 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13045 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13046 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13047 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13048 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13049 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13050 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13051 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13052 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13053 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13054 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13055 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13056 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13057 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13058 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13059 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13060 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13061 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13062 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13063 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13064 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13065 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13066 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13067 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13068 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13069 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13070 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13071 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13072 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13073 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13074 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13075 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13076 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13077 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13078 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13079 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13080 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13081 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13082 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13083 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13084 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13085 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13086 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13087 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13088
13089 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13090 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13091 (sparc32-quad-routines): New variable. Moved from ....
13092 [$(subdir) = soft-fp] (sysdep_routines): Add
13093 $(sparc32-quad-routines). Moved from ....
13094 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13095 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13096 moved from ....
13097 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13098 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13099 * sysdeps/sparc/sparc32/q_add.c: ... here.
13100 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13101 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13102 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13103 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13104 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13105 * sysdeps/sparc/sparc32/q_div.c: ... here.
13106 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13107 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13108 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13109 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13110 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13111 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13112 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13113 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13114 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13115 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13116 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13117 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13118 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13119 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13120 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13121 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13122 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13123 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13124 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13125 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13126 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13127 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13128 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13129 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13130 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13131 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13132 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13133 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13134 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13135 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13136 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13137 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13138 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13139 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13140 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13141 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13142 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13143 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13144 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13145 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13146 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13147 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13148 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13149 * sysdeps/sparc/sparc32/q_util.c: ... here.
13150 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13151 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13152 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13153 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13154
13155 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13156 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13157
13158 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13159 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13160 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13161 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13162
13163 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13164
13165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13166 powerpc/soft-fp.
13167 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13168 Likewise.
13169 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13170 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13171
13172 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13173
13174 [BZ #23171]
13175 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13176 double version.
13177
13178 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13179
13180 * sysdeps/sh/Implies: Remove sh/soft-fp.
13181 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13182 * sysdeps/sh/sfp-machine.h: ... here.
13183
13184 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13185
13186 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13187 (__mempcpy_erms): Skip zero length.
13188 (__memmove_erms): Likewise.
13189 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13190 (__memset_erms): Likewise.
13191
13192 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13193
13194 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13195 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13196 Add functions moved from ....
13197 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13198 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13199 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13200 from ....
13201 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13202 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13203 * sysdeps/alpha/e_sqrtl.c: ... here.
13204 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13205 * sysdeps/alpha/local-soft-fp.h: ... here.
13206 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13207 * sysdeps/alpha/ots_add.c: ... here.
13208 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13209 * sysdeps/alpha/ots_cmp.c: ... here.
13210 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13211 * sysdeps/alpha/ots_cmpe.c: ... here.
13212 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13213 * sysdeps/alpha/ots_cvtqux.c: ... here.
13214 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13215 * sysdeps/alpha/ots_cvtqx.c: ... here.
13216 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13217 * sysdeps/alpha/ots_cvttx.c: ... here.
13218 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13219 * sysdeps/alpha/ots_cvtxq.c: ... here.
13220 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13221 * sysdeps/alpha/ots_cvtxt.c: ... here.
13222 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13223 * sysdeps/alpha/ots_div.c: ... here.
13224 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13225 * sysdeps/alpha/ots_mul.c: ... here.
13226 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13227 * sysdeps/alpha/ots_nintxq.c: ... here.
13228 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13229 * sysdeps/alpha/ots_sub.c: ... here.
13230 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13231 * sysdeps/alpha/sfp-machine.h: ... here.
13232
13233 2018-05-23 Florian Weimer <fweimer@redhat.com>
13234
13235 [BZ #19728]
13236 [BZ #19729]
13237 [BZ #22247]
13238 CVE-2016-6261
13239 CVE-2016-6263
13240 CVE-2017-14062
13241 Switch to extern IDNA implementation (libidn2).
13242 * libidn: Remove subdirectory.
13243 * LICENSES: Do not mention licensing conditions for the removed
13244 libidn code.
13245 * config.h.in (HAVE_LIBIDN): Remove.
13246 * include/dlfcn.h (__libc_dlopen): Update comment.
13247 * include/idna.h: Remove file.
13248 * inet/Makefile (routines): Add idna.
13249 (tests-static, tests-internal): Add tst-idna_name_classify.
13250 (LOCALES): Generate locales for tests.
13251 (tst-idna_name_classify.out): Depend on generated locales.
13252 * inet/idna_name_classify.c: New file.
13253 * inet/tst-idna_name_classify.c: Likewise.
13254 * inet/net-internal.h (__idna_to_dns_encoding)
13255 (__idna_from_dns_encoding): Declare.
13256 * inet/net-internal.h (enum idna_name_classification): Define.
13257 (__idna_name_classify): Declare.
13258 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13259 __idna_from_dns_encoding.
13260 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13261 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13262 name as a fallback in case of encoding errors.
13263 (getnameinfo): Use DEPRECATED_NI_IDN.
13264 * inet/idna.c: New file.
13265 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13266 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13267 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13268 (modules-names): Add tst-no-libidn2.
13269 (extra-test-objs): Add tst-no-libidn2.os.
13270 (LDFLAGS-tst-no-libidn2.so): Set soname.
13271 (LOCALES): Set, and generate locales.
13272 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13273 (tst-resolv-ai_idn-latin1): Likewise.
13274 (tst-resolv-ai_idn-nolibidn2): Likewise.
13275 (tst-resolv-ai_idn.out): Depend on locales.
13276 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13277 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13278 tst-no-libidn2.so.
13279 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13280 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13281 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13282 * resolv/tst-resolv-ai_idn.c: New file.
13283 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13284 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13285 * resolv/tst-no-libidn2.c: Likewise.
13286 * support/support_format_addrinfo.c (format_ai_flags): Do not
13287 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13288 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13289 (gaih_inet): Call __idna_to_dns_encoding and
13290 __idna_from_dns_encoding, and use the original (punycode) name if
13291 __idna_from_dns_encoding fails due to an encoding error.
13292 (getaddrinfo): Use DEPRECATED_AI_IDN.
13293 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13294 * sysdeps/unix/inet/configure: Remove file.
13295 * sysdeps/unix/inet/configure.ac: Likewise.
13296
13297 2018-05-23 Florian Weimer <fweimer@redhat.com>
13298
13299 Implement allocate_once.
13300 * include/allocate_once.h: New file.
13301 * misc/allocate_once.c: Likewise.
13302 * misc/tst-allocate_once.c: Likewise.
13303 * misc/Makefile (routines): Add allocate_once.
13304 (tests-internal): Add tst-allocate_once.
13305 (generated): Add tst-allocate_once.mtrace,
13306 tst-allocate_once-mem.out.
13307 (tests-special): Add tst-allocate_once-mem.out.
13308 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13309 (tst-allocate_once-mem.out): Call mtrace.
13310 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13311
13312 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13313
13314 [BZ #23196]
13315 * string/test-memcpy.c (do_test1): New function.
13316 (test_main): Call it.
13317
13318 2018-05-23 Andreas Schwab <schwab@suse.de>
13319
13320 [BZ #23196]
13321 CVE-2018-11237
13322 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13323 (L(preloop_large)): Save initial destination pointer in %r11 and
13324 use it instead of %rax after the loop.
13325 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13326
13327 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13328
13329 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13330 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13331 -I../soft-fp. Moved from ....
13332 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13333 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13334 * sysdeps/aarch64/e_sqrtl.c: ... here.
13335 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13336 * sysdeps/aarch64/sfp-machine.h: ... here.
13337
13338 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13339 -Wmaybe-uninitialized around access to fq[0].
13340 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13341 Likewise.
13342
13343 [BZ #18471]
13344 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13345 aliases for non-libc case of versioned symbols.
13346 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13347 (llseek): Define as compat symbol if
13348 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13349 with link warning.
13350 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13351 Make into a compat symbol, disabled for minimum symbol version
13352 GLIBC_2.28 and later.
13353 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13354
13355 2018-05-22 Florian Weimer <fweimer@redhat.com>
13356
13357 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13358 not add -mpreferred-stack-boundary=4.
13359 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13360 (stack-align-test-flags): Likewise.
13361 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13362 Likewise.
13363 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13364 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13365 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13366 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13367 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13368 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13369 (CFLAGS-tst-align2.c): Likewise.
13370
13371 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13372
13373 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13374 (index_arch_Prefer_FSRM): Likewise.
13375 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13376 Also check Prefer_FSRM.
13377 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13378 Also return OPTIMIZE (erms) for Prefer_FSRM.
13379
13380 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13381
13382 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13383 (index_cpu_FSRM): Likewise.
13384 (reg_FSRM): Likewise.
13385
13386 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13387
13388 * math/gen-tgmath-tests.py: Import sys.
13389 (Tests.__init__): Initialize macros_seen.
13390 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13391 if requested to do so for this macro.
13392 (Tests.add_all_tests): Take argument for macro for which to
13393 generate tests.
13394 (Tests.check_macro_list): New function.
13395 (main): Handle check-list argument and argument specifying macro
13396 for which to generate tests.
13397 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13398 [PYTHON] (tgmath3-macro-tests): Likewise.
13399 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13400 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13401 not test-tgmath3.c.
13402 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13403 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13404 to CFLAGS.
13405 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13406 [PYTHON] ($(foreach
13407 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13408 rule.
13409 [PYTHON] (tests-special): Add
13410 $(objpfx)test-tgmath3-macro-list.out.
13411 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13412
13413 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13414 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13415 later.
13416
13417 [BZ #22639]
13418 * time/tzset.c (SECSPERDAY): Cast to time_t.
13419 * time/tst-y2039.c: New file.
13420 * time/Makefile (tests): Add tst-y2039.
13421
13422 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13423
13424 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13425 (PREFETCH_ONE_SET): Remove duplicate line.
13426
13427 2018-05-17 Florian Weimer <fweimer@redhat.com>
13428
13429 * sysdeps/generic/math-type-macros-double.h: Include
13430 <math-nan-payload-double.h> after <libm-alias-double.h>.
13431 * sysdeps/generic/math-type-macros-float.h: Include
13432 <math-nan-payload-float.h> after <libm-alias-float.h>.
13433 * sysdeps/generic/math-type-macros-float128.h: Include
13434 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13435 * sysdeps/generic/math-type-macros-ldouble.h: Include
13436 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13437
13438 2018-05-17 Andreas Schwab <schwab@suse.de>
13439
13440 * resolv/res_send.c (__res_context_send): Don't set errno when
13441 returing error after malloc failure.
13442
13443 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13444
13445 * nptl/allocatestack.c (allocate_stack): Remove the
13446 !__ASSUME_PRIVATE_FUTEX paths.
13447 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13448 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13449 Likewise.
13450 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13451 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13452 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13453 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13454 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13455 !__ASSUME_PRIVATE_FUTEX path.
13456 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13457 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13458 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13459 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13460 !__ASSUME_PRIVATE_FUTEX macros.
13461 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13462 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13463 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13464 * sysdeps/unix/sysv/linux/kernel-features.h
13465 (__ASSUME_PRIVATE_FUTEX): Removed.
13466
13467 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13468
13469 * math/Makefile (libm-narrow-fns): Add div.
13470 (libm-test-funcs-narrow): Likewise.
13471 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13472 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13473 * math/gen-auto-libm-tests.c (test_functions): Add div.
13474 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13475 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13476 (NARROW_DIV_TRIVIAL): Likewise.
13477 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13478 macro.
13479 (__ddivl): Likewise.
13480 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13481 ddiv.
13482 (CFLAGS-nldbl-ddiv.c): New variable.
13483 (CFLAGS-nldbl-fdiv.c): Likewise.
13484 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13485 __nldbl_ddivl.
13486 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13487 prototype.
13488 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13489 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13490 * math/auto-libm-test-in: Add tests of div.
13491 * math/auto-libm-test-out-narrow-div: New generated file.
13492 * math/libm-test-narrow-div.inc: New file.
13493 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13494 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13495 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13496 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13497 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13498 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13499 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13500 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13501 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13502 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13503 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13504 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13505 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13506 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13507 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13508 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13509 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13510 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13511 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13512 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13513 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13514 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13515 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13516 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13517 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13518 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13519 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13520 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13521 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13522 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13523 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13524 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13529 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13530 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13531 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13532 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13533 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13534 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13535 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13536 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13537
13538 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13539
13540 [BZ #23178]
13541 * nscd/nscd-client.h (sendfileall): Remove prototype.
13542 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13543 (handle_request): Use writeall instead of sendfileall.
13544 * nscd/aicache.c (addhstaiX): Likewise.
13545 * nscd/grpcache.c (cache_addgr): Likewise.
13546 * nscd/hstcache.c (cache_addhst): Likewise.
13547 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13548 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13549 * nscd/pwdcache.c (cache_addpw): Likewise.
13550 * nscd/servicescache.c (cache_addserv): Likewise.
13551 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13552 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13553 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13554 Remove define.
13555
13556 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13557
13558 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13559 Include <string/strncat.c>.
13560 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13561 alias.
13562 (__GI___strncat): New hidden alias.
13563
13564 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13565
13566 * sysdeps/mips/mips32/libm-test-ulps: Update.
13567 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13568
13569 2018-05-16 Florian Weimer <fweimer@redhat.com>
13570
13571 * support/Makefile (libsupport-routines): Add support_quote_blob,
13572 support_test_compare_blob.
13573 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13574 * support/check.h (TEST_COMPARE_BLOB): Define.
13575 (support_test_compare_blob): Declare.
13576 * support/support.h (support_quote_blob): Declare.
13577 * support/support_quote_blob.c: New file.
13578 * support/support_test_compare_blob.c: Likewise.
13579 * support/tst-support_quote_blob.c: Likewise.
13580 * support/tst-test_compare_blob.c: Likewise.
13581
13582 2018-05-16 Florian Weimer <fweimer@redhat.com>
13583
13584 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13585 of <strtod_nan_double.h>.
13586 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13587 instead of SET_MANTISSA.
13588 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13589 of include <strtod_nan_float.h>.
13590 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13591 instead of <strtod_nan_ldouble.h>.
13592 * stdlib/strtod_nan_double.h: Move to ...
13593 * sysdeps/generic/math-nan-payload-double.h: ... here.
13594 (FLOAT): Remove definition.
13595 (SET_MANTISSA): Rename to ...
13596 (SET_NAN_PAYLOAD): ... this.
13597 * stdlib/strtod_nan_float.h: Move to ...
13598 * sysdeps/generic/math-nan-payload-float.h: ... here.
13599 (FLOAT): Remove definition.
13600 (SET_MANTISSA): Rename to ...
13601 (SET_NAN_PAYLOAD): ... this.
13602 * sysdeps/generic/math-type-macros-double.h: Include
13603 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13604 instead of <math-svid-compat.h>.
13605 * sysdeps/generic/math-type-macros-float.h: Include
13606 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13607 instead of <math-svid-compat.h>.
13608 * sysdeps/generic/math-type-macros-float128.h: Include
13609 <math-nan-payload-float128.h>.
13610 * sysdeps/generic/math-type-macros-ldouble.h: Include
13611 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13612 instead of <math-svid-compat.h>.
13613 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13614 check for definition.
13615 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13616 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13617 Include <ieee754_float128.h>.
13618 (FLOAT): Remove definition.
13619 (SET_MANTISSA): Rename to ...
13620 (SET_NAN_PAYLOAD): ... this.
13621 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13622 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13623 Do not include <float128_private.h>.
13624 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13625 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13626 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13627 (FLOAT): Remove definition.
13628 (SET_MANTISSA): Rename to ...
13629 (SET_NAN_PAYLOAD): ... this.
13630 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13631 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13632 (FLOAT): Remove definition.
13633 (SET_MANTISSA): Rename to ...
13634 (SET_NAN_PAYLOAD): ... this.
13635 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13636 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13637 (FLOAT): Remove definition.
13638 (SET_MANTISSA): Rename to ...
13639 (SET_NAN_PAYLOAD): ... this.
13640 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13641 of "../stdlib/strtod_nan_double.h".
13642 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13643 of "../stdlib/strtod_nan_float.h".
13644 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13645 instead of "../stdlib/strtod_nan_ldouble.h".
13646 * manual/arith.texi (Parsing of Floats): Adjust comment.
13647
13648 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13649
13650 * math/Makefile (libm-narrow-fns): Add mul.
13651 (libm-test-funcs-narrow): Likewise.
13652 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13653 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13654 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13655 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13656 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13657 (NARROW_MUL_TRIVIAL): Likewise.
13658 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13659 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13660 macro.
13661 (__dmull): Likewise.
13662 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13663 dmul.
13664 (CFLAGS-nldbl-dmul.c): New variable.
13665 (CFLAGS-nldbl-fmul.c): Likewise.
13666 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13667 __nldbl_dmull.
13668 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13669 prototype.
13670 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13671 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13672 * math/auto-libm-test-in: Add tests of mul.
13673 * math/auto-libm-test-out-narrow-mul: New generated file.
13674 * math/libm-test-narrow-mul.inc: New file.
13675 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13676 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13677 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13678 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13679 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13680 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13681 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13682 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13683 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13684 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13685 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13686 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13687 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13688 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13689 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13690 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13691 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13692 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13693 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13694 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13695 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13696 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13697 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13698 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13699 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13700 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13701 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13702 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13703 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13704 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13705 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13706 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13707 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13711 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13712 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13713 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13714 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13715 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13716 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13717 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13718 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13719
13720 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13721
13722 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13723 with *%eax in call.
13724
13725 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13726
13727 * sysdeps/i386/ldsodefs.h: Removed.
13728 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13729 * sysdeps/x86/ldsodefs.h: This.
13730 (La_i86_regs): New.
13731 (La_i86_retval): Likewise.
13732 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13733 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13734
13735 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13736
13737 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13738 unnecessary testl.
13739
13740 2018-05-13 Alan Modra <amodra@gmail.com>
13741
13742 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
13743 R_PARISC_TLS_DTPOFF32 reloc addend.
13744
13745 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13746
13747 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
13748 * math/math.h: Restrict the prototype definition for the functions
13749 issignaling(_Float128) and iszero(_Float128); and template
13750 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
13751 __HAVE_FLOAT128_UNLIKE_LDBL.
13752 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
13753 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
13754 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
13755 __f128() constants; define the type _Float128 as long double;
13756 and reuse long double in __CFLOAT128.
13757
13758 2018-05-11 Joseph Myers <joseph@codesourcery.com>
13759
13760 * sysdeps/generic/math_private.h: Do not include
13761 <math-barriers.h>.
13762 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
13763 <math_private.h>.
13764 * math/fromfp.h: Include <math-barriers.h>.
13765 * math/math-narrow.h: Likewise.
13766 * math/s_nextafter.c: Likewise.
13767 * math/s_nexttowardf.c: Likewise.
13768 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
13769 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
13770 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
13771 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
13772 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13773 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13774 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13775 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13776 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13777 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13778 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13779 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13780 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13781 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13782 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13783 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13784 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13785 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13786 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13787 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13788 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13789 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13790 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13791 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13792 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13793 * sysdeps/ieee754/k_standardl.c: Likewise.
13794 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13795 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13796 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
13797 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13798 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13799 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13800 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13801 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13802 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13803 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13804 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13805 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13806 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13807 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13808 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13809 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13810 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13811 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13812 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13813 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13814 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
13815 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
13816
13817 2018-05-11 Florian Weimer <fweimer@redhat.com>
13818
13819 Use 64-bit epoch values in the time zone file parser.
13820 * include/time.h (internal_time_t): Define.
13821 (__tzfile_compute): Use it.
13822 * time/tzfile.c (struct leap): Use internal_time_t for epoch
13823 member.
13824 (transitions): Switch to internal_time_t.
13825 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
13826 types.
13827 (__tzfile_compute): Use internal_time_t for timer argument. Check
13828 for truncation before calling __offtime.
13829
13830 2018-05-11 Florian Weimer <fweimer@redhat.com>
13831
13832 [BZ #23166]
13833 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
13834 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
13835 Likewise.
13836 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
13837 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
13838 export without --enable-obsolete-rpc.
13839 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
13840 symbol. This should not have been exported, ever.
13841
13842 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
13843
13844 [BZ #23152]
13845 * localedata/locales/gd_GB (abmon): Fix typo in May:
13846 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
13847
13848 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13849
13850 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
13851 Use multiple registers to copy data in loop tail.
13852
13853 * sysdeps/aarch64/multiarch/memmove_falkor.S
13854 (__memmove_falkor): Use multiple registers to move data in
13855 loop tail.
13856
13857 2018-05-10 Joseph Myers <joseph@codesourcery.com>
13858
13859 * math/math-underflow.h: New file.
13860 * sysdeps/generic/math_private.h: Do not include <float.h>.
13861 (fabs_tg): Remove macro. Moved to math-underflow.h.
13862 (min_of_type_f): Likewise.
13863 (min_of_type_): Likewise.
13864 (min_of_type_l): Likewise.
13865 (min_of_type_f128): Likewise.
13866 (min_of_type): Likewise.
13867 (math_check_force_underflow): Likewise.
13868 (math_check_force_underflow_nonneg): Likewise.
13869 (math_check_force_underflow_complex): Likewise.
13870 * math/e_exp2_template.c: Include <math-underflow.h>.
13871 * math/k_casinh_template.c: Likewise.
13872 * math/s_catan_template.c: Likewise.
13873 * math/s_catanh_template.c: Likewise.
13874 * math/s_ccosh_template.c: Likewise.
13875 * math/s_cexp_template.c: Likewise.
13876 * math/s_clog10_template.c: Likewise.
13877 * math/s_clog_template.c: Likewise.
13878 * math/s_csin_template.c: Likewise.
13879 * math/s_csinh_template.c: Likewise.
13880 * math/s_csqrt_template.c: Likewise.
13881 * math/s_ctan_template.c: Likewise.
13882 * math/s_ctanh_template.c: Likewise.
13883 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13884 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13885 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13886 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13887 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13888 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13889 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13890 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13891 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13892 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13893 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13894 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13895 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13896 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13897 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13898 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13899 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13900 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13901 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13902 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13903 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13904 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13905 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13906 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
13907 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13908 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13909 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
13910 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13911 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13912 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13913 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13914 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13915 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13916 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
13917 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13918 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13919 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
13920 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13921 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13922 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
13923 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
13924 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
13925 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13926 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13927 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
13928 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13929 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13930 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13931 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13932 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13933 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13934 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13935 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13936 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13937 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13938 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13939 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13940 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13941 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13942 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13943 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13944 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13945 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13946 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13947 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13948 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13949 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13950 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13951 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13952 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13953 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13954 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13955 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
13956 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
13957 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13958 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13959 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13960 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13961 * sysdeps/x86/fpu/powl_helper.c: Likewise.
13962 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
13963 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
13964 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
13965 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
13966 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
13967
13968 2018-05-09 Joseph Myers <joseph@codesourcery.com>
13969
13970 * sysdeps/generic/math-barriers.h: New file.
13971 * sysdeps/generic/math_private.h [!math_opt_barrier]
13972 (math_opt_barrier): Move to math-barriers.h.
13973 [!math_opt_barrier] (math_force_eval): Likewise.
13974 * sysdeps/aarch64/fpu/math-barriers.h: New file.
13975 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
13976 math-barriers.h.
13977 (math_force_eval): Likewise.
13978 * sysdeps/alpha/fpu/math-barriers.h: New file.
13979 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
13980 math-barriers.h.
13981 (math_force_eval): Likewise.
13982 * sysdeps/x86/fpu/math-barriers.h: New file.
13983 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
13984 math-barriers.h.
13985 (math_force_eval): Likewise.
13986 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
13987 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
13988 multiple-include guard for rename.
13989 * sysdeps/powerpc/fpu/math-barriers.h: New file.
13990 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
13991 math-barriers.h.
13992 (math_force_eval): Likewise.
13993
13994 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
13995
13996 [BZ #22786]
13997 CVE-2018-11236
13998 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
13999 computation.
14000 * stdlib/Makefile (test-bz22786): New test.
14001 * stdlib/test-bz22786.c: New test.
14002
14003 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14004
14005 * include/math-narrow-eval.h: New file. Contents moved from ....
14006 * sysdeps/generic/math_private.h: ... here.
14007 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14008 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14009 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14010 * stdlib/strtod_l.c: Likewise.
14011 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14012 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14013 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14014 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14015 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14016 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14017 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14018 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14019 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14020 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14021 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14022 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14023 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14024 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14025 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14026 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14027 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14028 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14029 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14030 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14031 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14032 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14033 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14034 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14035 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14036 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14037 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14038 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14039 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14040
14041 2018-05-08 Andreas Schwab <schwab@suse.de>
14042
14043 * sysdeps/nptl/internaltypes.h: Fix comment.
14044
14045 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14046
14047 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14048 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14049 hidden.
14050
14051 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14052
14053 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14054 of I into loop header.
14055 * benchtests/bench-memmove-walk.c
14056 (test_main): Likewise.
14057
14058 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14059
14060 Revert:
14061 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14062 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14063
14064 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14065
14066 [BZ #20419]
14067 * elf/dl-load.c (open_verify): Fix stack overflow.
14068 * elf/Makefile (tst-big-note): New test.
14069 * elf/tst-big-note-lib.S: New.
14070 * elf/tst-big-note.c: New.
14071
14072 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14073
14074 * scripts/abilist.awk: Ignore absolute symbols.
14075 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14076 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14077 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14078 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14079 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14080 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14081 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14082 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14083 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14084 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14085 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14086 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14087 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14088 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14089 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14090 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14091 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14092 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14093 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14094 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14095 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14096 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14097 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14098 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14099 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14100 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14101 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14102 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14103 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14105 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14106 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14107 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14108 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14109 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14110 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14111 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14112 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14113 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14114 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14115 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14116 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14117 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14118 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14119 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14120 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14121 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14122 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14123 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14124 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14125 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14126 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14127 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14128 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14129 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14130 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14131 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14132 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14133 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14134 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14135 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14136 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14137 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14138 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14139 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14140 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14141 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14142 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14143 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14144 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14145 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14146 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14147 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14148 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14149 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14150 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14151 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14152 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14153 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14154 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14155 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14156 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14157 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14158 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14159 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14160 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14161 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14162 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14163 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14164 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14166 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14167 Likewise.
14168 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14169 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14181 Likewise.
14182 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14184 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14185 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14194 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14195 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14198 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14199 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14200 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14201 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14202 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14209 Likewise.
14210 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14212 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14213 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14214 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14215 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14216 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14217 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14218 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14219 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14220 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14221 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14222 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14223 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14224 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14225 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14226 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14227 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14228 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14229 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14230 Likewise.
14231 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14232 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14233 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14234 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14235 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14236 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14237 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14238 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14239 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14240 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14241 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14242 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14243 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14244 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14245 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14246 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14247 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14248 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14249 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14250 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14251 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14252 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14253 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14254 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14255 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14256 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14257 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14258 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14263 Likewise.
14264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14268 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14269 Likewise.
14270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14271 Likewise.
14272 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14273 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14274 Likewise.
14275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14277 Likewise.
14278 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14279 Likewise.
14280 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14281 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14282 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14283 Likewise.
14284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14285 Likewise.
14286 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14287 Likewise.
14288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14292 Likewise.
14293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14295 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14299 Likewise.
14300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14302 Likewise.
14303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14304 Likewise.
14305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14306 Likewise.
14307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14308 Likewise.
14309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14312 Likewise.
14313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14314 Likewise.
14315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14316 Likewise.
14317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14318 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14319 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14320 Likewise.
14321 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14322 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14323 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14324 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14325 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14326 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14327 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14328 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14335 Likewise.
14336 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14338 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14339 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14340 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14341 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14342 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14343 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14348 Likewise.
14349 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14374 Likewise.
14375 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14388 Likewise.
14389 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14391 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14394 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14395 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14396 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14397 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14398 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14403 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14404 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14407 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14408 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14409 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14417 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14418 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14419 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14420 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14421 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14422 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14423 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14424 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14425 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14427
14428 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14429
14430 [BZ #23137]
14431 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14432 Use atomic_load_acquire to load __tid.
14433
14434 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14435
14436 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14437 Restore the pointer into %rdx, after syscall and use %rdx,
14438 instead of %rsi, to restore context.
14439
14440 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14441
14442 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14443 Pop the pointer into %rdx after syscall and use %rdx, instead
14444 of %rsi, to restore context.
14445
14446 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14447
14448 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14449 handlers after setjmp.
14450 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14451 defined.
14452 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14453 <libc-pointer-arith.h>.
14454 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14455 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14456 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14457 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14458 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14459 * sysdeps/x86/__longjmp_cancel.S: New file.
14460 * sysdeps/x86/longjmp.c: Likewise.
14461 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14462
14463 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14464
14465 * NEWS: Add ustat.h deprecation entry.
14466 * bits/ustat.h: Remove file.
14467 * misc/sys/ustat.h: Likewise.
14468 * misc/ustat.h: Likewise.
14469 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14470 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14471 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14472 compatibility mode.
14473 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14474 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14475 generic Linux implementation.
14476
14477 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14478
14479 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14480 * math/w_expl_compat.c: Likewise.
14481 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14482
14483 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14484
14485 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14486
14487 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14488
14489 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14490 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14491 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14492 Remove.
14493 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14495 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14496 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14497 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14498 and SYSCALL_LL64.
14499
14500 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14501
14502 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14503
14504 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14505 * math/w_asin_template.c: Likewise.
14506 * math/w_atanh_template.c: Likewise.
14507
14508 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14509
14510 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14511 to powerpc/powerpc64/be for big-endian.
14512 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14513 little-endian.
14514
14515 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14516 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14517 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14518 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14519 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14520 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14521 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14522 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14523 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14524 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14525 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14526 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14527 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14528 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14529 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14530 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14531 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14532 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14533 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14534 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14535 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14536 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14537 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14538 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14539 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14540 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14541 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14542 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14543 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14544 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14545 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14546 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14547
14548 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14549 adjusted to imply powerpc64 and older processors on powerpc64/be.
14550 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14551 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14552 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14553 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14554 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14555 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14556 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14557 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14558 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14559 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14560 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14561 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14562 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14563 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14564 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14565 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14566 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14567 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14568 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14569 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14570 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14571 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14572 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14573 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14574 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14575 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14576 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14577 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14578 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14579 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14580 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14581
14582 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14583 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14584 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14585 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14586
14587 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14588 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14589 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14590 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14591
14592 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14593 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14594 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14595 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14596 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14597 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14598 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14599 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14600 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14601 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14602 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14603
14604 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14605 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14606 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14607 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14608 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14609 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14610 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14611 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14612 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14613 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14614 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14615
14616 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14617 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14618 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14619 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14620 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14621 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14622 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14623 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14624 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14625 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14626 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14627 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14628
14629 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14630 and adjusted to imply olders processors.
14631 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14632 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14633 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14634 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14635 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14636 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14637 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14638 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14639 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14640 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14641 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14642
14643 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14644 powerpc64/le.
14645 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14646 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14647
14648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14649 powerpc64le.
14650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14652
14653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14654 powerpc64/be.
14655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14658
14659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14660 powerpc64 and adjusted.
14661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14662 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14664 Likewise.
14665
14666 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14667
14668 * sysdeps/tile: Remove.
14669 * sysdeps/unix/sysv/linux/tile: Likewise.
14670 * README (tilegx-*-linux-gnu): Remove from list of supported
14671 configurations.
14672 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14673 contribution of support for generic Linux kernel syscall
14674 interface.
14675 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14676 tilegx configurations.
14677 (Config.install_linux_headers): Do not handle tile.
14678 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14679 in comment.
14680 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14681 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14682 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14683 conditional undefine and redefine.
14684 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14685 in comment.
14686 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14687 conditional undefine and redefine.
14688
14689 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14690
14691 * signal/tst-sigaction.c: New file to test BZ #23069.
14692 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14693
14694 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14695
14696 [BZ #22766]
14697 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14698 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14699 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14700 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14701
14702 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14703
14704 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14705 _DIRENT_MATCHES_DIRENT64 is not defined.
14706 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14707 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14708 is defined.
14709 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14710 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14711
14712 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14713
14714 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14715 version to GCC 8 branch.
14716
14717 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14718
14719 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14720 (check_no_hidden): Use type of original function when declaring
14721 alias.
14722
14723 * sysdeps/unix/sysv/linux/sys/ptrace.h
14724 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14725 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14726 (struct __ptrace_seccomp_metadata): New type.
14727 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14728 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14729 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14730 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14731 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14732 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14733 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14734 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14735 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14736 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14737 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14738 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14739 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14740 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14741 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14742 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14743
14744 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14745
14746 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
14747 defined.
14748 * dirent/versionsort.c (versionsort): Likewise.
14749 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
14750 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
14751 * dirent/versionsort64.c (versionsort64): Likewise.
14752 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
14753 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
14754 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
14755 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
14756 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
14757 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
14758 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
14759 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
14760 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
14761 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
14762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
14763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
14764 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
14765 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
14766
14767 2018-04-23 Joseph Myers <joseph@codesourcery.com>
14768
14769 * elf/elf.h (NT_PPC_PKEY): New macro.
14770
14771 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
14772
14773 [BZ #23094]
14774 * localedata/locales/hr_HR: fix thousands_sep and
14775 mon_thousands_sep
14776
14777 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14778
14779 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
14780 (XTABS): Define to TAB3.
14781
14782 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14783
14784 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14785
14786 * dirent/scandir-tail-common.c: New file.
14787 * dirent/scandir-tail.c: Use scandir-tail-common.c.
14788 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
14789 * dirent/scandir.c: Use scandir-tail-common.c.
14790 * dirent/scandirat.c: Likewise.
14791 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
14792 * dirent/scandir64.c (scandir64): Always build and alias to scandir
14793 if _DIRENT_MATCHES_DIRENT64 is defined.
14794 * dirent/scandirat64.c (scandirat64): Likewise.
14795 * include/dirent.h (__scandir_tail): Only define iff
14796 _DIRENT_MATCHES_DIRENT64 is not defined.
14797 (__scandir64_tail): Define regardless.
14798 (__scandirat, scandirat64): Remove libc_hidden_proto.
14799 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
14800 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
14801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
14802 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
14803 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
14804 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
14805 * sysdeps/unix/sysv/linux/scandir64.c: New file.
14806
14807 2018-04-20 Joseph Myers <joseph@codesourcery.com>
14808
14809 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
14810 New macro.
14811 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
14812 Increase to 24.
14813 (_dl_aarch64_cap_flags): Add asimdfhm.
14814
14815 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
14816
14817 * sysdeps/nios2/libm-test-ulps: Update.
14818
14819 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14820
14821 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
14822 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
14823
14824 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
14825 requirements.
14826 (_DIRENT_MATCHES_DIRENT64): Undef
14827 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
14828 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
14829 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
14830 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
14831 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
14832 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
14833 use getdents64 syscalls as base.
14834 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
14835 symbol if required.
14836 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
14837 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
14838 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
14839 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
14840 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
14841 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
14842 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
14843 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
14844 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14845 (__get_clockfreq_via_proc_openprom): Use __getdents64.
14846 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
14847
14848 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14849
14850 * scripts/test_printers_common.py (init_test): Disable lock elision.
14851
14852 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
14853
14854 * math/test-tgmath.c (count_double, count_float,
14855 count_ldouble, count_cdouble, count_cfloat,
14856 count_cldouble): Use volatile int.
14857
14858 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14859
14860 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
14861 (conformtest-xfail-conds): Add i386-gnu.
14862 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
14863 i386-gnu.
14864 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
14865 ipc_perm.cuid, ipc_perm.cgid): Likewise.
14866 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
14867 msqid_ds.msg_lrpid): Likewise.
14868 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
14869 Likewise.
14870 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
14871 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
14872 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
14873 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
14874 unsigned int.
14875 (struct statvfs64): Likewise.
14876 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
14877 Likewise.
14878 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
14879 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
14880 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
14881 instead of wait_queue.
14882 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
14883 instead of vm_area_struct.
14884 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
14885 struct sched_param definition to it.
14886 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14887 * bits/types/struct_sched_param.h: New file.
14888 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
14889 <bits/types/struct_sched_param.h> instead of <sched.h>.
14890 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
14891 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
14892 generic version but include <bits/pthreadtypes.h> to make struct
14893 sigevent's sigev_notify_attributes field a pthread_attr_t*.
14894 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
14895 non-compliant.
14896 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
14897 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
14898 [__USE_XOPEN] (OFDEL): New macro.
14899 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
14900 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
14901 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
14902 prototypes.
14903 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
14904 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
14905 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
14906 non-compliant.
14907 * sysdeps/i386/sys/ucontext.h: Likewise.
14908 * sysdeps/m68k/sys/ucontext.h: Likewise.
14909 * sysdeps/mips/sys/ucontext.h: Likewise.
14910 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
14911 * sysdeps/mach/hurd/i386/Makefile
14912 (test-xfail-POSIX/fcntl.h/conform): Add.
14913 (test-xfail-POSIX/signal.h/conform): Add.
14914 (test-xfail-POSIX/semaphore.h/conform): Add.
14915 (test-xfail-POSIX/regex.h/conform): Add.
14916 (test-xfail-POSIX/aio.h/conform): Add.
14917 (test-xfail-POSIX/mqueue.h/conform): Add.
14918 (test-xfail-POSIX/sys/types.h/conform): Add.
14919 (test-xfail-UNIX98/fcntl.h/conform): Add.
14920 (test-xfail-UNIX98/netdb.h/conform): Add.
14921 (test-xfail-UNIX98/signal.h/conform): Add.
14922 (test-xfail-UNIX98/semaphore.h/conform): Add.
14923 (test-xfail-UNIX98/regex.h/conform): Add.
14924 (test-xfail-UNIX98/aio.h/conform): Add.
14925 (test-xfail-UNIX98/ftw.h/conform): Add.
14926 (test-xfail-UNIX98/mqueue.h/conform): Add.
14927 (test-xfail-UNIX98/netinet/in.h/conform): Add.
14928 (test-xfail-UNIX98/sys/wait.h/conform): Add.
14929 (test-xfail-UNIX98/sys/sem.h/conform): Add.
14930 (test-xfail-UNIX98/sys/uio.h/conform): Add.
14931 (test-xfail-UNIX98/sys/socket.h/conform): Add.
14932 (test-xfail-UNIX98/sys/types.h/conform): Add.
14933 (test-xfail-UNIX98/stdlib.h/conform): Add.
14934 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
14935 (test-xfail-POSIX2008/fcntl.h/conform): Add.
14936 (test-xfail-POSIX2008/netdb.h/conform): Add.
14937 (test-xfail-POSIX2008/signal.h/conform): Add.
14938 (test-xfail-POSIX2008/semaphore.h/conform): Add.
14939 (test-xfail-POSIX2008/regex.h/conform): Add.
14940 (test-xfail-POSIX2008/aio.h/conform): Add.
14941 (test-xfail-POSIX2008/mqueue.h/conform): Add.
14942 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
14943 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
14944 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
14945 (test-xfail-POSIX2008/sys/types.h/conform): Add.
14946 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
14947 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
14948 (test-xfail-XOPEN2K/netdb.h/conform): Add.
14949 (test-xfail-XOPEN2K/signal.h/conform): Add.
14950 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
14951 (test-xfail-XOPEN2K/regex.h/conform): Add.
14952 (test-xfail-XOPEN2K/aio.h/conform): Add.
14953 (test-xfail-XOPEN2K/ftw.h/conform): Add.
14954 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
14955 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
14956 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
14957 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
14958 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
14959 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
14960 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
14961 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
14962 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
14963 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
14964 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
14965 (test-xfail-XOPEN2K8/signal.h/conform): Add.
14966 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
14967 (test-xfail-XOPEN2K8/regex.h/conform): Add.
14968 (test-xfail-XOPEN2K8/aio.h/conform): Add.
14969 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
14970 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
14971 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
14972 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
14973 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
14974 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
14975 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
14976 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
14977 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
14978 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
14979 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
14980 i386-gnu.
14981 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
14982 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
14983
14984 2018-04-18 Joseph Myers <joseph@codesourcery.com>
14985
14986 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
14987 --enable-obsolete for powerpc-linux-gnuspe.
14988
14989 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14990
14991 * conform/data/sys/un.h-data: Allow sun_ prefix.
14992 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
14993 prototypes.
14994 * sysdeps/mach/include/mach.h: Likewise.
14995 * sysdeps/mach/include/mach/mig_support.h: Likewise.
14996 * sysdeps/mach/include/mach_error.h: Likewise.
14997
14998 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14999
15000 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15001 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15002 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15003 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15004
15005 2018-04-16 Andreas Schwab <schwab@suse.de>
15006
15007 [BZ #19527]
15008 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15009
15010 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15011
15012 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15013 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15014
15015 2018-04-12 DJ Delorie <dj@redhat.com>
15016
15017 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15018 version to 4.16.
15019
15020 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15021
15022 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15023 (struct kernel_sigaction): Use the same definition on 31bit as is used
15024 on 64bit.
15025
15026 2018-04-09 Florian Weimer <fweimer@redhat.com>
15027
15028 [BZ #23037]
15029 * resolv/res_send.c (send_dg): Use designated initializers instead
15030 of assignment to zero-initialize other fields of struct mmsghdr.
15031
15032 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15033
15034 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15035 __READDIR_ALIAS): Undefine after usage.
15036 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15037 __READDIR_R_ALIAS): Likewise.
15038 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15039 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15040 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15041 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15042 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15043 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15044 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15045 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15046 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15047 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15048 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15049 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15050 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15051 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15052 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15053 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15054 * sysdeps/unix/sysv/linux/readdir.c: New file.
15055 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15056 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15057 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15058
15059 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15060
15061 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15062
15063 * manual/charset.texi (Converting a Character): Fix typo.
15064
15065 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15066
15067 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15068
15069 * sysdeps/arm/libm-test-ulps: Update.
15070
15071 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15072 as base implementation.
15073 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15074 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15075 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15076 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15077 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15078 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15079 remove unrequired definitions and update comments.
15080 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15081 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15082 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15083 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15084 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15085 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15086 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15087 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15088 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15089 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15090 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15091 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15092 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15093 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15094 and RESET_SA_RESTORER hooks.
15095
15096 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15097
15098 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15099
15100 2018-04-05 Florian Weimer <fweimer@redhat.com>
15101
15102 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15103 integer overflow, memory leak on error, and indeterminate errno
15104 value. Add a null wide character to terminate the result string.
15105 * manual/charset.texi (Converting a Character): Mention embedded
15106 null bytes in the mbrtowc input string. Explain what happens in
15107 the -2 result case. Do not claim that mbrtowc is simple or
15108 obvious to use. Adjust the description of the code example. Use
15109 @code, not @var, for concrete variables.
15110
15111 2018-04-05 Florian Weimer <fweimer@redhat.com>
15112
15113 * manual/examples/mbstouwcs.c: New file.
15114 * manual/charset.texi (Converting a Character): Include it.
15115
15116 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15117
15118 * include/dirent.h (dirfd): Add hidden proto.
15119 * dirent/dirfd.c (dirfd): Add hidden def.
15120 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15121 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15122
15123 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15124
15125 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15126 sin, cos and sincos to 1 ULP.
15127
15128 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15129
15130 [BZ #19818]
15131 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15132 symbols.
15133 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15134 * elf/tst-absolute-sym.c: New file.
15135 * elf/tst-absolute-sym-lib.c: New file.
15136 * elf/tst-absolute-sym-lib.lds: New file.
15137 * elf/Makefile (tests): Add `tst-absolute-sym'.
15138 (modules-names): Add `tst-absolute-sym-lib'.
15139 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15140 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15141 ($(objpfx)tst-absolute-sym): New dependency.
15142
15143 [BZ #19818]
15144 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15145 parameter.
15146 (SYMBOL_ADDRESS): New macro.
15147 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15148 SYMBOL_ADDRESS for symbol address calculation.
15149 * elf/dl-runtime.c (_dl_fixup): Likewise.
15150 (_dl_profile_fixup): Likewise.
15151 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15152 * elf/rtld.c (dl_main): Likewise.
15153 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15154 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15155 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15156 (elf_machine_rela): Likewise.
15157 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15158 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15159 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15160 (elf_machine_rela): Likewise.
15161 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15162 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15163 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15164 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15165 Likewise.
15166 (elf_machine_reloc): Likewise.
15167 (elf_machine_got_rel): Likewise.
15168 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15169 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15170 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15171 Likewise.
15172 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15173 Likewise.
15174 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15175 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15176 Likewise.
15177 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15178 Likewise.
15179 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15180 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15181 Likewise.
15182 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15183 Likewise.
15184 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15185 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15186
15187 2018-04-04 Zack Weinberg <zackw@panix.com>
15188
15189 * sysdeps/generic/internal-signals.h: Include signal.h,
15190 sigsetops.h, and stdbool.h.
15191 (__libc_signal_block_all): Actually block all signals.
15192 (__libc_signal_block_app): Likewise.
15193 (__libc_signal_restore_set): Actually restore the signal mask.
15194
15195 2018-04-04 Florian Weimer <fweimer@redhat.com>
15196
15197 inet: Actually build and run tst-deadline.
15198 * inet/Makefile (tests-internal): Add tst-deadline and do not
15199 overwrite the variable.
15200 (tests-static-internal): Remove variable.
15201
15202 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15203
15204 [BZ #22947]
15205 * bits/uio-ext.h (RWF_APPEND): New.
15206 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15207 * manual/llio.texi: Document RWF_APPEND.
15208 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15209 (RWF_SUPPORTED): Add RWF_APPEND.
15210
15211 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15212
15213 [BZ #22391]
15214 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15215 check for internal nptl signals.
15216 * nptl/sigaction.c (__sigaction): Likewise.
15217 * signal/sigaddset.c (sigaddset): Likewise.
15218 * signal/sigdelset.c (sigdelset): Likewise.
15219 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15220 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15221 value.
15222 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15223 to filter out internal nptl signals.
15224 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15225 also check realtime signals using standard macros.
15226 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15227 __is_internal_signal, __libc_signal_block_all,
15228 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15229 * sysdeps/nptl/sigfillset.c: Remove file.
15230 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15231 Change return to bool.
15232 (__clear_internal_signals): Remove SIGTIMER clean since it is
15233 equal to SIGCANEL on Linux.
15234 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15235 signal set was constructed using standard functions.
15236
15237 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15238
15239 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15240 ifname is too long.
15241 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15242 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15243 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15244 hidden def.
15245 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15246 * signal/sigaddset.c: Include <sigsetopts.h>.
15247 * signal/sigdelset.c: Likewise.
15248
15249 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15250
15251 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15252 (__cos): Likewise.
15253 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15254 logic as sin and cos.
15255
15256 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15257
15258 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15259 inputs. Return correct sign.
15260 (do_sincos): Remove small input check before do_sin, let do_sin set
15261 the sign.
15262 (__sin): Likewise.
15263 (__cos): Likewise.
15264
15265 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15266
15267 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15268 (do_cos_slow): Likewise.
15269 (do_sin_slow): Likewise.
15270 (reduce_and_compute): Likewise.
15271 (slow): Likewise.
15272 (slow1): Likewise.
15273 (slow2): Likewise.
15274 (sloww): Likewise.
15275 (sloww1): Likewise.
15276 (sloww2): Likewise.
15277 (bslow): Likewise.
15278 (bslow1): Likewise.
15279 (bslow2): Likewise.
15280 (cslow2): Likewise.
15281
15282 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15283
15284 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15285 (do_cos): Remove corp parameter and calculations.
15286 (do_sin): Likewise.
15287 (do_sincos): Remove cor variable.
15288 (__sin): Use do_sincos for huge inputs.
15289 (__cos): Likewise.
15290 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15291 (reduce_and_compute_sincos): Remove unused function.
15292
15293 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15294
15295 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15296 reduce_sincos, improve accuracy to 136 bits.
15297 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15298 (__sin): Use improved reduction and simplified do_sincos calculation.
15299 (__cos): Likewise.
15300 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15301
15302 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15303
15304 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15305 (do_sincos_2): Likewise.
15306 (__sin): Remove middle range reduction case.
15307 (__cos): Likewise.
15308 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15309 reduction case.
15310
15311 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15312
15313 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15314 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15315 inputs.
15316 (__cos): Likewise.
15317 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15318
15319 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15320
15321 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15322 version to 4.16
15323
15324 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15325
15326 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15327 Remove definitions.
15328 (opendir_oflags): Use O_DIRECTORY regardless.
15329 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15330 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15331
15332 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15333
15334 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15335 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15336 macros.
15337 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15338 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15339 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15340 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15341 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15342 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15343
15344 * htl/Makefile: Bump licence to LGPL 2.1+.
15345 * htl/alloca_cutoff.c: Likewise.
15346 * htl/cthreads-compat.c: Likewise.
15347 * htl/lockfile.c: Likewise.
15348 * htl/pt-alloc.c: Likewise.
15349 * htl/pt-cancel.c: Likewise.
15350 * htl/pt-cleanup.c: Likewise.
15351 * htl/pt-create.c: Likewise.
15352 * htl/pt-dealloc.c: Likewise.
15353 * htl/pt-detach.c: Likewise.
15354 * htl/pt-exit.c: Likewise.
15355 * htl/pt-getattr.c: Likewise.
15356 * htl/pt-initialize.c: Likewise.
15357 * htl/pt-internal.h: Likewise.
15358 * htl/pt-join.c: Likewise.
15359 * htl/pt-self.c: Likewise.
15360 * htl/pt-setcancelstate.c: Likewise.
15361 * htl/pt-setcanceltype.c: Likewise.
15362 * htl/pt-sigmask.c: Likewise.
15363 * htl/pt-spin-inlines.c: Likewise.
15364 * htl/pt-testcancel.c: Likewise.
15365 * htl/pt-yield.c: Likewise.
15366 * htl/tests/test-1.c: Likewise.
15367 * htl/tests/test-10.c: Likewise.
15368 * htl/tests/test-11.c: Likewise.
15369 * htl/tests/test-12.c: Likewise.
15370 * htl/tests/test-13.c: Likewise.
15371 * htl/tests/test-14.c: Likewise.
15372 * htl/tests/test-15.c: Likewise.
15373 * htl/tests/test-16.c: Likewise.
15374 * htl/tests/test-17.c: Likewise.
15375 * htl/tests/test-2.c: Likewise.
15376 * htl/tests/test-3.c: Likewise.
15377 * htl/tests/test-4.c: Likewise.
15378 * htl/tests/test-5.c: Likewise.
15379 * htl/tests/test-6.c: Likewise.
15380 * htl/tests/test-7.c: Likewise.
15381 * htl/tests/test-8.c: Likewise.
15382 * htl/tests/test-9.c: Likewise.
15383 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15384 * sysdeps/htl/bits/cancelation.h: Likewise.
15385 * sysdeps/htl/bits/pthread-np.h: Likewise.
15386 * sysdeps/htl/bits/pthread.h: Likewise.
15387 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15388 * sysdeps/htl/bits/semaphore.h: Likewise.
15389 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15390 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15391 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15392 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15393 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15394 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15395 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15396 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15397 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15398 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15399 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15400 * sysdeps/htl/old_pt-atfork.c: Likewise.
15401 * sysdeps/htl/pt-atfork.c: Likewise.
15402 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15403 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15404 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15405 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15406 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15407 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15408 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15409 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15410 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15411 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15412 * sysdeps/htl/pt-attr-init.c: Likewise.
15413 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15414 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15415 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15416 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15417 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15418 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15419 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15420 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15421 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15422 * sysdeps/htl/pt-attr.c: Likewise.
15423 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15424 * sysdeps/htl/pt-barrier-init.c: Likewise.
15425 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15426 * sysdeps/htl/pt-barrier.c: Likewise.
15427 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15428 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15429 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15430 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15431 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15432 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15433 * sysdeps/htl/pt-cond-init.c: Likewise.
15434 * sysdeps/htl/pt-cond-signal.c: Likewise.
15435 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15436 * sysdeps/htl/pt-cond-wait.c: Likewise.
15437 * sysdeps/htl/pt-cond.c: Likewise.
15438 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15439 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15440 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15441 * sysdeps/htl/pt-condattr-init.c: Likewise.
15442 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15443 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15444 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15445 * sysdeps/htl/pt-equal.c: Likewise.
15446 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15447 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15448 * sysdeps/htl/pt-getschedparam.c: Likewise.
15449 * sysdeps/htl/pt-getspecific.c: Likewise.
15450 * sysdeps/htl/pt-init-specific.c: Likewise.
15451 * sysdeps/htl/pt-key-create.c: Likewise.
15452 * sysdeps/htl/pt-key-delete.c: Likewise.
15453 * sysdeps/htl/pt-key.h: Likewise.
15454 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15455 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15456 * sysdeps/htl/pt-mutex-init.c: Likewise.
15457 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15458 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15459 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15460 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15461 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15462 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15463 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15464 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15465 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15466 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15467 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15468 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15469 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15470 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15471 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15472 * sysdeps/htl/pt-mutexattr.c: Likewise.
15473 * sysdeps/htl/pt-once.c: Likewise.
15474 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15475 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15476 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15477 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15478 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15479 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15480 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15481 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15482 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15483 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15484 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15485 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15486 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15487 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15488 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15489 * sysdeps/htl/pt-setschedparam.c: Likewise.
15490 * sysdeps/htl/pt-setschedprio.c: Likewise.
15491 * sysdeps/htl/pt-setspecific.c: Likewise.
15492 * sysdeps/htl/pt-spin.c: Likewise.
15493 * sysdeps/htl/pt-startup.c: Likewise.
15494 * sysdeps/htl/pthread.h: Likewise.
15495 * sysdeps/htl/sem-close.c: Likewise.
15496 * sysdeps/htl/sem-destroy.c: Likewise.
15497 * sysdeps/htl/sem-getvalue.c: Likewise.
15498 * sysdeps/htl/sem-init.c: Likewise.
15499 * sysdeps/htl/sem-open.c: Likewise.
15500 * sysdeps/htl/sem-post.c: Likewise.
15501 * sysdeps/htl/sem-timedwait.c: Likewise.
15502 * sysdeps/htl/sem-trywait.c: Likewise.
15503 * sysdeps/htl/sem-unlink.c: Likewise.
15504 * sysdeps/htl/sem-wait.c: Likewise.
15505 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15506 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15507 * sysdeps/mach/htl/pt-block.c: Likewise.
15508 * sysdeps/mach/htl/pt-spin.c: Likewise.
15509 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15510 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15511 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15512 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15513 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15514 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15515 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15516 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15517 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15518 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15519 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15520 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15521 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15522 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15523 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15524 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15525 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15526 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15527 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15528 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15529 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15530 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15531 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15532 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15533 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15534 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15535 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15536 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15537 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15538 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15539 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15540 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15541 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15542 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15543 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15544 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15545 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15546 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15547 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15548 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15549 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15550 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15551 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15552
15553 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15554 * README: Remove the mention of out-of-tree patches needed for
15555 GNU/Hurd.
15556
15557 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15558 (UTIME_NOW, UTIME_OMIT): Define macros.
15559
15560 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15561 instead of pthread_detach.
15562 (__cthread_fork): Call __pthread_create instead of pthread_create.
15563 (__cthread_keycreate): Call __pthread_key_create instead of
15564 pthread_key_create.
15565 (__cthread_getspecific): Call __pthread_getspecific instead of
15566 pthread_getspecific.
15567 (__cthread_setspecific): Call __pthread_setspecific instead of
15568 pthread_setspecific.
15569 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15570 __pthread_mutex_unlock instead of pthread_mutex_lock and
15571 pthread_mutex_unlock.
15572 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15573 ___pthread_get_cleanup_stack.
15574 (__pthread_get_cleanup_stack): New strong alias.
15575 * htl/pt-create.c: Include <pthreadP.h>.
15576 (entry_point): Call __pthread_exit instead of pthread_exit.
15577 (pthread_create): Rename to __pthread_create.
15578 (pthread_create): New strong alias.
15579 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15580 (pthread_detach): New strong alias.
15581 (__pthread_detach): Call __pthread_cond_broadcast instead of
15582 pthread_cond_broadcast.
15583 * htl/pt-exit.c: Include <pthreadP.h>.
15584 (__pthread_exit): Call __pthread_setcancelstate and
15585 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15586 __pthread_get_cleanup_stack.
15587 * htl/pt-testcancel.c: Include <pthreadP.h>.
15588 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15589 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15590 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15591 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15592 pthread_attr_getstacksize.
15593 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15594 Rename to __pthread_attr_getstackaddr.
15595 (pthread_attr_getstackaddr): New strong alias.
15596 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15597 Rename to __pthread_attr_getstacksize.
15598 (pthread_attr_getstacksize): New strong alias.
15599 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15600 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15601 (pthread_attr_setstack): New strong alias.
15602 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15603 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15604 pthread_attr_getstacksize, pthread_attr_setstacksize and
15605 pthread_attr_setstackaddr.
15606 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15607 Rename to __pthread_attr_setstackaddr.
15608 (pthread_attr_setstackaddr): New strong alias.
15609 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15610 Rename to __pthread_attr_setstacksize.
15611 (pthread_attr_setstacksize): New strong alias.
15612 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15613 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15614 pthread_exit.
15615 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15616 (__pthread_key_create): New hidden def.
15617 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15618 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15619 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15620 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15621 __pthread_setspecific, __pthread_setcancelstate,
15622 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15623 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15624 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15625 declarations.
15626 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15627 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15628 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15629 (pthread_attr_setstackaddr): New strong alias.
15630 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15631 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15632 (pthread_attr_setstacksize): New strong alias.
15633 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15634 (call_exit): Call __pthread_exit instead of pthread_exit.
15635 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15636 (_pthread_mutex_init): New hidden definition.
15637 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15638 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15639 instead of pthread_attr_init and pthread_attr_setstack.
15640
15641 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15642 __vm_deallocate instead of vm_allocate and vm_deallocate.
15643 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15644 setenv.
15645 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15646 of geteuid.
15647 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15648 strdup.
15649 * hurd/siginfo.c: Include <libioP.h>.
15650 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15651 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15652 munmap.
15653 * mach/devstream.c: Include <libioP.h>.
15654 (dealloc_ref): Call __mach_port_deallocate instead of
15655 mach_port_deallocate.
15656 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15657 Call __mach_port_deallocate instead of mach_port_deallocate.
15658 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15659 pathconf.
15660 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15661 munmap.
15662 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15663 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15664 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15665 of munmap.
15666 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15667 of close.
15668 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15669 instead of sysconf.
15670 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15671 __clock_gettime instead of clock_gettime.
15672 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15673 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15674 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15675 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15676 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15677 tcgetattr.
15678 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15679 __clock_gettime and __nanosleep instead of clock_gettime and
15680 nanosleep.
15681 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15682 __hurd_catch_signal.
15683 (hurd_catch_signal): New strong alias.
15684 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15685 __hurd_catch_signal instead of hurd_catch_signal.
15686 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15687 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15688 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15689 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15690 (_hurd_thread_sigstate): Add hidden def.
15691 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15692 mutex_unlock.
15693 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15694 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15695 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15696 __hurd_file_name_path_lookup.
15697 (hurd_file_name_path_lookup): New strong alias.
15698 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15699 hurd_file_name_path_lookup.
15700 * mach/errstring.c (mach_error_type): Add hidden def.
15701 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15702 * mach/mutex-init.c (__mutex_init): Add hidden def.
15703 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15704 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15705 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15706 * sysdeps/mach/hurd/getcwd.c
15707 (_hurd_canonicalize_directory_name_internal): Rename to
15708 __hurd_canonicalize_directory_name_internal.
15709 (_hurd_canonicalize_directory_name_internal): New strong alias.
15710 (__canonicalize_directory_name_internal, __getcwd): Call
15711 __hurd_canonicalize_directory_name_internal instead of
15712 _hurd_canonicalize_directory_name_internal.
15713 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15714 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15715 hidden defs.
15716 * sysdeps/hurd/include/hurd.h: New file.
15717 * sysdeps/hurd/include/hurd/fd.h: New file.
15718 * sysdeps/hurd/include/hurd/signal.h: New file.
15719 * sysdeps/mach/include/lock-intern.h: New file.
15720 * sysdeps/mach/include/mach.h: New file.
15721 * sysdeps/mach/include/mach/mig_support.h: New file.
15722 * sysdeps/mach/include/mach_error.h: New file.
15723 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15724 prototype.
15725 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15726 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15727 _HEADER_H_HIDDEN_DEF macro.
15728 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15729 _hurd_fd_error_signal): Add hidden prototype.
15730 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15731 hidden def.
15732 * libio/iolibio.h (_IO_puts): New hidden prototype.
15733 * libio/ioputs.c (_IO_puts): New hidden def.
15734 * sysdeps/mach/hurd/localplt.data: New file.
15735
15736 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15737 Amos Jeffries <squid3@treenet.co.nz>
15738 David Michael <fedora.dm0@gmail.com>
15739 Marco Gerards <marco@gnu.org>
15740 Marcus Brinkmann <marcus@gnu.org>
15741 Neal H. Walfield <neal@gnu.org>
15742 Pino Toscano <toscano.pino@tiscali.it>
15743 Richard Braun <rbraun@sceen.net>
15744 Roland McGrath <roland@gnu.org>
15745 Samuel Thibault <samuel.thibault@ens-lyon.org>
15746 Thomas DiModica <ricinwich@yahoo.com>
15747 Thomas Schwinge <tschwinge@gnu.org>
15748
15749 * htl: New directory.
15750 * sysdeps/htl: New directory.
15751 * sysdeps/hurd/htl: New directory.
15752 * sysdeps/i386/htl: New directory.
15753 * sysdeps/mach/htl: New directory.
15754 * sysdeps/mach/hurd/htl: New directory.
15755 * sysdeps/mach/hurd/i386/htl: New directory.
15756 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
15757 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
15758 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
15759
15760 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15761
15762 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
15763 signals in thread created for runing timers.
15764
15765 2018-04-01 Florian Weimer <fweimer@redhat.com>
15766
15767 * support/support_format_addrinfo.c (support_format_addrinfo):
15768 Include unknown error number in formatted result.
15769
15770 2018-03-29 Florian Weimer <fweimer@redhat.com>
15771
15772 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
15773 capture SIGBUS.
15774
15775 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15776
15777 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
15778 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
15779 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15780 (__ASSUME_CLONE_BACKWARDS): Define.
15781
15782 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
15783
15784 [BZ #23024]
15785 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
15786 early when linux sentinel value is set.
15787
15788 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15789
15790 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
15791
15792 2018-03-27 Andreas Schwab <schwab@suse.de>
15793
15794 [BZ #23005]
15795 * resolv/res_send.c (__res_context_send): Return ENOMEM if
15796 allocation of private copy of nsaddr_list fails.
15797
15798 2018-03-26 Joseph Myers <joseph@codesourcery.com>
15799
15800 [BZ #16552]
15801 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
15802 * sysdeps/unix/sysv/linux/umount.c: ... here.
15803 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
15804 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
15805 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
15806 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
15807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
15808 * sysdeps/unix/sysv/linux/umount.S: Likewise.
15809 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
15810
15811 2018-03-26 Andreas Schwab <schwab@suse.de>
15812
15813 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
15814 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
15815 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
15816 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
15817 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
15818 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
15819 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
15820 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
15821 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
15822 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
15823 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
15824 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
15825 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
15826 (R_RISCV_NUM): Define.
15827
15828 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
15829
15830 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
15831 TLS declaration of errno.
15832 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
15833 __libc_setup_tls.
15834 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
15835 (ARCH_SETUP_TLS): Likewise.
15836 * sysdeps/mach/hurd/libc-start.h: New file copied from
15837 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
15838 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
15839 instead of __libc_setup_tls.
15840 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
15841 __libc_setup_tls before initializing libpthread and running _hurd_init
15842 which starts the signal thread.
15843 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
15844 Declare function.
15845 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15846
15847 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
15848
15849 [BZ #22998]
15850 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
15851 after it is defined.
15852
15853 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
15854 Max Horn <max@quendi.de>
15855
15856 [BZ #22644]
15857 CVE-2017-18269
15858 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
15859 branch conditions.
15860 * string/test-memmove.c (do_test2): New testcase.
15861
15862 2018-03-22 Joseph Myers <joseph@codesourcery.com>
15863
15864 * sysdeps/generic/frame.h: Remove file.
15865 * sysdeps/arm/frame.h: Likewise.
15866 * sysdeps/hppa/frame.h: Likewise.
15867 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
15868 macro.
15869 (GET_FRAME): Likewise.
15870 (GET_STACK): Likewise.
15871 (CALL_SIGHANDLER): Likewise.
15872 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
15873 Likewise.
15874 (GET_FRAME): Likewise.
15875 (GET_STACK): Likewise.
15876 (CALL_SIGHANDLER): Likewise.
15877 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
15878 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15879 (GET_FRAME): Likewise.
15880 (GET_STACK): Likewise.
15881 (CALL_SIGHANDLER): Likewise.
15882 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
15883 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15884 (GET_FRAME): Likewise.
15885 (GET_STACK): Likewise.
15886 (ADVANCE_STACK_FRAME): Likewise.
15887 (CALL_SIGHANDLER): Likewise.
15888 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
15889 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15890 (GET_FRAME): Likewise.
15891 (GET_STACK): Likewise.
15892 (CALL_SIGHANDLER): Likewise.
15893 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
15894 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15895 (GET_FRAME): Likewise.
15896 (GET_STACK): Likewise.
15897 (CALL_SIGHANDLER): Likewise.
15898 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
15899 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15900 (GET_FRAME): Likewise.
15901 (GET_STACK): Likewise.
15902 (CALL_SIGHANDLER): Likewise.
15903 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
15904 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15905 (GET_FRAME): Likewise.
15906 (GET_STACK): Likewise.
15907 (CALL_SIGHANDLER): Likewise.
15908 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
15909 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15910 (GET_FRAME): Likewise.
15911 (GET_STACK): Likewise.
15912 (CALL_SIGHANDLER): Likewise.
15913 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
15914 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15915 (GET_FRAME): Likewise.
15916 (GET_STACK): Likewise.
15917 (CALL_SIGHANDLER): Likewise.
15918 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
15919 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15920 (GET_FRAME): Likewise.
15921 (GET_STACK): Likewise.
15922 (CALL_SIGHANDLER): Likewise.
15923 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
15924 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15925 (GET_FRAME): Likewise.
15926 (GET_STACK): Likewise.
15927 (CALL_SIGHANDLER): Likewise.
15928 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
15929 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15930 (GET_FRAME): Likewise.
15931 (GET_STACK): Likewise.
15932 (CALL_SIGHANDLER): Likewise.
15933 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
15934 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15935 (FIRST_FRAME_POINTER): Likewise.
15936 (ADVANCE_STACK_FRAME): Likewise.
15937 (GET_STACK): Likewise.
15938 (GET_FRAME): Likewise.
15939 (CALL_SIGHANDLER): Likewise.
15940 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
15941 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15942 (ADVANCE_STACK_FRAME): Likewise.
15943 (GET_STACK): Likewise.
15944 (GET_FRAME): Likewise.
15945 (CALL_SIGHANDLER): Likewise.
15946 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
15947 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15948 (GET_FRAME): Likewise.
15949 (GET_STACK): Likewise.
15950 (CALL_SIGHANDLER): Likewise.
15951 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
15952 (SIGCONTEXT_EXTRA_ARGS): Likewise.
15953 (GET_FRAME): Likewise.
15954 (GET_STACK): Likewise.
15955 (CALL_SIGHANDLER): Likewise.
15956
15957 2018-03-21 Joseph Myers <joseph@codesourcery.com>
15958
15959 * sysdeps/x86_64/backtrace.c: Move to ....
15960 * debug/backtrace.c: ... here.
15961 * sysdeps/aarch64/backtrace.c: Remove file.
15962 * sysdeps/alpha/backtrace.c: Likewise.
15963 * sysdeps/hppa/backtrace.c: Likewise.
15964 * sysdeps/ia64/backtrace.c: Likewise.
15965 * sysdeps/mips/backtrace.c: Likewise.
15966 * sysdeps/nios2/backtrace.c: Likewise.
15967 * sysdeps/riscv/backtrace.c: Likewise.
15968 * sysdeps/sh/backtrace.c: Likewise.
15969 * sysdeps/tile/backtrace.c: Likewise.
15970
15971 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15972
15973 [BZ #22987]
15974 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
15975 function.
15976 (fdimf): Likewise.
15977 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
15978
15979 [BZ #17343]
15980 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
15981 possibly overflowing computations.
15982
15983 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15984
15985 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
15986 values from Linux-specific section now that it is in the GNU section.
15987 * sysdeps/gnu/errlist.c: Regenerate.
15988
15989 2018-03-20 Joseph Myers <joseph@codesourcery.com>
15990
15991 * math/Makefile (libm-narrow-fns): Add sub.
15992 (libm-test-funcs-narrow): Likewise.
15993 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
15994 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
15995 * math/gen-auto-libm-tests.c (test_functions): Add sub.
15996 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
15997 (NARROW_SUB_ROUND_TO_ODD): Likewise.
15998 (NARROW_SUB_TRIVIAL): Likewise.
15999 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16000 macro.
16001 (__dsubl): Likewise.
16002 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16003 dsub.
16004 (CFLAGS-nldbl-dsub.c): New variable.
16005 (CFLAGS-nldbl-fsub.c): Likewise.
16006 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16007 __nldbl_dsubl.
16008 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16009 prototype.
16010 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16011 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16012 * math/auto-libm-test-in: Add tests of sub.
16013 * math/auto-libm-test-out-narrow-sub: New generated file.
16014 * math/libm-test-narrow-sub.inc: New file.
16015 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16016 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16017 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16018 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16019 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16020 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16021 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16022 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16023 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16024 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16025 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16026 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16027 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16028 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16029 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16030 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16031 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16032 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16033 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16034 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16035 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16036 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16037 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16038 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16039 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16040 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16041 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16042 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16043 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16044 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16045 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16046 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16051 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16052 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16053 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16054 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16055 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16056 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16057 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16058 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16059 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16060 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16061
16062 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16063
16064 [BZ #20079]
16065 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16066
16067 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16068
16069 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16070
16071 2018-03-18 Richard Braun <rbraun@sceen.net>
16072
16073 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16074 thread reference.
16075
16076 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16077
16078 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16079 (__libc_cleanup_fct): Define function.
16080 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16081 __libc_cleanup_end): Rewrite implementation using
16082 __attribute__ ((__cleanup__)).
16083 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16084 * hurd/Makefile (routines): Add hurdlock.
16085 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16086 interface.
16087 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16088 * hurd/hurdpid.c: Include <lowlevellock.h>
16089 (_S_msg_proc_newids): Use lll_wait to synchronize.
16090 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16091 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16092 * mach/Makefile (lock-headers): Remove machine-lock.h.
16093 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16094 <machine-lock.h>.
16095 (__spin_lock_t): New type.
16096 (__SPIN_LOCK_INITIALIZER): New macro.
16097 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16098 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16099 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16100 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16101 (__mutex_init): Initialize with lll.
16102 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16103 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16104 needing lll.
16105 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16106 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16107 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16108 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16109 (__setpgid): Use lll for synchronization.
16110 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16111 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16112 instead of <cthreads.h>.
16113 (_IO_lock_inexpensive): New macro
16114 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16115 (__libc_lock_self0): New declaration.
16116 (__libc_lock_owner_self): New macro.
16117 (__libc_key_t): Remove type.
16118 (_LIBC_LOCK_INITIALIZER): New macro.
16119 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16120 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16121 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16122 __libc_lock_define_initialized_recursive,
16123 __rtld_lock_define_initialized_recursive,
16124 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16125 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16126 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16127 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16128 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16129 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16130 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16131 New macros.
16132 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16133 * hurd/hurdlock.c: New file.
16134 * hurd/hurdlock.h: New file.
16135 * mach/lowlevellock.h: New file
16136
16137 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16138
16139 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16140 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16141 when opening a symlink with O_NOFOLLOW.
16142 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16143 path when flags contains O_NOFOLLOW.
16144 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16145 if flags contains O_DIRECTORY and the result is a directory.
16146 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16147 oneself when the pointer given in D is nul (as set by ext2fs).
16148 * sysdeps/mach/hurd/mlockall.c: New file.
16149 * sysdeps/mach/hurd/munlockall.c: New file.
16150
16151 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16152
16153 * hurd/hurdsig.c: Include <pthread.h>.
16154 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16155 get the signal thread stack layout.
16156 * hurd/Makefile (headers): Remove threadvar.h.
16157 (inline-headers): Remove threadvar.h.
16158 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16159 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16160 __hurd_threadvar_max, __hurd_errno_location.
16161 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16162 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16163 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16164 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16165 unless TLS is not initialized yet, in which case we do not need a
16166 critical section yet anyway.
16167 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16168 <machine-sp.h>.
16169 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16170 declarations.
16171 (__hurd_threadvar_index): Remove enum.
16172 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16173 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16174 inlines.
16175 (__hurd_reply_port0): New variable declaration.
16176 (__hurd_local_reply_port): New macro.
16177 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16178 (interrupted_reply_port_location): Add thread_t parameter. Use it
16179 with THREAD_TCB to access thread-local variables.
16180 (_hurdsig_abort_rpcs): Pass ss->thread to
16181 interrupted_reply_port_location.
16182 (_hurd_internal_post_signal): Likewise.
16183 (_hurdsig_init): Use presence of cthread_fork instead of
16184 __hurd_threadvar_stack_mask to start signal thread by hand.
16185 Remove signal thread threadvar initialization.
16186 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16187 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16188 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16189 of threadvar.
16190 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16191 __libc_lock_self0.
16192 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16193 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16194 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16195 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16196 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16197 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16198 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16199 define variables.
16200 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16201 <hurd/threadvar.h>.
16202 [IS_IN(rtld)] (rtld_errno): New variable.
16203 [IS_IN(rtld)] (__errno_location): New weak function.
16204 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16205 * sysdeps/mach/hurd/errno.c: Remove file.
16206 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16207 (__fork): Remove THREADVAR_SPACE macro and its use.
16208 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16209 variable.
16210 (init): Do not initialize threadvar.
16211 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16212 symbol.
16213 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16214 __hurd_local_reply_port instead of threadvar.
16215 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16216 _hurd_sigstate fields.
16217 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16218 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16219 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16220 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16221 instead of threadvar.
16222 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16223 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16224 (use_threadvar, global_reply_port): Remove variables.
16225 (__hurd_reply_port0): New variable.
16226 (__mig_get_reply_port): Use __hurd_local_reply_port and
16227 __hurd_reply_port0 instead of threadvar.
16228 (__mig_dealloc_reply_port): Likewise.
16229 (__mig_init): Do not initialize threadvar.
16230 * sysdeps/mach/hurd/profil.c: Fix comment.
16231 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16232 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16233 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16234 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16235 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16236 __cthread_setspecific.
16237 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16238 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16239 __cthread_t instead of cthread_fork, cthread_detach,
16240 pthread_getattr_np, pthread_attr_getstack.
16241 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16242 __cthread_keycreate.
16243 (cthread_getspecific): Rename to __cthread_getspecific.
16244 (cthread_setspecific): Rename to __cthread_setspecific.
16245 (__libc_getspecific): Use __cthread_getspecific instead of
16246 cthread_getspecific.
16247 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16248 __cthread_keycreate instead of cthread_keycreate.
16249 (__libc_setspecific): Use __cthread_setspecific instead of
16250 cthread_setspecific.
16251 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16252 Likewise.
16253 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16254 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16255 testing whether it is defined.
16256
16257 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16258
16259 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16260 Define macro.
16261 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16262 * sysdeps/mach/i386/thread_state.h
16263 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16264 i386_THREAD_STATE.
16265 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16266 i386_THREAD_STATE.
16267 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16268
16269 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16270 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16271
16272 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16273 macros.
16274 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16275 descriptor instead of creating a new one.
16276 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16277
16278 * mach/setup-thread.c: Include <ldsodefs.h>.
16279 (__mach_setup_thread): Call _dl_allocate_tls, pass
16280 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16281 MACHINE_THREAD_STATE_FLAVOR, before getting
16282 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16283 MACHINE_THREAD_STATE_FLAVOR with the result.
16284 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16285 MACHINE_THREAD_STATE_FIX_NEW.
16286 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16287 too. Add original thread parameter.
16288
16289 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16290
16291 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16292 Remove inline function.
16293
16294 * sysdeps/i386/fpu/libm-test-ulps: Update.
16295 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16296
16297 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16298
16299 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16300 commit.
16301
16302 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16303
16304 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16305 (__sincos_code): Remove define and undefine.
16306 [__FAST_MATH__] (__sincos): Remove inline function.
16307 [__FAST_MATH__] (__sincosf): Remove inline function.
16308 [__FAST_MATH__] (__sincosl): Remove inline function.
16309 (__atan2l): Remove inline functions.
16310 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16311 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16312 function.
16313 (floor): Remove inline function.
16314 (ceil): Likewise.
16315 [__FAST_MATH__] (__ldexp_code): Remove macro.
16316 [__FAST_MATH__] (ldexp): Remove inline function.
16317 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16318 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16319 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16320 [__USE_ISOC99] (__lrint_code): Remove macro.
16321 [__USE_ISOC99] (__llrint_code): Likewise.
16322 [__USE_ISOC99] (lrintf): Remove inline function.
16323 [__USE_ISOC99] (lrint): Likewise.
16324 [__USE_ISOC99] (lrintl): Likewise.
16325 [__USE_ISOC99] (llrint): Likewise.
16326 [__USE_ISOC99] (llrintf): Likewise.
16327 [__USE_ISOC99] (llrintl): Likewise.
16328
16329 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16330
16331 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16332 (__ieee754_sqrtf): Remove.
16333 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16334 (__ieee754_sqrtf): Remove.
16335 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16336 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16337 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16338 (__ieee754_sqrtf): Remove.
16339 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16340 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16341 (sqrtf): Remove.
16342 (sqrtl): Remove.
16343 (__ieee754_sqrt): Remove.
16344 (__ieee754_sqrtf): Remove.
16345 (__ieee754_sqrtl): Remove.
16346 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16347 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16348 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16349 (__ieee754_sqrtf): Remove.
16350 (__ieee754_sqrtl): Remove.
16351
16352 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16353
16354 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16355 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16356 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16357 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16358 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16359 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16360 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16361 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16362 Likewise.
16363 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16364 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16365 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16366 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16367 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16368 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16369 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16370 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16371 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16372 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16373 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16374 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16375 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16376 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16377 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16378 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16379 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16380 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16381 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16382 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16383 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16384 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16385 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16386 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16387 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16388 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16389 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16390 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16391 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16392 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16393 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16394 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16395 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16396 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16397 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16398 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16399 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16400 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16401 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16402 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16403
16404 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16405
16406 * include/math.h (sqrt): Declare with asm redirect.
16407 (sqrtf): Likewise.
16408 (sqrtl): Likewise.
16409 (sqrtf128): Likewise.
16410 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16411 nonlib and libnldbl with -fmath-errno.
16412 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16413 * math/w_sqrt_template.c: Likewise.
16414 * math/w_sqrtf_compat.c: Likewise.
16415 * math/w_sqrtl_compat.c: Likewise.
16416 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16417 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16418 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16419 complex.h.
16420
16421 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16422
16423 * benchtests/Makefile: Define _ISOMAC.
16424 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16425 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16426 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16427 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16428 * benchtests/bench-timing.h: Define attribute_hidden.
16429
16430 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16431
16432 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16433 mov + lsr.
16434
16435 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16436
16437 [BZ #22963]
16438 * localedata/locales/cs_CZ (mon): Rename to...
16439 (alt_mon): This.
16440 (mon): Import from CLDR (genitive case).
16441
16442 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16443
16444 [BZ #22937]
16445 * localedata/locales/el_CY (abmon): Rename to...
16446 (ab_alt_mon): This.
16447 (abmon): Import from CLDR (abbreviated genitive case).
16448 * localedata/locales/el_GR (abmon): Rename to...
16449 (ab_alt_mon): This.
16450 (abmon): Import from CLDR (abbreviated genitive case).
16451
16452 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16453
16454 [BZ #22932]
16455 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16456
16457 2018-03-15 Robert Buj <robert.buj@gmail.com>
16458
16459 [BZ #22848]
16460 * localedata/locales/ca_ES (abmon): Rename to...
16461 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16462 (mon): Rename to...
16463 (alt_mon): This.
16464 (abmon): Import from CLDR (genitive case, month names preceded by
16465 "de" or "d’").
16466 (mon): Likewise.
16467 (abday): Synchronize with CLDR.
16468 (d_t_fmt): Likewise.
16469 (d_fmt): Likewise.
16470 (am_pm): Likewise.
16471
16472 (LC_TIME): Improve indentation.
16473 (LC_TELEPHONE): Likewise.
16474 (LC_NAME): Likewise.
16475 (LC_ADDRESS): Likewise.
16476
16477 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16478
16479 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16480 (lrintf): Remove definitions used only with old GCC.
16481 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16482 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16483 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16484 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16485 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16486 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16487 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16488 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16489 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16490 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16491 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16492 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16493 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16494 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16495 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16496 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16497 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16498 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16499 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16500 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16501 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16502 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16503 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16504 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16505 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16506 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16507 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16508 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16509
16510 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16511
16512 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16513 instruction to unbreak builds with binutils 2.26 and older.
16514
16515 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16516
16517 * sysdeps/aarch64/strncmp.S (count): New macro.
16518 (strncmp): Store misaligned length in SRC1 in COUNT.
16519 (mutual_align): Adjust.
16520 (misaligned8): Load dword at a time when it is safe.
16521
16522 2018-03-12 Zack Weinberg <zackw@panix.com>
16523
16524 [BZ #1190]
16525 [BZ #19476]
16526 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16527 if the _IO_EOF_SEEN bit is already set; update commentary.
16528 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16529 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16530
16531 * support/support_openpty.c, support/tty.h: New files.
16532 * support/Makefile (libsupport-routines): Add support_openpty.
16533
16534 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16535 New test cases.
16536 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16537 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16538
16539 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16540
16541 * po/pt_BR.po: Update translations.
16542
16543 2018-03-12 David Michael <fedora.dm0@gmail.com>
16544
16545 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16546 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16547 get a port to the startup server.
16548
16549 2018-03-11 Zack Weinberg <zackw@panix.com>
16550
16551 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16552 before nldbl-compat.h.
16553
16554 2018-03-10 Zack Weinberg <zackw@panix.com>
16555
16556 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16557 math.h or math_private.h.
16558
16559 * sysdeps/alpha/fpu/s_isnan.c
16560 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16561 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16562 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16563 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16564 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16565 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16566 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16567 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16568 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16569 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16571 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16572 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16573 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16574 Include math_private.h.
16575
16576 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16577 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16578 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16579 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16580 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16581 * sysdeps/powerpc/power7/fpu/s_logb.c:
16582 Include math.h and math_private.h.
16583
16584 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16585 uses of $at in .set noat / .set at.
16586
16587 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16588
16589 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16590 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16591 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16592 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16593 Likewise.
16594
16595 2018-03-09 Florian Weimer <fweimer@redhat.com>
16596
16597 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16598 in comment.
16599
16600 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16601
16602 [BZ #22919]
16603 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16604 Add nop before __startcontext, add explaining comments.
16605
16606 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16607
16608 [BZ #22926]
16609 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16610 empty for __SPE__.
16611 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16612 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16613 Do not build hardware transactional code for __SPE__.
16614 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16615 (__lll_trylock_elision): Likewise.
16616 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16617 (__lll_unlock_elision): Likewise.
16618
16619 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16620 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16621 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16622 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16623 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16624 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16625 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16626 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16627 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16628 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16629 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16630 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16631 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16632 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16633 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16634 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16635 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16636 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16637 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16638 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16639 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16640 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16641 (__ASSUME_CLONE_BACKWARDS): Define.
16642 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16643 __clone2 if __NR_clone2 is defined.
16644 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16645 (__ASSUME_CLONE_BACKWARDS): Likewise.
16646 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16647 (__ASSUME_CLONE_BACKWARDS): Likewise.
16648 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16649 (__ASSUME_CLONE2): Likewise.
16650 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16651 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16652 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16653 variants and the define architecture can use.
16654 (__ASSUME_CLONE_DEFAULT): Define as default.
16655 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16656 (__ASSUME_CLONE_BACKWARDS): Likewise.
16657 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16658 (__ASSUME_CLONE_BACKWARDS): Likewise.
16659 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16660 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16661
16662 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16663
16664 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16665
16666 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16667 time.
16668
16669 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16670 (do_test_limit): Likewise.
16671
16672 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16673 for every implementation.
16674 (do_test): Likewise.
16675
16676 * benchtests/bench-strncmp.c: Convert output to json.
16677
16678 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16679
16680 * io/futimens.c: Add missing start-of-file descriptive comment.
16681 * io/utime.c: Likewise.
16682 * misc/futimesat.c: Likewise.
16683 * misc/utimes.c: Likewise.
16684 * sysdeps/mach/hurd/futimesat.c: Likewise.
16685 * sysdeps/mach/hurd/utimes.c: Likewise.
16686 * sysdeps/posix/utime.c: Likewise.
16687 * sysdeps/posix/utimes.c: Likewise.
16688 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16689 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16690 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16691 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16692
16693 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16694
16695 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16696 hurd_futimes.
16697 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16698 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16699 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16700 (__futimens): Move implementation to...
16701 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16702 utime_tvalue_from_tspec): ... new helper functions.
16703 (hurd_futimens): New function.
16704 * sysdeps/mach/hurd/futimesat.c: New file.
16705 * sysdeps/mach/hurd/utimensat.c: New file.
16706
16707 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16708
16709 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16710 UTIME_OMIT): New macros.
16711 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16712 before reverting to converting time spec to time value and calling
16713 __file_utimes.
16714 * sysdeps/mach/hurd/utime-helper.c: New file.
16715 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16716 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16717 reverting to utime_tvalue_from_tval and __file_utimes.
16718 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16719 (__lutimes): Just call hurd_futimens after lookup.
16720 * sysdeps/mach/hurd/utimes.c: Likewise.
16721
16722 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16723
16724 * bits/sigaction.h: Add include guard.
16725 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16726 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16727 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16728 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16729 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16730 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16731 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16732 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16733 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16734
16735 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16736
16737 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16738 -Wmaybe-uninitialized for -Os.
16739 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16740 this disabling.
16741
16742 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16743
16744 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
16745 __INO_T_MATCHES_INO64_T is defined.
16746 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
16747 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
16748 of definition.
16749 * dirent/alphasort64.c: Likewise.
16750 * dirent/scandir.c: Likewise.
16751 * dirent/scandir64-tail.c: Likewise.
16752 * dirent/scandir64.c: Likewise.
16753 * dirent/scandirat.c: Likewise.
16754 * dirent/scandirat64.c: Likewise.
16755 * dirent/versionsort.c: Likewise.
16756 * dirent/versionsort64.c: Likewise.
16757 * include/dirent.h: Likewise.
16758
16759 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
16760 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
16761 for socketpair endpoint.
16762 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
16763 WRITE_BUFFER_SIZE as buffer size for sending socket.
16764 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
16765 issue on system where send is implemented with sendto syscall.
16766 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
16767 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
16768 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
16769 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
16770
16771 [BZ #21269]
16772 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
16773 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
16774 sa_restorer for vDSO case.
16775 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
16776
16777 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
16778
16779 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
16780 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
16781 * hurd/hurd/ioctl.h: Include <mach/port.h>
16782 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
16783 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
16784 <mach/mach_types.h> and <mach/message.h>.
16785 (headers): Move mach/param.h to bits/mach/param.h.
16786 * sysdeps/mach/i386/mach/param.h: Move file to ...
16787 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
16788 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
16789 of <mach/param.h>.
16790 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
16791 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
16792 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
16793 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
16794 trivial, for C++ conformity.
16795 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
16796 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
16797 Process mig output through $(migheadersed).
16798 * hurd/Makefile (migheadersed): Define variable.
16799 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
16800 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
16801 headers.
16802 * hurd/hurd.h: Include <bits/types/sigset_t.h>
16803 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
16804 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
16805 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
16806 <bits/types/sigset_t.h>.
16807 [!defined __USE_GNU]: Do not #error out.
16808 (struct hurd_sigstate): Use _NSIG instead of NSIG.
16809 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
16810 Include <stddef.h> and <bits/types/sigset_t.h>
16811 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
16812 instead of sighandler_t.
16813 * stdlib/errno.h (error_t): Move definition to...
16814 * bits/types/error_t.h: ... new header.
16815 * stdlib/Makefile (headers): Add bits/types/error_t.h.
16816 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
16817 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
16818 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
16819 * hurd/hurd.h: Include <bits/types/error_t.h>
16820 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
16821 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
16822 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
16823 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
16824 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
16825 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
16826 * sysdeps/mach/hurd/futimens.c: New file.
16827
16828 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
16829
16830 [BZ #22918]
16831 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
16832 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
16833 * nscd/gai.c (__nss_hosts_database): Readd definition.
16834 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
16835 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
16836 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
16837
16838 2018-03-02 Joseph Myers <joseph@codesourcery.com>
16839
16840 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
16841 (ifunc_one): Likewise.
16842
16843 2018-03-01 DJ Delorie <dj@delorie.com>
16844
16845 [BZ #22342]
16846 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
16847 key value.
16848
16849 2018-03-01 Maciej W. Rozycki <macro@mips.com>
16850
16851 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
16852 `match_pid' parameter.
16853 (td_ta_thr_iter): Update accordingly.
16854
16855 2018-03-01 Florian Weimer <fweimer@redhat.com>
16856
16857 * nptl/Makefile (install-lib-ldscripts): Remove.
16858 (install): Remove rule.
16859 ($(inst_libdir)/libpthread.so): Likewise.
16860
16861 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16862
16863 [BZ #22896]
16864 * localedata/locales/an_ES: update month and day names,
16865 improve d_fmt, improve postal_fmt, add country_post,
16866 add country_isbn
16867
16868 2018-03-01 Mike FABIAN <mfabian@redhat.com>
16869
16870 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
16871 Ukrainian instead of Bulgarian.
16872
16873 2018-03-01 Florian Weimer <fweimer@redhat.com>
16874
16875 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
16876 reference.
16877
16878 2018-03-01 Florian Weimer <fweimer@redhat.com>
16879
16880 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
16881 * nptl/Makefile (routines): Add pthread_atfork.
16882 (static-only-routines): Set to pthread_atfork.
16883 (libpthread-routines): Remove pthread_atfork.
16884 (libpthread-static-only-routines): Remove.
16885 (install): Update comment.
16886 (libpthread.so): Do not install libpthread_nonshared.a.
16887 (tests): Do not link with libpthread_nonshared.a.
16888 (generated): Remove libpthread_nonshared.a.
16889 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
16890 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
16891 with libpthread_nonshared.a.
16892
16893 2018-02-28 Joseph Myers <joseph@codesourcery.com>
16894
16895 [BZ #22902]
16896 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
16897 (libc_feholdexcept_setroundf128): New macro.
16898 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
16899
16900 [BZ #15105]
16901 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
16902 libc_hidden_def.
16903 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
16904 * include/inttypes.h: New file.
16905
16906 2018-02-27 Joseph Myers <joseph@codesourcery.com>
16907
16908 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
16909 -Os in two more places.
16910
16911 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16912
16913 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
16914 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
16915 be sorted correctly at the moment because of a bug.
16916
16917 2018-02-27 Mike FABIAN <mfabian@redhat.com>
16918
16919 [BZ #22550] - es_ES locale (and other es_* locales): collation should
16920 treat ñ as a primary different character, sync the collation
16921 for Spanish with CLDR.
16922 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
16923 * localedata/Makefile: Add new test files.
16924 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
16925 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
16926 collation order.
16927 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
16928 * localedata/am_ET.UTF-8.in: New test file.
16929 * localedata/az_AZ.UTF-8.in: Likewise.
16930 * localedata/be_BY.UTF-8.in: Likewise.
16931 * localedata/ber_DZ.UTF-8.in: Likewise.
16932 * localedata/ber_MA.UTF-8.in: Likewise.
16933 * localedata/bg_BG.UTF-8.in: Likewise.
16934 * localedata/br_FR.UTF-8.in: Likewise.
16935 * localedata/cmn_TW.UTF-8.in: Likewise.
16936 * localedata/crh_UA.UTF-8.in: Likewise.
16937 * localedata/csb_PL.UTF-8.in: Likewise.
16938 * localedata/cv_RU.UTF-8.in: Likewise.
16939 * localedata/cy_GB.UTF-8.in: Likewise.
16940 * localedata/dz_BT.UTF-8.in: Likewise.
16941 * localedata/eo.UTF-8.in: Likewise.
16942 * localedata/es_ES.UTF-8.in: Likewise.
16943 * localedata/fa_IR.UTF-8.in: Likewise.
16944 * localedata/fi_FI.UTF-8.in: Likewise.
16945 * localedata/fil_PH.UTF-8.in: Likewise.
16946 * localedata/fur_IT.UTF-8.in: Likewise.
16947 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
16948 * localedata/ha_NG.UTF-8.in: Likewise.
16949 * localedata/ig_NG.UTF-8.in: Likewise.
16950 * localedata/ik_CA.UTF-8.in: Likewise.
16951 * localedata/kk_KZ.UTF-8.in: Likewise.
16952 * localedata/ku_TR.UTF-8.in: Likewise.
16953 * localedata/ky_KG.UTF-8.in: Likewise.
16954 * localedata/ln_CD.UTF-8.in: Likewise.
16955 * localedata/mi_NZ.UTF-8.in: Likewise.
16956 * localedata/ml_IN.UTF-8.in: Likewise.
16957 * localedata/mn_MN.UTF-8.in: Likewise.
16958 * localedata/mr_IN.UTF-8.in: Likewise.
16959 * localedata/mt_MT.UTF-8.in: Likewise.
16960 * localedata/nb_NO.UTF-8.in: Likewise.
16961 * localedata/om_KE.UTF-8.in: Likewise.
16962 * localedata/os_RU.UTF-8.in: Likewise.
16963 * localedata/ps_AF.UTF-8.in: Likewise.
16964 * localedata/ro_RO.UTF-8.in: Likewise.
16965 * localedata/ru_RU.UTF-8.in: Likewise.
16966 * localedata/sc_IT.UTF-8.in: Likewise.
16967 * localedata/se_NO.UTF-8.in: Likewise.
16968 * localedata/sq_AL.UTF-8.in: Likewise.
16969 * localedata/sv_SE.UTF-8.in: Likewise.
16970 * localedata/szl_PL.UTF-8.in: Likewise.
16971 * localedata/tg_TJ.UTF-8.in: Likewise.
16972 * localedata/tk_TM.UTF-8.in: Likewise.
16973 * localedata/tt_RU.UTF-8.in: Likewise.
16974 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
16975 * localedata/ug_CN.UTF-8.in: Likewise.
16976 * localedata/uz_UZ.UTF-8.in: Likewise.
16977 * localedata/vi_VN.UTF-8.in: Likewise.
16978 * localedata/yi_US.UTF-8.in: Likewise.
16979 * localedata/yo_NG.UTF-8.in: Likewise.
16980 * localedata/zh_CN.UTF-8.in: Likewise.
16981 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
16982 file and fix bugs in the collation.
16983 * localedata/locales/az_AZ: Likewise.
16984 * localedata/locales/be_BY: Likewise.
16985 * localedata/locales/ber_DZ: Likewise.
16986 * localedata/locales/ber_MA: Likewise.
16987 * localedata/locales/bg_BG: Likewise.
16988 * localedata/locales/br_FR: Likewise.
16989 * localedata/locales/br_FR@euro: Likewise.
16990 * localedata/locales/ca_ES: Likewise.
16991 * localedata/locales/cns11643_stroke: Likewise.
16992 * localedata/locales/crh_UA: Likewise.
16993 * localedata/locales/cs_CZ: Likewise.
16994 * localedata/locales/csb_PL: Likewise.
16995 * localedata/locales/cv_RU: Likewise.
16996 * localedata/locales/cy_GB: Likewise.
16997 * localedata/locales/da_DK: Likewise.
16998 * localedata/locales/dz_BT: Likewise.
16999 * localedata/locales/en_CA: Likewise.
17000 * localedata/locales/eo: Likewise.
17001 * localedata/locales/es_CU: Likewise.
17002 * localedata/locales/es_EC: Likewise.
17003 * localedata/locales/es_ES: Likewise.
17004 * localedata/locales/es_US: Likewise.
17005 * localedata/locales/et_EE: Likewise.
17006 * localedata/locales/fa_IR: Likewise.
17007 * localedata/locales/fi_FI: Likewise.
17008 * localedata/locales/fil_PH: Likewise.
17009 * localedata/locales/fur_IT: Likewise.
17010 * localedata/locales/gez_ER@abegede: Likewise.
17011 * localedata/locales/ha_NG: Likewise.
17012 * localedata/locales/hr_HR: Likewise.
17013 * localedata/locales/hsb_DE: Likewise.
17014 * localedata/locales/hu_HU: Likewise.
17015 * localedata/locales/ig_NG: Likewise.
17016 * localedata/locales/ik_CA: Likewise.
17017 * localedata/locales/is_IS: Likewise.
17018 * localedata/locales/iso14651_t1_pinyin: Likewise.
17019 * localedata/locales/kk_KZ: Likewise.
17020 * localedata/locales/ku_TR: Likewise.
17021 * localedata/locales/ky_KG: Likewise.
17022 * localedata/locales/ln_CD: Likewise.
17023 * localedata/locales/lt_LT: Likewise.
17024 * localedata/locales/lv_LV: Likewise.
17025 * localedata/locales/mi_NZ: Likewise.
17026 * localedata/locales/ml_IN: Likewise.
17027 * localedata/locales/mn_MN: Likewise.
17028 * localedata/locales/mr_IN: Likewise.
17029 * localedata/locales/mt_MT: Likewise.
17030 * localedata/locales/nb_NO: Likewise.
17031 * localedata/locales/om_KE: Likewise.
17032 * localedata/locales/os_RU: Likewise.
17033 * localedata/locales/pl_PL: Likewise.
17034 * localedata/locales/ps_AF: Likewise.
17035 * localedata/locales/ro_RO: Likewise.
17036 * localedata/locales/ru_RU: Likewise.
17037 * localedata/locales/ru_UA: Likewise.
17038 * localedata/locales/sc_IT: Likewise.
17039 * localedata/locales/se_NO: Likewise.
17040 * localedata/locales/si_LK: Likewise.
17041 * localedata/locales/sq_AL: Likewise.
17042 * localedata/locales/sv_FI: Likewise.
17043 * localedata/locales/sv_FI@euro: Likewise.
17044 * localedata/locales/sv_SE: Likewise.
17045 * localedata/locales/szl_PL: Likewise.
17046 * localedata/locales/tg_TJ: Likewise.
17047 * localedata/locales/ti_ER: Likewise.
17048 * localedata/locales/tk_TM: Likewise.
17049 * localedata/locales/tl_PH: Likewise.
17050 * localedata/locales/tr_TR: Likewise.
17051 * localedata/locales/tt_RU: Likewise.
17052 * localedata/locales/tt_RU@iqtelif: Likewise.
17053 * localedata/locales/ug_CN: Likewise.
17054 * localedata/locales/uk_UA: Likewise.
17055 * localedata/locales/uz_UZ: Likewise.
17056 * localedata/locales/uz_UZ@cyrillic: Likewise.
17057 * localedata/locales/vi_VN: Likewise.
17058 * localedata/locales/yi_US: Likewise.
17059 * localedata/locales/yo_NG: Likewise.
17060
17061 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17062
17063 * gen-locales.mk: Make test files which contain @ modifiers in their
17064 name work.
17065 * localedata/gen-locale.sh: Likewise.
17066
17067 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17068
17069 * posix/tst-fnmatch.input: Fix results for range expressions
17070 for non C locales.
17071 * posix/tst-regexloc.c: Do not use a range expression for
17072 de_DE.ISO-8859-1 locale.
17073
17074 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17075
17076 * posix/bug-regex5.c: Fix test case because with the new
17077 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17078 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17079 file.
17080
17081 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17082
17083 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17084 downloaded from ISO, the collation order of @-. and space has changed.
17085 Therefore, this test file needed to be adapted.
17086 * localedata/fr_CA.UTF-8.in: Likewise.
17087 * localedata/fr_FR.UTF-8.in: Likewise.
17088 * localedata/uk_UA.UTF-8.in: Likewise.
17089
17090 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17091
17092 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17093 order of ȥ in the new iso14651_t1_common file.
17094 * localedata/pl_PL.UTF-8.in: Likewise.
17095
17096 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17097
17098 * localedata/locales/iso14651_t1_common: Add sections for various
17099 scripts to the iso14651_t1_common file.
17100
17101 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17102
17103 * localedata/locales/iso14651_t1_common: Use the code point of a
17104 character in the fourth collation level instead of IGNORE for all
17105 entries which have IGNORE on all 4 levels.
17106
17107 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17108
17109 * localedata/locales/iso14651_t1_common: Add some convenient collation
17110 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17111 rules similar to those in CLDR.
17112
17113 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17114
17115 * localedata/locales/iso14651_t1_common: The new version of this
17116 file downloaded from ISO contained several syntax errors which
17117 are fixed by this patch.
17118
17119 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17120
17121 * localedata/locales/iso14651_t1_common: replace all <U.....>
17122 with <U000.....> because glibc understands only 4 digit or 8 digit
17123
17124 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17125
17126 * localedata/locales/iso14651_t1_common: Necessary changes
17127 to make the file downloaded from ISO usable by glibc.
17128
17129 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17130
17131 [BZ #14095]
17132 * localedata/locales/iso14651_t1_common: Update file to
17133 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17134
17135 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17136
17137 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17138 of <nptl/pthreadP.h>
17139 (thread_attr_compare): Move function to...
17140 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17141 * sysdeps/nptl/timer_routines.h: ... new header.
17142 * sysdeps/mach/hurd/gai_misc.h: New file.
17143
17144 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17145
17146 * string/strcoll_l.c: Include <libc-diag.h>.
17147 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17148 declarations of seq1 and seq2.
17149
17150 [BZ #15105]
17151 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17152 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17153
17154 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17155
17156 [BZ #22433]
17157 [BZ #22807]
17158 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17159 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17160 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17161 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17162 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17163 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17164
17165 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17166
17167 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17168 macros used in __ptrace_request.
17169
17170 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17171
17172 [BZ #22792]
17173 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17174 to $(CC).
17175 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17176 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17177 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17178 <tcb-offsets.h>.
17179
17180 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17181
17182 [BZ #15105]
17183 * ctype/ctype.c (tolower): Use libc_hidden_def.
17184 (toupper): Likewise.
17185 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17186 [!_ISOMAC] (toupper): Likewise.
17187
17188 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17189
17190 * localedata/Makefile: Remove --quiet argument when
17191 installing locales
17192
17193 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17194
17195 [BZ #17438]
17196 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17197 in d_fmt.
17198 * localedata/locales/pt_PT (LC_TIME): likewise
17199
17200 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17201
17202 [BZ #22646]
17203 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17204 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17205 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17206
17207 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17208
17209 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17210
17211 * nptl/Makefile (routines): Remove unregister-atfork.
17212 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17213 (fork_handler_alloc): Remove function.
17214 (fork_handlers, fork_handler_init): New variables.
17215 (__fork_lock): Rename to atfork_lock.
17216 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17217 to use a dynamic array to add/remove atfork handlers.
17218 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17219 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17220 Remove declaration.
17221 (fork_handler): Remove next, refcntr, and need_signal member.
17222 (__run_fork_handler_type): New enum.
17223 (__run_fork_handlers): New prototype.
17224 * nptl/register-atfork.c: Remove file.
17225 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17226
17227 * sysdeps/nptl/nptl-signals.h: Move to ...
17228 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17229 comments.
17230 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17231 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17232 unnecessary check for SIGTIMER.
17233 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17234 remove unnecessary removal of SIGTIMER.
17235 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17236 include-signals.h rename.
17237 * nptl/pthreadP.h: Likewise.
17238 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17239 __is_internal_signal instead of __nptl_is_internal_signal.
17240
17241 2018-02-22 Andrew Waterman <andrew@sifive.com>
17242
17243 [BZ # 22884]
17244 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17245 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17246 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17247 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17248
17249 2018-02-22 DJ Delorie <dj@delorie.com>
17250
17251 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17252
17253 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17254
17255 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17256 do_misaligned, not misaligned8.
17257
17258 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17259
17260 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17261 Add memcpy_thunderx2.
17262 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17263 Increment to 4.
17264 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17265 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17266 and IS_THUNDERX2PA checks.
17267 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17268 Use macro to set name appropriately.
17269 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17270 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17271 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17272 New macro.
17273 (IS_THUNDERX2): New macro.
17274
17275 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17276
17277 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17278
17279 2018-02-21 Zack Weinberg <zackw@panix.com>
17280
17281 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17282 Define here, unconditionally.
17283 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17284 * libio/libioP.h: Remove #if 0 blocks.
17285 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17286 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17287 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17288
17289 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17290 Assume weak_alias is always defined.
17291
17292 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17293 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17294 Remove #if 0 and #ifdef TODO blocks.
17295 Assume text_set_element is always defined.
17296
17297 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17298 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17299 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17300
17301 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17302 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17303 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17304 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17305 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17306 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17307 Reformat bit flags for _flags field to make occupancy clearer.
17308 Update commentary.
17309 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17310 Keep definitions consistent with those in libio/libio.h.
17311
17312 * libio/libio.h (_IO_file_flags): Remove macro.
17313 All uses changed to _flags.
17314
17315 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17316 (__HAVE_COLUMN, _IO_BE): Don't define.
17317 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17318 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17319 * libio/libioP.h (EOF): Don't define.
17320 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17321 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17322 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17323 testing _IO_UNIFIED_JUMPTABLES.
17324
17325 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17326 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17327 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17328 (_IO_size_t): Delete; all uses changed to size_t.
17329 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17330 (_IO_off_t): Delete; all uses changed to off_t.
17331 (_IO_off64_t): Delete; all uses changed to off64_t.
17332 (_IO_pid_t): Delete; all uses changed to pid_t.
17333 (_IO_uid_t): Delete; all uses changed to uid_t.
17334 (_IO_wint_t): Delete; all uses changed to wint_t.
17335 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17336 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17337 (_IO_cookie_io_functions_t): Delete; all uses changed to
17338 cookie_io_functions_t.
17339 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17340 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17341 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17342 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17343
17344 * libio/iofopncook.c: Remove unnecessary forward declarations.
17345 * libio/iolibio.h: Correct outdated commentary.
17346 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17347 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17348 Remove unnecessary casts.
17349 * stdio-common/getline.c: Use _IO_getdelim directly.
17350 Don't redefine ssize_t.
17351 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17352 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17353 Remove outdated comments.
17354 * stdio-common/vfscanf.c: Don't redefine va_list.
17355
17356 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17357 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17358 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17359 which are always true, and __cplusplus, which is always false.
17360
17361 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17362
17363 [BZ #15105]
17364 [BZ #19463]
17365 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17366 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17367 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17368 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17369 libc_hidden_proto.
17370 [!_ISOMAC] (putc_unlocked): Likewise.
17371 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17372 define inline if [__USE_EXTERN_INLINES].
17373 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17374 putc_unlocked.
17375
17376 [BZ #15105]
17377 [BZ #19463]
17378 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17379 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17380 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17381 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17382 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17383 getc_unlocked.
17384 * time/tzfile.c (__tzfile_read): Likewise.
17385
17386 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17387
17388 [BZ #22517]
17389 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17390
17391 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17392
17393 * io/fcntl.h: Fix a typo in a comment.
17394
17395 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17396
17397 [BZ #22862]
17398 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17399 define _DEFAULT_SOURCE.
17400 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17401
17402 2018-02-21 Florian Weimer <fweimer@redhat.com>
17403
17404 [BZ #20890]
17405 * elf/cache.c (save_cache): Call fsync on temporary file before
17406 renaming it.
17407 (save_aux_cache): Call fdatasync on temporary file before renaming
17408 it.
17409
17410 2018-02-21 Florian Weimer <fweimer@redhat.com>
17411
17412 [BZ #22787]
17413 * include/caller.h: Remove file.
17414 * elf/dl-caller.c: Likewise.
17415 * elf/Makefile (dl-routines): Remove dl-caller.
17416 (shared-only-routines): Do not add dl-caller.
17417 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17418 __check_caller.
17419 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17420 member.
17421 (dl_open_worker): Do not call __check_caller.
17422 (_dl_open): Do not set caller_dl_open member.
17423 * elf/rtld.c (_rtld_global_ro): Do not initialize
17424 _dl_check_caller member.
17425 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17426 _dl_check_caller member.
17427 (_dl_check_caller): Remove declaration.
17428 * sysdeps/unix/sysv/linux/dl-execstack.c
17429 (_dl_make_stack_executable): Do not call __check_caller.
17430
17431 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17432
17433 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17434 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17435
17436 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17437
17438 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17439 description.
17440
17441 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17442
17443 [BZ #16335]
17444 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17445 of 199606L, 200112L, and 200809L.
17446 (_XOPEN_SOURCE): Document special values of 600 and 700.
17447 (_ISOC11_SOURCE): Document macro.
17448 (_ATFILE_SOURCE): Likewise.
17449 (_FORTIFY_SOURCE): Likewise.
17450
17451 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17452
17453 [BZ #15105]
17454 [BZ #19463]
17455 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17456 and define as weak alias of __ferror_unlocked. Use
17457 libc_hidden_weak.
17458 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17459 libc_hidden_proto.
17460 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17461 function if [__USE_EXTERN_INLINES].
17462 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17463 ferror_unlocked.
17464
17465 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17466
17467 [BZ #6889]
17468 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17469
17470 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17471
17472 [BZ #22818]
17473 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17474 the GLIBC_2.1 version.
17475
17476 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17477
17478 [BZ #21508]
17479 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17480 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17481 intl/tst-gettext-de.po from po/de.po by removing the
17482 POT-Creation-Date line.
17483 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17484 ../po/de.po.
17485 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17486 ../po/de.po.
17487
17488 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17489
17490 * mach/Makefile (headers): Add mach/param.h.
17491 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17492 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17493 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17494 (__ptsname_r): Move implementation to...
17495 (__ptsname_internal): ... new function. Add filling the STP
17496 structure.
17497
17498 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17499
17500 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17501 idouble to 1 ULP.
17502
17503 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17504
17505 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17506 syntax.
17507
17508 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17509
17510 * nptl/Makefile (tst-mutex8-ENV): Delete.
17511 * nptl/tst-mutex8.c (check_type):
17512 Add runtime check if mutex will be elided.
17513
17514 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17515
17516 [BZ #20980]
17517 [BZ #21234]
17518 * manual/install.texi (Configuring and compiling): Describe
17519 passing CC and CFLAGS on configure command line, not as
17520 environment variables. Use @code markup on those variables.
17521 Specify what options go in CC and what go in CFLAGS. Note the
17522 requirement to compile with optimization.
17523 * INSTALL: Regenerated.
17524
17525 [BZ #18124]
17526 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17527 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17528 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17529 __sigprocmask instead of sigprocmask.
17530 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17531 Likewise.
17532 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17533 __sigsetjmp and sigprocmask.
17534
17535 [BZ #15105]
17536 * include/argz.h (argz_next): Use libc_hidden_proto.
17537 (__argz_next): Likewise.
17538 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17539 (argz_next): Use libc_hidden_weak.
17540
17541 [BZ #15105]
17542 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17543 libc_hidden_proto.
17544 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17545 libc_hidden_def.
17546
17547 [BZ #15105]
17548 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17549 libc_hidden_proto.
17550 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17551
17552 [BZ #15105]
17553 [BZ #19463]
17554 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17555 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17556 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17557 (__feof_unlocked): New declaration, and inline function if
17558 [__USE_EXTERN_INLINES].
17559 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17560 instead of feof_unlocked.
17561 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17562 * nss/nsswitch.c (nss_parse_file): Likewise.
17563 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17564 Likewise.
17565 * time/getdate.c (__getdate_r): Likewise.
17566 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17567 Define as macro to call __feof_unlocked.
17568
17569 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17570
17571 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17572
17573 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17574
17575 * math/Makefile: Remove mpexp.c and mplog.c
17576 * sysdeps/i386/fpu/mpexp.c: Delete file.
17577 * sysdeps/i386/fpu/mplog.c: Likewise.
17578 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17579 * sysdeps/ia64/fpu/mplog.c: Likewise.
17580 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17581 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17582 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17583 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17584 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17585 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17586 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17587 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17588 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17589 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17590 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17591 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17592 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17593 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17594 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17595 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17596
17597 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17598
17599 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17600
17601 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17602
17603 * sysdeps/sh/libm-test-ulps: Update.
17604
17605 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17606
17607 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17608 idouble to 1 ULP.
17609
17610 2018-02-12 Zack Weinberg <zackw@panix.com>
17611
17612 [BZ #19239]
17613 * posix/sys/types.h: Don't include sys/sysmacros.h.
17614 * misc/sys/sysmacros.h: Remove the conditional deprecation
17615 warnings for the macros defined by this header.
17616
17617 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17618
17619 * manual/probes.texi: Remove slowexp probes.
17620 * math/Makefile: Remove slowexp.
17621 * sysdeps/generic/math_private.h (__slowexp): Remove.
17622 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17623 document error bounds.
17624 * sysdeps/i386/fpu/slowexp.c: Remove.
17625 * sysdeps/ia64/fpu/slowexp.c: Remove.
17626 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17627 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17628 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17629 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17630 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17631 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17632 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17633 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17634 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17635 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17636 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17637
17638 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17639
17640 [BZ #13932]
17641 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17642 * benchtests/pow-inputs: Update comment for slow path cases.
17643 * manual/probes.texi (slowpow_p10): Delete removed probe.
17644 (slowpow_p10): Likewise.
17645 * math/Makefile: Remove halfulp.c and slowpow.c.
17646 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17647 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17648 (__halfulp): Remove.
17649 (__slowpow): Remove.
17650 * sysdeps/i386/fpu/halfulp.c: Delete file.
17651 * sysdeps/i386/fpu/slowpow.c: Likewise.
17652 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17653 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17654 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17655 improve comments and add error analysis.
17656 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17657 (power1): Remove function:
17658 (log1): Remove error argument, add error analysis.
17659 (my_log2): Remove function.
17660 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17661 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17662 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17663 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17664 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17665 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17666 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17667 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17668 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17669 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17670 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17671 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17672 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17673 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17674
17675 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17676
17677 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17678 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17679
17680 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17681
17682 [BZ #22433]
17683 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17684 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17685 and PTRACE_SETHBPREGS.
17686
17687 2018-02-10 Zack Weinberg <zackw@panix.com>
17688
17689 [BZ #22830]
17690 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17691 correctly.
17692 * malloc/tst-malloc-stats-cancellation.c: New test case.
17693 * malloc/Makefile: Add new test case.
17694
17695 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17696
17697 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17698
17699 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17700
17701 * math/Makefile (libm-narrow-fns): Add add.
17702 (libm-test-funcs-narrow): Likewise.
17703 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17704 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17705 * math/gen-auto-libm-tests.c (test_functions): Add add.
17706 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17707 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17708 (NARROW_ADD_TRIVIAL): Likewise.
17709 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17710 macro.
17711 (__daddl): Likewise.
17712 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17713 dadd.
17714 (CFLAGS-nldbl-dadd.c): New variable.
17715 (CFLAGS-nldbl-fadd.c): Likewise.
17716 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17717 __nldbl_daddl.
17718 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17719 prototype.
17720 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17721 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17722 * math/auto-libm-test-in: Add tests of add.
17723 * math/auto-libm-test-out-narrow-add: New generated file.
17724 * math/libm-test-narrow-add.inc: New file.
17725 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17726 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17727 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17728 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17729 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17730 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17731 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17732 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17733 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17734 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17735 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17736 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17737 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17738 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17739 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17740 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17741 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17742 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
17743 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17744 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17745 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17746 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17747 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17748 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17749 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17750 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17751 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17752 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17753 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17754 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17755 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17756 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17757 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17761 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17762 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17763 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17764 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17765 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17766 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17767 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
17768 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
17769 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17770 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17771
17772 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
17773 (f128-pairs): New variable.
17774 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
17775 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
17776 to CFLAGS.
17777 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
17778 Also make tests add $(f128-loader-link) to gnulib-tests.
17779
17780 2018-02-09 DJ Delorie <dj@redhat.com>
17781
17782 [BZ #22827]
17783 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
17784 64-bit ELF type for 64-bit ELF objects.
17785
17786 2018-02-09 Joseph Myers <joseph@codesourcery.com>
17787
17788 * math/libm-test-driver.c (snan_tests_arg): New variable.
17789 * math/libm-test-support.h (snan_tests_arg): New declaration.
17790 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
17791
17792 * math/Makefile (test-type-pairs): New variable.
17793 (test-type-pairs-f64xf128-yes): Likewise.
17794 (tests): Add test-narrow-macros.
17795 (libm-test-funcs-narrow): New variable.
17796 (libm-test-c-narrow): Likewise.
17797 (generated): Add $(libm-test-c-narrow).
17798 (libm-tests-base-narrow): New variable.
17799 (libm-tests-narrow): Likewise.
17800 (libm-tests): Add $(libm-tests-narrow).
17801 (libm-tests-for-type): Handle $(libm-tests-narrow).
17802 (libm-test-c-narrow-obj): New variable.
17803 ($(libm-test-c-narrow-obj)): New rule.
17804 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
17805 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
17806 $(o-iterator) to set dependencies and CFLAGS.
17807 * math/gen-auto-libm-tests.c: Document use for narrowing
17808 functions.
17809 (output_for_one_input_case): Take argument NARROW.
17810 (generate_output): Likewise. Update call to
17811 output_for_one_input_case.
17812 (main): Take --narrow option. Update call to generate_output.
17813 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
17814 (apply_lit): Update call to _apply_lit.
17815 (apply_arglit): New function.
17816 (parse_args): Handle "a" arguments.
17817 (parse_auto_input): Handle format names using ":".
17818 * math/README.libm-test: Document "a" parameter type.
17819 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
17820 (ARG_TYPE_TRUE_MIN): Likewise.
17821 (ARG_TYPE_MAX): Likwise.
17822 (ARG_MIN_EXP): Likewise.
17823 (ARG_MAX_EXP): Likewise.
17824 (ARG_MANT_DIG): Likewise.
17825 (TEST_COND_arg_ibm128): Likewise.
17826 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
17827 (TEST_COND_arg_fmt): New macro.
17828 (init_max_error): Update prototype.
17829 * math/libm-test-support.c (test_ibm128): New variable.
17830 (init_max_error): Take argument testing_ibm128 and set test_ibm128
17831 instead of using [TEST_COND_ibm128] conditional.
17832 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
17833 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
17834 [TEST_NARROW] (TEST_MSG): New definition.
17835 (arg_plus_zero): New macro.
17836 (arg_minus_zero): Likewise.
17837 (arg_plus_infty): Likewise.
17838 (arg_minus_infty): Likewise.
17839 (arg_qnan_value_pl): Likewise.
17840 (arg_qnan_value): Likewise.
17841 (arg_snan_value_pl): Likewise.
17842 (arg_snan_value): Likewise.
17843 (arg_max_value): Likewise.
17844 (arg_min_value): Likewise.
17845 (arg_min_subnorm_value): Likewise.
17846 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
17847 (RUN_TEST_LOOP_aa_f): New macro.
17848 (TEST_SUFF): New macro.
17849 (TEST_SUFF_STR): Likewise.
17850 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
17851 (TEST_COND_any_ibm128): New macro.
17852 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
17853 this_func. Update call to init_max_error.
17854 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
17855 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
17856 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
17857 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
17858 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
17859 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
17860 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
17861 * math/test-math-scalar.h (TEST_NARROW): Likewise.
17862 * math/test-math-vector.h (TEST_NARROW): Likewise.
17863 * math/test-arg-double.h: New file.
17864 * math/test-arg-float128.h: Likewise.
17865 * math/test-arg-float32x.h: Likewise.
17866 * math/test-arg-float64.h: Likewise.
17867 * math/test-arg-float64x.h: Likewise.
17868 * math/test-arg-ldouble.h: Likewise.
17869 * math/test-math-narrow.h: Likewise.
17870 * math/test-narrow-macros.c: Likewise.
17871 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
17872 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
17873 test-narrow-macros-ldbl-64.
17874 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
17875
17876 * math/bits/mathcalls-narrow.h: New file.
17877 * include/bits/mathcalls-narrow.h: Likewise.
17878 * math/math-narrow.h: Likewise.
17879 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
17880 (__MATHCALL_NARROW_ARGS_2): Likewise.
17881 (__MATHCALL_NARROW_ARGS_3): Likewise.
17882 (__MATHCALL_NARROW_NORMAL): Likewise.
17883 (__MATHCALL_NARROW_REDIR): Likewise.
17884 (__MATHCALL_NARROW): Likewise.
17885 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
17886 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
17887 defined.
17888 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
17889 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
17890 (libm-narrow-fns): New variable.
17891 (libm-narrow-types-basic): Likewise.
17892 (libm-narrow-types-ldouble-yes): Likewise.
17893 (libm-narrow-types-float128-yes): Likewise.
17894 (libm-narrow-types-float128-alias-yes): Likewise.
17895 (libm-narrow-types): Likewise.
17896 (libm-routines): Add narrowing functions.
17897 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
17898 (libc_feholdexcept_setroundf128): New macro.
17899 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
17900 * sysdeps/ieee754/float128/float128_private.h: Include
17901 <math/math-narrow.h>.
17902 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
17903 Undefine and redefine.
17904 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
17905 (libm_alias_float_ldouble): Undefine and redefine.
17906 (libm_alias_double_ldouble): Likewise.
17907
17908 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
17909
17910 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
17911
17912 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
17913 FPCR/FPSR.
17914
17915 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
17916
17917 * manual/creature.texi: Convert references to gcc.info to gcc.
17918 * manual/stdio.texi: Likewise.
17919 * manual/string.texi: Likewise.
17920
17921 2018-02-07 Joseph Myers <joseph@codesourcery.com>
17922
17923 [BZ #17979]
17924 * posix/bits/types.h (__int_least8_t): New typedef.
17925 (__uint_least8_t): Likewise.
17926 (__int_least16_t): Likewise.
17927 (__uint_least16_t): Likewise.
17928 (__int_least32_t): Likewise.
17929 (__uint_least32_t): Likewise.
17930 (__int_least64_t): Likewise.
17931 (__uint_least64_t): Likewise.
17932 * sysdeps/generic/stdint.h (int_least8_t): Define using
17933 __int_least8_t.
17934 (int_least16_t): Define using __int_least16_t.
17935 (int_least32_t): Define using __int_least32_t.
17936 (int_least64_t): Define using __int_least64_t.
17937 (uint_least8_t): Define using __uint_least8_t.
17938 (uint_least16_t): Define using __uint_least16_t.
17939 (uint_least32_t): Define using __uint_least32_t.
17940 (uint_least64_t): Define using __uint_least64_t.
17941 * wcsmbs/uchar.h: Include <bits/types.h>.
17942 (char16_t): Define using __uint_least16_t conditional only on
17943 [!__USE_ISOCXX11].
17944 (char32_t): Define using __uint_least32_t conditional only on
17945 [!__USE_ISOCXX11].
17946 * wcsmbs/test-char-types.c: New file.
17947 * wcsmbs/Makefile (tests): Add test-char-types.
17948
17949 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
17950 version to 4.0.1.
17951
17952 2018-02-07 Zack Weinberg <zackw@panix.com>
17953
17954 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
17955 Delete all contents except for definitions of _G_HAVE_MMAP and
17956 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
17957 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
17958 sysdeps/unix/sysv/linux/_G_config.h. Make same content
17959 change as above.
17960
17961 * libio/libio.h: Don't include bits/_G_config.h here.
17962 Include stddef.h with __need_wchar_t defined. Include
17963 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
17964 Define _IO_iconv_t here, directly.
17965 Don't define _IO_HAVE_ST_BLKSIZE.
17966 * libio/libioP.h: Include _G_config.h here. Move include of
17967 shlib-compat.h up with rest of includes. Simplify conditionals
17968 controlling definition of _IO_JUMPS_OFFSET.
17969
17970 * csu/init.c: Remove always-true #if around entire file.
17971 Don't include stdio.h. Set _IO_stdin_used to hardwired
17972 constant 0x20001, and update commentary.
17973 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
17974 Replace all uses of _G_va_list with __gnuc_va_list.
17975 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
17976 instead of #if _IO_HAVE_ST_BLKSIZE.
17977 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
17978 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
17979 not #ifdef.
17980
17981 * libio/bits/libio.h: Move back to libio/libio.h and adjust
17982 multiple-include guard to match.
17983 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
17984 into this file.
17985 Remove preprocessor conditionals that are always true and/or
17986 redundant to other preprocessor conditionals in the same nest.
17987 Include shlib-compat.h unconditionally.
17988 Error out if _LIBC is not defined, or if _ISOMAC is defined,
17989 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
17990 defined after including stdio.h.
17991 Use __BEGIN_DECLS/__END_DECLS.
17992
17993 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
17994 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
17995 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
17996
17997 2018-02-07 Zack Weinberg <zackw@panix.com>
17998
17999 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18000 New single-type headers split from _G_config.h.
18001 * libio/bits/types/cookie_io_functions_t.h
18002 * libio/bits/types/struct_FILE.h
18003 New single-type headers split from libio.h.
18004
18005 * libio/Makefile: Install the above new headers. Don't install
18006 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18007 bits/libio-ldbl.h.
18008 * libio/_G_config.h, libio/libio.h: Delete file.
18009
18010 * libio/bits/libio.h: Remove improper-inclusion guard.
18011 Include stdio.h and don't repeat anything that it does.
18012 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18013 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18014 __io_read_fn as cookie_read_function_t,
18015 __io_write_fn as cookie_write_function_t,
18016 __io_seek_fn as cookie_seek_function_t,
18017 __io_close_fn as cookie_close_function_t,
18018 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18019 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18020 here, in the "compatibility defines" section. Remove an #if 0
18021 block. Use the "body" macros from bits/types/struct_FILE.h to
18022 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18023 and _IO_ferror_unlocked.
18024 Move prototypes of __uflow and __overflow...
18025
18026 * libio/stdio.h: ...here. Don't include bits/libio.h.
18027 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18028 directly from stdarg.h. Include bits/types/__fpos_t.h,
18029 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18030 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18031 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18032 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18033 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18034 __ssize_t, not _IO_ssize_t. Unconditionally define
18035 BUFSIZ as 8192 and EOF as (-1).
18036
18037 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18038 macros from bits/types/struct_FILE.h instead of _IO_* macros
18039 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18040 instead of _IO_ssize_t.
18041 * libio/bits/stdio2.h: Similarly.
18042
18043 * libio/iolibio.h: Add multiple-include guard.
18044 Include bits/libio.h after stdio.h.
18045 * libio/libioP.h: Add multiple-include guard.
18046 Include stdio.h and bits/libio.h before iolibio.h.
18047
18048 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18049 * include/bits/types/cookie_io_functions_t.h
18050 * include/bits/types/struct_FILE.h: New wrappers.
18051
18052 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18053 Get definitions of _G_fpos_t and _G_fpos64_t from
18054 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18055 respectively. Remove improper-inclusion guards.
18056
18057 * conform/data/stdio.h-data: Update expectations of va_list.
18058 * scripts/check-installed-headers.sh: Remove special case for
18059 libio.h and _G_config.h.
18060
18061 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18062
18063 [BZ #15105]
18064 [BZ #19463]
18065 * include/sys/sysmacros.h [!_ISOMAC]
18066 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18067 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18068 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18069 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18070 libc_hidden_proto.
18071 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18072 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18073 Likewise.
18074 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18075 Undefine and redefine to add use __gnu_dev_ prefix.
18076 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18077 Likewise.
18078 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18079 and define as hidden inline function.
18080 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18081 Likewise.
18082 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18083 Likewise.
18084 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18085 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18086 (gnu_dev_minor): Likewise.
18087 (gnu_dev_makedev): Likewise.
18088 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18089 makedev.
18090 * posix/wordexp.c (exec_comm_child): Likewise.
18091 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18092 instead of minor and __gnu_dev_major instead of major.
18093 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18094 __gnu_dev_major instead of major.
18095 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18096 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18097 instead of gnu_dev_minor.
18098 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18099 (SLAVE_P): Likewise.
18100 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18101 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18102 instead of major.
18103
18104 [BZ #21313]
18105 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18106 in another place.
18107 * locale/weightwc.h (findidx): Likewise.
18108
18109 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18110
18111 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18112 (slowlog_inexact): Likewise
18113 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18114 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18115
18116 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18117
18118 [BZ #22797]
18119 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18120 missing second underscore to parameter name.
18121
18122 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18123
18124 [BZ #14508]
18125 [BZ #15512]
18126 [BZ #17082]
18127 [BZ #20530]
18128 * bits/byteswap.h: Update file comment. Do not include
18129 <bits/byteswap-16.h>.
18130 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18131 constant.
18132 (__bswap_16): Define as inline function.
18133 (__bswap_constant_32): Reformat definition.
18134 (__bswap_32): Always define as inline function, not macro, using
18135 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18136 otherwise __bswap_constant_32.
18137 (__bswap_constant_64): Reformat definition. Do not use
18138 __extension__ here.
18139 (__bswap_64): Always define as inline function, not macro. Use
18140 __extension__ on function definition. Use __builtin_bswap64 if
18141 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18142 * string/test-endian-file-scope.c: New file.
18143 * string/test-endian-sign-conversion.c: Likewise.
18144 * string/Makefile (headers): Remove bits/byteswap-16.h.
18145 (tests): Add test-endian-file-scope and
18146 test-endian-sign-conversion.
18147 (CFLAGS-test-endian-sign-conversion.c): New variable.
18148 * bits/byteswap-16.h: Remove file.
18149 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18150 * sysdeps/ia64/bits/byteswap.h: Likewise.
18151 * sysdeps/m68k/bits/byteswap.h: Likewise.
18152 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18153 * sysdeps/s390/bits/byteswap.h: Likewise.
18154 * sysdeps/tile/bits/byteswap.h: Likewise.
18155 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18156 * sysdeps/x86/bits/byteswap.h: Likewise.
18157
18158 [BZ #17721]
18159 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18160 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18161 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18162 199901L] (__restrict): Define to restrict.
18163
18164 [BZ #19667]
18165 * string/testcopy.c: Include <support/support.h>. Do not include
18166 <malloc.h>. Use <support/test-driver.c>.
18167 (main): Rename to do_test. Make static. Use xmalloc instead of
18168 malloc.
18169
18170 [BZ #13575]
18171 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18172 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18173 (SSIZE_MAX): Define to INT_MAX.
18174 * posix/test-ssize-max.c: New file.
18175 * posix/Makefile (tests): Add test-ssize-max.
18176
18177 [BZ #19668]
18178 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18179 <support/support.h>. Do not include <malloc.h>.
18180 (query_auxv): Use xmalloc instead of malloc.
18181
18182 [BZ #14553]
18183 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18184 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18185 instead of loff_t.
18186
18187 2018-02-06 Florian Weimer <fweimer@redhat.com>
18188
18189 [BZ #18023]
18190 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18191 Use scratch_buffer instead of extend_alloca.
18192
18193 2018-02-06 Zack Weinberg <zackw@panix.com>
18194
18195 * libio/stdio.h: Don't define getc or putc as macros.
18196 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18197 not _IO_getc and _IO_putc.
18198
18199 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18200 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18201
18202 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18203
18204 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18205 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18206
18207 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18208
18209 [BZ #14890]
18210 * elf/elf.h (NT_PRFPREG): New macro.
18211 (NT_S390_VXRS_LOW): Likewise.
18212 (NT_S390_VXRS_HIGH): Likewise.
18213 (NT_S390_GS_CB): Likewise.
18214 (NT_S390_GS_BC): Likewise.
18215 (NT_S390_RI_CB): Likewise.
18216
18217 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18218 (MAP_SYNC): New macro.
18219 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18220 Likewise.
18221 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18222 (MAP_SYNC): Likewise.
18223 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18224 (MAP_SYNC): Likewise.
18225 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18226 (MAP_SYNC): Likewise.
18227 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18228 (MAP_SYNC): Likewise.
18229 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18230 (MAP_SYNC): Likewise.
18231 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18232 (MAP_SYNC): Likewise.
18233 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18234 Likewise.
18235 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18236 Likewise.
18237
18238 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18239 (MAP_SHARED_VALIDATE): New macro.
18240 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18241 (MAP_SHARED_VALIDATE): Likewise.
18242
18243 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18244
18245 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18246 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18247 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18248
18249 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18250
18251 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18252 (DT_NUM): Updated to 35.
18253
18254 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18255
18256 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18257 __builtin_expect with __glibc_likely and __glibc_unlikely.
18258 (elf_machine_rela): Likewise.
18259 (elf_machine_lazy_rel): Likewise.
18260
18261 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18262
18263 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18264 __builtin_expect with __glibc_likely and __glibc_unlikely.
18265 (elf_machine_lazy_rel): Likewise.
18266
18267 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18268
18269 [BZ #22638]
18270 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18271 SHARED.
18272 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18273
18274 2018-02-05 Andreas Schwab <schwab@suse.de>
18275
18276 [BZ #22761]
18277 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18278 string.
18279
18280 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18281
18282 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18283 not check against PTHREAD_STACK_MIN.
18284
18285 2018-02-02 Sean McKean <smckean83@gmail.com>
18286
18287 [BZ #22735]
18288 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18289
18290 2018-02-02 Florian Weimer <fweimer@redhat.com>
18291
18292 [BZ #22753]
18293 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18294 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18295 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18296 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18297 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18298 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18299 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18300 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18301 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18302 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18303 * misc/tst-preadvwritev2.c (do_test): Call it.
18304 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18305
18306 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18307
18308 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18309
18310 * benchtests/bench-memcmp.c: Print json instead of plain text.
18311
18312 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18313 every test run.
18314
18315 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18316
18317 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18318 version to 4.15.
18319 (s390_sthyi): New syscall.
18320
18321 * sysdeps/generic/ldbl-classify-compat.h: New file.
18322 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18323 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18324 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18325 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18326 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18327 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18328 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18329 <ldbl-classify-compat.h>.
18330 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18331 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18332 <ldbl-classify-compat.h>.
18333 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18334 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18335 <ldbl-classify-compat.h>.
18336 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18337 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18338 <ldbl-classify-compat.h>.
18339 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18340 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18341 <ldbl-classify-compat.h>.
18342 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18343 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18344 <ldbl-classify-compat.h>.
18345 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18346 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18347 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18348 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18349 * sysdeps/microblaze/math_private.h: Likewise.
18350 * sysdeps/nios2/math_private.h: Likewise.
18351 * sysdeps/sh/math_private.h: Likewise.
18352
18353 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18354 * sysdeps/m68k/coldfire/math_private.h: ... here.
18355 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18356 * sysdeps/tile/math_private.h: Likewise.
18357 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18358 Remove macro.
18359 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18360 Likewise.
18361
18362 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18363 Remove macro.
18364 (libc_fetestexcept): Likewise.
18365 (libc_feupdateenv_test): Likewise.
18366 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18367 (libc_fetestexcept): Likewise.
18368 (libc_feupdateenv_test): Likewise.
18369 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18370 (libc_fetestexcept): Likewise.
18371 (libc_feupdateenv_test): Likewise.
18372 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18373 (libc_fetestexcept): Likewise.
18374 (libc_feupdateenv_test): Likewise.
18375
18376 * sysdeps/generic/math_private.h
18377 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18378 New inline function.
18379 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18380 Likewise.
18381
18382 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18383 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18384 * sysdeps/generic/math_private.h
18385 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18386 inline function.
18387 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18388 Likewise.
18389 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18390 Likewise.
18391 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18392 Likewise.
18393 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18394 Likewise.
18395 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18396 Likewise.
18397 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18398 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18399 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18400 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18401 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18402 (__fegetenv): Likewise.
18403 (fesetenv): Likewise.
18404 (__fesetenv): Likewise.
18405 (feupdateenv): Likewise.
18406 (__feupdateenv): Likewise.
18407 (fegetround): Likewise.
18408 (__fegetround): Likewise.
18409 (fesetround): Likewise.
18410 (__fesetround): Likewise.
18411
18412 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18413 (feraiseexcept): New macro.
18414 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18415 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18416 Remove macro.
18417 (__feraiseexcept): Likewise.
18418 (feclearexcept): Likewise.
18419 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18420 (__feraiseexcept): Likewise.
18421 (feclearexcept): Likewise.
18422 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18423 (__feraiseexcept): Likewise.
18424 (feclearexcept): Likewise.
18425 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18426 (__feraiseexcept): Likewise.
18427 (feclearexcept): Likewise.
18428 (fetestexcept): Likewise.
18429
18430 * sysdeps/m68k/coldfire/math-tests.h: New file.
18431
18432 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18433 * sysdeps/m68k/bits/fenv.h: ... here.
18434 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18435 not define.
18436 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18437 Likewise.
18438 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18439 Likewise.
18440 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18441 Likewise.
18442 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18443 Likewise.
18444 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18445 Define to 0.
18446 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18447 (__FE_UNDEFINED): New enum constant.
18448 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18449 Do not define.
18450 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18451 Likewise.
18452 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18453 Likewise.
18454 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18455 to match generic bits/fenv.h.
18456 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18457 Do not define.
18458
18459 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18460 packed on bits.
18461 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18462 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18463 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18464 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18465
18466 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18467 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18468 Joseph Myers <joseph@codesourcery.com>
18469
18470 [BZ #21314]
18471 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18472 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18473 computation using c.
18474 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18475 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18476 computation using c.
18477
18478 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18479
18480 * version.h (RELEASE): Set to "development".
18481 (VERSION): Set to "2.27.9000".
18482 * NEWS (2.28): New section.
18483
18484 * version.h (RELEASE): Set to "stable".
18485 (VERSION): Set to "2.27".
18486 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18487
18488 * NEWS: Add the list of bugs fixed in 2.27.
18489
18490 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18491
18492 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18493 against PTHREAD_STACK_MIN.
18494
18495 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18496
18497 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18498 New entries.
18499 (Rafal Luzynski, Andreas Schwab): Update.
18500
18501 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18502
18503 [BZ #10871]
18504 * NEWS: List the languages which actually use the alternative
18505 months feature in this release. Also explain that "alt_mon" and
18506 "ab_alt_mon" are optional.
18507
18508 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18509
18510 [BZ #22765]
18511 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18512
18513 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18514
18515 * manual/install.texi (Tools for Compilation): Update the newest
18516 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18517 * INSTALL: Regenerated.
18518
18519 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18520
18521 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18522 instead of __builtin_expect.
18523
18524 2018-01-30 Florian Weimer <fweimer@redhat.com>
18525
18526 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18527 data.
18528 * nss/tst-nss-getpwent.c (do_test): Likewise.
18529
18530 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18531
18532 [BZ #10871]
18533 * localedata/locales/hr_HR (mon): Rename to...
18534 (alt_mon): This.
18535 (mon): Import from CLDR (genitive case).
18536 (d_t_fmt): Update the comment.
18537
18538 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18539
18540 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18541 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18542 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18543
18544 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18545
18546 * mach/Versions: Fix version when __mach_host_self_ was added.
18547 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18548 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18549 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18550 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18551 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18552 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18553 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18554 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18555 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18556 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18557 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18558 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18559 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18560 || to respect codestyle.
18561 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18562 (do_test_bz20181): Rename accordingly.
18563 * malloc/malloc.c: Include <assert.h>.
18564 (assert): Do not define.
18565 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18566 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18567 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18568 * sysdeps/mach/hurd/hp-timing.h: New file.
18569 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18570
18571 2018-01-29 Darius Rad <darius@bluespec.com>
18572
18573 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18574
18575 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18576
18577 * sysdeps/init_array/crti.S (.section .init_array): Add
18578 PREINIT_FUNCTION when defined.
18579 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18580 * config.h.in: Regenerate.
18581 * manual/platform.texi: Add RISC-V documenation for
18582 __riscv_flush_icache.
18583 * sysdeps/riscv/__longjmp.S: New file.
18584 * sysdeps/riscv/backtrace.c: Likewise.
18585 * sysdeps/riscv/bits/endian.h: Likewise.
18586 * sysdeps/riscv/bits/setjmp.h: Likewise.
18587 * sysdeps/riscv/bits/wordsize.h: Likewise.
18588 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18589 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18590 * sysdeps/riscv/dl-trampoline.S: Likewise.
18591 * sysdeps/riscv/gccframe.h: Likewise.
18592 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18593 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18594 * sysdeps/riscv/machine-gmon.h: Likewise.
18595 * sysdeps/riscv/memusage.h: Likewise.
18596 * sysdeps/riscv/setjmp.S: Likewise.
18597 * sysdeps/riscv/sys/asm.h: Likewise.
18598 * sysdeps/riscv/tls-macros.h: Likewise.
18599 * sysdeps/riscv/dl-tls.h: New file.
18600 * sysdeps/riscv/libc-tls.c: Likewise.
18601 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18602 * sysdeps/riscv/nptl/tls.h: Likewise.
18603 * sysdeps/riscv/stackinfo.h: Likewise.
18604 * sysdeps/riscv/bits/fenv.h: New file.
18605 * sysdeps/riscv/e_sqrtl.c: Likewise.
18606 * sysdeps/riscv/fpu_control.h: Likewise.
18607 * sysdeps/riscv/math-tests.h: Likewise.
18608 * sysdeps/riscv/nofpu/Implies: Likewise.
18609 * sysdeps/riscv/sfp-machine.h: Likewise.
18610 * sysdeps/riscv/tininess.h: Likewise.
18611 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18612 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18613 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18614 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18615 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18616 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18617 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18618 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18619 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18620 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18621 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18622 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18623 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18624 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18625 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18626 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18627 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18628 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18629 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18630 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18631 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18632 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18633 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18634 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18635 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18636 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18637 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18638 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18639 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18640 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18641 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18642 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18643 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18644 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18645 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18646 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18647 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18648 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18649 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18650 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18651 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18652 * sysdeps/riscv/rvf/math_private.h: Likewise.
18653 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18654 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18655 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18656 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18657 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18658 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18659 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18660 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18661 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18662 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18663 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18664 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18665 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18666 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18667 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18668 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18669 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18670 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18671 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18672 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18673 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18674 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18675 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18676 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18677 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18678 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18679 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18680 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18681 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18682 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18683 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18684 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18685 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18686 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18687 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18688 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18689 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18690 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18691 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18692 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18693 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18694 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18695 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18696 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18697 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18698 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18699 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18700 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18701 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18702 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18703 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18704 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18705 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18706 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18707 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18708 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18709 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18710 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18711 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18712 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18713 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18714 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18715 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18716 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18717 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18718 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18719 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18720 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18721 * sysdeps/riscv/Implies: New file.
18722 * sysdeps/riscv/Makefile: Likewise.
18723 * sysdeps/riscv/configure: Likewise.
18724 * sysdeps/riscv/configure.ac: Likewise.
18725 * sysdeps/riscv/nptl/Makefile: Likewise.
18726 * sysdeps/riscv/preconfigure: Likewise.
18727 * sysdeps/riscv/rv64/Implies-after: Likewise.
18728 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18729 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18730 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18731 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18732 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18733 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18734 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18735 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18736 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18737 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18738 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18739 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18740 (Config): Likewise.
18741
18742 2018-01-29 Florian Weimer <fweimer@redhat.com>
18743
18744 [BZ #22701]
18745 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
18746 libnsl_hidden_proto.
18747 * include/rpcsvc/yp.h (yp_xdrall): Declare with
18748 libnsl_hidden_proto.
18749 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
18750 * nis/Makefile (libnsl-routines): Add nss-default only for
18751 build-obsolete-nsl.
18752 * nis/nis_defaults.c (__nis_default_ttl): Add
18753 libnsl_hidden_nolink_def.
18754 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
18755 declaration.
18756 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
18757 * nis/ypclnt.c (yp_maplist): Likewise.
18758
18759 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
18760
18761 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18762 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
18763
18764 2018-01-29 Joseph Myers <joseph@codesourcery.com>
18765
18766 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
18767 clean -dxfq for git updates when replacing sources.
18768
18769 * scripts/build-many-glibcs.py (Config.build_gcc): Use
18770 --disable-libcilkrts unconditionally, not just for the final GCC
18771 build for Hurd.
18772
18773 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
18774 version to 4.15.
18775
18776 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18777
18778 [BZ #10871]
18779 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
18780 case).
18781
18782 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18783
18784 [BZ #10871]
18785 * localedata/locales/be_BY (mon): Rename to...
18786 (alt_mon): This, then synchronize with CLDR (nominative case).
18787 (abmon): Rename to...
18788 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
18789 (mon): Import from CLDR (genitive case).
18790 (abmon): Likewise.
18791 * localedata/locales/be_BY@latin (mon): Rename to...
18792 (alt_mon): This.
18793 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
18794
18795 * localedata/locales/be_BY@latin (lang_name): Reworded to
18796 "biełaruskaja mova".
18797
18798 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18799
18800 [BZ #10871]
18801 * localedata/locales/el_CY (mon): Renamed to...
18802 (alt_mon): This.
18803 (mon): Import from CLDR (genitive case).
18804 * localedata/locales/el_GR: Likewise.
18805
18806 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
18807
18808 [BZ #10871]
18809 * localedata/locales/ru_RU (mon): Rename to...
18810 (alt_mon): This.
18811 (abmon): Rename to...
18812 (ab_alt_mon): This.
18813 (mon): Import from CLDR (genitive case).
18814 (abmon): Copy from the old content except the 5th month which is
18815 now in the genitive case, even when abbreviated.
18816 * localedata/locales/ru_UA: Likewise.
18817 * time/tst-strptime.c (day_tests): Add an actual example of
18818 a difference between %b and %Ob in Russian.
18819
18820 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
18821
18822 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
18823 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
18824 a `c' variable.
18825 * resolv/res-close.c: Include <stdlib.h>.
18826 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
18827 <sys/wait.h>, <time.h>, <sys/uio.h>.
18828 (NOT_CANCEL_H): Add inclusion guard.
18829 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
18830 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
18831 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
18832 return 0.
18833 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
18834 vm_address_t * to ElfW(Addr) * for dl_main parameter.
18835 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
18836 instead of void *.
18837 * sysdeps/pthread/timer_create.c (timer_create): Do not use
18838 timer_ptr2id to cast struct timer_node * to void *.
18839 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
18840 --disable-libcilkrts to gcc configure.
18841 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
18842 and make them the default for now.
18843 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
18844 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
18845 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
18846 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
18847 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
18848 MACH_IPC_COMPAT.
18849 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
18850 __task_terminate would ever return successfully.
18851 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
18852 to global scope.
18853 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
18854 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
18855 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
18856 critical section to make code simpler and avoid warning.
18857 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
18858 critical section to make code simpler and avoid warning.
18859 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
18860 const char * instead of char *.
18861 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
18862 __hurd_file_name_split, hurd_file_name_split,
18863 __hurd_directory_name_split, hurd_directory_name_split,
18864 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
18865 hurd_file_name_path_lookup): Make lookup function parameter take a
18866 const char *name instead of char *name.
18867 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
18868 __hurd_directory_name_split): Likewise.
18869 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
18870 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
18871 * sysdeps/mach/hurd/check_native.c: New file.
18872 * sysdeps/mach/hurd/check_pf.c: New file.
18873 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
18874 (__freeifaddrs): Define macro to freeifaddrs.
18875 * sysdeps/mach/hurd/libhurduser.abilist: New file.
18876 * sysdeps/mach/libmachuser.abilist: New file.
18877 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
18878 (do_test_bz20181): Rename accordingly.
18879 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
18880 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
18881 <sys/mount.h>.
18882 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
18883 version only if __USE_EXTERN_INLINES is defined.
18884 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
18885 __hurd_sockfail): Likewise.
18886 (_hurd_fd_get): Always declare functions, and provide inline versions
18887 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
18888 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
18889 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
18890 _hurd_port_set): Always declare functions, and provide inline versions
18891 only if __USE_EXTERN_INLINES and _LIBC are defined and
18892 IS_IN(libc).
18893 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
18894 _hurd_critical_section_unlock): Likewise.
18895 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
18896 * __hurd_threadvar_location): Likewise.
18897 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
18898 _hurd_userlink_clear): Likewise.
18899 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
18900 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
18901 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
18902 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
18903 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
18904 __spin_lock_locked): Likewise.
18905 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
18906 __spin_lock_locked): Likewise.
18907 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
18908 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
18909 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
18910 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
18911 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
18912 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
18913 _POSIX_NO_TRUNC): Define to 0.
18914 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
18915 check size against PTHREAD_STACK_MIN.
18916 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
18917 IS_IN(libpthread)]: Include <sigsetops.h>.
18918 * mach/Makefile (user-interfaces): Add mach/gnumach.
18919 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
18920 * sysdeps/mach/configure (mach_interface_list): Regenerate.
18921 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
18922 instead of invalid -1.
18923 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
18924 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
18925 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
18926 <net/ppp_defs.h>.
18927
18928 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
18929
18930 * hurd/fcntl-internal.h: New file.
18931
18932 2018-01-27 James Clarke <jrtc27@jrtc27.com>
18933
18934 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18935
18936 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18937
18938 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
18939
18940 [BZ #22701]
18941 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
18942 Build only shared objects.
18943
18944 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18945
18946 * README: Update for hppa.
18947
18948 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18949
18950 * sysdeps/sparc/fpu/libm-test-ulps: Update
18951 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
18952
18953 2018-01-26 Carlos O'Donell <carlos@redhat.com>
18954
18955 Revert:
18956
18957 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18958
18959 [BZ #22563]
18960 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18961 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18962 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18963 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18964 to feature_1.
18965
18966 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18967
18968 [BZ #22563]
18969 * bits/types/__cancel_jmp_buf_tag.h: New file.
18970 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18971 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18972 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18973 * nptl/Makefile (headers): Add
18974 bits/types/__cancel_jmp_buf_tag.h.
18975 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18976 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18977 * sysdeps/nptl/pthread.h: Include
18978 <bits/types/__cancel_jmp_buf_tag.h>.
18979 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18980 __cancel_jmp_buf.
18981 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18982
18983 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
18984
18985 [BZ #10871]
18986 * localedata/locales/uk_UA (mon): Renamed to...
18987 (alt_mon): This.
18988 (alt_digits): "0" removed and then renamed to...
18989 (mon): This.
18990 (date_fmt): Definition changed not to use the alternative
18991 digits hack.
18992
18993 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
18994
18995 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
18996 FLAG_RISCV_FLOAT_ABI_DOUBLE.
18997 * elf/elf.h (EF_RISCV_RVC): New define.
18998 (EF_RISCV_FLOAT_ABI): Likewise.
18999 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19000 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19001 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19002 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19003 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19004 define.
19005 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19006
19007 2018-01-25 Andreas Schwab <schwab@suse.de>
19008
19009 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19010 single quotes.
19011 * sysdeps/gnu/configure: Regenerate.
19012 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19013 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19015 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19016 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19017 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19018 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19019 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19020
19021 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19022
19023 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19024 URL, and run autoconf, make it the default for now.
19025
19026 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19027
19028 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19029 soft-float ColdFire configuration.
19030
19031 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19032 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19033 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19034
19035 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19036 MicroBlaze file.
19037
19038 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19039 ....
19040 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19041 ... here.
19042 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19043 New file.
19044
19045 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19046 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19047 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19048 file.
19049
19050 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19051
19052 [BZ #22742]
19053 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19054 Rename to __reserved and add comment.
19055 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19056 Rename to __reserved.
19057
19058 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19059
19060 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19061 i686-gnu configurations.
19062 (Context.run_builds): Include mig, gnumach and hurd in components
19063 considered.
19064 (Context.checkout): Add mig, gnumach and hurd to components.
19065 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19066 hurd.
19067 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19068 (Config.build): Install gnumach headers, build mig and install
19069 hurd headers for 'gnu' OS.
19070 (Config.install_gnumach_headers): New function.
19071 (Config.install_hurd_headers): Likewise.
19072 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19073 when building for 'gnu' OS.
19074
19075 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19076
19077 * manual/tunables.texi (Hardware Capability Tunables): Fix
19078 spelling.
19079
19080 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19081
19082 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19083 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19084 (ALTMON_11, ALTMON_12): Improve documentation.
19085 * manual/time.texi (strftime): Likewise.
19086
19087 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19088
19089 [BZ #10871]
19090 * localedata/locales/pl_PL: Alternative month names added,
19091 primary month names are genitive now.
19092 * time/tst-strptime.c (day_tests): Actually use a genitive case
19093 of a month name in Polish language.
19094
19095 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19096
19097 [BZ #10871]
19098 * manual/locale.texi: Document ALTMON_1..12 constants for
19099 nl_langinfo. Specify when to use ALTMON instead of MON.
19100 * manual/time.texi (strftime, strptime): Document GNU extension
19101 permitting O modifier with %B and %b. Specify when to use
19102 %OB instead of %B.
19103
19104 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19105
19106 [BZ #10871]
19107 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19108 names, define them as the same as abbreviated month names explicitly.
19109 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19110 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19111 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19112 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19113 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19114 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19115 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19116 _NL_WABALTMON_12): New enum constants.
19117 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19118 wab_alt_mon, and ab_alt_mon_defined members.
19119 (time_output): Output ab_alt_mon and wab_alt_mon members.
19120 (time_read): Read them, initialize them as copies of abmon and wabmon
19121 respectively if they are missing, initialize ab_alt_mon_defined.
19122 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19123 * locale/programs/locfile-kw.h: Regenerate.
19124 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19125 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19126 and ru_RU.UTF-8.
19127 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19128 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19129 (__strftime_internal): Handle %Ob and %Oh formats.
19130 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19131 (__strptime_internal): Handle %Ob and %Oh formats.
19132 * time/tst-strptime.c (day_tests): Add more tests to parse different
19133 forms of month names including the new %Ob format specifier.
19134
19135 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19136
19137 [BZ #10871]
19138 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19139 define them as the same as primary full month names explicitly.
19140 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19141 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19142 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19143 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19144 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19145 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19146 _NL_WALTMON_12): New enum constants.
19147 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19148 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19149 macros.
19150 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19151 walt_mon, and alt_mon_defined members.
19152 (time_output): Output alt_mon and walt_mon members.
19153 (time_read): Read them, initialize them as copies of mon and wmon
19154 respectively if they are missing, initialize alt_mon_defined.
19155 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19156 * locale/programs/locfile-kw.h: Regenerate.
19157 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19158 * localedata/tst-langinfo.c (map): Add tests for the new constants
19159 ALTMON_1 .. ALTMON_12.
19160 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19161 and pl_PL.UTF-8.
19162 * time/strftime_l.c (f_altmonth): New macro.
19163 (__strftime_internal): Handle %OB format.
19164 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19165 (__strptime_internal): Handle %OB format.
19166 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19167 of month names including the new %OB format specifier.
19168
19169 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19170
19171 [BZ #22685]
19172 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19173 from ABORT_TRANSACTION.
19174 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19175 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19176 ABORT_TRANSACTION_IMPL): Likewise.
19177 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19178 Linux code, but remove the code that aborts transactions.
19179
19180 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19181
19182 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19183
19184 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19185
19186 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19187 in date: "2004-14-09" should be "2004-09-14".
19188 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19189 "2003-15-09" should be "2003-09-15".
19190
19191 2018-01-18 Arjun Shankar <arjun@redhat.com>
19192
19193 [BZ #22343]
19194 [BZ #22774]
19195 CVE-2018-6485
19196 CVE-2018-6551
19197 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19198 after padding.
19199 (_int_memalign): check for integer overflow before calling
19200 _int_malloc.
19201 * malloc/tst-malloc-too-large.c: New test.
19202 * malloc/Makefile: Add tst-malloc-too-large.
19203
19204 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19205
19206 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19207 in date: "2017-24-07" should be "2017-07-24".
19208 * localedata/locales/mai_IN: Likewise.
19209 * localedata/locales/mai_NP: Likewise.
19210
19211 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19212
19213 * po/ru.po: Update translations.
19214
19215 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19216
19217 [BZ #22719]
19218 * sysdeps/hppa/backtrace.c: New file.
19219
19220 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19221
19222 [BZ #22715]
19223 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19224 align La_x86_64_retval to VEC_SIZE.
19225
19226 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19227
19228 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19229 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19230
19231 2018-01-16 Florian Weimer <fweimer@redhat.com>
19232
19233 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19234 Move tst-thread-exit-clobber ...
19235 [$(CXX)] (tests-unsupported): ... to here.
19236
19237 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19238
19239 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19240 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19241 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19242 (_dl_aarch64_cap_flags): Update.
19243 (_DL_HWCAP_COUNT): Update.
19244
19245 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19246
19247 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19248 (_DL_HWCAP_LAST): Remove.
19249 (_DL_HWCAP_COUNT): Move to ...
19250 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19251 (_DL_HWCAP_COUNT): ... here.
19252
19253 2018-01-16 Florian Weimer <fweimer@redhat.com>
19254
19255 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19256 mode with GNU extensions.
19257
19258 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19259
19260 * elf/elf.h (NT_ARM_SVE): Define.
19261
19262 2018-01-15 Florian Weimer <fweimer@redhat.com>
19263
19264 [BZ #22636]
19265 * nptl/tst-minstack-throw.cc: New file.
19266 * nptl/Makefile (tests): Add tst-minstack-throw.
19267 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19268 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19269
19270 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19271
19272 * scripts/build-many-glibcs.py (Context.checkout): Default
19273 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19274 version to 1.1.0.
19275
19276 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19277
19278 [BZ #22707]
19279 * elf/elf.h (DF_1_STUB): Define.
19280 (DF_1_PIE): Define.
19281
19282 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19283
19284 [BZ #22697]
19285 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19286 Do not add 0.5 to integer or out-of-range arguments.
19287
19288 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19289
19290 * po/bg.po: Update translations.
19291 * po/cs.po: Likewise.
19292 * po/de.po: Likewise.
19293 * po/ko.po: Likewise.
19294 * po/pl.po: Likewise.
19295 * po/sv.po: Likewise.
19296 * po/uk.po: Likewise.
19297 * po/vi.po: Likewise.
19298
19299 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19300
19301 * aarch64/start.S (_start): Use __wrap_main.
19302 (__wrap_main): New local symbol.
19303
19304 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19305
19306 [BZ #22679]
19307 CVE-2018-1000001
19308 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19309 generic_getcwd if the path returned by getcwd syscall is not absolute.
19310 * io/tst-getcwd-abspath.c: New test.
19311 * io/Makefile (tests): Add tst-getcwd-abspath.
19312
19313 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19314
19315 * malloc/malloc.c (malloc_consolidate): Add size check.
19316
19317 2018-01-12 Florian Weimer <fweimer@redhat.com>
19318
19319 * support/write_message.c (write_message): Preserve errno.
19320 * support/check.c (print_failure): Likewise.
19321 * support/support_test_verify_impl.c (support_test_verify_impl):
19322 Likewise.
19323 * support/support_test_compare_failure.c
19324 (support_test_compare_failure): Likewise.
19325
19326 2018-01-12 Florian Weimer <fweimer@redhat.com>
19327
19328 [BZ #22701]
19329 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19330 Prevent installation of libnsl.so.
19331 (libnsl-inhibit-o): Do not build (or install) static libraries.
19332
19333 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19334
19335 [BZ #22657]
19336 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19337 before the day number which may produce a double space.
19338 (date_fmt): Likewise.
19339
19340 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19341
19342 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19343 instead of fegetenv.
19344
19345 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19346
19347 [BZ #22702]
19348 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19349 comment to say exceptions are discarded.
19350 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19351 __fegetenv.
19352 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19353 be enabled.
19354
19355 2018-01-11 Florian Weimer <fweimer@redhat.com>
19356
19357 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19358 and error message.
19359
19360 2018-01-11 Florian Weimer <fweimer@redhat.com>
19361
19362 [BZ #22636]
19363 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19364 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19365
19366 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19367
19368 [BZ #22693]
19369 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19370 negative arguments in test for NaN or infinity argument.
19371
19372 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19373
19374 * po/libc.pot: Regenerate.
19375
19376 2018-01-10 Florian Weimer <fweimer@redhat.com>
19377
19378 [BZ #22636]
19379 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19380 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19381
19382 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19383
19384 * hurd/hurd/fd.h: Include <fcntl.h>
19385 (__hurd_at_flags): New function.
19386 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19387 with call to __hurd_at_flags.
19388 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19389 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19390 __faccessat
19391 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19392 (__access_noerrno): Use __faccessat_common instead of access_common.
19393 (__access): Likewise.
19394 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19395 with a call to __faccessat.
19396 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19397 (__faccessat_common): ... this. Move implementation of __access into it when
19398 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19399 reauthenticate_cwdir_at helper to implement AT mechanism.
19400 (__faccessat_noerrno): New function, just calls __faccessat_common.
19401 (__faccessat): New function, just calls __faccessat_common.
19402 (faccessat): Define weak alias.
19403
19404 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19405
19406 [BZ #22691]
19407 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19408 (CFLAGS-s_fmaxmagl.c): New variable.
19409 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19410
19411 [BZ #22690]
19412 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19413 long int for arguments of possibly overflowing addition or
19414 subtraction.
19415 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19416
19417 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19418
19419 [BZ #22688]
19420 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19421 (CFLAGS-e_remainderl.c): New variable.
19422
19423 [BZ #22687]
19424 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19425 variable.
19426 (CFLAGS-s_cacoshl.c): Likewise.
19427 (CFLAGS-s_casinhl.c): Likewise.
19428 (CFLAGS-s_catanl.c): Likewise.
19429 (CFLAGS-s_catanhl.c): Likewise.
19430 (CFLAGS-s_cexpl.c): Likewise.
19431 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19432 (CFLAGS-s_csinhl.c): Likewise.
19433 (CFLAGS-s_clogl.c): Likewise.
19434 (CFLAGS-s_clog10l.c): Likewise.
19435 (CFLAGS-s_csinl.c): Likewise.
19436 (CFLAGS-s_csqrtl.c): Likewise.
19437
19438 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19439 2017-01-09 Svante Signell <svante.signell@gmail.com>
19440
19441 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19442 (_hurd_exec_paths): New function.
19443 * hurd/hurd.h (_hurd_exec): Deprecate function.
19444 (_hurd_exec_paths): Declare function.
19445 * hurd/Versions: Export _hurd_exec_paths.
19446 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19447 (__execve): Use __getcwd to build absolute path, and use
19448 _hurd_exec_paths instead of _hurd_exec.
19449 * sysdeps/mach/hurd/spawni.c: Likewise.
19450 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19451 _hurd_exec.
19452
19453 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19454
19455 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19456 test instead of failing in case of ENOENT returned by posix_openpt.
19457
19458 2018-01-08 Florian Weimer <fweimer@redhat.com>
19459
19460 resolv: Support binary labels in test framework.
19461 * support/resolv_test.c (struct to_be_freed): Remove.
19462 (struct compressed_name): New.
19463 (allocate_compressed_name, ascii_tolower)
19464 (compare_compressed_name): New functions.
19465 (struct resolv_response_builder): Update type of
19466 compression_offsets for use with tsearch. Rempve to_be_freed.
19467 (response_push_pointer_to_free): Remove function.
19468 (resolv_response_add_name): Rewrite using struct compressed_name
19469 and tsearch instead of hsearch_r.
19470 (response_builder_allocate): Remove initialization of
19471 compression_offsets.
19472 (response_builder_free): Update for removal of to_be_freed. Use
19473 tdestroy instead of hdestroy_r.
19474 * resolv/Makefile (tests): Add tst-resolv-binary.
19475 (tst-resolv-binary): Link with -lresolv -lpthread.
19476
19477 2018-01-08 Florian Weimer <fweimer@redhat.com>
19478
19479 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19480 time. Pass positive flag instead of negative flag to
19481 support_test_compare_failure.
19482 (support_test_compare_failure): Change negative parameter to
19483 positive.
19484 * support/support_test_compare_failure.c (report)
19485 (support_test_compare_failure): Likewise.
19486 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19487 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19488
19489 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19490
19491 [BZ #22637]
19492 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19493 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19494 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19495 stacksize.
19496 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19497
19498 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19499
19500 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19501 Add s_sincosf-sse2 and s_sincosf-fma.
19502 (CFLAGS-s_sincosf-fma.c): New.
19503 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19504 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19505 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19506 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19507 __sincosf is defined.
19508
19509 2018-01-08 Florian Weimer <fweimer@redhat.com>
19510
19511 * nptl/tst-thread-exit-clobber.cc: New file.
19512 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19513 C++11 mode.
19514 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19515 (tests): Add tst-thread-exit-clobber.
19516 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19517
19518 2018-01-08 Florian Weimer <fweimer@redhat.com>
19519
19520 * support/check.h (support_static_assert): Define.
19521 (TEST_COMPARE): Use it.
19522
19523 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19524
19525 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19526 [!__RLIM_T_MATCHES_RLIM64_T]
19527 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19528 __getrlimit64. Add libc_hidden_weak.
19529
19530 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19531
19532 * elf/elf.h (R_RISCV_NONE): New define.
19533 (R_RISCV_32): Likewise.
19534 (R_RISCV_64): Likewise.
19535 (R_RISCV_RELATIVE): Likewise.
19536 (R_RISCV_COPY): Likewise.
19537 (R_RISCV_JUMP_SLOT): Likewise.
19538 (R_RISCV_TLS_DTPMOD32): Likewise.
19539 (R_RISCV_TLS_DTPMOD64): Likewise.
19540 (R_RISCV_TLS_DTPREL32): Likewise.
19541 (R_RISCV_TLS_DTPREL64): Likewise.
19542 (R_RISCV_TLS_TPREL32): Likewise.
19543 (R_RISCV_TLS_TPREL64): Likewise.
19544 * Makerules (make-link-multidir): Make directories before linking into
19545 them.
19546 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19547 define.
19548 (VDSO_HASH_LINUX_4_15): Likewise.
19549 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19550 in subdirectories of lib.
19551 * nptl/Makefile (/librt.so): Always depend on
19552 "$(shared-thread-library)".
19553
19554 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19555
19556 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19557 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19558 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19559 (___tls_get_addr).
19560 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19561 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19562 "-O2 -march=i686".
19563 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19564 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19565 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19566 * sysdeps/gnu/glob-lstat-compat.c: New file.
19567 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19568 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19569
19570 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19571
19572 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19573 Reserve 16 chars to reloc_addr before calling _itoa_word.
19574
19575 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19576
19577 [BZ #22678]
19578 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19579 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19580
19581 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19582 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19583
19584 * resource/tst-getrlimit.c: Add copyright header.
19585
19586 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19587 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19588
19589 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19590 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19591 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19592 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19593 instead.
19594 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19595 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19596 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19597 RLIM64_INFINITY): Fix values to match the kernel ones.
19598 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19599 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19600 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19601 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19602 getrlimit64@@GLIBC_2_27.
19603 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19604 and setrlimit64.
19605 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19606 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19607 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19608 setrlimit, getrlimit64 and setrlimit64.
19609
19610 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19611
19612 [BZ #22648]
19613 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19614 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19615
19616 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19617
19618 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19619 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19620 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19621
19622 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19623
19624 [BZ #15479]
19625 [BZ #22666]
19626 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19627 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19628
19629 [BZ #15479]
19630 [BZ #22665]
19631 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19632 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19633 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19634 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19635
19636 2018-01-04 Florian Weimer <fweimer@redhat.com>
19637
19638 [BZ #22667]
19639 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19640 Align the stack before calling exit.
19641 * stdlib/tst-makecontext-align.c: New file.
19642 * stdlib/Makefile (tests): Add tst-makecontext-align.
19643
19644 2018-01-04 Florian Weimer <fweimer@redhat.com>
19645
19646 Add support for calling dlvsym from libc.so.
19647 * include/dlfcn.h (__libc_dlvsym): Declare.
19648 * elf/Makefile (tests-static-internal): Add
19649 tst-libc_dlvsym-static.
19650 (tests-internal): Add tst-libc_dlvsym.
19651 (modules-names): Add tst-libc_dlvsym-dso.
19652 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19653 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19654 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19655 object tst-libc_dlvsym-dso.so needs to be built before running
19656 these tests.
19657 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19658 * elf/Versions: Export __libc_dlvsym.
19659 * elf/dl-libc.c (struct do_dlvsym_args): New.
19660 (do_dlvsym, __libc_dlvsym): New functions.
19661 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19662 (_dl_open_hook2): New variable.
19663 (__libc_register_dl_open_hook): Set it.
19664 * elf/tst-libc_dlvsym-dso.c: New file.
19665 * elf/tst-libc_dlvsym-static.c: Likewise.
19666 * elf/tst-libc_dlvsym.c: Likewise.
19667 * elf/tst-libc_dlvsym.h: Likewise.
19668
19669 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19670
19671 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19672 include <sys/mount.h>.
19673
19674 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19675
19676 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19677 Add __NO_MATH_ERRNO__ check.
19678
19679 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19680
19681 * sysdeps/mips/mips32/libm-test-ulps: Update.
19682 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19683
19684 2018-01-02 Florian Weimer <fweimer@redhat.com>
19685
19686 * misc/tst-pselect.c: Add copyright header.
19687
19688 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19689
19690 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19691 comment.
19692 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19693 comment.
19694 (settrlimit): Rename into setrlimit.
19695 (__sttrlimit): Rename into __setrlimit.
19696
19697 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19698 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19699 never defined in that case.
19700
19701 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19702
19703 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19704
19705 * sysdeps/arm/libm-test-ulps: Update.
19706
19707 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19708 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19709
19710 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19711
19712 * NEWS: Add cosf and sincosf to list of optimized functions.
19713
19714 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19715
19716 [BZ #22660]
19717 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19718 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19719 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19720 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19721
19722 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19723
19724 [BZ #22433]
19725 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19726
19727 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19728 making a copy of it.
19729
19730 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19731
19732 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19733 trailing whitespace removed.
19734 * scripts/config.guess: Update to version 2018-01-01.
19735 * scripts/config.sub: Update to version 2018-01-01.
19736 * scripts/move-if-change: Update from gnulib.
19737
19738 * NEWS: Update copyright dates.
19739 * catgets/gencat.c (print_version): Likewise.
19740 * csu/version.c (banner): Likewise.
19741 * debug/catchsegv.sh: Likewise.
19742 * debug/pcprofiledump.c (print_version): Likewise.
19743 * debug/xtrace.sh (do_version): Likewise.
19744 * elf/ldconfig.c (print_version): Likewise.
19745 * elf/ldd.bash.in: Likewise.
19746 * elf/pldd.c (print_version): Likewise.
19747 * elf/sotruss.sh: Likewise.
19748 * elf/sprof.c (print_version): Likewise.
19749 * iconv/iconv_prog.c (print_version): Likewise.
19750 * iconv/iconvconfig.c (print_version): Likewise.
19751 * locale/programs/locale.c (print_version): Likewise.
19752 * locale/programs/localedef.c (print_version): Likewise.
19753 * login/programs/pt_chown.c (print_version): Likewise.
19754 * malloc/memusage.sh (do_version): Likewise.
19755 * malloc/memusagestat.c (print_version): Likewise.
19756 * malloc/mtrace.pl: Likewise.
19757 * manual/libc.texinfo: Likewise.
19758 * nptl/version.c (banner): Likewise.
19759 * nscd/nscd.c (print_version): Likewise.
19760 * nss/getent.c (print_version): Likewise.
19761 * nss/makedb.c (print_version): Likewise.
19762 * posix/getconf.c (main): Likewise.
19763 * scripts/test-installation.pl: Likewise.
19764 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19765
19766 * All files with FSF copyright notices: Update copyright dates
19767 using scripts/update-copyrights.
19768 * locale/programs/charmap-kw.h: Regenerated.
19769 * locale/programs/locfile-kw.h: Likewise.
19770
19771 2017-12-31 Zack Weinberg <zackw@panix.com>
19772
19773 * libio/bits/libio-ldbl.h: Correct check for improper
19774 inclusion. Add own multiple include guard.
19775
19776 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
19777 Dmitry V. Levin <ldv@altlinux.org>
19778
19779 [BZ #22625]
19780 CVE-2017-16997
19781 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
19782 string token expansion. Check for NULL pointer or empty string possibly
19783 returned by expand_dynamic_string_token.
19784 (decompose_rpath): Check for empty path after dynamic string
19785 token expansion.
19786
19787 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
19788
19789 [BZ #22433]
19790 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
19791
19792 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
19793 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
19794 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
19795 and PTRACE_SYSCALL.
19796 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
19797 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19798 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19799 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19800 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19801 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19802
19803 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
19804 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19805 __ptrace_peeksiginfo_flags, ptrace): Move to ...
19806 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
19807 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19808 bits/ptrace-shared.h.
19809 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
19810 <bits/ptrace-shared.h>.
19811 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
19812 __ptrace_peeksiginfo_flags, ptrace): Remove.
19813 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
19814 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
19815 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
19816 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
19817 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
19818
19819 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19820
19821 [BZ #17804]
19822 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
19823 end of the loop. Improve comments.
19824
19825 2017-12-29 Zack Weinberg <zackw@panix.com>
19826
19827 [BZ #22615]
19828 * manual/errno.texi (Checking for Errors): Explicitly say that errno
19829 might be set on success.
19830
19831 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
19832
19833 [BZ #22611]
19834 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
19835 is unchanged on success.
19836
19837 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
19838
19839 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
19840 updated.
19841 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
19842 expand_dynamic_string_token): Likewise.
19843 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
19844 is_path argument.
19845
19846 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
19847 contains ':'.
19848
19849 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
19850 is set and name contains ':', and all code depending on these checks.
19851
19852 2017-12-24 Zack Weinberg <zackw@panix.com>
19853
19854 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
19855 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
19856 respectively.
19857 * libio/libio.h: Rename the original version of this file to
19858 libio/bits/libio.h. Error out if not included by stdio.h or the
19859 stub libio.h.
19860 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
19861 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
19862 if not included by bits/libio.h or the stub _G_config.h.
19863 * sysdeps/unix/sysv/linux/_G_config.h: Move to
19864 sysdeps/unix/sysv/linux/bits. Error out if not included by
19865 bits/libio.h or the stub _G_config.h.
19866 * libio/stdio.h: Include bits/libio.h, not libio.h.
19867 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
19868 well as libio.h and _G_config.h.
19869
19870 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
19871 * libio/strfile.h, stdio-common/vfscanf.c
19872 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
19873 Include stdio.h, not _G_config.h nor libio.h.
19874 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
19875 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
19876
19877 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
19878
19879 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
19880
19881 [BZ #22347]
19882 * stdlib/getrandom.c (getrandom): Fix comment.
19883 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
19884
19885 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
19886
19887 [BZ #21161]
19888 * manual/arith.texi (strtoul): Fix a typo.
19889
19890 [BZ #22596]
19891 * manual/arith.texi (finite): Fix the description of the return
19892 value.
19893
19894 2017-12-22 Eric Blake <ebb9@byu.net>
19895
19896 Avoid gcc warnings on cygwin
19897 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
19898 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
19899 Avoid unused variable.
19900
19901 2017-12-22 Florian Weimer <fweimer@redhat.com>
19902
19903 * io/Makefile (routines): Add copy_file_range.
19904 (tests): Add tst-copy_file_range.
19905 (tests-static, tests-internal): Add tst-copy_file_range-compat.
19906 * io/Versions (GLIBC_2.27): Export copy_file_range.
19907 * io/copy_file_range-compat.c: New file.
19908 * io/copy_file_range.c: Likewise.
19909 * io/tst-copy_file_range-compat.c: Likewise.
19910 * io/tst-copy_file_range.c: Likewise.
19911 * manual/llio.texi (Copying File Data): New section.
19912 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
19913 * support/Makefile (libsupport-routines): Add support-xfstat,
19914 xftruncate, xlseek.
19915 * support/support-xfstat.c: New file.
19916 * support/xftruncate.c: Likewise.
19917 * support/xlseek.c: Likewise.
19918 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
19919 * sysdeps/unix/sysv/linux/**.abilist: Update.
19920 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
19921
19922 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
19923
19924 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19925 disable-multi-arch variant to aarch64-linux-gnu.
19926
19927 2017-12-20 Joseph Myers <joseph@codesourcery.com>
19928
19929 * manual/texinfo.tex: Update to version 2017-12-18.20 with
19930 trailing whitespace removed.
19931 * scripts/config.guess: Update to version 2017-12-17.
19932 * scripts/config.sub: Update to version 2017-11-23.
19933 * scripts/install-sh: Update to version 2017-09-23.17.
19934 * scripts/move-if-change: Update to version 2017-09-13 06:45.
19935
19936 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19937
19938 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
19939 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19940 * sysdeps/tile/_mcount.S (__mcount): Likewise.
19941 * sysdeps/tile/crti.S (_init, _fini): Likewise.
19942 * sysdeps/tile/crtn.S: Likewise.
19943 * sysdeps/tile/dl-start.S (_start): Likewise.
19944 * sysdeps/tile/dl-trampoline.S: Likewise.
19945 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
19946 * sysdeps/tile/start.S (_start): Likewise.
19947 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
19948 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
19949 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
19950 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
19951 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
19952 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
19953 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
19954
19955 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
19956 comment.
19957 * sysdeps/tile/preconfigure: Remove tilegx folder.
19958 * sysdeps/tile/tilegx/Implies: Move definitions to ...
19959 * sysdeps/tile/Implies: ... here.
19960 * sysdeps/tile/tilegx/Makefile: Move rules to ...
19961 * sysdeps/tile/Makefile: ... here.
19962 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
19963 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
19964 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
19965 * sysdeps/tile/bits/wordsize.h: ... here.
19966 * sysdeps/tile/tilegx/*: Move to ...
19967 * sysdeps/tile/*: ... here.
19968 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
19969 * sysdeps/tile/tilegx32/Implies: ... here.
19970 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
19971 * sysdeps/tile/tilegx64/Implies: ... here.
19972 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
19973 to ...
19974 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
19975 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
19976 * sysdeps/unix/sysv/linux/tile/*: ... here.
19977 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
19978 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
19979 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
19980 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
19981
19982 * README: Remove tilepro-*-linux-gnu from supported architecture.
19983 * scripts/build-many-glibcs.py: Likewise.
19984 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
19985 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
19986 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
19987 elf_machine_matches_host, elf_machine_dynamic,
19988 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
19989 howto, elf_machine_rela): Likewise.
19990 * sysdeps/tile/dl-start.S (_start): Likewise.
19991 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
19992 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
19993 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
19994 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
19995 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
19996 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19997 Likewise.
19998 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
19999 * sysdeps/tile/preconfigure: Likewise.
20000 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20001 POINTER_CHK_GUARD): Likewise.
20002 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20003 * sysdeps/tile/start.S (_start): Likewise.
20004 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20005 Likewise.
20006 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20007 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20008 CMOVNEZ): Remove.
20009 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20010 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20011 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20012 Likewise.
20013 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20014 * sysdeps/tile/tilepro/Implies: Remove file.
20015 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20016 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20017 * sysdeps/tile/tilepro/memchr.c: Likewise.
20018 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20019 * sysdeps/tile/tilepro/memset.c: Likewise.
20020 * sysdeps/tile/tilepro/memusage.h: Likewise.
20021 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20022 * sysdeps/tile/tilepro/strchr.c: Likewise.
20023 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20024 * sysdeps/tile/tilepro/strlen.c: Likewise.
20025 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20026 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20027 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20028 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20029 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20030 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20031 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20032 Likewise.
20033 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20034 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20035 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20036 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20037 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20038 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20039 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20040 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20041 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20042 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20043 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20044 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20045 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20046 tilepro mention in comment.
20047
20048 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20049 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20050 * nptl/pthread_join_common.c: New file: common function used on
20051 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20052 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20053 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20054 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20055 (cleanup): Move definition to pthread_join_common.c.
20056 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20057 Remove superflous checks.
20058 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20059 Likewise.
20060
20061 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20062
20063 * sysdeps/aarch64/libm-test-ulps: Update.
20064
20065 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20066
20067 * sysdeps/aarch64/memset.S (MEMSET): Define.
20068
20069 2017-12-20 Florian Weimer <fweimer@redhat.com>
20070
20071 [BZ #22635]
20072 nptl: Provide full implementation of pthread_self in libc.so.
20073 * nptl/Makefile (routines): Add pthread_self.
20074 (libpthread-routines): Replace pthread_self with
20075 compat-pthread_self.
20076 * nptl/forward.c (pthread_self): Remove.
20077 * nptl/nptl-init.c (pthread_functions): Do not initialize
20078 ptr_pthread_self.
20079 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20080 * nptl/compat-pthread_self.c: New file.
20081 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20082 Remove ptr_pthread_self.
20083
20084 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20085
20086 * posix/regcomp.c: Fix spelling in comments.
20087 * posix/regex.h: Likewise.
20088 * posix/regex_internal.c: Likewise.
20089 * posix/regexec.c: Likewise.
20090
20091 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20092
20093 [BZ #22377]
20094 * math/Makefile [C++] (tests): Add test for iseqsig.
20095 * math/math.h [C++] (iseqsig): New implementation, which does
20096 not rely on __MATH_TG/__builtin_types_compatible_p.
20097 * math/test-math-iseqsig.cc: New file.
20098 * sysdeps/powerpc/powerpc64le/Makefile
20099 (CFLAGS-test-math-iseqsig.cc): New variable.
20100
20101 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20102
20103 * elf/dl-load.c (is_trusted_path): Remove.
20104 (fillin_rpath): Remove check_trusted argument and its use,
20105 all callers changed.
20106
20107 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20108
20109 [BZ #22630]
20110 * Makeconfig (link-pie-before-libc): Replace -pie with
20111 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20112 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20113 (tst-dlopen-aout-no-pie): New.
20114 (LDFLAGS-tst-prelink): Removed.
20115 (tst-prelink-no-pie): New.
20116 (LDFLAGS-tst-main1): Removed.
20117 (tst-main1-no-pie): New.
20118 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20119 (tst-gmon-no-pie): New.
20120
20121 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20122
20123 * manual/install.texi: Document that --enable-static-pie
20124 implies PIE.
20125 * INSTALL: Regenerated.
20126
20127 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20128
20129 [BZ #21309]
20130 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20131 unsigned.
20132
20133 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20134
20135 Revert:
20136
20137 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20138
20139 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20140
20141 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20142
20143 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20144 <errno.h>. Include "eexp.tbl".
20145 (half): New constant.
20146 (one): Likewise.
20147 (__ieee754_exp): Rewrite.
20148 (__slowexp): Remove prototype.
20149 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20150 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20151 * sysdeps/i386/fpu/slowexp.c: Likewise.
20152 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20153 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20154 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20155 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20156 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20157 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20158 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20159 comment.
20160 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20161 (CPPFLAGS-slowexp.c): Remove variable.
20162 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20163 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20164 (CFLAGS-slowexp-fma.c): Remove variable.
20165 (CFLAGS-slowexp-fma4.c): Likewise.
20166 (CFLAGS-slowexp-avx.c): Likewise.
20167 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20168 define as macro.
20169 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20170 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20171 * math/Makefile (type-double-routines): Remove slowexp.
20172 * manual/probes.texi (slowexp_p6): Remove.
20173 (slowexp_p32): Likewise.
20174
20175 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20176
20177 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20178 arithmetic.
20179
20180 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20181
20182 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20183
20184 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20185
20186 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20187
20188 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20189 <errno.h>. Include "eexp.tbl".
20190 (half): New constant.
20191 (one): Likewise.
20192 (__ieee754_exp): Rewrite.
20193 (__slowexp): Remove prototype.
20194 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20195 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20196 * sysdeps/i386/fpu/slowexp.c: Likewise.
20197 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20198 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20199 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20200 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20201 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20202 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20203 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20204 comment.
20205 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20206 (CPPFLAGS-slowexp.c): Remove variable.
20207 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20208 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20209 (CFLAGS-slowexp-fma.c): Remove variable.
20210 (CFLAGS-slowexp-fma4.c): Likewise.
20211 (CFLAGS-slowexp-avx.c): Likewise.
20212 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20213 define as macro.
20214 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20215 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20216 * math/Makefile (type-double-routines): Remove slowexp.
20217 * manual/probes.texi (slowexp_p6): Remove.
20218 (slowexp_p32): Likewise.
20219
20220 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20221 James Clarke <jrtc27@jrtc27.com>
20222
20223 [BZ #22603]
20224 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20225 addition.
20226
20227 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20228
20229 [BZ #22605]
20230 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20231 code.
20232
20233 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20234
20235 [BZ #22563]
20236 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20237 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20238 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20239 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20240 to feature_1.
20241
20242 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20243
20244 [BZ #22563]
20245 * bits/types/__cancel_jmp_buf_tag.h: New file.
20246 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20247 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20248 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20249 * nptl/Makefile (headers): Add
20250 bits/types/__cancel_jmp_buf_tag.h.
20251 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20252 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20253 * sysdeps/nptl/pthread.h: Include
20254 <bits/types/__cancel_jmp_buf_tag.h>.
20255 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20256 __cancel_jmp_buf.
20257 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20258
20259 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20260
20261 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20262 --enable-static-pie variants to x86_64, x32 and i686.
20263
20264 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20265
20266 [BZ #22631]
20267 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20268 argument for attrubutes. All callers changed.
20269 (__inline_mathop1): Likewise. All callers changed.
20270 (__inline_mathop): Likewise. All callers changed.
20271 [__USE_MISC] (scalbn): Use __inline_forward instead of
20272 __inline_forward_c.
20273 [__USE_ISOC99] (scalbln): Likewise.
20274 [__USE_ISOC99] (nearbyint): Likewise.
20275 [__USE_ISOC99] (lrint): Likewise.
20276 [__USE_MISC] (scalbnf): Likewise.
20277 [__USE_ISOC99] (scalblnf): Likewise.
20278 [__USE_ISOC99] (nearbyintf): Likewise.
20279 [__USE_ISOC99] (lrintf): Likewise.
20280 [__USE_MISC] (scalbnl): Likewise.
20281 [__USE_ISOC99] (scalblnl): Likewise.
20282 [__USE_ISOC99] (nearbyintl): Likewise.
20283 [__USE_ISOC99] (lrintl): Likewise.
20284 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20285 __inline_mathop and __m81_defun changed.
20286
20287 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20288 CPU or FPU for ARM hard-float configurations.
20289
20290 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20291
20292 * nptl/tst-attr3.c: Include <libc-diag.h>.
20293 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20294
20295 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20296
20297 * string/tester.c (test_strncat): Also disable -Warray-bounds
20298 warnings for two tests.
20299
20300 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20301
20302 [BZ #22614]
20303 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20304 $(cc-pie-default) == yes.
20305 * config.make.in (cc-pie-default): New.
20306 * configure.ac (libc_cv_pie_default): Renamed to ...
20307 (libc_cv_cc_pie_default): This.
20308 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20309 * configure: Regenerated.
20310
20311 2017-12-18 Florian Weimer <fweimer@redhat.com>
20312
20313 [BZ #20204]
20314 ld.so: Harden dl-libc/libdl hooks.
20315 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20316 (rtld_active): New function.
20317 * dlfcn/dladdr.c (__dladdr): Call it.
20318 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20319 * dlfcn/dlclose.c (__dlcose): Likewise.
20320 * dlfcn/dlerror.c (__dlerror): Likewise.
20321 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20322 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20323 * dlfcn/dlopen.c (__dlopen): Likewise.
20324 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20325 * dlfcn/dlsym.c (__dlsym): Likewise.
20326 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20327 * libio/vtables.c (_IO_vtable_check): Likewise.
20328 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20329 (__libc_dlclose): Likewise.
20330 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20331 assignment.
20332
20333 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20334
20335 [BZ #22446]
20336 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20337 buffers for readlink input and output.
20338
20339 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20340
20341 [BZ #22624]
20342 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20343 inhibit_stack_protector.
20344
20345 [BZ #22624]
20346 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20347 inhibit_stack_protector.
20348
20349 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20350
20351 [BZ #22627]
20352 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20353 code and invocation.
20354
20355 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20356
20357 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20358
20359 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20360
20361 [BZ #22505]
20362 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20363
20364 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20365
20366 * sysdeps/s390/fpu/libm-test-ulps: Update.
20367
20368 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20369
20370 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20371
20372 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20373
20374 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20375 constants to s_sincosf.h file.
20376 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20377 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20378 implementation.
20379 * sysdeps/ieee754/flt-32/s_sincosf.h:
20380 New file.
20381
20382 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20383
20384 [BZ #14681]
20385 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20386 before mtrace.
20387
20388 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20389
20390 [BZ #19574]
20391 * INSTALL: Regenerated.
20392 * Makeconfig (real-static-start-installed-name): New.
20393 (pic-default): Updated for --enable-static-pie.
20394 (pie-default): New for --enable-static-pie.
20395 (default-pie-ldflag): Likewise.
20396 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20397 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20398 Replace $(static-start-installed-name) with
20399 $(real-static-start-installed-name).
20400 (+prectorT): Updated for --enable-static-pie.
20401 (+postctorT): Likewise.
20402 (CFLAGS-.o): Add $(pie-default).
20403 (CFLAGS-.op): Likewise.
20404 * NEWS: Mention --enable-static-pie.
20405 * config.h.in (ENABLE_STATIC_PIE): New.
20406 * configure.ac (--enable-static-pie): New configure option.
20407 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20408 (have-static-pie): Likewise.
20409 Enable static PIE if linker supports --no-dynamic-linker.
20410 (ENABLE_STATIC_PIE): New AC_DEFINE.
20411 (enable-static-pie): New LIBC_CONFIG_VAR.
20412 * configure: Regenerated.
20413 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20414 gr$(start-installed-name) for --enable-static-pie.
20415 (extra-objs): Likewise.
20416 (install-lib): Likewise.
20417 (extra-objs): Add static-reloc.o and static-reloc.os
20418 ($(objpfx)$(start-installed-name)): Also depend on
20419 $(objpfx)static-reloc.o.
20420 ($(objpfx)r$(start-installed-name)): New.
20421 ($(objpfx)g$(start-installed-name)): Also depend on
20422 $(objpfx)static-reloc.os.
20423 ($(objpfx)gr$(start-installed-name)): New.
20424 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20425 in libc.a.
20426 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20427 initimage.
20428 * csu/static-reloc.c: New file.
20429 * elf/Makefile (routines): Add dl-reloc-static-pie.
20430 (elide-routines.os): Likewise.
20431 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20432 (tst-tls1-static-non-pie-no-pie): New.
20433 * elf/dl-reloc-static-pie.c: New file.
20434 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20435 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20436 STATIC_PIE_BOOTSTRAP.
20437 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20438 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20439 (tests-static): Likewise.
20440 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20441 (tst-gmon-static-no-pie): New.
20442 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20443 (CRT-tst-gmon-static-pie): Likewise.
20444 (tst-gmon-static-pie-ENV): Likewise.
20445 (tests-special): Likewise.
20446 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20447 (clean-tst-gmon-static-pie-data): Likewise.
20448 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20449 * gmon/tst-gmon-static-pie.c: New file.
20450 * manual/install.texi: Document --enable-static-pie.
20451 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20452 (_dl_get_dl_main_map): Likewise.
20453 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20454 * sysdeps/x86_64/configure.ac: Likewise.
20455 * sysdeps/i386/configure: Regenerated.
20456 * sysdeps/x86_64/configure: Likewise.
20457 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20458 (ASFLAGS-.op): Likewise.
20459
20460 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20461
20462 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20463 * posix/tst-mmap-offset.c (fname): Use /tmp.
20464 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20465
20466 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20467
20468 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20469
20470 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20471
20472 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20473 errno.
20474
20475 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20476
20477 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20478 --with-float=hard for arm-linux-gnueabihf configurations.
20479
20480 [BZ #14121]
20481 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20482 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20483 ($(mo-installed)): Use $(objpfx)%.mo.
20484 (realclean): Remove rule.
20485
20486 * po/Makefile (linguas): Remove rule and dependencies.
20487 (linguas.mo): Likewise.
20488 (.PHONY): Do not depend on linguas and linguas.mo.
20489 (podir): Remove variable.
20490 (pofiles): Likewise.
20491 [$(pofiles)] (%.po): Remove rule.
20492
20493 * sysdeps/sparc/sparc32/Makefile
20494 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20495 start-of-line whitespace in argument of echo.
20496 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20497 with whitespace. Generate __wrap_.udiv alias.
20498 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20499 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20500 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20501 * sysdeps/sparc/sparc32/urem.S: Likewise.
20502
20503 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20504
20505 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20506 for aligned inputs.
20507
20508 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20509
20510 * benchtests/bench-strcmp.c: Print output in JSON format.
20511
20512 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20513
20514 2017-12-14 Florian Weimer <fweimer@redhat.com>
20515
20516 [BZ #22607]
20517 CVE-2017-1000409
20518 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20519 the expanded path string.
20520
20521 2017-12-14 Florian Weimer <fweimer@redhat.com>
20522
20523 [BZ #22606]
20524 CVE-2017-1000408
20525 * elf/dl-load.c (system_dirs): Update comment.
20526 (nsystem_dirs_len): Use array_length.
20527 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20528
20529 2017-12-14 Florian Weimer <fweimer@redhat.com>
20530
20531 Simplify compiling most of support/ outside of glibc.
20532 * support/check_addrinfo.c: Include <string.h>.
20533 * support/check_dns_packet.c: Likewise.
20534 * support/check_hostent.c: Likewise.
20535 * support/support_can_chroot.c: Include <support/xunistd.h>.
20536 * support/support_format_addrinfo.c: Include <stdlib.h>
20537 * support/support_format_dns_packet.c: Include <stdbool.h>.
20538 * support/support_format_hostent.c: Include <stdlib.h>.
20539 * support/support_format_netent.c: Likewise.
20540 * support/support_write_string.c: Include <support/xunistd.h>.
20541 * support/xdlfcn.c: Include <stddef.h>.
20542
20543 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20544
20545 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20546
20547 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20548 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20549
20550 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20551 (sysdeps_routines): Add memset-niagara7.
20552 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20553 Likewise.
20554 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20555 file.
20556 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20557 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20558 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20559 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20560 Add niagara7 option.
20561 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20562 memset.
20563
20564 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20565 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20566 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20567 Likewise.
20568 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20569 New file.
20570 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20571 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20572 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20573 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20574 and __memmove_niagara7.
20575 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20576 Add niagara7 option.
20577 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20578 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20579 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20580 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20581 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20582
20583 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20584
20585 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20586 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20587 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20588 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20589
20590 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20591 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20592 _dl_sparc_cap_flags array.
20593 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20594
20595 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20596
20597 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20598 time whenever possible.
20599
20600 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20601
20602 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20603 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20604
20605 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20606
20607 * soft-fp/fmadf4.c: Move to ....
20608 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20609 * soft-fp/fmasf4.c: Move to ....
20610 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20611 * soft-fp/fmatf4.c: Move to ....
20612 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20613 * sysdeps/ieee754/soft-fp/Makefile: New file.
20614 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20615 * sysdeps/arm/preconfigure: Regenerated.
20616 * sysdeps/arm/nofpu/Implies: New file.
20617 * sysdeps/arm/s_fma.c: Remove file.
20618 * sysdeps/arm/s_fmaf.c: Likewise.
20619 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20620 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20621 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20622 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20623 * sysdeps/microblaze/s_fma.c: Remove file.
20624 * sysdeps/microblaze/s_fmaf.c: Likewise.
20625 * sysdeps/mips/mips32/nofpu/Implies: New file.
20626 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20627 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20628 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20629 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20630 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20631 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20632 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20633 implementation.
20634 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20635 * sysdeps/nios2/s_fma.c: Remove file.
20636 * sysdeps/nios2/s_fmaf.c: Likewise.
20637 * sysdeps/sh/nofpu/Implies: New file.
20638 * sysdeps/sh/s_fma.c: Remove file.
20639 * sysdeps/sh/s_fmaf.c: Likewise.
20640 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20641 * sysdeps/tile/s_fma.c: Remove file.
20642 * sysdeps/tile/s_fmaf.c: Likewise.
20643
20644 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20645
20646 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20647 Add s_cosf-sse2 and s_cosf-fma.
20648 (CFLAGS-s_cosf-fma.c): New.
20649 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20650 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20651 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20652
20653 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20654
20655 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20656
20657 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20658
20659 * libio/Makefile (tests): Add tst-bz22415.
20660 (tst-bz22415-ENV): New rule.
20661 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20662 (tests-special): Add tst-bz22415-mem.out.
20663 ($(objpfx)tst-bz22415-mem.out): New rule.
20664 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20665 in case of a successful seek operation.
20666 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20667 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20668 buffer is required.
20669 * libio/tst-bz22415.c: New test.
20670
20671 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20672
20673 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20674
20675 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20676 __IPC_64 to 0 to avoid IPC_64 being set.
20677
20678 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20679
20680 [BZ #22593]
20681 * math/bits/mathcalls.h (nextafter): Remove const.
20682 (nexttoward): Likewise.
20683
20684 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20685
20686 * configure.ac (--with-fp): Remove configure option.
20687 (with_fp_cond): New variable.
20688 (libc_cv_with_fp): New configure test. Use this variable instead
20689 of with_fp.
20690 * configure: Regenerated.
20691 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20692 * manual/install.texi (Configuring and compiling): Remove
20693 --without-fp.
20694 * INSTALL: Regenerated.
20695 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20696 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20697 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20698 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20699 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20700 use --without-fp to configure glibc.
20701
20702 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20703
20704 * manual/locale.texi (nl_langinfo): Fix a typo.
20705
20706 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20707
20708 [BZ #22588]
20709 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20710
20711 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20712
20713 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20714 (CFLAGS-argp-parse.c): Likewise.
20715 (CFLAGS-argp-fmtstream.c): Likewise.
20716 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20717 (CPPFLAGS-sha512-crypt.c): Likewise.
20718 (CPPFLAGS-md5-crypt.c): Likewise.
20719 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20720 (CFLAGS-stack_chk_fail_local.c): Likewise.
20721 (CFLAGS-backtrace.c): Likewise.
20722 (CFLAGS-sprintf_chk.c): Likewise.
20723 (CFLAGS-snprintf_chk.c): Likewise.
20724 (CFLAGS-vsprintf_chk.c): Likewise.
20725 (CFLAGS-vsnprintf_chk.c): Likewise.
20726 (CFLAGS-asprintf_chk.c): Likewise.
20727 (CFLAGS-vasprintf_chk.c): Likewise.
20728 (CFLAGS-obprintf_chk.c): Likewise.
20729 (CFLAGS-dprintf_chk.c): Likewise.
20730 (CFLAGS-vdprintf_chk.c): Likewise.
20731 (CFLAGS-printf_chk.c): Likewise.
20732 (CFLAGS-fprintf_chk.c): Likewise.
20733 (CFLAGS-vprintf_chk.c): Likewise.
20734 (CFLAGS-vfprintf_chk.c): Likewise.
20735 (CFLAGS-gets_chk.c): Likewise.
20736 (CFLAGS-fgets_chk.c): Likewise.
20737 (CFLAGS-fgets_u_chk.c): Likewise.
20738 (CFLAGS-fread_chk.c): Likewise.
20739 (CFLAGS-fread_u_chk.c): Likewise.
20740 (CFLAGS-swprintf_chk.c): Likewise.
20741 (CFLAGS-vswprintf_chk.c): Likewise.
20742 (CFLAGS-wprintf_chk.c): Likewise.
20743 (CFLAGS-fwprintf_chk.c): Likewise.
20744 (CFLAGS-vwprintf_chk.c): Likewise.
20745 (CFLAGS-vfwprintf_chk.c): Likewise.
20746 (CFLAGS-fgetws_chk.c): Likewise.
20747 (CFLAGS-fgetws_u_chk.c): Likewise.
20748 (CFLAGS-read_chk.c): Likewise.
20749 (CFLAGS-pread_chk.c): Likewise.
20750 (CFLAGS-pread64_chk.c): Likewise.
20751 (CFLAGS-recv_chk.c): Likewise.
20752 (CFLAGS-recvfrom_chk.c): Likewise.
20753 (CFLAGS-tst-longjmp_chk.c): Likewise.
20754 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
20755 (CFLAGS-tst-longjmp_chk2.c): Likewise.
20756 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
20757 (CFLAGS-tst-longjmp_chk3.c): Likewise.
20758 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
20759 (CFLAGS-tst-chk1.c): Likewise.
20760 (CFLAGS-tst-chk2.c): Likewise.
20761 (CFLAGS-tst-chk3.c): Likewise.
20762 (CFLAGS-tst-chk4.cc): Likewise.
20763 (CFLAGS-tst-chk5.cc): Likewise.
20764 (CFLAGS-tst-chk6.cc): Likewise.
20765 (CFLAGS-tst-lfschk1.c): Likewise.
20766 (CFLAGS-tst-lfschk2.c): Likewise.
20767 (CFLAGS-tst-lfschk3.c): Likewise.
20768 (CFLAGS-tst-lfschk4.cc): Likewise.
20769 (CFLAGS-tst-lfschk5.cc): Likewise.
20770 (CFLAGS-tst-lfschk6.cc): Likewise.
20771 (CFLAGS-tst-ssp-1.c): Likewise.
20772 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
20773 (CFLAGS-scandir64.c): Likewise.
20774 (CFLAGS-scandir-tail.c): Likewise.
20775 (CFLAGS-scandir64-tail.c): Likewise.
20776 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
20777 (CFLAGS-dl-tunables.c): Likewise.
20778 (CFLAGS-dl-runtime.c): Likewise.
20779 (CFLAGS-dl-lookup.c): Likewise.
20780 (CFLAGS-dl-iterate-phdr.c): Likewise.
20781 (CFLAGS-vismain.c): Likewise.
20782 (CFLAGS-tst-linkall-static.c): Likewise.
20783 (CFLAGS-tst-linkall-static.c): Likewise.
20784 (CPPFLAGS-dl-load.c): Likewise.
20785 (CFLAGS-ldconfig.c): Likewise.
20786 (CFLAGS-dl-cache.c): Likewise.
20787 (CFLAGS-cache.c): Likewise.
20788 (CFLAGS-rtld.c): Likewise.
20789 (CFLAGS-multiload.c): Likewise.
20790 (CFLAGS-filtmod1.c): Likewise.
20791 (CFLAGS-tst-align.c): Likewise.
20792 (CFLAGS-tst-align2.c): Likewise.
20793 (CFLAGS-tst-alignmod.c): Likewise.
20794 (CFLAGS-tst-alignmod2.c): Likewise.
20795 (CPPFLAGS-tst-execstack.c): Likewise.
20796 (CFLAGS-tst-ptrguard1-static.c): Likewise.
20797 (CFLAGS-tst-latepthreadmod.c): Likewise.
20798 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
20799 (CFLAGS-getgrnam_r.c): Likewise.
20800 (CFLAGS-getgrent_r.c): Likewise.
20801 (CFLAGS-getgrent.c): Likewise.
20802 (CFLAGS-fgetgrent.c): Likewise.
20803 (CFLAGS-fgetgrent_r.c): Likewise.
20804 (CFLAGS-putgrent.c): Likewise.
20805 (CFLAGS-initgroups.c): Likewise.
20806 (CFLAGS-getgrgid.c): Likewise.
20807 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
20808 (CFLAGS-getsgent.c): Likewise.
20809 (CFLAGS-fgetsgent.c): Likewise.
20810 (CFLAGS-fgetsgent_r.c): Likewise.
20811 (CFLAGS-putsgent.c): Likewise.
20812 (CFLAGS-getsgnam.c): Likewise.
20813 (CFLAGS-getsgnam_r.c): Likewise.
20814 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
20815 (CFLAGS-iconv_charmap.c): Likewise.
20816 (CFLAGS-dummy-repertoire.c): Likewise.
20817 (CFLAGS-charmap.c): Likewise.
20818 (CFLAGS-linereader.c): Likewise.
20819 (CFLAGS-simple-hash.c): Likewise.
20820 (CFLAGS-gconv_conf.c): Likewise.
20821 (CFLAGS-iconvconfig.c): Likewise.
20822 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
20823 (CFLAGS-gethstbyad.c): Likewise.
20824 (CFLAGS-gethstbynm_r.c): Likewise.
20825 (CFLAGS-gethstbynm.c): Likewise.
20826 (CFLAGS-gethstbynm2_r.c): Likewise.
20827 (CFLAGS-gethstbynm2.c): Likewise.
20828 (CFLAGS-gethstent_r.c): Likewise.
20829 (CFLAGS-gethstent.c): Likewise.
20830 (CFLAGS-rcmd.c): Likewise.
20831 (CFLAGS-getnetbynm_r.c): Likewise.
20832 (CFLAGS-getnetbynm.c): Likewise.
20833 (CFLAGS-getnetbyad_r.c): Likewise.
20834 (CFLAGS-getnetbyad.c): Likewise.
20835 (CFLAGS-getnetent_r.c): Likewise.
20836 (CFLAGS-getnetent.c): Likewise.
20837 (CFLAGS-getaliasent_r.c): Likewise.
20838 (CFLAGS-getaliasent.c): Likewise.
20839 (CFLAGS-getrpcent_r.c): Likewise.
20840 (CFLAGS-getrpcent.c): Likewise.
20841 (CFLAGS-getservent_r.c): Likewise.
20842 (CFLAGS-getservent.c): Likewise.
20843 (CFLAGS-getprtent_r.c): Likewise.
20844 (CFLAGS-getprtent.c): Likewise.
20845 (CFLAGS-either_ntoh.c): Likewise.
20846 (CFLAGS-either_hton.c): Likewise.
20847 (CFLAGS-getnetgrent.c): Likewise.
20848 (CFLAGS-getnetgrent_r.c): Likewise.
20849 (CFLAGS-tst-checks-posix.c): Likewise.
20850 (CFLAGS-tst-sockaddr.c): Likewise.
20851 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
20852 (CFLAGS-tst-translit.c): Likewise.
20853 (CFLAGS-tst-gettext2.c): Likewise.
20854 (CFLAGS-tst-codeset.c): Likewise.
20855 (CFLAGS-tst-gettext3.c): Likewise.
20856 (CFLAGS-tst-gettext4.c): Likewise.
20857 (CFLAGS-tst-gettext5.c): Likewise.
20858 (CFLAGS-tst-gettext6.c): Likewise.
20859 * io/Makefile (CFLAGS-open.c): Likewise.
20860 (CFLAGS-open64.c): Likewise.
20861 (CFLAGS-creat.c): Likewise.
20862 (CFLAGS-creat64.c): Likewise.
20863 (CFLAGS-fcntl.c): Likewise.
20864 (CFLAGS-poll.c): Likewise.
20865 (CFLAGS-ppoll.c): Likewise.
20866 (CFLAGS-lockf.c): Likewise.
20867 (CFLAGS-statfs.c): Likewise.
20868 (CFLAGS-fstatfs.c): Likewise.
20869 (CFLAGS-statvfs.c): Likewise.
20870 (CFLAGS-fstatvfs.c): Likewise.
20871 (CFLAGS-fts.c): Likewise.
20872 (CFLAGS-fts64.c): Likewise.
20873 (CFLAGS-ftw.c): Likewise.
20874 (CFLAGS-ftw64.c): Likewise.
20875 (CFLAGS-lockf.c): Likewise.
20876 (CFLAGS-posix_fallocate.c): Likewise.
20877 (CFLAGS-posix_fallocate64.c): Likewise.
20878 (CFLAGS-fallocate.c): Likewise.
20879 (CFLAGS-fallocate64.c): Likewise.
20880 (CFLAGS-read.c): Likewise.
20881 (CFLAGS-write.c): Likewise.
20882 (CFLAGS-test-stat.c): Likewise.
20883 (CFLAGS-test-lfs.c): Likewise.
20884 * libio/Makefile (CFLAGS-fileops.c): Likewise.
20885 (CFLAGS-fputc.c): Likewise.
20886 (CFLAGS-fputwc.c): Likewise.
20887 (CFLAGS-freopen64.c): Likewise.
20888 (CFLAGS-freopen.c): Likewise.
20889 (CFLAGS-fseek.c): Likewise.
20890 (CFLAGS-fseeko64.c): Likewise.
20891 (CFLAGS-fseeko.c): Likewise.
20892 (CFLAGS-ftello64.c): Likewise.
20893 (CFLAGS-ftello.c): Likewise.
20894 (CFLAGS-fwide.c): Likewise.
20895 (CFLAGS-genops.c): Likewise.
20896 (CFLAGS-getc.c): Likewise.
20897 (CFLAGS-getchar.c): Likewise.
20898 (CFLAGS-getwc.c): Likewise.
20899 (CFLAGS-getwchar.c): Likewise.
20900 (CFLAGS-iofclose.c): Likewise.
20901 (CFLAGS-iofflush.c): Likewise.
20902 (CFLAGS-iofgetpos64.c): Likewise.
20903 (CFLAGS-iofgetpos.c): Likewise.
20904 (CFLAGS-iofgets.c): Likewise.
20905 (CFLAGS-iofgetws.c): Likewise.
20906 (CFLAGS-iofputs.c): Likewise.
20907 (CFLAGS-iofputws.c): Likewise.
20908 (CFLAGS-iofread.c): Likewise.
20909 (CFLAGS-iofsetpos64.c): Likewise.
20910 (CFLAGS-iofsetpos.c): Likewise.
20911 (CFLAGS-ioftell.c): Likewise.
20912 (CFLAGS-iofwrite.c): Likewise.
20913 (CFLAGS-iogetdelim.c): Likewise.
20914 (CFLAGS-iogetline.c): Likewise.
20915 (CFLAGS-iogets.c): Likewise.
20916 (CFLAGS-iogetwline.c): Likewise.
20917 (CFLAGS-ioputs.c): Likewise.
20918 (CFLAGS-ioseekoff.c): Likewise.
20919 (CFLAGS-ioseekpos.c): Likewise.
20920 (CFLAGS-iosetbuffer.c): Likewise.
20921 (CFLAGS-iosetvbuf.c): Likewise.
20922 (CFLAGS-ioungetc.c): Likewise.
20923 (CFLAGS-ioungetwc.c): Likewise.
20924 (CFLAGS-oldfileops.c): Likewise.
20925 (CFLAGS-oldiofclose.c): Likewise.
20926 (CFLAGS-oldiofgetpos64.c): Likewise.
20927 (CFLAGS-oldiofgetpos.c): Likewise.
20928 (CFLAGS-oldiofsetpos64.c): Likewise.
20929 (CFLAGS-oldiofsetpos.c): Likewise.
20930 (CFLAGS-peekc.c): Likewise.
20931 (CFLAGS-putc.c): Likewise.
20932 (CFLAGS-putchar.c): Likewise.
20933 (CFLAGS-putwc.c): Likewise.
20934 (CFLAGS-putwchar.c): Likewise.
20935 (CFLAGS-rewind.c): Likewise.
20936 (CFLAGS-wfileops.c): Likewise.
20937 (CFLAGS-wgenops.c): Likewise.
20938 (CFLAGS-oldiofopen.c): Likewise.
20939 (CFLAGS-iofopen.c): Likewise.
20940 (CFLAGS-iofopen64.c): Likewise.
20941 (CFLAGS-oldtmpfile.c): Likewise.
20942 (CFLAGS-tst_putwc.c): Likewise.
20943 * locale/Makefile (CFLAGS-md5.c): Likewise.
20944 (CFLAGS-charmap.c): Likewise.
20945 (CFLAGS-locfile.c): Likewise.
20946 (CFLAGS-charmap-dir.c): Likewise.
20947 * login/Makefile (CFLAGS-grantpt.c): Likewise.
20948 (CFLAGS-getpt.c): Likewise.
20949 (CFLAGS-pt_chown.c): Likewise.
20950 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
20951 (CFLAGS-obstack.c): Likewise.
20952 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
20953 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
20954 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
20955 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
20956 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
20957 (CFLAGS-test-tgmath.c): Likewise.
20958 (CFLAGS-test-tgmath2.c): Likewise.
20959 (CFLAGS-test-tgmath-ret.c): Likewise.
20960 (CFLAGS-test-powl.c): Likewise.
20961 (CFLAGS-test-snan.c): Likewise.
20962 (CFLAGS-test-signgam-finite.c): Likewise.
20963 (CFLAGS-test-signgam-finite-c99.c): Likewise.
20964 (CFLAGS-test-signgam-finite-c11.c): Likewise.
20965 (CFLAGS-test-signgam-uchar.c): Likewise.
20966 (CFLAGS-test-signgam-uchar-init.c): Likewise.
20967 (CFLAGS-test-signgam-uchar-static.c): Likewise.
20968 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20969 (CFLAGS-test-signgam-uint.c): Likewise.
20970 (CFLAGS-test-signgam-uint-init.c): Likewise.
20971 (CFLAGS-test-signgam-uint-static.c): Likewise.
20972 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20973 (CFLAGS-test-signgam-ullong.c): Likewise.
20974 (CFLAGS-test-signgam-ullong-init.c): Likewise.
20975 (CFLAGS-test-signgam-ullong-static.c): Likewise.
20976 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20977 (CFLAGS-test-math-cxx11.cc): Likewise.
20978 (CFLAGS-test-math-isinff.cc): Likewise.
20979 (CFLAGS-test-math-iszero.cc): Likewise.
20980 (CFLAGS-test-math-issignaling.cc): Likewise.
20981 (CFLAGS-test-math-iscanonical.cc): Likewise.
20982 (CFLAGS-test-iszero-excess-precision.c): Likewise.
20983 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
20984 (CFLAGS-test-flt-eval-method.c): Likewise.
20985 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
20986 (CFLAGS-test-finite-macros.c): Likewise.
20987 * misc/Makefile (CFLAGS-select.c): Likewise.
20988 (CFLAGS-tsearch.c): Likewise.
20989 (CFLAGS-lsearch.c): Likewise.
20990 (CFLAGS-pselect.c): Likewise.
20991 (CFLAGS-readv.c): Likewise.
20992 (CFLAGS-writev.c): Likewise.
20993 (CFLAGS-preadv.c): Likewise.
20994 (CFLAGS-preadv64.c): Likewise.
20995 (CFLAGS-pwritev.c): Likewise.
20996 (CFLAGS-pwritev64.c): Likewise.
20997 (CFLAGS-preadv2.c): Likewise.
20998 (CFLAGS-preadv64v2.c): Likewise.
20999 (CFLAGS-pwritev2.c): Likewise.
21000 (CFLAGS-pwritev64v2.c): Likewise.
21001 (CFLAGS-usleep.c): Likewise.
21002 (CFLAGS-syslog.c): Likewise.
21003 (CFLAGS-error.c): Likewise.
21004 (CFLAGS-getpass.c): Likewise.
21005 (CFLAGS-mkstemp.c): Likewise.
21006 (CFLAGS-mkstemp64.c): Likewise.
21007 (CFLAGS-getsysstats.c): Likewise.
21008 (CFLAGS-getusershell.c): Likewise.
21009 (CFLAGS-err.c): Likewise.
21010 (CFLAGS-tst-tsearch.c): Likewise.
21011 (CFLAGS-msync.c): Likewise.
21012 (CFLAGS-fdatasync.c): Likewise.
21013 (CFLAGS-fsync.c): Likewise.
21014 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21015 (CFLAGS-unwind.c): Likewise.
21016 (CFLAGS-unwind-forcedunwind.c): Likewise.
21017 (CFLAGS-pthread_cancel.c): Likewise.
21018 (CFLAGS-pthread_setcancelstate.c): Likewise.
21019 (CFLAGS-pthread_setcanceltype.c): Likewise.
21020 (CFLAGS-cancellation.c): Likewise.
21021 (CFLAGS-libc-cancellation.c): Likewise.
21022 (CFLAGS-pthread_exit.c): Likewise.
21023 (CFLAGS-forward.c): Likewise.
21024 (CFLAGS-pthread_testcancel.c): Likewise.
21025 (CFLAGS-pthread_join.c): Likewise.
21026 (CFLAGS-pthread_timedjoin.c): Likewise.
21027 (CFLAGS-pthread_once.c): Likewise.
21028 (CFLAGS-pthread_cond_wait.c): Likewise.
21029 (CFLAGS-sem_wait.c): Likewise.
21030 (CFLAGS-sem_timedwait.c): Likewise.
21031 (CFLAGS-fcntl.c): Likewise.
21032 (CFLAGS-lockf.c): Likewise.
21033 (CFLAGS-pread.c): Likewise.
21034 (CFLAGS-pread64.c): Likewise.
21035 (CFLAGS-pwrite.c): Likewise.
21036 (CFLAGS-pwrite64.c): Likewise.
21037 (CFLAGS-wait.c): Likewise.
21038 (CFLAGS-waitpid.c): Likewise.
21039 (CFLAGS-sigwait.c): Likewise.
21040 (CFLAGS-msgrcv.c): Likewise.
21041 (CFLAGS-msgsnd.c): Likewise.
21042 (CFLAGS-tcdrain.c): Likewise.
21043 (CFLAGS-open.c): Likewise.
21044 (CFLAGS-open64.c): Likewise.
21045 (CFLAGS-pause.c): Likewise.
21046 (CFLAGS-recv.c): Likewise.
21047 (CFLAGS-send.c): Likewise.
21048 (CFLAGS-accept.c): Likewise.
21049 (CFLAGS-sendto.c): Likewise.
21050 (CFLAGS-connect.c): Likewise.
21051 (CFLAGS-recvfrom.c): Likewise.
21052 (CFLAGS-recvmsg.c): Likewise.
21053 (CFLAGS-sendmsg.c): Likewise.
21054 (CFLAGS-close.c): Likewise.
21055 (CFLAGS-read.c): Likewise.
21056 (CFLAGS-write.c): Likewise.
21057 (CFLAGS-nanosleep.c): Likewise.
21058 (CFLAGS-sigsuspend.c): Likewise.
21059 (CFLAGS-msync.c): Likewise.
21060 (CFLAGS-fdatasync.c): Likewise.
21061 (CFLAGS-fsync.c): Likewise.
21062 (CFLAGS-pt-system.c): Likewise.
21063 (CFLAGS-tst-cleanup2.c): Likewise.
21064 (CFLAGS-tst-cleanupx2.c): Likewise.
21065 (CFLAGS-flockfile.c): Likewise.
21066 (CFLAGS-ftrylockfile.c): Likewise.
21067 (CFLAGS-funlockfile.c): Likewise.
21068 (CFLAGS-tst-initializers1.c): Likewise.
21069 (CFLAGS-tst-initializers1-c89.c): Likewise.
21070 (CFLAGS-tst-initializers1-c99.c): Likewise.
21071 (CFLAGS-tst-initializers1-c11.c): Likewise.
21072 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21073 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21074 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21075 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21076 (CFLAGS-nscd_getgr_r.c): Likewise.
21077 (CFLAGS-nscd_gethst_r.c): Likewise.
21078 (CFLAGS-nscd_getai.c): Likewise.
21079 (CFLAGS-nscd_initgroups.c): Likewise.
21080 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21081 (CFLAGS-pause.c): Likewise.
21082 (CFLAGS-pread.c): Likewise.
21083 (CFLAGS-pread64.c): Likewise.
21084 (CFLAGS-pwrite.c): Likewise.
21085 (CFLAGS-pwrite64.c): Likewise.
21086 (CFLAGS-sleep.c): Likewise.
21087 (CFLAGS-wait.c): Likewise.
21088 (CFLAGS-waitid.c): Likewise.
21089 (CFLAGS-waitpid.c): Likewise.
21090 (CFLAGS-getopt.c): Likewise.
21091 (CFLAGS-wordexp.c): Likewise.
21092 (CFLAGS-sysconf.c): Likewise.
21093 (CFLAGS-pathconf.c): Likewise.
21094 (CFLAGS-fpathconf.c): Likewise.
21095 (CFLAGS-spawn.c): Likewise.
21096 (CFLAGS-spawnp.c): Likewise.
21097 (CFLAGS-spawni.c): Likewise.
21098 (CFLAGS-glob.c): Likewise.
21099 (CFLAGS-glob64.c): Likewise.
21100 (CFLAGS-getconf.c): Likewise.
21101 (CFLAGS-nanosleep.c): Likewise.
21102 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21103 (CFLAGS-getpwent.c): Likewise.
21104 (CFLAGS-getpw.c): Likewise.
21105 (CFLAGS-fgetpwent_r.c): Likewise.
21106 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21107 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21108 (CFLAGS-mq_timedreceive.c): Likewise.
21109 (CFLAGS-mq_timedsend.c): Likewise.
21110 (CFLAGS-clock_nanosleep.c): Likewise.
21111 (CFLAGS-librt-cancellation.c): Likewise.
21112 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21113 (CFLAGS-getspent.c): Likewise.
21114 (CFLAGS-fgetspent.c): Likewise.
21115 (CFLAGS-fgetspent_r.c): Likewise.
21116 (CFLAGS-putspent.c): Likewise.
21117 (CFLAGS-getspnam.c): Likewise.
21118 (CFLAGS-getspnam_r.c): Likewise.
21119 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21120 (CFLAGS-sigsuspend.c): Likewise.
21121 (CFLAGS-sigtimedwait.c): Likewise.
21122 (CFLAGS-sigwait.c): Likewise.
21123 (CFLAGS-sigwaitinfo.c): Likewise.
21124 (CFLAGS-sigreturn.c): Likewise.
21125 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21126 (CFLAGS-vfwprintf.c): Likewise.
21127 (CFLAGS-tmpfile.c): Likewise.
21128 (CFLAGS-tmpfile64.c): Likewise.
21129 (CFLAGS-tempname.c): Likewise.
21130 (CFLAGS-psignal.c): Likewise.
21131 (CFLAGS-vprintf.c): Likewise.
21132 (CFLAGS-cuserid.c): Likewise.
21133 (CFLAGS-errlist.c): Likewise.
21134 (CFLAGS-siglist.c): Likewise.
21135 (CFLAGS-scanf15.c): Likewise.
21136 (CFLAGS-scanf17.c): Likewise.
21137 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21138 (CFLAGS-msort.c): Likewise.
21139 (CFLAGS-qsort.c): Likewise.
21140 (CFLAGS-system.c): Likewise.
21141 (CFLAGS-fmtmsg.c): Likewise.
21142 (CFLAGS-strfmon.c): Likewise.
21143 (CFLAGS-strfmon_l.c): Likewise.
21144 (CFLAGS-strfromd.c): Likewise.
21145 (CFLAGS-strfromf.c): Likewise.
21146 (CFLAGS-strfroml.c): Likewise.
21147 (CFLAGS-tst-bsearch.c): Likewise.
21148 (CFLAGS-tst-qsort.c): Likewise.
21149 (CFLAGS-tst-makecontext2.c): Likewise.
21150 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21151 (CFLAGS-xnlm_prot.c): Likewise.
21152 (CFLAGS-xrstat.c): Likewise.
21153 (CFLAGS-xyppasswd.c): Likewise.
21154 (CFLAGS-xklm_prot.c): Likewise.
21155 (CFLAGS-xrex.c): Likewise.
21156 (CFLAGS-xsm_inter.c): Likewise.
21157 (CFLAGS-xmount.c): Likewise.
21158 (CFLAGS-xrusers.c): Likewise.
21159 (CFLAGS-xspray.c): Likewise.
21160 (CFLAGS-xnfs_prot.c): Likewise.
21161 (CFLAGS-xrquota.c): Likewise.
21162 (CFLAGS-xkey_prot.c): Likewise.
21163 (CFLAGS-auth_unix.c): Likewise.
21164 (CFLAGS-key_call.c): Likewise.
21165 (CFLAGS-pmap_rmt.c): Likewise.
21166 (CFLAGS-clnt_perr.c): Likewise.
21167 (CFLAGS-openchild.c): Likewise.
21168 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21169 (CFLAGS-msgsnd.c): Likewise.
21170 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21171 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21172 (CFLAGS-tzset.c): Likewise.
21173 (CFLAGS-getdate.c): Likewise.
21174 (CFLAGS-test_time.c): Likewise.
21175 (CPPFLAGS-tst-tzname.c): Likewise.
21176 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21177 (CFLAGS-zic.c): Likewise.
21178 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21179 (CFLAGS-wcswidth.c): Likewise.
21180 (CFLAGS-wcstol.c): Likewise.
21181 (CFLAGS-wcstoul.c): Likewise.
21182 (CFLAGS-wcstoll.c): Likewise.
21183 (CFLAGS-wcstoull.c): Likewise.
21184 (CFLAGS-wcstod.c): Likewise.
21185 (CFLAGS-wcstold.c): Likewise.
21186 (CFLAGS-wcstof128.c): Likewise.
21187 (CFLAGS-wcstof.c): Likewise.
21188 (CFLAGS-wcstol_l.c): Likewise.
21189 (CFLAGS-wcstoul_l.c): Likewise.
21190 (CFLAGS-wcstoll_l.c): Likewise.
21191 (CFLAGS-wcstoull_l.c): Likewise.
21192 (CFLAGS-wcstod_l.c): Likewise.
21193 (CFLAGS-wcstold_l.c): Likewise.
21194 (CFLAGS-wcstof128_l.c): Likewise.
21195 (CFLAGS-wcstof_l.c): Likewise.
21196 (CPPFLAGS-tst-wchar-h.c): Likewise.
21197 (CPPFLAGS-wcstold_l.c): Likewise.
21198
21199 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21200
21201 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21202
21203 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21204 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21205
21206 * manual/tunables.texi (Hardware Capability Tunables): Document
21207 glibc.tune.cached_memopt.
21208 * sysdeps/powerpc/cpu-features.c: New file.
21209 * sysdeps/powerpc/cpu-features.h: New file.
21210 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21211 _dl_powerpc_cpu_features.
21212 * sysdeps/powerpc/dl-tunables.list: New file.
21213 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21214 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21215 (INIT_ARCH): Initialize use_aligned_memopt.
21216 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21217 IS_IN(rtld))]: Restrict dl_platform_init availability and
21218 initialize CPU features used by tunables.
21219 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21220 Add memcpy-power8-cached.
21221 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21222 __memcpy_power8_cached.
21223 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21224 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21225 New file.
21226
21227 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21228
21229 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21230 (CFLAGS-noinl-tester.c): Likewise.
21231 (CFLAGS-tst-strlen.c): Likewise.
21232 (CFLAGS-stratcliff.c): Likewise.
21233 (CFLAGS-test-ffs.c): Likewise.
21234 (CFLAGS-tst-inlcall.c): Likewise.
21235 (CFLAGS-tst-xbzero-opt.c): Likewise.
21236 (CFLAGS-memcpy.c): Likewise.
21237 (CFLAGS-wordcopy.c): Likewise.
21238
21239 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21240
21241 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21242 Store r15 on stack and add cfi rule.
21243 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21244 Likewise.
21245
21246 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21247
21248 [BZ #22577]
21249 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21250 call.
21251
21252 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21253
21254 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21255 Add s_sinf-sse2 and s_sinf-fma.
21256 (CFLAGS-s_sinf-fma.c): New.
21257 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21258 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21259 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21260
21261 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21262
21263 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21264
21265 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21266
21267 [BZ #22568]
21268 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21269 part of result to imaginary part of argument if it is zero and the
21270 real part of the argument is not finite.
21271 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21272 of result to real part of argument if it is zero and the imaginary
21273 part of the argument is not finite.
21274
21275 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21276
21277 [BZ #22524]
21278 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21279 and to the list of locales to be built for testing.
21280 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21281 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21282 and build the collation rules upon that.
21283
21284 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21285
21286 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21287 * manual/math.texi (Mathematics): Document support for _Float32.
21288 * math/Makefile (test-types): Add float32.
21289 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21290 * stdlib/Versions (GLIBC_2.27): Likewise.
21291 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21292 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21293 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21294 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21295 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21296 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21297 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21298 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21299 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21300 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21301 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21302 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21303 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21304 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21305 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21306 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21307 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21308 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21309 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21310 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21311 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21312 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21313 Likewise.
21314 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21315 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21316 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21317 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21318 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21320 Likewise.
21321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21322 Likewise.
21323 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21324 Likewise.
21325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21326 Likewise.
21327
21328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21329 Likewise.
21330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21331 Likewise.
21332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21333 Likewise.
21334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21335 Likewise.
21336 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21337 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21338 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21339 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21340 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21341 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21342 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21343 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21344 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21345 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21346 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21347 Likewise.
21348 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21349 Likewise.
21350 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21351 Likewise.
21352 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21353 Likewise.
21354 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21355 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21356 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21357 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21358 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21359 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21360 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21361 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21362
21363 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21364
21365 * stdlib/strtof.c: Include <bits/floatn.h>
21366 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21367 and later undefine as macro. Define as weak alias if
21368 [!USE_WIDE_CHAR].
21369 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21370 and later undefine as macro. Define as weak alias if
21371 [USE_WIDE_CHAR].
21372 * stdlib/strtof_l.c: Include <bits/floatn.h>
21373 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21374 and later undefine as macro. Define as weak alias if
21375 [!USE_WIDE_CHAR].
21376 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21377 and later undefine as macro. Define as weak alias if
21378 [USE_WIDE_CHAR].
21379
21380 * stdlib/strfromf.c: Include <bits/floatn.h>.
21381 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21382 and later undefine as macro and define as weak alias.
21383
21384 * math/test-float32.h: New file.
21385
21386 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21387 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21388 (libm_alias_float_other_r): Create f32 alias.
21389 (libm_alias_float_r): Use semicolon before call to
21390 libm_alias_float_other_r.
21391
21392 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21393 second argument to libm_alias_float_other.
21394 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21395 second argument to libm_alias_float_other.
21396 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21397 argument to libm_alias_float_other.
21398
21399 [BZ #22561]
21400 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21401 real part of result for argument 0 + i * NaN.
21402 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21403 results for tests of 0 + i * NaN.
21404
21405 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21406
21407 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21408
21409 2017-12-06 David S. Miller <davem@davemloft.net>
21410
21411 * sysdeps/sparc/fpu/libm-test-ulps: Update
21412 exp_{downward,towardzero,upward} ulps.
21413
21414 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21415
21416 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21417 variables static.
21418
21419 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21420 (Y0_2D): Likewise.
21421 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21422 (Y0_2D): Likewise.
21423 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21424 (Y0_2D): Likewise.
21425 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21426 (Y0_2D): Likewise.
21427
21428 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21429
21430 [BZ #22515]
21431 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21432 and to the list of locales to be built for testing.
21433 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21434 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21435 and build the collation rules upon that.
21436
21437 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21438
21439 * NEWS: Add sinf to list of optimized functions.
21440
21441 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21442
21443 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21444 (__HAVE_FLOAT32X): Likewise.
21445 * manual/math.texi (Mathematics): Document support for _Float64
21446 and _Float32x.
21447 * math/Makefile (test-types): Add float64 and float32x.
21448 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21449 functions.
21450 * stdlib/Versions (GLIBC_2.27): Likewise.
21451 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21452 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21453 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21454 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21455 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21456 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21457 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21458 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21459 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21460 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21461 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21462 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21463 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21464 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21465 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21466 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21467 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21468 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21469 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21470 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21471 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21472 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21473 Likewise.
21474 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21475 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21476 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21477 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21478 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21480 Likewise.
21481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21482 Likewise.
21483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21484 Likewise.
21485 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21486 Likewise.
21487 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21488 Likewise.
21489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21490 Likewise.
21491 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21492 Likewise.
21493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21494 Likewise.
21495 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21496 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21497 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21498 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21499 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21500 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21501 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21502 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21503 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21504 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21505 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21506 Likewise.
21507 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21508 Likewise.
21509 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21510 Likewise.
21511 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21512 Likewise.
21513 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21514 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21515 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21516 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21517 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21518 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21519 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21520 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21521
21522 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21523
21524 * bits/floatn-common.h: Include <bits/long-double.h>.
21525 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21526 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21527 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21528 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21529 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21530 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21531 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21532 (__builtin_huge_valf64): Use __builtin_huge_vall.
21533 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21534 (__builtin_inff64): Use __builtin_infl.
21535 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21536 (__builtin_nanf64): Use __builtin_nanl.
21537 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21538 (__builtin_nansf64): Use __builtin_nansl.
21539
21540 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21541 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21542 Carlos O'Donnell <carlos@redhat.com>
21543
21544 * elf/dl-tunables.list: Add elision parameters.
21545 * manual/tunables.texi: Add entries about elision tunable.
21546 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21547 Add callback functions to dynamically enable/disable elision.
21548 Add multiple callbacks functions to set elision parameters.
21549 Deleted __libc_enable_secure check.
21550 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21551 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21552 * configure: Regenerated.
21553 * configure.ac: Option enable_lock_elision was deleted.
21554 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21555 * config.make.in: Remove references to enable_lock_elision.
21556 * manual/install.texi: Elision configure option was removed.
21557 * INSTALL: Regenerated to remove enable_lock_elision.
21558 * nptl/Makefile:
21559 Disable elision so it can verify error case for destroying a mutex.
21560 * sysdeps/powerpc/nptl/elide.h:
21561 Cleanup ENABLE_LOCK_ELISION check.
21562 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21563 * sysdeps/s390/configure: Regenerated.
21564 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21565 * nptl/tst-mutex8.c:
21566 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21567 * sysdeps/powerpc/powerpc32/sysdep.h:
21568 Deleted all ENABLE_LOCK_ELISION checks.
21569 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21570 * sysdeps/powerpc/sysdep.h: Likewise.
21571 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21572 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21573 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21574 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21575 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21576 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21577 enable-lock-elision.
21578
21579 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21580
21581 * stdlib/strtod.c: Include <bits/floatn.h>.
21582 (BUILD_DOUBLE): New macro.
21583 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21584 (strtof64): Define and later undefine as macro. Define as weak
21585 alias if [!USE_WIDE_CHAR].
21586 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21587 (wcstof64): Define and later undefine as macro. Define as weak
21588 alias if [USE_WIDE_CHAR].
21589 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21590 (strtof32x): Define and later undefine as macro. Define as weak
21591 alias if [!USE_WIDE_CHAR].
21592 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21593 (wcstof32x): Define and later undefine as macro. Define as weak
21594 alias if [USE_WIDE_CHAR].
21595 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21596 (BUILD_DOUBLE): New macro.
21597 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21598 (strtof64_l): Define and later undefine as macro. Define as weak
21599 alias if [!USE_WIDE_CHAR].
21600 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21601 (wcstof64_l): Define and later undefine as macro. Define as weak
21602 alias if [USE_WIDE_CHAR].
21603 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21604 (strtof32x_l): Define and later undefine as macro. Define as weak
21605 alias if [!USE_WIDE_CHAR].
21606 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21607 (wcstof32x_l): Define and later undefine as macro. Define as weak
21608 alias if [USE_WIDE_CHAR].
21609
21610 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21611
21612 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21613 (reduced): Use ones as double instead of integer.
21614
21615 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21616
21617 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21618
21619 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21620
21621 * stdlib/strfromd.c: Include <bits/floatn.h>.
21622 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21623 and later undefine as macro and define as weak alias.
21624 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21625 Likewise.
21626
21627 * math/test-float32x.h: New file.
21628 * math/test-float64.h: Likewise.
21629
21630 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21631 (libm_alias_double_other_r_f64): New macro.
21632 (libm_alias_double_other_r_f32x): Likewise.
21633 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21634 libm_alias_double_other_r_f32x.
21635 (libm_alias_double_r): Use semicolon before call to
21636 libm_alias_double_other_r.
21637 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21638 <bits/floatn.h>.
21639 (libm_alias_double_other_r_f64): New macro.
21640 (libm_alias_double_other_r_f32x): Likewise.
21641 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21642 libm_alias_double_other_r_f32x.
21643
21644 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21645
21646 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21647 int.
21648 (SINF_FUNC): Likewise. Replace floor with simple casts.
21649
21650 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21651
21652 [BZ #22517]
21653 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21654 and to the list of locales to be built for testing.
21655 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21656 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21657 and build the collation rules upon that.
21658
21659 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21660
21661 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21662 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21663 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21664 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21665 instead of __insn__xxx.
21666 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21667 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21668 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21669 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21670 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21671 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21672
21673 2017-12-05 Florian Weimer <fweimer@redhat.com>
21674
21675 Linux: Implement interfaces for memory protection keys
21676 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21677 xsignal, xsysconf.
21678 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21679 * support/xunistd.h (xsysconf): Declare.
21680 * support/xraise.c: New file.
21681 * support/xsigaction.c: Likewise.
21682 * support/xsignal.c: Likewise.
21683 * support/xsysconf.c: Likewise.
21684 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21685 pkey_set, pkey_get, pkey_mprotect.
21686 [misc] (tests): Add tst-pkey.
21687 (tst-pkey): Link with -lpthread.
21688 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21689 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21690 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21691 (PKEY_DISABLE_WRITE): Define.
21692 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21693 Declare.
21694 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21695 (SEGV_PKUERR): Add.
21696 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21697 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21698 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21699 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21700 Add.
21701 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21702 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21703 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21704 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21705 * sysdeps/unix/sysv/linux/**.abilist: Update.
21706
21707 2017-12-05 Florian Weimer <fweimer@redhat.com>
21708
21709 * support/tst-test_compare.c (subprocess): Use long long instead
21710 of long argument for consistent type width across 32-bit and
21711 64-bit architectures.
21712 (do_test): Adjust expected output.
21713
21714 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21715
21716 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21717 (cosf): Define using libm_alias_float.
21718 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21719 (fabsf): Define using libm_alias_float.
21720 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21721 (fmaf): Define using libm_alias_float.
21722 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21723 (rintf): Define using libm_alias_float.
21724 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21725 (sinf): Define using libm_alias_float.
21726 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21727 <libm-alias-float.h>.
21728 (modff): Define using libm_alias_float.
21729 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21730 <libm-alias-float.h>.
21731 (logbf): Define using libm_alias_float.
21732 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21733 <libm-alias-float.h>.
21734 (ceilf): Define using libm_alias_float.
21735 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21736 <libm-alias-float.h>.
21737 (copysignf): Define using libm_alias_float.
21738 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21739 <libm-alias-float.h>.
21740 (floorf): Define using libm_alias_float.
21741 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21742 <libm-alias-float.h>.
21743 (llrintf): Define using libm_alias_float.
21744 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
21745 <libm-alias-float.h>.
21746 (llroundf): Define using libm_alias_float.
21747 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
21748 <libm-alias-float.h>.
21749 (lrintf): Define using libm_alias_float.
21750 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
21751 <libm-alias-float.h>.
21752 (lroundf): Define using libm_alias_float.
21753 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
21754 <libm-alias-float.h>.
21755 (nearbyintf): Define using libm_alias_float.
21756 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
21757 <libm-alias-float.h>.
21758 (rintf): Define using libm_alias_float.
21759 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
21760 <libm-alias-float.h>.
21761 (roundf): Define using libm_alias_float.
21762 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
21763 <libm-alias-float.h>.
21764 (truncf): Define using libm_alias_float.
21765 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
21766 Include <libm-alias-float.h>.
21767 (ceilf): Define using libm_alias_float.
21768 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
21769 Include <libm-alias-float.h>.
21770 (copysignf): Define using libm_alias_float.
21771 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
21772 Include <libm-alias-float.h>.
21773 (floorf): Define using libm_alias_float.
21774 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
21775 Include <libm-alias-float.h>.
21776 (llrintf): Define using libm_alias_float.
21777 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
21778 Include <libm-alias-float.h>.
21779 (llroundf): Define using libm_alias_float.
21780 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
21781 Include <libm-alias-float.h>.
21782 (logbf): Define using libm_alias_float.
21783 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
21784 Include <libm-alias-float.h>.
21785 (lrintf): Define using libm_alias_float.
21786 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
21787 Include <libm-alias-float.h>.
21788 (lroundf): Define using libm_alias_float.
21789 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
21790 Include <libm-alias-float.h>.
21791 (modff): Define using libm_alias_float.
21792 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
21793 Include <libm-alias-float.h>.
21794 (roundf): Define using libm_alias_float.
21795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
21796 Include <libm-alias-float.h>.
21797 (truncf): Define using libm_alias_float.
21798 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
21799 <libm-alias-float.h>.
21800 (llrintf): Define using libm_alias_float.
21801 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
21802 <libm-alias-float.h>.
21803 (llroundf): Define using libm_alias_float.
21804 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
21805 <libm-alias-float.h>.
21806 (ceilf): Define using libm_alias_float.
21807 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
21808 <libm-alias-float.h>.
21809 (floorf): Define using libm_alias_float.
21810 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
21811 <libm-alias-float.h>.
21812 (llroundf): Define using libm_alias_float.
21813 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
21814 <libm-alias-float.h>.
21815 (lroundf): Define using libm_alias_float.
21816 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
21817 <libm-alias-float.h>.
21818 (roundf): Define using libm_alias_float.
21819 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
21820 <libm-alias-float.h>.
21821 (truncf): Define using libm_alias_float.
21822 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
21823 <libm-alias-float.h>.
21824 (copysignf): Define using libm_alias_float.
21825 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
21826 <libm-alias-float.h>.
21827 (llrintf): Define using libm_alias_float.
21828 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
21829 <libm-alias-float.h>.
21830 (llroundf): Define using libm_alias_float.
21831 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
21832 <libm-alias-float.h>.
21833 (lrintf): Define using libm_alias_float.
21834 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
21835 <libm-alias-float.h>.
21836 (lroundf): Define using libm_alias_float.
21837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
21838 <libm-alias-float.h>.
21839 (ceilf): Define using libm_alias_float.
21840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
21841 <libm-alias-float.h>.
21842 (copysignf): Define using libm_alias_float.
21843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
21844 <libm-alias-float.h>.
21845 (cosf): Define using libm_alias_float.
21846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
21847 <libm-alias-float.h>.
21848 (floorf): Define using libm_alias_float.
21849 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
21850 <libm-alias-float.h>.
21851 (llrintf): Define using libm_alias_float.
21852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
21853 <libm-alias-float.h>.
21854 (llroundf): Define using libm_alias_float.
21855 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
21856 <libm-alias-float.h>.
21857 (logbf): Define using libm_alias_float.
21858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
21859 <libm-alias-float.h>.
21860 (modff): Define using libm_alias_float.
21861 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
21862 <libm-alias-float.h>.
21863 (roundf): Define using libm_alias_float.
21864 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
21865 <libm-alias-float.h>.
21866 (sinf): Define using libm_alias_float.
21867 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
21868 <libm-alias-float.h>.
21869 (truncf): Define using libm_alias_float.
21870 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
21871 <libm-alias-float.h>.
21872 (ceilf): Define using libm_alias_float.
21873 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
21874 <libm-alias-float.h>.
21875 (copysignf): Define using libm_alias_float.
21876 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
21877 <libm-alias-float.h>.
21878 (floorf): Define using libm_alias_float.
21879 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
21880 <libm-alias-float.h>.
21881 (llrintf): Define using libm_alias_float.
21882 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
21883 <libm-alias-float.h>.
21884 (llroundf): Define using libm_alias_float.
21885 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
21886 <libm-alias-float.h>.
21887 (nearbyintf): Define using libm_alias_float.
21888 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
21889 <libm-alias-float.h>.
21890 (rintf): Define using libm_alias_float.
21891 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
21892 <libm-alias-float.h>.
21893 (roundf): Define using libm_alias_float.
21894 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
21895 <libm-alias-float.h>.
21896 (truncf): Define using libm_alias_float.
21897 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
21898 <libm-alias-float.h>.
21899 (ceilf): Define using libm_alias_float.
21900 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
21901 <libm-alias-float.h>.
21902 (floorf): Define using libm_alias_float.
21903 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
21904 <libm-alias-float.h>.
21905 (llroundf): Define using libm_alias_float.
21906 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
21907 <libm-alias-float.h>.
21908 (roundf): Define using libm_alias_float.
21909 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
21910 <libm-alias-float.h>.
21911 (truncf): Define using libm_alias_float.
21912 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
21913 <libm-alias-float.h>.
21914 (copysignf): Define using libm_alias_float.
21915 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
21916 <libm-alias-float.h>.
21917 (llrintf): Define using libm_alias_float.
21918 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
21919 <libm-alias-float.h>.
21920 (llroundf): Define using libm_alias_float.
21921 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
21922 <libm-alias-float.h>.
21923 (cosf): Define using libm_alias_float.
21924 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
21925 <libm-alias-float.h>.
21926 (llrintf): Define using libm_alias_float.
21927 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
21928 <libm-alias-float.h>.
21929 (llroundf): Define using libm_alias_float.
21930 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
21931 <libm-alias-float.h>.
21932 (sinf): Define using libm_alias_float.
21933
21934 2017-12-04 Florian Weimer <fweimer@redhat.com>
21935
21936 * support/check.h (TEST_COMPARE): Define.
21937 (support_test_compare_failure): Declare.
21938 * support/Makefile (libsupport-routines): Add
21939 support_test_compare_failure.
21940 (tests): Add tst-test_compare.
21941 * support /support_test_compare_failure.c: New file.
21942 * support/tst-test_compare.c: Likewise.
21943
21944 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21945
21946 [BZ #22527]
21947 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
21948 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
21949 available, this rewrite of the collation rules does reproduce
21950 the test file in the same order.
21951
21952 2017-12-04 Mike FABIAN <mfabian@redhat.com>
21953
21954 [BZ #10580]
21955 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
21956 digraphs in the month and day names. Using single code points for
21957 digraphs is deprecated. While there are dedicated Unicode
21958 codepoints, for the digraphs, these are included for backwards
21959 compatibility and modern texts use a sequence of Basic Latin
21960 characters. See: https://www.unicode.org/faq/ligature_digraph.html
21961 This makes the month and day names agree exactly with CLDR now,
21962 CLDR does not use the single code points for the digraphs either.
21963
21964 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
21965
21966 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
21967
21968 2017-12-04 Joseph Myers <joseph@codesourcery.com>
21969
21970 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
21971 of floor.
21972
21973 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
21974
21975 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
21976 Define only for libc.so.
21977
21978 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
21979
21980 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
21981 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
21982 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
21983 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
21984 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
21985
21986 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21987
21988 [BZ #5997]
21989 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
21990
21991 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
21992
21993 [BZ libc/19170]
21994 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
21995 PREINIT_FUNCTION_WEAK is nonzero.
21996 (gmon_initializer): New function. Put procedure label for it in
21997 .init_array section.
21998 (_init): Don't call PREINIT_FUNCTION.
21999 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22000 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22001 value when map argument is null.
22002
22003 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22004 depi instruction from PIC pc-relative sequence.
22005 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22006 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22007 (elf_machine_load_address): Likewise.
22008 (elf_machine_runtime_setup): Likewise.
22009
22010 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22011
22012 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22013 <libm-alias-double.h>.
22014 (logb): Define using libm_alias_double.
22015 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22016 <libm-alias-double.h>.
22017 (copysign): Define using libm_alias_double.
22018 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22019 <libm-alias-double.h>.
22020 (llrint): Define using libm_alias_double.
22021 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22022 <libm-alias-double.h>.
22023 (llround): Define using libm_alias_double.
22024 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22025 <libm-alias-double.h>.
22026 (lrint): Define using libm_alias_double.
22027 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22028 <libm-alias-double.h>.
22029 (lround): Define using libm_alias_double.
22030 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22031 Include <libm-alias-double.h>.
22032 (copysign): Define using libm_alias_double.
22033 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22034 Include <libm-alias-double.h>.
22035 (llrint): Define using libm_alias_double.
22036 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22037 Include <libm-alias-double.h>.
22038 (llround): Define using libm_alias_double.
22039 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22040 <libm-alias-double.h>.
22041 (logb): Define using libm_alias_double.
22042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22043 Include <libm-alias-double.h>.
22044 (lrint): Define using libm_alias_double.
22045 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22046 Include <libm-alias-double.h>.
22047 (lround): Define using libm_alias_double.
22048 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22049 <libm-alias-double.h>.
22050 (llrint): Define using libm_alias_double.
22051 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22052 <libm-alias-double.h>.
22053 (llround): Define using libm_alias_double.
22054 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22055 <libm-alias-double.h>.
22056 (llround): Define using libm_alias_double.
22057 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22058 <libm-alias-double.h>.
22059 (lround): Define using libm_alias_double.
22060 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22061 <libm-alias-double.h>.
22062 (copysign): Define using libm_alias_double.
22063 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22064 <libm-alias-double.h>.
22065 (llrint): Define using libm_alias_double.
22066 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22067 <libm-alias-double.h>.
22068 (llround): Define using libm_alias_double.
22069 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22070 <libm-alias-double.h>.
22071 (lrint): Define using libm_alias_double.
22072 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22073 <libm-alias-double.h>.
22074 (lround): Define using libm_alias_double.
22075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22076 <libm-alias-double.h>.
22077 (copysign): Define using libm_alias_double.
22078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22079 <libm-alias-double.h>.
22080 (llrint): Define using libm_alias_double.
22081 (lrint): Likewise.
22082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22083 <libm-alias-double.h>.
22084 (llround): Define using libm_alias_double.
22085 (lround): Likewise.
22086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22087 <libm-alias-double.h>.
22088 (logb): Define using libm_alias_double.
22089 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22090 <libm-alias-double.h>.
22091 (copysign): Define using libm_alias_double.
22092 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22093 <libm-alias-double.h>.
22094 (llrint): Define using libm_alias_double.
22095 (lrint): Likewise.
22096 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22097 <libm-alias-double.h>.
22098 (llround): Define using libm_alias_double.
22099 (lround): Likewise.
22100 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22101 <libm-alias-double.h>.
22102 (llround): Define using libm_alias_double.
22103 (lround): Likewise.
22104 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22105 <libm-alias-double.h>.
22106 (copysign): Define using libm_alias_double.
22107 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22108 <libm-alias-double.h>.
22109 (llrint): Define using libm_alias_double.
22110 (lrint): Likewise.
22111 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22112 <libm-alias-double.h>.
22113 (llround): Define using libm_alias_double.
22114 (lround): Likewise.
22115 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22116 <libm-alias-double.h>.
22117 (llrint): Define using libm_alias_double.
22118 (lrint): Likewise.
22119 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22120 <libm-alias-double.h>.
22121 (llround): Define using libm_alias_double.
22122 (lround): Likewise.
22123
22124 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22125
22126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22127 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22128 compat symbol based on llround.
22129
22130 * sysdeps/powerpc/power7/fpu/s_logb.c
22131 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22132 symbol based on __logb, not on logb.
22133 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22134 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22136 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22137
22138 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22139 (rint): Define using libm_alias_double.
22140 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22141 <libm-alias-double.h>.
22142 (modf): Define using libm_alias_double.
22143 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22144 <libm-alias-double.h>.
22145 (ceil): Define using libm_alias_double.
22146 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22147 <libm-alias-double.h>.
22148 (floor): Define using libm_alias_double.
22149 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22150 <libm-alias-double.h>.
22151 (nearbyint): Define using libm_alias_double.
22152 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22153 <libm-alias-double.h>.
22154 (rint): Define using libm_alias_double.
22155 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22156 <libm-alias-double.h>.
22157 (round): Define using libm_alias_double.
22158 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22159 <libm-alias-double.h>.
22160 (trunc): Define using libm_alias_double.
22161 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22162 <libm-alias-double.h>.
22163 (ceil): Define using libm_alias_double.
22164 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22165 Include <libm-alias-double.h>.
22166 (floor): Define using libm_alias_double.
22167 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22168 <libm-alias-double.h>.
22169 (modf): Define using libm_alias_double.
22170 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22171 Include <libm-alias-double.h>.
22172 (round): Define using libm_alias_double.
22173 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22174 Include <libm-alias-double.h>.
22175 (trunc): Define using libm_alias_double.
22176 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22177 <libm-alias-double.h>.
22178 (ceil): Define using libm_alias_double.
22179 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22180 <libm-alias-double.h>.
22181 (floor): Define using libm_alias_double.
22182 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22183 <libm-alias-double.h>.
22184 (round): Define using libm_alias_double.
22185 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22186 <libm-alias-double.h>.
22187 (trunc): Define using libm_alias_double.
22188 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22189 <libm-alias-double.h>.
22190 (ceil): Define using libm_alias_double.
22191 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22192 <libm-alias-double.h>.
22193 (floor): Define using libm_alias_double.
22194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22195 <libm-alias-double.h>.
22196 (modf): Define using libm_alias_double.
22197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22198 <libm-alias-double.h>.
22199 (round): Define using libm_alias_double.
22200 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22201 <libm-alias-double.h>.
22202 (trunc): Define using libm_alias_double.
22203 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22204 <libm-alias-double.h>.
22205 (ceil): Define using libm_alias_double.
22206 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22207 <libm-alias-double.h>.
22208 (floor): Define using libm_alias_double.
22209 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22210 <libm-alias-double.h>.
22211 (nearbyint): Define using libm_alias_double.
22212 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22213 <libm-alias-double.h>.
22214 (rint): Define using libm_alias_double.
22215 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22216 <libm-alias-double.h>.
22217 (round): Define using libm_alias_double.
22218 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22219 <libm-alias-double.h>.
22220 (trunc): Define using libm_alias_double.
22221 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22222 <libm-alias-double.h>.
22223 (ceil): Define using libm_alias_double.
22224 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22225 <libm-alias-double.h>.
22226 (floor): Define using libm_alias_double.
22227 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22228 <libm-alias-double.h>.
22229 (round): Define using libm_alias_double.
22230 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22231 <libm-alias-double.h>.
22232 (trunc): Define using libm_alias_double.
22233
22234 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22235 (fabs): Define using libm_alias_double.
22236 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22237 (fma): Define using libm_alias_double.
22238 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22239 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22240 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22241 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22242
22243 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22244
22245 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22246
22247 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22248 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22249 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22250
22251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22252 due redirect macro.
22253
22254 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22255
22256 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22257
22258 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22259
22260 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22261 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22262 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22263 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22264
22265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22266 (libm-sysdep_routines): Add s_nearbyintf-generic and
22267 s_nearbyint-generic.
22268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22269 New file.
22270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22272 Likewise.
22273 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22274 Likewise.
22275 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22276 file.
22277 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22278 Likewise.
22279
22280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22281 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22282 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22283 file.
22284 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22285 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22286 Likewise.
22287 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22288 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22289 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22290
22291 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22292 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22293 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22294 file.
22295 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22297 Likewise.
22298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22299 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22301
22302 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22303 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22304 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22305 file.
22306 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22307 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22308 Likewise.
22309 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22310 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22311 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22312
22313 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22314 (sysdep_calls): New rule.
22315 (sysdep_routines): Use sysdep_calls as base.
22316 (libm-sysdep_routines): Add generic rule for symbols shared with
22317 libc. Add s_copysign-generic and s_copysign-generic objects.
22318 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22319 New file.
22320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22321 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22322 Likewise.
22323 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22324 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22325 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22326
22327 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22328
22329 [BZ #22519]
22330 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22331 the list of locales to be built for testing.
22332 * localedata/is_IS.UTF-8.in: New file.
22333 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22334 on iso14651_t1.
22335
22336 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22337
22338 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22339 <libm-alias-float.h>.
22340 (fabsf): Define using libm_alias_float.
22341
22342 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22343
22344 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22345
22346 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22347
22348 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22349 <libm-alias-float.h>.
22350 (fabsf): Define using libm_alias_float.
22351 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22352 <libm-alias-float.h>.
22353 (lrintf): Define using libm_alias_float.
22354 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22355 <libm-alias-float.h>.
22356 (rintf): Define using libm_alias_float.
22357
22358 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22359 <libm-alias-double.h>.
22360 (fabs): Define using libm_alias_double.
22361 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22362 <libm-alias-double.h>.
22363 (lrint): Define using libm_alias_double.
22364 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22365 <libm-alias-double.h>.
22366 (rint): Define using libm_alias_double.
22367
22368 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22369 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22370 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22371 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22372 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22373 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22374 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22375 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22376 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22377 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22378 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22379 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22380 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22381 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22382 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22383 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22384 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22385 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22386 s_atan_template.c.
22387 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22388 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22389 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22390 s_ceil_template.c.
22391 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22392 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22393 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22394 s_cos_template.c.
22395 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22396 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22397 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22398 s_expm1_template.c.
22399 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22400 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22401 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22402 s_fabs_template.c.
22403 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22404 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22405 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22406 s_floor_template.c.
22407 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22408 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22409 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22410 s_frexp_template.c.
22411 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22412 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22413 s_lrint_template.c.
22414 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22415 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22416 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22417 s_modf_template.c.
22418 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22419 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22420 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22421 s_nearbyint_template.c.
22422 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22423 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22424 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22425 s_remquo_template.c.
22426 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22427 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22428 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22429 s_rint_template.c.
22430 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22431 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22432 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22433 s_sin_template.c.
22434 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22435 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22436 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22437 s_sincos_template.c.
22438 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22439 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22440 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22441 s_tan_template.c.
22442 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22443 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22444 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22445 s_tanh_template.c.
22446 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22447 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22448 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22449 s_trunc_template.c.
22450 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22451 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22452 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22453 s_atan.c instead of including s_atan.c.
22454 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22455 s_atanf.c instead of including s_atanf.c.
22456 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22457 s_atanl.c instead of including s_atanl.c.
22458 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22459 instead of s_atan.c.
22460 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22461 instead of s_atanf.c.
22462 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22463 instead of s_atanl.c.
22464
22465 * scripts/update-copyrights: Do not handle intl/plural.c
22466 specially.
22467
22468 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22469
22470 [BZ #22432]
22471 * configure.ac (BISON): Require to be present.
22472 * configure: Regenerated.
22473 * intl/Makefile (generated): Add plural.c.
22474 [$(BISON) != no]: Make code unconditional.
22475 (plural.c): Change rule to $(objpfx)plural.c.
22476 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22477 * intl/plural.c: Remove.
22478 * manual/install.texi (Tools for Compilation): Document bison as
22479 required.
22480 * INSTALL: Regenerated.
22481
22482 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22483
22484 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22485 <libm-alias-double.h>.
22486 (llrint): Define using libm_alias_double.
22487 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22488 <libm-alias-float.h>.
22489 (llrintf): Define using libm_alias_float.
22490 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22491 <libm-alias-ldouble.h>.
22492 (llrintl): Define using libm_alias_ldouble.
22493
22494 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22495 declare_mgen_alias instead of weak_alias.
22496 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22497 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22498 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22499
22500 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22501
22502 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22503 Add add_n-generic.
22504 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22505 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22506 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22507
22508 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22509 Add submul_1-generic.
22510 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22511 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22512 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22513
22514 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22515 Add addmul_1-generic.
22516 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22517 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22518 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22519
22520 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22521 Add sub_n-generic.
22522 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22523 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22524 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22525
22526 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22527 Add mul_1-generic.
22528 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22529 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22530 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22531
22532 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22533
22534 According to CLDR, collation rules for Serbian and Bosnian
22535 should be the same as for Croatian.
22536
22537 [BZ #22534]
22538 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22539 and to the list of locales to be built for testing.
22540 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22541 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22542 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22543 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22544
22545 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22546
22547 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22548 to make test case pass.
22549 * localedata/hr_HR.UTF-8.in: Add more test strings.
22550
22551 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22552
22553 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22554
22555 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22556
22557 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22558 the list of locales to built for testing.
22559 * localedata/hr_HR.UTF-8.in: New file.
22560
22561 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22562
22563 [BZ #10580]
22564 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22565 iso14651_t1.
22566 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22567 CLDR (except use ligatures for the digraphs, CLDR does not use
22568 the ligatures), add first_workday, some fixes in the date and time
22569 formats.
22570 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22571 for Đ and đ.
22572 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22573 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22574 Add int_p_cs_precedes and int_n_cs_precedes.
22575 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22576 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22577 LC_MONETARY now).
22578 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22579 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22580 name_miss.
22581 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22582 and lang_lib. Change postal_fmt.
22583
22584 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22585
22586 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22587 <setjmp.h>.
22588 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22589 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22590 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22591 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22592 * sysdeps/generic/setjmpP.h: New file.
22593 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22594 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22595 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22596 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22597 Add jmp_buf-ssp.sym.
22598 (tests): Add tst-saved_mask-1.
22599
22600 2017-11-30 Arjun Shankar <arjun@redhat.com>
22601
22602 [BZ #22375]
22603 CVE-2017-17426
22604 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22605 instead of request2size.
22606
22607 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22608
22609 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22610 (__lllrint): Remove alias.
22611 (lllrint): Likewise.
22612 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22613 (__lllrintf): Likewise.
22614 (lllrintf): Likewise.
22615
22616 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22617 <libm-alias-float.h>.
22618 (copysignf): Define using libm_alias_float.
22619 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22620 <libm-alias-float.h>.
22621 (fabsf): Define using libm_alias_float.
22622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22623 Include <libm-alias-float.h>.
22624 (copysignf): Define using libm_alias_float.
22625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22626 <libm-alias-float.h>.
22627 (fabsf): Define using libm_alias_float.
22628 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22629 <libm-alias-float.h>.
22630 (fdimf): Define using libm_alias_float.
22631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22632 <libm-alias-float.h>.
22633 (fmaf): Define using libm_alias_float.
22634 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22635 <libm-alias-float.h>.
22636 (llrintf): Define using libm_alias_float.
22637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22638 Include <libm-alias-float.h>.
22639 (nearbyintf): Define using libm_alias_float.
22640 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22641 <libm-alias-float.h>.
22642 (rintf): Define using libm_alias_float.
22643 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22644 <libm-alias-float.h>.
22645 (llrintf): Define using libm_alias_float.
22646 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22647 <libm-alias-float.h>.
22648 (lrintf): Define using libm_alias_float.
22649 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22650 <libm-alias-float.h>.
22651 (nearbyintf): Define using libm_alias_float.
22652 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22653 <libm-alias-float.h>.
22654 (rintf): Define using libm_alias_float.
22655 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22656 <libm-alias-float.h>.
22657 (ceilf): Define using libm_alias_float.
22658 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22659 <libm-alias-float.h>.
22660 (floorf): Define using libm_alias_float.
22661 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22662 <libm-alias-float.h>.
22663 (fmaf): Define using libm_alias_float.
22664 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22665 <libm-alias-float.h>.
22666 (lrintf): Define using libm_alias_float.
22667 (llrintf): Likewise.
22668 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22669 <libm-alias-float.h>.
22670 (nearbyintf): Define using libm_alias_float.
22671 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22672 <libm-alias-float.h>.
22673 (rintf): Define using libm_alias_float.
22674 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22675 <libm-alias-float.h>.
22676 (truncf): Define using libm_alias_float.
22677 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22678 <libm-alias-float.h>.
22679 (copysignf): Define using libm_alias_float.
22680 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22681 <libm-alias-float.h>.
22682 (fabsf): Define using libm_alias_float.
22683 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22684 <libm-alias-float.h>.
22685 (lrintf): Define using libm_alias_float.
22686 (llrintf): Likewise.
22687 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22688 <libm-alias-float.h>.
22689 (nearbyintf): Define using libm_alias_float.
22690 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22691 <libm-alias-float.h>.
22692 (rintf): Define using libm_alias_float.
22693
22694 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22695
22696 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22697 <libm-alias-double.h>.
22698 (copysign): Define using libm_alias_double.
22699 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22700 <libm-alias-double.h>.
22701 (fabs): Define using libm_alias_double.
22702 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22703 Include <libm-alias-double.h>.
22704 (copysign): Define using libm_alias_double.
22705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22706 <libm-alias-double.h>.
22707 (fabs): Define using libm_alias_double.
22708 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22709 <libm-alias-double.h>.
22710 (fdim): Define using libm_alias_double.
22711 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22712 <libm-alias-double.h>.
22713 (fma): Define using libm_alias_double.
22714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22715 <libm-alias-double.h>.
22716 (llrint): Define using libm_alias_double.
22717 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22718 Include <libm-alias-double.h>.
22719 (nearbyint): Define using libm_alias_double.
22720 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22721 <libm-alias-double.h>.
22722 (rint): Define using libm_alias_double.
22723 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22724 <libm-alias-double.h>.
22725 (fabs): Define using libm_alias_double.
22726 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22727 <libm-alias-double.h>.
22728 (llrint): Define using libm_alias_double.
22729 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22730 <libm-alias-double.h>.
22731 (nearbyint): Define using libm_alias_double.
22732 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22733 <libm-alias-double.h>.
22734 (rint): Define using libm_alias_double.
22735 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22736 <libm-alias-double.h>.
22737 (ceil): Define using libm_alias_double.
22738 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22739 <libm-alias-double.h>.
22740 (floor): Define using libm_alias_double.
22741 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22742 <libm-alias-double.h>.
22743 (fma): Define using libm_alias_double.
22744 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
22745 <libm-alias-double.h>.
22746 (lrint): Define using libm_alias_double.
22747 (llrint): Likewise.
22748 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
22749 <libm-alias-double.h>.
22750 (nearbyint): Define using libm_alias_double.
22751 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
22752 <libm-alias-double.h>.
22753 (rint): Define using libm_alias_double.
22754 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
22755 <libm-alias-double.h>.
22756 (trunc): Define using libm_alias_double.
22757 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
22758 <libm-alias-double.h>.
22759 (copysign): Define using libm_alias_double.
22760 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
22761 <libm-alias-double.h>.
22762 (fabs): Define using libm_alias_double.
22763 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
22764 <libm-alias-double.h>.
22765 (lrint): Define using libm_alias_double.
22766 (llrint): Likewise.
22767 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
22768 <libm-alias-double.h>.
22769 (nearbyint): Define using libm_alias_double.
22770 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
22771 <libm-alias-double.h>.
22772 (rint): Define using libm_alias_double.
22773
22774 [BZ #22229]
22775 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22776 <math_ldbl_opt.h>.
22777 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22778
22779 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22780 SPARC --disable-multi-arch glibc variants.
22781
22782 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
22783 <libm-alias-float.h>.
22784 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22785 if [SHARED].
22786 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
22787 <libm-alias-float.h>.
22788 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22789 if [SHARED].
22790 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
22791 <libm-alias-float.h>.
22792 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22793 if [SHARED].
22794 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
22795 <libm-alias-float.h>.
22796 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22797 if [SHARED].
22798 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
22799 <libm-alias-float.h>.
22800 (exp2f): Define using libm_alias_float, or libm_alias_float_other
22801 if [SHARED].
22802 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
22803 <libm-alias-float.h>.
22804 (ceilf): Define using libm_alias_float.
22805 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
22806 <libm-alias-float.h>.
22807 (floorf): Define using libm_alias_float.
22808 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
22809 <libm-alias-float.h>.
22810 (fmaf): Define using libm_alias_float.
22811 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
22812 <libm-alias-float.h>.
22813 (nearbyintf): Define using libm_alias_float.
22814 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
22815 <libm-alias-float.h>.
22816 (rintf): Define using libm_alias_float.
22817 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
22818 <libm-alias-float.h>.
22819 (truncf): Define using libm_alias_float.
22820 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
22821 (copysignf): Define using libm_alias_float.
22822 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
22823 (cosf): Define using libm_alias_float.
22824 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
22825 (fabsf): Define using libm_alias_float.
22826 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
22827 (fmaxf): Define using libm_alias_float.
22828 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
22829 (fminf): Define using libm_alias_float.
22830 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
22831 (llrintf): Define using libm_alias_float.
22832 [!__ILP32__] (lrintf): Likewise.
22833 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
22834 (sincosf): Define using libm_alias_float.
22835 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
22836 (sinf): Define using libm_alias_float.
22837 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
22838 (lrintf): Define using libm_alias_float.
22839
22840 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
22841 <libm-alias-double.h>.
22842 (atan): Define using libm_alias_double.
22843 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
22844 <libm-alias-double.h>.
22845 (ceil): Define using libm_alias_double.
22846 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
22847 <libm-alias-double.h>.
22848 (floor): Define using libm_alias_double.
22849 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
22850 <libm-alias-double.h>.
22851 (fma): Define using libm_alias_double.
22852 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
22853 <libm-alias-double.h>.
22854 (nearbyint): Define using libm_alias_double.
22855 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
22856 <libm-alias-double.h>.
22857 (rint): Define using libm_alias_double.
22858 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
22859 <libm-alias-double.h>.
22860 (sin): Define using libm_alias_double.
22861 (cos): Likewise.
22862 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
22863 <libm-alias-double.h>.
22864 (tan): Define using libm_alias_double.
22865 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
22866 <libm-alias-double.h>.
22867 (trunc): Define using libm_alias_double.
22868 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
22869 (copysign): Define using libm_alias_double.
22870 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
22871 (fabs): Define using libm_alias_double.
22872 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
22873 (fmax): Define using libm_alias_double.
22874 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
22875 (fmin): Define using libm_alias_double.
22876 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
22877 (llrint): Define using libm_alias_double.
22878 [!__ILP32__] (lrint): Likewise.
22879 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
22880 (lrint): Define using libm_alias_double.
22881
22882 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22883
22884 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22885 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
22886 objects.
22887 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
22888 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
22889 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
22890 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
22891 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
22892 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22893
22894 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22895 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
22896 objects.
22897 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
22898 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
22899 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
22900 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
22901 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
22902 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22903
22904 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
22905 (libm-sysdep_routines): Add s_nearbyint-generic and
22906 s_nearbyintf-generic objects.
22907 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
22908 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
22909 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
22910 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
22911 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
22912 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
22913
22914 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22915 Add s_finitef-generic and s_finite-generic objects.
22916 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
22917 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
22918 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
22919 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
22920 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
22921 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
22922
22923 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22924 Add s_isinff-generic and s_isinf-generic objects.
22925 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
22926 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
22927 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
22928 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
22929 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
22930 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22931
22932 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
22933 Add s_isnanf-generic and s_isnan-generic objects.
22934 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
22935 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
22936 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
22937 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
22938 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
22939 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22940
22941 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
22942 macro.
22943 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
22944 rule.
22945 (sysdep_routines): Use sysdep_calls as base.
22946 (libm-sysdep_routines): Add generic rule for symbols shared with
22947 libc. Add s_signbit-generic and s_signbitf-generic objects.
22948 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
22949 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
22950 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
22951 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
22952 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
22953 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22954
22955 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22956
22957 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
22958 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
22959 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
22960 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
22961 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
22962 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
22963 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
22964 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
22965 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
22966 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
22967 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
22968 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
22969 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
22970 libm_alias_float_r.
22971 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
22972 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
22973 (logf): Likewise.
22974 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
22975 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
22976 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
22977 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
22978 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
22979 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
22980 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
22981 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
22982 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
22983 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
22984 libm_alias_float.
22985 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
22986 (cosf): Likewise.
22987 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
22988 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
22989 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
22990 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
22991 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
22992 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
22993 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
22994 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
22995 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
22996 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
22997 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
22998 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
22999 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23000 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23001 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23002 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23003 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23004 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23005 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23006 libm_alias_float.
23007 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23008 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23009 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23010 * sysdeps/ia64/fpu/w_lgammaf_main.c
23011 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23012 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23013
23014 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23015 Alexandre Oliva <aoliva@redhat.com>
23016
23017 [BZ #17750]
23018 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23019 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23020 accents sorting.
23021 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23022 sorting.
23023 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23024 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23025 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23026 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23027 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23028 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23029 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23030 instead of “ifdef DIACRIT_BACKWARD”.
23031
23032 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23033
23034 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23035 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23036 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23037 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23038 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23039 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23040 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23041 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23042 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23043 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23044 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23045 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23046 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23047 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23048 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23049 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23050 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23051 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23053 ($(have-as-vis3) == yes): Remove conditional.
23054 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23055 Likewise.
23056 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23057 file.
23058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23059 file.
23060 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23061 file.
23062 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23063 file.
23064 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23065 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23066 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23067 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23068 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23069 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23070 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23071 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23072
23073 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23074
23075 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23076 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23077 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23078 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23079 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23080 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23081 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23082 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23083 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23084 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23085 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23086 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23087 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23088 libm_alias_double_r.
23089 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23090 (log): Likewise.
23091 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23092 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23093 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23094 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23095 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23096 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23097 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23098 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23099 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23100 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23101 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23102 libm_alias_double.
23103 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23104 (cos): Likewise.
23105 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23106 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23107 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23108 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23109 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23110 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23111 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23112 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23113 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23114 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23115 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23116 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23117 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23118 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23119 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23120 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23121 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23122 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23123 libm_alias_double.
23124 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23125 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23126 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23127 * sysdeps/ia64/fpu/w_lgamma_main.c
23128 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23129 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23130
23131 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23132
23133 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23134 address of $global$ into %dp register earlier. Use pc-relative
23135 instruction sequence for PIC case.
23136
23137 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23138
23139 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23140 (asinhf): Define using libm_alias_float.
23141 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23142 (atanf): Define using libm_alias_float.
23143 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23144 (cbrtf): Define using libm_alias_float.
23145 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23146 (ceilf): Define using libm_alias_float.
23147 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23148 (copysignf): Define using libm_alias_float.
23149 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23150 (expm1f): Define using libm_alias_float.
23151 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23152 (fabsf): Define using libm_alias_float.
23153 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23154 (floorf): Define using libm_alias_float.
23155 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23156 (fmaxf): Define using libm_alias_float.
23157 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23158 (fminf): Define using libm_alias_float.
23159 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23160 (frexpf): Define using libm_alias_float.
23161 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23162 (llrintf): Define using libm_alias_float.
23163 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23164 (logbf): Define using libm_alias_float.
23165 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23166 (lrintf): Define using libm_alias_float.
23167 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23168 (nearbyintf): Define using libm_alias_float.
23169 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23170 (remquof): Define using libm_alias_float.
23171 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23172 (rintf): Define using libm_alias_float.
23173 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23174 (truncf): Define using libm_alias_float.
23175 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23176 <libm-alias-float.h>.
23177 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23178 if [SHARED].
23179 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23180 <libm-alias-float.h>.
23181 (expf): Define using libm_alias_float, or libm_alias_float_other
23182 if [SHARED].
23183 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23184 <libm-alias-float.h>.
23185 (log2f): Define using libm_alias_float, or libm_alias_float_other
23186 if [SHARED].
23187 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23188 <libm-alias-float.h>.
23189 (logf): Define using libm_alias_float, or libm_alias_float_other
23190 if [SHARED].
23191 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23192 <libm-alias-float.h>.
23193 (powf): Define using libm_alias_float, or libm_alias_float_other
23194 if [SHARED].
23195 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23196 <libm-alias-float.h>.
23197 (cosf): Define using libm_alias_float.
23198 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23199 <libm-alias-float.h>.
23200 (sincosf): Define using libm_alias_float.
23201 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23202 <libm-alias-float.h>.
23203 (sinf): Define using libm_alias_float.
23204 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23205 (fmaxf): Define using libm_alias_float.
23206 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23207 (fminf): Define using libm_alias_float.
23208 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23209 <libm-alias-float.h>.
23210 (fmaf): Define using libm_alias_float.
23211
23212 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23213 (asinh): Define using libm_alias_double.
23214 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23215 (atan): Define using libm_alias_double.
23216 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23217 (cbrt): Define using libm_alias_double.
23218 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23219 (ceil): Define using libm_alias_double.
23220 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23221 (copysign): Define using libm_alias_double.
23222 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23223 (expm1): Define using libm_alias_double.
23224 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23225 (fabs): Define using libm_alias_double.
23226 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23227 (fdim): Define using libm_alias_double.
23228 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23229 (floor): Define using libm_alias_double.
23230 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23231 (fmax): Define using libm_alias_double.
23232 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23233 (fmin): Define using libm_alias_double.
23234 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23235 (frexp): Define using libm_alias_double.
23236 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23237 (llrint): Define using libm_alias_double.
23238 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23239 (logb): Define using libm_alias_double.
23240 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23241 (lrint): Define using libm_alias_double.
23242 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23243 (nearbyint): Define using libm_alias_double.
23244 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23245 (remquo): Define using libm_alias_double.
23246 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23247 (rint): Define using libm_alias_double.
23248 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23249 (trunc): Define using libm_alias_double.
23250 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23251 (fmax): Define using libm_alias_double.
23252 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23253 (fmin): Define using libm_alias_double.
23254 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23255 (fma): Define using libm_alias_double.
23256
23257 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23258
23259 [BZ #22370]
23260 * elf/dl-hwcaps.c (ROUND): Removed.
23261 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23262 and ELF_NOTE_NEXT_OFFSET.
23263 * elf/dl-load.c (ROUND): Removed.
23264 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23265 * elf/readelflib.c (ROUND): Removed.
23266 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23267 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23268 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23269 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23270
23271 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23272
23273 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23274 [!__fmaf] (fmaf): Define using libm_alias_float.
23275
23276 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23277 [!__fma] (fma): Define using libm_alias_double.
23278 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23279
23280 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23281
23282 [BZ #22336]
23283 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23284 and implement the collation rules for cs from CLDR on top of that.
23285 * Makefile: Add cs_CZ.UTF-8 to test-input.
23286 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23287
23288 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23289
23290 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23291
23292 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23293 Icarus Sparry <icarus.w.sparry@intel.com>
23294
23295 * benchtests/Makefile:Add BENCHSET to allow subsets of
23296 benchmarks to be run.
23297 * benchtests/README: Add documentation for: Running subsets of
23298 benchmarks.
23299
23300 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23301
23302 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23303 range of tests names.
23304
23305 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23306 result from property and remove "max", min" and "mean" from
23307 required properties based on benchtests/bench-skeleton.c.
23308
23309 2017-11-28 Florian Weimer <fweimer@redhat.com>
23310
23311 [BZ #20826]
23312 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23313 due to Internet requirement.
23314 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23315 tst-getaddrinfo5.
23316 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23317
23318 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23319
23320 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23321 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23322 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23323 (sysdep_routines): Add memset-ultra1.
23324 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23325 file.
23326 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23327 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23328 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23329 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23330 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23331 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23332 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23333 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23334
23335 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23336 file.
23337 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23338 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23339 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23340 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23341 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23342 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23343 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23344 macro.
23345 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23346 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23347 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23348 (sysdep_routines): Add memcpy-ultra1.
23349 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23350 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23351
23352 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23353
23354 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23355 (cfloat_versions): Take function argument without trailing 'f'.
23356 Call libm_alias_float_other.
23357 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23358 * sysdeps/alpha/fpu/cargf.c: Likewise.
23359 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23360 * sysdeps/alpha/fpu/conjf.c: Likewise.
23361 * sysdeps/alpha/fpu/crealf.c: Likewise.
23362 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23363 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23364 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23365 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23366 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23367 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23368 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23369 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23370 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23371 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23372 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23373 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23374 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23375 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23376 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23377 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23378 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23379 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23380 (clog10f): Use libm_alias_float_other.
23381 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23382 (ceilf): Define using libm_alias_float.
23383 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23384 (copysignf): Define using libm_alias_float.
23385 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23386 (fabsf): Define using libm_alias_float.
23387 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23388 (floorf): Define using libm_alias_float.
23389 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23390 (fmaxf): Define using libm_alias_float.
23391 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23392 (fminf): Define using libm_alias_float.
23393 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23394 (lrintf): Define using libm_alias_float.
23395 (llrintf): Likewise.
23396 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23397 (lroundf): Define using libm_alias_float.
23398 (llroundf): Likewise.
23399 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23400 (rintf): Define using libm_alias_float.
23401 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23402 (truncf): Define using libm_alias_float.
23403
23404 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23405 (ceilf): Define using libm_alias_float.
23406 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23407 (floorf): Define using libm_alias_float.
23408 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23409 (fmaf): Define using libm_alias_float.
23410 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23411 (fmaxf): Define using libm_alias_float.
23412 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23413 (fminf): Define using libm_alias_float.
23414 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23415 (llrintf): Define using libm_alias_float.
23416 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23417 (llroundf): Define using libm_alias_float.
23418 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23419 (lrintf): Define using libm_alias_float.
23420 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23421 (lroundf): Define using libm_alias_float.
23422 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23423 <libm-alias-float.h>.
23424 (nearbyintf): Define using libm_alias_float.
23425 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23426 (rintf): Define using libm_alias_float.
23427 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23428 (roundf): Define using libm_alias_float.
23429 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23430 (truncf): Define using libm_alias_float.
23431
23432 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23433 (ceil): Define using libm_alias_double.
23434 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23435 (copysign): Define using libm_alias_double.
23436 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23437 (fabs): Define using libm_alias_double.
23438 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23439 (floor): Define using libm_alias_double.
23440 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23441 (fmax): Define using libm_alias_double.
23442 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23443 (fmin): Define using libm_alias_double.
23444 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23445 (lrint): Define using libm_alias_double.
23446 (llrint): Likewise.
23447 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23448 (lround): Define using libm_alias_double.
23449 (llround): Likewise.
23450 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23451 (rint): Define using libm_alias_double.
23452 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23453 (trunc): Define using libm_alias_double.
23454
23455 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23456 (libm_alias_double_r): Add semicolon after weak_alias call.
23457
23458 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23459
23460 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23461 (ceil): Define using libm_alias_double.
23462 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23463 (floor): Define using libm_alias_double.
23464 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23465 (fma): Define using libm_alias_double.
23466 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23467 (fmax): Define using libm_alias_double.
23468 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23469 (fmin): Define using libm_alias_double.
23470 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23471 (llrint): Define using libm_alias_double.
23472 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23473 (llround): Define using libm_alias_double.
23474 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23475 (lrint): Define using libm_alias_double.
23476 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23477 (lround): Define using libm_alias_double.
23478 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23479 (nearbyint): Define using libm_alias_double.
23480 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23481 (rint): Define using libm_alias_double.
23482 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23483 (round): Define using libm_alias_double.
23484 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23485 (trunc): Define using libm_alias_double.
23486
23487 2017-11-27 Florian Weimer <fweimer@redhat.com>
23488
23489 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23490 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23491 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23492 (tests): Add tst-mlock2.
23493 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23494 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23495 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23496 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23497 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23498 for mlock. Document mlock2.
23499
23500 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23501
23502 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23503 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23504 Likewise.
23505 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23506 Likewise.
23507 * sysdeps/x86/Makeconfig: New file.
23508 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23509 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23510 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23511 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23512 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23513 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23514 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23515 Likewise.
23516 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23517 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23518 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23519 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23520 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23521 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23522 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23523 * manual/math.texi (Mathematics): Document support for _Float64x.
23524 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23525 * stdlib/Versions (GLIBC_2.27): Likewise.
23526 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23527 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23528 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23529 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23530 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23531 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23532 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23533 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23534 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23535 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23536 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23537 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23539 Likewise.
23540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23541 Likewise.
23542 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23543 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23544 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23545 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23546 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23547 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23548 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23549 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23550 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23551 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23552 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23553 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23554 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23555 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23556
23557 2017-11-27 Andreas Schwab <schwab@suse.de>
23558
23559 * elf/Makefile (dl-routines): Add dl-sort-maps.
23560 * elf/dl-sort-maps.c: New file.
23561 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23562 (_dl_sort_maps): Declare.
23563 * elf/dl-fini.c (_dl_sort_fini): Remove.
23564 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23565 * elf/dl-close.c (_dl_close_worker): Likewise.
23566 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23567 open-coding it.
23568 * elf/dl-open.c (dl_open_worker): Likewise.
23569
23570 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23571
23572 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23573 using libm_alias_float128.
23574 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23575 Likewise.
23576 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23577 Likewise.
23578 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23579 (setpayloadsigf128): Likewise.
23580 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23581 Likewise.
23582 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23583 Likewise.
23584
23585 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23586 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23587 -mfloat128 to CFLAGS.
23588 ($(foreach
23589 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23590 Likewise.
23591 (CFLAGS-libm-test-support-float64x.c): New variable.
23592 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23593 $(f128-loader-link) to gnulib-tests.
23594
23595 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23596 (libm_alias_float128_other_r): If
23597 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23598 alias.
23599 (libm_alias_float128_r): Add semicolon after weak_alias call.
23600 * sysdeps/generic/libm-alias-ldouble.h
23601 (libm_alias_ldouble_other_r_f128): New macro.
23602 (libm_alias_ldouble_other_r_f64x): Likewise.
23603 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23604 and libm_alias_ldouble_other_r_f64x.
23605 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23606 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23607 (libm_alias_ldouble_other_r_f128): New macro.
23608 (libm_alias_ldouble_other_r_f64x): Likewise.
23609 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23610 and libm_alias_ldouble_other_r_f64x.
23611
23612 * stdlib/strfroml.c: Always include <stdlib.h>.
23613 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23614 undefine as macro and define as weak alias.
23615 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23616 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23617 <stdlib.h>.
23618 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23619 Define and later undefine as macro and define as weak alias.
23620
23621 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23622 Define and later undefine as macro. Define as weak alias if
23623 [!USE_WIDE_CHAR].
23624 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23625 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23626 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23627 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23628 Define and later undefine as macro. Define as weak alias if
23629 [!USE_WIDE_CHAR].
23630 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23631 Define and later undefine as macro. Define as weak alias if
23632 [USE_WIDE_CHAR].
23633 * sysdeps/ieee754/float128/strtof128_l.c
23634 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23635 Define and later undefine as macro. Define as weak alias if
23636 [!USE_WIDE_CHAR].
23637 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23638 Define and later undefine as macro. Define as weak alias if
23639 [USE_WIDE_CHAR].
23640 * sysdeps/ieee754/ldbl-128/strtold_l.c
23641 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23642 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23643 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23644 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23645 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23646 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23647 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23648 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23649 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23650 * sysdeps/ieee754/ldbl-96/strtold_l.c
23651 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23652 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23653 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23654 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23655
23656 * math/test-float64x.h: New file.
23657 * math/Makefile (type-float64x-yes): New variable.
23658 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23659
23660 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23661 function-like macro.
23662 (min_of_type_): Likewise.
23663 (min_of_type_l): Likewise.
23664 (min_of_type_f128): Likewise.
23665 (min_of_type): Pass () as last argument of __MATH_TG.
23666
23667 * stdlib/tst-strtod-round-skeleton.c
23668 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23669 headers.
23670
23671 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23672 for combinations of long double with _Float64 and _Float64x.
23673
23674 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23675 (__DECL_SIMD_cosf32): Likewise.
23676 (__DECL_SIMD_cosf64): Likewise.
23677 (__DECL_SIMD_cosf32x): Likewise.
23678 (__DECL_SIMD_cosf64x): Likewise.
23679 (__DECL_SIMD_cosf128x): Likewise.
23680 (__DECL_SIMD_sinf16): Likewise.
23681 (__DECL_SIMD_sinf32): Likewise.
23682 (__DECL_SIMD_sinf64): Likewise.
23683 (__DECL_SIMD_sinf32x): Likewise.
23684 (__DECL_SIMD_sinf64x): Likewise.
23685 (__DECL_SIMD_sinf128x): Likewise.
23686 (__DECL_SIMD_sincosf16): Likewise.
23687 (__DECL_SIMD_sincosf32): Likewise.
23688 (__DECL_SIMD_sincosf64): Likewise.
23689 (__DECL_SIMD_sincosf32x): Likewise.
23690 (__DECL_SIMD_sincosf64x): Likewise.
23691 (__DECL_SIMD_sincosf128x): Likewise.
23692 (__DECL_SIMD_logf16): Likewise.
23693 (__DECL_SIMD_logf32): Likewise.
23694 (__DECL_SIMD_logf64): Likewise.
23695 (__DECL_SIMD_logf32x): Likewise.
23696 (__DECL_SIMD_logf64x): Likewise.
23697 (__DECL_SIMD_logf128x): Likewise.
23698 (__DECL_SIMD_expf16): Likewise.
23699 (__DECL_SIMD_expf32): Likewise.
23700 (__DECL_SIMD_expf64): Likewise.
23701 (__DECL_SIMD_expf32x): Likewise.
23702 (__DECL_SIMD_expf64x): Likewise.
23703 (__DECL_SIMD_expf128x): Likewise.
23704 (__DECL_SIMD_powf16): Likewise.
23705 (__DECL_SIMD_powf32): Likewise.
23706 (__DECL_SIMD_powf64): Likewise.
23707 (__DECL_SIMD_powf32x): Likewise.
23708 (__DECL_SIMD_powf64x): Likewise.
23709 (__DECL_SIMD_powf128x): Likewise.
23710
23711 * stdlib/Versions (libc): Move entries for wcstof128 and
23712 wcstof128_l to ....
23713 * wcsmbs/Versions (libc): ... here.
23714 Include <float128-abi.h>.
23715
23716 2017-11-24 Florian Weimer <fweimer@redhat.com>
23717
23718 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23719 bits/mman-shared.h.
23720 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23721 <bits/mman-shared.h>.
23722 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23723 to ...
23724 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23725 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23726 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23727 <bits/mman-shared.h>.
23728
23729 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23730
23731 [BZ #22457]
23732 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23733 posix_memalign/free.
23734 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23735
23736 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23737
23738 [BZ #22469]
23739 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23740 and implement the collation rules for pl from CLDR on top of that.
23741 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23742 of locales to be built for testing.
23743 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
23744
23745 2017-11-23 Joseph Myers <joseph@codesourcery.com>
23746
23747 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
23748 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
23749 libm_alias_ldouble_other.
23750 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
23751 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
23752 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
23753 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
23754 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
23755 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
23756 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
23757 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
23758 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
23759 libm_alias_ldouble_r.
23760 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
23761 libm_alias_ldouble_other.
23762 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
23763 (log10l): Likewise.
23764 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
23765 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
23766 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
23767 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
23768 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
23769 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
23770 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
23771 (atan2l): Likewise.
23772 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
23773 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
23774 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
23775 libm_alias_ldouble.
23776 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
23777 (cosl): Likewise.
23778 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
23779 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
23780 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
23781 (expl): Likewise.
23782 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
23783 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
23784 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
23785 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
23786 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
23787 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
23788 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
23789 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
23790 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
23791 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
23792 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
23793 libm_alias_ldouble.
23794 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
23795 libm_alias_ldouble_other.
23796 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
23797 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
23798 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
23799 libm_alias_ldouble.
23800 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
23801 libm_alias_ldouble_other.
23802 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
23803 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
23804 * sysdeps/ia64/fpu/w_lgammal_main.c
23805 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
23806 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
23807
23808 2017-11-23 Florian Weimer <fweimer@redhat.com>
23809
23810 * malloc/malloc.c (tcache_thread_shutdown): Rename from
23811 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
23812 alike. Remove freeres marker.
23813 * malloc/arena.c (arena_thread_freeres): Call
23814 tcache_thread_shutdown.
23815
23816 2017-11-23 Florian Weimer <fweimer@redhat.com>
23817
23818 [BZ #22459]
23819 Export nscd hash function as __nss_hash.
23820 * include/nss.h (__nss_hash): Declare.
23821 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
23822 symbol.
23823 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
23824 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
23825 of __nscd_hash.
23826 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
23827 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
23828 * nss/Makefiles (routines): Add nss_hash.
23829 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
23830 * nss/nss_hash.c: Rename from nis/nis_hash.c.
23831 (__nss_hash): Rename from __nis_hash. Define hidden alias.
23832 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
23833
23834 2017-11-23 Florian Weimer <fweimer@redhat.com>
23835
23836 [BZ #22478]
23837 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
23838 Return error code, not -1.
23839 * signal/tst-sigwait-eintr.c: New file.
23840 * signal/Makefile (tests): Add tst-sigwait-eintr.
23841
23842 2017-11-23 Florian Weimer <fweimer@redhat.com>
23843
23844 Linux: Add memfd_create system call wrapper
23845 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
23846 tst-memfd_create.
23847 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
23848 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
23849 [__USE_GNU] (memfd_create): Declare.
23850 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
23851 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
23852 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
23853 * sysdeps/unix/sysv/linux/**.abilist: Update.
23854 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
23855
23856 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23857
23858 * localedata/gen-locale.sh: Fix typo in variable name.
23859
23860 * resolv/res_debug.c (p_secstodate): Condition definition on
23861 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
23862 directly as __p_secstodate, and as a compat symbol. Do not use
23863 libresolv_hidden_def.
23864 * resolv/resolv.h (p_secstodate): Remove macro and function
23865 declaration.
23866 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
23867 using p_secstodate.
23868 * include/resolv.h (__p_secstodate): Do not use
23869 libresolv_hidden_proto.
23870 * resolv/Makefile (tests): Move tst-p_secstodate to ....
23871 (tests-internal): ... here.
23872 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
23873 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
23874 and declare and use __p_secstodate and use compat_symbol_reference
23875 in that case.
23876 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
23877 implementation returning 77.
23878
23879 [BZ #22463]
23880 * resolv/res_debug.c: Include <libc-diag.h>.
23881 (p_secstodate): Assert time_t at least as wide as u_long. On
23882 overflow, use integer seconds since the epoch as output, or use
23883 "<overflow>" as output and set errno to EOVERFLOW if integer
23884 seconds since the epoch would be 14 or more characters.
23885 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
23886 for sprintf call.
23887 * resolv/tst-p_secstodate.c: New file.
23888 * resolv/Makefile (tests): Add tst-p_secstodate.
23889 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
23890
23891 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
23892 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
23893 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
23894
23895 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
23896
23897 * posix/regcomp.c (init_word_char): Add comments.
23898
23899 2017-11-22 Joseph Myers <joseph@codesourcery.com>
23900
23901 [BZ #22447]
23902 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
23903 strlen to compute length of ut_user and set trailing NUL byte of
23904 result explicitly.
23905
23906 2017-11-21 Mike FABIAN <mfabian@redhat.com>
23907
23908 [BZ #15537]
23909 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
23910 using “copy "iso14651_t1"” and then implementing the
23911 collation rules for lv from CLDR on top of that.
23912 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
23913 of locales to be built for testing.
23914 * lv_LV.UTF-8.in: New file with test data to test the Latvian
23915 sorting.
23916
23917 2017-11-21 Joseph Myers <joseph@codesourcery.com>
23918
23919 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
23920 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
23921 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
23922 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
23923 [__USE_MISC] (MADV_HWPOISON): New macro.
23924 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
23925
23926 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23927
23928 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
23929 -Wmissing-braces on GCC 4.9.
23930
23931 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23932
23933 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
23934 * sysdeps/s390/s390-32/start.S (_start): Likewise
23935 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
23936 (thread_start): Likewise.
23937 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
23938 (thread_start): Likewise.
23939 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
23940 (__makecontext_ret): Likewise.
23941 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
23942 (__makecontext_ret): Likewise.
23943
23944 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
23945
23946 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
23947 __wcschrnul): Remove attribute_hidden.
23948
23949 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
23950
23951 regex: don't assume uint64_t or uint32_t
23952 This avoids -Werror=overflow errors for 32-bit systems in
23953 the 64-bit case. Problem reported by Joseph Myers in:
23954 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
23955 Also, when this code is used in Gnulib it ports to platforms
23956 that lack uint64_t and uint32_t. The C standard doesn't guarantee
23957 them, and on some 32-bit compilers there is no uint64_t.
23958 Problem reported by Gianluigi Tiesi in:
23959 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
23960 * posix/regcomp.c (init_word_char): Don't assume that the types
23961 uint64_t and uint32_t exist. Adapted from Gnulib patch
23962 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
23963 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
23964
23965 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
23966
23967 * sysdeps/aarch64/memset-reg.h: New file.
23968 * sysdeps/aarch64/memset.S: Use it.
23969 (__memset): Rename to MEMSET macro.
23970 [ZVA_MACRO]: Use zva_macro.
23971 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
23972 Add memset_generic and memset_falkor.
23973 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
23974 (__libc_ifunc_impl_list): Add memset ifuncs.
23975 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
23976 local variable zva_size.
23977 * sysdeps/aarch64/multiarch/memset.c: New file.
23978 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
23979 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
23980 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
23981 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
23982 (DCZID_DZP_MASK): New macro.
23983 (DCZID_BS_MASK): Likewise.
23984 (init_cpu_features): Read and set zva_size.
23985 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
23986 (struct cpu_features): New member zva_size.
23987
23988 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
23989 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
23990 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
23991
23992 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
23993 backwards. Fix timing computation.
23994 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
23995 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
23996 on memset by N at a time. Fix timing computation.
23997
23998 2017-11-20 Florian Weimer <fweimer@redhat.com>
23999
24000 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24001 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24002
24003 2017-11-19 Florian Weimer <fweimer@redhat.com>
24004
24005 manual: Document mprotect
24006 * manual/memory.texi (Memory Protection): New section.
24007 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24008 documentation of PROT_* flags and reference the Memory Protection
24009 section instead.
24010
24011 2017-11-19 Florian Weimer <fweimer@redhat.com>
24012
24013 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24014 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24015 (Scatter-Gather): ... to here. Remove misleading comment.
24016
24017 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24018
24019 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24020 style.
24021
24022 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24023 when /proc/<pid>/setgroups does not exist.
24024
24025 2017-11-18 Florian Weimer <fweimer@redhat.com>
24026
24027 * sysdeps/unix/sysv/linux/tst-ttyname.c
24028 (become_root_in_mount_ns): Remove.
24029 (do_in_chroot_1): Call support_enter_mount_namespace.
24030 (do_in_chroot_2): Likewise.
24031 (do_test): Call support_become_root early.
24032
24033 2017-11-18 Florian Weimer <fweimer@redhat.com>
24034
24035 * support/namespace.h (support_enter_mount_namespace): Declare.
24036 * support/support_enter_mount_namespace.c: New file.
24037 * support/Makefile (libsupport-routines): Add
24038 support_enter_mount_namespace.
24039
24040 2017-11-18 Florian Weimer <fweimer@redhat.com>
24041
24042 * support/temp_file.c (support_create_temp_directory): Use
24043 test_dir and do not rely on the presence of the XXXXXX suffix.
24044 * support/temp_file.h (support_create_temp_directory): Update
24045 comment.
24046 * support/tst-xreadlink.c (do_test): Adjust.
24047 * support/support_chroot.c (support_chroot_create): Likewise.
24048
24049 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24050
24051 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24052 macro.
24053 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24054 htm-no-suspend.
24055
24056 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24057
24058 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24059 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24060 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24061 (ceill): Define using libm_alias_ldouble.
24062 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24063 <libm-alias-ldouble.h>.
24064 (copysignl): Define using libm_alias_ldouble.
24065 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24066 (fabsl): Define using libm_alias_ldouble.
24067 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24068 (floorl): Define using libm_alias_ldouble.
24069 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24070 (fmaxl): Define using libm_alias_ldouble.
24071 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24072 (fminl): Define using libm_alias_ldouble.
24073 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24074 (llrintl): Define using libm_alias_ldouble.
24075 (lrintl): Likewise.
24076 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24077 <libm-alias-ldouble.h>.
24078 (nearbyintl): Define using libm_alias_ldouble.
24079 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24080 (truncl): Define using libm_alias_ldouble.
24081 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24082 <libm-alias-ldouble.h>.
24083 (lrintl): Define using libm_alias_ldouble.
24084
24085 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24086 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24087 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24088 (asinhl): Define using libm_alias_ldouble.
24089 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24090 (atanl): Define using libm_alias_ldouble.
24091 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24092 (cbrtl): Define using libm_alias_ldouble.
24093 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24094 (ceill): Define using libm_alias_ldouble.
24095 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24096 (copysignl): Define using libm_alias_ldouble.
24097 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24098 (fabsl): Define using libm_alias_ldouble.
24099 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24100 (floorl): Define using libm_alias_ldouble.
24101 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24102 (fmaxl): Define using libm_alias_ldouble.
24103 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24104 (fminl): Define using libm_alias_ldouble.
24105 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24106 (frexpl): Define using libm_alias_ldouble.
24107 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24108 (llrintl): Define using libm_alias_ldouble.
24109 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24110 (logbl): Define using libm_alias_ldouble.
24111 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24112 (lrintl): Define using libm_alias_ldouble.
24113 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24114 (nearbyintl): Define using libm_alias_ldouble.
24115 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24116 (nextafterl): Define using libm_alias_ldouble.
24117 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24118 (remquol): Define using libm_alias_ldouble.
24119 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24120 (rintl): Define using libm_alias_ldouble.
24121 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24122 (truncl): Define using libm_alias_ldouble.
24123 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24124 (fmaxl): Define using libm_alias_ldouble.
24125 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24126 (fminl): Define using libm_alias_ldouble.
24127
24128 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24129 to C syntax instead of availability and properties of types.
24130 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24131 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24132 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24133 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24134 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24135 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24136
24137 2017-11-17 Florian Weimer <fweimer@redhat.com>
24138
24139 support_become_root: Enable file creation in namespaces.
24140 * support/support_become_root.c (setup_mapping): New function.
24141 (support_become_root): Call it.
24142
24143 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24144
24145 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24146 macro.
24147
24148 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24149
24150 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24151 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24152
24153 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24154
24155 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24156
24157 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24158 version to 4.14.
24159
24160 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24161
24162 * INSTALL: Fix botched up regeneration.
24163
24164 * NEWS: Update sourceare link to https.
24165 * configure.ac: Likewise.
24166 * crypt/md5test-giant.c: Likewise.
24167 * dlfcn/bug-atexit1.c: Likewise.
24168 * dlfcn/bug-atexit2.c: Likewise.
24169 * localedata/README: Likewise.
24170 * malloc/tst-mallocfork.c: Likewise.
24171 * manual/install.texi: Likewise.
24172 * nptl/tst-pthread-getattr.c: Likewise.
24173 * stdio-common/tst-fgets.c: Likewise.
24174 * stdio-common/tst-fwrite.c: Likewise.
24175 * sunrpc/Makefile: Likewise.
24176 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24177 * wcsmbs/tst-mbrtowc2.c: Likewise.
24178 * configure: Regenerate.
24179 * INSTALL: Regenerate.
24180
24181 2017-11-15 Martin Sebor <msebor@redhat.com>
24182
24183 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24184 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24185 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24186
24187 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24188
24189 [BZ #22145]
24190 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24191 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24192
24193 [BZ #22145]
24194 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24195 Defer is_pty check until end of the function.
24196 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24197
24198 [BZ #22145]
24199 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24200 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24201 (ttyname): Likewise.
24202 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24203 (__ttyname_r): Likewise.
24204
24205 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24206 int to bool.
24207
24208 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24209
24210 * manual/terminal.texi (Is It a Terminal):
24211 Mention ENODEV for ttyname and ttyname_r.
24212
24213 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24214
24215 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24216 constant and macro.
24217
24218 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24219 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24220 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24221 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24222 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24223 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24224
24225 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24226
24227 * signal/sigrelse.c (sigrelse): Optimize implementation.
24228
24229 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24230 (__sigpause): Rely on __sigsuspend to implement single thread
24231 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24232
24233 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24234
24235 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24236 kernel version to 4.14.
24237
24238 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24239
24240 [BZ #22442]
24241 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24242 Check if ifname is too long.
24243
24244 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24245
24246 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24247
24248 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24249
24250 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24251 was accidentally lost.
24252
24253 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24254
24255 * localedata/locales/az_IR: Add standard copyright header.
24256
24257 2017-11-15 Florian Weimer <fweimer@redhat.com>
24258
24259 [BZ #22439]
24260 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24261 not just the top one. Output a new "subheaps" statistic.
24262
24263 2017-11-15 Florian Weimer <fweimer@redhat.com>
24264
24265 [BZ #22408]
24266 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24267 under the per-arena lock.
24268 * malloc/Makefile (tests): Add tst-malloc_info.
24269 (tst-malloc_info): Link with libpthread.
24270 * malloc/tst-malloc_info.c: New file.
24271
24272 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24273
24274 [BZ #21660]
24275 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24276 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24277 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24278 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24279 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24280 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24281 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24282 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24283 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24284 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24285 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24286 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24287 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24288 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24289 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24290 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24291 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24292 (__floating_type): Likewise.
24293 (__real_integer_type): Likewise.
24294 (__complex_integer_type): Likewise.
24295 (__expr_is_real): Likewise.
24296 (__tgmath_real_type_sub): Likewise.
24297 (__tgmath_real_type): Likewise.
24298 (__tgmath_complex_type_sub): Likewise.
24299 (__tgmath_complex_type): Likewise.
24300 (__TGMATH_F128): Likewise.
24301 (__TGMATH_CF128): Likewise.
24302 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24303 new macros.
24304 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24305 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24306 Likewise.
24307 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24308 Likewise.
24309 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24310 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24311 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24312 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24313 Likewise.
24314 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24315 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24316 Likewise.
24317 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24318 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24319 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24320 Likewise.
24321 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24322 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24323 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24324 (cimag): Likewise.
24325 (creal): Likewise.
24326
24327 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24328
24329 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24330 for stpncpy calls for GCC 8.
24331 (test_strncat): Disable -Wstringop-truncation warning for strncat
24332 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24333 strncat call for GCC 7.
24334 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24335 calls for GCC 8.
24336 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24337 trailing NUL.
24338
24339 * string/bug-strncat1.c: Include <libc-diag.h>.
24340 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24341
24342 2017-11-13 Claude Paroz <claude@2xlibre.net>
24343
24344 [BZ #22387]
24345 * localedata/locales/aa_DJ: Improved readibility by replacing
24346 <Uxxxx> sequences in the ASCII printable range by their ASCII
24347 character equivalents.
24348 * localedata/locales/aa_ER: Likewise.
24349 * localedata/locales/aa_ER@saaho: Likewise.
24350 * localedata/locales/aa_ET: Likewise.
24351 * localedata/locales/af_ZA: Likewise.
24352 * localedata/locales/agr_PE: Likewise.
24353 * localedata/locales/ak_GH: Likewise.
24354 * localedata/locales/am_ET: Likewise.
24355 * localedata/locales/anp_IN: Likewise.
24356 * localedata/locales/ar_AE: Likewise.
24357 * localedata/locales/ar_BH: Likewise.
24358 * localedata/locales/ar_DZ: Likewise.
24359 * localedata/locales/ar_EG: Likewise.
24360 * localedata/locales/ar_IN: Likewise.
24361 * localedata/locales/ar_IQ: Likewise.
24362 * localedata/locales/ar_JO: Likewise.
24363 * localedata/locales/ar_KW: Likewise.
24364 * localedata/locales/ar_LB: Likewise.
24365 * localedata/locales/ar_LY: Likewise.
24366 * localedata/locales/ar_MA: Likewise.
24367 * localedata/locales/ar_OM: Likewise.
24368 * localedata/locales/ar_QA: Likewise.
24369 * localedata/locales/ar_SA: Likewise.
24370 * localedata/locales/ar_SD: Likewise.
24371 * localedata/locales/ar_SS: Likewise.
24372 * localedata/locales/ar_SY: Likewise.
24373 * localedata/locales/ar_TN: Likewise.
24374 * localedata/locales/ar_YE: Likewise.
24375 * localedata/locales/as_IN: Likewise.
24376 * localedata/locales/ast_ES: Likewise.
24377 * localedata/locales/ayc_PE: Likewise.
24378 * localedata/locales/az_AZ: Likewise.
24379 * localedata/locales/az_IR: Likewise.
24380 * localedata/locales/be_BY: Likewise.
24381 * localedata/locales/be_BY@latin: Likewise.
24382 * localedata/locales/bem_ZM: Likewise.
24383 * localedata/locales/ber_DZ: Likewise.
24384 * localedata/locales/ber_MA: Likewise.
24385 * localedata/locales/bg_BG: Likewise.
24386 * localedata/locales/bhb_IN: Likewise.
24387 * localedata/locales/bho_IN: Likewise.
24388 * localedata/locales/bi_VU: Likewise.
24389 * localedata/locales/bn_BD: Likewise.
24390 * localedata/locales/bn_IN: Likewise.
24391 * localedata/locales/bo_CN: Likewise.
24392 * localedata/locales/bo_IN: Likewise.
24393 * localedata/locales/br_FR: Likewise.
24394 * localedata/locales/brx_IN: Likewise.
24395 * localedata/locales/bs_BA: Likewise.
24396 * localedata/locales/byn_ER: Likewise.
24397 * localedata/locales/ca_AD: Likewise.
24398 * localedata/locales/ca_ES: Likewise.
24399 * localedata/locales/ca_FR: Likewise.
24400 * localedata/locales/ca_IT: Likewise.
24401 * localedata/locales/ce_RU: Likewise.
24402 * localedata/locales/chr_US: Likewise.
24403 * localedata/locales/cmn_TW: Likewise.
24404 * localedata/locales/crh_UA: Likewise.
24405 * localedata/locales/cs_CZ: Likewise.
24406 * localedata/locales/csb_PL: Likewise.
24407 * localedata/locales/cv_RU: Likewise.
24408 * localedata/locales/cy_GB: Likewise.
24409 * localedata/locales/da_DK: Likewise.
24410 * localedata/locales/de_AT: Likewise.
24411 * localedata/locales/de_BE: Likewise.
24412 * localedata/locales/de_CH: Likewise.
24413 * localedata/locales/de_DE: Likewise.
24414 * localedata/locales/de_IT: Likewise.
24415 * localedata/locales/de_LI: Likewise.
24416 * localedata/locales/de_LU: Likewise.
24417 * localedata/locales/doi_IN: Likewise.
24418 * localedata/locales/dv_MV: Likewise.
24419 * localedata/locales/dz_BT: Likewise.
24420 * localedata/locales/el_CY: Likewise.
24421 * localedata/locales/el_GR: Likewise.
24422 * localedata/locales/en_AG: Likewise.
24423 * localedata/locales/en_AU: Likewise.
24424 * localedata/locales/en_BW: Likewise.
24425 * localedata/locales/en_CA: Likewise.
24426 * localedata/locales/en_DK: Likewise.
24427 * localedata/locales/en_GB: Likewise.
24428 * localedata/locales/en_HK: Likewise.
24429 * localedata/locales/en_IE: Likewise.
24430 * localedata/locales/en_IL: Likewise.
24431 * localedata/locales/en_IN: Likewise.
24432 * localedata/locales/en_NG: Likewise.
24433 * localedata/locales/en_NZ: Likewise.
24434 * localedata/locales/en_PH: Likewise.
24435 * localedata/locales/en_SG: Likewise.
24436 * localedata/locales/en_US: Likewise.
24437 * localedata/locales/en_ZA: Likewise.
24438 * localedata/locales/en_ZM: Likewise.
24439 * localedata/locales/en_ZW: Likewise.
24440 * localedata/locales/eo: Likewise.
24441 * localedata/locales/es_AR: Likewise.
24442 * localedata/locales/es_BO: Likewise.
24443 * localedata/locales/es_CL: Likewise.
24444 * localedata/locales/es_CO: Likewise.
24445 * localedata/locales/es_CR: Likewise.
24446 * localedata/locales/es_CU: Likewise.
24447 * localedata/locales/es_DO: Likewise.
24448 * localedata/locales/es_EC: Likewise.
24449 * localedata/locales/es_ES: Likewise.
24450 * localedata/locales/es_GT: Likewise.
24451 * localedata/locales/es_HN: Likewise.
24452 * localedata/locales/es_MX: Likewise.
24453 * localedata/locales/es_NI: Likewise.
24454 * localedata/locales/es_PA: Likewise.
24455 * localedata/locales/es_PE: Likewise.
24456 * localedata/locales/es_PR: Likewise.
24457 * localedata/locales/es_PY: Likewise.
24458 * localedata/locales/es_SV: Likewise.
24459 * localedata/locales/es_US: Likewise.
24460 * localedata/locales/es_UY: Likewise.
24461 * localedata/locales/es_VE: Likewise.
24462 * localedata/locales/et_EE: Likewise.
24463 * localedata/locales/eu_ES: Likewise.
24464 * localedata/locales/eu_ES@euro: Likewise.
24465 * localedata/locales/fa_IR: Likewise.
24466 * localedata/locales/ff_SN: Likewise.
24467 * localedata/locales/fi_FI: Likewise.
24468 * localedata/locales/fil_PH: Likewise.
24469 * localedata/locales/fo_FO: Likewise.
24470 * localedata/locales/fr_BE: Likewise.
24471 * localedata/locales/fr_CA: Likewise.
24472 * localedata/locales/fr_CH: Likewise.
24473 * localedata/locales/fr_FR: Likewise.
24474 * localedata/locales/fr_LU: Likewise.
24475 * localedata/locales/fur_IT: Likewise.
24476 * localedata/locales/fy_DE: Likewise.
24477 * localedata/locales/fy_NL: Likewise.
24478 * localedata/locales/ga_IE: Likewise.
24479 * localedata/locales/gd_GB: Likewise.
24480 * localedata/locales/gez_ER: Likewise.
24481 * localedata/locales/gez_ET: Likewise.
24482 * localedata/locales/gl_ES: Likewise.
24483 * localedata/locales/gu_IN: Likewise.
24484 * localedata/locales/gv_GB: Likewise.
24485 * localedata/locales/ha_NG: Likewise.
24486 * localedata/locales/hak_TW: Likewise.
24487 * localedata/locales/he_IL: Likewise.
24488 * localedata/locales/hi_IN: Likewise.
24489 * localedata/locales/hif_FJ: Likewise.
24490 * localedata/locales/hne_IN: Likewise.
24491 * localedata/locales/hr_HR: Likewise.
24492 * localedata/locales/hsb_DE: Likewise.
24493 * localedata/locales/ht_HT: Likewise.
24494 * localedata/locales/hu_HU: Likewise.
24495 * localedata/locales/hy_AM: Likewise.
24496 * localedata/locales/i18n: Likewise.
24497 * localedata/locales/ia_FR: Likewise.
24498 * localedata/locales/id_ID: Likewise.
24499 * localedata/locales/ig_NG: Likewise.
24500 * localedata/locales/ik_CA: Likewise.
24501 * localedata/locales/is_IS: Likewise.
24502 * localedata/locales/it_CH: Likewise.
24503 * localedata/locales/it_IT: Likewise.
24504 * localedata/locales/iu_CA: Likewise.
24505 * localedata/locales/ja_JP: Likewise.
24506 * localedata/locales/ka_GE: Likewise.
24507 * localedata/locales/kk_KZ: Likewise.
24508 * localedata/locales/kl_GL: Likewise.
24509 * localedata/locales/kn_IN: Likewise.
24510 * localedata/locales/ko_KR: Likewise.
24511 * localedata/locales/kok_IN: Likewise.
24512 * localedata/locales/ks_IN: Likewise.
24513 * localedata/locales/ks_IN@devanagari: Likewise.
24514 * localedata/locales/ku_TR: Likewise.
24515 * localedata/locales/kw_GB: Likewise.
24516 * localedata/locales/ky_KG: Likewise.
24517 * localedata/locales/lb_LU: Likewise.
24518 * localedata/locales/lg_UG: Likewise.
24519 * localedata/locales/li_BE: Likewise.
24520 * localedata/locales/li_NL: Likewise.
24521 * localedata/locales/lij_IT: Likewise.
24522 * localedata/locales/ln_CD: Likewise.
24523 * localedata/locales/lo_LA: Likewise.
24524 * localedata/locales/lt_LT: Likewise.
24525 * localedata/locales/lv_LV: Likewise.
24526 * localedata/locales/lzh_TW: Likewise.
24527 * localedata/locales/mag_IN: Likewise.
24528 * localedata/locales/mai_IN: Likewise.
24529 * localedata/locales/mg_MG: Likewise.
24530 * localedata/locales/mhr_RU: Likewise.
24531 * localedata/locales/mi_NZ: Likewise.
24532 * localedata/locales/mk_MK: Likewise.
24533 * localedata/locales/ml_IN: Likewise.
24534 * localedata/locales/mn_MN: Likewise.
24535 * localedata/locales/mni_IN: Likewise.
24536 * localedata/locales/mr_IN: Likewise.
24537 * localedata/locales/ms_MY: Likewise.
24538 * localedata/locales/mt_MT: Likewise.
24539 * localedata/locales/my_MM: Likewise.
24540 * localedata/locales/nan_TW: Likewise.
24541 * localedata/locales/nan_TW@latin: Likewise.
24542 * localedata/locales/nb_NO: Likewise.
24543 * localedata/locales/nds_DE: Likewise.
24544 * localedata/locales/nds_NL: Likewise.
24545 * localedata/locales/ne_NP: Likewise.
24546 * localedata/locales/nhn_MX: Likewise.
24547 * localedata/locales/niu_NU: Likewise.
24548 * localedata/locales/niu_NZ: Likewise.
24549 * localedata/locales/nl_AW: Likewise.
24550 * localedata/locales/nl_BE: Likewise.
24551 * localedata/locales/nl_NL: Likewise.
24552 * localedata/locales/nn_NO: Likewise.
24553 * localedata/locales/nr_ZA: Likewise.
24554 * localedata/locales/nso_ZA: Likewise.
24555 * localedata/locales/oc_FR: Likewise.
24556 * localedata/locales/om_ET: Likewise.
24557 * localedata/locales/om_KE: Likewise.
24558 * localedata/locales/or_IN: Likewise.
24559 * localedata/locales/os_RU: Likewise.
24560 * localedata/locales/pa_IN: Likewise.
24561 * localedata/locales/pa_PK: Likewise.
24562 * localedata/locales/pap_AW: Likewise.
24563 * localedata/locales/pap_CW: Likewise.
24564 * localedata/locales/pl_PL: Likewise.
24565 * localedata/locales/ps_AF: Likewise.
24566 * localedata/locales/pt_BR: Likewise.
24567 * localedata/locales/pt_PT: Likewise.
24568 * localedata/locales/quz_PE: Likewise.
24569 * localedata/locales/raj_IN: Likewise.
24570 * localedata/locales/ro_RO: Likewise.
24571 * localedata/locales/ru_RU: Likewise.
24572 * localedata/locales/ru_UA: Likewise.
24573 * localedata/locales/rw_RW: Likewise.
24574 * localedata/locales/sa_IN: Likewise.
24575 * localedata/locales/sat_IN: Likewise.
24576 * localedata/locales/sc_IT: Likewise.
24577 * localedata/locales/sd_IN: Likewise.
24578 * localedata/locales/sd_IN@devanagari: Likewise.
24579 * localedata/locales/se_NO: Likewise.
24580 * localedata/locales/sgs_LT: Likewise.
24581 * localedata/locales/shs_CA: Likewise.
24582 * localedata/locales/si_LK: Likewise.
24583 * localedata/locales/sid_ET: Likewise.
24584 * localedata/locales/sk_SK: Likewise.
24585 * localedata/locales/sl_SI: Likewise.
24586 * localedata/locales/sm_WS: Likewise.
24587 * localedata/locales/so_DJ: Likewise.
24588 * localedata/locales/so_ET: Likewise.
24589 * localedata/locales/so_KE: Likewise.
24590 * localedata/locales/so_SO: Likewise.
24591 * localedata/locales/sq_AL: Likewise.
24592 * localedata/locales/sq_MK: Likewise.
24593 * localedata/locales/sr_ME: Likewise.
24594 * localedata/locales/sr_RS: Likewise.
24595 * localedata/locales/sr_RS@latin: Likewise.
24596 * localedata/locales/ss_ZA: Likewise.
24597 * localedata/locales/st_ZA: Likewise.
24598 * localedata/locales/sv_FI: Likewise.
24599 * localedata/locales/sv_SE: Likewise.
24600 * localedata/locales/sw_KE: Likewise.
24601 * localedata/locales/sw_TZ: Likewise.
24602 * localedata/locales/szl_PL: Likewise.
24603 * localedata/locales/ta_IN: Likewise.
24604 * localedata/locales/ta_LK: Likewise.
24605 * localedata/locales/tcy_IN: Likewise.
24606 * localedata/locales/te_IN: Likewise.
24607 * localedata/locales/tg_TJ: Likewise.
24608 * localedata/locales/th_TH: Likewise.
24609 * localedata/locales/the_NP: Likewise.
24610 * localedata/locales/ti_ER: Likewise.
24611 * localedata/locales/ti_ET: Likewise.
24612 * localedata/locales/tig_ER: Likewise.
24613 * localedata/locales/tk_TM: Likewise.
24614 * localedata/locales/tl_PH: Likewise.
24615 * localedata/locales/tn_ZA: Likewise.
24616 * localedata/locales/to_TO: Likewise.
24617 * localedata/locales/tpi_PG: Likewise.
24618 * localedata/locales/tr_CY: Likewise.
24619 * localedata/locales/tr_TR: Likewise.
24620 * localedata/locales/ts_ZA: Likewise.
24621 * localedata/locales/tt_RU: Likewise.
24622 * localedata/locales/tt_RU@iqtelif: Likewise.
24623 * localedata/locales/ug_CN: Likewise.
24624 * localedata/locales/uk_UA: Likewise.
24625 * localedata/locales/unm_US: Likewise.
24626 * localedata/locales/ur_IN: Likewise.
24627 * localedata/locales/ur_PK: Likewise.
24628 * localedata/locales/uz_UZ: Likewise.
24629 * localedata/locales/uz_UZ@cyrillic: Likewise.
24630 * localedata/locales/ve_ZA: Likewise.
24631 * localedata/locales/vi_VN: Likewise.
24632 * localedata/locales/wa_BE: Likewise.
24633 * localedata/locales/wae_CH: Likewise.
24634 * localedata/locales/wal_ET: Likewise.
24635 * localedata/locales/wo_SN: Likewise.
24636 * localedata/locales/xh_ZA: Likewise.
24637 * localedata/locales/yi_US: Likewise.
24638 * localedata/locales/yo_NG: Likewise.
24639 * localedata/locales/yue_HK: Likewise.
24640 * localedata/locales/yuw_PG: Likewise.
24641 * localedata/locales/zh_CN: Likewise.
24642 * localedata/locales/zh_HK: Likewise.
24643 * localedata/locales/zh_SG: Likewise.
24644 * localedata/locales/zh_TW: Likewise.
24645 * localedata/locales/zu_ZA: Likewise.
24646
24647 2017-11-13 Florian Weimer <fweimer@redhat.com>
24648
24649 * support/next_to_fault.h, support/next_to_fault.c: New files.
24650 * support/Makefile (libsupport-routines): Add next_to_fault.
24651 * resolv/tst-inet_pton.c (struct next_to_fault)
24652 (next_to_fault_allocate, next_to_fault_free): Remove.
24653 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24654
24655 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24656
24657 * elf/dl-support.c: Include <dl-procruntime.c>.
24658 * include/link.h: Include <link_map.h>.
24659 * sysdeps/generic/dl-procruntime.c: New file.
24660 * sysdeps/generic/link_map.h: Likewise.
24661 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24662 the writable ld.so namespace.
24663
24664 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24665
24666 timezone: pacify GCC -Wstringop-truncation
24667 Problem reported by Martin Sebor in:
24668 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24669 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24670
24671 2017-11-12 Florian Weimer <fweimer@redhat.com>
24672
24673 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24674 tst-xreadlink.
24675 (tests): Add tst-xreadlink.
24676 * support/support.h (xstrndup): Declare.
24677 * support/xunistd.h (xunlink, xreadlink): Declare.
24678 * support/temp_file.h (support_create_temp_directory): Declare.
24679 * support/temp_file.c (support_create_temp_directory): New function.
24680 * support/support_chroot.c (support_chroot_create): Use it.
24681 * support/xreadlink.c: New file.
24682 * support/xstrndup.c: Likewise.
24683 * support/xunlink.c: Likewise.
24684 * support/tst-xreadlink.c: Likewise.
24685
24686 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24687
24688 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24689
24690 2017-11-11 Florian Weimer <fweimer@redhat.com>
24691
24692 [BZ #22409]
24693 [BZ #22412]
24694 * resolv/res_comp.c (printable_string, binary_hnok)
24695 (binary_leading_dash): New functions.
24696 (res_hnok): Reimplement using these functions and ns_name_pton.
24697 (res_ownok): Likewise.
24698 (res_mailok): Reimplement using printable_string, ns_name_pton and
24699 binary_hnok.
24700 (res_dnok): Reimplement using printable_string and ns_name_pton.
24701 * resolv/tst-res_hnok.c (tests): Add additional tests.
24702 (LETTERDIGITS, PRINTABLE): Define.
24703 (do_test): Adjust one_char results.
24704
24705 2017-11-11 Florian Weimer <fweimer@redhat.com>
24706
24707 [BZ #22413]
24708 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24709 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24710
24711 2017-11-11 Florian Weimer <fweimer@redhat.com>
24712
24713 * resolv/tst-ns_name_pton.c: New file.
24714 * resolv/Makefile (tests): Add tst-ns_name_pton.
24715 (tst-ns_name_pton): Link against libresolv.
24716
24717 2017-11-11 Florian Weimer <fweimer@redhat.com>
24718
24719 * resolv/tst-res_hnok.c: New file.
24720 * resolv/Makefile (tests): Add tst-res_hnok.
24721 (tst-res_hnok): Link against libresolv.
24722
24723 2017-11-11 Florian Weimer <fweimer@redhat.com>
24724
24725 * resolv/tst-resolv-network.c: Use test framework instead explicit
24726 main function.
24727
24728 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24729
24730 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24731 <jmp_buf-macros.h>.
24732 [!_ISOMAC] (STR_HELPER): New.
24733 [!_ISOMAC] (STR): Likewise.
24734 [!_ISOMAC] (TEST_SIZE): Likewise.
24735 [!_ISOMAC] (TEST_ALIGN): Likewise.
24736 [!_ISOMAC] (TEST_OFFSET): Likewise.
24737 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24738 field offsets of jmp_buf as well as sigjmp_buf.
24739 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24740 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24741 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24742 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
24743 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
24744 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
24745 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
24746 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
24747 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
24748 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
24749 Likewise.
24750 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
24751 Likewise.
24752 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
24753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
24754 Likewise.
24755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
24756 Likewise.
24757 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
24758 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
24759 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
24760 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
24761 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
24762 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
24763 Likewise.
24764 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
24765 Likewise.
24766 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24767 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
24768 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
24769
24770 2017-11-07 Joseph Myers <joseph@codesourcery.com>
24771
24772 * include/float.h
24773 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24774 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
24775 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24776 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
24777 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24778 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
24779 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24780 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
24781 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24782 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
24783 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24784 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
24785 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24786 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
24787 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24788 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
24789 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24790 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
24791 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24792 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
24793 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24794 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
24795 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24796 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
24797 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24798 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
24799 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24800 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
24801 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24802 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
24803 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24804 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
24805 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24806 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
24807 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24808 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
24809 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24810 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
24811 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24812 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
24813 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24814 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
24815 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24816 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
24817 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24818 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
24819 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24820 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
24821 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24822 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
24823 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24824 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
24825 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24826 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
24827 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24828 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
24829 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24830 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
24831 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24832 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
24833 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24834 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
24835 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24836 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
24837 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24838 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
24839 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24840 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
24841 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24842 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
24843 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24844 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
24845 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24846 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
24847 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24848 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
24849 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24850 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
24851 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24852 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
24853 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24854 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
24855 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24856 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
24857 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24858 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
24859 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
24860 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
24861
24862 * stdlib/tst-strtod.h (F16): New macro.
24863 (F32): Likewise.
24864 (F64): Likewise.
24865 (F32X): Likewise.
24866 (F64X): Likewise.
24867 (F128X): Likewise.
24868 (IF_FLOAT16): Likewise.
24869 (IF_FLOAT32): Likewise.
24870 (IF_FLOAT64): Likewise.
24871 (IF_FLOAT32X): Likewise.
24872 (IF_FLOAT64X): Likewise.
24873 (IF_FLOAT128X): Likewise.
24874 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
24875 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
24876 (STRTOD_TEST_FOREACH): Likewise.
24877 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
24878 (CHOOSE_f64): Likewise.
24879 (CHOOSE_f32x): Likewise.
24880 (CHOOSE_f64x): Likewise.
24881
24882 2017-11-07 Andreas Schwab <schwab@suse.de>
24883
24884 * nptl/Makefile (tests-internal): Remove tst-typesizes.
24885
24886 2017-11-07 Mike FABIAN <mfabian@redhat.com>
24887
24888 [BZ #22403]
24889 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
24890 to be escaped.
24891 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
24892 to be escaped.
24893
24894 2017-11-07 Claude Paroz <claude@2xlibre.net>
24895
24896 [BZ #22403]
24897 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
24898 to be escaped.
24899 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
24900 to be escaped.
24901 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
24902 to be escaped.
24903
24904 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24905
24906 [BZ #22298]
24907 * nptl/allocatestack.c (allocate_stack): Check if
24908 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
24909 __PTHREAD_MUTEX_HAVE_PREV is defined.
24910 * nptl/descr.h (pthread): Likewise.
24911 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
24912 Likewise.
24913 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
24914 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
24915 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
24916 * sysdeps/nptl/bits/thread-shared-types.h
24917 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24918 defines.
24919 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
24920 of __WORDSIZE for internal layout.
24921 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
24922 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
24923 instead of __WORDSIZE whether to use an union for __spins and __list
24924 fields.
24925 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
24926 case.
24927 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
24928 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
24929 defines.
24930 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
24931 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24932 Likewise.
24933 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
24934 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24935 Likewise.
24936 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
24937 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24938 Likewise.
24939 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
24940 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24941 Likewise.
24942 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
24943 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24944 Likewise.
24945 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
24946 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24947 Likewise.
24948 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
24949 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24950 Likewise.
24951 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
24952 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24953 Likewise.
24954 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
24955 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24956 Likewise.
24957 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
24958 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24959 Likewise.
24960 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
24961 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24962 Likewise.
24963 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
24964 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24965 Likewise.
24966 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
24967 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24968 Likewise.
24969 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
24970 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
24971 Likewise.
24972
24973 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
24974 New macros.
24975 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
24976 checks for expected input type size.
24977 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
24978 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
24979 Likewise.
24980 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
24981 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
24982 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
24983 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
24984 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
24985 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
24986 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
24987 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
24988 superflous runtime assert check.
24989 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
24990 Likewise.
24991 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
24992 Likewise.
24993 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
24994 Likewise.
24995 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
24996 Likewise.
24997 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
24998 Likewise.
24999 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25000 Likewise.
25001 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25002 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25003 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25004 Likewise.
25005 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25006 Likewise.
25007 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25008 Likewise.
25009 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25010 Likewise.
25011 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25012 Likewise.
25013 * nptl/pthread_attr_setinheritsched.c
25014 (__pthread_attr_setinheritsched): Likewise.
25015 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25016 Likewise.
25017 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25018 Likewise.
25019 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25020 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25021 __old_pthread_attr_setstack): Likewise.
25022 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25023 Likewise.
25024 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25025 Likewise.
25026 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25027 Likewise.
25028 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25029 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25030 Likewise.
25031 * nptl/tst-typesizes.c: Remove file.
25032
25033 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25034 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25035 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25036 checks for internal pthread_mutex_t offsets.
25037 * sysdeps/aarch64/nptl/pthread-offsets.h
25038 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25039 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25040 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25041 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25042 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25043 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25044 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25045 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25046 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25047 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25048 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25049 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25050 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25051 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25052 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25053 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25054 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25055 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25056
25057 2017-11-07 Florian Weimer <fweimer@redhat.com>
25058
25059 * bits/mman-linux.h: Move ...
25060 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25061 comment.
25062 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25063 outdated comment.
25064
25065 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25066
25067 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25068 Redefine STRNLEN as __strnlen_power8.
25069
25070 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25071
25072 * signal/sighold.c (sighold): Optimize implementation.
25073
25074 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25075 __NR_rt_sigqueueinfo.
25076
25077 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25078 __sigtimedwait.
25079 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25080 assume __NR_rt_sigtimedwait.
25081 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25082 and add LIBC_CANCEL_HANDLED for cancellation marking.
25083 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25084
25085 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25086 (sysdeps_routines): Add memchr_noneon.
25087 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25088 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25089 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25090 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25091 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25092 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25093 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25094
25095 * sysdeps/arm/arm-ifunc.h: New file.
25096 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25097 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25098 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25099 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25100 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25101 (__memcpy_neon): Avoid create hidden alias.
25102 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25103 (__memcpy_vfp): Likewise.
25104 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25105 (sysdep_routines): Add memcpy_arm.
25106 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25107
25108 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25109
25110 [BZ #22362]
25111 * Makerules (make-link-multidir): New.
25112 * config.make.in (multidir): New.
25113 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25114 * configure: Regenerated.
25115 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25116 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25117 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25118 New target.
25119
25120 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25121
25122 [BZ #22402]
25123 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25124 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25125
25126 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25127
25128 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25129 to be escaped.
25130
25131 2017-11-04 Florian Weimer <fweimer@redhat.com>
25132
25133 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25134
25135 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25136
25137 * math/math.h [__HAVE_DISTINCT_FLOAT16
25138 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25139 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25140 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25141 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25142 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25143 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25144 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25145 (__MATH_TG_F32): New macro.
25146 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25147 (__MATH_TG_F64X): Likewise.
25148 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25149 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25150
25151 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25152
25153 * po/de.po: Update translations.
25154 * po/ru.po: Likewise.
25155
25156 2017-11-03 Florian Weimer <fweimer@redhat.com>
25157
25158 * manual/filesys.texi (Hard Links): Document linkat.
25159
25160 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25161
25162 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25163 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25164 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25165 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25166 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25167 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25168 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25169 the same as _Float128.
25170 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25171 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25172 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25173
25174 * stdlib/stdlib.h
25175 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25176 Declare.
25177 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25178 Likewise.
25179 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25180 Likewise.
25181 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25182 (strtof32x): Likewise.
25183 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25184 (strtof64x): Likewise.
25185 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25186 (strtof128x): Likewise.
25187 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25188 (strfromf16): Likewise.
25189 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25190 (strfromf32): Likewise.
25191 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25192 (strfromf64): Likewise.
25193 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25194 (strfromf32x): Likewise.
25195 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25196 (strfromf64x): Likewise.
25197 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25198 (strfromf128x): Likewise.
25199 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25200 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25201 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25202 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25203 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25204 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25205
25206 2017-11-03 Richard Henderson <rth@twiddle.net>
25207
25208 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25209
25210 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25211
25212 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25213
25214 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25215
25216 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25217 DT_TLSDESC_GOT initialization.
25218 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25219 (_dl_tlsdesc_resolve_hold): Likewise.
25220 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25221 (_dl_tlsdesc_resolve_hold): Likewise.
25222 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25223 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25224
25225 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25226
25227 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25228
25229 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25230
25231 [BZ #18572]
25232 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25233 non-lazily for R_ARM_TLS_DESC.
25234
25235 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25236
25237 [BZ #17078]
25238 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25239 R_ARM_TLS_DESC case.
25240 (elf_machine_lazy_rel): Remove the prelink check.
25241
25242 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25243
25244 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25245 DT_TLSDESC_GOT initialization.
25246 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25247 (_dl_tlsdesc_resolve_rela): Likewise.
25248 (_dl_tlsdesc_resolve_hold): Likewise.
25249 (_dl_tlsdesc_undefweak): Remove ldar.
25250 (_dl_tlsdesc_dynamic): Likewise.
25251 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25252 (_dl_tlsdesc_resolve_rela): Likewise.
25253 (_dl_tlsdesc_resolve_hold): Likewise.
25254 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25255 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25256 (_dl_tlsdesc_resolve_rela): Likewise.
25257 (_dl_tlsdesc_resolve_hold): Likewise.
25258
25259 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25260
25261 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25262 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25263
25264 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25265
25266 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25267 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25268
25269 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25270
25271 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25272 Declare.
25273 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25274 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25275 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25276 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25277 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25278 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25279 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25280 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25281 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25282 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25283 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25284
25285 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25286
25287 [BZ #22382]
25288 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25289 * localedata/locales/tpi_PG: Add standard header.
25290
25291 2017-11-02 Florian Weimer <fweimer@redhat.com>
25292
25293 test-errno-linux: quotactl can fail with EPERM in containers.
25294 * sysdeps/unix/sysv/linux/test-errno-linux.c
25295 (LIST, LIST_FORWARD): New macros.
25296 (check_error_in_list): New function.
25297 (test_wrp_rv): Accept list of permitted error codes.
25298 (test_wrp_rv2): Remove.
25299 (test_wrp): Call test_wrp_rv with list of error codes.
25300 (test_wrp2): Accept list of error codes.
25301 (do_test): Adjust. Allow EPERM for quotactl.
25302
25303 2017-11-02 Florian Weimer <fweimer@redhat.com>
25304
25305 * stdio-common/bug16.c (do_test): Use array_length.
25306 * stdio-common/errlist.c (_sys_nerr): Likewise.
25307 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25308 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25309 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25310 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25311 (do_test): Use array_length.
25312 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25313 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25314 * stdio-common/tst-printf-round.c (do_test): Likewise.
25315 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25316 (CHECK): Use array_length.
25317 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25318 * stdio-common/tstscanf.c (main): Likewise.
25319 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25320
25321 2017-11-02 Florian Weimer <fweimer@redhat.com>
25322
25323 Add array_length and array_end macros.
25324 * include/array_length.h: New file.
25325
25326 2017-11-02 Florian Weimer <fweimer@redhat.com>
25327
25328 [BZ #22332]
25329 * posix/tst-glob-tilde.c (do_noescape): New variable.
25330 (one_test): Process it.
25331 (do_test): Set do_noescape. Add unescaping test case.
25332
25333 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25334
25335 * math/complex.h
25336 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25337 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25338 with appropriate macros defined and undefined.
25339 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25340 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25341 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25342 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25343 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25344 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25345 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25346 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25347 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25348 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25349
25350 * math/complex.h
25351 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25352 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25353 that for long double. Do not condition define and undefine of
25354 _Mdouble_complex_ on [__CFLOAT128].
25355
25356 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25357
25358 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25359 of <sysdeps/generic/sysdep.h>.
25360 (ALIGNARG): Removed.
25361 (ASM_SIZE_DIRECTIVE): Likewise.
25362 (ENTRY): Likewise.
25363 (END): Likewise.
25364 (ENTRY_CHK): Likewise.
25365 (END_CHK): Likewise.
25366 (syscall_error): Likewise.
25367 (mcount): Likewise.
25368 (PSEUDO_END): Likewise.
25369 (L): Likewise.
25370 (atom_text_section): Likewise.
25371 * sysdeps/x86/sysdep.h: New file.
25372 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25373 of <sysdeps/generic/sysdep.h>.
25374 (ALIGNARG): Removed.
25375 (ASM_SIZE_DIRECTIVE): Likewise.
25376 (ENTRY): Likewise.
25377 (END): Likewise.
25378 (ENTRY_CHK): Likewise.
25379 (END_CHK): Likewise.
25380 (syscall_error): Likewise.
25381 (mcount): Likewise.
25382 (PSEUDO_END): Likewise.
25383 (L): Likewise.
25384 (atom_text_section): Likewise.
25385
25386 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25387
25388 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25389 category of LC_CTYPE set to "i18n:2012".
25390 * localedata/locales/i18n_ctype: Regenerate.
25391
25392 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25393
25394 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25395 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25396 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25397 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25398
25399 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25400 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25401 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25402 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25403
25404 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25405
25406 * math/complex.h
25407 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25408 New macro.
25409 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25410 Likewise.
25411 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25412 Likewise.
25413 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25414 (CMPLXF32X): Likewise.
25415 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25416 (CMPLXF64X): Likewise.
25417 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25418 (CMPLXF128X): Likewise.
25419
25420 * math/math.h
25421 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25422 (__MATH_EVAL_FMT2): Define to add 0.0f.
25423
25424 2017-10-31 Alan Modra <amodra@gmail.com>
25425
25426 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25427 include sysdep.h.
25428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25442 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25443 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25444 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25445 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25446 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25447 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25448 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25449 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25450 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25451 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25452 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25453 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25454 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25455 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25456 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25457 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25458 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25459 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25460 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25461 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25462 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25463 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25464 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25465 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25466 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25467 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25468 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25469 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25470 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25471 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25472 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25473 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25474 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25475 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25476 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25477 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25478 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25479 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25480 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25481 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25482 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25483 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25484 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25485 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25486 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25487 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25488 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25489 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25490 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25491 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25492 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25493 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25494 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25495 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25496 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25497
25498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25499 include sysdep.h and math_ldbl_opt.h.
25500
25501 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25502 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25503 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25505 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25507 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25511 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25513 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25514 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25515 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25516 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25517 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25523 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25524 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25527
25528 2017-10-31 Alan Modra <amodra@gmail.com>
25529
25530 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25531 string/strncase_l.c, not string/strncase.c.
25532 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25533 (libc_hidden_def): Redefine.
25534
25535 2017-10-31 Alan Modra <amodra@gmail.com>
25536
25537 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25538 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25539 (__strcasecmp): Don't define.
25540
25541 2017-10-31 Alan Modra <amodra@gmail.com>
25542
25543 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25544 IS_IN (libc).
25545 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25546 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25547 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25548
25549 2017-10-31 Alan Modra <amodra@gmail.com>
25550
25551 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25552 USE_AS_STPNCPY.
25553
25554 2017-10-31 Alan Modra <amodra@gmail.com>
25555
25556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25557 Redefine only when SHARED.
25558
25559 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25560
25561 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25562 Include <bits/math-finite.h> with appropriate macros defined and
25563 undefined.
25564 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25565 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25566 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25567 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25568 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25569
25570 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25571 [!_Mlong_double_] (_Mlong_double_): Likewise.
25572 [!_Mfloat16_] (_Mfloat16_): Likewise.
25573 [!_Mfloat32_] (_Mfloat32_): Likewise.
25574 [!_Mfloat64_] (_Mfloat64_): Likewise.
25575 [!_Mfloat128_] (_Mfloat128_): Likewise.
25576 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25577 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25578 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25579 (_Mdouble_): Define without indirection through those macros.
25580 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25581 [!_Mfloat128_] (_Mfloat128_): Likewise.
25582 [_Mlong_double_] (_Mlong_double_): Likewise.
25583 (_Mdouble_): Define without indirection through those macros.
25584 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25585 not add -D_Mlong_double_=double.
25586 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25587 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25588
25589 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25590
25591 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25592
25593 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25594
25595 * sysdeps/x86/libc-start.c: Reformat.
25596
25597 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25598
25599 [BZ #22353]
25600 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25601 (1): Renamed to ...
25602 (L(Src0)): This.
25603 (L(Src1)): New.
25604 (L(Src2)): Likewise.
25605 (L(1)): Renamed to ...
25606 (L(Src3)): This.
25607
25608 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25609
25610 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25611 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25612 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25613 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25614 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25615 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25616 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25617 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25618 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25619 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25620 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25621 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25622 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25623 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25624 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25625 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25626 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25627 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25628 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25629 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25630 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25631 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25632 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25633 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25634 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25635 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25636 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25637 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25638 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25639 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25640 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25641 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25642 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25643 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25644 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25645 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25646 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25647 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25648 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25649 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25650 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25651 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25652 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25653 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25654 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25655 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25656 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25657 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25658 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25659 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25660 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25661 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25662 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25663 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25664 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25665 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25666 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25667 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25668 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25669 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25670 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25671 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25672 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25673 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25674 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25675 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25676
25677 2017-10-30 Florian Weimer <fweimer@redhat.com>
25678
25679 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25680 always defined.
25681 * io/tst-mkdirat.c (do_test): Likewise.
25682 * io/tst-mkfifoat.c (do_test): Likewise.
25683 * io/tst-mknodat.c (do_test): Likewise.
25684 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25685 * locale/programs/locale.c (select_dirs): Likewise.
25686 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25687 * posix/bug-glob2.c (my_readdir): Likewise.
25688 * posix/tst-dir.c (main): Likewise.
25689 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25690 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25691
25692 2017-10-30 Florian Weimer <fweimer@redhat.com>
25693
25694 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25695 just __USE_GNU.
25696
25697 2017-10-30 Florian Weimer <fweimer@redhat.com>
25698
25699 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25700 Convert to support/test-driver.c.
25701 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25702 New macro parameters.
25703 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25704 * posix/tst-gnuglob.c: New file.
25705 * posix/tst-gnuglob64.c: Likewise.
25706 * posix/Makefile (tests): Add tst-gnuglob64.
25707
25708 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25709
25710 [BZ #19485]
25711 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25712 and use a better translation for March in “mon”.
25713 * localedata/locales/csb_PL: Use more ASCII to improve the
25714 readability of the source.
25715
25716 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25717
25718 [BZ #13953]
25719 * localedata/locales/km_KH: Use ASCII as much
25720 as possible for better readability of the source and
25721 remove useless comments.
25722 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25723 was commented out and apparently wrong anyway because it was
25724 using Lao characters. If Buddhist era should be used
25725 for km_KH, a native speaker should write the correct formaat
25726 for Khmer.
25727 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25728 (According to CLDR, the first weekday for Cambodia is Sunday).
25729 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25730 (These were using Lao characters which must be wrong. If we get
25731 the correct data from a native speaker, we could add it back, until
25732 then it is better not to have name_mr and name_mrs at all than
25733 having it wrong).
25734
25735 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25736
25737 * locale/loadlocale.c: Correct size of
25738 _nl_value_type_LC_<category> arrays.
25739
25740 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25741
25742 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25743 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
25744 with appropriate macros defined and undefined.
25745 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25746 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25747 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25748 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25749 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25750
25751 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
25752
25753 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
25754 "-O2 -march=i586".
25755
25756 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25757
25758 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
25759 with lowercase letters to make it agree with CLDR.
25760
25761 2017-10-27 Mike FABIAN <mfabian@redhat.com>
25762
25763 [BZ #15260]
25764 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
25765 first letters of yesstr and nostr in yesexpr and noexpr,
25766 not for the full words.
25767 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
25768 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
25769 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
25770 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
25771 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
25772 first letters of yesstr and nostr in yesexpr and noexpr,
25773 until now only English was matched in yesexpr and noexpr.
25774 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
25775 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
25776 fil but not for tl. As tl and fil are very similar, using fil
25777 is probably better than using English.
25778
25779 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
25780
25781 [BZ #21706]
25782 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
25783 in yesstr and nostr.
25784
25785 2017-10-26 Joseph Myers <joseph@codesourcery.com>
25786
25787 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25788 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
25789 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
25790 Likewise.
25791 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
25792 Likewise.
25793 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
25794 Likewise.
25795 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
25796 Likewise.
25797 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25798 (SNANF128X): Likewise.
25799
25800 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
25801 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
25802 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25803 (HUGE_VAL_F32): Likewise.
25804 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25805 (HUGE_VAL_F64): Likewise.
25806 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25807 (HUGE_VAL_F32X): Likewise.
25808 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25809 (HUGE_VAL_F64X): Likewise.
25810 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25811 (HUGE_VAL_F128X): Likewise.
25812
25813 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25814
25815 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
25816 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
25817 for the br_FR locale.
25818
25819 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
25820
25821 [BZ #21706]
25822 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
25823
25824 2017-10-25 Carlos O'Donell <carlos@redhat.com>
25825
25826 * locale/programs/record-status.h: Define globals, and function
25827 prototypes. Move function bodies...
25828 * locale/programs/record-status.c: ... to here. New file.
25829 * iconv/Makefile (iconv_prog-modules): Add record-status.
25830 * locale/Makefile (lib-modules): Likewise.
25831 * iconv/iconv_prog.c: Remove verbose.
25832 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
25833 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
25834 record a warning about ASCII compatibility.
25835 * locale/programs/ld-monetary.c (monetary_finish): If
25836 warn_int_curr_symbol is true then record a warning about the symbol
25837 not being in our ISO 4217 list.
25838 * locale/programs/locale.c: Include record-status.h. Remove verbose.
25839 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
25840 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
25841 (OPT_NO_WARN): Define.
25842 (OPT_WARN): Define.
25843 (options): Add entry for --no-warnings, and --warnings.
25844 (set_warnings): New function to enable/disable warnings.
25845 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
25846 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
25847 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
25848 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
25849 Pass flags to generate_locale.
25850 (generate_locale): Accept new flag argument and pass it to localedef
25851 invocation.
25852 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
25853 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
25854
25855 * localedata/Makefile (test-input-data): Use full file name.
25856 * localedata/da_DK.in: Rename to...
25857 * localedata/da_DK.ISO-8859-1.in: ...this.
25858 * localedata/de_DE.in: Rename to...
25859 * localedata/de_DE.ISO-8859-1.in: ...this.
25860 * localedata/en_US.in: Rename to...
25861 * localedata/en_US.ISO-8859-1.in: ...this.
25862 * localedata/fr_FR.in: Rename to...
25863 * localedata/fr_FR.UTF-8.in: ... this.
25864 * localedata/hr_HR.in: Rename to...
25865 * localedata/hr_HR.ISO-8859-2.in: ...this.
25866 * localedata/hu_HU.in: Rename to...
25867 * localedata/hu_HU.UTF-8.in: ...this.
25868 * localedata/si_LK.in: Rename to...
25869 * localedata/si_LK.UTF-8.in: ...this.
25870 * localedata/sv_SE.in: Rename to...
25871 * localedata/sv_SE.ISO-8859-1.in: ...this.
25872 * localedata/tr_TR.in: Rename to...
25873 * localedata/tr_TR.UTF-8.in: ...this.
25874 * localedata/uk_UA.in: Rename to...
25875 * localedata/uk_UA.UTF-8.in: ...this.
25876 * localedata/sort-test.sh: Test file is locale name with the
25877 suffix.
25878
25879 * localedata/unicode-gen/Makefile (check_i18n): Rename to
25880 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
25881 file.
25882 * localedata/locales/i18n_ctype: Regenerate.
25883 * localedata/locales/tr_TR: Likewise.
25884 * localedata/locales/translit_circle: Likewise.
25885 * localedata/locales/translit_cjk_compat: Likewise.
25886 * localedata/locales/translit_combining: Likewise.
25887 * localedata/locales/translit_compat: Likewise.
25888 * localedata/locales/translit_font: Likewise.
25889 * localedata/locales/translit_fraction: Likewise.
25890
25891 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25892
25893 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
25894 lxvd2x/stxvd2x with lvx/stvx.
25895 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
25896
25897 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
25898
25899 * include/alloc_buffer.h: Replace "if if " with "if " in
25900 comments.
25901 * sysdeps/mips/memcpy.S: Likkewise.
25902 * sysdeps/mips/memset.S: Likewise.
25903 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25904 Likewise.
25905 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
25906 Likewise.
25907 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
25908 Likewise.
25909
25910 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25911
25912 [BZ #15261]
25913 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
25914 yesexpr and noexpr.
25915 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25916 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
25917 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
25918 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
25919 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
25920 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
25921 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
25922
25923 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25924
25925 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
25926 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25927 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25928 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25929 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
25930 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
25931 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
25932 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
25933 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
25934 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
25935 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
25936 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
25937
25938 2017-10-25 Mike FABIAN <mfabian@redhat.com>
25939
25940 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
25941 as possible for better readability of the source.
25942 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
25943 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
25944 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
25945 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
25946 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
25947 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
25948 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
25949 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
25950 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
25951 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
25952 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
25953 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
25954 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
25955 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
25956 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
25957 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
25958 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
25959 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
25960 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
25961 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
25962 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
25963 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
25964 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
25965 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
25966 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
25967 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
25968 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
25969 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
25970 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
25971 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
25972 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
25973 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
25974 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
25975 * localedata/locales/en_US (LC_MESSAGES): Likewise.
25976 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
25977 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
25978 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
25979 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
25980 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
25981 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
25982 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
25983 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
25984 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
25985 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
25986 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
25987 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
25988 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
25989 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
25990 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
25991 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
25992 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
25993 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
25994 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
25995 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
25996 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
25997 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
25998 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
25999 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26000 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26001 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26002 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26003 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26004 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26005 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26006 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26007 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26008 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26009 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26010 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26011 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26012 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26013 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26014 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26015 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26016 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26017 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26018 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26019 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26020 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26021 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26022 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26023 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26024 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26025 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26026 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26027 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26028 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26029 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26030 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26031 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26032 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26033 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26034 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26035 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26036 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26037 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26038 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26039 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26040 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26041 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26042 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26043 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26044 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26045 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26046 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26047 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26048 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26049 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26050 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26051 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26052 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26053 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26054 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26055 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26056 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26057 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26058 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26059 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26060 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26061 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26062 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26063 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26064 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26065 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26066 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26067 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26068 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26069 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26070 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26071 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26072 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26073 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26074 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26075 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26076 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26077 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26078 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26079 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26080 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26081 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26082 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26083 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26084 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26085 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26086 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26087 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26088 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26089 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26090 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26091 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26092 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26093 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26094 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26095 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26096 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26097 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26098 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26099 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26100 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26101 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26102 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26103 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26104 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26105 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26106 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26107 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26108 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26109 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26110 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26111 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26112 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26113 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26114 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26115 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26116
26117 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26118
26119 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26120 (Use first letters of yesstr and nostr correctly instead of using
26121 full words).
26122
26123 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26124
26125 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26126 (Use first letters of yesstr and nostr correctly).
26127
26128 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26129
26130 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26131 also check for the first characters of yesstr and nostr.
26132 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26133 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26134
26135 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26136
26137 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26138 also check for Chinese characters.
26139
26140 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26141
26142 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26143 match also for the contents of yesstr and nostr. As the first letter
26144 of yesstr and nostr is equal, checking only for the first letter
26145 is not enough.
26146
26147 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26148
26149 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26150 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26151
26152 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26153
26154 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26155 of main contributor.
26156
26157 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26158
26159 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26160 instead of using English.
26161
26162 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26163
26164 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26165 by including the first letters of nostr and yesexpr in the regexp.
26166 Also make it more readable by using ASCII where possible.
26167
26168 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26169
26170 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26171 the first letter of nostr in the regexp. It agrees with CLDR now.
26172 Also make it more readable by using ASCII where possible.
26173
26174 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26175
26176 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26177 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26178 these strings contain a U+17D6 (which somewhat looks like a colon)
26179 instead of a real colon to separate the full words for “yes”
26180 and “no” from the single letter responses.
26181
26182 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26183
26184 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26185 it agree with CLDR (include the first letter of yesstr).
26186 Also make it more readable by using ASCII where possible.
26187
26188 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26189
26190 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26191 and improve yesexpr and noexpr. The yesstr and nostr apparently
26192 came from CLDR. And CLDR has a bug there: these strings contain
26193 a U+0903 (which looks like a colon) instead of a real colon
26194 to separate the full words for “yes” and “no” from the single
26195 letter responses.
26196
26197 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26198
26199 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26200 letters of the full yesstr and nostr in yesexpr and noexpr.
26201
26202 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26203
26204 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26205 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26206 * localedata/locales/an_ES: Make source more readable by using ASCII
26207 where possible.
26208
26209 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26210
26211 [BZ #20952]
26212 * localedata/locales/yuw_PG: New file.
26213 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26214 * locale/iso-639.def: Add Yau (Uruwa).
26215
26216 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26217
26218 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26219
26220 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26221
26222 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26223 (__libc_realloc): Likewise.
26224 (_mid_memalign): Likewise.
26225 (__libc_calloc): Likewise.
26226
26227 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26228
26229 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26230 by adding the generic +1 and -0 as in all other locales.
26231 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26232 day names and make it more readable by using ASCII where possible.
26233
26234 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26235
26236 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26237 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26238
26239 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26240
26241 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26242 WNOHANG in waitpid call.
26243
26244 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26245
26246 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26247 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26248
26249 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26250 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26251 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26252 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26253 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26254 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26255 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26256 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26257 variables.
26258
26259 2017-10-23 Michael Collison <michael.collison@arm.com>
26260
26261 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26262 with __builtin_sqrt.
26263 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26264 with __builtin_sqrtf.
26265 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26266 with __builtin_ceil.
26267 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26268 with __builtin_ceilf.
26269 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26270 with __builtin_floor.
26271 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26272 with __builtin_floorf.
26273 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26274 with __builtin_fma.
26275 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26276 with __builtin_fmaf.
26277 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26278 with __builtin_fmax.
26279 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26280 with __builtin_fmaxf.
26281 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26282 with __builtin_fmin.
26283 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26284 with __builtin_fminf.
26285 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26286 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26287 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26288 with builtin_rint and conversion to int.
26289 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26290 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26291 with builtin_llround.
26292 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26293 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26294 with builtin_rint and conversion to long int.
26295 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26296 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26297 with builtin_lround.
26298 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26299 with builtin_lroundf.
26300 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26301 statements with __builtin_nearbyint.
26302 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26303 statements with __builtin_nearbyintf.
26304 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26305 with __builtin_rint.
26306 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26307 with __builtin_rintf.
26308 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26309 with __builtin_round.
26310 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26311 with __builtin_roundf.
26312 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26313 with __builtin_trunc.
26314 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26315 with __builtin_truncf.
26316 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26317 and s_l[l]round[f].c too.
26318
26319 2017-10-23 Alan Modra <amodra@gmail.com>
26320
26321 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26322 Adjust stack after restoring regs. Add missing LR cfi_restore.
26323
26324 2017-10-23 Alan Modra <amodra@gmail.com>
26325
26326 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26327 Move LR save and frame setup/teardown and LR restore to
26328 immediately around memset call. Provide cfi.
26329
26330 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26331
26332 * sysdeps/i386/fpu/e_powf.S: Removed.
26333 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26334 * sysdeps/i386/fpu/w_powf.c: Likewise.
26335 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26336 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26337 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26338 Add e_powf-sse2.
26339 (CFLAGS-e_powf-sse2.c): New.
26340 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26341 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26342
26343 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26344
26345 * sysdeps/i386/fpu/e_log2f.S: Removed.
26346 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26347 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26348 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26349 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26350 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26351 Add e_log2f-sse2.
26352 (CFLAGS-e_log2f-sse2.c): New.
26353 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26354 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26355
26356 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26357
26358 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26359 Add e_powf-fma.
26360 (CFLAGS-e_powf-fma.c): New.
26361 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26362 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26363
26364 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26365
26366 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26367 Add e_log2f-fma.
26368 (CFLAGS-e_log2f-fma.c): New.
26369 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26370 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26371
26372 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26373
26374 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26375 Add e_logf-fma.
26376 (CFLAGS-e_logf-fma.c): New.
26377 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26378 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26379
26380 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26381
26382 * sysdeps/i386/fpu/e_logf.S: Removed.
26383 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26384 * sysdeps/i386/fpu/w_logf.c: Likewise.
26385 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26386 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26387 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26388 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26389 Add e_logf-sse2.
26390 (CFLAGS-e_logf-sse2.c): New.
26391 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26392 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26393
26394 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26395
26396 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26397 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26398 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26399 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26400 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26401 Add e_exp2f-sse2.
26402 (CFLAGS-e_exp2f-sse2.c): New.
26403 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26404 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26405
26406 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26407
26408 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26409 Add e_exp2f-fma.
26410 (CFLAGS-e_exp2f-fma.c): New.
26411 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26412 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26413
26414 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26415
26416 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26417 * sysdeps/i386/fpu/e_expf.S: Likewise.
26418 * sysdeps/i386/fpu/math_errf.c: Likewise.
26419 * sysdeps/i386/fpu/w_expf.c: Likewise.
26420 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26421 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26422 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26423 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26424 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26425 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26426 Remove e_expf-ia32.
26427 (CFLAGS-e_expf-sse2.c): New.
26428 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26429 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26430
26431 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26432
26433 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26434 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26435 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26436 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26437 e_expf.c.
26438 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26439 New.
26440 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26441 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26442 Renamed to ...
26443 (__redirect_expf): This.
26444 (SYMBOL_NAME): Changed to expf.
26445 (__ieee754_expf): Renamed to ...
26446 (__expf): This.
26447 (__GI___expf): This.
26448 (__ieee754_expf): Add strong_alias.
26449 (__expf_finite): Likewise.
26450 (__expf): New.
26451 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26452
26453 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26454
26455 [BZ #22332]
26456 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26457 unescaping.
26458
26459 2017-10-21 Florian Weimer <fweimer@redhat.com>
26460
26461 * posix/Makefile (tests): Add tst-glob-tilde.
26462 (tests-special): Add tst-glob-tilde-mem.out
26463 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26464 (tst-glob-tilde-mem.out): Add mtrace check.
26465 * posix/tst-glob-tilde.c: New file.
26466
26467 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26468
26469 * bits/floatn-common.h: New file.
26470 * math/Makefile (headers): Add bits/floatn-common.h.
26471 * bits/floatn.h: Include <bits/floatn-common.h>.
26472 * sysdeps/ia64/bits/floatn.h: Likewise.
26473 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26474 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26475 * sysdeps/powerpc/bits/floatn.h: Likewise.
26476 * sysdeps/x86/bits/floatn.h: Likewise.
26477
26478 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26479
26480 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26481 indicates whether compiler emits an warning for alias for
26482 functions with incompatible types.
26483
26484 [BZ #22273]
26485 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26486 the auxiliary process is terminated by a signal before calling _exit
26487 or execve.
26488
26489 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26490
26491 [BZ #21265]
26492 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26493 New.
26494 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26495 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26496 and bit_arch_XSAVEC_Usable if needed.
26497 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26498 and bit_arch_Use_dl_runtime_resolve_opt.
26499 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26500 Removed.
26501 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26502 (bit_arch_Prefer_No_AVX512): Updated.
26503 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26504 (bit_arch_XSAVEC_Usable): New.
26505 (STATE_SAVE_OFFSET): Likewise.
26506 (STATE_SAVE_MASK): Likewise.
26507 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26508 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26509 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26510 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26511 (index_arch_XSAVEC_Usable): New.
26512 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26513 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26514 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26515 is enabled.
26516 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26517 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26518 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26519 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26520 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26521 _dl_runtime_resolve_xsavec.
26522 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26523 Removed.
26524 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26525 instead of VEC_SIZE.
26526 (REGISTER_SAVE_BND0): Removed.
26527 (REGISTER_SAVE_BND1): Likewise.
26528 (REGISTER_SAVE_BND3): Likewise.
26529 (REGISTER_SAVE_RAX): Always defined to 0.
26530 (VMOV): Removed.
26531 (_dl_runtime_resolve_avx): Likewise.
26532 (_dl_runtime_resolve_avx_slow): Likewise.
26533 (_dl_runtime_resolve_avx_opt): Likewise.
26534 (_dl_runtime_resolve_avx512): Likewise.
26535 (_dl_runtime_resolve_avx512_opt): Likewise.
26536 (_dl_runtime_resolve_sse): Likewise.
26537 (_dl_runtime_resolve_sse_vex): Likewise.
26538 (USE_FXSAVE): New.
26539 (_dl_runtime_resolve_fxsave): Likewise.
26540 (USE_XSAVE): Likewise.
26541 (_dl_runtime_resolve_xsave): Likewise.
26542 (USE_XSAVEC): Likewise.
26543 (_dl_runtime_resolve_xsavec): Likewise.
26544 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26545 Removed.
26546 (_dl_runtime_resolve_avx512_opt): Likewise.
26547 (_dl_runtime_resolve_avx): Likewise.
26548 (_dl_runtime_resolve_avx_opt): Likewise.
26549 (_dl_runtime_resolve_sse): Likewise.
26550 (_dl_runtime_resolve_sse_vex): Likewise.
26551 (_dl_runtime_resolve_fxsave): New.
26552 (_dl_runtime_resolve_xsave): Likewise.
26553 (_dl_runtime_resolve_xsavec): Likewise.
26554
26555 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26556
26557 [BZ #22320]
26558 CVE-2017-15670
26559 * posix/glob.c (__glob): Fix one-byte overflow.
26560
26561 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26562
26563 * malloc/malloc.c (sysdep-cancel.h): Add include.
26564
26565 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26566
26567 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26568
26569 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26570
26571 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26572 (tests): Remove $(objpfx)ga_test depdendency.
26573 * resolv/ga_test.c: Remove file.
26574
26575 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26576
26577 [BZ #18812]
26578 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26579 * localedata/locales/kab_DZ: New file.
26580
26581 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26582
26583 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26584 _dl_relocate_static_pie instead of _dl_start to compute load
26585 address in static PIE.
26586
26587 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26588
26589 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26590
26591 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26592
26593 [BZ #13605]
26594 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26595 * localedata/locales/shn_MM: New file.
26596
26597 2017-10-20 Florian Weimer <fweimer@redhat.com>
26598
26599 [BZ #22321]
26600 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26601 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26602 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26603 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26604 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26605 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26606
26607 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26608
26609 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26610
26611 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26612
26613 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26614
26615 [BZ #22322]
26616 * sysdeps/mips/bits/long-double.h: Move to ....
26617 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26618
26619 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26620
26621 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26622
26623 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26624 H.J. Lu <hongjiu.lu@intel.com>
26625
26626 [BZ #22299]
26627 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26628 GLRO(dl_platform) to NULL.
26629 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26630 (modules-names): Add tst-platformmod-1 and
26631 x86_64/tst-platformmod-2.
26632 (CFLAGS-tst-platform-1.c): New.
26633 (CFLAGS-tst-platformmod-1.c): Likewise.
26634 (CFLAGS-tst-platformmod-2.c): Likewise.
26635 (LDFLAGS-tst-platformmod-2.so): Likewise.
26636 ($(objpfx)tst-platform-1): Likewise.
26637 ($(objpfx)tst-platform-1.out): Likewise.
26638 (tst-platform-1-ENV): Likewise.
26639 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26640 * sysdeps/x86_64/tst-platform-1.c: New file.
26641 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26642 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26643
26644 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26645
26646 [BZ #13994]
26647 * locale/iso-639.def: Add Karbi.
26648 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26649 * localedata/locales/mjw_IN: New file.
26650
26651 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26652
26653 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26654 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26655 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26656 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26657 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26658 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26659 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26660 <bits/floatn.h>.
26661 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26662 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26663 * manual/math.texi (Mathematics): Document additional architecture
26664 support for _Float128.
26665 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26666 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26667 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26668 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26669 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26670 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26671 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26672 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26673 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26674 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26675 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26676 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26677 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26678 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26679 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26680
26681 2017-10-18 Renlin Li <renlin.li@arm.com>
26682
26683 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26684 _DYNAMIC symbol to calculate load address.
26685
26686 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26687
26688 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26689 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26690 summary bits.
26691 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26692 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26693
26694 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26695
26696 [BZ #16777]
26697 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26698 and improve readability by using more ASCII.
26699 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26700 and improve readability by using more ASCII.
26701
26702 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26703
26704 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26705 not all targets support atomics on bool.
26706
26707 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26708
26709 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26710 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26711 __f128.
26712 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26713 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26714 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26715 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26716 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26717 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26718
26719 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26720
26721 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26722 defines.
26723
26724 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26725
26726 [BZ #22159]
26727 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26728 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26729 (do_check_remalloced_chunk): Fix build bug.
26730 (do_check_malloc_state): Add assert that checks arena->top.
26731 (malloc_consolidate): Remove initialization.
26732 (int_mallinfo): Remove call to malloc_consolidate.
26733 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26734
26735 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26736
26737 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26738 (have_fastchunks): Remove.
26739 (clear_fastchunks): Remove.
26740 (set_fastchunks): Remove.
26741 (malloc_state): Add have_fastchunks.
26742 (malloc_init_state): Use have_fastchunks.
26743 (do_check_malloc_state): Remove incorrect invariant checks.
26744 (_int_malloc): Use have_fastchunks.
26745 (_int_free): Likewise.
26746 (malloc_consolidate): Likewise.
26747
26748 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26749
26750 * malloc/malloc.c (tcache_put): Inline.
26751 (tcache_get): Inline.
26752
26753 2017-10-17 Jordi Mallach <jordi@gnu.org>
26754
26755 Aurelien Jarno <aurelien@aurel32.net>
26756 [BZ #2522]
26757 * localedata/locales/ca_ES@valencia: New file.
26758 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
26759
26760 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
26761
26762 [BZ #22296]
26763 * math/math.h: Let signbit use the builtin in C++ mode with gcc
26764 < 6.x
26765
26766 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26767
26768 * scripts/build-many-glibcs.py (Context.add_all_configs):
26769 Add arm-linux-gnueabihf multiarch extra_glibcs.
26770
26771 * sysdeps/generic/ifunc-init.h: New file.
26772 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
26773
26774 2017-10-17 Mike FABIAN <mfabian@redhat.com>
26775
26776 [BZ #22019]
26777 * localedata/locales/el_GR: Set n_cs_precedes to 0.
26778 * localedata/locales/el_CY: copy "el_GR" because it is identical.
26779 * stdlib/tst-strfmon_l.c: adapt test case.
26780
26781 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26782
26783 * sysdeps/generic/float128-abi.h: New file.
26784 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
26785 non-__prefixed symbols to ....
26786 * math/Versions: ... here. Include <float128-abi.h>.
26787 * stdlib/Versions ... and here. Include <float128-abi.h>
26788
26789 2017-10-16 Florian Weimer <fweimer@redhat.com>
26790
26791 * version.h (VERSION): Switch to ".9000" as the development
26792 version suffix.
26793
26794 2017-10-16 Florian Weimer <fweimer@redhat.com>
26795
26796 [BZ #22050]
26797 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
26798 compat_symbol_reference to access non-default version.
26799
26800 2017-10-16 Florian Weimer <fweimer@redhat.com>
26801
26802 * malloc/Makefile (others-extras): Set to mcheck-init.o.
26803
26804 2017-10-16 Carlos O'Donell <carlos@redhat.com>
26805
26806 * include/shlib-compat.h (compat_symbol_reference): Update
26807 comment.
26808
26809 2017-10-16 Joseph Myers <joseph@codesourcery.com>
26810
26811 * math/Makefile (test-types): Add
26812 $(type-float128-$(float128-alias-fcts)).
26813 * math/test-float128.h (TYPE_STR): Define conditional on
26814 [FLT128_MANT_DIG == LDBL_MANT_DIG].
26815 (ULP_IDX): Likewise.
26816 (ULP_I_IDX): Likewise.
26817
26818 * stdlib/strtold.c: Include <bits/floatn.h>
26819 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
26820 and later undefine as macro. Define as weak alias if
26821 [!USE_WIDE_CHAR].
26822 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
26823 and later undefine as macro. Define as weak alias if
26824 [USE_WIDE_CHAR].
26825 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
26826 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
26827 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
26828 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26829 Define and later undefine as macro. Define as weak alias if
26830 [USE_WIDE_CHAR].
26831 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
26832 <bits/floatn.h>.
26833 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
26834 Define and later undefine as macro. Define as weak alias if
26835 [!USE_WIDE_CHAR].
26836 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
26837 Define and later undefine as macro. Define as weak alias if
26838 [USE_WIDE_CHAR].
26839
26840 2017-10-15 Carlos O'Donell <carlos@redhat.com>
26841
26842 * localedata/collate-test.c (allocate_arrays): Don't use \n in
26843 record_verbose messages.
26844
26845 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
26846
26847 [BZ #22052]
26848 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
26849 to silence -O3 -Wall warning with GCC 7.
26850
26851 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
26852
26853 * Makeconfig (+link-static-before-libc): Use the first of
26854 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
26855 * gmon/Makefile (tests): Add tst-gmon-static.
26856 (tests-static): Likewise.
26857 (CFLAGS-tst-gmon-static.c): New.
26858 (CRT-tst-gmon-static): Likewise.
26859 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
26860 (tst-gmon-static-ENV): Likewise.
26861 (tests-special): Likewise.
26862 ($(objpfx)tst-gmon-static.out): Likewise.
26863 (clean-tst-gmon-static-data): Likewise.
26864 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
26865 * gmon/tst-gmon-static-gprof.sh: New file.
26866 * gmon/tst-gmon-static.c: Likewise.
26867
26868 2017-10-13 Carlos O'Donell <carlos@redhat.com>
26869
26870 [BZ #22295]
26871 * locale/programs/linereader.c (get_string): Don't warn on
26872 non-symbolic character.
26873
26874 [BZ #22294]
26875 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
26876 int_curr_symbol.
26877
26878 [BZ #22292]
26879 * locale/programs/record-status.h: New file
26880 * locale/programs/locale.c: Add comment.
26881 * locale/programs/charmap-dir.c: Don't include error.h.
26882 (charmap_opendir): Use record_error.
26883 * locale/programs/charmap.c: Don't include error.h.
26884 (charmap_read): Use record_error, and record_warning.
26885 (parse_charmap): Likewise.
26886 * locale/programs/ld-address.c: Don't include error.h.
26887 (address_finish): Use record_error, and record_warning.
26888 * locale/programs/ld-collate.c: Don't include error.h.
26889 (collate_finish): Use record_error, and record_error_at_line.
26890 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
26891 (ctype_class_new): Likewise.
26892 (ctype_map_new): Likewise.
26893 (set_one_default): Likewise.
26894 (set_class_defaults): Likewise.
26895 (translit_flatten): Likewise.
26896 (allocate_arrays): Use record_error, and record_verbose.
26897 * locale/programs/ld-identification.c: Don't include error.h.
26898 (indentation_finish): Use record_error and record_warning.
26899 * locale/programs/ld-measurement.c: Don't include error.h.
26900 (measurement_finish): Use record_error.
26901 * locale/programs/ld-messages.c
26902 (message_finish): Likewise.
26903 * locale/programs/ld-monetary.c
26904 (monetary_finish): Likewise.
26905 * locale/programs/ld-name.c (name_finish): Use record_error
26906 and record_warning.
26907 * locale/programs/ld-numeric.c
26908 (numeric_finish): Use record_error.
26909 * locale/programs/ld-paper.c: Don't include error.h.
26910 (paper_finish): Use record_error.
26911 * locale/programs/ld-telephone.c: Don't include error.h.
26912 (telephone_finish): Use record_error.
26913 * locale/programs/ld-time.c (time_finish): Likewise.
26914 * locale/programs/linereader.h (lr_error): Make inline func.
26915 * locale/programs/localedef.c: Define recorded_warning_count,
26916 and recorded_error_count.
26917 (main): Use record_error. Use recorded_error_count and
26918 recorded_warning_count to issue correct error returns.
26919 (add_to_readlist): Use record_error.
26920 (find_locale): Likewise.
26921 (load_locale): Likewise.
26922 * locale/programs/localedef.h: Remove be_quiet
26923 and WITH_CUR_LOCALE.
26924 * locale/programs/locarchive.c (compare_from_file): Use
26925 record_error.
26926 * locale/programs/locfile.c (write_locale_data): Use
26927 record_error.
26928 * locale/programs/repertoire.c: Dont include error.h.
26929 (repertoire_complain): Use record_error.
26930 * localedata/tst-fmon.sh: Expect failures from localedef.
26931 * localedata/tst-locale.sh: Likewise.
26932 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
26933
26934 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
26935 (REPORTS): Likewise.
26936 (check): Likewise.
26937 (i18n): Rename to...
26938 (i18n_ctype): ...this.
26939 (i18n-report): Rename to...
26940 (i18n_ctype-report): ...this.
26941 * localedata/locales/i18n_ctype: Regenerate.
26942 * localedata/locales/i18n: copy i18n_ctype.
26943
26944 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26945
26946 * stdlib/strfroml.c: Include <bits/floatn.h>.
26947 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
26948 Define before include of <stdlib.h> and undefine afterwards, then
26949 define as weak alias.
26950
26951 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
26952 Undefine and restore default definition. Use
26953 libm_alias_ldouble_other.
26954
26955 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
26956
26957 [BZ #22153]
26958 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
26959 in coredumps.
26960
26961 2017-10-13 James Clarke <jrtc27@jrtc27.com>
26962
26963 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
26964 Assign sym_map to be map for local symbols, as TLS relocations
26965 use sym_map to determine whether the symbol is defined and to
26966 extract the TLS information.
26967 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
26968 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
26969
26970 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26971
26972 [BZ #22189]
26973 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
26974 (math_force_eval): Add powerpc version.
26975
26976 [BZ #22142]
26977 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
26978 -DBL_MAX.
26979 (do_test): Likewise.
26980 * stdio-common/tst-printf.sh: Likewise.
26981 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
26982 ifdef clause in order to set the carry bit right. Replace r0 by
26983 0 without changing the behavior.
26984
26985 2017-10-13 Joseph Myers <joseph@codesourcery.com>
26986
26987 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
26988 <libm-alias-ldouble.h>.
26989 (fabsl): Define using libm_alias_ldouble.
26990 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
26991 <libm-alias-ldouble.h>.
26992 (fabsl): Define using libm_alias_ldouble.
26993
26994 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
26995 Remove conditional code.
26996
26997 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
26998 Rename to __clog10_internal_l.
26999 (__clog10_internal_l): Define aliases using
27000 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27001 with __clog10.
27002
27003 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27004
27005 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27006 * benchtests/sincosf-inputs: New file.
27007 * benchtests/cosf-inputs: New file.
27008 * benchtests/sinf-inputs: New file.
27009
27010 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27011
27012 * posix/tst-spawn.c (do_test): Wait for both children.
27013
27014 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27015
27016 [BZ #22284]
27017 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27018 tests-pie): Add tst-gmon-pie.
27019 (CFLAGS-tst-gmon-pie.c): New.
27020 (CRT-tst-gmon-pie): Likewise.
27021 (tst-gmon-pie-ENV): Likewise.
27022 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27023 ($(objpfx)tst-gmon-pie.out): Likewise.
27024 (clean-tst-gmon-pie-data): Likewise.
27025 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27026 * gmon/gmon.c [PIC]: Include <link.h>.
27027 [PIC] (callback): New function.
27028 (write_hist): Add an argument for load address. Subtract load
27029 address from PCs.
27030 (write_call_graph): Likewise.
27031 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27032 it to write_hist and write_call_graph.
27033 * gmon/tst-gmon-pie.c: New file.
27034
27035 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27036
27037 * math/Makefile (test-types-basic): New variable.
27038 (test-types): Likewise.
27039 (libm-test-support): Use $(test-types) instead of $(types).
27040 (libm-tests-base-normal): Likewise.
27041 (libm-tests-base-finite): Likewise.
27042 (libm-tests-base-inline): Likewise.
27043 (generated): Likewise.
27044 ($(objpfx)libm-test-support-$(t).c): Likewise.
27045 (libm-tests-for-type iterator): Likewise.
27046 (libm-test-support iterator): Likewise.
27047 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27048 (ulp_idx): Use ULP_IDX.
27049 * math/test-ldouble.h: Include <float.h>.
27050 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27051 (ULP_IDX): New macro.
27052 (ULP_I_IDX): Likewise.
27053 * math/test-double.h (ULP_IDX): Likewise.
27054 (ULP_I_IDX): Likewise.
27055 * math/test-float.h (ULP_IDX): Likewise.
27056 (ULP_I_IDX): Likewise.
27057 * math/test-float128.h (ULP_IDX): Likewise.
27058 (ULP_I_IDX): Likewise.
27059
27060 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27061
27062 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27063 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27064 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27065 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27066 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27067 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27068 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27069 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27070 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27071 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27072 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27073 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27074 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27075 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27076 (SINGLE_THREAD_BY_GLOBAL): Define.
27077 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27078 Likewise.
27079 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27080 Likewise.
27081 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27082 Likewise.
27083 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27084 Likewise.
27085 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27086 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27087 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27088 Likewise.
27089
27090 2017-10-11 Andreas Schwab <schwab@suse.de>
27091
27092 * nis/Makefile (aux): Remove.
27093 * nscd/Makefile (aux): Add nscd_hash.
27094 (nscd-modules): Likewise.
27095 ($(objpfx)nscd): Don't depend on libnsl.
27096 * nscd/nscd_hash.c: New file.
27097 * nscd/nscd_hash.h: Likewise.
27098 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27099 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27100 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27101 instead of <nis/rpcsvc/nis.h>.
27102 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27103
27104 2017-10-11 Florian Weimer <fweimer@redhat.com>
27105
27106 [BZ #22078]
27107 Avoid large NSS buffers with many addresses, aliases.
27108 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27109 using dynarrays and struct alloc_buffer.
27110 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27111 (tst-nss-files-hosts-multi): Link with -ldl.
27112 * nss/tst-nss-files-hosts-multi.c: New file.
27113
27114 2017-10-11 Florian Weimer <fweimer@redhat.com>
27115
27116 [BZ #18023]
27117 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27118 scratch_buffer. Eliminate gotos.
27119
27120 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27121
27122 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27123 libm_alias_ldouble_other.
27124 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27125 undefine and redefine.
27126 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27127 (exp10l): Do not define here.
27128 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27129 (weak_alias): Undefine and redefine.
27130 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27131 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27132 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27133 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27134
27135 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27136 [!__fma] (fma): Define using libm_alias_double.
27137 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27138 [!__fmaf] (fmaf): Define using libm_alias_float.
27139 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27140 (fmal): Define using libm_alias_ldouble.
27141
27142 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27143
27144 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27145 New macro.
27146 (libm_alias_double_other): Likewise.
27147 (libm_alias_double_r): Use libm_alias_double_other_r.
27148 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27149 New macro.
27150 (libm_alias_float_other): Likewise.
27151 (libm_alias_float_r): Use libm_alias_float_other_r.
27152 * sysdeps/generic/libm-alias-float128.h
27153 (libm_alias_float128_other_r): New macro.
27154 (libm_alias_float128_other): Likewise.
27155 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27156 * sysdeps/generic/libm-alias-ldouble.h
27157 (libm_alias_ldouble_other_r): New macro.
27158 (libm_alias_ldouble_other): Likewise.
27159 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27160 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27161 (libm_alias_double_other_r): New macro.
27162 (libm_alias_double_other): Likewise.
27163 (libm_alias_double_r): Use libm_alias_double_other_r.
27164 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27165 (libm_alias_ldouble_other_r): New macro.
27166 (libm_alias_ldouble_other): Likewise.
27167 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27168 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27169 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27170 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27171 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27172 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27173 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27174 * math/w_exp2f.c: Use libm_alias_float_other.
27175 * math/w_expf.c: Likewise.
27176 * math/w_log2f.c: Likewise.
27177 * math/w_logf.c: Likewise.
27178 * math/w_powf.c: Likewise.
27179 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27180 [!__exp2f]: Use libm_alias_float_other.
27181 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27182 [!__expf]: Use libm_alias_float_other.
27183 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27184 [!__log2f]: Use libm_alias_float_other.
27185 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27186 [!__logf]: Use libm_alias_float_other.
27187 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27188 [!__powf]: Use libm_alias_float_other.
27189
27190 2017-10-10 Florian Weimer <fweimer@redhat.com>
27191
27192 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27193 function.
27194 (_nss_files_gethostbyname3_r): Call it.
27195
27196 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27197
27198 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27199 error. Remove default definition of declare_mgen_alias.
27200 [!declare_mgen_alias_r]: Likewise.
27201 * sysdeps/generic/math-type-macros-double.h
27202 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27203 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27204 (declare_mgen_alias_r): Likewise.
27205 * sysdeps/generic/math-type-macros-float128.h
27206 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27207 * sysdeps/generic/math-type-macros-ldouble.h
27208 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27209 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27210 macro.
27211 (declare_mgen_alias_r_s): Likewise.
27212 (declare_mgen_alias_r): Likewise.
27213 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27214 (lgamma_r): Define using libm_alias_double_r.
27215 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27216 (lgammaf_r): Define using libm_alias_float_r.
27217 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27218 (lgammal_r): Define using libm_alias_ldouble_r.
27219 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27220 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27221
27222 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27223
27224 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27225 extern declaration.
27226
27227 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27228
27229 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27230
27231 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27232
27233 [BZ #21326]
27234 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27235 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27236 * math/Makefile (test-math-cxx11): New test.
27237 * math/test-math-cxx11.cc: New file.
27238
27239 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27240
27241 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27242
27243 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27244 call to allocate the slave pty file descriptor.
27245
27246 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27247
27248 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27249 [!__fma] (fma): Define using libm_alias_double.
27250 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27251 [!__fma] (fma): Define using libm_alias_double.
27252
27253 * sysdeps/ieee754/float128/float128_private.h: Include
27254 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27255 (libm_alias_ldouble_r): Undefine and redefine.
27256 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27257 <libm-alias-ldouble.h>.
27258 (asinhl): Define using libm_alias_ldouble.
27259 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27260 <libm-alias-ldouble.h>.
27261 (atanl): Define using libm_alias_ldouble.
27262 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27263 <libm-alias-ldouble.h>.
27264 (cbrtl): Define using libm_alias_ldouble.
27265 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27266 <libm-alias-ldouble.h>.
27267 (ceill): Define using libm_alias_ldouble.
27268 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27269 <libm-alias-ldouble.h>.
27270 (copysignl): Define using libm_alias_ldouble.
27271 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27272 <libm-alias-ldouble.h>.
27273 (cosl): Define using libm_alias_ldouble.
27274 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27275 <libm-alias-ldouble.h>.
27276 (erfl): Define using libm_alias_ldouble.
27277 (erfcl): Likewise.
27278 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27279 <libm-alias-ldouble.h>.
27280 (expm1l): Define using libm_alias_ldouble.
27281 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27282 <libm-alias-ldouble.h>.
27283 (fabsl): Define using libm_alias_ldouble.
27284 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27285 <libm-alias-ldouble.h>.
27286 (floorl): Define using libm_alias_ldouble.
27287 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27288 <libm-alias-ldouble.h>.
27289 (fmal): Define using libm_alias_ldouble.
27290 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27291 <libm-alias-ldouble.h>.
27292 (frexpl): Define using libm_alias_ldouble.
27293 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27294 libm_alias_ldouble.
27295 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27296 <libm-alias-ldouble.h>.
27297 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27298 libm_alias_ldouble.
27299 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27300 <libm-alias-ldouble.h>.
27301 (getpayloadl): Define using libm_alias_ldouble.
27302 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27303 <libm-alias-ldouble.h>.
27304 (llrintl): Define using libm_alias_ldouble.
27305 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27306 <libm-alias-ldouble.h>.
27307 (llroundl): Define using libm_alias_ldouble.
27308 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27309 <libm-alias-ldouble.h>.
27310 (logbl): Define using libm_alias_ldouble.
27311 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27312 <libm-alias-ldouble.h>.
27313 (lrintl): Define using libm_alias_ldouble.
27314 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27315 <libm-alias-ldouble.h>.
27316 (lroundl): Define using libm_alias_ldouble.
27317 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27318 <libm-alias-ldouble.h>.
27319 (modfl): Define using libm_alias_ldouble.
27320 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27321 <libm-alias-ldouble.h>.
27322 (nearbyintl): Define using libm_alias_ldouble.
27323 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27324 <libm-alias-ldouble.h>.
27325 (nextafterl): Define using libm_alias_ldouble.
27326 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27327 <libm-alias-ldouble.h>.
27328 (nextupl): Define using libm_alias_ldouble.
27329 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27330 <libm-alias-ldouble.h>.
27331 (remquol): Define using libm_alias_ldouble.
27332 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27333 <libm-alias-ldouble.h>.
27334 (rintl): Define using libm_alias_ldouble.
27335 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27336 <libm-alias-ldouble.h>.
27337 (roundevenl): Define using libm_alias_ldouble.
27338 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27339 <libm-alias-ldouble.h>.
27340 (roundl): Define using libm_alias_ldouble.
27341 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27342 using libm_alias_ldouble.
27343 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27344 <libm-alias-ldouble.h>.
27345 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27346 Define using libm_alias_ldouble.
27347 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27348 <libm-alias-ldouble.h>.
27349 (sincosl): Define using libm_alias_ldouble.
27350 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27351 <libm-alias-ldouble.h>.
27352 (sinl): Define using libm_alias_ldouble.
27353 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27354 <libm-alias-ldouble.h>.
27355 (tanhl): Define using libm_alias_ldouble.
27356 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27357 <libm-alias-ldouble.h>.
27358 (tanl): Define using libm_alias_ldouble.
27359 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27360 <libm-alias-ldouble.h>.
27361 (totalorderl): Define using libm_alias_ldouble.
27362 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27363 <libm-alias-ldouble.h>.
27364 (totalordermagl): Define using libm_alias_ldouble.
27365 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27366 <libm-alias-ldouble.h>.
27367 (truncl): Define using libm_alias_ldouble.
27368 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27369 libm_alias_ldouble.
27370 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27371 libm_alias_ldouble.
27372 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27373 <libm-alias-ldouble.h>.
27374 (weak_alias): Do not undefine and redefine.
27375 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27376 (copysignl): Define with long_double_symbol only if [IS_IN
27377 (libc)].
27378 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27379 <libm-alias-ldouble.h>.
27380 (weak_alias): Do not undefine and redefine.
27381 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27382 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27383 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27384 <libm-alias-ldouble.h>.
27385 (weak_alias): Do not undefine and redefine.
27386 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27387 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27388 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27389 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27390 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27391 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27392 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27393 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27394 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27395 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27396 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27397 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27398 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27399 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27400 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27401 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27402 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27403 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27404 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27405 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27406 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27407 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27408 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27409 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27410 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27411 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27412
27413 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27414
27415 [BZ #22111]
27416 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27417 (tcache_thread_freeres): Set tcache_shutting_down before
27418 freeing the tcache.
27419 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27420 * malloc/tst-malloc-tcache-leak.c: New file.
27421
27422 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27423
27424 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27425 back to powerpc32 file.
27426 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27427 (memrchr): Add __memrchr_power8 to ifunc list.
27428 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27429 extra bytes for unaligned inputs.
27430
27431 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27432
27433 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27434 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27435 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27436 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27437 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27438
27439 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27440
27441 * sysdeps/arm/libm-test-ulps: Update.
27442
27443 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27444 <libm-alias-ldouble.h>.
27445 (asinhl): Define using libm_alias_ldouble.
27446 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27447 <libm-alias-ldouble.h>.
27448 (cbrtl): Define using libm_alias_ldouble.
27449 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27450 <libm-alias-ldouble.h>.
27451 (copysignl): Define using libm_alias_ldouble.
27452 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27453 <libm-alias-ldouble.h>.
27454 (cosl): Define using libm_alias_ldouble.
27455 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27456 <libm-alias-ldouble.h>.
27457 (erfl): Define using libm_alias_ldouble.
27458 (erfcl): Likewise.
27459 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27460 <libm-alias-ldouble.h>.
27461 (fmal): Define using libm_alias_ldouble.
27462 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27463 <libm-alias-ldouble.h>.
27464 (frexpl): Define using libm_alias_ldouble.
27465 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27466 libm_alias_ldouble.
27467 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27468 <libm-alias-ldouble.h>.
27469 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27470 libm_alias_ldouble.
27471 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27472 <libm-alias-ldouble.h>.
27473 (getpayloadl): Define using libm_alias_ldouble.
27474 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27475 <libm-alias-ldouble.h>.
27476 (llrintl): Define using libm_alias_ldouble.
27477 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27478 <libm-alias-ldouble.h>.
27479 (llroundl): Define using libm_alias_ldouble.
27480 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27481 <libm-alias-ldouble.h>.
27482 (lrintl): Define using libm_alias_ldouble.
27483 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27484 <libm-alias-ldouble.h>.
27485 (lroundl): Define using libm_alias_ldouble.
27486 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27487 <libm-alias-ldouble.h>.
27488 (modfl): Define using libm_alias_ldouble.
27489 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27490 <libm-alias-ldouble.h>.
27491 (nextupl): Define using libm_alias_ldouble.
27492 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27493 <libm-alias-ldouble.h>.
27494 (remquol): Define using libm_alias_ldouble.
27495 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27496 <libm-alias-ldouble.h>.
27497 (roundevenl): Define using libm_alias_ldouble.
27498 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27499 <libm-alias-ldouble.h>.
27500 (roundl): Define using libm_alias_ldouble.
27501 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27502 using libm_alias_ldouble.
27503 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27504 <libm-alias-ldouble.h>.
27505 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27506 <libm-alias-ldouble.h>.
27507 (setpayloadsigl): Define using libm_alias_ldouble.
27508 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27509 <libm-alias-ldouble.h>.
27510 (sincosl): Define using libm_alias_ldouble.
27511 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27512 <libm-alias-ldouble.h>.
27513 (sinl): Define using libm_alias_ldouble.
27514 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27515 <libm-alias-ldouble.h>.
27516 (tanhl): Define using libm_alias_ldouble.
27517 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27518 <libm-alias-ldouble.h>.
27519 (tanl): Define using libm_alias_ldouble.
27520 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27521 <libm-alias-ldouble.h>.
27522 (totalorderl): Define using libm_alias_ldouble.
27523 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27524 <libm-alias-ldouble.h>.
27525 (totalordermagl): Define using libm_alias_ldouble.
27526 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27527 libm_alias_ldouble.
27528 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27529 libm_alias_ldouble.
27530
27531 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27532
27533 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27534 memmove_falkor.
27535 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27536 (__libc_ifunc_impl_list): Likewise.
27537 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27538 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27539
27540 * benchtests/bench-memmove-walk.c: New file.
27541 * benchtests/Makefile (string-benchset): Add it.
27542
27543 * benchtests/bench-memset-walk.c: New file.
27544 * benchtests/Makefile (string-benchset): Add it.
27545
27546 * benchtests/bench-memcpy-walk.c: New file.
27547 * benchtests/Makefile (string-benchset): Add it.
27548
27549 2017-10-05 Florian Weimer <fweimer@redhat.com>
27550
27551 nscd: Eliminate compilation time dependency in the build output.
27552 * nscd/nscd_stat.c (STATDATA_VERSION)
27553 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27554 (STATDATA_VERSION_FULL): New macro definitions.
27555 (compilation): Remove.
27556 (struct statdata): Adjust version member.
27557 (send_stats): Set version from STATDATA_VERSION_FULL.
27558 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27559
27560 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27561
27562 * configure.ac (--enable-add-ons): Remove option.
27563 (machine): Do not mention add-ons in comment.
27564 (LIBC_PRECONFIGURE): Likewise.
27565 (add_ons): Remove variable and sanity checks and logic to locate
27566 add-ons.
27567 (add_ons_automatic): Remove variable.
27568 (configured_add_ons): Likewise.
27569 (add_ons_sfx): Likewise.
27570 (add_ons_pfx): Likewise.
27571 (add_on_subdirs): Likewise.
27572 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27573 consideration of add-ons in Implies handling.
27574 (sysdeps_add_ons): Likewise.
27575 * configure: Regenerated.
27576 * libidn/configure.ac: Remove.
27577 * libidn/configure: Likewise.
27578 * sysdeps/unix/inet/configure.ac: New file.
27579 * sysdeps/unix/inet/configure: New generated file.
27580 * sysdeps/unix/inet/Subdirs: Add libidn.
27581 * Makeconfig (sysdeps-srcdirs): Remove variable.
27582 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27583 ($(common-objpfx)config.status): Do not depend on add-on files.
27584 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27585 comment.
27586 (all-subdirs): Do not include $(add-on-subdirs).
27587 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27588 * config.make.in (add-ons): Remove variable.
27589 (add-on-subdirs): Likewise.
27590 (sysdeps-add-ons): Likewise.
27591 * manual/Makefile (add-chapters): Remove.
27592 ($(objpfx)texis): Do not depend on $(add-chapters).
27593 (nonexamples): Do not handle $(add-chapters).
27594 (examples): Do not handle $(add-ons).
27595 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27596 libc-texinfo.sh.
27597 * manual/install.texi (Installation): Do not mention add-ons.
27598 (--enable-add-ons): Do not document configure option.
27599 * INSTALL: Regenerated.
27600 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27601 * manual/maint.texi (Hierarchy Conventions): Do not mention
27602 add-ons.
27603 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27604 --enable-add-ons.
27605 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27606 add-ons.
27607 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27608 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27609
27610 2017-10-05 Andreas Schwab <schwab@suse.de>
27611
27612 [BZ #15142]
27613 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27614 (_IO_flush_all_lockp): Always lock list_all_lock.
27615 (_IO_flush_all_linebuffered): Likewise.
27616 (_IO_unbuffer_all): Likewise.
27617
27618 2017-10-05 Florian Weimer <fweimer@redhat.com>
27619
27620 [BZ #15436]
27621 Do not flush stdio streams on abort.
27622 * stdlib/abort.c (fflush): Remove macro definition.
27623 (abort): Remove stages related to stdio flushing.
27624
27625 2017-10-05 Florian Weimer <fweimer@redhat.com>
27626
27627 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27628
27629 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27630
27631 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27632
27633 2017-10-05 Florian Weimer <fweimer@redhat.com>
27634
27635 * support/support_format_hostent.c (support_format_hostent): Add
27636 more error information for NETDB_INTERNAL.
27637
27638 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27639
27640 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27641 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27642 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27643 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27644 AC_DEFINE if multi-arch is enabled.
27645 * sysdeps/i386/configure: Regenerated.
27646
27647 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27648
27649 * Makeconfig (+link-static-before-libc): Use
27650 $(DEFAULT-LDFLAGS-$(@F)).
27651 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27652 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27653 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27654
27655 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27656
27657 * elf/Makefile (tests): Add tst-main1.
27658 (modules-names): Add tst-main1mod.
27659 ($(objpfx)tst-main1): New.
27660 (CRT-tst-main1): Likewise.
27661 (LDFLAGS-tst-main1): Likewise.
27662 (LDLIBS-tst-main1): Likewise.
27663 (tst-main1mod.so-no-z-defs): Likewise.
27664 * elf/tst-main1.c: New file.
27665 * elf/tst-main1mod.c: Likewise.
27666
27667 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27668
27669 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27670
27671 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27672
27673 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27674 (fma): Define using libm_alias_double.
27675 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27676 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27677 <math_ldbl_opt.h>.
27678 (fmal): Do not define as compat symbol here.
27679 * sysdeps/alpha/fpu/s_fma.c: New file.
27680
27681 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27682
27683 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27684
27685 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27686
27687 [BZ #22229]
27688 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27689 <math_ldbl_opt.h>
27690 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27691 and libc.
27692 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27693 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27694 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27695 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27696 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27697 Include <math_ldbl_opt.h>
27698 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27699 and libc.
27700 (compat_symbol): Undefine and redefine.
27701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27702 <math_ldbl_opt.h>
27703 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27704 (compat_symbol): Undefine and redefine.
27705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27706 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27707 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27708 GLIBC_2_1 for libm.
27709 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27710 GLIBC_2.0 copysignl symbol.
27711 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27712 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27713
27714 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27715
27716 2017-10-04 Florian Weimer <fweimer@redhat.com>
27717
27718 * scripts/check-local-headers.sh: Ignore nspr4 header file
27719 directory in addition to nspr.
27720
27721 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27722
27723 [BZ #17956]
27724 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27725 * configure: Regenerate.
27726 * crypt/Makefile (nss-cpp-flags): New variable.
27727 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27728 (CPPFLAGS-md5-crypt.c): Use it.
27729 * scripts/check-local-headers.sh: Ignore nspr header file
27730 directory.
27731
27732 2017-10-04 Andreas Schwab <schwab@suse.de>
27733
27734 * nis/Makefile (services): Remove compat.
27735 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27736 ($(objpfx)libnss_compat.so): Remove rule.
27737 * nis/Versions (libnss_compat): Remove.
27738 * nss/Makefile (services): Add compat.
27739 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27740 * nss/Versions (libnss_compat): Define.
27741 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27742 Don't include <rpc/types.h>. Replace bool_t by bool.
27743 * nss/nss_compat/compat-initgroups.c: Likewise.
27744 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
27745 instead of <rpcsrv/ypclnt.h>.
27746 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
27747 yp_get_default_domain.
27748 * nss/nss_compat/compat-pwd.c: Likewise.
27749 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
27750 yp_get_default_domain.
27751 * nss/nss_compat/nisdomain.c: New file.
27752 * nss/nss_compat/nisdomain.h: Likewise.
27753
27754 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27755
27756 [BZ #22244]
27757 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
27758 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27759
27760 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27761
27762 [BZ #22243]
27763 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
27764 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
27765
27766 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27767
27768 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
27769 "movl main@GOTOFF(%ebx), %eax".
27770
27771 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27772
27773 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
27774 allow undefined _DYNAMIC in PIE libc.a.
27775 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27776 Likewse.
27777
27778 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27779
27780 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
27781 check _DYNAMIC.
27782
27783 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27784
27785 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
27786 check _DYNAMIC.
27787
27788 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27789
27790 * math/test-math-iscanonical.cc (error): Replace bool with int.
27791
27792 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27793
27794 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
27795 (modf): Define using libm_alias_double, only if [!__modf].
27796 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
27797 <libm-alias-double.h>.
27798 (modf): Define using libm_alias_double, only if [!__modf].
27799 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
27800 compat symbol here.
27801 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
27802 (weak_alias): Do not undefine and redefine.
27803 (strong_alias): Likewise.
27804 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
27805 (weak_alias): Likewise.
27806 (strong_alias): Likewise.
27807
27808 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
27809 (logb): Define using libm_alias_double, only if [!__logb].
27810 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
27811 <libm-alias-double.h>.
27812 (logb): Define using libm_alias_double, only if [!__logb].
27813 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
27814 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
27815 (weak_alias): Do not undefine and redefine.
27816 (strong_alias): Likewise.
27817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
27818 (weak_alias): Likewise.
27819 (strong_alias): Likewise.
27820
27821 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27822
27823 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
27824 Check SHARED instead PIC.
27825
27826 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27827
27828 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
27829 [!__fmaf] (fmaf): Define using libm_alias_float.
27830
27831 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
27832 (frexp): Define using libm_alias_double.
27833 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
27834 <libm-alias-double.h>.
27835 (frexp): Define using libm_alias_double.
27836 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
27837 compat symbol here.
27838
27839 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27840
27841 [BZ #22235]
27842 * math/math.h: Trivial fix for unbalanced parentheses in comment.
27843 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
27844 (CFLAGS-test-math-iscanonical.cc): New variable.
27845 * math/test-math-iscanonical.cc: New file.
27846 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
27847 Provide a C++ implementation based on function overloading,
27848 rather than using __MATH_TG, which uses C-only builtins.
27849 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
27850 Likewise.
27851 * sysdeps/powerpc/powerpc64le/Makefile
27852 (CFLAGS-test-math-iscanonical.cc): New variable.
27853
27854 2017-10-03 Joseph Myers <joseph@codesourcery.com>
27855
27856 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
27857 (ceil): Define using libm_alias_double.
27858 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
27859 (floor): Define using libm_alias_double.
27860 * sysdeps/ieee754/dbl-64/s_llround.c: Include
27861 <libm-alias-double.h>.
27862 (llround): Define using libm_alias_double.
27863 * sysdeps/ieee754/dbl-64/s_lround.c: Include
27864 <libm-alias-double.h>.
27865 (lround): Define using libm_alias_double.
27866 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
27867 <libm-alias-double.h>.
27868 (nearbyint): Define using libm_alias_double.
27869 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
27870 <libm-alias-double.h>.
27871 (remquo): Define using libm_alias_double.
27872 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
27873 (rint): Define using libm_alias_double.
27874 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
27875 (round): Define using libm_alias_double.
27876 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
27877 (trunc): Define using libm_alias_double.
27878 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
27879 <libm-alias-double.h>.
27880 (ceil): Define using libm_alias_double.
27881 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
27882 <libm-alias-double.h>.
27883 (floor): Define using libm_alias_double.
27884 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
27885 <libm-alias-double.h>.
27886 (llround): Define using libm_alias_double.
27887 [_LP64] (lround): Likewise.
27888 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
27889 <libm-alias-double.h>.
27890 [!_LP64] (lround): Define using libm_alias_double.
27891 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
27892 <libm-alias-double.h>.
27893 (nearbyint): Define using libm_alias_double.
27894 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
27895 <libm-alias-double.h>.
27896 (remquo): Define using libm_alias_double.
27897 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
27898 <libm-alias-double.h>.
27899 (rint): Define using libm_alias_double.
27900 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
27901 <libm-alias-double.h>.
27902 (round): Define using libm_alias_double.
27903 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
27904 <libm-alias-double.h>.
27905 (trunc): Define using libm_alias_double.
27906 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
27907 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
27908 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
27909 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
27910 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
27911 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
27912 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
27913 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
27914 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
27915
27916 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
27917
27918 * math/w_remainder.c: New file.
27919 * math/w_remainderf.c: New file.
27920 * math/w_remainderl.c: New file.
27921
27922 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
27923
27924 * elf/rtld.c (BOOTSTRAP_MAP): New.
27925 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
27926 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27927 Likewise.
27928 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27929 Likewise.
27930 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
27931 Likewise.
27932
27933 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27934
27935 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
27936 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
27937 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
27938 rtld_hidden_data_ver): Define to empty.
27939 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
27940 __assert_perror_fail): Likewise.
27941 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27942 (__rewinddir): Likewise.
27943 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27944 (__profile_frequency): Likewise.
27945 * include/setjmp.h (__sigsetjmp): Likewise.
27946 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
27947 __libc_sigaction): Likewise.
27948 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
27949 not set hidden attribute.
27950 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
27951 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
27952 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
27953 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
27954 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
27955 __fxstatat64): Likewise.
27956 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27957 (__uname): Likewise.
27958 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
27959 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
27960 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
27961 (NO_RTLD_HIDDEN): Set.
27962 * sysdeps/mach/hurd/configure: Refresh.
27963 * config.h.in: Refresh.
27964
27965 2017-10-02 Joseph Myers <joseph@codesourcery.com>
27966
27967 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
27968 (atan): Define using libm_alias_double.
27969 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
27970 (tan): Define using libm_alias_double.
27971 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
27972 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
27973
27974 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
27975 define as weak alias of __atan. Do not define any aliases if
27976 [__atan].
27977 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
27978 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
27979 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
27980 as weak alias of __tan. Do not define any aliases if [__tan].
27981 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
27982 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
27983 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
27984 __atan.
27985 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
27986 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
27987 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
27988 and define as weak alias of __atan.
27989 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
27990 __atan.
27991 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
27992 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
27993 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
27994 define as weak alias of __tan.
27995
27996 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27997
27998 * math/w_lgamma.c: New file.
27999 * math/w_lgammaf.c: New file.
28000 * math/w_lgammal.c: New file.
28001
28002 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28003
28004 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28005 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28006 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28007 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28008 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28009 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28010 * sysdeps/i386/fpu/w_log2f.c: New file.
28011 * sysdeps/i386/fpu/w_logf.c: New file.
28012 * sysdeps/i386/fpu/w_powf.c: New file.
28013 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28014 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28015 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28016
28017 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28018 H.J. Lu <hongjiu.lu@intel.com>
28019
28020 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28021 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28022 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28023 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28024 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28025 the new expf code.
28026 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28027 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28028 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28029 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28030 * sysdeps/i386/fpu/w_exp2f.c: New file.
28031 * sysdeps/i386/fpu/w_expf.c: New file.
28032 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28033 * sysdeps/x86_64/fpu/w_expf.c: New file.
28034
28035 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28036
28037 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28038 (log2f): Likewise.
28039 (powf): Likewise.
28040 * math/w_log2f.c: New file.
28041 * math/w_logf.c: New file.
28042 * math/w_powf.c: New file.
28043 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28044 * math/w_logf_compat.c (__logf_compat): Likewise.
28045 * math/w_powf_compat.c (__powf_compat): Likewise.
28046 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28047 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28048 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28049 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28050 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28051 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28052 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28053 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28054 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28055 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28056 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28057 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28058 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28059 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28060 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28061 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28062 Likewise.
28063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28064 Likewise.
28065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28066 Likewise.
28067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28068 Likewise.
28069 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28070 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28071 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28072 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28073 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28074 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28075 Likewise.
28076 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28077 Likewise.
28078 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28079 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28080 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28081
28082 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28083
28084 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28085 (sysdep_routines): Add memrchr_power8.
28086 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28087 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28088 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28089 New file.
28090 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28091 (memrchr): Add __memrchr_power8 to ifunc list.
28092 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28093
28094 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28095
28096 [BZ #18822]
28097 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28098 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28099 libc_hidden_def.
28100 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28101 (__posix_fallocate64_l64): Likewise.
28102
28103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28104
28105 [BZ #18822]
28106 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28107 (__sched_setaffinity_new): Add libc_hidden_proto and
28108 libc_hidden_def.
28109
28110 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28111
28112 [BZ #18822]
28113 * include/glob.h (__glob64): Add libc_hidden_proto.
28114 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28115 libc_hidden_def.
28116
28117 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28118
28119 [BZ #18822]
28120 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28121 attribute_hidden.
28122
28123 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28124
28125 [BZ #18822]
28126 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28127
28128 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28129
28130 [BZ #18822]
28131 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28132 libc_hidden_def.
28133
28134 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28135
28136 [BZ #18822]
28137 * csu/version.c (__libc_print_version): Add attribute_hidden.
28138
28139 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28140
28141 [BZ #18822]
28142 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28143
28144 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28145
28146 [BZ #18822]
28147 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28148
28149 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28150
28151 [BZ #18822]
28152 * nscd/nscd_helper.c (__nis_hash): New prototype.
28153
28154 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28155
28156 [BZ #18822]
28157 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28158 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28159 libc_hidden_def.
28160 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28161 * termios/tcgetattr.c (__tcgetattr): Likewise.
28162
28163 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28164
28165 [BZ #18822]
28166 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28167 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28168 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28169 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28170 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28171
28172 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28173
28174 [BZ #18822]
28175 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28176
28177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28178
28179 [BZ #18822]
28180 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28181 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28182
28183 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28184
28185 [BZ #18822]
28186 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28187
28188 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28189
28190 [BZ #18822]
28191 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28192 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28193
28194 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28195
28196 [BZ #18822]
28197 * include/ifreq.h: New file.
28198 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28199 (__ifreq): Likewise.
28200 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28201 (__ifreq): Likewise.
28202
28203 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28204
28205 [BZ #18822]
28206 * include/idna.h: New file.
28207 * inet/getnameinfo.c: Include <idna.h> instead of
28208 <libidn/idna.h>.
28209 (__idna_to_unicode_lzlz): Removed.
28210 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28211 <libidn/idna.h>.
28212 (__idna_to_ascii_lz): Removed.
28213 (__idna_to_unicode_lzlz): Likewise.
28214
28215 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28216
28217 [BZ #18822]
28218 * include/plural-exp.h: New file.
28219 * intl/plural-exp.c: Include <plural-exp.h> instead of
28220 "plural-exp.h".
28221
28222 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28223
28224 [BZ #18822]
28225 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28226 "getsourcefilter.h".
28227 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28228 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28229 "getsourcefilter.h".
28230 (__get_sol): Removed.
28231
28232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28233
28234 [BZ #18822]
28235 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28236 to ...
28237 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28238
28239 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28240
28241 [BZ #18822]
28242 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28243 attribute_hidden.
28244
28245 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28246
28247 [BZ #18822]
28248 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28249
28250 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28251
28252 [BZ #18822]
28253 * include/search.h (__tdestroy): Add libc_hidden_proto.
28254 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28255
28256 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28257
28258 [BZ #18822]
28259 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28260
28261 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28262
28263 [BZ #18822]
28264 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28265 attribute_hidden.
28266
28267 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28268
28269 [BZ #18822]
28270 * include/signal.h (__kill): Add libc_hidden_proto.
28271 (__sigblock): Likewise.
28272 (__sigprocmask): Likewise.
28273 (__sigaltstack): Likewise.
28274 * signal/kill.c (__kill): Add libc_hidden_def.
28275 * signal/sigblock.c (__sigblock): Likewise.
28276 * signal/sigprocmask.c (__sigprocmask): Likewise.
28277 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28278 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28279 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28280 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28281 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28282 Likewise.
28283 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28284 Likewise.
28285 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28286 (__sigprocmask): Likewise.
28287 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28288 Likewise.
28289 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28290 (__sigprocmask): Likewise.
28291 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28292 Likewise.
28293
28294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28295
28296 [BZ #18822]
28297 * include/string.h (__strsep): Add libc_hidden_proto.
28298 * string/strsep.c (__strsep): Add libc_hidden_def.
28299
28300 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28301
28302 [BZ #18822]
28303 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28304 attribute_hidden.
28305 (__spawni): Likewise.
28306
28307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28308
28309 [BZ #18822]
28310 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28311 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28312 libc_hidden_def.
28313
28314 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28315
28316 [BZ #18822]
28317 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28318
28319 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28320
28321 [BZ #18822]
28322 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28323 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28324 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28325 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28326 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28327 Likewise.
28328 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28329 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28330
28331 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28332
28333 [BZ #18822]
28334 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28335 (__dcigettext): Likewise.
28336
28337 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28338
28339 [BZ #18822]
28340 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28341 libc_hidden_proto.
28342 (__get_nprocs): Likewise.
28343 (__get_phys_pages): Likewise.
28344 (__get_avphys_pages): Likewise.
28345 (__get_child_max): Add attribute_hidden.
28346 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28347 (__get_nprocs): Likewise.
28348 (__get_phys_pages): Likewise.
28349 (__get_avphys_pages): Likewise.
28350 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28351 libc_hidden_def.
28352 (__get_nprocs): Likewise.
28353 (__get_phys_pages): Likewise.
28354 (__get_avphys_pages): Likewise.
28355 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28356 libc_hidden_def.
28357 (__get_nprocs_conf): Likewise.
28358 (__get_phys_pages): Likewise.
28359 (__get_avphys_pages): Likewise.
28360
28361 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28362
28363 [BZ #18822]
28364 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28365 attribute_hidden.
28366 (__netlink_close): Likewise.
28367 (__netlink_free_handle): Likewise.
28368 (__netlink_request): Likewise.
28369
28370 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28371
28372 [BZ #18822]
28373 * include/rpc/rpc.h (__rpc_thread_variables): Add
28374 attribute_hidden.
28375 (__rpc_thread_svc_cleanup): Likewise.
28376 (__rpc_thread_clnt_cleanup): Likewise.
28377 (__rpc_thread_key_cleanup): Likewise.
28378
28379 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28380
28381 [BZ #18822]
28382 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28383 (__writev): Likewise.
28384 * misc/readv.c (__readv): Add libc_hidden_def.
28385 * misc/writev.c (__writev): Likewise.
28386 * sysdeps/posix/readv.c (__readv): Likewise.
28387 * sysdeps/posix/writev.c (__writev): Likewise.
28388 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28389 (__readv): Likewise.
28390 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28391 (__writev): Likewise.
28392
28393 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28394
28395 [BZ #18822]
28396 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28397 (__regcomp): Add libc_hidden_proto.
28398 (__regexec): Likewise.
28399 (__regfree): Likewise.
28400 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28401 (__regfree): Likewise.
28402 * posix/regexec.c (__regexec): Likewise.
28403
28404 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28405
28406 [BZ #18822]
28407 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28408 (__getutent): Likewise.
28409 (__getutid): Likewise.
28410 (__getutline): Likewise.
28411 (__pututline): Likewise.
28412 (__getutent_r): Likewise.
28413 (__getutid_r): Likewise.
28414 (__getutline_r): Likewise.
28415 (__utmpname): Add attribute_hidden.
28416 (__setutent): Likewise.
28417 (__endutent): Likewise.
28418 * login/getutent.c (__getutent): Add libc_hidden_def.
28419 * login/getutent_r.c (__getutent_r): Likewise.
28420 (__pututline): Likewise.
28421 * login/getutid.c (__getutid): Likewise.
28422 * login/getutid_r.c (__getutid_r): Likewise.
28423 * login/getutline.c (__getutline): Likewise.
28424 * login/getutline_r.c (__getutline_r): Likewise.
28425 * login/updwtmp.c (__updwtmp): Likewise.
28426
28427 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28428
28429 [BZ #18822]
28430 * include/dirent.h (__opendir): Always add attribute_hidden.
28431 (__fdopendir): Likewise.
28432 (__closedir): Likewise.
28433 (__readdir): Likewise.
28434 (__readdir64): Add libc_hidden_proto.
28435 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28436 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28437 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28438 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28439 New alias.
28440
28441 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28442
28443 [BZ #18822]
28444 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28445 * include/netdb.h (__gethostbyaddr_r): Likewise.
28446 (__gethostbyname_r): Likewise.
28447 (__gethostbyname2_r): Likewise.
28448 (__getnetbyaddr_r): Likewise.
28449 (__getnetbyname_r): Likewise.
28450 (__getservbyname_r): Likewise.
28451 (__getservbyport_r): Likewise.
28452 (__getprotobyname_r): Likewise.
28453 (__getprotobynumber_r): Likewise.
28454 (__getnetgrent_r): Likewise.
28455 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28456 (__getrpcbynumber_r): Likewise.
28457 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28458
28459 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28460
28461 [BZ #18822]
28462 * include/stdio.h (__fcloseall): Add attribute_hidden.
28463 (__getline): Likewise.
28464 (__path_search): Likewise.
28465 (__gen_tempname): Likewise.
28466 (__libc_message): Likewise.
28467 (__flockfile): Likewise.
28468 (__funlockfile): Likewise.
28469 (__fxprintf): Likewise.
28470 (__fxprintf_nocancel): Likewise.
28471
28472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28473
28474 [BZ #18822]
28475 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28476 (__sgetsgent_r): Likewise.
28477
28478 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28479
28480 [BZ #18822]
28481 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28482 (__statfs64): Likewise.
28483 (__fstatfs64): Likewise.
28484 * include/sys/statvfs.h (__statvfs64): Likewise.
28485 (__fstatvfs64): Likewise.
28486 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28487 (__statfs_filesize_max): Likewise.
28488 (__statfs_symlinks): Likewise.
28489 (__statfs_chown_restricted): Likewise.
28490
28491 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28492
28493 [BZ #18822]
28494 * include/time.h (__tzstring): Add attribute_hidden.
28495 (__tzfile_read): Likewise.
28496 (__tzfile_compute): Likewise.
28497 (__tzfile_default): Likewise.
28498 (__tzset_parse_tz): Likewise.
28499 (__offtime): Likewise.
28500 (__asctime_r): Likewise.
28501 (__tzset): Likewise.
28502 (__tz_convert): Likewise.
28503 (__getdate_r): Likewise.
28504 (__getclktck): Likewise.
28505
28506 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28507
28508 [BZ #18822]
28509 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28510 (__nscd_unmap): Likewise.
28511 (__nscd_cache_search): Likewise.
28512 (__nscd_get_nl_timestamp): Likewise.
28513 (__nscd_getpwnam_r): Likewise.
28514 (__nscd_getpwuid_r): Likewise.
28515 (__nscd_getgrnam_r): Likewise.
28516 (__nscd_getgrgid_r): Likewise.
28517 (__nscd_gethostbyname_r): Likewise.
28518 (__nscd_gethostbyname2_r): Likewise.
28519 (__nscd_gethostbyaddr_r): Likewise.
28520 (__nscd_getai): Likewise.
28521 (__nscd_getgrouplist): Likewise.
28522 (__nscd_getservbyname_r): Likewise.
28523 (__nscd_getservbyport_r): Likewise.
28524 (__nscd_innetgr): Likewise.
28525 (__nscd_setnetgrent): Likewise.
28526
28527 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28528
28529 [BZ #18822]
28530 * include/gmp.h: Declare internal functions only if _ISOMAC is
28531 undefined.
28532 (__mpn_extract_double): Add attribute_hidden.
28533 (__mpn_extract_long_double): Likewise.
28534 (__mpn_extract_float128): Likewise.
28535 (__mpn_construct_float): Likewise.
28536 (__mpn_construct_double): Likewise.
28537 (__mpn_construct_long_double): Likewise.
28538 (__mpn_construct_float128): Likewise.
28539 (mpn_add_1): Likewise.
28540 (mpn_addmul_1): Likewise.
28541 (mpn_add_n): Likewise.
28542 (mpn_cmp): Likewise.
28543 (mpn_divrem): Likewise.
28544 (mpn_lshift): Likewise.
28545 (mpn_mul): Likewise.
28546 (mpn_mul_1): Likewise.
28547 (mpn_rshift): Likewise.
28548 (mpn_sub_1): Likewise.
28549 (mpn_submul_1): Likewise.
28550 (mpn_sub_n): Likewise.
28551
28552 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28553
28554 [BZ #18822]
28555 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28556 (__wcscat): Likewise.
28557 (__btowc): Likewise.
28558 (__wcrtomb): Likewise.
28559 (__mbsrtowcs): Likewise.
28560 (__wcsrtombs): Likewise.
28561 (__mbsnrtowcs): Likewise.
28562 (__wcsnrtombs): Likewise.
28563 (__wcsncpy): Likewise.
28564 (__wcpncpy): Likewise.
28565 (__wmemcpy): Likewise.
28566 (__wmempcpy): Likewise.
28567 (__wmemmove): Likewise.
28568 (__wcschrnul): Likewise.
28569 (__vfwscanf): Likewise.
28570 (__vswprintf): Likewise.
28571 (__fwprintf): Likewise.
28572 (__vfwprintf): Likewise.
28573
28574 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28575
28576 [BZ #18822]
28577 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28578 (__getgrgid_r): Likewise.
28579 (__getgrnam_r): Likewise.
28580 * include/pwd.h (__getpwuid_r): Likewise.
28581 (__getpwnam_r): Likewise.
28582 (__fgetpwent_r): Likewise.
28583 * include/shadow.h (__getspnam_r): Likewise.
28584 (__sgetspent_r): Likewise.
28585 (__fgetspent_r): Likewise.
28586
28587 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28588
28589 [BZ #18822]
28590 * include/unistd.h (__access): Add attribute_hidden.
28591 (__lseek64): Likewise.
28592 (__libc_pread64): Likewise.
28593 (__pipe2): Likewise.
28594 (__sleep): Likewise.
28595 (__chdir): Likewise.
28596 (__fchdir): Likewise.
28597 (__getcwd): Likewise.
28598 (__rmdir): Likewise.
28599 (__execvpe): Likewise.
28600 (__execve): Likewise.
28601 (__setsid): Likewise.
28602 (__getuid): Likewise.
28603 (__geteuid): Likewise.
28604 (__getgid): Likewise.
28605 (__getegid): Likewise.
28606 (__getgroups): Likewise.
28607 (__group_member): Likewise.
28608 (__ttyname_r): Likewise.
28609 (__isatty): Likewise.
28610 (__readlink): Likewise.
28611 (__unlink): Likewise.
28612 (__gethostname): Likewise.
28613 (__profil): Likewise.
28614 (__getdtablesize): Likewise.
28615 (__brk): Likewise.
28616 (__ftruncate): Likewise.
28617 (__ftruncate64): Likewise.
28618
28619 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28620
28621 [BZ #18822]
28622 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28623 * argp/argp-fs-xinl.c: Likewise.
28624 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28625 * argp/argp-parse.c: Include <argp.h>.
28626 * argp/argp-xinl.c: Likewise.
28627 * include/argp-fmtstream.h: New file.
28628 * include/argp.h (__argp_error): Add attribute_hidden.
28629 (__argp_failure): Likewise.
28630 (__argp_input): Likewise.
28631 (__argp_state_help): Likewise.
28632
28633 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28634
28635 [BZ #18822]
28636 * include/wchar.h (____wcstof_l_internal): New prototype.
28637 (____wcstod_l_internal): Likewise.
28638 (____wcstold_l_internal): Likewise.
28639 (____wcstol_l_internal): Likewise.
28640 (____wcstoul_l_internal): Likewise.
28641 (____wcstoll_l_internal): Likewise.
28642 (____wcstoull_l_internal): Likewise.
28643 (____wcstof128_l_internal): Likewise.
28644 * sysdeps/ieee754/float128/wcstof128.c
28645 (____wcstof128_l_internal): Removed.
28646 * sysdeps/ieee754/float128/wcstof128_l.c
28647 (____wcstof128_l_internal): Likewise.
28648 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28649 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28650 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28651 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28652 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28653 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28654 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28655 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28656 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28657 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28658
28659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28660
28661 [BZ #18822]
28662 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28663 instead of <sys/statvfs.h>.
28664 (__internal_statvfs): Removed.
28665 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28666 instead of <sys/statvfs.h>.
28667 (__internal_statvfs64): Removed.
28668 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28669 "internal_statvfs.h" instead of <sys/statvfs.h>.
28670 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28671 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28672 instead of <sys/statvfs.h>.
28673 (__internal_statvfs): Removed.
28674 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28675 instead of <sys/statvfs.h>.
28676 (__internal_statvfs64): Removed.
28677
28678 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28679
28680 [BZ #18822]
28681 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28682 (__gconv_close): Likewise.
28683 (__gconv): Likewise.
28684 (__gconv_find_transform): Likewise.
28685 (__gconv_lookup_cache): Likewise.
28686 (__gconv_compare_alias_cache): Likewise.
28687 (__gconv_load_cache): Likewise.
28688 (__gconv_get_path): Likewise.
28689 (__gconv_close_transform): Likewise.
28690 (__gconv_release_cache): Likewise.
28691 (__gconv_find_shlib): Likewise.
28692 (__gconv_release_shlib): Likewise.
28693 (__gconv_get_builtin_trans): Likewise.
28694 (__gconv_compare_alias): Likewise.
28695 * include/dlfcn.h (_dlerror_run): Likewise.
28696 * include/stdio.h (__fortify_fail_abort): Likewise.
28697 * include/time.h (__tz_compute): Likewise.
28698 (__strptime_internal): Likewise.
28699 * intl/gettextP.h (_nl_find_domain): Likewise.
28700 (_nl_load_domain): Likewise.
28701 (_nl_find_msg): Likewise.
28702 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28703 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28704 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28705 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28706 (__gai_find_request): Likewise.
28707 (__gai_remove_request): Likewise.
28708 (__gai_notify): Likewise.
28709 (__gai_notify_only): Likewise.
28710 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28711 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28712 (_dl_non_dynamic_init): Likewise.
28713 (_dl_aux_init): Likewise.
28714 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28715 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28716 Likewise.
28717 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28718 (__wcsmbs_clone_conv): Likewise.
28719 (__wcsmbs_named_conv): Likewise.
28720
28721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28722
28723 [BZ #18822]
28724 * include/stdlib.h (__random): Add attribute_hidden.
28725 (__random_r): Likewise.
28726 (__srandom_r): Likewise.
28727 (__initstate_r): Likewise.
28728 (__setstate_r): Likewise.
28729 (__erand48_r): Likewise.
28730 (__nrand48_r): Likewise.
28731 (__jrand48_r): Likewise.
28732 (__srand48_r): Likewise.
28733 (__seed48_r): Likewise.
28734 (__lcong48_r): Likewise.
28735 (__drand48_iterate): Likewise.
28736 (__setenv): Likewise.
28737 (__unsetenv): Likewise.
28738 (__clearenv): Likewise.
28739 (__ptsname_r): Likewise.
28740 (__posix_openpt): Likewise.
28741 (__add_to_environ): Likewise.
28742 (__realpath): Add libc_hidden_proto.
28743 (__ecvt_r): Likewise.
28744 (__fcvt_r): Likewise.
28745 (__qecvt_r): Likewise.
28746 (__qfcvt_r): Likewise.
28747 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
28748 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
28749
28750 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28751
28752 [BZ #18822]
28753 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
28754 * include/time.h (__mktime_internal): Likewise.
28755 * libio/iolibio.h (__fopen_internal): Likewise.
28756
28757 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
28758
28759 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
28760 pointer in frame.
28761 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
28762 Correct offset used to restore PIC register.
28763
28764 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
28765
28766 [BZ libc/22165]
28767 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
28768 code to load address of __getcontext_ret when generating PIC code.
28769
28770 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
28771
28772 * elf/Makefile (tests-static-internal): Add
28773 tst-tls1-static-non-pie.
28774 (LDFLAGS-tst-tls1-static-non-pie): New.
28775 * elf/tst-tls1-static-non-pie.c: New file.
28776
28777 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28778
28779 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
28780 (asinh): Define using libm_alias_double.
28781 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
28782 (cbrt): Define using libm_alias_double.
28783 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
28784 <libm-alias-double.h>.
28785 (copysign): Define using libm_alias_double.
28786 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
28787 (erf): Define using libm_alias_double.
28788 (erfc): Likewise.
28789 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
28790 (expm1): Define using libm_alias_double.
28791 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
28792 (fabs): Define using libm_alias_double.
28793 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
28794 libm_alias_double.
28795 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
28796 <libm-alias-double.h>.
28797 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
28798 libm_alias_double.
28799 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
28800 <libm-alias-double.h>.
28801 (getpayload): Define using libm_alias_double.
28802 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
28803 <libm-alias-double.h>.
28804 (llrint): Define using libm_alias_double.
28805 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
28806 (lrint): Define using libm_alias_double.
28807 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
28808 <libm-alias-double.h>.
28809 (nextup): Define using libm_alias_double.
28810 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
28811 <libm-alias-double.h>.
28812 (roundeven): Define using libm_alias_double.
28813 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
28814 libm_alias_double.
28815 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
28816 <libm-alias-double.h>.
28817 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
28818 using libm_alias_double.
28819 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
28820 (cos): Define using libm_alias_double.
28821 (sin): Likewise.
28822 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
28823 <libm-alias-double.h>.
28824 (sincos): Define using libm_alias_double.
28825 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
28826 (tanh): Define using libm_alias_double.
28827 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
28828 <libm-alias-double.h>.
28829 (totalorder): Define using libm_alias_double.
28830 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
28831 <libm-alias-double.h>.
28832 (totalordermag): Define using libm_alias_double.
28833 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
28834 libm_alias_double.
28835 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
28836 libm_alias_double.
28837 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
28838 <libm-alias-double.h>.
28839 (getpayload): Define using libm_alias_double.
28840 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
28841 <libm-alias-double.h>.
28842 (roundeven): Define using libm_alias_double.
28843 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
28844 <libm-alias-double.h>.
28845 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
28846 <libm-alias-double.h>.
28847 (totalorder): Define using libm_alias_double.
28848 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
28849 <libm-alias-double.h>.
28850 (totalordermag): Define using libm_alias_double.
28851 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
28852 libc compat symbol here.
28853 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
28854 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
28855 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
28856 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
28857 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
28858 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
28859 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
28860 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
28861 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
28862 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
28863
28864 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28865
28866 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
28867 _dl_relocate_static_pie instead of _dl_start to compute load
28868 address in static PIE. Return 0 if _DYNAMIC is undefined for
28869 static executable.
28870
28871 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28872
28873 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
28874 _DYNAMIC is undefined for static executable.
28875
28876 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
28877
28878 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
28879
28880 2017-09-29 Joseph Myers <joseph@codesourcery.com>
28881
28882 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28883
28884 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28885
28886 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
28887 (__ieee754_lgamma_r): Use fabs rather than __fabs.
28888 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
28889 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
28890 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
28891 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
28892 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
28893 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
28894 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
28895 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28896 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
28897 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
28898 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28899 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
28900 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
28901 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
28902 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
28903
28904 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
28905
28906 * math/bits/cmathcalls.h (cimag): Remove inline.
28907 (creal): Remove inline.
28908 (conj): Remove inline.
28909
28910 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28911
28912 * math/Makefile (type-float-routines): Add e_powf_log2_data.
28913 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
28914 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
28915 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
28916 (issignalingf_inline): Likewise.
28917 (POWF_LOG2_TABLE_BITS): Likewise.
28918 (POWF_LOG2_POLY_ORDER): Likewise.
28919 (POWF_SCALE_BITS): Likewise.
28920 (POWF_SCALE): Likewise.
28921 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
28922 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
28923 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
28924
28925 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28926
28927 * math/Makefile (type-float-routines): Add e_log2f_data.
28928 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
28929 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
28930 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
28931 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
28932 * sysdeps/i386/fpu/e_log2f_data.c: New file.
28933 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
28934 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
28935
28936 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
28937
28938 * math/Makefile (type-float-routines): Add e_logf_data.
28939 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
28940 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
28941 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
28942 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
28943 * sysdeps/i386/fpu/e_logf_data.c: New file.
28944 * sysdeps/ia64/fpu/e_logf_data.c: New file.
28945 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
28946
28947 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
28948
28949 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
28950 undefined _DYNAMIC in PIE libc.a.
28951 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28952 Likewse.
28953
28954 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28955
28956 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
28957 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
28958 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
28959 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
28960 (__signbit): Remove.
28961 (__signbitl): Remove.
28962 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
28963 (__signbit): Remove.
28964 (__signbitl): Remove.
28965 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
28966 (__signbit): Remove.
28967 (__signbitl): Remove.
28968 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
28969 (__signbit): Remove.
28970 (__signbitl): Remove.
28971 * sysdeps/tile/bits/mathinline.h: Delete file.
28972 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
28973 (__signbit): Remove.
28974 (__signbitl): Remove.
28975
28976 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
28977
28978 * math/math.h: Improve handling of C99 isgreater macros.
28979 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
28980 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
28981 * sysdeps/powerpc/bits/mathinline.h: Likewise.
28982 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28983 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
28984
28985 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
28986
28987 * sysdeps/aarch64/libm-test-ulps: Update.
28988
28989 2017-09-28 Joseph Myers <joseph@codesourcery.com>
28990
28991 [BZ #22225]
28992 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
28993 math_opt_barrier on argument when doing arithmetic on it.
28994 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
28995 Likewise. Use math_force_eval not math_opt_barrier after
28996 arithmetic.
28997 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
28998 math_opt_barrier on argument when doing arithmetic on it.
28999 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29000 Likewise.
29001
29002 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29003
29004 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29005 libc_hidden_def.
29006 (__freeifaddrs): Likewise.
29007
29008 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29009
29010 * include/dirent.h (__dirfd): New declaration.
29011 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29012 alias.
29013 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29014 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29015 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29016 * include/unistd.h (__revoke): New declaration.
29017 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29018 alias.
29019 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29020 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29021 revoke.
29022 * include/dirent.h (__seekdir): New declaration.
29023 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29024 redefine as weak alias.
29025 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29026 of seekdir.
29027 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29028 and use libc_hidden_def on them.
29029 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29030 them.
29031 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29032 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29033 instead of getifaddrs and freeifaddrs.
29034
29035 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29036
29037 [BZ #18822]
29038 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29039 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29040 (__dso_handle): Remove declaration.
29041 * dlfcn/tstatexit.c (__dso_handle): Removed.
29042 (main): Don't check __dso_handle.
29043 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29044 (main): Don't check __dso_handle.
29045 * include/dso_handle.h: New file.
29046 * malloc/mtrace.c: Include <dso_handle.h>.
29047 (mtrace): Pass __dso_handle directly.
29048 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29049 (__dso_handle): Remove declaration.
29050 (__pthread_atfork): Pass __dso_handle directly.
29051 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29052 (__dso_handle): Removed.
29053 * posix/wordexp-test.c: Include <dso_handle.h>.
29054 (__dso_handle): Remove declaration.
29055 (__app_register_atfork): Pass __dso_handle directly.
29056 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29057 (__dso_handle): Remove declaration.
29058 (at_quick_exit): Pass __dso_handle directly.
29059 * stdlib/atexit.c: Include <dso_handle.h>.
29060 (__dso_handle): Remove declaration.
29061 (atexit): Pass __dso_handle directly.
29062 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29063 (__dso_handle): Removed.
29064
29065 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29066
29067 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29068 using VDSO.
29069
29070 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29071
29072 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29073 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29074 values to correct default value for given type.
29075
29076 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29077
29078 [BZ #22101]
29079 * elf/Makefile (tests): Add tst-debug1.
29080 ($(objpfx)tst-debug1): New.
29081 ($(objpfx)tst-debug1.out): Likewise.
29082 ($(objpfx)tst-debug1mod1.so): Likewise.
29083 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29084 with p_filesz == 0.
29085 * elf/tst-debug1.c: New file.
29086
29087 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29088
29089 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29090 Define using __ifunc.
29091
29092 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29093
29094 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29095 exp2f() values.
29096
29097 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29098
29099 [BZ #22156]
29100 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29101
29102 2017-09-26 Florian Weimer <fweimer@redhat.com>
29103
29104 * resolv/Makefile (tests-internal): Fix typo in comment.
29105
29106 2017-09-26 Florian Weimer <fweimer@redhat.com>
29107
29108 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29109
29110 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29111
29112 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29113 Use an union instead of a max_align_t array for __space,
29114 so that __space is the same size on all platforms.
29115 * malloc/scratch_buffer_grow_preserve.c
29116 (__libc_scratch_buffer_grow_preserve): Likewise.
29117
29118 [BZ #22183]
29119 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29120 version to 2.
29121 * posix/Makefile (routines): Add glob-lstat-compat and
29122 glob64-lstat-compat.
29123 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29124 * posix/glob-lstat-compat.c: New file.
29125 * posix/glob64-lstat-compat.c: Likewise.
29126 * posix/tst-glob_lstat_compat.c: Likewise.
29127 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29128 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29129 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29130 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29131 Likewise.
29132 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29133 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29134 * posix/glob.c (glob_lstat): New function.
29135 (glob): Rename to __glob and add versioned symbol to 2.27.
29136 (glob_in_dir): Use glob_lstat.
29137 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29138 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29139 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29140 2.27.
29141 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29142 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29143 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29144 gl_lstat on glob call.
29145 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29146 and glob64 symbols.
29147 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29148 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29149 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29150 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29151 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29152 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29153 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29154 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29155 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29156 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29157 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29158 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29159 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29160 Likewise.
29161 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29163 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29164 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29165 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29166 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29167 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29168 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29169 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29170 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29171 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29172 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29173
29174 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29175
29176 * configure.ac (AS): Require binutils 2.25 or later.
29177 * configure: Regenerated.
29178
29179 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29180
29181 [BZ #22207]
29182 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29183 VM size.
29184
29185 2017-09-25 DJ Delorie <dj@redhat.com>
29186
29187 [BZ #22161]
29188 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29189 resetting timeout.
29190
29191 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29192
29193 * sysdeps/ieee754/dbl-64/sincos32.h
29194 [SINCCOS32_H]: Remove define.
29195 [SINCOS32_H]: Define.
29196
29197 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29198
29199 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29200 (exp2f): Likewise.
29201 * math/w_exp2f.c: New file.
29202 * math/w_expf.c: New file.
29203 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29204 * math/w_expf_compat.c (__expf_compat): Likewise.
29205 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29206 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29207 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29208 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29209 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29210 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29211 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29212 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29213 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29214 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29215 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29216 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29217 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29218 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29220 Likewise.
29221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29222 Likewise.
29223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29224 Likewise.
29225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29226 Likewise.
29227 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29228 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29229 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29230 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29231 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29232 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29233 Likewise.
29234 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29235 Likewise.
29236 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29237 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29238 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29239
29240 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29241
29242 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29243 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29244 (roundtoint, converttoint): Likewise.
29245 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29246 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29247 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29248 * sysdeps/ieee754/flt-32/math_config.h: New file.
29249 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29250 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29251 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29252 * sysdeps/i386/fpu/math_errf.c: New file.
29253 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29254 * sysdeps/ia64/fpu/math_errf.c: New file.
29255 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29256 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29257
29258 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29259
29260 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29261 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29262 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29263 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29264 to make sure that these symbols are defined.
29265 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29266 of <limits.h>
29267 (__need_NULL): Do not define.
29268 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29269 alignment.
29270 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29271 CMGROUP_MAX, cmsgcred): Do not define.
29272 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29273 NULL.
29274 * bits/socket.h: Likewise.
29275 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29276 __gettimeofday instead of gettimeofday.
29277 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29278 instead of settimeofday.
29279
29280 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29281
29282 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29283 (asinhf): Define using libm_alias_float.
29284 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29285 (atanf): Define using libm_alias_float.
29286 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29287 (cbrtf): Define using libm_alias_float.
29288 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29289 (ceilf): Define using libm_alias_float.
29290 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29291 <libm-alias-float.h>.
29292 (copysignf): Define using libm_alias_float.
29293 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29294 (cosf): Define using libm_alias_float.
29295 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29296 (erff): Define using libm_alias_float.
29297 (erfcf): Likewise.
29298 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29299 (expm1f): Define using libm_alias_float.
29300 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29301 (fabsf): Define using libm_alias_float.
29302 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29303 (floorf): Define using libm_alias_float.
29304 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29305 (frexpf): Define using libm_alias_float.
29306 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29307 libm_alias_float.
29308 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29309 <libm-alias-float.h>.
29310 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29311 libm_alias_float.
29312 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29313 <libm-alias-float.h>.
29314 (getpayloadf): Define using libm_alias_float.
29315 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29316 <libm-alias-float.h>.
29317 (llrintf): Define using libm_alias_float.
29318 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29319 <libm-alias-float.h>.
29320 (llroundf): Define using libm_alias_float.
29321 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29322 (logbf): Define using libm_alias_float.
29323 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29324 (lrintf): Define using libm_alias_float.
29325 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29326 (lroundf): Define using libm_alias_float.
29327 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29328 (modff): Define using libm_alias_float.
29329 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29330 <libm-alias-float.h>.
29331 (nearbyintf): Define using libm_alias_float.
29332 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29333 <libm-alias-float.h>.
29334 (nextafterf): Define using libm_alias_float.
29335 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29336 <libm-alias-float.h>.
29337 (nextupf): Define using libm_alias_float.
29338 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29339 <libm-alias-float.h>.
29340 (remquof): Define using libm_alias_float.
29341 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29342 (rintf): Define using libm_alias_float.
29343 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29344 <libm-alias-float.h>.
29345 (roundevenf): Define using libm_alias_float.
29346 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29347 (roundf): Define using libm_alias_float.
29348 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29349 using libm_alias_float.
29350 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29351 <libm-alias-float.h>.
29352 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29353 Define using libm_alias_float.
29354 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29355 <libm-alias-float.h>.
29356 (sincosf): Define using libm_alias_float.
29357 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29358 (sinf): Define using libm_alias_float.
29359 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29360 (tanf): Define using libm_alias_float.
29361 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29362 (tanhf): Define using libm_alias_float.
29363 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29364 <libm-alias-float.h>.
29365 (totalorderf): Define using libm_alias_float.
29366 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29367 <libm-alias-float.h>.
29368 (totalordermagf): Define using libm_alias_float.
29369 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29370 (truncf): Define using libm_alias_float.
29371 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29372 libm_alias_float.
29373 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29374 libm_alias_float.
29375
29376 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29377
29378 [BZ #22146]
29379 math/math.h: Let fpclassify use the builtin in C++ mode, even
29380 when optimazing for size.
29381
29382 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29383
29384 * csu/Makefile (generated): Do not add version-info.h.
29385 (before-compile): Likewise.
29386 (all-Banner-files): Remove variable.
29387 ($(objpfx)version-info.h): Remove rule.
29388 * csu/version.c (banner): Do not include "version-info.h".
29389 * libidn/Banner: Remove.
29390 * manual/contrib.texi (Simon Josefsson): New entry.
29391
29392 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29393
29394 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29395 Remove conditionals on LDBL_MANT_DIG.
29396 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29397 (__ieee754_lgammal_r): Likewise.
29398
29399 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29400
29401 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29402 _Float128 and L().
29403 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29404 _Float128 and L(). Replace _Float128 with long double and L(x)
29405 with xL, throughout the file.
29406 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29407 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29408 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29409 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29410
29411 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29412
29413 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29414 sysdeps/ieee754/ldbl-128ibm.
29415 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29416 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29417 of including it. Keep _Float128 and L() intact. These will be
29418 reviewed by a separate patch.
29419 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29420 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29421 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29422 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29423
29424 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29425
29426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29427 (__finitef128): Define to __redirect___finitef128.
29428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29429 (__isinff128): Define to __redirect___isinff128.
29430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29431 (__isnanf128): Define to __redirect___isnanf128.
29432
29433 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29434
29435 * sysdeps/powerpc/powerpc64le/Makefile
29436 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29437 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29438
29439 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29440 Carlos O'Donell <carlos@redhat.com>
29441
29442 [BZ #22180]
29443 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29444 * stdlib/test-dlclose-exit-race.c: New file.
29445 * stdlib/test-dlclose-exit-race-helper.c: New file.
29446 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29447
29448 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29449
29450 * crypt/Banner: Remove file.
29451 * nptl/Banner: Likewise.
29452 * resolv/Banner: Likewise.
29453 * soft-fp/Banner: Likewise.
29454 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29455 ($(objpfx)version.d): Remove dependency on banner.h.
29456 ($(objpfx)version.os): Likewise.
29457 * nptl/version.c (banner): Do not include banner.h.
29458 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29459 Jelinek and BIND code.
29460
29461 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29462 Carlos O'Donell <carlos@redhat.com>
29463
29464 * support/xdlfcn.h: New file.
29465 * support/xdlfcn.c: New file.
29466 * support/Makefile (libsupport-routines): Add xdlfcn.
29467 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29468
29469 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29470
29471 [BZ #20142]
29472 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29473 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29474 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29475 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29476 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29477 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29478 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29479 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29480
29481 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29482 Ricky Zhou <rickyz@google.com>
29483 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29484
29485 [BZ #14333]
29486 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29487 Remove atomics.
29488 (__new_exitfn): Fail registration when we finished at_exit processing.
29489 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29490 * stdlib/on_exit.c (__on_exit): Likewise.
29491 * stdlib/exit.c (__exit_funcs_done): New variable.
29492 (__run_exit_handlers): Use __exit_funcs_lock.
29493 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29494 declarations.
29495 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29496 (test-cxa_atexit-race, test-on_exit-race): New tests.
29497 * stdlib/test-atexit-race-common.c: New file.
29498 * stdlib/test-atexit-race.c: New file.
29499 * stdlib/test-at_quick_exit-race.c: New file.
29500 * stdlib/test-cxa_atexit-race.c: New file.
29501 * stdlib/test-on_exit-race.c: New file.
29502
29503 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29504
29505 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29506 * benchtests/exp2f-inputs: Copy of expf-inputs.
29507 * benchtests/log2f-inputs: Copy of logf-inputs.
29508
29509 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29510
29511 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29512 Explicitly take address of first element of array arguments in
29513 call to INLINE_SYSCALL.
29514
29515 2017-09-19 Andreas Schwab <schwab@suse.de>
29516
29517 [BZ #22134]
29518 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29519 execveat first.
29520 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29521 unimplemented.
29522 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29523 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29524 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29525 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29526 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29527 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29528 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29529 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29530 * posix/Makefile (tests): Add tst-fexecve.
29531 * posix/tst-fexecve.c: New file.
29532
29533 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29534
29535 * benchtests/Makefile: Add logf benchmark.
29536 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29537
29538 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29539
29540 * benchtests/Makefile: Add expf benchmark.
29541 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29542
29543 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29544
29545 * csu/Makefile: Add -funwind-tables to libc-start.c.
29546 * debug/Makefile: Add -funwind-tables to backtrace.c.
29547 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29548 * sysdeps/arm/Makefile: Likewise.
29549 * sysdeps/i386/Makefile: Likewise.
29550 * sysdeps/m68k/Makefile: Likewise.
29551 * sysdeps/mips/Makefile: Likewise.
29552 * sysdeps/nios2/Makefile: Likewise.
29553 * sysdeps/sh/Makefile: Likewise.
29554 * sysdeps/sparc/Makefile: Likewise.
29555
29556 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29557
29558 * benchtests/Makefile (bench-math): Add trunc and truncf.
29559 (CFLAGS-bench-trunc.c): New variable.
29560 (CFLAGS-bench-truncf.c): Likewise.
29561 * benchtests/trunc-inputs: New file.
29562 * benchtests/truncf-inputs: Likewise.
29563
29564 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29565
29566 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29567
29568 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29569
29570 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29571 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29572 redefine.
29573 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29574 (exp10l): Define as weak alias.
29575 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29576 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29577 and redefine.
29578 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29579 (remainderl): Define as weak alias.
29580
29581 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29582 (fmal): Define using libm_alias_ldouble.
29583 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29584 (acoshl): Define using libm_alias_ldouble.
29585 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29586 (acosl): Define using libm_alias_ldouble.
29587 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29588 (asinl): Define using libm_alias_ldouble.
29589 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29590 (atan2l): Define using libm_alias_ldouble.
29591 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29592 (atanhl): Define using libm_alias_ldouble.
29593 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29594 (coshl): Define using libm_alias_ldouble.
29595 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29596 (exp10l): Define using libm_alias_ldouble.
29597 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29598 (exp2l): Define using libm_alias_ldouble.
29599 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29600 (expl): Define using libm_alias_ldouble.
29601 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29602 (fmodl): Define using libm_alias_ldouble.
29603 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29604 (hypotl): Define using libm_alias_ldouble.
29605 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29606 (j0l): Define using libm_alias_ldouble.
29607 (y0l): Likewise.
29608 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29609 (j1l): Define using libm_alias_ldouble.
29610 (y1l): Likewise.
29611 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29612 (jnl): Define using libm_alias_ldouble.
29613 (ynl): Likewise.
29614 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29615 (log10l): Define using libm_alias_ldouble.
29616 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29617 (log2l): Define using libm_alias_ldouble.
29618 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29619 (logl): Define using libm_alias_ldouble.
29620 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29621 (powl): Define using libm_alias_ldouble.
29622 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29623 (remainderl): Define using libm_alias_ldouble.
29624 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29625 (sinhl): Define using libm_alias_ldouble.
29626 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29627 (sqrtl): Define using libm_alias_ldouble.
29628 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29629 (tgammal): Define using libm_alias_ldouble.
29630 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29631 (exp10l): Do not use long_double_symbol here.
29632 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29633 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29634 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29635 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29636 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29637 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29638 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29639 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29640 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29641 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29642 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29643 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29644 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29645 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29646 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29647 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29648 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29649 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29650 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29651 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29652 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29653 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29654
29655 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29656
29657 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29658 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29659
29660 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29661
29662 * io/read.c (read): Add libc_hidden_weak.
29663 * sysdeps/mach/hurd/read.c (read): Likewise.
29664 * io/write.c (write): Likewise.
29665 * sysdeps/mach/hurd/write.c (write): Likewise.
29666 * io/pread64.c (__pread64): Likewise.
29667 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29668 * posix/pread64.c (__pread64): Add libc_hidden_def.
29669
29670 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29671
29672 * benchtests/scripts/compare_strings.py: New option -g.
29673 (draw_graph): Print a message that a graph is being generated.
29674 (process_results): Generate graph only if -g is passed.
29675 (main): Process option -g.
29676
29677 * benchtests/scripts/compare_strings.py (process_results):
29678 Better spacing for output.
29679
29680 * benchtests/scripts/compare_strings.py: Use argparse.
29681 * benchtests/README: Document existence of compare_strings.py.
29682
29683 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29684
29685 * math/s_fma.c: Include <libm-alias-double.h>.
29686 (fma): Define using libm_alias_double.
29687 * math/s_nextafter.c: Include <libm-alias-double.h>.
29688 (nextafter): Define using libm_alias_double.
29689 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29690 (acos): Define using libm_alias_double.
29691 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29692 (aocsh): Define using libm_alias_double.
29693 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29694 (asin): Define using libm_alias_double.
29695 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29696 (atan2): Define using libm_alias_double.
29697 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29698 (atanh): Define using libm_alias_double.
29699 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29700 (cosh): Define using libm_alias_double.
29701 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29702 (exp10): Define using libm_alias_double.
29703 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29704 (exp2): Define using libm_alias_double.
29705 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29706 (exp): Define using libm_alias_double.
29707 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29708 (fmod): Define using libm_alias_double.
29709 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29710 (hypot): Define using libm_alias_double.
29711 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29712 (j0): Define using libm_alias_double.
29713 (y0): Likewise.
29714 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29715 (j1): Define using libm_alias_double.
29716 (y1): Likewise.
29717 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29718 (jn): Define using libm_alias_double.
29719 (yn): Likewise.
29720 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29721 (log10): Define using libm_alias_double.
29722 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29723 (log2): Define using libm_alias_double.
29724 * math/w_log_compat.c: Include <libm-alias-double.h>.
29725 (log): Define using libm_alias_double.
29726 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29727 (pow): Define using libm_alias_double.
29728 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29729 (remainder): Define using libm_alias_double.
29730 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29731 (sinh): Define using libm_alias_double.
29732 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29733 (sqrt): Define using libm_alias_double.
29734 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29735 (tgamma): Define using libm_alias_double.
29736 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29737 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29738 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29739 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29740 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29741 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29742 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
29743 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
29744 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
29745 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
29746 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
29747 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
29748 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
29749 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
29750 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
29751 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
29752 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
29753 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
29754 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
29755 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
29756 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
29757 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
29758 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
29759 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
29760 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
29761
29762 * math/e_acoshl.c: Remove.
29763 * math/e_acosl.c: Likewise.
29764 * math/e_asinl.c: Likewise.
29765 * math/e_atan2l.c: Likewise.
29766 * math/e_atanhl.c: Likewise.
29767 * math/e_coshl.c: Likewise.
29768 * math/e_expl.c: Likewise.
29769 * math/e_fmodl.c: Likewise.
29770 * math/e_gammal_r.c: Likewise.
29771 * math/e_hypotl.c: Likewise.
29772 * math/e_j0l.c: Likewise.
29773 * math/e_j1l.c: Likewise.
29774 * math/e_jnl.c: Likewise.
29775 * math/e_lgammal_r.c: Likewise.
29776 * math/e_log10l.c: Likewise.
29777 * math/e_log2l.c: Likewise.
29778 * math/e_logl.c: Likewise.
29779 * math/e_powl.c: Likewise.
29780 * math/e_rem_pio2l.c: Likewise.
29781 * math/e_sinhl.c: Likewise.
29782 * math/e_sqrtf128.c: Likewise.
29783 * math/e_sqrtl.c: Likewise.
29784 * math/k_cosl.c: Likewise.
29785 * math/k_sinl.c: Likewise.
29786 * math/k_tanl.c: Likewise.
29787 * math/s_asinhl.c: Likewise.
29788 * math/s_atanl.c: Likewise.
29789 * math/s_cbrtl.c: Likewise.
29790 * math/s_erfl.c: Likewise.
29791 * math/s_expm1l.c: Likewise.
29792 * math/s_log1pl.c: Likewise.
29793 * math/s_tanhl.c: Likewise.
29794
29795 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29796
29797 [BZ #21745]
29798 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
29799 [$(subdir) = math] (sysdep_calls): New variable. Has the
29800 previous contents of sysdep_routines, but re-sorted..
29801 [$(subdir) = math] (sysdep_routines): Re-use the contents from
29802 sysdep_calls.
29803 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
29804 defined in sysdep_calls and replace by the respective m_* names.
29805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
29806 (compat_symbol): Undefine to avoid duplicated compat symbols in
29807 libc.
29808
29809 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29810
29811 * math/s_fmaf.c: Include <libm-alias-float.h>.
29812 (fmaf): Define using libm_alias_float.
29813 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
29814 (acosf): Define using libm_alias_float.
29815 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
29816 (acoshf): Define using libm_alias_float.
29817 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
29818 (asinf): Define using libm_alias_float.
29819 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
29820 (atan2f): Define using libm_alias_float.
29821 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
29822 (atanhf): Define using libm_alias_float.
29823 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
29824 (coshf): Define using libm_alias_float.
29825 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
29826 (exp10f): Define using libm_alias_float.
29827 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
29828 (fmodf): Define using libm_alias_float.
29829 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
29830 (hypotf): Define using libm_alias_float.
29831 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
29832 (j0f): Define using libm_alias_float.
29833 (y0f): Likewise.
29834 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
29835 (j1f): Define using libm_alias_float.
29836 (y1f): Likewise.
29837 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
29838 (jnf): Define using libm_alias_float.
29839 (ynf): Likewise.
29840 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
29841 (log10f): Define using libm_alias_float.
29842 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
29843 (log2f): Define using libm_alias_float.
29844 * math/w_logf_compat.c: Include <libm-alias-float.h>.
29845 (logf): Define using libm_alias_float.
29846 * math/w_powf_compat.c: Include <libm-alias-float.h>.
29847 (powf): Define using libm_alias_float.
29848 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
29849 (remainderf): Define using libm_alias_float.
29850 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
29851 (sinhf): Define using libm_alias_float.
29852 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
29853 (sqrtf): Define using libm_alias_float.
29854 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
29855 (tgammaf): Define using libm_alias_float.
29856
29857 2017-09-14 Joseph Myers <joseph@codesourcery.com>
29858
29859 * include/math.h (roundeven): Change hidden_proto call to
29860 __roundeven.
29861 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
29862 alias.
29863 [NO_LONG_DOUBLE] (__j0l): New strong alias.
29864 (y0): Rename to __y0 and define as weak alias.
29865 [NO_LONG_DOUBLE] (__y0l): New strong alias.
29866 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
29867 alias.
29868 (y0f): Rename to __y0f and define as weak alias.
29869 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
29870 alias.
29871 [NO_LONG_DOUBLE] (__j1l): New strong alias.
29872 (y1): Rename to __y1 and define as weak alias.
29873 [NO_LONG_DOUBLE] (__y1l): New strong alias.
29874 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
29875 alias.
29876 (y1f): Rename to __y1f and define as weak alias.
29877 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
29878 alias.
29879 [NO_LONG_DOUBLE] (__jnl): New strong alias.
29880 (yn): Rename to __yn and define as weak alias.
29881 [NO_LONG_DOUBLE] (__ynl): New strong alias.
29882 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
29883 alias.
29884 (ynf): Rename to __ynf and define as weak alias.
29885 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
29886 (fromfp): Define as weak alias.
29887 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
29888 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
29889 (fromfpx): Define as weak alias.
29890 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
29891 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
29892 __getpayload and define as weak alias.
29893 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29894 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
29895 __roundeven and define as weak alias.
29896 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29897 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
29898 __setpayload.
29899 (setpayload): Define as weak alias.
29900 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
29901 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
29902 __setpayloadsig.
29903 (setpayloadsig): Define as weak alias.
29904 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
29905 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
29906 __totalorder and define as weak alias.
29907 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29908 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
29909 to __totalordermag and define as weak alias.
29910 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29911 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
29912 (ufromfp): Define as weak alias.
29913 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
29914 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
29915 __ufromfpx.
29916 (ufromfpx): Define as weak alias.
29917 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
29918 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
29919 Rename to __getpayload and define as weak alias.
29920 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
29921 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
29922 Rename to __roundeven and define as weak alias.
29923 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
29924 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
29925 Rename to __totalorder and define as weak alias.
29926 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
29927 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
29928 (totalordermag): Rename to __totalordermag and define as weak
29929 alias.
29930 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
29931 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
29932 macro.
29933 (__roundevenl): Likewise.
29934 (__totalorderl): Likewise.
29935 (__totalordermagl): Likewise
29936 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
29937 __fromfpf128.
29938 (fromfpf128): Define as weak alias.
29939 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
29940 __fromfpxf128.
29941 (fromfpxf128): Define as weak alias.
29942 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
29943 __setpayloadf128.
29944 (setpayloadf128): Define as weak alias.
29945 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
29946 __setpayloadsigf128.
29947 (setpayloadsigf128): Define as weak alias.
29948 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
29949 __ufromfpf128.
29950 (ufromfpf128): Define as weak alias.
29951 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
29952 __ufromfpxf128.
29953 (ufromfpxf128): Define as weak alias.
29954 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
29955 (fromfpf): Define as weak alias.
29956 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
29957 __fromfpxf.
29958 (fromfpxf): Define as weak alias.
29959 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
29960 __getpayloadf and define as weak alias.
29961 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
29962 __roundevenf and define as weak alias.
29963 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
29964 __setpayloadf.
29965 (setpayloadf): Define as weak alias.
29966 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
29967 __setpayloadsigf.
29968 (setpayloadsigf): Define as weak alias.
29969 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
29970 __totalorderf and define as weak alias.
29971 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
29972 Rename to __totalordermagf and define as weak alias.
29973 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
29974 __ufromfpf.
29975 (ufromfpf): Define as weak alias.
29976 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
29977 __ufromfpxf.
29978 (ufromfpxf): Define as weak alias.
29979 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
29980 __fromfpl.
29981 (fromfpl): Define as weak alias.
29982 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
29983 __fromfpxl.
29984 (fromfpxl): Define as weak alias.
29985 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
29986 to __getpayloadl and define as weak alias.
29987 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
29988 __roundevenl and define as weak alias.
29989 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
29990 __setpayloadl.
29991 (setpayloadl): Define as weak alias.
29992 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
29993 __setpayloadsigl.
29994 (setpayloadsigl): Define as weak alias.
29995 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
29996 to __totalorderl and define as weak alias.
29997 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
29998 Rename to __totalordermagl and define as weak alias.
29999 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30000 __ufromfpl.
30001 (ufromfpl): Define as weak alias.
30002 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30003 __ufromfpxl.
30004 (ufromfpxl): Define as weak alias.
30005 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30006 __fromfpl.
30007 (fromfpl): Define as weak alias.
30008 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30009 __fromfpxl.
30010 (fromfpxl): Define as weak alias.
30011 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30012 Rename to __getpayloadl and define as weak alias.
30013 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30014 to __roundevenl and define as weak alias. Call __roundeven
30015 instead of roundeven.
30016 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30017 __setpayloadl.
30018 (setpayloadl): Define as weak alias.
30019 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30020 __setpayloadsigl.
30021 (setpayloadsigl): Define as weak alias.
30022 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30023 Rename to __totalorderl and define as weak alias.
30024 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30025 Rename to __totalordermagl and define as weak alias.
30026 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30027 __ufromfpl.
30028 (ufromfpl): Define as weak alias.
30029 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30030 __ufromfpxl.
30031 (ufromfpxl): Define as weak alias.
30032 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30033 __fromfpl.
30034 (fromfpl): Define as weak alias.
30035 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30036 __fromfpxl.
30037 (fromfpxl): Define as weak alias.
30038 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30039 __getpayloadl and define as weak alias.
30040 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30041 __roundevenl and define as weak alias.
30042 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30043 __setpayloadl.
30044 (setpayloadl): Define as weak alias.
30045 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30046 __setpayloadsigl.
30047 (setpayloadsigl): Define as weak alias.
30048 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30049 __totalorderl and define as weak alias.
30050 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30051 Rename to __totalordermagl and define as weak alias.
30052 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30053 __ufromfpl.
30054 (ufromfpl): Define as weak alias.
30055 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30056 __ufromfpxl.
30057 (ufromfpxl): Define as weak alias.
30058
30059 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30060
30061 * benchtests/bench-string.h (realloc_bufs): New function.
30062 (test_init): Call it.
30063 * benchtests/bench-memset-large.c (do_test): Likewise.
30064 * benchtests/bench-memset.c (do_test): Likewise.
30065
30066 * benchtests/bench-memset-large.c: Print output in JSON
30067 format.
30068 * benchtests/bench-memset.c: Likewise.
30069
30070 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30071
30072 [BZ #21084]
30073 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30074 * iconvdata/Makefile: Add IBM858.
30075 * iconvdata/gconv-modules: Likewise.
30076 * iconvdata/tst-tables.sh: Likewise.
30077 * iconvdata/ibm858.c: New file.
30078 * localedata/charmaps/IBM858: Likewise.
30079
30080 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30081
30082 [BZ #22023]
30083 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30084 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30085
30086 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30087
30088 [BZ #22112]
30089 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30090 and add tel_int_fmt.
30091
30092 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30093
30094 * sysdeps/generic/libm-alias-float128.h: New file.
30095 * sysdeps/generic/math-type-macros-float128.h: Include
30096 <libm-alias-float128.h>.
30097 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30098
30099 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30100
30101 * sysdeps/generic/libm-alias-ldouble.h: New file.
30102 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30103 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30104 * sysdeps/generic/math-type-macros-ldouble.h: Include
30105 <libm-alias-ldouble.h>.
30106 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30107 libm_alias_ldouble.
30108
30109 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30110
30111 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30112 * math/w_exp_compat.c: ... here.
30113 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30114 * math/w_expf_compat.c: ... here.
30115 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30116 * math/w_expl_compat.c: ... here.
30117 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30118 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30119 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30120 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30121
30122 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30123
30124 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30125 redefine.
30126 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30127 macro.
30128 (ldexpl): Only define as compat symbol for libc, not libm.
30129 (scalbnl): Define as compat symbol for libc here.
30130 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30131 define for [IS_IN (libc)].
30132 (__ldexpl_2): Remove alias.
30133 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30134 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30135 name in long_double_symbol call.
30136 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30137 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30138 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30139 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30140 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30141 Remove macro.
30142 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30143 Define as compat symbol.
30144
30145 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30146
30147 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30148 * sysdeps/unix/sysv/linux/alpha/Makefile
30149 [$(subdir) = csu] (sysdep_routines): Remove rule.
30150
30151 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30152
30153 * sysdeps/generic/libm-alias-double.h: New file.
30154 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30155 * sysdeps/generic/math-type-macros-double.h: Include
30156 <libm-alias-double.h>.
30157 [declare_mgen_alias] (declare_mgen_alias): Define to use
30158 libm_alias_double.
30159 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30160 (M_LIBM_NEED_COMPAT): Remove macro.
30161 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30162 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30163 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30164 code.
30165 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30166 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30167 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30168 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30169 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30170 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30171 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30172 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30173 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30174 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30175 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30176 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30177 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30178 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30179 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30180 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30181 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30182 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30183 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30184 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30185 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30186 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30187 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30188 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30189 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30190 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30191 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30192 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30193 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30194 macro.
30195 (declare_mgen_alias): New macro.
30196 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30197 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30198 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30199 (M_LIBM_NEED_COMPAT): Remove macro.
30200 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30201 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30202 <first-versions.h>.
30203 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30204 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30205
30206 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30207
30208 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30209 (declare_mgen_alias_2): Remove.
30210 * sysdeps/generic/math-type-macros-double.h
30211 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30212 Likewise.
30213 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30214 alias.
30215 (ldexp): Define with declare_mgen_alias.
30216 (scalbn): Likewise.
30217
30218 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30219
30220 * grp/initgroups.c: Include config.h.
30221 (DEFAULT_CONFIG): New macro.
30222 (internal_getgrouplist): Use DEFAULT_CONFIG.
30223 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30224 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30225 (DEFAULT_DEFCONFIG): New macro.
30226 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30227 * nss/grp-lookup.c: Include config.h
30228 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30229 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30230 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30231 * manual/nss.texi: Update default values section.
30232
30233 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30234
30235 [BZ #21967]
30236 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30237 New.
30238 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30239 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30240 Handle MathVec_Prefer_No_AVX512.
30241 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30242 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30243 is set.
30244
30245 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30246
30247 * posix/sched_primax.c (__sched_get_priority_max): Add
30248 libc_hidden_def.
30249 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30250 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30251 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30252 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30253 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30254 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30255 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30256 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30257 Add aliases.
30258
30259 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30260
30261 * sysdeps/generic/libm-alias-float.h: New file.
30262 * sysdeps/generic/math-type-macros-float.h: Include
30263 <libm-alias-float.h>.
30264 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30265
30266 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30267
30268 [BZ #22093]
30269 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30270 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30271 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30272 (HWCAP_IMPORTANT): Likewise.
30273 (HWCAP_X86_64): New enum.
30274 (HWCAP_X86_AVX512_1): Updated.
30275 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30276 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30277 (modules-names): Add x86_64/tst-x86_64mod-1.
30278 (LDFLAGS-tst-x86_64mod-1.so): New.
30279 ($(objpfx)tst-x86_64-1): Likewise.
30280 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30281 (tst-x86_64-1-clean): Likewise.
30282 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30283 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30284
30285 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30286
30287 * po/sv.po: Update translations.
30288 * po/fr.po: Likewise.
30289
30290 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30291
30292 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30293 seconds.
30294 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30295 seconds.
30296 * elf/rtld-Rules: Fix $(error) use.
30297
30298 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30299
30300 [BZ #14925]
30301 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30302 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30303 * localedata/locales/bn_BD: “Bengali” was still used in some
30304 comments. Change it to “Bangla”.
30305
30306 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30307
30308 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30309
30310 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30311
30312 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30313 thunderx2t99p1 to list of cpu names.
30314 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30315 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30316
30317 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30318
30319 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30320 Use strcmp instead of tunable_is_name.
30321
30322 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30323
30324 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30325 (F_GET_RW_HINT): New macro.
30326 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30327 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30328 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30329 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30330 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30331 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30332 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30333 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30334 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30335
30336 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30337 (F_ADD_SEALS): New macro.
30338 [__USE_GNU] (F_GET_SEALS): Likewise.
30339 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30340 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30341 [__USE_GNU] (F_SEAL_GROW): Likewise.
30342 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30343
30344 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30345
30346 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30347 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30348 * posix/glob_internal.h (__glob_pattern_type):
30349 * posix/glob.c (glob):
30350 * posix/glob_pattern_p.c (__glob_pattern_p):
30351 Use them.
30352
30353 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30354 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30355 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30356 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30357 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30359 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30360 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30361 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30362 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30363 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30364 * sysdeps/wordsize-64/glob.c: Likewise.
30365 * sysdeps/wordsize-64/glob64.c: Likewise.
30366 * sysdeps/wordsize-64/globfree.c: Likewise.
30367 * sysdeps/wordsize-64/globfree64.c: Likewise.
30368 * sysdeps/unix/sysv/linux/glob.c: New file.
30369 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30370 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30371 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30372 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30373 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30374 adds !GLOB_NO_OLD_VERSION as an extra condition.
30375 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30376 using relative path instead of absolute one.
30377 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30378 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30379 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30380 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30381 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30382 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30383
30384 [BZ #1062]
30385 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30386 (glob): Use the same scratch buffer for both getlogin_r and
30387 getpwnam_r. Don’t require preallocation of the login name. This
30388 simplifies storage allocation, and corrects the handling of
30389 long login names.
30390
30391 [BZ #1062]
30392 * posix/glob.c (glob): Port recent patches to platforms
30393 lacking getpwnam_r.
30394 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30395 returns an error number rather than setting errno.
30396
30397 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30398 instead of GCC extension.
30399 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30400 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30401 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30402
30403 [BZ #866]
30404 [BZ #1062]
30405 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30406 * posix/bug-glob1.c: Remove file.
30407 * posix/tst-glob_symlinks.c: New file.
30408 * posix/glob.c (__lstat64): New macro.
30409 (is_dir): New function.
30410 (glob, glob_in_dir): Match symlinks even if they are dangling.
30411 (link_stat, link_exists_p): Remove. All uses removed.
30412
30413 [BZ #1062]
30414 [BZ #19971]
30415 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30416 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30417 All uses removed.
30418
30419 [BZ #1062]
30420 CVE-2017-15671
30421 * posix/Makefile (routines): Add globfree, globfree64, and
30422 glob_pattern_p.
30423 * posix/flexmember.h: New file.
30424 * posix/glob_internal.h: Likewise.
30425 * posix/glob_pattern_p.c: Likewise.
30426 * posix/globfree.c: Likewise.
30427 * posix/globfree64.c: Likewise.
30428 * sysdeps/gnu/globfree64.c: Likewise.
30429 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30430 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30431 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30432 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30433 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30434 * sysdeps/wordsize-64/globfree.c: Likewise.
30435 * sysdeps/wordsize-64/globfree64.c: Likewise.
30436 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30437 [NDEBUG): Remove comments.
30438 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30439 (dirent_type): New type. Use uint_fast8_t not
30440 uint8_t, as C99 does not require uint8_t.
30441 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30442 (struct readdir_result): Use dirent_type. Do not define skip_entry
30443 unless it is needed; this saves a byte on platforms lacking d_ino.
30444 (readdir_result_type, readdir_result_skip_entry):
30445 New functions, replacing ...
30446 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30447 these functions, which were removed. This makes the callers
30448 easier to read. All callers changed.
30449 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30450 (size_add_wrapv, glob_use_alloca): New static functions.
30451 (glob, glob_in_dir): Check for size_t overflow in several places,
30452 and fix some size_t checks that were not quite right.
30453 Remove old code using SHELL since Bash no longer
30454 uses this.
30455 (glob, prefix_array): Separate MS code better.
30456 (glob_in_dir): Remove old Amiga and VMS code.
30457 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30458 separate files.
30459 (glob_in_dir): Do not rely on undefined behavior in accessing
30460 struct members beyond their bounds. Use a flexible array member
30461 instead
30462 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30463 0/1. Caller changed.
30464 (glob): Fix memory leaks.
30465 * posix/glob64 (globfree64): Move to separate file.
30466 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30467 (globfree64): Remove hidden alias.
30468 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30469 oldglob.
30470 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30471 separate file.
30472 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30473 define.
30474 Move compat code to separate file.
30475 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30476 separate file.
30477
30478 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30479
30480 * resolv/tst-resolv-qtypes.c (domain): Changed to
30481 "const char domain[] =".
30482
30483 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30484
30485 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30486 version to 3.1.6.
30487
30488 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30489 (TCP_MD5SIG_EXT): Likewise.
30490 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30491 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30492 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30493
30494 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30495
30496 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30497
30498 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30499
30500 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30501
30502 [BZ #22100]
30503 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30504
30505 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30506
30507 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30508 before assuming that the file is empty. Avoid testing buffer content
30509 when nread == 0.
30510
30511 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30512
30513 [BZ #18858]
30514 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30515 Remove define.
30516 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30517 Likewise.
30518 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30519 Likewise.
30520 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30521 Likewise.
30522 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30523 Likewise.
30524 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30525 Likewise.
30526 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30527 Likewise.
30528
30529 2017-09-06 Florian Weimer <fweimer@redhat.com>
30530
30531 * malloc/dynarray_emplace_enlarge.c
30532 (__libc_dynarray_emplace_enlarge): Add missing else.
30533
30534 2017-09-06 Florian Weimer <fweimer@redhat.com>
30535
30536 [BZ #22096]
30537 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30538 case of failure to obtain the global conf object.
30539
30540 2017-09-06 Florian Weimer <fweimer@redhat.com>
30541
30542 [BZ #22095]
30543 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30544 dynarray allocation failure.
30545
30546 2017-09-06 Florian Weimer <fweimer@redhat.com>
30547
30548 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30549 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30550 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30551 New functions.
30552 (response): Call them. Add 'p', '6' flag processing.
30553 (test_reverse): New function.
30554 (test_get2_any): Call it.
30555 (test_no_inet6): Add 'p' test.
30556 (test_inet6): Likewise.
30557
30558 2017-09-06 Florian Weimer <fweimer@redhat.com>
30559
30560 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30561 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30562 the QNAME.
30563 (test_gai): Adjust query names. Add additional tests.
30564 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30565 test_get2. Adjust query names. Add additional tests.
30566 (test_no_inet6): New function, extracted from threadfunc.
30567 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30568 Add additional tests.
30569
30570 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30571
30572 [BZ #22070]
30573 * localedata/unicode-gen/utf8_gen.py: Set the width for
30574 characters with Prepended_Concatenation_Mark property to 1
30575 * localedata/charmaps/UTF-8: Updated using the improved script.
30576
30577 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30578
30579 [BZ #21750]
30580 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30581 use the range notation for all ranges of neighbouring characters
30582 with the same width.
30583
30584 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30585
30586 * sysdeps/generic/math-type-macros-double.h: Include
30587 <math-svid-compat.h>.
30588 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30589 * sysdeps/generic/math-type-macros-float.h: Include
30590 <math-svid-compat.h>.
30591 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30592 * sysdeps/generic/math-type-macros-ldouble.h: Include
30593 <math-svid-compat.h>.
30594 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30595 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30596 condition.
30597 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30598 * math/w_acosf_compat.c: Likewise.
30599 * math/w_acosh_compat.c: Likewise.
30600 * math/w_acoshf_compat.c: Likewise.
30601 * math/w_acoshl_compat.c: Likewise.
30602 * math/w_acosl_compat.c: Likewise.
30603 * math/w_asin_compat.c: Likewise.
30604 * math/w_asinf_compat.c: Likewise.
30605 * math/w_asinl_compat.c: Likewise.
30606 * math/w_atan2_compat.c: Likewise.
30607 * math/w_atan2f_compat.c: Likewise.
30608 * math/w_atan2l_compat.c: Likewise.
30609 * math/w_atanh_compat.c: Likewise.
30610 * math/w_atanhf_compat.c: Likewise.
30611 * math/w_atanhl_compat.c: Likewise.
30612 * math/w_cosh_compat.c: Likewise.
30613 * math/w_coshf_compat.c: Likewise.
30614 * math/w_coshl_compat.c: Likewise.
30615 * math/w_exp10_compat.c: Likewise.
30616 * math/w_exp10f_compat.c: Likewise.
30617 * math/w_exp10l_compat.c: Likewise.
30618 * math/w_exp2_compat.c: Likewise.
30619 * math/w_exp2f_compat.c: Likewise.
30620 * math/w_exp2l_compat.c: Likewise.
30621 * math/w_fmod_compat.c: Likewise.
30622 * math/w_fmodf_compat.c: Likewise.
30623 * math/w_fmodl_compat.c: Likewise.
30624 * math/w_hypot_compat.c: Likewise.
30625 * math/w_hypotf_compat.c: Likewise.
30626 * math/w_hypotl_compat.c: Likewise.
30627 * math/w_j0_compat.c: Likewise.
30628 * math/w_j0f_compat.c: Likewise.
30629 * math/w_j0l_compat.c: Likewise.
30630 * math/w_j1_compat.c: Likewise.
30631 * math/w_j1f_compat.c: Likewise.
30632 * math/w_j1l_compat.c: Likewise.
30633 * math/w_jn_compat.c: Likewise.
30634 * math/w_jnf_compat.c: Likewise.
30635 * math/w_jnl_compat.c: Likewise.
30636 * math/w_lgamma_r_compat.c: Likewise.
30637 * math/w_lgammaf_r_compat.c: Likewise.
30638 * math/w_lgammal_r_compat.c: Likewise.
30639 * math/w_log10_compat.c: Likewise.
30640 * math/w_log10f_compat.c: Likewise.
30641 * math/w_log10l_compat.c: Likewise.
30642 * math/w_log2_compat.c: Likewise.
30643 * math/w_log2f_compat.c: Likewise.
30644 * math/w_log2l_compat.c: Likewise.
30645 * math/w_log_compat.c: Likewise.
30646 * math/w_logf_compat.c: Likewise.
30647 * math/w_logl_compat.c: Likewise.
30648 * math/w_pow_compat.c: Likewise.
30649 * math/w_powf_compat.c: Likewise.
30650 * math/w_powl_compat.c: Likewise.
30651 * math/w_remainder_compat.c: Likewise.
30652 * math/w_remainderf_compat.c: Likewise.
30653 * math/w_remainderl_compat.c: Likewise.
30654 * math/w_sinh_compat.c: Likewise.
30655 * math/w_sinhf_compat.c: Likewise.
30656 * math/w_sinhl_compat.c: Likewise.
30657 * math/w_sqrt_compat.c: Likewise.
30658 * math/w_sqrtf_compat.c: Likewise.
30659 * math/w_sqrtl_compat.c: Likewise.
30660 * math/w_tgamma_compat.c: Likewise.
30661 * math/w_tgammaf_compat.c: Likewise.
30662 * math/w_tgammal_compat.c: Likewise.
30663 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30664 [LIBM_SVID_COMPAT].
30665 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30666 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30667 [LIBM_SVID_COMPAT].
30668 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30669 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30670 [LIBM_SVID_COMPAT].
30671 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30672 * sysdeps/i386/fpu/w_sqrt.c: New file.
30673 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30674 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30675 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30676 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30677 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30678 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30679 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30680 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30681 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30682 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30683 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30684 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30685 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30686 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30687 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30688 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30689 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30690 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30691 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30692 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30693 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30694 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30695 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30696 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30697 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30698 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30699 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30700 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30701 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30702 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30703 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30704 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30705 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30706 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30707 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30708 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30709 * sysdeps/ia64/fpu/w_log.c: Likewise.
30710 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30711 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30712 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30713 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30714 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30715 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30716 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30717 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30718 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30719 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30720 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30721 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30722 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30723 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30724 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30725 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30726 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30727 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30728 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30729 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30730 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30731 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30732 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30733 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30734 [LIBM_SVID_COMPAT].
30735 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30736 * sysdeps/ieee754/k_standard.c: Likewise.
30737 * sysdeps/ieee754/k_standardf.c: Likewise.
30738 * sysdeps/ieee754/k_standardl.c: Likewise.
30739 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30740 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30741 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30742 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
30743 long_double_symbol call on [LIBM_SVID_COMPAT].
30744 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30745 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30746 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30747 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30748 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30749 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30750 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30751 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30752 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30753 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30754 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30755 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30756 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30757 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30758 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30759 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30760 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
30761 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30762 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30763 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30764 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
30765 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
30766
30767 2017-09-05 Steve Ellcey <sellcey@cavium.com>
30768
30769 * include/shlib-compat.h (TEST_COMPAT): New Macro.
30770 * malloc/tst-mallocstate.c: Convert from test-skeleton
30771 to test-driver. Ifdef code using TEST_COMPAT macro.
30772 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
30773 * math/test-matherr.c: Likewise.
30774
30775 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30776
30777 [BZ #22086]
30778 * debug/pcprofiledump.c (main): Use byte-swapped mask when
30779 comparing word with byte-swapped constant.
30780
30781 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
30782
30783 [BZ #20498]
30784 * locale/iso-639.def: add Miskito.
30785 * localedata/SUPPORTED: Add miq_NI/UTF-8.
30786 * localedata/locales/miq_NI: New file.
30787
30788 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
30789
30790 [BZ #18822]
30791 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
30792 (__mkdir): Likewise.
30793 * io/chmod.c (__chmod): Add libc_hidden_def.
30794 * io/mkdir.c (__mkdir): Likewise.
30795 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
30796 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
30797 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
30798 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
30799
30800 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30801
30802 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
30803 version to 4.13.
30804
30805 [BZ #22082]
30806 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
30807 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
30808
30809 2017-09-04 Florian Weimer <fweimer@redhat.com>
30810
30811 * math/math.h: Issue warning if log is defined.
30812
30813 2017-09-04 Joseph Myers <joseph@codesourcery.com>
30814
30815 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
30816 kernel version to 4.13.
30817
30818 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30819
30820 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
30821 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
30822 parameter.
30823 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
30824 just <bits/types.h>.
30825 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
30826 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
30827 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
30828 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
30829 * misc/preadv2.c: Include <errno.h>.
30830 * misc/preadv64v2.c: Include <errno.h>.
30831 * misc/pwritev2.c: Include <errno.h>.
30832 * misc/pwritev64v2.c: Include <errno.h>.
30833 * sysdeps/posix/preadv2.c: Include <errno.h>.
30834 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
30835 Fix <unistd.h> inclusion.
30836 * sysdeps/posix/pwritev2.c: Include <errno.h>.
30837 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
30838 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
30839 __strtoul_internal): New functions.
30840 * sysdeps/posix/pause.c: Include <sigsetops.h>.
30841 * sysdeps/posix/system.c: Include <sigsetops.h>.
30842 * sysdeps/mach/hurd/i386/Makefile
30843 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
30844 [$(subdir) = csu] (sysdep-only-routines): Likewise.
30845 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
30846 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
30847 __feraiseexcept_renamed to feraiseexcept instead of
30848 __GI_feraiseexcept.
30849 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
30850 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
30851 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
30852 RWF_NOWAIT): Define to 0 if undefined already.
30853 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
30854 boils down to 0.
30855 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
30856 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
30857
30858 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30859
30860 * manual/math.texi (pow10): Do not document.
30861 (pow10f): Likewise.
30862 (pow10l): Likewise.
30863 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
30864 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
30865 * math/libm-test-exp10.inc (pow10_test): Remove.
30866 (do_test): Do not call pow10.
30867 * math/w_exp10_compat.c (pow10): Make into compat symbol.
30868 [NO_LONG_DOUBLE] (pow10l): Likewise.
30869 * math/w_exp10f_compat.c (pow10f): Likewise.
30870 * math/w_exp10l_compat.c (pow10l): Likewise.
30871 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
30872 (pow10): Make into compat symbol.
30873 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
30874 (pow10f): Make into compat symbol.
30875 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
30876 (pow10l): Make into compat symbol.
30877 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
30878 pow10.
30879 (CFLAGS-nldbl-pow10.c): Remove variable..
30880 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
30881 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
30882 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
30883 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
30884 Undefine and redefine.
30885 (pow10l): Make into compat symbol.
30886 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
30887 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
30888 * sysdeps/arm/libm-test-ulps: Likewise.
30889 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
30890 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
30891 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30892 * sysdeps/microblaze/libm-test-ulps: Likewise.
30893 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
30894 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
30895 * sysdeps/nios2/libm-test-ulps: Likewise.
30896 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
30897 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
30898 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
30899 * sysdeps/sh/libm-test-ulps: Likewise.
30900 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
30901 * sysdeps/tile/libm-test-ulps: Likewise.
30902 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30903
30904 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30905
30906 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
30907
30908 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30909
30910 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
30911 "../ChangeLog.old/ChangeLog.8".
30912 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
30913 "../ChangeLog.old/ChangeLog.14".
30914
30915 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30916
30917 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
30918 Threads Library.
30919
30920 2017-09-01 Joseph Myers <joseph@codesourcery.com>
30921
30922 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
30923
30924 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
30925
30926 * csu/version.c (banner): Remove "by Roland McGrath et al.".
30927 * nptl/Banner: Remove "by Ulrich Drepper et al.".
30928
30929 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
30930
30931 * stdlib/tst-atexit-common.c (do_test): Test support for at least
30932 32 atexit handlers.
30933
30934 2017-09-01 Zack Weinberg <zackw@panix.com>
30935
30936 * math/math.h (HUGE_VAL): Improve commentary.
30937
30938 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30939 Andreas Schwab <schwab@suse.de>
30940
30941 [BZ #21530]
30942 * include/stdio.h (__gen_tempfd): New function.
30943 * stdio-common/Makefile (routines): Add gentempfd.
30944 * stdio-common/gentempfd.c: New file.
30945 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
30946 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
30947 unnamed file first.
30948
30949 2017-09-01 Florian Weimer <fweimer@redhat.com>
30950
30951 [BZ #21915]
30952 [BZ #21922]
30953 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
30954 result to determine success or failure, not the errno value.
30955 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
30956 (tst-nss-files-hosts-erange): Link with -ldl.
30957 * nss/tst-nss-files-hosts-erange.c: New file.
30958 * nss/tst-resolv-basic.c (response): Handle nodata.example.
30959 (do_test): Add NO_DATA tests.
30960 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
30961 (do_test): Call it.
30962
30963 2017-09-01 Florian Weimer <fweimer@redhat.com>
30964
30965 [BZ #21922]
30966 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
30967 coming from gethostbyname2_r.
30968
30969 2017-09-01 Florian Weimer <fweimer@redhat.com>
30970
30971 * support/namespace.h (struct support_chroot_configuration): Add
30972 hosts, host_conf.
30973 (struct support_chroot): Add path_hosts, path_host_conf.
30974 * support/support_chroot.c (write_file): New function.
30975 (support_chroot_create): Call it to process /etc/resolv.conf,
30976 /etc/hosts, /etc/host.conf.
30977 (support_chroot_free): Update.
30978
30979 2017-09-01 Florian Weimer <fweimer@redhat.com>
30980
30981 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
30982 status indicates it is set.
30983
30984 2017-09-01 Florian Weimer <fweimer@redhat.com>
30985
30986 [BZ #20532]
30987 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
30988 function lookup failures more reliable.
30989
30990 2017-09-01 Florian Weimer <fweimer@redhat.com>
30991
30992 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
30993 (getcanonname): Likewise.
30994 (gaih_inet): Likewise.
30995
30996 2017-09-01 Florian Weimer <fweimer@redhat.com>
30997
30998 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
30999 (getcanonname): Likewise.
31000 (gaih_inet): Likewise.
31001
31002 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31003 Richard Henderson <rth@twiddle.net>
31004
31005 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31006 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31007 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31008 (IREG_SIZE, OREG_SIZE): New macros.
31009 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31010 (IREG_SIZE, OREG_SIZE): New macros.
31011 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31012 (IREG_SIZE): New macro.
31013 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31014 (IREG_SIZE): New macro.
31015 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31016 New includes.
31017 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31018 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31019 (__CONCATX): Handle exceptions correctly on large values that may
31020 set FE_INVALID.
31021 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31022 Initialize if not already set.
31023 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31024
31025 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31026
31027 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31028 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31029 Likewise.
31030 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31031 Likewise.
31032 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31033 Likewise.
31034 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31035 Likewise.
31036 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31037 Likewise.
31038 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31039 Likewise.
31040 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31041 Likewise.
31042 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31043 (NO_CANCELLATION): Likewise.
31044 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31045 Likewise.
31046 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31047 Likewise.
31048 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31049 Likewise.
31050 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31051 (NO_CANCELLATION): Likewise.
31052 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31053 (NO_CANCELLATION): Likewise.
31054 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31055 Likewise
31056 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31057 Likewise.
31058 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31059 Likewise.
31060 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31061 Likewise.
31062 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31063 hidden prototype.
31064 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31065 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31066
31067 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31068
31069 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31070 in resolver call.
31071
31072 2017-08-31 Florian Weimer <fweimer@redhat.com>
31073
31074 * include/libc-symbols.h (internal_function): Remove.
31075
31076 2017-08-31 Florian Weimer <fweimer@redhat.com>
31077
31078 * stdlib/fmtmsg.c (internal_addseverity): Remove
31079 internal_function.
31080
31081 2017-08-31 Florian Weimer <fweimer@redhat.com>
31082
31083 * stdio-common/printf_fp.c (group_number): Remove
31084 internal_function.
31085 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31086
31087 2017-08-31 Florian Weimer <fweimer@redhat.com>
31088
31089 * posix/fnmatch.c (internal_function): Remove definition.
31090 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31091 * posix/regcomp.c (peek_token, init_word_char)
31092 (duplicate_node_closure, fetch_token, peek_token)
31093 (peek_token_bracket, build_range_exp, build_collating_symbol):
31094 Likewise.
31095 * posix/regex_internal.c (re_string_construct_common)
31096 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31097 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31098 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31099 (re_string_translate_buffer, re_string_reconstruct)
31100 (re_string_peek_byte_case, re_string_fetch_byte_case)
31101 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31102 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31103 (re_node_set_add_intersect, re_node_set_init_union)
31104 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31105 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31106 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31107 (re_acquire_state_context): Likewise.
31108 * posix/regex_internal.h (internal_function): Remove definition.
31109 (re_string_realloc_buffers, build_wcs_buffer)
31110 (build_wcs_upper_buffer, build_upper_buffer)
31111 (re_string_translate_buffer, re_string_context_at)
31112 (re_string_char_size_at, re_string_wchar_at)
31113 (re_string_elem_size_at): Likewise.
31114 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31115 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31116 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31117 (re_search_internal, re_search_2_stub, re_search_stub)
31118 (re_copy_regs, prune_impossible_nodes, check_matching)
31119 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31120 (free_fail_stack_return, sift_states_iter_mb)
31121 (sift_states_backward, build_sifted_states)
31122 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31123 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31124 (check_subexp_limits, sift_states_bkref, merge_state_array)
31125 (find_recover_state, transit_state, merge_state_with_log)
31126 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31127 (transit_state_mb, transit_state_bkref, get_subexp)
31128 (get_subexp_sub, find_subexp_node, check_arrival)
31129 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31130 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31131 (check_node_accept_bytes, find_collation_sequence_value)
31132 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31133 (acquire_init_state_context, check_halt_node_context)
31134 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31135 (sub_epsilon_src_nodes): Likewise.
31136 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31137 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31138 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31139 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31140 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31141 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31142 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31143 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31144 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31145 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31146 (PREADV): Likewise.
31147 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31148 (PREADV): Likewise.
31149 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31150 (PWRITEV): Likewise.
31151 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31152 (PWRITEV): Likewise.
31153 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31154 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31155
31156 2017-08-31 Florian Weimer <fweimer@redhat.com>
31157
31158 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31159 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31160 Remove internal_function.
31161 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31162 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31163 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31164 (__deallocate_stack, __libc_pthread_init)
31165 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31166 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31167 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31168 Likewise.
31169 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31170 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31171 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31172 Likewise.
31173 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31174 (__pthread_mutex_unlock_usercnt): Likewise.
31175
31176 2017-08-31 Florian Weimer <fweimer@redhat.com>
31177
31178 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31179 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31180 (fts_safe_changedir): Remove internal_function.
31181 * io/ftw.c (internal_function): Remove definition.
31182 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31183
31184 2017-08-31 Florian Weimer <fweimer@redhat.com>
31185
31186 * inet/deadline.c (__deadline_current_time)
31187 (__deadline_from_timeval, __deadline_to_ms): Remove
31188 internal_function.
31189 * inet/getnameinfo.c (nrl_domainname): Likewise.
31190 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31191 * inet/inet6_option.c (add_pad): Likewise.
31192 * inet/net-internal.h (__deadline_current_time)
31193 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31194 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31195 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31196 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31197
31198 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31199
31200 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31201 include <bits/nan.h>.
31202 * math/Makefile (headers): Remove bits/nan.h.
31203 * bits/nan.h: Remove.
31204 * sysdeps/ieee754/bits/nan.h: Likewise.
31205 * sysdeps/mips/bits/nan.h: Likewise.
31206
31207 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31208 not include <bits/inf.h>.
31209 * math/Makefile (headers): Remove bits/inf.h.
31210 * bits/inf.h: Remove.
31211 * sysdeps/ieee754/bits/inf.h: Likewise.
31212
31213 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31214 bits/huge_vall.h or bits/huge_val_flt128.h.
31215 (HUGE_VAL): Define directly here.
31216 [__USE_ISOC99] (HUGE_VALF): Likewise.
31217 [__USE_ISOC99] (HUGE_VALL): Likewise.
31218 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31219 (HUGE_VAL_F128): Likewise.
31220 * math/Makefile (headers): Remove bits/huge_val.h,
31221 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31222 * bits/huge_val.h: Remove.
31223 * bits/huge_val_flt128.h: Likewise.
31224 * bits/huge_valf.h: Likewise.
31225 * bits/huge_vall.h: Likewise.
31226 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31227 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31228 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31229 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31230 * sysdeps/sh/bits/huge_val.h: Likewise.
31231 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31232 * sysdeps/x86/bits/huge_vall.h: Likewise.
31233
31234 2017-08-31 Florian Weimer <fweimer@redhat.com>
31235
31236 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31237 internal_function.
31238 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31239 Likewise.
31240 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31241 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31242 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31243 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31244 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31245 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31246 * elf/dl-libc.c (dlerror_run): Likewise.
31247 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31248 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31249 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31250 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31251 Likewise.
31252 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31253 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31254 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31255 * elf/dl-profile.c (_dl_start_profile): Likewise.
31256 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31257 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31258 Likewise.
31259 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31260 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31261 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31262 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31263 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31264 (_dl_allocate_tls_storage): Likewise.
31265 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31266 (_dl_check_all_versions): Likewise.
31267 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31268 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31269 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31270 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31271 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31272 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31273 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31274 internal_function from __dl_start.
31275 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31276 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31277 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31278 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31279 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31280 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31281 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31282 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31283 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31284 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31285 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31286 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31287 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31288 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31289 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31290 Likewise.
31291 (struct rtld_global_ro): Remove internal_function from the
31292 _dl_lookup_symbol_x member.
31293 (_dl_symbol_value): Remove. No longer defined anywhere.
31294 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31295 internal_function.
31296 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31297 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31298 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31299 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31300 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31301 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31302 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31303 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31304 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31305 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31306 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31307 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31308
31309 2017-08-31 Florian Weimer <fweimer@redhat.com>
31310
31311 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31312 Remove internal_function.
31313 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31314 Likewise.
31315 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31316 Likewise.
31317
31318 2017-08-31 Florian Weimer <fweimer@redhat.com>
31319
31320 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31321 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31322 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31323
31324 2017-08-31 Florian Weimer <fweimer@redhat.com>
31325
31326 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31327 (__gai_enqueue_request): Remove internal_function.
31328 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31329 (__gai_remove_request, __gai_notify, __gai_notify_only)
31330 (__gai_sigqueue): Likewise.
31331 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31332 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31333 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31334 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31335 Likewise.
31336
31337 2017-08-31 Florian Weimer <fweimer@redhat.com>
31338
31339 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31340 * include/dirent.h (__opendirat, __getdents, __getdents64)
31341 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31342 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31343 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31344 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31345 Likewise.
31346 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31347
31348 2017-08-31 Florian Weimer <fweimer@redhat.com>
31349
31350 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31351 internal_function.
31352 (GETCWD_RETURN_TYPE): Likewise.
31353
31354 2017-08-31 Florian Weimer <fweimer@redhat.com>
31355
31356 * include/time.h (__tz_compute, __strptime_internal): Remove
31357 internal_function.
31358 * time/strptime_l.c (__strptime_internal): Likewise.
31359 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31360
31361 2017-08-31 Florian Weimer <fweimer@redhat.com>
31362
31363 * iconv/gconv.c (__gconv): Remove internal_function.
31364 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31365 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31366 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31367 (__gconv_release_cache): Likewise.
31368 * iconv/gconv_close.c (__gconv_close): Likewise.
31369 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31370 (read_conf_file, __gconv_get_path): Likewise.
31371 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31372 (__gconv_release_step, gen_steps, increment_counter)
31373 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31374 (__gconv_close_transform, free_modules_db): Likewise.
31375 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31376 Likewise.
31377 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31378 (__gconv_find_transform, __gconv_lookup_cache)
31379 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31380 (__gconv_close_transform, __gconv_release_cache)
31381 (__gconv_loaded_object, __gconv_release_shlib)
31382 (__gconv_compare_alias): Likewise.
31383 * iconv/gconv_open.c (__gconv_open): Likewise.
31384 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31385 * iconv/iconvconfig.c (add_module): Likewise.
31386 * intl/dcigettext.c (plural_lookup, guess_category_value)
31387 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31388 * intl/eval-plural.h (plural_eval): Likewise.
31389 * intl/finddomain.c (_nl_find_domain): Likewise.
31390 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31391 (_nl_load_domain, _nl_find_msg): Likewise.
31392 (internal_function): Remove definition.
31393 * intl/loadinfo.h (internal_function): Likewise.
31394 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31395 internal_function.
31396 * intl/localealias.c (internal_function): Remove definition.
31397 (read_alias_file): Remove internal_function.
31398 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31399 * intl/plural-exp.h (internal_function): Remove definition.
31400 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31401 internal_function.
31402 * intl/plural.c: Regenerate.
31403 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31404 * locale/coll-lookup.c (__collidx_table_lookup)
31405 (__collseq_table_lookup): Likewise.
31406 * locale/coll-lookup.h (__collidx_table_lookup)
31407 (__collseq_table_lookup): Likewise.
31408 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31409 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31410 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31411 (_nl_unload_locale): Likewise.
31412 * locale/localeinfo.h (struct __locale_data): Remove
31413 internal_function from cleanup member.
31414 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31415 (_nl_remove_locale, _nl_load_locale_from_archive)
31416 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31417 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31418 (_nl_cleanup_time): Remove internal_function.
31419 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31420 (_nl_parse_alt_digit): Likewise.
31421 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31422 (_nl_select_era_entry): Likewise.
31423 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31424 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31425 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31426 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31427 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31428
31429 2017-08-31 Florian Weimer <fweimer@redhat.com>
31430
31431 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31432 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31433 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31434 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31435 Likewise.
31436 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31437 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31438 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31439 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31440 Likewise.
31441 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31442
31443 2017-08-31 Florian Weimer <fweimer@redhat.com>
31444
31445 * misc/getttyent.c (skip, value): Remove internal_function.
31446 * misc/syslog.c (openlog_internal): Likewise.
31447 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31448
31449 2017-08-31 Florian Weimer <fweimer@redhat.com>
31450
31451 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31452 (__nss_rewrite_field): Remove internal_function.
31453 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31454 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31455 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31456 * nss/nsswitch.c (nss_parse_file, nss_getline)
31457 (nss_parse_service_list, nss_new_service): Likewise.
31458 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31459 * nss/valid_field.c (__nss_valid_field): Likewise.
31460 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31461
31462 2017-08-31 Florian Weimer <fweimer@redhat.com>
31463
31464 * malloc/arena.c (__malloc_fork_lock_parent)
31465 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31466 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31467 internal_function from defintions.
31468 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31469 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31470 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31471 internal_function from declarations.
31472 * malloc/malloc.c (internal_function): Do not define.
31473 (mem2mem_check): Remove internal_function from declaration.
31474 (munmap_chunk, mremap_chunk): Remove internal_function.
31475 * malloc/mtrace.c (tr_where): Likewise.
31476
31477 2017-08-31 Florian Weimer <fweimer@redhat.com>
31478
31479 * include/rpc/pmap_clnt.h (__get_socket): Remove
31480 internal_function.
31481 * sunrpc/auth_des.c (synchronize): Likewise.
31482 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31483 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31484 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31485 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31486 (key_call): Likewise.
31487 * sunrpc/pm_getport.c (__get_socket): Likewise.
31488 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31489 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31490 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31491 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31492 (invalidate): Likewise.
31493 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31494 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31495 (set_input_fragment, get_input_bytes): Likewise.
31496
31497 2017-08-31 Florian Weimer <fweimer@redhat.com>
31498
31499 * malloc/malloc.c (_int_free): Remove locked variable and related
31500 asserts.
31501
31502 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31503
31504 [BZ #22051]
31505 * Makerules (build-module-helper-objlist): Filter out
31506 $(elf-objpfx)sofini.os.
31507 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31508 needed.
31509
31510 2017-08-31 Florian Weimer <fweimer@redhat.com>
31511
31512 * libio/fcloseall.c: Assume weak_alias is defined.
31513 * libio/feof.c: Likewise.
31514 * libio/fileno.c: Likewise.
31515 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31516 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31517 definitions.
31518 (_IO_file_open): Call __open directly.
31519 (_IO_new_file_sync): Assume ESPIPE is defined.
31520 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31521 (_IO_new_file_write): Call __write directly.
31522 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31523 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31524 * libio/genops.c: Assume _LIBC is defined.
31525 (save_for_backup): Remove internal_function.
31526 * libio/getc.c: Assume weak_alias is defined.
31527 * libio/getwc.c: Likewise.
31528 * libio/iofclose.c: Assume _LIBC is defined.
31529 * libio/iofdopen.c: Likewise.
31530 (_IO_fcntl): Remove macro definition.
31531 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31532 Call __fcntl directly.
31533 * libio/iofflush.c: Assume weak_alias is defined.
31534 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31535 defined.
31536 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31537 * libio/iofgets.c: Likewise.
31538 * libio/iofopen.c: Assume _LIBC is defined.
31539 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31540 * libio/iofputs.c: Assume weak_alias is defined.
31541 * libio/iofread.c: Likewise.
31542 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31543 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31544 * libio/ioftell.c: Assume weak_alias is defined.
31545 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31546 * libio/iofwide.c: Assume _LIBC is defined.
31547 (_IO_fwide): Drop SHARED conditional because it is implied by
31548 SHLIB_COMPAT.
31549 * libio/iofwrite.c: Assume weak_alias is defined.
31550 * libio/iogetdelim.c: Likewise.
31551 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31552 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31553 (_IO_getwline): Call __wmemcpy directly.
31554 * libio/iopopen.c: Assume _LIBC is defined.
31555 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31556 (_IO_close): Remove macro definitions.
31557 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31558 _exit directly.
31559 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31560 directly.
31561 * libio/ioputs.c: Assume weak_alias is defined.
31562 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31563 * libio/iosetbuffer.c: Assume weak_alias is defined.
31564 * libio/iosetvbuf.c: Likewise.
31565 * libio/ioungetc.c: Likewise.
31566 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31567 libc_hidden_def, libc_hidden_weak, NULL are defined.
31568 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31569 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31570 defined.
31571 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31572 definitions.
31573 (_IO_old_file_init_internal): Drop SHARED conditional because it
31574 is implied by SHLIB_COMPAT.
31575 (_IO_old_file_fopen): Call __open directly.
31576 (_IO_old_file_sync): Assume ESPIPE is defined.
31577 (_IO_old_file_write): Call __write directly.
31578 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31579 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31580 Call __fcntl directly.
31581 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31582 (_IO_old_fgetpos): Assume EIO is defined.
31583 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31584 (_IO_old_fgetpos64): Assume EIO is defined.
31585 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31586 (_IO_old_fsetpos): Assume EIO is defined.
31587 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31588 (_IO_old_fsetpos64): Assume EIO is defined.
31589 * libio/oldiopopen.c: Assume _LIBC is defined.
31590 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31591 (_IO_close): Remove macro definitions.
31592 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31593 directly.
31594 (_IO_old_proc_close): Call __close, __waitpid directly.
31595 * libio/put.c: Assume weak_alias is defined.
31596 * libio/stdfiles.c: Assume _LIBC is defined.
31597 * libio/stdio.c: Likewise.
31598 * libio/wfileops.c: Likewise.
31599 (_IO_wfile_sync): Assume ESPIPE is defined.
31600 * libio/wgenops.c: Assume _LIBC is defined.
31601 (save_for_wbackup): Remove internal_function.
31602
31603 2017-08-31 Florian Weimer <fweimer@redhat.com>
31604
31605 * malloc/malloc.c (top_check): Change return type to void. Remove
31606 internal_function.
31607 * malloc/hooks.c (top_check): Likewise.
31608 (malloc_check, realloc_check, memalign_check): Adjust.
31609
31610 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31611
31612 [BZ #21457]
31613 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31614 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31615 sigcontext and namespace requirements.
31616 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31617 * sysdeps/m68k/sys/ucontext.h: Likewise.
31618 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31619 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31620 <bits/sigcontext.h>.
31621 (__ctx): Define earlier.
31622 (mcontext_t): Define structure contents rather than using struct
31623 sigcontext.
31624 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31625 __glibc_reserved1 instead of __reserved.
31626 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31627 <bits/sigcontext.h>.
31628 (__ctx): Define earlier.
31629 (mcontext_t): Define structure contents rather than using struct
31630 sigcontext.
31631 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31632 mcontext_t instead of struct sigcontext.
31633 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31634 <bits/sigcontext.h>.
31635 (__ctx): Define earlier.
31636 (mcontext_t): Define structure contents rather than using struct
31637 sigcontext.
31638 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31639 <bits/sigcontext.h>.
31640 (__ctx): Define earlier.
31641 (mcontext_t): Define structure contents rather than using struct
31642 sigcontext.
31643 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31644 mcontext_t instead of struct sigcontext.
31645 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31646 mcontext_t instead of struct sigcontext.
31647 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31648 <bits/sigcontext.h>.
31649 (__ctx): New macro.
31650 (struct __ia64_fpreg_mcontext): New type.
31651 (mcontext_t): Define structure contents rather than using struct
31652 sigcontext.
31653 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31654 (uc_sigmask): Define using __ctx.
31655 (uc_stack): Likewise.
31656 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31657 <bits/sigcontext.h>.
31658 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31659 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31660 <bits/sigcontext.h>.
31661 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31662 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31663 <bits/sigcontext.h>.
31664 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31665 <bits/sigcontext.h>.
31666 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31667 <bits/sigcontext.h>.
31668 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31669 <bits/sigcontext.h>.
31670 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31671 <bits/sigcontext.h>.
31672 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31673 <bits/sigcontext.h>.
31674 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31675 <bits/sigcontext.h>.
31676 (__ctx): Define earlier.
31677 (mcontext_t): Define structure contents rather than using struct
31678 sigcontext.
31679 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31680 <bits/sigcontext.h>. Include <bits/types.h>.
31681 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31682 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31683 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31684 (test-xfail-UNIX98/signal.h/conform): Likewise.
31685 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31686 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31687 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31688 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31689 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31690 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31691 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31692 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31693 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31694
31695 2017-08-30 Florian Weimer <fweimer@redhat.com>
31696
31697 * malloc/dynarray_emplace_enlarge.c
31698 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31699 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31700 * malloc/tst-dynarray.c (test_long_overflow): New function.
31701 (do_test): Call it.
31702
31703 2017-08-30 Florian Weimer <fweimer@redhat.com>
31704
31705 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31706 (set_arena_corrupt): Remove definitions.
31707 (mtrim): Do not check for corrupt arena.
31708 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31709 Likewise.
31710
31711 2017-08-30 Florian Weimer <fweimer@redhat.com>
31712
31713 [BZ #21754]
31714 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31715 check_action.
31716 (ptmalloc_init): Do not set or use check_action.
31717 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31718 call to malloc_printerr. Remove return statement.
31719 (free_check): Likewise. Remove arena unlock.
31720 (top_check): Update comment. Adjust call to malloc_printerr.
31721 Remove heap repair code.
31722 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31723 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31724 (sysmalloc): Adjust call to malloc_printerr.
31725 (munmap_chunk, __libc_realloc): Likewise. Remove return
31726 statement.
31727 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31728 Remove errout label and corresponding gotos.
31729 (_int_free): Likewise. Remove arena unlock.
31730 (do_set_mallopt_check): Do not set check_action.
31731 (malloc_printerr): Adjust parameter list. Do not mark arena as
31732 corrupt.
31733 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31734 comment.
31735 * manual/probes.texi (Memory Allocation Probes): Remove
31736 memory_mallopt_check_action.
31737
31738 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31739
31740 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31741 Use pointer to uint64_t instead of long int for sp.
31742
31743 2017-08-30 Florian Weimer <fweimer@redhat.com>
31744
31745 [BZ #21754]
31746 * malloc/malloc.c (malloc_printerr): Always terminate the process,
31747 without printing a backtrace. Do not leak any information in the
31748 error message.
31749 * manual/memory.texi (Heap Consistency Checking): Update.
31750 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
31751
31752 2017-08-30 Florian Weimer <fweimer@redhat.com>
31753
31754 Do not scale NPTL tests with available number of CPUs.
31755 * nptl/tst-cond16.c (count): Set to constant value of 8.
31756 * nptl/tst-cond18.c (count): Likewise.
31757
31758 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31759
31760 [BZ #22035]
31761 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
31762 Define to take a second argument that is a macro that
31763 concatentates a suffix, not the suffix itself.
31764 (__CONCAT_d): New macro.
31765 (__CONCAT_f): Likewise.
31766 (__CONCAT_l): Likewise.
31767
31768 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
31769
31770 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
31771 by child.
31772
31773 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31774 Aurelien Jarno <aurelien@aurel32.net>
31775 Maciej W. Rozycki <macro@imgtec.com>
31776
31777 [BZ #21956]
31778 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
31779 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
31780 `mips16-syscall6' and `mips16-syscall7'.
31781 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
31782 (CFLAGS-mips16-syscall7.c): Remove.
31783 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
31784 Remove `__mips16_syscall5', `__mips16_syscall6' and
31785 `__mips16_syscall7'.
31786 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
31787 (__mips16_syscall0): Rename `__mips16_syscall_return' to
31788 `__mips_syscall_return'.
31789 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
31790 (__mips16_syscall1): Likewise.
31791 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
31792 (__mips16_syscall2): Likewise.
31793 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
31794 (__mips16_syscall3): Likewise.
31795 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
31796 (__mips16_syscall4): Likewise.
31797 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
31798 Remove.
31799 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
31800 Remove.
31801 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
31802 Remove.
31803 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
31804 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
31805 `__mips16_syscall5'. Remove prototype.
31806 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
31807 `__mips16_syscall6'. Remove prototype.
31808 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
31809 `__mips16_syscall7'. Remove prototype.
31810 (__nomips16, __mips16_syscall_return): Move to...
31811 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
31812 (__nomips16, __mips_syscall_return): ... here.
31813 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
31814 `__mips16_syscall_return' to `__mips_syscall_return'.
31815 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
31816 `internal_syscall##nr'.
31817 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
31818 `internal_syscall##nr'.
31819 (FORCE_FRAME_POINTER): Remove.
31820 (__mips_syscall5): New prototype.
31821 (internal_syscall5): Rewrite to call `__mips_syscall5'.
31822 (__mips_syscall6): New prototype.
31823 (internal_syscall6): Rewrite to call `__mips_syscall6'.
31824 (__mips_syscall7): New prototype.
31825 (internal_syscall7): Rewrite to call `__mips_syscall7'.
31826 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
31827 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
31828 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
31829 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
31830 (sysdep_routines): Add libc-do-syscall.
31831 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
31832 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
31833
31834 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31835
31836 [BZ #21672]
31837 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
31838 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
31839 (advise_stack_range): New function.
31840 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
31841 stack non required to advise_stack_range at allocatestack.c
31842
31843 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
31844
31845 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
31846
31847 2017-08-29 Florian Weimer <fweimer@redhat.com>
31848
31849 [BZ #22026]
31850 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
31851 __end_fct. Mangle __end_fct after setting it to NULL.
31852 * iconv/Makefile (tests): Add tst-gconv-init-failure.
31853 (modules-names, modules-names-tests): Add
31854 tst-gconv-init-failure-mod.
31855 (gconv-modules): New target.
31856 (tst-gconv-init-failure-mod.so): Link against libsupport.
31857 (tst-gconv-init-failure): Depend on gconv-modules,
31858 tst-gconv-init-failure-mod.so.
31859 * iconv/tst-gconv-init-failure-mod.c: New file.
31860 * iconv/tst-gconv-init-failure.c: Likewise.
31861 * iconv/test-gconv-modules: Likewise.
31862
31863 2017-08-29 Florian Weimer <fweimer@redhat.com>
31864
31865 [BZ #22025]
31866 * iconv/gconv_db.c (free_derivation): Remove redundant
31867 parentheses.
31868 (gen_steps): Unconditionally mangle __btowc_fct after
31869 initialization.
31870 (increment_counter): Likewise. Do not call init_fct for internal
31871 modules.
31872
31873 2017-08-29 Joseph Myers <joseph@codesourcery.com>
31874
31875 [BZ #22028]
31876 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31877 (_MSUF_): Remove macro.
31878 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
31879 Likewise.
31880 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
31881 (__REDIRFROM_X): New macro.
31882 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
31883 Likewise.
31884 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
31885 (__REDIRTO_X): Likewise.
31886 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
31887 arguments.
31888 (__MATH_REDIRCALL_2): Likewise.
31889 (__MATH_REDIRCALL_INTERNAL): Likewise.
31890 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
31891 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
31892 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
31893 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
31894 * math/test-finite-macros.c: New file.
31895 * math/Makefile (tests): Add test-finite-macros.
31896 (CFLAGS-test-finite-macros.c): New variable.
31897
31898 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
31899 Jeff Law <law@redhat.com>
31900
31901 [BZ #22025]
31902 Mangle NULL pointers in iconv/gconv.
31903 * iconv/gconv_cache.c (find_module): Demangle init_fct before
31904 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
31905 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
31906 is non-NULL before demangling the end_fct. Check for NULL
31907 end_fct after demangling.
31908 (__gconv_release_step): Demangle the end_fct before checking
31909 it for NULL. Remove assert on __shlibc_handle != NULL.
31910 (gen_steps): Don't check btowc_fct for NULL before mangling.
31911 Demangle init_fct before checking for NULL.
31912 (increment_counter): Likewise.
31913 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
31914 end_fct for NULL before mangling.
31915 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
31916 for NULL.
31917
31918 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
31919
31920 [BZ #21971]
31921 * locale/iso-639.def: add Morisyen.
31922
31923 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31924
31925 [BZ #21930]
31926 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
31927 (iszero): New C++ implementation that does not use
31928 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
31929 signaling nans are enabled, since __builtin_types_compatible_p
31930 is a C-only feature.
31931 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
31932 defined, include ieee754_float128.h for access to the union and
31933 member ieee854_float128.ieee.
31934 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
31935 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
31936 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31937 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
31938 options of test-math-zero on powerpc64le.
31939
31940 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
31941
31942 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
31943 Change double to float.
31944
31945 2017-08-28 Joseph Myers <joseph@codesourcery.com>
31946
31947 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
31948 unconditional.
31949 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
31950 conditional code; define contents only for [LIBM_SVID_COMPAT].
31951
31952 2017-08-28 Florian Weimer <fweimer@redhat.com>
31953
31954 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
31955 (abi-lp64_be-options): Remove.
31956 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
31957 (abi-hard-options): Likewise.
31958 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
31959 (abi-o32_hard-options, abi-o32_soft_2008-options)
31960 (abi-o32_hard_2008-options, abi-n32_soft-options)
31961 (abi-n32_hard-options, abi-n32_soft_2008-options)
31962 (abi-n32_hard_2008-options, abi-n64_soft-options)
31963 (abi-n64_hard-options, abi-n64_soft_2008-options)
31964 (abi-n64_hard_2008-options): Likewise.
31965 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
31966 (abi-64-v1-options, abi-64-v2-options): Likewise.
31967 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
31968 (abi-64-options): Likewise.
31969 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
31970 (abi-64-options): Likewise.
31971 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
31972 (abi-64-options): Likewise.
31973 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
31974 (abi-64-options, abi-x32-options): Likewise.
31975
31976 2017-08-28 Florian Weimer <fweimer@redhat.com>
31977
31978 Store supported list of SYS_* system calls in the source tree.
31979 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
31980 (bits/syscall.h): Generate from list file.
31981 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
31982 [$(subdir) = misc] (tests): Add tst-syscall-list.
31983 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
31984 [$(subdir) = misc] (tst-syscall-list-macros.list)
31985 [$(subdir) = misc] (tst-syscall-list-nr.list)
31986 (tst-syscall-list-sys.list): Helper targets for new
31987 tst-syscall-list test.
31988 [$(subdir) = misc] (tst-syscall-list.out): Run test script
31989 tst-syscall-list.sh.
31990 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
31991 target. Do not include bits/syscall.d.
31992 [$(subdir) = misc] (generated): Do not update.
31993 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
31994 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
31995 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
31996 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
31997
31998 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
31999
32000 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32001 (tst-cxa_atexit, tst-on_exit): Likewise.
32002 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32003 tst-cxa_atexit, and tst-on_exit.
32004 * stdlib/tst-atexit-common.c: New file.
32005 * stdlib/tst-atexit.c: New file.
32006 * stdlib/tst-at_quick_exit.c: New file.
32007 * stdlib/tst-cxa_atexit.c: New file.
32008 * stdlib/tst-on_exit.c: New file.
32009
32010 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32011
32012 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32013 * mach/stack_chk_fail_local.c: New file.
32014 * hurd/stack_chk_fail_local.c: New file.
32015 * mach/Machrules ($(interface-library)-routines): Add
32016 stack_chk_fail_local.
32017 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32018 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32019 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32020 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32021 * hurd/Makefile (CFLAGS-hurdstartup.o,
32022 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32023
32024 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32025
32026 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32027 (index_cpu_*, index_arch_*): Removed.
32028
32029 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32030
32031 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32032 Use uint64_t instead of unsigned long.
32033
32034 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32035
32036 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32037 [__HAVE_DISTINCT_FLOAT128].
32038
32039 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32040 of <bits/math-finite.h>.
32041 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32042 inclusion of <bits/math-finite.h>.
32043 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32044 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32045 __NO_LONG_DOUBLE_MATH].
32046 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32047 (__MATH_REDIRCALL_2): Likewise.
32048 (__MATH_REDIRCALL_INTERNAL): Likewise.
32049 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32050 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32051 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32052
32053 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32054 Remove file.
32055 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32056 Likewise.
32057 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32058 Likewise.
32059 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32060 Likewise.
32061 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32062 Likewise.
32063 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32064 Likewise.
32065 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32066 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32067 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32068 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32069 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32070 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32071 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32072 w_sqrtf_compat-ppc32.
32073
32074 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32075
32076 * math/math.h [defined __cplusplus] (issignaling): In the long
32077 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32078 is not defined. Call __issignaling, otherwise.
32079
32080 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32081
32082 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32083 syscall definitions and replace __builtin_expect with __glibc_likely.
32084 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32085 syscall.
32086 (SYSCALL_CANCELLABLE): Removedefinition
32087 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32088 definition.
32089 (PSEUDO_END): Likewise.
32090 [IS_IN (libpthread)] (CENABLE): Likewise.
32091 [IS_IN (libpthread)] (CDISABLE): Likewise.
32092 [IS_IN (libc)] (CENABLE): Likewise.
32093 [IS_IN (libc)] (CENABLE): Likewise.
32094 [IS_IN (librt)] (CDISABLE): Likewise.
32095 [IS_IN (librt)] (CDISABLE): Likewise.
32096 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32097 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32098 definition.
32099 (PSEUDO_END): Likewise.
32100 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32101 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32102 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32103 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32104 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32105 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32106 (CENABLE): Likewise.
32107 (CDISABLE): Likewise.
32108 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32109 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32110 defintion.
32111 (PSEUDO_END): Likewise.
32112 [IS_IN (libpthread)] (CENABLE): Likewise.
32113 [IS_IN (libpthread)] (CDISABLE): Likewise.
32114 [IS_IN (libc)] (CENABLE): Likewise.
32115 [IS_IN (libc)] (CENABLE): Likewise.
32116 [IS_IN (librt)] (CDISABLE): Likewise.
32117 [IS_IN (librt)] (CDISABLE): Likewise.
32118 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32119 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32120 definition.
32121 (PSEUDO_END): Likewise.
32122 [IS_IN (libpthread)] (CENABLE): Likewise.
32123 [IS_IN (libpthread)] (CDISABLE): Likewise.
32124 [IS_IN (libc)] (CENABLE): Likewise.
32125 [IS_IN (libc)] (CENABLE): Likewise.
32126 [IS_IN (librt)] (CDISABLE): Likewise.
32127 [IS_IN (librt)] (CDISABLE): Likewise.
32128 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32129 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32130 definition.
32131 (PSEUDO_END): Likewise.
32132 [IS_IN (libpthread)] (CENABLE): Likewise.
32133 [IS_IN (libpthread)] (CDISABLE): Likewise.
32134 [IS_IN (libc)] (CENABLE): Likewise.
32135 [IS_IN (libc)] (CENABLE): Likewise.
32136 [IS_IN (librt)] (CDISABLE): Likewise.
32137 [IS_IN (librt)] (CDISABLE): Likewise.
32138 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32139 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32140 definition.
32141 (PSEUDO_END): Likewise.
32142 [IS_IN (libpthread)] (CENABLE): Likewise.
32143 [IS_IN (libpthread)] (CDISABLE): Likewise.
32144 [IS_IN (libc)] (CENABLE): Likewise.
32145 [IS_IN (libc)] (CENABLE): Likewise.
32146 [IS_IN (librt)] (CDISABLE): Likewise.
32147 [IS_IN (librt)] (CDISABLE): Likewise.
32148 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32149 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32150 definition.
32151 (PSEUDO_END): Likewise.
32152 [IS_IN (libpthread)] (CENABLE): Likewise.
32153 [IS_IN (libpthread)] (CDISABLE): Likewise.
32154 [IS_IN (libc)] (CENABLE): Likewise.
32155 [IS_IN (libc)] (CENABLE): Likewise.
32156 [IS_IN (librt)] (CDISABLE): Likewise.
32157 [IS_IN (librt)] (CDISABLE): Likewise.
32158 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32159 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32160 definition.
32161 (PSEUDO_END): Likewise.
32162 [IS_IN (libpthread)] (CENABLE): Likewise.
32163 [IS_IN (libpthread)] (CDISABLE): Likewise.
32164 [IS_IN (libc)] (CENABLE): Likewise.
32165 [IS_IN (libc)] (CENABLE): Likewise.
32166 [IS_IN (librt)] (CDISABLE): Likewise.
32167 [IS_IN (librt)] (CDISABLE): Likewise.
32168 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32169 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32170 Remove definition.
32171 (PSEUDO_END): Likewise.
32172 [IS_IN (libpthread)] (CENABLE): Likewise.
32173 [IS_IN (libpthread)] (CDISABLE): Likewise.
32174 [IS_IN (libc)] (CENABLE): Likewise.
32175 [IS_IN (libc)] (CENABLE): Likewise.
32176 [IS_IN (librt)] (CDISABLE): Likewise.
32177 [IS_IN (librt)] (CDISABLE): Likewise.
32178 (SINGLE_THREAD_P): Likewise.
32179 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32180 definition.
32181 (PSEUDO_END): Likewise.
32182 [IS_IN (libpthread)] (CENABLE): Likewise.
32183 [IS_IN (libpthread)] (CDISABLE): Likewise.
32184 [IS_IN (libc)] (CENABLE): Likewise.
32185 [IS_IN (libc)] (CENABLE): Likewise.
32186 [IS_IN (librt)] (CDISABLE): Likewise.
32187 [IS_IN (librt)] (CDISABLE): Likewise.
32188 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32189 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32190 definition.
32191 (PSEUDO_END): Likewise.
32192 [IS_IN (libpthread)] (CENABLE): Likewise.
32193 [IS_IN (libpthread)] (CDISABLE): Likewise.
32194 [IS_IN (libc)] (CENABLE): Likewise.
32195 [IS_IN (libc)] (CENABLE): Likewise.
32196 [IS_IN (librt)] (CDISABLE): Likewise.
32197 [IS_IN (librt)] (CDISABLE): Likewise.
32198 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32199 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32200 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32201 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32202 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32203 definition.
32204 (PSEUDO_END): Likewise.
32205 [IS_IN (libpthread)] (CENABLE): Likewise.
32206 [IS_IN (libpthread)] (CDISABLE): Likewise.
32207 [IS_IN (libc)] (CENABLE): Likewise.
32208 [IS_IN (libc)] (CENABLE): Likewise.
32209 [IS_IN (librt)] (CDISABLE): Likewise.
32210 [IS_IN (librt)] (CDISABLE): Likewise.
32211 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32212 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32213 definition.
32214 (PSEUDO_END): Likewise.
32215 [IS_IN (libpthread)] (CENABLE): Likewise.
32216 [IS_IN (libpthread)] (CDISABLE): Likewise.
32217 [IS_IN (libc)] (CENABLE): Likewise.
32218 [IS_IN (libc)] (CENABLE): Likewise.
32219 [IS_IN (librt)] (CDISABLE): Likewise.
32220 [IS_IN (librt)] (CDISABLE): Likewise.
32221 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32222 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32223 definition.
32224 (PSEUDO_END): Likewise.
32225 [IS_IN (libpthread)] (CENABLE): Likewise.
32226 [IS_IN (libpthread)] (CDISABLE): Likewise.
32227 [IS_IN (libc)] (CENABLE): Likewise.
32228 [IS_IN (libc)] (CENABLE): Likewise.
32229 [IS_IN (librt)] (CDISABLE): Likewise.
32230 [IS_IN (librt)] (CDISABLE): Likewise.
32231 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32232 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32233 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32234 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32235 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32236 definition.
32237 (PSEUDO_END): Likewise.
32238 [IS_IN (libpthread)] (CENABLE): Likewise.
32239 [IS_IN (libpthread)] (CDISABLE): Likewise.
32240 [IS_IN (libc)] (CENABLE): Likewise.
32241 [IS_IN (libc)] (CENABLE): Likewise.
32242 [IS_IN (librt)] (CDISABLE): Likewise.
32243 [IS_IN (librt)] (CDISABLE): Likewise.
32244 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32245 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32246 definition.
32247 (PSEUDO_END): Likewise.
32248 [IS_IN (libpthread)] (CENABLE): Likewise.
32249 [IS_IN (libpthread)] (CDISABLE): Likewise.
32250 [IS_IN (libc)] (CENABLE): Likewise.
32251 [IS_IN (libc)] (CENABLE): Likewise.
32252 [IS_IN (librt)] (CDISABLE): Likewise.
32253 [IS_IN (librt)] (CDISABLE): Likewise.
32254 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32255
32256 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32257
32258 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32259
32260 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32261
32262 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32263
32264 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32265
32266 [BZ #21982]
32267 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32268 middle and outer with size_t instead of int. Repleace %d and
32269 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32270 "MAX (outer, nchars - 64)" to support unsigned outer and
32271 nchars. Also exit loop when outer == 0.
32272
32273 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32274
32275 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32276 * include/signal.h (__sigsuspend_nocancel): Likewise.
32277 * include/time.h (__nanosleep_nocancel): Likewise.
32278 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32279 * login/utmp_file.c: Include non cancellable syscall header.
32280 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32281 prototype.
32282
32283 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32284
32285 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32286 .byte sequences with AVX512F instructions.
32287 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32288 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32289 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32290 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32291 Likewise.
32292 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32293 Likewise.
32294
32295 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32296 Steve Ellcey <sellcey@cavium.com>
32297
32298 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32299 Use PTR_REG macro in cmp instruction.
32300
32301 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32302
32303 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32304 Change the return type of the ifunc resolver to match the return
32305 type of the target function.
32306
32307 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32308
32309 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32310 (preadv64): Likewise.
32311 (pwrite64(: Likewise.
32312 (pwritev64): Likewise.
32313
32314 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32315 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32316 (LOAD_ARGS_0): Likewise.
32317 (LOAD_ARGS_1): Likewise.
32318 (LOAD_ARGS_2): Likewise.
32319 (LOAD_ARGS_3): Likewise.
32320 (LOAD_ARGS_4): Likewise.
32321 (LOAD_ARGS_5): Likewise.
32322 (LOAD_ARGS_6): Likewise.
32323 (LOAD_REGS_0): Likewise.
32324 (LOAD_REGS_1): Likewise.
32325 (LOAD_REGS_2): Likewise.
32326 (LOAD_REGS_3): Likewise.
32327 (LOAD_REGS_4): Likewise.
32328 (LOAD_REGS_5): Likewise.
32329 (LOAD_REGS_6): Likewise.
32330 (ASM_ARGS_0): Likewise.
32331 (ASM_ARGS_1): Likewise.
32332 (ASM_ARGS_2): Likewise.
32333 (ASM_ARGS_3): Likewise.
32334 (ASM_ARGS_4): Likewise.
32335 (ASM_ARGS_5): Likewise.
32336 (ASM_ARGS_6): Likewise.
32337 (LOAD_ARGS_TYPES_1): Likewise.
32338 (LOAD_ARGS_TYPES_2): Likewise.
32339 (LOAD_ARGS_TYPES_3): Likewise.
32340 (LOAD_ARGS_TYPES_4): Likewise.
32341 (LOAD_ARGS_TYPES_5): Likewise.
32342 (LOAD_ARGS_TYPES_6): Likewise.
32343 (LOAD_REGS_TYPES_1): Likewise.
32344 (LOAD_REGS_TYPES_2): Likewise.
32345 (LOAD_REGS_TYPES_3): Likewise.
32346 (LOAD_REGS_TYPES_4): Likewise.
32347 (LOAD_REGS_TYPES_5): Likewise.
32348 (LOAD_REGS_TYPES_6): Likewise.
32349 (TYPEFY): New define.
32350 (ARGIFY): Likewise.
32351 (internal_syscall0): Likewise.
32352 (internal_syscall1): Likewise.
32353 (internal_syscall2): Likewise.
32354 (internal_syscall3): Likewise.
32355 (internal_syscall4): Likewise.
32356 (internal_syscall5): Likewise.
32357 (internal_syscall6): Likewise.
32358 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32359 (INTERNAL_SYSCALL_NCS): Remove define.
32360 (internal_syscall1): Add define.
32361
32362 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32363
32364 * math/w_remainder_compat.c: Remove duplicate inclusion of
32365 math-svid-compat.h.
32366 * math/w_remainderf_compat.c: Likewise.
32367 * math/w_remainderl_compat.c: Likewise.
32368
32369 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32370
32371 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32372
32373 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32374
32375 [BZ #21684]
32376 * math/tgmath.h (__floating_type): Simplify definitions.
32377 (__real_integer_type): New macro.
32378 (__complex_integer_type): Likewise.
32379 (__expr_is_real): Likewise.
32380 (__tgmath_real_type_sub): Update comment to describe handling of
32381 complex types.
32382 (__tgmath_complex_type_sub): New macro.
32383 (__tgmath_complex_type): Likewise.
32384 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32385 (__TGMATH_CF128): Use __expr_is_real.
32386 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32387 __expr_is_real.
32388 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32389 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32390 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32391 integer types.
32392
32393 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32394
32395 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32396 macro.
32397 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32398 alias.
32399 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32400 Likewise.
32401
32402 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32403 nanosleep_not_cancel with __nanosleep_nocancel.
32404 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32405 (__nanosleep_nocancel): New macro.
32406 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32407 function.
32408 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32409 macro.
32410 (__nanosleep_nocancel): New prototype.
32411
32412 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32413 pause_not_cancel with __pause_nocancel.
32414 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32415 (__pause_nocancel): New macro.
32416 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32417 macro.
32418 (__pause_nocancel): New prototype.
32419 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32420
32421 2017-08-22 Martin Sebor <msebor@redhat.com>
32422
32423 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32424 to return a pointer to the same type as the target function.
32425
32426 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32427
32428 [BZ #18822]
32429 [BZ #21986]
32430 * include/printf.h (__printf_fphex): Add attribute_hidden.
32431 (__guess_grouping): New prototype.
32432 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32433 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32434 libc_hidden_proto and libc_hidden_def.
32435 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32436 (__vstrfmon_l): Remove the third argument passed to
32437 __guess_grouping.
32438
32439 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32440
32441 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32442 definition for issignaling that does not rely on __MATH_TG,
32443 since __MATH_TG uses __builtin_types_compatible_p, which is only
32444 available in C mode.
32445 (CFLAGS-test-math-issignaling.cc): New variable.
32446 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32447 * math/test-math-issignaling.cc: New test for C++ implementation
32448 of type-generic issignaling.
32449 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32450 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32451 options of test-math-issignaling on powerpc64le.
32452
32453 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32454
32455 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32456 building libc.a.
32457 (hidden_proto): Likewise.
32458 (hidden_tls_proto): Likewise.
32459 (__hidden_proto): Likewise.
32460
32461 2017-08-22 Florian Weimer <fweimer@redhat.com>
32462
32463 math: Statically link tests of internal functionality.
32464 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32465 atest-exp2.
32466 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32467 (gmp-objs): Remove assignment.
32468 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32469
32470 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32471
32472 [BZ #21987]
32473 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32474 and copy to ...
32475 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32476 ... here.
32477 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32478 ... and here.
32479
32480 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32481 variable definitions above inclusion of ../Rules.
32482
32483 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32484
32485 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32486 case calling __builtin_unreachable.
32487
32488 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32489
32490 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32491 __waitpid_nocancel.
32492 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32493 (__waitpid_nocancel): New macro.
32494 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32495 macro.
32496 (__waitpid_nocancel): Replace macro with a function.
32497 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32498 function.
32499
32500 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32501 __fcntl_nocancel.
32502 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32503 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32504
32505 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32506 __writev_nocancel_nostatus.
32507 (write_call_graph): Likewise.
32508 (write_bb_counts): Likewise.
32509 * resolv/herror.c (herror): Likewise.
32510 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32511 macro.
32512 (__writev_nocancel_nostatus): New macro.
32513 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32514 Remove macro.
32515 (__writev_nocancel_nostatus): New function.
32516
32517 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32518
32519 Revert:
32520 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32521
32522 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32523 building libc.a.
32524 (hidden_proto): Likewise.
32525 (hidden_tls_proto): Likewise.
32526 (__hidden_proto): Likewise.
32527
32528 [BZ #21973]
32529 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32530 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32531 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32532 Likewise.
32533 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32534 Likewise.
32535 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32536 Likewise.
32537 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32538 Likewise.
32539 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32540 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32541 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32542 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32543 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32544 GLIBC_2.0 sqrtl symbol.
32545
32546 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32547 [__USE_MISC] (_LIB_VERSION): Likewise.
32548 [__USE_MISC] (struct exception): Likewise.
32549 [__USE_MISC] (matherr): Likewise.
32550 [__USE_MISC] (DOMAIN): Likewise.
32551 [__USE_MISC] (SING): Likewise.
32552 [__USE_MISC] (OVERFLOW): Likewise.
32553 [__USE_MISC] (UNDERFLOW): Likewise.
32554 [__USE_MISC] (TLOSS): Likewise.
32555 [__USE_MISC] (PLOSS): Likewise.
32556 [__USE_MISC] (HUGE): Likewise.
32557 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32558 * math/math-svid-compat.h: New file.
32559 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32560 and matherrl.
32561 * include/math.h [!_ISOMAC] (__matherr): Remove.
32562 * manual/arith.texi (FP Exceptions): Do not document matherr.
32563 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32564 (tests-internal): New variable.
32565 (install-lib): Do not add libieee.a.
32566 (non-lib.a): Likewise.
32567 (extra-objs): Do not add libieee.a and ieee-math.o.
32568 (CPPFLAGS-s_lib_version.c): Remove variable.
32569 ($(objpfx)libieee.a): Remove rule.
32570 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32571 * math/ieee-math.c: Remove.
32572 * math/libm-test-support.c (matherr): Remove.
32573 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32574 and license notices. Include <math-svid-compat.h> and
32575 <shlib-compat.h>.
32576 (matherr): Undefine as macro. Use compat_symbol_reference.
32577 (_LIB_VERSION): Likewise.
32578 * math/test-matherr-2.c: New file.
32579 * math/test-matherr-3.c: Likewise.
32580 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32581 declaration.
32582 (__kernel_standard_f): Likewise.
32583 (__kernel_standard_l): Likewise.
32584 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32585 <math_private.h>. Include <math-svid-compat.h>.
32586 (_LIB_VERSION): Undefine as macro.
32587 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32588 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32589 [LIBM_SVID_COMPAT], use compat_symbol.
32590 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32591 <math_private.h>. Include <math-svid-compat.h>.
32592 (matherr): Undefine as macro.
32593 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32594 compat_symbol.
32595 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32596 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32597 compat_symbol_reference.
32598 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32599 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32600 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32601 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32602 (MATHERR_D): Remove declaration.
32603 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32604 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32605 [LIBM_BUILD] (pmatherrf): Likewise.
32606 [LIBM_BUILD] (pmatherr): Likewise.
32607 [LIBM_BUILD] (pmatherrl): Likewise.
32608 (DOMAIN): Likewise.
32609 (SING): Likewise.
32610 (OVERFLOW): Likewise.
32611 (UNDERFLOW): Likewise.
32612 (TLOSS): Likewise.
32613 (PLOSS): Likewise.
32614 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32615 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32616 compat_symbol.
32617 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32618 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32619 compat_symbol.
32620 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32621 * math/w_acos_compat.c: Likewise.
32622 * math/w_acosf_compat.c: Likewise.
32623 * math/w_acosh_compat.c: Likewise.
32624 * math/w_acoshf_compat.c: Likewise.
32625 * math/w_acoshl_compat.c: Likewise.
32626 * math/w_acosl_compat.c: Likewise.
32627 * math/w_asin_compat.c: Likewise.
32628 * math/w_asinf_compat.c: Likewise.
32629 * math/w_asinl_compat.c: Likewise.
32630 * math/w_atan2_compat.c: Likewise.
32631 * math/w_atan2f_compat.c: Likewise.
32632 * math/w_atan2l_compat.c: Likewise.
32633 * math/w_atanh_compat.c: Likewise.
32634 * math/w_atanhf_compat.c: Likewise.
32635 * math/w_atanhl_compat.c: Likewise.
32636 * math/w_cosh_compat.c: Likewise.
32637 * math/w_coshf_compat.c: Likewise.
32638 * math/w_coshl_compat.c: Likewise.
32639 * math/w_exp10_compat.c: Likewise.
32640 * math/w_exp10f_compat.c: Likewise.
32641 * math/w_exp10l_compat.c: Likewise.
32642 * math/w_exp2_compat.c: Likewise.
32643 * math/w_exp2f_compat.c: Likewise.
32644 * math/w_exp2l_compat.c: Likewise.
32645 * math/w_fmod_compat.c: Likewise.
32646 * math/w_fmodf_compat.c: Likewise.
32647 * math/w_fmodl_compat.c: Likewise.
32648 * math/w_hypot_compat.c: Likewise.
32649 * math/w_hypotf_compat.c: Likewise.
32650 * math/w_hypotl_compat.c: Likewise.
32651 * math/w_j0_compat.c: Likewise.
32652 * math/w_j0f_compat.c: Likewise.
32653 * math/w_j0l_compat.c: Likewise.
32654 * math/w_j1_compat.c: Likewise.
32655 * math/w_j1f_compat.c: Likewise.
32656 * math/w_j1l_compat.c: Likewise.
32657 * math/w_jn_compat.c: Likewise.
32658 * math/w_jnf_compat.c: Likewise.
32659 * math/w_jnl_compat.c: Likewise.
32660 * math/w_lgamma_main.c: Likewise.
32661 * math/w_lgamma_r_compat.c: Likewise.
32662 * math/w_lgammaf_main.c: Likewise.
32663 * math/w_lgammaf_r_compat.c: Likewise.
32664 * math/w_lgammal_main.c: Likewise.
32665 * math/w_lgammal_r_compat.c: Likewise.
32666 * math/w_log10_compat.c: Likewise.
32667 * math/w_log10f_compat.c: Likewise.
32668 * math/w_log10l_compat.c: Likewise.
32669 * math/w_log2_compat.c: Likewise.
32670 * math/w_log2f_compat.c: Likewise.
32671 * math/w_log2l_compat.c: Likewise.
32672 * math/w_log_compat.c: Likewise.
32673 * math/w_logf_compat.c: Likewise.
32674 * math/w_logl_compat.c: Likewise.
32675 * math/w_pow_compat.c: Likewise.
32676 * math/w_powf_compat.c: Likewise.
32677 * math/w_powl_compat.c: Likewise.
32678 * math/w_remainder_compat.c: Likewise.
32679 * math/w_remainderf_compat.c: Likewise.
32680 * math/w_remainderl_compat.c: Likewise.
32681 * math/w_scalb_compat.c: Likewise.
32682 * math/w_scalbf_compat.c: Likewise.
32683 * math/w_scalbl_compat.c: Likewise.
32684 * math/w_sinh_compat.c: Likewise.
32685 * math/w_sinhf_compat.c: Likewise.
32686 * math/w_sinhl_compat.c: Likewise.
32687 * math/w_sqrt_compat.c: Likewise.
32688 * math/w_sqrtf_compat.c: Likewise.
32689 * math/w_sqrtl_compat.c: Likewise.
32690 * math/w_tgamma_compat.c: Likewise.
32691 * math/w_tgammaf_compat.c: Likewise.
32692 * math/w_tgammal_compat.c: Likewise.
32693 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32694 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32695 * sysdeps/ieee754/k_standard.c: Likewise.
32696 * sysdeps/ieee754/k_standardf.c: Likewise.
32697 * sysdeps/ieee754/k_standardl.c: Likewise.
32698 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32699 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32700 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32701 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32702 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32703 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32704 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32705 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32706 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32707 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32708 Likewise.
32709 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32710 Likewise.
32711 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32712 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32713 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32714 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32715
32716 2017-08-21 Florian Weimer <fweimer@redhat.com>
32717
32718 [BZ #21864]
32719 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32720 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32721 Move before inclusion of ../Rules.
32722
32723 2017-08-21 Florian Weimer <fweimer@redhat.com>
32724
32725 [BZ #21972]
32726 * assert/assert.h (assert): Use static_cast (bool) for C++.
32727 Use the ternary operator in the warning branch for GNU C.
32728 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32729 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32730 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32731 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32732 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32733
32734 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32735
32736 [BZ #18822]
32737 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32738 (__syscall_clock_gettime): Add attribute_hidden.
32739 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32740 (__start_context): Likewise.
32741
32742 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32743
32744 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32745 building libc.a.
32746 (hidden_proto): Likewise.
32747 (hidden_tls_proto): Likewise.
32748 (__hidden_proto): Likewise.
32749
32750 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32751
32752 * include/libc-symbols.h (attribute_hidden): Enable hidden
32753 visibility in libc.a compiled with PIE.
32754
32755 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32756
32757 [BZ #18822]
32758 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
32759 Add attribute_hidden.
32760
32761 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32762
32763 [BZ #21864]
32764 * Makerules (all-nonlib): Add $(others-extras).
32765 * catgets/Makefile (others-extras): New.
32766 * elf/Makefile (others-extras): Likewise.
32767 * nss/Makefile (others-extras): Likewise.
32768
32769 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32770
32771 [BZ #18822]
32772 * csu/libc-start.c (__libc_multiple_libcs): Removed.
32773 * elf/dl-open.c: Include <libc-internal.h>.
32774 (__libc_multiple_libcs): Removed.
32775 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
32776 <hp-timing.h>.
32777 * include/libc-internal.h (__libc_multiple_libcs): New.
32778 * misc/sbrk.c: Include <libc-internal.h>.
32779 (__libc_multiple_libcs): Removed.
32780
32781 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32782
32783 [BZ #18822]
32784 * grp/initgroups.c (__nss_group_database): Removed.
32785 (__nss_initgroups_database): Likewise.
32786 * nscd/gai.c (__nss_hosts_database): Likewise.
32787 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
32788 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
32789 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
32790 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
32791 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
32792 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
32793 attribute_hidden.
32794 * nss/nsswitch.c (__nss_database_custom): Define only if
32795 USE_NSCD is defined.
32796 (__nss_configure_lookup): Use __nss_database_custom only if
32797 USE_NSCD is defined.
32798 * nss/nsswitch.h (__nss_database_custom): Declare only if
32799 USE_NSCD is defined. Add attribute_hidden.
32800 (__nss_setent): Add attribute_hidden.
32801 (__nss_endent): Likewise.
32802 (__nss_getent_r): Likewise.
32803 (__nss_getent): Likewise.
32804 (DEFINE_DATABASE): Declare __nss_##arg##_database.
32805
32806 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32807
32808 [BZ #18822]
32809 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
32810 libc_hidden_proto and libc_hidden_def.
32811
32812 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32813
32814 [BZ #18822]
32815 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
32816 Add libc_hidden_proto.
32817 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
32818 Add libc_hidden_def.
32819
32820 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32821
32822 [BZ #21974]
32823 * gmon/Makefile (routines): Remove bb_init_func and
32824 bb_exit_func.
32825 (elide-routines.os): Removed.
32826 * gmon/bb_exit_func.c: Likewise.
32827 * gmon/bb_init_func.c: Likewise.
32828 * include/sys/gmon.h (__bb): Likewise.
32829 (__bb_init_func): Likewise.
32830 (__bb_exit_func): Likewise.
32831 * sysdeps/alpha/bb_init_func.S: Likewise.
32832
32833 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
32834
32835 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
32836 * include/setjmp.h (____longjmp_chk): Here. Add
32837 attribute_hidden.
32838
32839 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
32840
32841 [BZ #18822]
32842 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
32843 attribute_hidden.
32844 (__strspn_sse2): Likewise.
32845
32846 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32847
32848 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
32849 (close_not_cancel_no_status): Likewise.
32850 (__close_nocancel): New macro.
32851 (__close_nocancel_nostatus): Likewise.
32852 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
32853 macro.
32854 (close_not_cancel): Likewise.
32855 (close_not_cancel_no_status): Likewise.
32856 (__close_nocancel): New prototype.
32857 (__close_nocancel_nostatus): New function.
32858 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
32859 * catgets/open_catalog.c (__open_catalog): Replace
32860 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
32861 * gmon/gmon.c (write_gmon): Likewise.
32862 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
32863 * intl/loadmsgcat.c (close): Likewise.
32864 * io/ftw.c (open_dir_stream): Likewise.
32865 (ftw_startup): Likewise.
32866 * libio/fileops.c (_IO_file_open): Likewise.
32867 (_IO_file_close_mmap): Likewise.
32868 (_IO_file_close): Likewise.
32869 * libio/iopopen.c (_IO_dup2): Likewise.
32870 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32871 * locale/loadlocale.c (_nl_load_locale): Likewise.
32872 * login/utmp_file.c (pututline_file): Likewise.
32873 (endutent_file): Likewise.
32874 * misc/daemon.c (daemon): Likewise.
32875 * nscd/nscd_getai.c (__nscd_getai): Likewise.
32876 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32877 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32878 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32879 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32880 * nscd/nscd_helper.c (open_socket): Likewise.
32881 (__nscd_open_socket): Likewise.
32882 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
32883 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
32884 (__nscd_innetgr): Likewise.
32885 * nss/nss_db/db-open.c (internal_setent): Likewise.
32886 * resolv/res-close.c (__res_iclose): Likewise.
32887 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
32888 * sysdeps/posix/closedir.c (__closedir): Likewise.
32889 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
32890 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32891 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
32892 (opendir_tail): Likewise.
32893 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
32894 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
32895 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
32896 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
32897 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
32898 (gethostid): Likewise.
32899 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
32900 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32901 Likewise.
32902 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
32903 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
32904 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
32905 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
32906 Likewise.
32907 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
32908 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
32909 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
32910 Likewise.
32911 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
32912 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
32913 Likewise.
32914 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
32915 Likewise.
32916 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
32917 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
32918 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
32919 __close_nocancel.
32920
32921 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
32922 (openat_not_cancel_3): Likewise.
32923 (openat64_not_cancel_3): Likewise).
32924 (openat_not_cancel_3): Likewise).
32925 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
32926 macro.
32927 (openat_not_cancel_3): Likewise.
32928 (openat64_not_cancel): Likewise.
32929 (openat64_not_cancel_3): Likewise.
32930 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
32931 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
32932 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
32933 __open{64}_nocancel.
32934 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32935 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32936 * sysdeps/posix/opendir.c (__opendirat): Likewise.
32937
32938 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32939
32940 [BZ #18822]
32941 * include/argz.h (__argz_create_sep): New function prototype.
32942 (__argz_append): Likewise.
32943 (__argz_add): Likewise.
32944 (__argz_add_sep): Likewise.
32945 (__argz_delete): Likewise.
32946 (__argz_insert): Likewise.
32947 (__argz_replace): Likewise.
32948 * string/argz.h (__argz_create_sep): Removed.
32949 (__argz_append): Likewise.
32950 (__argz_add): Likewise.
32951 (__argz_add_sep): Likewise.
32952 (__argz_delete): Likewise.
32953 (__argz_insert): Likewise.
32954 (__argz_replace): Likewise.
32955
32956 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
32957
32958 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
32959 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
32960 (GNU_PROPERTY_STACK_SIZE): Likewie.
32961 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
32962 (GNU_PROPERTY_LOPROC): Likewise.
32963 (GNU_PROPERTY_HIPROC): Likewise.
32964 (GNU_PROPERTY_LOUSER): Likewise.
32965 (GNU_PROPERTY_HIUSER): Likewise.
32966 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
32967 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
32968 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
32969 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
32970 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
32971 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
32972 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
32973 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
32974 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
32975 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
32976 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
32977 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
32978 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
32979 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
32980 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
32981 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
32982 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
32983 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
32984 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
32985 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
32986 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
32987 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
32988 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
32989
32990 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32991
32992 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
32993 in C++ mode.
32994
32995 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32996
32997 [BZ #21930]
32998 * math/math.h (isinf): Check if in C or C++ mode before using
32999 __builtin_types_compatible_p, since this is a C mode feature.
33000
33001 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33002
33003 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33004 (__write_nocancel): New macro.
33005 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33006 Rewrite as a function prototype.
33007 (write_not_cancel): Remove macro.
33008 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33009 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33010 (write_gmon): Likewise.
33011 * libio/fileops.c (_IO_new_file_write): Likewise.
33012 * login/utmp_file.c (pututline_file): Likewise.
33013 (updwtmp_file): Likewise.
33014 * stdio-common/psiginfo.c (psiginfo): Likewise.
33015 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33016 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33017 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33018 Likewise.
33019 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33020 Likewise.
33021
33022 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33023 (__read_nocancel): New macro.
33024 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33025 __read_nocancel.
33026 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33027 macro.
33028 (__read_nocancel): New prototype.
33029 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33030 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33031 with __read_nocancel.
33032 * intl/loadmsgcat.c (read): Likewise.
33033 * libio/fileops.c (_IO_file_read): Likewise.
33034 * locale/loadlocale.c (_nl_load_locale): Likewise.
33035 * login/utmp_file.c (getutent_r_file): Likewise.
33036 (internal_getut_r): Likewise.
33037 (getutline_r_file): Likewise.
33038 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33039 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33040 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33041 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33042 Likewise.
33043 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33044 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33045 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33046 Likewise.
33047 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33048 Likewise.
33049 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33050 Likewise.
33051 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33052 Likewise.
33053 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33054
33055 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33056
33057 [BZ #21966]
33058 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33059 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33060 usable.
33061
33062 2017-08-17 DJ Delorie <dj@redhat.com>
33063
33064 * bug17079.c: Update to new test harness.
33065 * test-digits-dots.c: Likewise.
33066 * test-netdb.c: Likewise.
33067 * tst-field.c: Likewise.
33068 * tst-nss-getpwent.c: Likewise.
33069 * tst-nss-static.c: Likewise.
33070 * tst-nss-test1.c: Likewise.
33071 * tst-nss-test2.c: Likewise.
33072 * tst-nss-test3.c: Likewise.
33073 * tst-nss-test4.c: Likewise.
33074 * tst-nss-test5.c: Likewise.
33075
33076 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33077
33078 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33079 (open_not_cancel_2): Likewise.
33080 (open_nocancel): New macro.
33081 (open64_nocancel): Likewise.
33082 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33083 (open_not_cancel_2): Likewise.
33084 (__open_nocancel): New prototype.
33085 (__open64_nocancel): Likewise.
33086 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33087 __open_nocancel.
33088 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33089 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33090 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33091 with __open_nocancel.
33092 * csu/check_fds.c (check_one_fd): Likewise.
33093 * gmon/gmon.c (write_gmon): Likewise.
33094 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33095 * intl/loadmsgcat.c (open): Likewise.
33096 * libio/fileops.c (_IO_file_open): Likewise.
33097 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33098 * locale/loadlocale.c (_nl_load_locale): Likewise.
33099 * login/utmp_file.c (setutent_file): Likewise.
33100 * misc/daemon.c (daemon): Likewise.
33101 * nss/nss_db/db-open.c (internal_setent): Likewise.
33102 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33103 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33104 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33105 (__opendir): Likewise.
33106 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33107 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33108 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33109 (gethostid): Likewise.
33110 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33111 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33112 Likewise.
33113 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33114 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33115 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33116 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33117 Likewise.
33118 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33119 Likewise.
33120 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33121 Likewise.
33122 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33123 Likewise.
33124 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33125 Likewise.
33126 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33127 Likewise.
33128 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33129 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33130
33131 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33132
33133 * benchtests/bench-skeleton.c (main): Add support for
33134 latency benchmarking.
33135 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33136
33137 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33138
33139 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33140 the startup object.
33141
33142 2017-08-17 Florian Weimer <fweimer@redhat.com>
33143
33144 * include/sys/socket.h (__opensock): Remove internal_function.
33145 * socket/opensock.c (__opensock): Likewise.
33146 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33147
33148 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33149
33150 [BZ #21944]
33151 * signal/bits/types/__sigval_t.h: New file.
33152 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33153 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33154 and define sigval_t using __sigval_t.
33155 * include/bits/types/__sigval_t.h: New file.
33156 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33157 instead of <bits/types/__sigval_t.h>.
33158 (struct sigevent): Use __sigval_t instead of sigval_t.
33159 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33160 instead of <bits/types/__sigval_t.h>.
33161 (siginfo_t): Use __sigval_t instead of sigval_t.
33162 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33163 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33164 (struct sigevent): Use __sigval_t instead of sigval_t.
33165 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33166 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33167 (siginfo_t): Use __sigval_t instead of sigval_t.
33168 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33169
33170 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33171
33172 * NEWS: Remove "[Add new features here]" for 2.27.
33173
33174 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33175
33176 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33177 libc.so.
33178
33179 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33180
33181 * NEWS: Mention x86-64 FMA optimization.
33182
33183 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33184
33185 [BZ #21912]
33186 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33187 Add e_expf-fma.
33188 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33189 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33190 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33191
33192 2017-08-16 Andreas Schwab <schwab@suse.de>
33193
33194 [BZ #16750]
33195 CVE-2009-5064
33196 * elf/ldd.bash.in: Never run file directly.
33197
33198 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33199
33200 [BZ #21955]
33201 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33202 (L(SP_INF_0)): Likewise.
33203
33204 2017-08-15 Florian Weimer <fweimer@redhat.com>
33205
33206 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33207 run-built-tests.
33208
33209 2017-08-15 Florian Weimer <fweimer@redhat.com>
33210
33211 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33212 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33213 BROKEN_THREAD_SIGNALS code.
33214 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33215 request_list): Remove caller_pid member used for
33216 BROKEN_THREAD_SIGNALS.
33217 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33218 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33219 Remove BROKEN_THREAD_SIGNALS support.
33220 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33221 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33222
33223 2017-08-15 Florian Weimer <fweimer@redhat.com>
33224
33225 * gmon/Makefile (tests): Add tst-gmon.
33226 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33227 Set.
33228 (tests-special): Add tst-gmon-prof.out.
33229 (tst-gmon.out): Depend on clean-tst-gmon-data.
33230 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33231 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33232 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33233 startup object.
33234 * aclocal.m4 (GPROF): Set and substitute.
33235 * config.amke.in (GPROF): Set.
33236 * configure: Regenerate.
33237
33238 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33239
33240 * elf/elf.h A (NT_PPC_TAR): New macro.
33241 (NT_PPC_PPR): Likewise.
33242 (NT_PPC_DSCR): Likewise.
33243 (NT_PPC_EBB): Likewise.
33244 (NT_PPC_PMU): Likewise.
33245 (NT_PPC_TM_CGPR): Likewise.
33246 (NT_PPC_TM_CFPR): Likewise.
33247 (NT_PPC_TM_CVMX): Likewise.
33248 (NT_PPC_TM_CVSX): Likewise.
33249 (NT_PPC_TM_SPR): Likewise.
33250 (NT_PPC_TM_CTAR): Likewise.
33251 (NT_PPC_TM_CPPR): Likewise.
33252 (NT_PPC_TM_CDSCR): Likewise.
33253
33254 2017-08-15 Florian Weimer <fweimer@redhat.com>
33255
33256 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33257 regparm (2) instead of internal_function.
33258 (_MCOUNT_DECL): Adjust.
33259
33260 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33261
33262 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33263 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33264
33265 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33266
33267 * conform/data/sys/wait.h-data (si_value): Do not expect for
33268 XPG42.
33269
33270 2017-08-14 Florian Weimer <fweimer@redhat.com>
33271
33272 [BZ #21962]
33273 NSS: Create stubs for accidentally exported lookup functions.
33274 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33275 Remove declaration.
33276 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33277 (ether_hostton): Call __nss_ethers_lookup2 instead.
33278 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33279 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33280 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33281 (setup): Call __nss_netgroup_lookup2 instead.
33282 * nss/Makefile (routines): Add compat-lookup.
33283 * nss/Versions (GLIBC_2.27): Add symbol version.
33284 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33285 (DB_COMPAT_FCT): Remove.
33286 * nss/compat-lookup.c: New file.
33287 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33288 from databases.def.
33289 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33290 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33291 (netname2user): Call __nss_publickey_lookup2 instead.
33292 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33293 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33294 instead.
33295
33296 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33297 Sergei Trofimovich <slyfox@inbox.ru>
33298
33299 [BZ #21908]
33300 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33301 Rename to MMAP2_PAGE_UNIT.
33302 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33303 __OFF_T_MATCHES_OFF64_T is not defined.
33304 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33305 uint64_t.
33306 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33307 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33308
33309 2017-08-14 Florian Weimer <fweimer@redhat.com>
33310
33311 i386: Do not set internal_function.
33312 * config.h.in (USE_REGPARMS, internal_function): Remove.
33313 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33314 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33315
33316 2017-08-14 Florian Weimer <fweimer@redhat.com>
33317
33318 * elf/dl-init.c (_dl_init): Remove internal_function.
33319 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33320 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33321
33322 2017-08-14 Florian Weimer <fweimer@redhat.com>
33323
33324 * elf/rtld.c (_dl_start): Remove internal_function.
33325 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33326 _dl_start.
33327
33328 2017-08-14 Florian Weimer <fweimer@redhat.com>
33329
33330 * elf/dl-fini.c (_dl_fini): Remove internal_function
33331 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33332
33333 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33334
33335 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33336 (bit_cpu_SHSTK): Likewise.
33337 (index_cpu_IBT): Likewise.
33338 (index_cpu_SHSTK): Likewise.
33339 (reg_IBT): Likewise.
33340 (reg_SHSTK): Likewise.
33341 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33342 Handle index_cpu_IBT and index_cpu_SHSTK.
33343
33344 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33345
33346 [BZ #19982]
33347 * po/fr.po: Fix spelling mistake.
33348
33349 2017-08-13 Florian Weimer <fweimer@redhat.com>
33350
33351 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33352 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33353 (_dl_catch_error, _dl_receive_error): Likewise.
33354 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33355 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33356 (_dl_deallocate_tls): Likewise.
33357 * include/dlfcn.h (_dl_addr): Likewise.
33358 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33359 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33360 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33361 Likewise.
33362
33363 2017-08-13 Florian Weimer <fweimer@redhat.com>
33364
33365 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33366 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33367 internal_function.
33368 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33369
33370 2017-08-13 Florian Weimer <fweimer@redhat.com>
33371
33372 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33373 internal_function.
33374 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33375 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33376 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33377 internal_function from _dl_make_stack_executable_hook member.
33378 (_dl_make_stack_executable): Remove internal_function.
33379 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33380 Likewise.
33381 * sysdeps/unix/sysv/linux/dl-execstack.c
33382 (_dl_make_stack_executable): Likewise.
33383
33384 2017-08-13 Florian Weimer <fweimer@redhat.com>
33385
33386 * sysdeps/unix/sysv/linux/netlinkaccess.h
33387 (__netlink_assert_response): Remove internal_function.
33388 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33389 (__netlink_assert_response): Likewise.
33390
33391 2017-08-13 Florian Weimer <fweimer@redhat.com>
33392
33393 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33394 internal_function.
33395 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33396
33397 2017-08-13 Florian Weimer <fweimer@redhat.com>
33398
33399 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33400 internal_function.
33401 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33402 * inet/netgroup.h (__internal_setnetgrent)
33403 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33404 * inet/getnetgrent_r.c (__internal_setnetgrent)
33405 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33406 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33407 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33408 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33409 * nss/nsswitch.h (db_lookup_function): Likewise.
33410
33411 2017-08-13 Florian Weimer <fweimer@redhat.com>
33412
33413 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33414 Remove internal_function.
33415 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33416 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33417 message argument on the stack.
33418 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33419 Likeweise.
33420
33421 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33422
33423 Adapt test case data to the changes in the thousands
33424 separators.
33425
33426 [BZ #20756]
33427 * localedata/tst-langinfo.sh: Adapt test case data.
33428 * stdlib/tst-strfmon_l.c: Likewise.
33429 * stdlib/tst-strtod4.c: Likewise.
33430 * stdlib/tst-strtod5i.c: Likewise.
33431
33432 2017-08-11 Florian Weimer <fweimer@redhat.com>
33433
33434 [BZ #21242]
33435 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33436 Suppress pedantic warning resulting from statement expression.
33437 (__ASSERT_FUNCTION): Add missing __extension__.
33438
33439 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33440
33441 * benchtests/bench-memmove-large.c: Print output in JSON
33442 format.
33443 * benchtests/bench-memmove.c: Likewise.
33444
33445 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33446 * benchtests/bench-memchr.c (do_one_test): Likewise.
33447 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33448 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33449 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33450 * benchtests/bench-memmove.c (do_one_test): Likewise.
33451 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33452 * benchtests/bench-memset.c (do_one_test): Likewise.
33453 * benchtests/bench-string.h (test_init): Remove memsets.
33454
33455 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33456
33457 * manual/lang.texi
33458 (Computing the Width of an Integer Data Type): Rename section to
33459 "Width of an Integer Type". Remove inaccurate statement regarding
33460 lack of C language facilities for determining width of integer
33461 types, and reorder content to improve flow and context of
33462 discussion.
33463
33464 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33465
33466 * lang.texi (va_copy): Change standard from ISO to C99.
33467 (__va_copy): Add standard and header annotation.
33468 Update description for clarity of origins and current use.
33469
33470 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33471
33472 [BZ #21941]
33473 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33474 xssqrtqp requires operands to be in Vector Registers
33475 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33476 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33477 (__ieee754_sqrtf128): Likewise.
33478
33479 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33480
33481 * sysdeps/aarch64/memcmp.S (memcmp):
33482 Rewrite of optimized memcmp.
33483
33484 2017-08-10 Florian Weimer <fweimer@redhat.com>
33485
33486 Introduce ld.so exceptions.
33487 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33488 (_dl_exception_create, _dl_exception_create_format)
33489 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33490 (_dl_catch_exception): Declare.
33491 (_dl_catch_error): Update comment.
33492 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33493 errstring, malloced members with exception member.
33494 (_dl_out_of_memory): Remove.
33495 (fatal_error): New function, extracted from _dl_signal_error.
33496 (_dl_signal_exception, _dl_signal_cexception): New functions.
33497 (_dl_signal_error): Call _dl_exception_create to allocate an
33498 exception object.
33499 (_dl_catch_exception): New function, based on _dl_catch_error.
33500 (_dl_catch_error): Implement using _dl_catch_exception.
33501 * elf/dl-exception.c: New file.
33502 * elf/Makefile (dl-routines): Add dl-exception.
33503 (elide-routines.os): Likewise.
33504 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33505 _dl_exception_create_format, _dl_exception_free.
33506 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33507 _dl_signal_exception.
33508 * elf/dl-lookup.c (make_string): Remove.
33509 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33510 _dl_signal_cexception, _dl_exception_free.
33511 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33512 _dl_signal_exception.
33513 * elf/dl-sym.c (do_sym): Likewise.
33514 * elf/dl-version.c (make_string): Remove.
33515 (match_symbol): Use _dl_exception_create_format,
33516 _dl_signal_cexception, _dl_exception_free.
33517 (_dl_check_map_versions): Likewise.
33518 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33519 _dl_catch_exception.
33520 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33521 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33522 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33523 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33524 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33525 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33526 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33527 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33528 Likewise.
33529 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33531 (ld.so): Likewise.
33532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33533 (ld.so): Likewise.
33534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33535 Likewise.
33536 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33537 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33538 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33539 Likewise.
33540 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33541 Likewise.
33542 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33543
33544 2017-08-10 Florian Weimer <fweimer@redhat.com>
33545
33546 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33547 attribute_hidden, internal_function.
33548 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33549 internal_function.
33550
33551 2017-08-10 Florian Weimer <fweimer@redhat.com>
33552
33553 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33554 function which calls __builtin_unreachable.
33555
33556 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33557
33558 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33559 Indian monetary formatting
33560 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33561 test cases.
33562
33563 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33564
33565 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33566 Fix typo in comment.
33567
33568 [BZ #21928]
33569 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33570 PTRACE_SEIZE_DEVEL): Remove.
33571 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33572 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33573 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33574 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33575 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33576
33577 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33578
33579 * posix/bits/types.h (__qaddr_t): Remove.
33580
33581 [BZ #21457]
33582 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33583 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33584 __glibc_reserved1.
33585 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33586 (ucontext_t): Use __ctx with uc_flags.
33587 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33588 (__ctxt): Likewise.
33589 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33590 __glibc_reserved1.
33591 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33592 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33593 __glibc_reserved1.
33594 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33595 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33596 __glibc_reserved1.
33597 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33598 macro.
33599 (ucontext_t): Use __ctx with uc_flags.
33600 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33601 (ucontext_t): Use __ctx with uc_flags.
33602 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33603 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33604 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33605 (ucontext_t): Use __ctx with uc_flags.
33606 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33607 undefine further down.
33608 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33609 __glibc_reserved1.
33610 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33611 undefine further down.
33612 (ucontext_t): Use __ctx with uc_flags.
33613 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33614 undefine further down.
33615 (ucontext_t): Use __ctx with uc_flags.
33616 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33617 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33618 Rename uc_pad to __glibc_reserved1.
33619 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33620 undefine further down.
33621 (ucontext_t): Use __ctx with uc_flags.
33622 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33623 further down.
33624 (ucontext_t): Use __ctx with uc_flags.
33625 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33626 __ctx with uc_flags.
33627 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33628 (ucontext_t): Use __ctx with uc_flags.
33629 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33630 __ctx with uc_flags.
33631
33632 2017-08-09 Florian Weimer <fweimer@redhat.com>
33633
33634 [BZ #21932]
33635 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33636 before early return.
33637
33638 2017-08-09 Andreas Schwab <schwab@suse.de>
33639
33640 [BZ #21041]
33641 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33642 renamed alias.
33643
33644 [BZ #21041]
33645 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33646 tst-compat-forwarder.
33647 (modules-names): Add tst-compat-forwarder-mod.
33648 ($(objpfx)tst-compat-forwarder): Depend on
33649 $(objpfx)tst-compat-forwarder-mod.so.
33650 * nptl/tst-compat-forwarder.c: New file.
33651 * nptl/tst-compat-forwarder-mod.c: New file.
33652
33653 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33654
33655 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33656 comments.
33657
33658 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33659 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33660 memcpy_falkor.
33661 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33662 Bump.
33663 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33664 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33665 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33666 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33667 Add falkor.
33668 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33669 New macro.
33670
33671 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33672
33673 [BZ #759]
33674 * manual/setjmp.texi (getcontex): Document uc_stack value
33675 compatibility differences.
33676
33677 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33678
33679 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33680 (old_malloc_hook): Likewise.
33681 (old_memalign_hook): Likewise.
33682 (old_realloc_hook): Likewise.
33683 (struct hdr): Likewise.
33684 (flood): Likewise.
33685 (freehook): Likewise.
33686 (mallochook): Likewise.
33687 (memalignhook): Likewise.
33688 (reallochook): Likewise.
33689 (mprobe): Likewise.
33690 * malloc/mtrace.c (mallwatch): Likewise.
33691 (tr_old_free_hook): Likewise.
33692 (tr_old_malloc_hook): Likewise.
33693 (tr_old_realloc_hook): Likewise.
33694 (tr_old_memalign_hook): Likewise.
33695 (tr_where): Likewise.
33696 (lock_and_info): Likewise.
33697 (tr_freehook): Likewise.
33698 (tr_mallochook): Likewise.
33699 (tr_reallochook): Likewise.
33700 (tr_memalignhook): Likewise.
33701 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33702 * misc/mmap.c (__mmap): Likewise.
33703 * misc/mmap64.c (__mmap64): Likewise.
33704 * misc/mprotect.c (__mprotect): Likewise.
33705 * misc/msync.c (msync): Likewise.
33706 * misc/munmap.c (__munmap): Likewise.
33707 * posix/posix_madvise.c (posix_madvise): Likewise.
33708 * socket/send.c (__send): Likewise.
33709 * socket/sendto.c (__sendto): Likewise.
33710 * socket/setsockopt.c (__setsockopt): Likewise.
33711 * string/memcmp.c (__ptr_t): Remove macro.
33712 (MEMCMP): Use void * instead of ptr_t.
33713 * string/memrchr.c (__ptr_t): Remove macro.
33714 (__memrchr): Use void * instead of ptr_t.
33715 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33716 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33717 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33718 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33719 * sysdeps/mach/msync.c (msync): Likewise.
33720 * sysdeps/mach/munmap.c (__munmap): Likewise.
33721 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33722 Likewise.
33723 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33724 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33725 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33726 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33727 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33728 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33729 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33730 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33731 Likewise.
33732 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33733 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33734 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33735 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33736 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33737 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33738 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33739 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33740 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33741 Likewise.
33742 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
33743 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
33744 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
33745 (MEMCMP): Use void * instead of ptr_t.
33746 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
33747 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
33748
33749 2017-08-08 Florian Weimer <fweimer@redhat.com>
33750
33751 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
33752 return statement.
33753
33754 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
33755
33756 [BZ #21913]
33757 * csu/libc-tls.c: Include <startup.h> first.
33758 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
33759 * elf/dl-tunables.c: Include <startup.h> first.
33760 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
33761 * sysdeps/generic/startup.h: New file.
33762 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
33763 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
33764 (I386_USE_SYSENTER): New. Defined to 0.
33765
33766 2017-08-08 Andreas Schwab <schwab@suse.de>
33767
33768 [BZ #21041]
33769 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
33770 * nptl/pt-system.c (system): Likewise.
33771
33772 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33773
33774 [BZ #21780]
33775 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
33776 EOPNOTSUPP.
33777 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
33778 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
33779 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
33780 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
33781 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
33782 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
33783 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
33784
33785 2017-08-07 Joseph Myers <joseph@codesourcery.com>
33786
33787 [BZ #21899]
33788 * bits/sigaction.h (struct sigaction): Define sa_handler and
33789 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
33790 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33791 [__USE_XOPEN_EXTENDED].
33792 (SA_RESTART): Likewise.
33793 (SA_NODEFER): Likewise.
33794 (SA_RESETHAND): Likewise.
33795 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
33796 (struct sigaction): Define sa_handler and sa_sigaction using union
33797 also for [__USE_XOPEN_EXTENDED].
33798 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33799 [__USE_XOPEN_EXTENDED].
33800 (SA_RESTART): Likewise.
33801 (SA_NODEFER): Likewise.
33802 (SA_RESETHAND): Likewise.
33803 * sysdeps/unix/sysv/linux/bits/sigaction.h
33804 (struct sigaction): Define sa_handler and sa_sigaction using union
33805 also for [__USE_XOPEN_EXTENDED].
33806 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33807 [__USE_XOPEN_EXTENDED].
33808 (SA_RESTART): Likewise.
33809 (SA_NODEFER): Likewise.
33810 (SA_RESETHAND): Likewise.
33811 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
33812 (struct sigaction): Define sa_handler and sa_sigaction using union
33813 also for [__USE_XOPEN_EXTENDED].
33814 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33815 [__USE_XOPEN_EXTENDED].
33816 (SA_RESTART): Likewise.
33817 (SA_NODEFER): Likewise.
33818 (SA_RESETHAND): Likewise.
33819 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
33820 (struct sigaction): Define sa_handler and sa_sigaction using union
33821 also for [__USE_XOPEN_EXTENDED].
33822 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33823 [__USE_XOPEN_EXTENDED].
33824 (SA_RESTART): Likewise.
33825 (SA_NODEFER): Likewise.
33826 (SA_RESETHAND): Likewise.
33827 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
33828 (struct sigaction): Define sa_handler and sa_sigaction using union
33829 also for [__USE_XOPEN_EXTENDED].
33830 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33831 [__USE_XOPEN_EXTENDED].
33832 (SA_RESTART): Likewise.
33833 (SA_NODEFER): Likewise.
33834 (SA_RESETHAND): Likewise.
33835 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
33836 (struct sigaction): Define sa_handler and sa_sigaction using union
33837 also for [__USE_XOPEN_EXTENDED].
33838 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33839 [__USE_XOPEN_EXTENDED].
33840 (SA_RESTART): Likewise.
33841 (SA_NODEFER): Likewise.
33842 (SA_RESETHAND): Likewise.
33843 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
33844 (struct sigaction): Define sa_handler and sa_sigaction using union
33845 also for [__USE_XOPEN_EXTENDED].
33846 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33847 [__USE_XOPEN_EXTENDED].
33848 (SA_RESTART): Likewise.
33849 (SA_NODEFER): Likewise. Define directly rather than as alias.
33850 (SA_RESETHAND): Likewise.
33851 (SA_INTERRUPT): Define only for [__USE_MISC].
33852 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
33853 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
33854 [__USE_MISC].
33855 (SA_STACK): Define only for [__USE_MISC].
33856 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
33857 (struct sigaction): Define sa_handler and sa_sigaction using union
33858 also for [__USE_XOPEN_EXTENDED].
33859 (SA_ONSTACK): Change [__USE_UNIX98] condition to
33860 [__USE_XOPEN_EXTENDED].
33861 (SA_RESTART): Likewise.
33862 (SA_NODEFER): Likewise.
33863 (SA_RESETHAND): Likewise.
33864 (SA_NOPTRACE): Define only for [__USE_MISC].
33865
33866 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
33867 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
33868 (struct catalog_info): Likewise.
33869 * inet/htontest.c (lo): Likewise.
33870 (foo): Likewise.
33871 * inet/inet_lnaof.c (inet_lnaof): Likewise.
33872 * inet/inet_net.c (inet_network): Likewise.
33873 * inet/inet_netof.c (inet_netof): Likewise.
33874 * inet/rcmd.c (__ivaliduser): Likewise.
33875 (iruserok): Likewise.
33876 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
33877 * locale/programs/locale-spec.c (locale_special): Likewise.
33878 * nis/nis_findserv.c (struct findserv_req): Likewise.
33879 (__nis_findfastest_with_timeout): Likewise.
33880 * nss/test-netdb.c (test_network): Likewise.
33881 * resolv/inet_neta.c (inet_neta): Likewise.
33882 * resolv/ns_date.c (ns_datetosecs): Likewise.
33883 (SECS_PER_DAY): Likewise.
33884 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
33885 Likewise.
33886 * resolv/res_comp.c (__putlong): Likewise.
33887 (__putshort): Likewise.
33888 (_getlong): Likewise.
33889 (_getshort): Likewise.
33890 * resolv/res_debug.c (p_time): Likewise.
33891 (precsize_ntoa): Likewise.
33892 (precsize_aton): Likewise.
33893 (latlon2ul): Likewise.
33894 (loc_aton): Likewise.
33895 (loc_ntoa): Likewise.
33896 * resolv/res_hconf.c (struct netaddr): Likewise.
33897 (_res_hconf_reorder_addrs): Likewise.
33898 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
33899 (clnttcp_control): Likewise.
33900 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
33901 (clntudp_control): Likewise.
33902 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
33903 (clntunix_control): Likewise.
33904 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
33905 * sunrpc/rpc/auth.h (union des_block): Likewise.
33906 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
33907 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
33908 (xdrrec_create): Likewise.
33909 (xdrrec_endofrecord): Likewise.
33910 (flush_out): Likewise.
33911 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
33912 (xdrstdio_putlong): Likewise.
33913 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
33914 Likewise.
33915
33916 * misc/sys/cdefs.h (__long_double_t): Remove.
33917 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
33918 instead of __long_double_t,
33919 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
33920
33921 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
33922
33923 * benchtests/scripts/compare_strings.py: Avoid display error when
33924 running on a text terminal.
33925
33926 * benchtests/scripts/compare_strings.py (main): Add an
33927 optional -base option.
33928 (process_results): New argument base_func.
33929
33930 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
33931 hardcoding memcpy.
33932 * benchtests/bench-memcpy-large.c (test_name): Likewise.
33933 * benchtests/bench-memcpy-random.c (test_name): Likewise.
33934
33935 2017-08-07 Andreas Schwab <schwab@suse.de>
33936
33937 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
33938 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
33939 * intl/Makefile ($(objpfx)tst-gettext.out)
33940 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
33941 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
33942 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
33943 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
33944 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
33945 * posix/Makefile ($(objpfx)globtest.out)
33946 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
33947 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
33948 ($(objpfx)tst-printf.out): Likewise.
33949 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
33950 ($(objpfx)tst-setcontext3.out): Likewise.
33951
33952 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
33953
33954 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33955 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
33956 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
33957 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
33958 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
33959 and mptan-fma.
33960 (CFLAGS-doasin-fma.c): New.
33961 (CFLAGS-dosincos-fma.c): Likewise.
33962 (CFLAGS-e_asin-fma.c): Likewise.
33963 (CFLAGS-e_atan2-fma.c): Likewise.
33964 (CFLAGS-e_exp-fma.c): Likewise.
33965 (CFLAGS-e_log-fma.c): Likewise.
33966 (CFLAGS-e_pow-fma.c): Likewise.
33967 (CFLAGS-halfulp-fma.c): Likewise.
33968 (CFLAGS-mpa-fma.c): Likewise.
33969 (CFLAGS-mpatan-fma.c): Likewise.
33970 (CFLAGS-mpatan2-fma.c): Likewise.
33971 (CFLAGS-mpexp-fma.c): Likewise.
33972 (CFLAGS-mplog-fma.c): Likewise.
33973 (CFLAGS-mpsqrt-fma.c): Likewise.
33974 (CFLAGS-mptan-fma.c): Likewise.
33975 (CFLAGS-s_atan-fma.c): Likewise.
33976 (CFLAGS-sincos32-fma.c): Likewise.
33977 (CFLAGS-slowexp-fma.c): Likewise.
33978 (CFLAGS-slowpow-fma.c): Likewise.
33979 (CFLAGS-s_sin-fma.c): Likewise.
33980 (CFLAGS-s_tan-fma.c): Likewise.
33981 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
33982 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
33983 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
33984 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
33985 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
33986 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
33987 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
33988 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
33989 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
33990 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
33991 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
33992 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
33993 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
33994 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
33995 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
33996 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
33997 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
33998 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
33999 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34000 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34001 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34002 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34003 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34004 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34005 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34006 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34007 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34008 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34009 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34010 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34011 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34012
34013 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34014
34015 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34016 (min_of_type_f): New macro.
34017 (min_of_type_): Likewise.
34018 (min_of_type_l): Likewise.
34019 (min_of_type_f128): Likewise.
34020 (min_of_type): Define using __MATH_TG and taking an expression
34021 argument.
34022 (math_check_force_underflow): Pass expression instead of type to
34023 min_of_type.
34024 (math_check_force_underflow_nonneg): Likewise.
34025
34026 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34027
34028 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34029 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34030 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34031
34032 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34033
34034 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34035 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34036 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34037 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34038 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34039 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34040 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34041 memmove_chk-nonshared and memset_chk-nonshared
34042 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34043 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34044 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34045 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34046 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34047 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34048 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34049 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34050 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34051 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34052 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34053 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34054 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34055 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34056 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34057 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34058 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34059 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34060 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34061 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34062 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34063 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34064 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34065 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34066 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34067 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34068 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34069 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34070 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34071 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34072 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34073 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34074 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34075 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34076 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34077 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34078 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34079 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34080 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34081 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34082 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34083 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34084 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34085 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34086 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34087 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34088 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34089 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34090 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34091 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34092 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34093 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34094 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34095 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34096 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34097 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34098 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34099 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34100 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34101 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34102 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34103 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34104 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34105 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34106 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34107 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34108 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34109 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34110 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34111 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34112 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34113 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34114 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34115 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34116 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34117 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34118 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34119 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34120 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34121 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34122 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34123 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34124 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34125 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34126 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34127 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34128 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34129 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34130 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34131 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34132 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34133 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34134 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34135 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34136 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34137 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34138 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34139 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34140 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34141 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34142 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34143 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34144 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34145 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34146 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34147 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34148 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34149 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34150
34151 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34152
34153 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34154 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34155 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34156 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34157 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34158 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34159 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34160 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34161 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34162 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34163 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34164 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34165 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34166 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34167 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34168 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34169 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34170 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34171 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34172 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34173 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34174 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34175 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34176 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34177 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34178 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34179 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34180 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34181 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34182 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34183 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34184 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34185 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34186 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34187 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34188 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34189 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34190 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34191 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34192 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34193 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34194 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34195 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34196 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34197 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34198 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34199 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34200 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34201 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34202 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34203 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34204 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34205 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34206 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34207 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34208 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34209 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34210 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34211 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34212 ...
34213 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34214 Don't include <sysdep.h> nor <init-arch.h>.
34215 (_ZGVbN2v_cos): Removed.
34216 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34217 ...
34218 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34219 Don't include <sysdep.h> nor <init-arch.h>.
34220 (_ZGVdN4v_cos): Removed.
34221 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34222 ...
34223 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34224 Don't include <sysdep.h> nor <init-arch.h>.
34225 (_ZGVeN8v_cos): Removed.
34226 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34227 ...
34228 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34229 Don't include <sysdep.h> nor <init-arch.h>.
34230 (_ZGVbN2v_exp): Removed.
34231 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34232 ...
34233 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34234 Don't include <sysdep.h> nor <init-arch.h>.
34235 (_ZGVdN4v_exp): Removed.
34236 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34237 ...
34238 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34239 Don't include <sysdep.h> nor <init-arch.h>.
34240 (_ZGVeN8v_exp): Removed.
34241 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34242 ...
34243 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34244 Don't include <sysdep.h> nor <init-arch.h>.
34245 (_ZGVbN2v_log): Removed.
34246 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34247 ...
34248 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34249 Don't include <sysdep.h> nor <init-arch.h>.
34250 (_ZGVdN4v_log): Removed.
34251 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34252 ...
34253 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34254 Don't include <sysdep.h> nor <init-arch.h>.
34255 (_ZGVeN8v_log): Removed.
34256 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34257 ...
34258 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34259 Don't include <sysdep.h> nor <init-arch.h>.
34260 (_ZGVbN2vv_pow): Removed.
34261 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34262 ...
34263 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34264 Don't include <sysdep.h> nor <init-arch.h>.
34265 (_ZGVdN4vv_pow): Removed.
34266 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34267 ...
34268 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34269 Don't include <sysdep.h> nor <init-arch.h>.
34270 (_ZGVeN8vv_pow): Removed.
34271 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34272 ...
34273 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34274 Don't include <sysdep.h> nor <init-arch.h>.
34275 (_ZGVbN2v_sin): Removed.
34276 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34277 ...
34278 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34279 Don't include <sysdep.h> nor <init-arch.h>.
34280 (_ZGVbN4v_sin): Removed.
34281 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34282 ...
34283 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34284 Don't include <sysdep.h> nor <init-arch.h>.
34285 (_ZGVbN8v_sin): Removed.
34286 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34287 ...
34288 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34289 Don't include <sysdep.h> nor <init-arch.h>.
34290 (_ZGVbN2vvv_sincos): Removed.
34291 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34292 ...
34293 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34294 Don't include <sysdep.h> nor <init-arch.h>.
34295 (_ZGVdN4vvv_sincos): Removed.
34296 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34297 ...
34298 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34299 Don't include <sysdep.h> nor <init-arch.h>.
34300 (_ZGVeN8vvv_sincos): Removed.
34301 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34302 ...
34303 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34304 Don't include <sysdep.h> nor <init-arch.h>.
34305 (_ZGVeN16v_cosf): Removed.
34306 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34307 ...
34308 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34309 Don't include <sysdep.h> nor <init-arch.h>.
34310 (_ZGVbN4v_cosf): Removed.
34311 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34312 ...
34313 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34314 Don't include <sysdep.h> nor <init-arch.h>.
34315 (_ZGVdN8v_cosf): Removed.
34316 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34317 ...
34318 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34319 Don't include <sysdep.h> nor <init-arch.h>.
34320 (_ZGVeN16v_expf): Removed.
34321 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34322 ...
34323 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34324 Don't include <sysdep.h> nor <init-arch.h>.
34325 (_ZGVbN4v_expf): Removed.
34326 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34327 ...
34328 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34329 Don't include <sysdep.h> nor <init-arch.h>.
34330 (_ZGVdN8v_expf): Removed.
34331 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34332 ...
34333 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34334 Don't include <sysdep.h> nor <init-arch.h>.
34335 (_ZGVeN16v_logf): Removed.
34336 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34337 ...
34338 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34339 Don't include <sysdep.h> nor <init-arch.h>.
34340 (_ZGVbN4v_logf): Removed.
34341 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34342 ...
34343 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34344 Don't include <sysdep.h> nor <init-arch.h>.
34345 (_ZGVdN8v_logf): Removed.
34346 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34347 ...
34348 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34349 Don't include <sysdep.h> nor <init-arch.h>.
34350 (_ZGVeN16vv_powf): Removed.
34351 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34352 ...
34353 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34354 Don't include <sysdep.h> nor <init-arch.h>.
34355 (_ZGVbN4vv_powf): Removed.
34356 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34357 ...
34358 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34359 Don't include <sysdep.h> nor <init-arch.h>.
34360 (_ZGVdN8vv_powf): Removed.
34361 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34362 ...
34363 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34364 Don't include <sysdep.h> nor <init-arch.h>.
34365 (_ZGVeN16vvv_sincosf): Removed.
34366 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34367 ...
34368 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34369 Don't include <sysdep.h> nor <init-arch.h>.
34370 (_ZGVbN4vvv_sincosf): Removed.
34371 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34372 ...
34373 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34374 Don't include <sysdep.h> nor <init-arch.h>.
34375 (_ZGVdN8vvv_sincosf): Removed.
34376 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34377 ...
34378 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34379 Don't include <sysdep.h> nor <init-arch.h>.
34380 (_ZGVeN16v_sinf): Removed.
34381 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34382 ...
34383 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34384 Don't include <sysdep.h> nor <init-arch.h>.
34385 (_ZGVbN4v_sinf): Removed.
34386 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34387 ...
34388 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34389 Don't include <sysdep.h> nor <init-arch.h>.
34390 (_ZGVdN8v_sinf): Removed.
34391
34392 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34393
34394 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34395 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34396 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34397 s_rint-sse4_1 and s_rintf-sse4_1.
34398 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34399 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34400 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34401 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34402 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34403 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34404 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34405 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34406 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34407 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34408 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34409 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34410 (__ceil): Removed.
34411 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34412 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34413 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34414 (__ceilf): Removed.
34415 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34416 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34417 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34418 (__floor): Removed.
34419 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34420 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34421 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34422 (__floorf): Removed.
34423 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34424 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34425 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34426 (__nearbyint): Removed.
34427 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34428 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34429 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34430 (__nearbyintf): Removed.
34431 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34432 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34433 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34434 (__rint): Removed.
34435 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34436 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34437 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34438 (__rintf): Removed.
34439
34440 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34441
34442 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34443 SHARED. Avoid dynamic relocation against main in static PIE.
34444
34445 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34446
34447 [BZ #21815]
34448 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34449 (LDFLAGS-tst-prelink): Likewise.
34450
34451 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34452
34453 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34454 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34455 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34456 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34457 (INTERNAL_SYSCALL_NCS): Likewise.
34458 (LOADARGS_1): Likewise.
34459 (LOADARGS_5): Likewise.
34460 (RESTOREARGS_1): Likewise.
34461 (RESTOREARGS_5): Likewise.
34462
34463 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34464
34465 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34466 (MEMPCPY_SYMBOL): Likewise.
34467 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34468 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34469 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34470 in libc.a.
34471 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34472 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34473 Likewise.
34474 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34475 (__hidden_ver1): Don't use in libc.a.
34476 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34477 (__mempcpy): Don't create a weak alias in libc.a.
34478 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34479 libc.a.
34480 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34481 (__hidden_ver1): Don't use in libc.a.
34482
34483 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34484
34485 * config.make.in (have-insert): New.
34486 * configure.ac (libc_cv_insert): New. Set to yes if linker
34487 supports INSERT in linker script.
34488 (AC_SUBST(libc_cv_insert): New.
34489 * configure: Regenerated.
34490 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34491 if $(have-insert) == yes.
34492
34493 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34494
34495 * elf/Makefile (tests): Add vismain only if
34496 $(have-protected-data) == yes.
34497 (tests-pie): Likewise.
34498
34499 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34500
34501 [BZ #21871]
34502 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34503 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34504
34505 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34506
34507 [BZ #21790]
34508 * sysdeps/i386/i586/memset.S
34509 (__memset_zero_constant_len_parameter): Removed.
34510 * sysdeps/i386/i686/memset.S
34511 (__memset_zero_constant_len_parameter): Likewise.
34512 * sysdeps/i386/i686/multiarch/memset_chk.S
34513 (__memset_zero_constant_len_parameter): Likewise.
34514 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34515 Likewise.
34516
34517 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34518
34519 * stdlib/getentropy.c (getentropy): Change return type to int.
34520
34521 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34522
34523 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34524
34525 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34526
34527 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34528 u_intN_t.
34529 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34530 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34531 Likewise.
34532 (ieee_float_shape_type): Likewise.
34533 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34534 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34535 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34536 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34537 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34538 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34539 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34540 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34541 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34542 Likewise.
34543 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34544 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34545 (__ieee754_yn): Likewise.
34546 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34547 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34548 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34549 Likewise.
34550 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34551 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34552 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34553 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34554 (__erfc): Likewise.
34555 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34556 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34557 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34558 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34559 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34560 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34561 Likewise.
34562 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34563 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34564 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34565 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34566 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34567 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34568 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34569 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34570 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34571 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34572 (__issignaling): Likewise.
34573 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34574 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34575 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34576 Likewise.
34577 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34578 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34579 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34580 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34581 Likewise.
34582 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34583 Likewise.
34584 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34585 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34586 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34587 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34588 (__erfcf): Likewise.
34589 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34590 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34591 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34592 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34593 Likewise.
34594 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34595 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34596 Likewise.
34597 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34598 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34599 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34600 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34601 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34602 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34603 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34604 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34605 Likewise.
34606 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34607 Likewise.
34608 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34609 Likewise.
34610 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34611 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34612 Likewise.
34613 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34614 Likewise.
34615 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34616 (__ieee754_ynl): Likewise.
34617 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34618 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34619 Likewise.
34620 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34621 Likewise.
34622 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34623 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34624 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34625 Likewise.
34626 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34627 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34628 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34629 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34630 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34631 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34632 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34633 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34634 Likewise.
34635 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34636 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34637 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34638 Likewise.
34639 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34640 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34641 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34642 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34643 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34644 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34645 Likewise.
34646 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34647 Likewise.
34648 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34649 Likewise.
34650 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34651 Likewise.
34652 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34653 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34654 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34655 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34656 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34657 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34658 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34659 Likewise.
34660 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34661 Likewise.
34662 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34663 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34664 Likewise.
34665 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34666 (__ieee754_remainderl): Likewise.
34667 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34668 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34669 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34670 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34671 Likewise.
34672 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34673 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34674 Likewise.
34675 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34676 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34677 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34678 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34679 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34680 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34681 Likewise.
34682 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34683 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34684 (__ieee754_y0l): Likewise.
34685 (pzero): Likewise.
34686 (qzero): Likewise.
34687 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34688 (__ieee754_y1l): Likewise.
34689 (pone): Likewise.
34690 (qone): Likewise.
34691 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34692 (__ieee754_ynl): Likewise.
34693 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34694 (__ieee754_lgammal_r): Likewise.
34695 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34696 Likewise.
34697 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34698 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34699 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34700 (__erfcl): Likewise.
34701 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34702 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34703 Likewise.
34704 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34705 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34706 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34707 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34708 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34709 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34710 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34711 Likewise.
34712 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34713 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34714 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34715 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34716 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34717 Likewise.
34718 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34719 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34720 Likewise.
34721 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34722 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34723 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34724 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34725 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34726
34727 2017-08-03 Florian Weimer <fweimer@redhat.com>
34728
34729 [BZ #21885]
34730 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34731 on memory allocation failure.
34732
34733 2017-08-03 Alan Modra <amodra@gmail.com>
34734
34735 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34736 tst-tlsopt-powerpc.c with function name change and no test harness.
34737 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34738 Call tls_get_addr_opt_test.
34739 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34740 (modules-names): Add mod-tlsopt-powerpc.
34741 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34742 (tst-tlsopt-powerpc): Depend on .so.
34743 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
34744 define. Expand use in TLS_GD and TLS_LD.
34745
34746 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34747
34748 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
34749 function.
34750 * sysdeps/posix/shm_open.c: Include <pthread.h>.
34751
34752 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34753
34754 [BZ #21686]
34755 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
34756 comparing size with that of double.
34757 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34758 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34759 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34760 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34761 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34762 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
34763 unsigned __int128 types.
34764
34765 2017-08-02 Steve Ellcey <sellcey@cavium.com>
34766
34767 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
34768 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
34769 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
34770 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
34771 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
34772
34773 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34774
34775 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
34776
34777 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34778
34779 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
34780 of SHARED.
34781 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
34782 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
34783 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
34784 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
34785 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
34786 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
34787 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
34788
34789 2017-08-02 Joseph Myers <joseph@codesourcery.com>
34790
34791 [BZ #21685]
34792 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
34793 bit-field expressions passed to sizeof or typeof.
34794 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34795 (__TGMATH_F128): Likewise.
34796 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34797 (__TGMATH_CF128): Likewise.
34798 (__TGMATH_UNARY_REAL_ONLY): Likewise.
34799 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
34800 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
34801 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
34802 (__TGMATH_BINARY_REAL_ONLY): Likewise.
34803 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
34804 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
34805 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
34806 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
34807 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
34808 (__TGMATH_UNARY_REAL_IMAG): Likewise.
34809 (__TGMATH_UNARY_IMAG): Likewise.
34810 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
34811 (__TGMATH_BINARY_REAL_IMAG): Likewise.
34812 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
34813 type.
34814 (define_vars_for_type): Handle bit_field type specially.
34815 (Tests.__init__): Declare structure with bit-field element.
34816
34817 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
34818
34819 [BZ #21791]
34820 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
34821 (MEMCPY_CHK): Define only if SHARED is defined.
34822 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
34823 Likewise.
34824 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
34825 Likewise.
34826
34827 See ChangeLog.18 for earlier changes.